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
7e401303f8fd90a70078b1a2dec6fb014333a7bc
1,338
py
Python
python/common/dict.py
yudongjin/public
1808f0706d3184b1762f3f90174a283d9909deeb
[ "Apache-2.0" ]
null
null
null
python/common/dict.py
yudongjin/public
1808f0706d3184b1762f3f90174a283d9909deeb
[ "Apache-2.0" ]
null
null
null
python/common/dict.py
yudongjin/public
1808f0706d3184b1762f3f90174a283d9909deeb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding=utf-8 ''' File Name: dict.py Author: dongjin.ydj mail: dongjin.ydj@alibaba-inc.com Created Time: Thu 23 Jun 2016 11:36:31 AM CST ''' ''' python dict.py ''' import sys reload(sys) sys.setdefaultencoding('utf-8') def dict_to_list(d, value_build_fun = lambda key, value : [key ,value]): ...
25.730769
97
0.597907
208
1,338
3.658654
0.379808
0.073587
0.102497
0.074901
0.060447
0.060447
0
0
0
0
0
0.024201
0.227952
1,338
51
98
26.235294
0.712488
0.023916
0
0.121212
0
0
0.056277
0
0
0
0
0
0
0
null
null
0
0.030303
null
null
0.060606
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e40d8701b2d90ec604196cfd2812c1ef6d1bd7e
767
py
Python
tests/datasets/serializers/test_serializers.py
Faysalali534/wazimap-ng
64cff12c042167ce633658a3c45f7c142f3fd5ce
[ "Apache-2.0" ]
null
null
null
tests/datasets/serializers/test_serializers.py
Faysalali534/wazimap-ng
64cff12c042167ce633658a3c45f7c142f3fd5ce
[ "Apache-2.0" ]
null
null
null
tests/datasets/serializers/test_serializers.py
Faysalali534/wazimap-ng
64cff12c042167ce633658a3c45f7c142f3fd5ce
[ "Apache-2.0" ]
null
null
null
import pytest from wazimap_ng.datasets.serializers import MetaDataSerializer from tests.datasets.factories import MetaDataFactory, LicenceFactory @pytest.fixture def licence(): return LicenceFactory(name="licence name", url="abc url") @pytest.fixture def metadata(licence): return MetaDataFactory(source="XYZ"...
30.68
102
0.67927
80
767
6.475
0.475
0.063707
0.061776
0.069498
0.19305
0.19305
0
0
0
0
0
0
0.190352
767
24
103
31.958333
0.834138
0
0
0.105263
0
0
0.156658
0
0
0
0
0
0.052632
1
0.157895
false
0
0.157895
0.105263
0.473684
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
7e44662b0f45738b9b68d9fef5c1ac698aa475e7
1,353
py
Python
FLASH4.2.1_save/tools/python/flmake/lsruns.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
1
2021-04-22T09:24:08.000Z
2021-04-22T09:24:08.000Z
FLASH4.2.1_save/tools/python/flmake/lsruns.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
FLASH4.2.1_save/tools/python/flmake/lsruns.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
import os import json # Relative imports needed from .. import FLASH_SRC_DIR from .setup_globals import gvars from .utils import hash_list_to_dict, hash_dict_to_str USAGE = ("Searches through local sub-directories\n" "and lists those which contain flash runs\n" "(and the run hashes) in a tree.\n\n" ...
29.413043
90
0.634885
208
1,353
3.980769
0.451923
0.057971
0.02657
0.033816
0.043478
0
0
0
0
0
0
0.00197
0.249815
1,353
45
91
30.066667
0.813793
0.11456
0
0
0
0
0.14026
0
0
0
0
0
0
0
null
null
0
0.166667
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e4c24b2dc35ba669e38567bf6e513714d577b6e
940
py
Python
InvenTree/users/test_migrations.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
InvenTree/users/test_migrations.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
InvenTree/users/test_migrations.py
onurtatli/InvenTree
4ce479cf97cc62563ab08ed6123d3c6ca28ba6a3
[ "MIT" ]
null
null
null
""" Unit tests for the user model database migrations """ from django_test_migrations.contrib.unittest_case import MigratorTestCase from InvenTree import helpers class TestForwardMigrations(MigratorTestCase): """ Test entire schema migration sequence for the users app """ migrate_from = ('users', h...
24.102564
73
0.629787
99
940
5.868687
0.515152
0.041308
0.041308
0.05852
0.086059
0.086059
0
0
0
0
0
0.001427
0.254255
940
38
74
24.736842
0.827389
0.111702
0
0.2
0
0
0.105911
0
0
0
0
0
0.05
1
0.1
false
0.1
0.1
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e4d5a63ca77bfb148396bd29132d932e2dd265a
716
py
Python
app/items.py
roddehugo/patents-scraper
38d824d5aaac1ecfd5ffffa85ac36017228f734b
[ "MIT" ]
2
2016-08-08T03:20:36.000Z
2017-02-23T03:58:24.000Z
app/items.py
roddehugo/patents-scraper
38d824d5aaac1ecfd5ffffa85ac36017228f734b
[ "MIT" ]
1
2017-02-21T19:04:26.000Z
2017-02-27T17:40:38.000Z
app/items.py
roddehugo/patents-scraper
38d824d5aaac1ecfd5ffffa85ac36017228f734b
[ "MIT" ]
1
2017-03-07T11:12:45.000Z
2017-03-07T11:12:45.000Z
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Item, Field class GooglePatentsItem(Item): publication_number = Field() title = Field() filing_date = Field() publication_date = Fi...
22.375
51
0.636872
80
716
5.5875
0.6625
0.080537
0
0
0
0
0
0
0
0
0
0.001838
0.240223
716
31
52
23.096774
0.819853
0.194134
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.045455
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
0
0
0
0
1
0
0
1
7e582a66ec9c95ec9cc8c0a79d16c846dfefc35f
199
py
Python
rpi/distance.py
inafi/wearovision
4a99af1427e8fb67288cd775b62bbed511399bea
[ "MIT" ]
5
2020-04-20T13:54:41.000Z
2020-06-11T20:22:13.000Z
rpi/distance.py
inafi/wearovision
4a99af1427e8fb67288cd775b62bbed511399bea
[ "MIT" ]
1
2021-11-01T03:13:55.000Z
2021-11-01T03:13:55.000Z
rpi/distance.py
inafi/wearovision
4a99af1427e8fb67288cd775b62bbed511399bea
[ "MIT" ]
1
2022-01-28T22:28:03.000Z
2022-01-28T22:28:03.000Z
import serial from redis import Redis cli = Redis("localhost") ser = serial.Serial('/dev/serial0', 9600) while (True): if(ser.in_waiting >0): line = ser.readline() print(line)
18.090909
41
0.638191
27
199
4.666667
0.703704
0
0
0
0
0
0
0
0
0
0
0.03871
0.221106
199
10
42
19.9
0.774194
0
0
0
0
0
0.105528
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e590ea23e69396d7688251bcfbba8d3d61d1058
890
py
Python
tests/backend/shellvars.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
tests/backend/shellvars.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
tests/backend/shellvars.py
edyan/python-anyconfig
d237909a6e4848737539b80951b710238c72052f
[ "MIT" ]
null
null
null
# # Copyright (C) 2016 Satoru SATOH <ssato @ redhat.com> # Copyright (C) 2017 Red Hat, Inc. # License: MIT # # pylint: disable=missing-docstring,invalid-name,too-few-public-methods # pylint: disable=ungrouped-imports from __future__ import absolute_import import anyconfig.backend.shellvars as TT import tests.backend.c...
20.227273
72
0.670787
128
890
4.523438
0.585938
0.020725
0.010363
0.020725
0
0
0
0
0
0
0
0.02736
0.178652
890
43
73
20.697674
0.764706
0.247191
0
0.095238
0
0
0.22239
0
0
0
0
0
0
1
0
false
0.095238
0.190476
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e59a1fc9ce4bb5a6f7b93332b0e454bf694de41
2,037
py
Python
DynamicProgramming/MaximumSumContiguousSubarray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
8
2015-04-16T03:43:49.000Z
2018-08-14T22:47:03.000Z
DynamicProgramming/MaximumSumContiguousSubarray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
null
null
null
DynamicProgramming/MaximumSumContiguousSubarray.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
7
2016-03-22T20:29:27.000Z
2018-09-29T18:55:47.000Z
# Importing standard libraries import sys ''' Reads in an integer from stream passed in as the parameter. Simple parsing function that can read from files as well as standard input ''' def parseInt(stream): return int(stream.readline().rstrip()) ''' Reads in an array of integers from stream passed in a...
26.454545
73
0.626902
279
2,037
4.548387
0.333333
0.01182
0.018913
0.016548
0.234831
0.20331
0.20331
0.20331
0.160757
0.160757
0
0.00684
0.282278
2,037
76
74
26.802632
0.861149
0.013746
0
0.219512
0
0
0.007826
0
0
0
0
0
0
0
null
null
0
0.02439
null
null
0.073171
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e5e2aa8dd84e92853711b72e3238377fcc578b2
4,782
py
Python
pyFileMove/mvfiles.py
nmschorr/pyFileMove9
ee44a8b7acfcb9676a2b4a256fa725c63f3964d8
[ "MIT" ]
null
null
null
pyFileMove/mvfiles.py
nmschorr/pyFileMove9
ee44a8b7acfcb9676a2b4a256fa725c63f3964d8
[ "MIT" ]
null
null
null
pyFileMove/mvfiles.py
nmschorr/pyFileMove9
ee44a8b7acfcb9676a2b4a256fa725c63f3964d8
[ "MIT" ]
null
null
null
''' Created on Nov 22, 2015 @author: Nancy Schorr ''' ## You need to create a file called "fileslist.py" in the the same directory as this file ## inside fileslist.py you need a line that contains the file types to move ## Put one line in the file the defines the list dirTypes like this: ## dirTypes = ["pdf", "cat...
38.256
167
0.553325
492
4,782
5.345528
0.410569
0.027376
0.018251
0.025095
0.093916
0.053992
0.022814
0.022814
0
0
0
0.007313
0.342325
4,782
124
168
38.564516
0.828935
0.263906
0
0.112903
0
0
0.176178
0.04185
0
0
0
0
0
0
null
null
0.016129
0.112903
null
null
0.306452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e61900c08266da086c7d03519c789dd238c477d
888
py
Python
experimental/registry-dtl/test_compo_service.py
nunet-io/ai-dsl
cdcb630c6ea1785f8237c700621555046437d212
[ "MIT" ]
7
2021-02-17T08:02:35.000Z
2022-02-03T12:52:29.000Z
experimental/registry-dtl/test_compo_service.py
nunet-io/ai-dsl
cdcb630c6ea1785f8237c700621555046437d212
[ "MIT" ]
15
2021-03-04T10:33:49.000Z
2021-08-16T04:55:50.000Z
experimental/registry-dtl/test_compo_service.py
nunet-io/ai-dsl
cdcb630c6ea1785f8237c700621555046437d212
[ "MIT" ]
5
2021-02-19T07:58:43.000Z
2021-06-28T18:37:13.000Z
import sys import grpc # import the generated classes import service.proto_spec.compo_service_pb2_grpc as grpc_compo_grpc import service.proto_spec.compo_service_pb2 as grpc_compo_pb2 from service import registry if __name__ == "__main__": # Call Compo Service try: # Ask endpoint and argument ...
27.75
78
0.677928
112
888
5.125
0.4375
0.083624
0.062718
0.076655
0.12892
0.12892
0.12892
0
0
0
0
0.013158
0.22973
888
31
79
28.645161
0.826023
0.125
0
0
1
0
0.107652
0
0
0
0
0
0
1
0
false
0
0.277778
0
0.277778
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e640801ecb1dafdd42f8ab3f45d9dc78800dfed
1,333
py
Python
install-nagios-server/fix_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
install-nagios-server/fix_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
install-nagios-server/fix_nagios_cfg.py
raychorn/svn_jenkins_projects
93d22c28735c9fe6cb4ac632b6e79d89530e3bfb
[ "CC0-1.0" ]
null
null
null
import re, os, sys __re__ = re.compile("temp_path=(?P<temp_path>.*)", re.DOTALL | re.MULTILINE) def find_nagios_cfg(top,target): print 'DEBUG: top=%s, target=%s' % (top,target) for folder,dirs,files in os.walk(top): if (any([f == target for f in files])): return os.sep.join([folder...
29.622222
77
0.566392
180
1,333
3.883333
0.4
0.137339
0.042918
0.04578
0
0
0
0
0
0
0
0.002077
0.277569
1,333
44
78
30.295455
0.72378
0
0
0
0
0
0.100853
0.020946
0
0
0
0
0
0
null
null
0
0.027027
null
null
0.108108
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e6d216f9bc0ba2252cf707ef6ff2404d933165a
3,023
py
Python
1629 Slowest Key.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
null
null
null
1629 Slowest Key.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
null
null
null
1629 Slowest Key.py
AtharvRedij/leetcode-solutions
7194d202302989d53c241b12c9befb06923b1510
[ "MIT" ]
1
2021-03-06T06:15:48.000Z
2021-03-06T06:15:48.000Z
''' URL: https://leetcode.com/problems/slowest-key/ Difficulty: Easy Description: Slowest Key A newly designed keypad was tested, where a tester pressed a sequence of n keys, one at a time. You are given a string keysPressed of length n, where keysPressed[i] was the ith key pressed in the testing sequence, and a so...
43.185714
362
0.721138
490
3,023
4.44898
0.291837
0.07156
0.06055
0.070642
0.355505
0.307339
0.276147
0.196789
0.12156
0.12156
0
0.041926
0.203109
3,023
69
363
43.811594
0.863014
0.832947
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e6d7166905b82d78dba78d66314900381068153
3,092
py
Python
dynamic_unet/utils.py
dthiagarajan/dynamic_unet
4037960fa144e818fb16279ae1ab5f00f5277e31
[ "Apache-2.0" ]
1
2021-07-15T02:47:48.000Z
2021-07-15T02:47:48.000Z
dynamic_unet/utils.py
dthiagarajan/dynamic_unet
4037960fa144e818fb16279ae1ab5f00f5277e31
[ "Apache-2.0" ]
2
2021-09-28T01:21:53.000Z
2022-02-26T06:58:48.000Z
dynamic_unet/utils.py
dthiagarajan/dynamic_unet
4037960fa144e818fb16279ae1ab5f00f5277e31
[ "Apache-2.0" ]
1
2021-07-15T02:48:11.000Z
2021-07-15T02:48:11.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: 02_utils.ipynb (unless otherwise specified). __all__ = ['load_camvid_dataset', 'display_segmentation', 'display_segmentation_from_file', 'CamvidDataset'] # Cell import matplotlib.pyplot as plt import os import torch import torchvision.transforms.functional as tf from PIL i...
35.54023
108
0.621604
436
3,092
4.215596
0.279817
0.019587
0.032644
0.045702
0.202394
0.161045
0.100109
0.038085
0.038085
0
0
0.023008
0.240944
3,092
87
109
35.54023
0.760119
0.034282
0
0.058824
1
0
0.049648
0.010064
0
0
0
0
0
1
0.102941
false
0
0.073529
0.029412
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e6e4a7eea82994843d357dc704beb8754b1f036
706
py
Python
q2_convex_hull/tests/test_classifier.py
dpear/convex-hull
8c717735f2cddefb27b02facb1f4dc70edf778bc
[ "BSD-3-Clause" ]
1
2022-02-14T04:36:14.000Z
2022-02-14T04:36:14.000Z
q2_convex_hull/tests/test_classifier.py
dpear/convex-hull
8c717735f2cddefb27b02facb1f4dc70edf778bc
[ "BSD-3-Clause" ]
1
2022-01-27T01:09:52.000Z
2022-01-27T01:09:52.000Z
q2_convex_hull/tests/test_classifier.py
dpear/convex-hull
8c717735f2cddefb27b02facb1f4dc70edf778bc
[ "BSD-3-Clause" ]
1
2022-01-28T19:04:40.000Z
2022-01-28T19:04:40.000Z
from unittest import TestCase, main class ClassifierTests(TestCase): def test_run_random_forests(self): # take pandas series describing binary labels for samples # take a feature table # construct a classifier # return measures indicating the performance of the classifier s...
28.24
72
0.679887
87
706
5.310345
0.632184
0.045455
0.12987
0.064935
0
0
0
0
0
0
0
0
0.267705
706
24
73
29.416667
0.893617
0.456091
0
0.3
0
0
0.021333
0
0
0
0
0
0
1
0.3
false
0
0.1
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e71889624fc3770506e216260d46213f7de0c63
1,094
py
Python
hard-gists/5720029/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5720029/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5720029/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import arcpy import os def create_path(path): if not os.path.exists(path): print "Creating directory {}".format(path) os.makedirs(path) # default application data dir; e.g. c:\Users\scw\AppData\Roaming app_data_path = os.getenv('APPDATA') # get current ArcGIS version arc_version = arcpy.GetInsta...
34.1875
100
0.720293
157
1,094
4.866242
0.547771
0.039267
0.028796
0
0
0
0
0
0
0
0
0.002183
0.162706
1,094
32
101
34.1875
0.831878
0.297989
0
0
0
0
0.12336
0.053806
0
0
0
0
0
0
null
null
0
0.111111
null
null
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e754406527562fca4d85951d65149db64c410eb
2,919
py
Python
torchrecipes/vision/image_classification/tests/test_train_app.py
nateanl/recipes-1
3b46a7479508608f73b6f24deffdc8fcffd25ee5
[ "BSD-3-Clause" ]
null
null
null
torchrecipes/vision/image_classification/tests/test_train_app.py
nateanl/recipes-1
3b46a7479508608f73b6f24deffdc8fcffd25ee5
[ "BSD-3-Clause" ]
null
null
null
torchrecipes/vision/image_classification/tests/test_train_app.py
nateanl/recipes-1
3b46a7479508608f73b6f24deffdc8fcffd25ee5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. #!/usr/bin/env python3 # pyre-strict import os from copy import deepcopy from typing import List, Optional import torch from torch ...
37.909091
87
0.708804
361
2,919
5.501385
0.387812
0.04431
0.055388
0.026183
0.135952
0.084592
0.039275
0.039275
0.039275
0.039275
0
0.011648
0.205892
2,919
76
88
38.407895
0.845125
0.162042
0
0.038462
0
0
0.07275
0.053432
0
0
0
0.013158
0.019231
1
0.057692
false
0
0.230769
0
0.326923
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
0
0
0
0
0
1
7e7ae92929989e5f16fa75b715e43adfe356545b
13,915
py
Python
mlir_linalg/dsl/tc_model.py
stellaraccident/linalgpy-hacking
9396dda84d78f49744dac08c0bea291cf1dc9e1b
[ "Apache-2.0" ]
3
2021-02-27T03:38:03.000Z
2021-12-29T08:04:30.000Z
mlir_linalg/dsl/tc_model.py
stellaraccident/mlir-linalgpy
9396dda84d78f49744dac08c0bea291cf1dc9e1b
[ "Apache-2.0" ]
null
null
null
mlir_linalg/dsl/tc_model.py
stellaraccident/mlir-linalgpy
9396dda84d78f49744dac08c0bea291cf1dc9e1b
[ "Apache-2.0" ]
1
2021-03-22T11:34:24.000Z
2021-03-22T11:34:24.000Z
"""Model classes representing a tensor-comprehension.""" from typing import Callable, Dict, List, Optional, Sequence, Set, Tuple, Union from mlir import ir as _ir from .affine import * from .scalar_expr import * from .types import * from .yaml_helper import * # Type aliases. AffineDimList = Dict[str, _ir.AffineExpr...
31.553288
80
0.672224
1,818
13,915
4.952695
0.172167
0.01466
0.019547
0.011328
0.222679
0.183141
0.156153
0.126166
0.108285
0.08996
0
0.002908
0.209271
13,915
440
81
31.625
0.815414
0.194251
0
0.182796
0
0.007168
0.131183
0.031976
0
0
0
0.002273
0.010753
1
0.21147
false
0.007168
0.028674
0.064516
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e7c9c48d97bd50b30d1b8f7d78f571bc9100af5
1,751
py
Python
midistegano.py
nonameable/steganography-with-midi
ee7bba03a676517db425e86325d089c2a6dac6f4
[ "MIT" ]
2
2019-12-21T21:51:59.000Z
2021-07-17T15:53:39.000Z
midistegano.py
nonameable/steganography-with-midi
ee7bba03a676517db425e86325d089c2a6dac6f4
[ "MIT" ]
1
2019-02-28T15:16:12.000Z
2019-02-28T15:16:12.000Z
midistegano.py
nonameable/steganography-with-midi
ee7bba03a676517db425e86325d089c2a6dac6f4
[ "MIT" ]
null
null
null
from fileIO import FileIO from hiding import Hider from unraveling import Unraveler import sys from os import path intention=sys.argv[1] midi_file_name=sys.argv[2] name = None if intention=="-hide": message_file_name = sys.argv[3] if path.isfile(midi_file_name): if path.isfile(message_file_name): ...
33.037736
97
0.618504
228
1,751
4.583333
0.298246
0.091866
0.091866
0.028708
0.310048
0.310048
0.183732
0.126316
0.126316
0.126316
0
0.00489
0.299258
1,751
52
98
33.673077
0.846781
0
0
0.409091
0
0
0.251001
0
0
0
0
0
0
0
null
null
0
0.113636
null
null
0.204545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e7d275d63336bc52eb658b2130279c8f06adc06
1,887
py
Python
contest/urls.py
archimedeans/integration-bee
a2c59f1f248af814f9342e95bf065b0b46c22a63
[ "MIT" ]
null
null
null
contest/urls.py
archimedeans/integration-bee
a2c59f1f248af814f9342e95bf065b0b46c22a63
[ "MIT" ]
null
null
null
contest/urls.py
archimedeans/integration-bee
a2c59f1f248af814f9342e95bf065b0b46c22a63
[ "MIT" ]
null
null
null
"""contest URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
40.148936
96
0.700583
236
1,887
5.504237
0.355932
0.027714
0.011547
0.018476
0.137798
0.137798
0.057737
0
0
0
0
0.005141
0.175411
1,887
46
97
41.021739
0.829692
0.442501
0
0
0
0
0.107486
0.020154
0
0
0
0
0
1
0
false
0.32
0.24
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7e7ee8842c69d208f7c6b543c6e14bea3e5d0645
2,652
py
Python
mojo/devtools/common/devtoolslib/shell.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:10.000Z
2020-04-28T14:35:10.000Z
mojo/devtools/common/devtoolslib/shell.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
null
null
null
mojo/devtools/common/devtoolslib/shell.py
zbowling/mojo
4d2ed40dc2390ca98a6fea0580e840535878f11c
[ "BSD-3-Clause" ]
1
2020-04-28T14:35:11.000Z
2020-04-28T14:35:11.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class Shell(object): """Represents an abstract Mojo shell.""" def serve_local_directories(self, mappings, port, reuse_servers=False): """Serves the...
38.434783
80
0.706259
390
2,652
4.741026
0.402564
0.060573
0.021633
0.020552
0.124392
0.098432
0.098432
0.098432
0.098432
0.049757
0
0.001998
0.245098
2,652
68
81
39
0.921578
0.783183
0
0.444444
0
0
0
0
0
0
0
0
0
1
0.444444
false
0
0
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e899b404b553ed30800e3fc94272b7e3ea2fa8e
342
py
Python
utils/search_tours_data.py
aakanksha1/selenium-python-framework
6a88656cf028fd1d314267d83092f62bd072dbcd
[ "MIT" ]
47
2020-11-04T03:50:37.000Z
2022-03-25T04:24:39.000Z
utils/search_tours_data.py
aakanksha1/selenium-python-framework
6a88656cf028fd1d314267d83092f62bd072dbcd
[ "MIT" ]
3
2021-04-03T19:52:54.000Z
2021-06-02T00:47:54.000Z
utils/search_tours_data.py
aakanksha1/selenium-python-framework
6a88656cf028fd1d314267d83092f62bd072dbcd
[ "MIT" ]
62
2020-08-26T06:58:37.000Z
2022-03-25T05:55:15.000Z
class SearchToursData: def __init__(self, destination, tour_type, start_year, start_month, start_day, adults_num): self.destination = destination self.tour_type = tour_type self.start_year = start_year self.start_month = start_month self.start_day = start_day self.ad...
34.2
95
0.69883
44
342
5
0.318182
0.109091
0.127273
0
0
0
0
0
0
0
0
0
0.236842
342
9
96
38
0.842912
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1
7e8ed43f2f1904c6bb2b80984dbcf2884fe6ec0c
1,318
py
Python
Cron_Philip/Assignments/great_number_game/g_n_g.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Cron_Philip/Assignments/great_number_game/g_n_g.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Cron_Philip/Assignments/great_number_game/g_n_g.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, session import random app = Flask(__name__) app.secret_key = 'ThisIsSecret' @app.route('/') def index(): if 'number' not in session: session['format'] = 'hide' session['number'] = random.randrange(0, 101) print session['number']...
29.288889
69
0.599393
138
1,318
5.666667
0.398551
0.08312
0.076726
0.099744
0.273657
0.273657
0.168798
0.168798
0.168798
0.168798
0
0.003891
0.22003
1,318
44
70
29.954545
0.756809
0
0
0.236842
0
0
0.243736
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7e90a01e845796a9986c308d977cbefc3e480b2b
2,412
py
Python
stereo/preprocess/qc.py
nilsmechtel/stereopy
cd8f34b45ae6667043611e5d02ea46f8ca3f0c7b
[ "MIT" ]
61
2021-04-09T01:00:41.000Z
2022-03-07T06:19:41.000Z
stereo/preprocess/qc.py
nilsmechtel/stereopy
cd8f34b45ae6667043611e5d02ea46f8ca3f0c7b
[ "MIT" ]
20
2021-04-13T10:31:04.000Z
2022-03-29T11:07:30.000Z
stereo/preprocess/qc.py
nilsmechtel/stereopy
cd8f34b45ae6667043611e5d02ea46f8ca3f0c7b
[ "MIT" ]
13
2021-04-16T08:36:08.000Z
2022-02-21T20:44:00.000Z
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:qc.py @time:2021/03/26 """ from scipy.sparse import issparse import numpy as np def cal_qc(data): """ calculate three qc index including the number of genes expressed in the count matrix, the t...
27.724138
115
0.717662
380
2,412
4.271053
0.234211
0.144177
0.073937
0.04313
0.445471
0.372766
0.288355
0.193469
0.168823
0.123229
0
0.013259
0.186982
2,412
86
116
28.046512
0.81438
0.310531
0
0.060606
0
0
0.001954
0
0
0
0
0
0
1
0.212121
false
0
0.060606
0
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7e98bc39b4ef9cf30c026fd6e0c0fd387b8a415a
2,168
py
Python
code/Datasets.py
asdqwe12011/Medical-Datasets-Classification
1f50326e0cc0c08e7e94a0dede771ebb58f6998f
[ "MIT" ]
null
null
null
code/Datasets.py
asdqwe12011/Medical-Datasets-Classification
1f50326e0cc0c08e7e94a0dede771ebb58f6998f
[ "MIT" ]
null
null
null
code/Datasets.py
asdqwe12011/Medical-Datasets-Classification
1f50326e0cc0c08e7e94a0dede771ebb58f6998f
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np def load_cancer(): # data, target, feature_names result_dict = {'features': np.array(["Clump Thickness", "Uniformity of Cell Size", "Uniformity of Cell Shape", ...
42.509804
83
0.332103
146
2,168
4.746575
0.486301
0.11544
0.030303
0.05772
0.366522
0.251082
0.251082
0.251082
0.251082
0.251082
0
0.006508
0.574723
2,168
50
84
43.36
0.745119
0.012454
0
0.093023
0
0
0.185133
0.012623
0
0
0
0
0
1
0.046512
false
0
0.046512
0
0.139535
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7e9d7102f7232ac0c585f02b20d295463ea94073
35,230
py
Python
attic/ngfrontman/wp_frontman/models.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
attic/ngfrontman/wp_frontman/models.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
attic/ngfrontman/wp_frontman/models.py
ludoo/wpkit
0447d941a438e143b0e51b5e73418a0206832823
[ "BSD-3-Clause" ]
null
null
null
import os import sys import re import datetime import warnings from urlparse import urlsplit, urlunsplit, SplitResult from hashlib import md5 from threading import local from types import ModuleType from functools import partial from copy import deepcopy from warnings import warn from django.conf import settings from...
49.272727
172
0.570395
4,127
35,230
4.647686
0.107584
0.039101
0.029248
0.013138
0.393879
0.314634
0.278296
0.242844
0.205047
0.172984
0
0.004369
0.298269
35,230
714
173
49.341737
0.771499
0.029946
0
0.206022
0
0.007924
0.181295
0.048465
0
0
0
0.001401
0
0
null
null
0.00317
0.03962
null
null
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
1
0
0
0
0
0
0
0
0
1
7e9dd60b372c13650d4bd0627802288651ab12e4
13,642
py
Python
src/datalayer/tests/test_allelefilter.py
Dabble-of-DevOps-Bio/ella
e38631d302611a143c9baaa684bcbd014d9734e4
[ "MIT" ]
null
null
null
src/datalayer/tests/test_allelefilter.py
Dabble-of-DevOps-Bio/ella
e38631d302611a143c9baaa684bcbd014d9734e4
[ "MIT" ]
null
null
null
src/datalayer/tests/test_allelefilter.py
Dabble-of-DevOps-Bio/ella
e38631d302611a143c9baaa684bcbd014d9734e4
[ "MIT" ]
null
null
null
""" Integration/unit test for the AlleleFilter module. Since it consists mostly of database queries, it's tested on a live database. """ import pytest from datalayer import AlleleFilter from vardb.datamodel import sample, jsonschema FILTER_CONFIG_NUM = 0 def insert_filter_config(session, filter_config): global ...
33.851117
100
0.567072
1,498
13,642
4.793725
0.092123
0.148726
0.058488
0.055703
0.77524
0.730817
0.690851
0.623312
0.57485
0.497006
0
0.019054
0.299809
13,642
402
101
33.935323
0.732726
0.073889
0
0.478417
0
0
0.202255
0.036528
0
0
0
0
0.061151
1
0.043165
false
0
0.010791
0.017986
0.093525
0
0
0
0
null
0
0
0
0
1
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
1
7ea0964d4240a994e458d0cd605eadbd55befe90
338
py
Python
data/migrations/0098_auto_20200728_1208.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
5
2019-08-29T13:55:47.000Z
2021-11-15T08:30:33.000Z
data/migrations/0098_auto_20200728_1208.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
295
2019-08-19T12:40:29.000Z
2022-01-24T14:03:20.000Z
data/migrations/0098_auto_20200728_1208.py
SIXMON/peps
48c09a951a0193ada7b91c8bb6efc4b1232c3520
[ "MIT" ]
7
2020-05-27T06:28:48.000Z
2021-11-17T10:00:54.000Z
# Generated by Django 3.0.7 on 2020-07-28 12:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('data', '0097_auto_20200724_1157'), ] operations = [ migrations.RenameModel( old_name='Culture', new_name='SimulatorCulture',...
18.777778
47
0.60355
36
338
5.527778
0.861111
0
0
0
0
0
0
0
0
0
0
0.128631
0.286982
338
17
48
19.882353
0.697095
0.133136
0
0
1
0
0.171821
0.079038
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ea30c20ac2c23fa4d1051e2da72ec3f6a3eb07a
6,093
py
Python
pyreach/mock/color_camera_mock.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
13
2021-09-01T01:10:22.000Z
2022-03-05T10:01:52.000Z
pyreach/mock/color_camera_mock.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
null
null
null
pyreach/mock/color_camera_mock.py
google-research/pyreach
f91753ce7a26e77e122eb02a9fdd5a1ce3ce0159
[ "Apache-2.0" ]
6
2021-09-20T21:17:53.000Z
2022-03-14T18:42:48.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
33.11413
80
0.664205
763
6,093
5.197903
0.256881
0.030509
0.03177
0.017398
0.105144
0.062532
0.048916
0.039839
0.021684
0.021684
0
0.007456
0.2516
6,093
183
81
33.295082
0.862281
0.439193
0
0.285714
0
0
0.020846
0.006949
0
0
0
0
0
1
0.246753
false
0.025974
0.077922
0
0.441558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
7ea33830ef3bd7bd0e4813ac9cc4f524e4cc397c
1,896
py
Python
tests/tools/test_aux_methods_sanity_checks.py
nipy/nilabels
b065febc611eef638785651b4642d53bb61f1321
[ "MIT" ]
15
2019-04-09T21:47:47.000Z
2022-02-01T14:11:51.000Z
tests/tools/test_aux_methods_sanity_checks.py
SebastianoF/LabelsManager
b065febc611eef638785651b4642d53bb61f1321
[ "MIT" ]
4
2018-08-21T16:53:04.000Z
2018-08-24T09:13:09.000Z
tests/tools/test_aux_methods_sanity_checks.py
nipy/nilabels
b065febc611eef638785651b4642d53bb61f1321
[ "MIT" ]
1
2019-04-06T20:49:48.000Z
2019-04-06T20:49:48.000Z
from os.path import join as jph from numpy.testing import assert_raises from nilabels.definitions import root_dir from nilabels.tools.aux_methods.sanity_checks import check_pfi_io, check_path_validity, is_valid_permutation from tests.tools.decorators_tools import create_and_erase_temporary_folder_with_a_dummy_nifti_i...
33.857143
113
0.764768
307
1,896
4.241042
0.221498
0.069124
0.130568
0.102151
0.59447
0.434716
0.352535
0.239631
0.162826
0.115207
0
0.026862
0.136076
1,896
55
114
34.472727
0.76801
0.014241
0
0.083333
0
0
0.058382
0.044456
0
0
0
0
0.416667
1
0.138889
false
0
0.138889
0
0.277778
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
1
0
0
0
0
0
0
0
0
0
1
7ea5c039c2a6313bbd319c29eddcfd62c6a8f592
81,016
py
Python
fhir/resources/DSTU2/elementdefinition.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/DSTU2/elementdefinition.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/DSTU2/elementdefinition.py
mmabey/fhir.resources
cc73718e9762c04726cd7de240c8f2dd5313cbe1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/ElementDefinition) on 2019-05-14. # 2019, SMART Health IT. from . import (address, annotation, attachment, codeableconcept, coding, contactpoint, element, fhirdate, fhirreference,...
33.926298
108
0.459107
5,790
81,016
6.412953
0.087565
0.046915
0.035819
0.056287
0.458027
0.42746
0.412916
0.390078
0.267458
0.257494
0
0.001265
0.443826
81,016
2,387
109
33.940511
0.822788
0.044189
0
0.648221
1
0
0.153127
0.015613
0
0
0
0
0
1
0.009223
false
0
0.000659
0
0.023715
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7eacc114b80b03c48fd5158d05ae92fe8baf65fb
254
py
Python
ZergParser.py
loginn/sc2-build-classifier
a1277ea88bb25dc8a7384ffd57e8605d6c790bde
[ "MIT" ]
null
null
null
ZergParser.py
loginn/sc2-build-classifier
a1277ea88bb25dc8a7384ffd57e8605d6c790bde
[ "MIT" ]
null
null
null
ZergParser.py
loginn/sc2-build-classifier
a1277ea88bb25dc8a7384ffd57e8605d6c790bde
[ "MIT" ]
null
null
null
# This file contains parsing functions for Zerg build orders from RaceParser import RaceParser class ZergParser(RaceParser): def __init__(self, player, max_tuples=50): super().__init__(player, max_tuples) self.name = "zerg parser"
25.4
60
0.728346
32
254
5.46875
0.75
0.102857
0.171429
0
0
0
0
0
0
0
0
0.009756
0.192913
254
9
61
28.222222
0.843902
0.228346
0
0
0
0
0.056995
0
0
0
0
0
0
1
0.2
false
0
0.2
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
0
0
0
0
0
1
7eb1fbd494165f9ed36829768503775403f63355
1,212
py
Python
designate/storage/impl_sqlalchemy/migrate_repo/versions/040_fix_record_data.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
designate/storage/impl_sqlalchemy/migrate_repo/versions/040_fix_record_data.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
designate/storage/impl_sqlalchemy/migrate_repo/versions/040_fix_record_data.py
infobloxopen/designate
531a28b8453cfe5641284a16e0342db8d709ab36
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Hewlett-Packard Development Company, L.P. # # Author: Kiall Mac Innes <kiall@hp.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/L...
31.894737
78
0.75165
175
1,212
5.171429
0.674286
0.066298
0.028729
0.035359
0
0
0
0
0
0
0
0.010956
0.171617
1,212
37
79
32.756757
0.890438
0.680693
0
0
0
0
0.032609
0
0
0
0
0
0
1
0.2
false
0.1
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7eb21d9f384dc1a2bbfbe1b2a4e54373bf7b9c87
4,337
py
Python
pyCardiac/signal/processing/filtration/fourier_filter.py
humanphysiologylab/pyCardiac
f0ad0868af233830eb2c4c6cba6136e4c80265c1
[ "MIT" ]
null
null
null
pyCardiac/signal/processing/filtration/fourier_filter.py
humanphysiologylab/pyCardiac
f0ad0868af233830eb2c4c6cba6136e4c80265c1
[ "MIT" ]
4
2019-05-18T12:25:39.000Z
2019-05-24T18:30:12.000Z
pyCardiac/signal/processing/filtration/fourier_filter.py
humanphysiologylab/pyCardiac
f0ad0868af233830eb2c4c6cba6136e4c80265c1
[ "MIT" ]
2
2019-11-06T14:06:32.000Z
2020-12-08T22:04:06.000Z
import numpy as np from scipy.fftpack import rfft, irfft, rfftfreq from ....routines import rescale def fourier_filter(data: np.ndarray, fs: float, lp_freq: float = None, hp_freq: float = None, bs_freqs: list = [], trans_width: float = 1, band_width: float = 1) -> np.ndarray: ...
27.27673
90
0.573207
525
4,337
4.567619
0.171429
0.075063
0.062552
0.041701
0.531276
0.470809
0.38407
0.262302
0.205588
0.205588
0
0.008078
0.314964
4,337
159
91
27.27673
0.799058
0.448928
0
0.15
0
0
0
0
0
0
0
0
0
1
0.125
false
0.15
0.075
0
0.325
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7eb4034cc263895febf9f3b22e2adbb3fb84a4dd
6,006
py
Python
BackEnd/src/app/domain/collections/stocks/stocksQueries.py
JeremieBeaudoin/LavalUniversityStockExchange
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
[ "Apache-2.0" ]
null
null
null
BackEnd/src/app/domain/collections/stocks/stocksQueries.py
JeremieBeaudoin/LavalUniversityStockExchange
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
[ "Apache-2.0" ]
null
null
null
BackEnd/src/app/domain/collections/stocks/stocksQueries.py
JeremieBeaudoin/LavalUniversityStockExchange
3edb64b0a708fdc3ce177cea5ac1d4e0d4fc8b4c
[ "Apache-2.0" ]
null
null
null
from src.app.database.utility.StockUtility import splitTickerAggregate def getAllStockTickersAndSuffixes(): return """SELECT ticker, suffix FROM stocks;""" def getAllStocks(withDetailedAnalytics = True): if withDetailedAnalytics: return """SELECT S.company_uuid, ...
41.708333
110
0.58708
559
6,006
6.030411
0.166369
0.138831
0.078908
0.061703
0.446158
0.394245
0.373776
0.373776
0.362504
0.319786
0
0.008911
0.308691
6,006
143
111
42
0.802987
0
0
0.491935
0
0
0.841208
0.307692
0
0
0
0
0
1
0.072581
false
0
0.008065
0.056452
0.16129
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e18fd503d10b1b96ce4be6cfdf88919f94a176e
1,651
py
Python
test_pomo.py
liuxk99/sjPomotodo
039a9b16d10b71334643ad0a32126e38be7be789
[ "Apache-2.0" ]
null
null
null
test_pomo.py
liuxk99/sjPomotodo
039a9b16d10b71334643ad0a32126e38be7be789
[ "Apache-2.0" ]
null
null
null
test_pomo.py
liuxk99/sjPomotodo
039a9b16d10b71334643ad0a32126e38be7be789
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import re from unittest import TestCase from pomo import Pomo json = u'{' \ u' "uuid": "26a37b6f-6e69-4a2e-ae79-e9c264a4a653",' \ u' "created_at": "2020-03-30T12:25:26.800Z",' \ u' "updated_at": "2020-03-30T12:25:26.800Z",' \ u' "description": "#生活/行/车(福特·蒙迪欧) \'...
25.4
63
0.516051
212
1,651
3.981132
0.40566
0.042654
0.056872
0.046209
0.188389
0.117299
0.052133
0.052133
0
0
0
0.144
0.318595
1,651
64
64
25.796875
0.603556
0.014537
0
0.291667
0
0
0.330049
0.123768
0
0
0
0
0.0625
0
null
null
0
0.0625
null
null
0.208333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e2329d292eb0cba367e2295cd6c100d99a8ae02
283
py
Python
services/backend/src/database/config.py
CarooSilvestri/fastapi-vue
267f27ca8782f4af529a1042f5528f96a51e5e22
[ "MIT" ]
35
2021-08-16T16:04:20.000Z
2022-03-12T23:42:43.000Z
services/backend/src/database/config.py
CarooSilvestri/fastapi-vue
267f27ca8782f4af529a1042f5528f96a51e5e22
[ "MIT" ]
2
2021-08-23T19:49:30.000Z
2022-03-13T05:47:28.000Z
services/backend/src/database/config.py
CarooSilvestri/fastapi-vue
267f27ca8782f4af529a1042f5528f96a51e5e22
[ "MIT" ]
26
2021-08-20T17:26:25.000Z
2022-03-30T01:32:05.000Z
import os TORTOISE_ORM = { "connections": {"default": os.environ.get("DATABASE_URL")}, "apps": { "models": { "models": [ "src.database.models", "aerich.models" ], "default_connection": "default" } } }
18.866667
63
0.466431
22
283
5.863636
0.681818
0
0
0
0
0
0
0
0
0
0
0
0.367491
283
14
64
20.214286
0.72067
0
0
0
0
0
0.363958
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e2561536b63e92fed01489f5d93081eedf75ba6
775
py
Python
src/pipeline/stock-news-pipeline.py
HalmonLui/msft-azure-hacks-2019
c06c0fb7b6dde123ded6bd2571e02b6ad28e079c
[ "MIT" ]
5
2019-08-25T06:22:04.000Z
2020-07-05T14:33:31.000Z
src/pipeline/stock-news-pipeline.py
HalmonLui/msft-azure-hacks-2019
c06c0fb7b6dde123ded6bd2571e02b6ad28e079c
[ "MIT" ]
6
2021-05-06T15:11:11.000Z
2022-03-01T23:11:18.000Z
src/pipeline/stock-news-pipeline.py
HalmonLui/msft-azure-hacks-2019
c06c0fb7b6dde123ded6bd2571e02b6ad28e079c
[ "MIT" ]
2
2019-10-07T08:02:16.000Z
2022-02-14T20:14:05.000Z
import datetime import json from airflow import DAG from airflow import models from airflow.operators.python_operator import PythonOperator from airflow.operators.bash_operator import BashOperator from airflow.contrib.hooks.mongo_hook import MongoHook DEFAULT_ARGS = { 'start_date': datetime.datetime.today(), ...
29.807692
201
0.756129
101
775
5.60396
0.60396
0.097173
0.060071
0
0
0
0
0
0
0
0
0.025411
0.136774
775
25
202
31
0.820628
0
0
0
0
0.055556
0.307097
0.16
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
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
0
0
0
0
1
0e2a9b28d1f29b270444b867f6ee47e400c66029
285
py
Python
coding_intereview/1450. Number of Students Doing Homework at a Given Time.py
Jahidul007/Python-Bootcamp
3c870587465ff66c2c1871c8d3c4eea72463abda
[ "MIT" ]
2
2020-12-07T16:07:07.000Z
2020-12-07T16:08:53.000Z
coding_intereview/1450. Number of Students Doing Homework at a Given Time.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
null
null
null
coding_intereview/1450. Number of Students Doing Homework at a Given Time.py
purusharthmalik/Python-Bootcamp
2ed1cf886d1081de200b0fdd4cb4e28008c7e3d1
[ "MIT" ]
1
2020-10-03T16:38:02.000Z
2020-10-03T16:38:02.000Z
class Solution: def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: working = 0 for i, stu in enumerate(startTime): if stu <= queryTime and endTime[i] >= queryTime: working += 1 return working
35.625
91
0.582456
33
285
5.030303
0.636364
0.084337
0
0
0
0
0
0
0
0
0
0.010204
0.312281
285
8
92
35.625
0.836735
0
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
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
0
0
0
0
0
1
0e2c84b40495f574bf901420804435b1f74bab1e
26,807
py
Python
tests/tests_pipeline/test_pipeline_helper.py
Anbang-Hu/shrike
78189984c85696a9a9feaadb72aa471cf2409796
[ "MIT" ]
null
null
null
tests/tests_pipeline/test_pipeline_helper.py
Anbang-Hu/shrike
78189984c85696a9a9feaadb72aa471cf2409796
[ "MIT" ]
null
null
null
tests/tests_pipeline/test_pipeline_helper.py
Anbang-Hu/shrike
78189984c85696a9a9feaadb72aa471cf2409796
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. """Unit tests for pipeline_helper""" from functools import lru_cache import pytest import sys from omegaconf import OmegaConf from pathlib import Path from shrike.pipeline import AMLPipelineHelper import yaml import os import shutil from shri...
37.180305
144
0.700563
3,162
26,807
5.612587
0.119545
0.06942
0.037189
0.047163
0.775962
0.704682
0.666084
0.622415
0.58917
0.530343
0
0.007701
0.200768
26,807
720
145
37.231944
0.82063
0.059499
0
0.495712
0
0.013722
0.183085
0.066388
0
0
0
0
0.19211
1
0.041166
false
0.022298
0.017153
0
0.060034
0
0
0
0
null
0
0
0
0
1
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
1
0e2d6cd10e223c1c27987af6780881580df76f67
269
py
Python
setup.py
adonskoi/integrity
c2d345061cf2bab8a9ee9a1af85dd98b0ac6e1cf
[ "MIT" ]
null
null
null
setup.py
adonskoi/integrity
c2d345061cf2bab8a9ee9a1af85dd98b0ac6e1cf
[ "MIT" ]
null
null
null
setup.py
adonskoi/integrity
c2d345061cf2bab8a9ee9a1af85dd98b0ac6e1cf
[ "MIT" ]
null
null
null
from setuptools import setup setup( name="integrity", version="0.1.0", author="Aleksandr Donskoi", author_email="donskoy.alexander@gmail.com", packages=["integrity"], entry_points={"console_scripts": ["integrity = integrity.__main__:main"]}, )
24.454545
78
0.687732
30
269
5.933333
0.766667
0
0
0
0
0
0
0
0
0
0
0.013158
0.152416
269
10
79
26.9
0.767544
0
0
0
0
0
0.434944
0.185874
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0e38a1b35a7a685ad88dcede28a2fbef8eef43ba
335
py
Python
web/javarailsite/learn/migrations/0013_remove_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
2
2019-02-06T23:15:21.000Z
2019-02-07T22:34:29.000Z
web/javarailsite/learn/migrations/0013_remove_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
null
null
null
web/javarailsite/learn/migrations/0013_remove_challenge_has_indent.py
wilfp/JavaRail
8dc708ded152b036dae8e73e95b24fb91c20c852
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2019-03-09 13:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('learn', '0012_challenge_has_indent'), ] operations = [ migrations.RemoveField( model_name='challenge', name='has_indent', ...
18.611111
47
0.6
36
335
5.444444
0.777778
0.091837
0
0
0
0
0
0
0
0
0
0.079832
0.289552
335
17
48
19.705882
0.743697
0.134328
0
0
1
0
0.170139
0.086806
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e48e026e36292cc7e981a75f69a5c17e2a075fd
1,452
py
Python
database/mongoDB.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
database/mongoDB.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
database/mongoDB.py
hero0926/PythonPlayground
2c1a6cdb33b6a46d74b94c9588e95e9b053cac07
[ "MIT" ]
null
null
null
# 몽고디비 from distutils.log import warn as printf from random import randrange as rand from pymongo import Connection, errors from ushuffle_dbU import DBNAME, randName, FIELDS, tformat, cformat COLLECTION = 'users' class MongoTest(object) : def __init__(self) : try : cxn = Connection() except errors.Aut...
21.043478
78
0.628099
202
1,452
4.485149
0.366337
0.069536
0.02649
0.015453
0.14128
0.101545
0.101545
0.101545
0.101545
0.101545
0
0.010753
0.231405
1,452
68
79
21.352941
0.801075
0.002755
0
0.18
0
0
0.032503
0
0
0
0
0
0
0
null
null
0
0.08
null
null
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e49e0e54042b6fce39c9e3bad7a9b6177c61e4c
523
py
Python
realestate/listing/templatetags/extra_functions.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
42
2015-02-22T10:00:02.000Z
2021-10-31T08:56:40.000Z
realestate/listing/templatetags/extra_functions.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
8
2015-03-07T14:16:45.000Z
2019-02-26T15:37:01.000Z
realestate/listing/templatetags/extra_functions.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
23
2015-01-08T19:32:33.000Z
2020-11-16T08:07:02.000Z
from django.contrib.humanize.templatetags.humanize import intcomma from django import template from realestate.listing.models import Listing register = template.Library() @register.filter def currency(dollars): try: dollars = float(dollars) except (ValueError, TypeError): return '$0' retu...
26.15
66
0.728489
60
523
6.316667
0.633333
0.05277
0
0
0
0
0
0
0
0
0
0.004525
0.154876
523
20
67
26.15
0.852941
0
0
0
0
0
0.05916
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0e5630ebd9e948f27689377a1bd1c4e72830948f
2,420
py
Python
Region/utils.py
kirilenkobm/bioinf_stuff
e760952794a4af3053c2e1195497d4c5fcda9ac6
[ "MIT" ]
null
null
null
Region/utils.py
kirilenkobm/bioinf_stuff
e760952794a4af3053c2e1195497d4c5fcda9ac6
[ "MIT" ]
null
null
null
Region/utils.py
kirilenkobm/bioinf_stuff
e760952794a4af3053c2e1195497d4c5fcda9ac6
[ "MIT" ]
null
null
null
from os import stat class Color: """Color class.""" color_name_dict = { "white": (255, 255, 255), "black": (0, 0, 0), "grey": (128, 128, 128), "red": (255, 0, 0), "blue": (0, 0, 255), "green": (0, 255, 0) } # TODO: continue this / maybe better colors d...
29.876543
66
0.527273
332
2,420
3.611446
0.328313
0.090075
0.010008
0.030025
0.130942
0.130942
0.130942
0.097581
0.025021
0
0
0.03949
0.35124
2,420
80
67
30.25
0.724204
0.199587
0
0.267857
0
0
0.040169
0
0
0
0
0.0125
0.053571
1
0.107143
false
0.017857
0.017857
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
1
0
0
0
0
0
0
0
0
0
0
1
0e66aa2bbf6245ae49542c0315ab7624309337c9
959
py
Python
src/usecases/update/update_blog.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
13
2021-07-03T01:06:54.000Z
2022-03-24T12:19:56.000Z
src/usecases/update/update_blog.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
1
2021-07-03T00:06:20.000Z
2021-07-03T00:06:20.000Z
src/usecases/update/update_blog.py
lokaimoma/BLOGG
c8d56e28e13a30951caf0e123c27144b435231b4
[ "MIT" ]
2
2021-07-10T13:59:21.000Z
2022-02-24T18:09:25.000Z
from datetime import datetime from typing import Callable from sqlalchemy import select from sqlalchemy.ext.asyncio import AsyncSession from src.domain_logic.blog_domain import BlogDomain from src.model import get_database_session from src.model.blog import Blog from src.usecases.insert.insert_blog import insert_blog...
35.518519
100
0.711157
129
959
5.077519
0.372093
0.073282
0.036641
0.058015
0
0
0
0
0
0
0
0
0.221064
959
26
101
36.884615
0.876841
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.380952
0
0.428571
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
0
0
0
0
1
0e6cdc011f510064d6e8fc5a116b62c0b0210e87
769
py
Python
db.py
Hack-OR/hackor-teams
24f83aade4cb8599e6bc4818db811e6dba9ce7e0
[ "BSD-3-Clause" ]
null
null
null
db.py
Hack-OR/hackor-teams
24f83aade4cb8599e6bc4818db811e6dba9ce7e0
[ "BSD-3-Clause" ]
7
2021-03-26T23:21:44.000Z
2021-03-27T00:32:03.000Z
db.py
Hack-OR/hackor-teams
24f83aade4cb8599e6bc4818db811e6dba9ce7e0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # XXX: this file is kind of a hack, but this discord bot is only gonna be used # once, so I don't think it matters much. import yaml import os db = { 'users': {} } def read() -> None: global db try: with open('db.yml', 'r') as f: db = yaml.safe_load(f) exc...
22.617647
79
0.589077
122
769
3.704918
0.622951
0.044248
0.053097
0.057522
0.066372
0.066372
0
0
0
0
0
0.001805
0.279584
769
33
80
23.30303
0.814079
0.364109
0
0.105263
0
0
0.165975
0
0
0
0
0
0
1
0.105263
false
0.052632
0.105263
0
0.210526
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0e6e2b24cae6b13d2cf14b50b89d07aa21d7b2dd
1,431
py
Python
2017/quals/2017-re-food/generate_flag.py
tonghuaroot/google-ctf
46cb7676b4f8e1957bec352e76fa8f335cee1bd5
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2017/quals/2017-re-food/generate_flag.py
tonghuaroot/google-ctf
46cb7676b4f8e1957bec352e76fa8f335cee1bd5
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2017/quals/2017-re-food/generate_flag.py
tonghuaroot/google-ctf
46cb7676b4f8e1957bec352e76fa8f335cee1bd5
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
24.254237
74
0.610762
250
1,431
3.48
0.436
0.018391
0.013793
0.013793
0.16092
0.144828
0.144828
0.117241
0.117241
0.117241
0
0.043884
0.251572
1,431
58
75
24.672414
0.768441
0.401817
0
0.121212
0
0
0.076537
0.047679
0
0
0.011292
0
0
0
null
null
0
0.030303
null
null
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e6e7467f93441ebe45a43b525a41a20a1028893
375
py
Python
clinvar/migrations/0007_alter_clinvar_details.py
snesic/varfish-server
2e75c4eeda6b1fe0b1ea88ff3159a40fbceb8c8a
[ "MIT" ]
14
2019-09-30T12:44:17.000Z
2022-02-04T14:45:16.000Z
clinvar/migrations/0007_alter_clinvar_details.py
snesic/varfish-server
2e75c4eeda6b1fe0b1ea88ff3159a40fbceb8c8a
[ "MIT" ]
244
2021-03-26T15:13:15.000Z
2022-03-31T15:48:04.000Z
clinvar/migrations/0007_alter_clinvar_details.py
snesic/varfish-server
2e75c4eeda6b1fe0b1ea88ff3159a40fbceb8c8a
[ "MIT" ]
8
2020-05-19T21:55:13.000Z
2022-03-31T07:02:58.000Z
# Generated by Django 3.2.9 on 2021-11-29 14:43 from django.db import migrations import varfish.utils class Migration(migrations.Migration): dependencies = [ ("clinvar", "0006_clinvarpathogenicgenes"), ] operations = [ migrations.AlterField( model_name="clinvar", name="detai...
20.833333
82
0.648
40
375
6.025
0.775
0.099585
0
0
0
0
0
0
0
0
0
0.066202
0.234667
375
17
83
22.058824
0.773519
0.12
0
0
1
0
0.146341
0.082317
0
0
0
0
0
1
0
false
0
0.181818
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e77e279fbd703aa4ebc8970103d0c07adfd29f7
1,009
py
Python
setup.py
contributor123/fuzzywuzzy
84d90a3ce1a71e18b57870f485f6375f120537d8
[ "MIT" ]
1
2015-05-30T03:45:17.000Z
2015-05-30T03:45:17.000Z
setup.py
devil-gkz/fuzzywuzzy
5f0eb1b9517600a3fb59fb0233904789683a11ae
[ "MIT" ]
null
null
null
setup.py
devil-gkz/fuzzywuzzy
5f0eb1b9517600a3fb59fb0233904789683a11ae
[ "MIT" ]
1
2020-03-24T19:08:42.000Z
2020-03-24T19:08:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014 SeatGeek # This file is part of fuzzywuzzy. from fuzzywuzzy import __version__ import os try: from setuptools import setup except ImportError: from distutils.core import setup def open_file(fname): return open(os.path.join(os.path.dirn...
25.225
63
0.656095
117
1,009
5.512821
0.589744
0.147287
0.193798
0.08062
0
0
0
0
0
0
0
0.014963
0.205154
1,009
39
64
25.871795
0.789277
0.102081
0
0
0
0
0.381375
0
0
0
0
0
0
1
0.035714
false
0
0.178571
0.035714
0.25
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
0
0
0
0
0
0
0
0
1
0e825a101b72e2d8717a51d0f1c752b3e775ceec
25,035
py
Python
tests/test_deduplication.py
jhnphm/boar
78cf2b109026cd2065b9ee4479fd87a1ea3b7825
[ "Apache-2.0" ]
null
null
null
tests/test_deduplication.py
jhnphm/boar
78cf2b109026cd2065b9ee4479fd87a1ea3b7825
[ "Apache-2.0" ]
null
null
null
tests/test_deduplication.py
jhnphm/boar
78cf2b109026cd2065b9ee4479fd87a1ea3b7825
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2010 Mats Ekberg # # 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...
42.941681
123
0.629559
2,831
25,035
5.448252
0.137407
0.075726
0.027814
0.024507
0.622601
0.586294
0.541364
0.514004
0.472121
0.439315
0
0.086513
0.23587
25,035
582
124
43.015464
0.71976
0.082245
0
0.486486
0
0
0.14589
0.072028
0
0
0
0
0.191441
0
null
null
0.009009
0.027027
null
null
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e82b4b7d38b24977d63684ee7dfc433a1dad32e
3,385
py
Python
Python/redis.set.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
4
2017-04-30T18:28:19.000Z
2018-12-08T15:46:37.000Z
Python/redis.set.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
1
2021-09-22T20:11:36.000Z
2021-09-22T20:11:36.000Z
Python/redis.set.py
MarsBighead/mustang
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
[ "MIT" ]
null
null
null
#!/usr/bin/python import redis client = redis.Redis(host='localhost', port=6379, db=0) if client.ping(): print "Connect to server successfully!" else: print "Connect to server failed!" # Build a set myset (sadd), # redis support add multiple, maybe python module limit it to one client.sadd('myset','redis') c...
35.631579
90
0.708124
495
3,385
4.842424
0.250505
0.030038
0.050063
0.056738
0.268669
0.251564
0.234043
0.097622
0.097622
0.097622
0
0.008262
0.141802
3,385
94
91
36.010638
0.816867
0.395864
0
0.04
0
0
0.41646
0
0
0
0
0
0
0
null
null
0
0.02
null
null
0.32
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0e84ee24c409883daeea81599edbe242490b044e
840
py
Python
setup.py
Pierre-Thibault/neo-observer
642d6bf77eaa2c5796400a6b1e401eb9bbcbf70d
[ "MIT" ]
null
null
null
setup.py
Pierre-Thibault/neo-observer
642d6bf77eaa2c5796400a6b1e401eb9bbcbf70d
[ "MIT" ]
1
2019-10-31T00:25:48.000Z
2019-10-31T23:35:03.000Z
setup.py
Pierre-Thibault/neo-observer
642d6bf77eaa2c5796400a6b1e401eb9bbcbf70d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup(name='neo-observer', py_modules=['neo_observer'], packages=[], install_requires=[], version='1.0.1', description='Python module implementing the observer pattern using a centralized registry', keywords=['messaging'], au...
33.6
97
0.592857
82
840
5.987805
0.756098
0.089613
0
0
0
0
0
0
0
0
0
0.009901
0.278571
840
24
98
35
0.80033
0.02381
0
0
0
0
0.492665
0.031785
0
0
0
0
0
1
0
true
0
0.05
0
0.05
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0e96fe81798f2ebec1dab84600a0ef93754bf2ed
11,356
py
Python
atom/nucleus/python/nucleus_api/models/account_overview_vo.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/account_overview_vo.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/account_overview_vo.py
sumit4-ttn/SDK
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Atom API The Hydrogen Atom API # noqa: E501 OpenAPI spec version: 1.7.0 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AccountOverviewVO(object): ...
30.202128
262
0.630504
1,282
11,356
5.340874
0.098284
0.038557
0.147802
0.13013
0.552797
0.452169
0.388053
0.234701
0.183438
0.110998
0
0.014545
0.285576
11,356
375
263
30.282667
0.82941
0.35074
0
0.079268
1
0
0.093049
0.018986
0
0
0
0
0
1
0.170732
false
0
0.018293
0
0.310976
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e9b1ca422054f735b67a360df54610b4ec7782a
3,003
py
Python
zentral/contrib/inventory/migrations/0023_puppetdb.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
zentral/contrib/inventory/migrations/0023_puppetdb.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
zentral/contrib/inventory/migrations/0023_puppetdb.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-15 13:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('inventory', '0022_auto_20170530_0724'), ] operatio...
41.136986
138
0.5671
270
3,003
6.118519
0.333333
0.099879
0.039346
0.051453
0.487288
0.487288
0.412228
0.299637
0.299637
0.299637
0
0.018519
0.298701
3,003
72
139
41.708333
0.765907
0.022644
0
0.476923
1
0
0.171214
0.05457
0
0
0
0
0
1
0
false
0
0.046154
0
0.092308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0e9e8d817a8c7be0eca0cb26a84bdbc9404487ee
881
py
Python
Convert_a_Number_to_Hexadecimal.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
1
2017-05-21T04:28:37.000Z
2017-05-21T04:28:37.000Z
Convert_a_Number_to_Hexadecimal.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
Convert_a_Number_to_Hexadecimal.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # # Author : TangHanYi # E-mail : thydeyx@163.com # Create Date : 2016-11-21 04:35:06 PM # Last modified : 2016-11-21 04:51:12 PM # File Name : Convert_a_Number_to_Hexadecimal.py # Desc : class Solution(object): def toHex(self, num): if num == 0: return "0" he...
20.488372
60
0.535755
143
881
3.216783
0.496504
0.026087
0.03913
0.043478
0
0
0
0
0
0
0
0.102362
0.279228
881
42
61
20.97619
0.622047
0.253121
0
0.066667
0
0
0.023112
0
0
0
0
0
0
0
null
null
0
0
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0ea0083d7b30f267be29b84f07fe03b15981ee67
1,210
py
Python
FLASH4.2.1_save/tools/python/flmake/log.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
1
2021-04-22T09:24:08.000Z
2021-04-22T09:24:08.000Z
FLASH4.2.1_save/tools/python/flmake/log.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
FLASH4.2.1_save/tools/python/flmake/log.py
mtsafarzadeh/FLASHverES
4c644e63efa7ee49e35293acb72dd2ea75da77f4
[ "Apache-2.0" ]
null
null
null
import os from datetime import datetime USAGE = ("Displays the history of all (or N) previously\n" "executed flmake commands and their metadata.\n\n" "usage: flmake log [-n <N>]") def _parse_row(row): t, cmd, user, logid, runid, d, msg = row.split(',', 6) return float(t), cmd, user, logid, r...
30.25
69
0.503306
156
1,210
3.878205
0.423077
0.013223
0.039669
0.064463
0.109091
0.109091
0.109091
0
0
0
0
0.007389
0.328926
1,210
39
70
31.025641
0.737685
0
0
0
0
0
0.24055
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0ea6297d851153a462bffa7821f01c8d526a7052
1,019
py
Python
Player.py
Vrim/TicTacToe
075d10461489f9b8e0c03d13d106439e7ec9fc46
[ "Unlicense" ]
null
null
null
Player.py
Vrim/TicTacToe
075d10461489f9b8e0c03d13d106439e7ec9fc46
[ "Unlicense" ]
null
null
null
Player.py
Vrim/TicTacToe
075d10461489f9b8e0c03d13d106439e7ec9fc46
[ "Unlicense" ]
null
null
null
from __future__ import annotations from typing import Any, Tuple, List class Player(): """ Tic Tac Toe Author: Cameron Fairchild Date: Oct. 11, 2019 ----- Player ----- Player class represents the Player(s) Keeps track of Players in the game and their scores, symbols, names. """ symbol: str name: str _wins:...
19.596154
69
0.63788
147
1,019
4.231293
0.482993
0.040193
0.041801
0.051447
0.083601
0.083601
0
0
0
0
0
0.028256
0.201178
1,019
52
70
19.596154
0.735872
0.393523
0
0
0
0
0.013889
0
0
0
0
0
0
1
0.136364
false
0
0.136364
0.045455
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0eab314fe74253f33261d7f124507e2c21506309
591
py
Python
tests/factories/net.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
tests/factories/net.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
tests/factories/net.py
marcelb98/pycroft
34cc59d9ab7fdc0c20b09b4851111048a9f64d90
[ "Apache-2.0" ]
null
null
null
import factory from ipaddr import IPv4Network from pycroft.model.net import VLAN, Subnet from tests.factories.base import BaseFactory class VLANFactory(BaseFactory): class Meta: model = VLAN name = factory.Sequence(lambda n: "vlan{}".format(n+1)) vid = factory.Sequence(lambda n: n+1) class Sub...
24.625
73
0.707276
72
591
5.763889
0.486111
0.115663
0.096386
0.120482
0
0
0
0
0
0
0
0.01046
0.191201
591
23
74
25.695652
0.857741
0
0
0.125
0
0
0.035533
0
0
0
0
0
0
1
0
false
0
0.25
0
0.8125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0eae444bc4c9e540ca3bacd1aaf9f5db447c39da
460
py
Python
pixie_plugin/task_queue/redis_queue.py
bpschmitt/nr-pixie-security-plugin
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
[ "Apache-2.0" ]
null
null
null
pixie_plugin/task_queue/redis_queue.py
bpschmitt/nr-pixie-security-plugin
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
[ "Apache-2.0" ]
2
2021-12-13T22:43:23.000Z
2021-12-14T00:00:39.000Z
pixie_plugin/task_queue/redis_queue.py
bpschmitt/nr-pixie-security-plugin
adadfaebbd79eb04cf1d8e768fb5f0a50effd5ba
[ "Apache-2.0" ]
2
2022-02-14T23:10:24.000Z
2022-02-15T04:26:19.000Z
from urllib.parse import urlparse from redis import Redis from rq import Queue def redis_connection(config): url = urlparse(config["REDIS_URL"]) return Redis(host=url.hostname, port=url.port, password=config["REDIS_PASSWORD"]) def redis_queue(config): redis = redis_connection(config) queue = Queue(...
23
85
0.706522
60
460
5.233333
0.333333
0.175159
0.133758
0
0
0
0
0
0
0
0
0
0.191304
460
19
86
24.210526
0.844086
0
0
0
0
0
0.128261
0
0
0
0
0
0
1
0.142857
false
0.071429
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0eb0b4b7a1e316ffebb8d42994727e7d03f0507a
21,484
py
Python
files/download/lib/mwbot.py
ikn/ikn.org.uk
9ac246048429086be162bd24acfcbb9ccb515815
[ "BSD-3-Clause" ]
null
null
null
files/download/lib/mwbot.py
ikn/ikn.org.uk
9ac246048429086be162bd24acfcbb9ccb515815
[ "BSD-3-Clause" ]
null
null
null
files/download/lib/mwbot.py
ikn/ikn.org.uk
9ac246048429086be162bd24acfcbb9ccb515815
[ "BSD-3-Clause" ]
null
null
null
"""A MediaWiki browser and editor. These are functions to fetch and process data from, and make changes to, MediaWiki installations. Everything is done through the Wiki class. Python version: 2. Release: 6. Licensed under the GNU Lesser General Public License, version 3; if this was not included, you can find it he...
32.8
123
0.544778
2,592
21,484
4.463735
0.167438
0.012705
0.012446
0.011668
0.23898
0.188591
0.160588
0.126188
0.086258
0.062057
0
0.00388
0.328198
21,484
654
124
32.850153
0.797755
0.051666
0
0.300813
0
0.00271
0.154848
0
0
0
0
0.009174
0
0
null
null
0.00813
0.0271
null
null
0.00813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7eb8ed4dfe0ef14414c3bfd7dbe2bc81ff449a38
494
py
Python
djangoapp/migrations/0007_auto_20170607_0426.py
Laure129/findheadposes
dec268828bc80959f9c896d226f82afbcec8093a
[ "Unlicense" ]
null
null
null
djangoapp/migrations/0007_auto_20170607_0426.py
Laure129/findheadposes
dec268828bc80959f9c896d226f82afbcec8093a
[ "Unlicense" ]
null
null
null
djangoapp/migrations/0007_auto_20170607_0426.py
Laure129/findheadposes
dec268828bc80959f9c896d226f82afbcec8093a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-06-07 01:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djangoapp', '0006_remove_gallery_slug'), ] operations = [ migrations.AlterFie...
23.52381
94
0.62753
54
494
5.518519
0.777778
0
0
0
0
0
0
0
0
0
0
0.053763
0.246964
494
20
95
24.7
0.747312
0.133603
0
0
1
0
0.127059
0.056471
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ebdbc5ac157057f81efef7527161066bd304eb1
2,216
py
Python
api/migrations/0003_auto_20170129_1135.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
null
null
null
api/migrations/0003_auto_20170129_1135.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
5
2021-03-19T02:58:32.000Z
2022-03-11T23:57:30.000Z
api/migrations/0003_auto_20170129_1135.py
lendierickx/comics-django
3f5c6e85c89ff157dbf67179ea3b9007d7de446c
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-01-29 11:35 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20160525_1726...
51.534884
805
0.59657
317
2,216
4.113565
0.242902
0.03681
0.053681
0.084356
0.377301
0.377301
0.377301
0.377301
0.377301
0.377301
0
0.079038
0.212094
2,216
42
806
52.761905
0.667812
0.030235
0
0.514286
1
0
0.239049
0.010718
0
0
0
0
0
1
0
false
0
0.114286
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ec56791d00c6de293cc2033a0e4e4a8cf4defaa
6,205
py
Python
movies-apis/custom-recipes/movies-apis-omdb-details/recipe.py
acloudfrontier/dataiku-contrib
726ed46492cd522c50f75b687f87a1272ea946d8
[ "Apache-2.0" ]
1
2020-10-11T14:53:53.000Z
2020-10-11T14:53:53.000Z
movies-apis/custom-recipes/movies-apis-omdb-details/recipe.py
acloudfrontier/dataiku-contrib
726ed46492cd522c50f75b687f87a1272ea946d8
[ "Apache-2.0" ]
null
null
null
movies-apis/custom-recipes/movies-apis-omdb-details/recipe.py
acloudfrontier/dataiku-contrib
726ed46492cd522c50f75b687f87a1272ea946d8
[ "Apache-2.0" ]
null
null
null
import pandas as pd import requests import dataiku from dataiku.customrecipe import * input_dataset = dataiku.Dataset(get_input_names_for_role('input_dataset')[0]) lookup_col = get_recipe_config().get('title_col','') lookup_name = 'title_queried' if lookup_col != '': use_id = False else: use_id = True loo...
46.30597
108
0.558259
624
6,205
5.402244
0.254808
0.065263
0.058143
0.058736
0.299021
0.291902
0.275883
0.25749
0.211213
0.211213
0
0.008
0.254633
6,205
133
109
46.654135
0.720865
0.009347
0
0.170732
0
0
0.316732
0
0
0
0
0
0.00813
0
null
null
0
0.03252
null
null
0.04065
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ec598334de55349990b6ef8907d1ead3f76de40
731
py
Python
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/Beginners-Python-Examples-master/square_root_algorithm.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
5
2021-06-02T23:44:25.000Z
2021-12-27T16:21:57.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/Beginners-Python-Examples-master/square_root_algorithm.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
22
2021-05-31T01:33:25.000Z
2021-10-18T18:32:39.000Z
WEEKS/CD_Sata-Structures/_RESOURCES/python-prac/Overflow/Beginners-Python-Examples-master/square_root_algorithm.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
3
2021-06-19T03:37:47.000Z
2021-08-31T00:49:51.000Z
""" Function uses prime factorisation method to find square root of number """ def prime_factors(c): pos = 2 factors = [] while (pos <= c): if (c % pos == 0): c = c // pos factors.append(pos) continue else: pos = pos + 1 return factors def extract_common(li): final = [] if (len(li) % 2 != 0): ...
19.236842
62
0.604651
119
731
3.621849
0.403361
0.069606
0.064965
0.078886
0.12993
0.12993
0
0
0
0
0
0.018315
0.253078
731
38
62
19.236842
0.771062
0
0
0.15625
0
0
0.101227
0
0
0
0
0
0
0
null
null
0
0
null
null
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ec91b8f80ca3ae2389182fdd0715abaf33d9261
749
py
Python
apps/main/migrations/0005_auto_20180213_2216.py
andrewixl/peopleshop
51f9d8595838bdd0f4802b49d7508a8d9ab1b5f9
[ "MIT" ]
null
null
null
apps/main/migrations/0005_auto_20180213_2216.py
andrewixl/peopleshop
51f9d8595838bdd0f4802b49d7508a8d9ab1b5f9
[ "MIT" ]
6
2020-02-11T23:27:43.000Z
2022-03-11T23:15:41.000Z
apps/main/migrations/0005_auto_20180213_2216.py
andrewixl/peopleshop
51f9d8595838bdd0f4802b49d7508a8d9ab1b5f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-02-14 06:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0004_apparel_shipping'), ] operations = [ migrations.AddField( ...
27.740741
97
0.626168
79
749
5.708861
0.594937
0.10643
0.070953
0.10643
0.297118
0.297118
0
0
0
0
0
0.052347
0.260347
749
26
98
28.807692
0.761733
0.090788
0
0.210526
1
0
0.172566
0.030973
0
0
0
0
0
1
0
false
0
0.105263
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ec9d9a3c526f3b0188c62b5ac00ecf7081d7b40
12,685
py
Python
src/get.causal.v2b.py
gxiaolab/cGMAS
8e736749342bf642c3942f7761f33ae9be6fd92c
[ "Apache-2.0" ]
1
2021-03-22T07:26:03.000Z
2021-03-22T07:26:03.000Z
src/get.causal.v2b.py
gxiaolab/cGMAS
8e736749342bf642c3942f7761f33ae9be6fd92c
[ "Apache-2.0" ]
3
2021-03-28T06:47:24.000Z
2021-08-20T07:04:20.000Z
src/get.causal.v2b.py
gxiaolab/cGMAS
8e736749342bf642c3942f7761f33ae9be6fd92c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import argparse import glob from time import strftime import os import time from collections import defaultdict import numpy as np ########### # If 1 candid causal snv has multiple tags, need to make sure all the candid-tag pairs are predicted to be causal!! # => real causal snv doesn't m...
45.629496
184
0.61285
2,065
12,685
3.753995
0.171429
0.071207
0.08372
0.05418
0.476522
0.43434
0.401574
0.368292
0.35307
0.35307
0
0.020903
0.196689
12,685
277
185
45.794224
0.739843
0.312495
0
0.319149
0
0.005319
0.11994
0.035831
0
0
0
0
0
0
null
null
0
0.042553
null
null
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ec9ed5e27d46a68f5d5d1bbab2fd8357897b4b4
5,500
py
Python
scripts/check_license.py
SanctuaryComponents/layer_management
d3927a6ae5e6c9230d55b6ba4195d434586521c1
[ "Apache-2.0" ]
1
2020-10-21T05:24:10.000Z
2020-10-21T05:24:10.000Z
scripts/check_license.py
SanctuaryComponents/layer_management
d3927a6ae5e6c9230d55b6ba4195d434586521c1
[ "Apache-2.0" ]
null
null
null
scripts/check_license.py
SanctuaryComponents/layer_management
d3927a6ae5e6c9230d55b6ba4195d434586521c1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ########################################################################### # # Copyright 2013 BMW Car IT GmbH # # 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 # # ht...
35.714286
123
0.633455
759
5,500
4.391304
0.272727
0.055806
0.036004
0.057006
0.275428
0.242124
0.234623
0.189919
0.154815
0.152715
0
0.013308
0.234909
5,500
153
124
35.947712
0.778755
0.248364
0
0.135135
0
0.027027
0.131796
0.012525
0
0
0
0
0
0
null
null
0
0.040541
null
null
0.013514
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ed5cbc2d1d17eca789c33367998e7392ed5a75b
716
py
Python
utils/files.py
phenmp/atassist-api
01320c6251c5d8f65ece4e184c005d75dc680636
[ "MIT" ]
null
null
null
utils/files.py
phenmp/atassist-api
01320c6251c5d8f65ece4e184c005d75dc680636
[ "MIT" ]
null
null
null
utils/files.py
phenmp/atassist-api
01320c6251c5d8f65ece4e184c005d75dc680636
[ "MIT" ]
null
null
null
from os.path import dirname, join, isfile # Constants PROJECT_ROOT_DIRECTORY = dirname(dirname(__file__)) DUMP_FILE_SUFFIX = "_dump.csv" def getFullPath(*path): return join(PROJECT_ROOT_DIRECTORY, *path) def getUserLastDumpFilePath(userId): return getFullPath('resources', 'dump_files', "{0}{1}".format(userId...
29.833333
98
0.671788
89
716
5.247191
0.516854
0.047109
0.085653
0.059957
0
0
0
0
0
0
0
0.005181
0.191341
716
23
99
31.130435
0.801382
0.065642
0
0
0
0
0.06015
0
0
0
0
0
0
1
0.2
false
0
0.066667
0.133333
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
7ee20dd84332bd6229f4b3bb889fa6296cf897d2
3,575
py
Python
map_label_tool/py_proto/modules/v2x/proto/v2x_service_obu_to_car_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/v2x/proto/v2x_service_obu_to_car_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
null
null
null
map_label_tool/py_proto/modules/v2x/proto/v2x_service_obu_to_car_pb2.py
freeclouds/OpenHDMap
b61c159fbdf4f50ae1d1650421596b28863f39be
[ "Apache-2.0" ]
1
2021-05-26T08:42:11.000Z
2021-05-26T08:42:11.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: modules/v2x/proto/v2x_service_obu_to_car.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
41.091954
600
0.784336
479
3,575
5.528184
0.2881
0.030211
0.060801
0.033988
0.383308
0.310801
0.286631
0.286631
0.245468
0.163142
0
0.043329
0.102657
3,575
86
601
41.569767
0.782107
0.069371
0
0.268657
1
0.014925
0.266787
0.237278
0
0
0
0
0
1
0
false
0
0.119403
0
0.119403
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7eeeb0195041aff3ca7cff4516956812f24e9221
41,838
py
Python
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/GridParameters.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/GridParameters.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/AutoDockTools/GridParameters.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by ############################################################################# # # Author: Ruth HUEY, Michel SANNER # # Copyright: M. Sanner TSRI 2000 # ############################################################################# # $Header: /opt/cvs/pyt...
39.35842
115
0.516899
4,668
41,838
4.503428
0.099614
0.030825
0.021311
0.019694
0.589383
0.557844
0.51213
0.467368
0.44149
0.423318
0
0.015892
0.351762
41,838
1,062
116
39.39548
0.759227
0.110402
0
0.466834
0
0.002503
0.167513
0.010348
0
0
0
0.000942
0
0
null
null
0.002503
0.010013
null
null
0.048811
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7eef0e2e0848ec8b615b67f32bf6d22dca0a8719
2,084
py
Python
pacman.py
Xevaquor/aipac
718b583ce204952469e5ff96be68ccc41857671c
[ "MIT" ]
null
null
null
pacman.py
Xevaquor/aipac
718b583ce204952469e5ff96be68ccc41857671c
[ "MIT" ]
null
null
null
pacman.py
Xevaquor/aipac
718b583ce204952469e5ff96be68ccc41857671c
[ "MIT" ]
1
2020-06-25T17:23:08.000Z
2020-06-25T17:23:08.000Z
#!/usr/bin/env python # coding=utf-8 __author__ = 'Xevaquor' __license__ = 'MIT' from layout import * from copy import deepcopy Moves = { 'North' : (0, -1), 'South' : (0, 1), 'East': (1, 0), 'West' : (-1, 0), 'Stop' : (0, 0) } class AgentStatus(object): def __init__(self, pos = (0,0), scared...
22.652174
87
0.549424
274
2,084
4.018248
0.335766
0.081744
0.072661
0.108992
0.131698
0.04723
0
0
0
0
0
0.020567
0.323417
2,084
91
88
22.901099
0.760284
0.048944
0
0.068966
0
0
0.024848
0
0
0
0
0
0
1
0.172414
false
0.068966
0.034483
0
0.310345
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7ef149495934f767b005fe5fd50696cdd91f9bb9
1,191
py
Python
applications/autocomplete/init.py
Vishakha1990/Lambdas
803028633f25911cbc74c28e4c1ec11276912102
[ "Apache-2.0" ]
null
null
null
applications/autocomplete/init.py
Vishakha1990/Lambdas
803028633f25911cbc74c28e4c1ec11276912102
[ "Apache-2.0" ]
null
null
null
applications/autocomplete/init.py
Vishakha1990/Lambdas
803028633f25911cbc74c28e4c1ec11276912102
[ "Apache-2.0" ]
1
2020-01-08T18:00:04.000Z
2020-01-08T18:00:04.000Z
import rethinkdb as r import os, os.path, argparse from common import * AC = 'ac' # DB WORDS = 'words' # TABLE WORD = 'word' # COLUMN FREQ = 'freq' # COLUMN NGINX_EXAMPLE = 'docker run -d -p 80:80 -v %s:/usr/share/nginx/html:ro nginx' def makeDB(host): conn = r.connect(host, 28015) dbs = r.db_list().run(conn) ...
30.538462
77
0.61377
180
1,191
3.994444
0.472222
0.020862
0.041725
0.027816
0.086231
0
0
0
0
0
0
0.018124
0.212427
1,191
38
78
31.342105
0.748401
0.037783
0
0
0
0.028571
0.12807
0.023684
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7ef52e7d2e220eb19912d0bf65691a3c83995d96
485
py
Python
authentik/core/migrations/0021_alter_application_slug.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/core/migrations/0021_alter_application_slug.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/core/migrations/0021_alter_application_slug.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
# Generated by Django 3.2.3 on 2021-05-14 08:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("authentik_core", "0020_source_user_matching_mode"), ] operations = [ migrations.AlterField( model_name="application", ...
23.095238
81
0.593814
51
485
5.509804
0.823529
0.106762
0
0
0
0
0
0
0
0
0
0.056213
0.303093
485
20
82
24.25
0.775148
0.092784
0
0.142857
1
0
0.226027
0.068493
0
0
0
0
0
1
0
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7ef86ce48b5890aebfe7bd417d1beab688be1084
434
py
Python
libs/urllibs/setlog.py
Evelca1N/K-Spider
46819bf93a9337cdf8adc410c6ddc4be29ee3b52
[ "MIT" ]
3
2015-06-18T08:13:49.000Z
2015-07-06T06:06:20.000Z
libs/urllibs/setlog.py
Evelca1N/K-Spider
46819bf93a9337cdf8adc410c6ddc4be29ee3b52
[ "MIT" ]
null
null
null
libs/urllibs/setlog.py
Evelca1N/K-Spider
46819bf93a9337cdf8adc410c6ddc4be29ee3b52
[ "MIT" ]
null
null
null
# !/usr/bin/dev python # -*- coding:utf-8 -*- from datetime import datetime import sys def LogFile(logFile, target_url): filePoint = open('{}'.format(logFile), 'a') filePoint.write('----------------------------\n\n') for i in sys.argv: filePoint.write(i + ' ') filePoint.write('\n') filePo...
27.125
101
0.569124
54
434
4.537037
0.574074
0.228571
0.122449
0
0
0
0
0
0
0
0
0.005571
0.172811
434
15
102
28.933333
0.67688
0.09447
0
0
0
0
0.179487
0.082051
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
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
0
0
0
0
0
0
0
0
1
7eff71bd664a0303e1baebae30edc6d15e77ccdd
366
py
Python
mxlive/lims/migrations/0060_auto_20200717_1331.py
katyjg/mxlive
e4aeb8141242d5a5b5b72d980dc5fe9edfe7fa13
[ "BSD-3-Clause" ]
null
null
null
mxlive/lims/migrations/0060_auto_20200717_1331.py
katyjg/mxlive
e4aeb8141242d5a5b5b72d980dc5fe9edfe7fa13
[ "BSD-3-Clause" ]
null
null
null
mxlive/lims/migrations/0060_auto_20200717_1331.py
katyjg/mxlive
e4aeb8141242d5a5b5b72d980dc5fe9edfe7fa13
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.6 on 2020-07-17 19:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('lims', '0059_auto_20200717_1318'), ] operations = [ migrations.RenameField( model_name='supportrecord', old_name='user', ...
19.263158
47
0.587432
39
366
5.358974
0.846154
0
0
0
0
0
0
0
0
0
0
0.121094
0.300546
366
18
48
20.333333
0.695313
0.122951
0
0
1
0
0.159875
0.0721
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7d04ad2c57fdb4e85bde00a14d1283c7c19d9617
2,348
py
Python
scripts/setup-xbee.py
jamesleesaunders/pi-alertme
f8e8ea69ebe353e4aadcc54d89bb4fe1f5b473e5
[ "MIT" ]
16
2017-04-29T22:20:46.000Z
2020-07-30T00:33:33.000Z
scripts/setup-xbee.py
jamesleesaunders/pi-alertme
f8e8ea69ebe353e4aadcc54d89bb4fe1f5b473e5
[ "MIT" ]
36
2017-03-11T07:00:37.000Z
2018-01-04T08:28:50.000Z
scripts/setup-xbee.py
jamesleesaunders/pyalertme
f8e8ea69ebe353e4aadcc54d89bb4fe1f5b473e5
[ "MIT" ]
4
2017-10-20T20:49:34.000Z
2018-11-05T09:57:39.000Z
#!/usr/bin/python # coding: utf-8 # Filename: setup-_xbee.py # Description: Configure XBee # Author: James Saunders [james@saunders-family.net] # Copyright: Copyright (C) 2017 James Saunders # License: MIT import serial from xbee import ZigBee import pprint import time import sys pp = pprint.PrettyPrin...
31.72973
132
0.574106
274
2,348
4.875912
0.448905
0.08982
0.038922
0.051647
0.317365
0.317365
0.269461
0.269461
0.269461
0.269461
0
0.037079
0.241908
2,348
73
133
32.164384
0.713483
0.087734
0
0.192308
0
0.019231
0.34646
0.042663
0
0
0
0
0
0
null
null
0
0.096154
null
null
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7d07463d4334290ff155662bcb17858213816c82
966
py
Python
itdagene/app/comments/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
9
2018-10-17T20:58:09.000Z
2021-12-16T16:16:45.000Z
itdagene/app/comments/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
177
2018-10-27T18:15:56.000Z
2022-03-28T04:29:06.000Z
itdagene/app/comments/views.py
itdagene-ntnu/itdagene
b972cd3d803debccebbc33641397a39834b8d69a
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import permission_required from django.contrib.messages import ERROR, add_message from django.shortcuts import redirect from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from itdagene.app.comments.forms import CommentForm from itdagene.app.mail...
35.777778
68
0.701863
115
966
5.747826
0.46087
0.075643
0.051437
0.060514
0
0
0
0
0
0
0
0
0.215321
966
26
69
37.153846
0.872032
0
0
0
0
0
0.047619
0
0
0
0
0
0
1
0.045455
false
0
0.318182
0
0.454545
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
0
0
0
0
1
7d07790726c653d222594b2839a685507d5a2742
396
py
Python
linuxmonitor/routing.py
muthuubalakan/Linux-Monitor
d0e87b1b6d1533350c5b7fdce559b333bb967be9
[ "Apache-2.0" ]
1
2019-11-11T21:58:19.000Z
2019-11-11T21:58:19.000Z
linuxmonitor/routing.py
muthuubalakan/Linux-Monitor
d0e87b1b6d1533350c5b7fdce559b333bb967be9
[ "Apache-2.0" ]
null
null
null
linuxmonitor/routing.py
muthuubalakan/Linux-Monitor
d0e87b1b6d1533350c5b7fdce559b333bb967be9
[ "Apache-2.0" ]
null
null
null
from django.urls import path from channels.http import AsgiHandler from channels.routing import ProtocolTypeRouter, URLRouter from channels.auth import AuthMiddlewareStack from monitor.consumers import MemoryinfoConsumer application = ProtocolTypeRouter({ "websocket": AuthMiddlewareStack( URLRouter([ ...
24.75
58
0.744949
35
396
8.428571
0.542857
0.122034
0
0
0
0
0
0
0
0
0
0
0.179293
396
15
59
26.4
0.907692
0
0
0
0
0
0.060606
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
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
0
0
0
0
1
7d089752943b8ebd3d359a6788873926b94d64a6
6,429
py
Python
projects/models.py
maattss/tdt4242-agreelance
65887b7da3ef85624fa527fd369e0dfc3486e40a
[ "MIT" ]
null
null
null
projects/models.py
maattss/tdt4242-agreelance
65887b7da3ef85624fa527fd369e0dfc3486e40a
[ "MIT" ]
4
2021-06-04T23:45:21.000Z
2022-02-10T10:39:12.000Z
projects/models.py
maattss/tdt4242-agreelance
65887b7da3ef85624fa527fd369e0dfc3486e40a
[ "MIT" ]
1
2020-05-03T09:26:25.000Z
2020-05-03T09:26:25.000Z
from django.db import models from user.models import Profile from taggit.managers import TaggableManager from django.core.files.storage import FileSystemStorage from django.conf import settings import os class OverwriteStorage(FileSystemStorage): def get_available_name(self, name, max_length): """Returns ...
36.322034
134
0.695754
754
6,429
5.782493
0.257294
0.037156
0.038532
0.057798
0.427523
0.359862
0.322706
0.246789
0.22133
0.22133
0
0.011212
0.195365
6,429
176
135
36.528409
0.831626
0.106237
0
0.309524
0
0
0.0811
0.017214
0
0
0
0
0
1
0.079365
false
0.015873
0.047619
0.047619
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
7d0a93ed06ccb3f49551d4e02cf043f1f34c0c43
381
py
Python
examples/issues/issue529_obj.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
666
2016-11-14T18:17:40.000Z
2022-03-29T03:53:22.000Z
examples/issues/issue529_obj.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
598
2016-10-20T21:04:09.000Z
2022-03-15T22:44:49.000Z
examples/issues/issue529_obj.py
tgolsson/appJar
5e2f8bff44e927e7c2bae17fccddc6dbf79952f0
[ "Apache-2.0" ]
95
2017-01-19T12:23:58.000Z
2022-03-06T18:16:21.000Z
import sys sys.path.append("../../") from numpy import sin, pi, arange from appJar import gui from matplotlib.backends.backend_tkagg import NavigationToolbar2TkAgg as addToolbar import random from mpl_toolkits.mplot3d import Axes3D with gui() as app: fig = app.addPlotFig("p1", showNav=True) ax = fig.add_sub...
25.4
83
0.727034
57
381
4.807018
0.684211
0.021898
0.021898
0.029197
0
0
0
0
0
0
0
0.042813
0.141732
381
14
84
27.214286
0.795107
0
0
0
0
0
0.026247
0
0
0
0
0
0
1
0
false
0
0.545455
0
0.545455
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
0
0
0
0
1
7d0b43188641b4611b602fb68d3841198cf1f6d3
11,497
py
Python
ttarray/core/creation.py
sonnerm/ttarray
c962cb2be303dfdb6743aa802bd11b89043e7b71
[ "MIT" ]
null
null
null
ttarray/core/creation.py
sonnerm/ttarray
c962cb2be303dfdb6743aa802bd11b89043e7b71
[ "MIT" ]
null
null
null
ttarray/core/creation.py
sonnerm/ttarray
c962cb2be303dfdb6743aa802bd11b89043e7b71
[ "MIT" ]
null
null
null
from .array import TensorTrainArray from .slice import TensorTrainSlice from .dispatch import implement_function from ..raw import find_balanced_cluster,trivial_decomposition import numpy as np def _get_cluster_chi_array(shape,cluster,chi): if cluster is None: cluster=find_balanced_cluster(shape) if isi...
39.105442
106
0.700183
1,621
11,497
4.899445
0.093152
0.062956
0.026442
0.022664
0.751322
0.720348
0.641274
0.619239
0.585243
0.545958
0
0.016677
0.144646
11,497
293
107
39.238908
0.790929
0.114117
0
0.497817
0
0
0.041543
0
0
0
0
0
0
1
0.152838
false
0.021834
0.021834
0.034934
0.349345
0
0
0
0
null
0
0
0
0
1
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
1
7d0f6d1522a0e67d7c3ffa1dc1bda0f96ad5d4f3
5,012
py
Python
m31hst/paths.py
jonathansick/m31hst
2fc5a06b4d88b1d316cab75c42e2d864cf2e9c42
[ "BSD-3-Clause" ]
null
null
null
m31hst/paths.py
jonathansick/m31hst
2fc5a06b4d88b1d316cab75c42e2d864cf2e9c42
[ "BSD-3-Clause" ]
null
null
null
m31hst/paths.py
jonathansick/m31hst
2fc5a06b4d88b1d316cab75c42e2d864cf2e9c42
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ Access to HST data sets. The environment variables $PHATDATA and $BROWNDATA should point to root directories for the PHAT and Brown HLSP datasets. 2013-12-02 - Created by Jonathan Sick """ import os import glob BROWNFIELDS = ('halo11', 'stream', 'disk', 'halo21', 'halo35a...
26.802139
79
0.590982
671
5,012
4.315946
0.222057
0.031077
0.031077
0.024862
0.63087
0.583909
0.543854
0.543854
0.500345
0.487569
0
0.041931
0.276736
5,012
186
80
26.946237
0.756966
0.007183
0
0.473118
0
0
0.143696
0.035229
0
0
0
0
0.043011
0
null
null
0.010753
0.021505
null
null
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7d151198f826c2cf01043a0c7b83ef4b477dd2d0
2,021
py
Python
Web_Server/webapps/bemoss_applications/migrations/0001_initial.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
Web_Server/webapps/bemoss_applications/migrations/0001_initial.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
Web_Server/webapps/bemoss_applications/migrations/0001_initial.py
ajfar-bem/wisebldg
0cb8ef7c5984cbb5cc86e40780fdf4e14e5bda05
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-07-17 19:38 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
41.244898
141
0.604651
198
2,021
6.010101
0.424242
0.033613
0.047059
0.07395
0.344538
0.243697
0.160504
0.160504
0.127731
0.127731
0
0.022074
0.260267
2,021
48
142
42.104167
0.773913
0.032657
0
0.25
1
0
0.168033
0.067623
0
0
0
0
0
1
0
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
7d19fee657cdc8e72ecb29a0aa4651b0134b5839
394
py
Python
canbeta/__main__.py
FROM-THE-EARTH/canbeta
d41cf1b3dd926c5144dc5086f42943a0594c478b
[ "MIT" ]
1
2021-06-27T10:50:37.000Z
2021-06-27T10:50:37.000Z
canbeta/__main__.py
FROM-THE-EARTH/canbeta
d41cf1b3dd926c5144dc5086f42943a0594c478b
[ "MIT" ]
5
2021-06-19T08:33:47.000Z
2021-06-19T08:59:30.000Z
canbeta/__main__.py
FROM-THE-EARTH/canbeta
d41cf1b3dd926c5144dc5086f42943a0594c478b
[ "MIT" ]
null
null
null
import argparse import subprocess import os import sys sys.path.append(os.path.join(os.getcwd())) PATH_CMD_RUN = os.path.join(os.getcwd(), "can09", "cmd", "run.py") parser = argparse.ArgumentParser() parser.add_argument("command", choices=["run"]) parser.add_argument("args") args = parser.parse_args() if args.comm...
21.888889
66
0.713198
57
394
4.807018
0.403509
0.065693
0.072993
0.087591
0.131387
0
0
0
0
0
0
0.005714
0.111675
394
18
67
21.888889
0.777143
0
0
0
0
0
0.093909
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
7d1bd24b0de797bddcc9cafd68628eb71236f17f
252
py
Python
makahiki/apps/widgets/status/DWGG/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
1
2015-07-22T11:31:20.000Z
2015-07-22T11:31:20.000Z
makahiki/apps/widgets/status/DWGG/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
makahiki/apps/widgets/status/DWGG/views.py
justinslee/Wai-Not-Makahiki
4b7dd685012ec64758affe0ecee3103596d16aa7
[ "MIT" ]
null
null
null
"""Handle the rendering of the water DEGG widget.""" from apps.widgets.status import status def supply(request, page_name): """Supply the view_objects content.""" _ = request _ = page_name return status.resource_goal_status("water")
22.909091
52
0.710317
33
252
5.212121
0.69697
0.127907
0.174419
0
0
0
0
0
0
0
0
0
0.18254
252
10
53
25.2
0.834951
0.313492
0
0
0
0
0.030864
0
0
0
0
0
0
1
0.2
false
0
0.2
0
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
0
0
0
0
0
1
0
0
1
7d223053f4468aec37dfe19a205fe4d34f04ccb2
603
py
Python
etd_drop/wsgi.py
MetaArchive/etd-drop
a61ac2e96029ab35c029fe2616829b95a0fe4630
[ "BSD-3-Clause" ]
1
2019-05-17T13:54:41.000Z
2019-05-17T13:54:41.000Z
etd_drop/wsgi.py
MetaArchive/etd-drop
a61ac2e96029ab35c029fe2616829b95a0fe4630
[ "BSD-3-Clause" ]
null
null
null
etd_drop/wsgi.py
MetaArchive/etd-drop
a61ac2e96029ab35c029fe2616829b95a0fe4630
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for etd_drop project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "etd_drop.settings") #Attempt to set...
26.217391
78
0.777778
92
603
4.967391
0.619565
0.065646
0.078775
0
0
0
0
0
0
0
0
0.003802
0.127695
603
22
79
27.409091
0.865019
0.485904
0
0
0
0
0.149502
0.07309
0
0
0
0
0
1
0
false
0
0.375
0
0.375
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
0
0
0
0
1
7d2e8b5e74239deadd0516d1dfc5ae2392586f75
3,521
py
Python
RareVariants/ResultCollector.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
RareVariants/ResultCollector.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
RareVariants/ResultCollector.py
afif-elghraoui/CorrelatedVariants
4fc6722c78c9a03ad44a7d2f737ccece64d22c35
[ "BSD-3-Clause" ]
null
null
null
################################################################################# # Copyright (c) 2011-2013, Pacific Biosciences of California, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
37.457447
82
0.645271
393
3,521
5.697201
0.480916
0.017865
0.014739
0.020545
0.101831
0.060741
0.060741
0.060741
0.060741
0.060741
0
0.004089
0.236013
3,521
93
83
37.860215
0.828253
0.498154
0
0.209302
0
0
0.016036
0
0
0
0
0
0
1
0.186047
false
0.069767
0.093023
0
0.348837
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7d309f2e05a0275ab045fc977f31f8cd477d3a1c
399
py
Python
split_check.py
joicejoseph3198/Hard-Hat-Detection
3854e1d1b982d1c014f3c252415833f20b314180
[ "MIT" ]
1
2021-08-16T17:10:46.000Z
2021-08-16T17:10:46.000Z
split_check.py
joicejoseph3198/Hard-Hat-Detection
3854e1d1b982d1c014f3c252415833f20b314180
[ "MIT" ]
null
null
null
split_check.py
joicejoseph3198/Hard-Hat-Detection
3854e1d1b982d1c014f3c252415833f20b314180
[ "MIT" ]
null
null
null
import os image_dir ="H:/Python Space/Hard_Hat _Detection/images" label_dir= "H:/Python Space/Hard_Hat _Detection/labels" print("No. of Training images", len(os.listdir(image_dir + "/train"))) print("No. of Training labels", len(os.listdir(label_dir + "/train"))) print("No. of valid images", len(os.listdir(image_dir...
36.272727
70
0.711779
64
399
4.28125
0.34375
0.10219
0.131387
0.109489
0.708029
0.605839
0.226277
0
0
0
0
0
0.102757
399
10
71
39.9
0.765363
0
0
0
0
0
0.466165
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
7d3bd478e6f5da93a06737d5409bfc5e2f608249
783
py
Python
addons/website_forum_visibility/models/ir_http.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/website_forum_visibility/models/ir_http.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
null
null
null
addons/website_forum_visibility/models/ir_http.py
marionumza/vocal_v12
480990e919c9410903e06e7813ee92800bd6a569
[ "Unlicense" ]
1
2021-05-05T07:59:08.000Z
2021-05-05T07:59:08.000Z
# © 2017 Nedas Žilinskas <nedas.zilinskas@gmail.com> # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import re from odoo.http import request from odoo import models class IRHttp(models.AbstractModel): _inherit = 'ir.http' @classmethod def _serve_404(cls): req_page = request...
30.115385
81
0.587484
106
783
4.216981
0.59434
0.06264
0
0
0
0
0
0
0
0
0
0.048951
0.269476
783
25
82
31.32
0.729021
0.149425
0
0
0
0
0.089124
0.045317
0
0
0
0
0
0
null
null
0
0.176471
null
null
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
1
0
0
0
0
0
0
0
0
1
7d40f8e351008174ad141c62a4467e81cd343b2f
1,446
py
Python
refresh_resources.py
Modosmart/modosmart-api
5256133fdfd6349af6ac89b08a2faf4d436fc71c
[ "Apache-2.0" ]
null
null
null
refresh_resources.py
Modosmart/modosmart-api
5256133fdfd6349af6ac89b08a2faf4d436fc71c
[ "Apache-2.0" ]
null
null
null
refresh_resources.py
Modosmart/modosmart-api
5256133fdfd6349af6ac89b08a2faf4d436fc71c
[ "Apache-2.0" ]
null
null
null
import requests import time import json while True: time.sleep(1800) # wait for 30 minutes # response = requests.get('http://localhost:3030/api/scan') # get public resources public_resources = requests.get( 'https://symbioteweb.eu.ngrok.io/innkeeper/public_resources') resources = json.loads...
37.076923
71
0.600968
161
1,446
5.118012
0.36646
0.133495
0.041262
0.048544
0.242718
0.17233
0.17233
0.17233
0.17233
0.17233
0
0.020251
0.282849
1,446
38
72
38.052632
0.774349
0.114108
0
0.181818
0
0
0.123922
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
7d4190eb86cb350ebfc0205f30d68a529b40b56c
6,030
py
Python
sagar/io/vasp.py
unkcpz/sagar
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
2
2018-10-21T08:31:45.000Z
2018-10-29T13:38:12.000Z
sagar/io/vasp.py
unkcpz/sagar
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
6
2018-10-17T07:48:27.000Z
2019-11-04T13:39:07.000Z
sagar/io/vasp.py
unkcpz/pyyabc
097a9e77200d79e40c45c2741c9c1e61a1013b22
[ "MIT" ]
3
2018-05-03T08:15:42.000Z
2018-08-28T05:45:33.000Z
# -*- coding: utf-8 -*- import numpy import warnings import operator import collections from sagar.crystal.structure import Cell from sagar.element.base import get_symbol def read_vasp(filename='POSCAR'): """ Import POSCAR/CONTCAR or filename with .vasp suffix parameter: filename: string, the filena...
29.130435
92
0.600166
783
6,030
4.496807
0.268199
0.009088
0.010224
0.011076
0.145413
0.110764
0.083499
0.06873
0.06873
0.06873
0
0.014801
0.282919
6,030
206
93
29.271845
0.799491
0.233831
0
0.155738
0
0
0.055332
0
0
0
0
0.019417
0
1
0.032787
false
0
0.04918
0
0.106557
0.016393
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
7d4403db5f437da859635fc8465693087af92da0
2,291
py
Python
api/api/de_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
5
2020-07-30T02:35:20.000Z
2020-12-24T01:26:47.000Z
api/api/de_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
6
2021-03-04T10:30:11.000Z
2022-03-16T16:47:47.000Z
api/api/de_ws.py
weng-lab/SCREEN
e8e7203e2f9baa2de70e2f75bdad3ae24b568367
[ "MIT" ]
2
2020-12-08T10:05:02.000Z
2022-03-10T09:41:19.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng import sys import os from models.de import DE sys.path.append(os.path.join(os.path.dirname(__file__), '../common/')) from common.pg_search import PGsearch sys.path.append(os.path.join(os.path.dirname(__f...
30.144737
80
0.55347
259
2,291
4.830116
0.320463
0.019984
0.021583
0.023981
0.131095
0.103917
0.063949
0.063949
0.063949
0.063949
0
0.015494
0.323876
2,291
75
81
30.546667
0.792124
0.05849
0
0.142857
0
0
0.084572
0
0
0
0
0.013333
0
1
0.107143
false
0
0.089286
0.017857
0.321429
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
0
0
0
0
0
1
7d46fe40ea3f1541de599f0b1943009cf78f4d44
1,611
py
Python
create_db.py
nalbarr/hello-neo4j-gdsl
82a27c879a8879102e5f49249edd02dc5a005890
[ "MIT" ]
null
null
null
create_db.py
nalbarr/hello-neo4j-gdsl
82a27c879a8879102e5f49249edd02dc5a005890
[ "MIT" ]
null
null
null
create_db.py
nalbarr/hello-neo4j-gdsl
82a27c879a8879102e5f49249edd02dc5a005890
[ "MIT" ]
null
null
null
from neo4j import GraphDatabase from neo4j.exceptions import ClientError import os import altair bolt_url = os.getenv("NEO4J_BOLT_URL", "bolt://localhost") user = os.getenv("NEO4J_USER", "neo4j") password = os.getenv("NEO4J_PASSWORD", "neo4j123") driver = GraphDatabase.driver("bolt://localhost", auth=(user, password))...
30.396226
115
0.616387
171
1,611
5.654971
0.450292
0.045502
0.040331
0
0
0
0
0
0
0
0
0.012669
0.265053
1,611
52
116
30.980769
0.804054
0.021105
0
0
0
0
0.160954
0
0
0
0
0
0
1
0.090909
false
0.090909
0.181818
0
0.272727
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
7d489592692f1e8fe9ecd21e59028e7c58ce2a3c
2,339
py
Python
topnum/scores/calinski_harabasz.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
5
2020-05-06T14:13:54.000Z
2020-09-06T15:54:01.000Z
topnum/scores/calinski_harabasz.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
54
2020-02-10T07:08:31.000Z
2020-09-08T21:45:39.000Z
topnum/scores/calinski_harabasz.py
machine-intelligence-laboratory/OptimalNumberOfTopics
87267223987a4cb54b3f0ec431e87ee684044c7b
[ "MIT" ]
2
2021-01-16T08:40:25.000Z
2021-06-04T05:35:36.000Z
import logging import dill from sklearn.metrics import calinski_harabasz_score from topicnet.cooking_machine import Dataset from topicnet.cooking_machine.models import ( BaseScore as BaseTopicNetScore, TopicModel ) from .base_custom_score import BaseCustomScore _Logger = logging.getLogger() class Calinsk...
24.882979
87
0.63959
254
2,339
5.57874
0.429134
0.08398
0.053634
0.055046
0
0
0
0
0
0
0
0.012382
0.274904
2,339
93
88
25.150538
0.823113
0.106028
0
0
0
0
0.030424
0
0
0
0
0.010753
0
1
0.098039
false
0
0.117647
0
0.313725
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
0
0
0
0
0
1
7d4d436337880fafbd8a769002866cded06b74fc
2,836
py
Python
tests/test_shape.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
3
2021-07-30T17:38:08.000Z
2021-11-21T04:41:40.000Z
tests/test_shape.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
null
null
null
tests/test_shape.py
wesselb/matrix
ba343d69945d7cbc67330d01a87eee363ce5d408
[ "MIT" ]
null
null
null
import lab as B import pytest from matrix.shape import ( compatible, assert_compatible, assert_vector, assert_matrix, assert_square, broadcast, expand_and_broadcast, ) # noinspection PyUnresolvedReferences from .util import dense1 def _shapes(*xs): return tuple(B.shape(x) for x in xs...
29.541667
82
0.647743
439
2,836
4.05467
0.145786
0.117978
0.08427
0.051124
0.661798
0.585955
0.552809
0.501685
0.494944
0.447753
0
0.041612
0.194993
2,836
95
83
29.852632
0.738064
0.129055
0
0.133333
0
0
0.017886
0
0
0
0
0
0.666667
1
0.116667
false
0
0.066667
0.016667
0.2
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
1
0
0
0
0
0
0
0
0
0
1
7d5161837b280e8e1273f795bcb9a59d27446146
306
py
Python
questions/question#11.py
seunghk1206/1-Manhattan-FullStack-Development
315696197d67b5ed46df50b87f24f55a7209a6b0
[ "MIT" ]
1
2020-04-16T15:40:29.000Z
2020-04-16T15:40:29.000Z
questions/question#11.py
seunghk1206/Python-basic
315696197d67b5ed46df50b87f24f55a7209a6b0
[ "MIT" ]
null
null
null
questions/question#11.py
seunghk1206/Python-basic
315696197d67b5ed46df50b87f24f55a7209a6b0
[ "MIT" ]
null
null
null
def NoC(): paid = int(input()) moneyL = [500, 100, 50, 10, 5, 1] count = 0 leftOver = 1000 - paid for each in moneyL: n = leftOver//each if n > 0: count += n leftOver -= n * each elif n == 0: pass return count print(NoC())
21.857143
37
0.45098
40
306
3.45
0.625
0.130435
0
0
0
0
0
0
0
0
0
0.108571
0.428105
306
14
38
21.857143
0.68
0
0
0
0
0
0
0
0
0
0
0
0
1
0.071429
false
0.071429
0
0
0.142857
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
0
0
1
0
0
0
0
0
1
ada2c5e71355854d110858754f8815384b8b1880
854
py
Python
test/data/test_AnyValue.py
pip-services-python/pip-services-commons-python
ecfe0aab2b1442ed3b550115dd2c2472537452de
[ "MIT" ]
null
null
null
test/data/test_AnyValue.py
pip-services-python/pip-services-commons-python
ecfe0aab2b1442ed3b550115dd2c2472537452de
[ "MIT" ]
null
null
null
test/data/test_AnyValue.py
pip-services-python/pip-services-commons-python
ecfe0aab2b1442ed3b550115dd2c2472537452de
[ "MIT" ]
2
2020-03-11T21:41:13.000Z
2020-03-14T00:26:20.000Z
# -*- coding: utf-8 -*- """ tests.config.test_AnyValue ~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) Conceptual Vision Consulting LLC 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ from pip_services3_commons.convert import TypeCode from pip_services3_common...
25.878788
93
0.626464
112
854
4.553571
0.464286
0.068627
0.078431
0.090196
0.164706
0
0
0
0
0
0
0.040185
0.242389
854
32
94
26.6875
0.748068
0.248244
0
0
0
0
0.004886
0
0
0
0
0
0.5
1
0.125
false
0
0.125
0
0.3125
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
1
0
0
0
0
0
0
0
0
0
1
ada549274f2c6f4c68906a5914eb0569eabd185e
1,143
py
Python
example/download_stories.py
arthus-leroy/novelai-api
1a2b2bf74ef75544f8cf6e1d49220229ede6ff59
[ "MIT" ]
6
2021-08-21T18:22:27.000Z
2022-02-09T12:18:50.000Z
example/download_stories.py
arthus-leroy/novelai-api
1a2b2bf74ef75544f8cf6e1d49220229ede6ff59
[ "MIT" ]
4
2021-08-23T09:47:55.000Z
2022-03-28T21:43:44.000Z
example/download_stories.py
arthus-leroy/novelai-api
1a2b2bf74ef75544f8cf6e1d49220229ede6ff59
[ "MIT" ]
1
2022-01-08T23:22:08.000Z
2022-01-08T23:22:08.000Z
from sys import path from os import environ as env from os.path import join, abspath, dirname path.insert(0, abspath(join(dirname(__file__), '..'))) from novelai_api import NovelAI_API from novelai_api.utils import get_encryption_key, decrypt_user_data from aiohttp import ClientSession from logging import Logger, St...
29.307692
102
0.739283
155
1,143
5.270968
0.393548
0.04896
0.044064
0.062424
0
0
0
0
0
0
0
0.001062
0.175853
1,143
39
103
29.307692
0.866242
0
0
0
0
0
0.116259
0
0
0
0
0
0
1
0
false
0.185185
0.296296
0
0.296296
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ada5797c8f0b9fa7d78fde7bf61dec401d99461f
1,515
py
Python
core/modules/OTModule.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
2
2021-04-14T15:58:50.000Z
2021-08-02T07:23:45.000Z
core/modules/OTModule.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
null
null
null
core/modules/OTModule.py
UmSenhorQualquer/workflow-editor
6f836f99e155c2f503cf59adf4e8b8b574184e6d
[ "MIT" ]
null
null
null
from PyQt4 import uic import uuid import os class OTModule(object): """ Module abstract class implementation """ def __init__(self, name): self._unique_id = uuid.uuid1() #: Module name self._name = name #: Module unique identifier def save(self, saver): ...
27.053571
80
0.450825
135
1,515
4.903704
0.340741
0.072508
0.072508
0.048338
0
0
0
0
0
0
0
0.001845
0.284488
1,515
56
81
27.053571
0.608856
0.236964
0
0.090909
0
0
0.041555
0
0
0
0
0
0
1
0.318182
false
0.045455
0.136364
0.090909
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
ada6f14eef56c016bd12b335d51987ceace6c3f7
11,702
py
Python
testscripts/RDKB/component/TAD/TS_TAD_IPPingTest_InvalidInterface_CheckSuccessAndResponse.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/TAD/TS_TAD_IPPingTest_InvalidInterface_CheckSuccessAndResponse.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
testscripts/RDKB/component/TAD/TS_TAD_IPPingTest_InvalidInterface_CheckSuccessAndResponse.py
rdkcmf/rdkb-tools-tdkb
9f9c3600cd701d5fc90ac86a6394ebd28d49267e
[ "Apache-2.0" ]
null
null
null
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
51.324561
225
0.64724
1,337
11,702
5.587883
0.217651
0.023558
0.05595
0.050194
0.524829
0.478383
0.456699
0.432338
0.392451
0.38442
0
0.007174
0.24953
11,702
227
226
51.550661
0.843544
0.119894
0
0.632075
0
0
0.328742
0.066708
0
0
0
0
0
0
null
null
0
0.037736
null
null
0.339623
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1