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
b317eed8bc3c7f37020ba36b17b2500b5686a571
4,433
py
Python
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
21
2015-03-21T14:20:29.000Z
2020-04-20T02:12:03.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
13
2016-09-01T11:58:24.000Z
2017-11-19T17:01:51.000Z
clifford/taylor_expansions.py
tBuLi/clifford
31651d095834ad4c2c5da0692414b55c88823840
[ "BSD-3-Clause" ]
7
2016-08-31T16:19:42.000Z
2017-11-16T17:27:45.000Z
""" .. currentmodule:: clifford.taylor_expansions ===================================================== taylor_expansions (:mod:`clifford.taylor_expansions`) ===================================================== .. versionadded:: 1.4.0 This file implements various Taylor expansions for useful functions of multivecto...
26.866667
109
0.606361
667
4,433
3.95952
0.226387
0.0727
0.037486
0.05301
0.491102
0.455509
0.455509
0.455509
0.455509
0.380538
0
0.033261
0.267539
4,433
164
110
27.030488
0.780105
0.554252
0
0.455882
0
0
0
0
0
0
0
0
0
1
0.102941
false
0
0.058824
0
0.279412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b318fb68451b5682ff5190f3321869e6da4e8c1a
2,521
py
Python
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
month05/Spider/Tecent/Tecent/spiders/tencent.py
chaofan-zheng/python_learning_code
5d05848911d55aa49eaee4afd7ffd80536fad7aa
[ "Apache-2.0" ]
null
null
null
import json import scrapy import time import requests from ..items import TecentItem class TencentSpider(scrapy.Spider): name = 'tencent' allowed_domains = ['careers.tencent.com'] first_url = 'https://careers.tencent.com/tencentcareer/api/post/Query?timestamp={}&countryId=&cityId=&bgIds=&productId=&cate...
42.016667
219
0.659262
310
2,521
5.23871
0.367742
0.038793
0.073276
0.090517
0.21367
0.1367
0.100985
0.055419
0
0
0
0.022102
0.192384
2,521
59
220
42.728814
0.77554
0.011503
0
0.042553
0
0.06383
0.270281
0
0
0
0
0
0
1
0.106383
false
0
0.106383
0
0.382979
0.021277
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b31b96b0f97a4a311c4207315ff1606066d471f8
837
py
Python
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
3
2021-06-19T02:16:46.000Z
2021-07-16T15:56:49.000Z
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
scripts/plot_discuss_features.py
WEgeophysics/watex
21616ce35372a095c3dd624f82a5282b15cb2c91
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 8 09:04:27 2021 @author: @Daniel03 """ from watex.viewer.plot import QuickPlot # path to dataset # data_fn = 'data/geo_fdata/BagoueDataset2.xlsx' data_fn ='data/geo_fdata/main.bagciv.data2.csv' # set figure title fig_title= '`sfi` vs`ohmS|`geol`' # list of feature...
22.026316
57
0.57945
100
837
4.69
0.64
0.051173
0.063966
0.055437
0.076759
0
0
0
0
0
0
0.033727
0.291517
837
37
58
22.621622
0.757167
0.285544
0
0
0
0
0.183533
0.06175
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b31be5d103cfb9e8ae792650af1addd027a89193
309
py
Python
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
null
null
null
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
4
2020-02-11T21:44:22.000Z
2021-06-10T17:28:46.000Z
main/Customer/urls.py
VikasSherawat/OrderFood
1c9b67d48f3add57053b50b8a07695016fe2bb4a
[ "MIT" ]
1
2017-03-13T04:21:49.000Z
2017-03-13T04:21:49.000Z
from django.conf.urls import url from . import views app_name = 'customer' urlpatterns = [ # url(r'^$', views.index, name='index'), url(r'^fooditems/(?P<shop_id>[0-9]+)/$', views.fooditems, name="fooditems"), url(r'^buyitem/(?P<fooditem_id>[0-9]+)/$', views.buy_fooditem, name="buy_fooditem") ]
28.090909
87
0.647249
45
309
4.333333
0.488889
0.061538
0.041026
0.092308
0
0
0
0
0
0
0
0.014815
0.126214
309
11
88
28.090909
0.707407
0.122977
0
0
0
0
0.351852
0.244444
0
0
0
0
0
1
0
false
0
0.285714
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b31c17bc22fb02364bf3e27057e5970be530fe76
2,149
py
Python
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
playground/messaging/producer/config.py
murlokito/playground
405a7091bbfd6705db967e872ed6c4591bd892e6
[ "MIT" ]
null
null
null
__title__ = "simulation" __author__ = "murlux" __copyright__ = "Copyright 2019, " + __author__ __credits__ = (__author__, ) __license__ = "MIT" __email__ = "murlux@protonmail.com" # Global imports from enum import Enum from typing import Any, Dict from playground.messaging.flow import Flow, flow_from_json from playgr...
30.7
119
0.665891
265
2,149
5.132075
0.226415
0.047059
0.048529
0.088235
0.494853
0.422059
0.332353
0.188235
0.114706
0.114706
0
0.002463
0.2443
2,149
69
120
31.144928
0.834975
0.060493
0
0
0
0
0.233418
0.010633
0
0
0
0
0
1
0.045455
false
0
0.090909
0
0.295455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3208faab0bb9858fdeabda875efe2eb39010200
5,673
py
Python
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
robot3_18c1054/scripts/visualizer.py
18C1054-S-K/robot3_ros
c34cf2989829b3f38648b5e32be1d5cc5264ad80
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import rospy import numpy as np import math import time from sensor_msgs.msg import JointState from std_msgs.msg import Float32, Float32MultiArray, Bool, Header from robot3_18c1054.msg import HandClose from robot3_18c1054.srv import GetHandState, GetHandStateResponse, GetInitTime, GetInitTimeRes...
30.5
176
0.693637
988
5,673
3.719636
0.154858
0.050068
0.056599
0.029932
0.326259
0.244354
0.162721
0.144762
0.128435
0.128435
0
0.034635
0.160233
5,673
185
177
30.664865
0.736776
0.015688
0
0.174497
0
0
0.072108
0.009327
0
0
0
0
0
1
0.053691
false
0.013423
0.053691
0
0.248322
0.04698
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3216e51e921df93ba62232e2dc93c7a485cd2b1
6,980
py
Python
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
gpu_bdb/min/large_ddf.py
cylondata/gpu-bdb
6edef0985e9953c6bc9b4e0639b0dff1c9facefa
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019-2020, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
36.165803
116
0.698281
1,074
6,980
4.436685
0.188082
0.052046
0.018468
0.029381
0.564743
0.529276
0.469045
0.420147
0.391396
0.33893
0
0.013101
0.201719
6,980
192
117
36.354167
0.842067
0.34914
0
0.495868
0
0
0.143238
0.007785
0
0
0
0
0
1
0.066116
false
0
0.099174
0
0.231405
0.239669
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3245056e3f0f3fb5389269f801f8bf1920f67ff
13,768
py
Python
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2018-11-03T15:53:50.000Z
2018-11-03T15:53:50.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
78
2015-12-16T20:12:20.000Z
2020-04-08T19:42:35.000Z
ehb_service/apps/api/views/externalrecord.py
chop-dbhi/ehb-service
62f26cbb1495026caf37e1c326a593253b88bdd9
[ "BSD-2-Clause" ]
1
2019-11-04T06:24:02.000Z
2019-11-04T06:24:02.000Z
import json import logging from django.db.models import Q from core.forms import ExternalRecordForm, ExternalRecordRelationForm from .constants import ErrorConstants from api.helpers import FormHelpers from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import sta...
36.519894
179
0.529198
1,329
13,768
5.329571
0.148984
0.021742
0.013977
0.011859
0.311591
0.260765
0.208951
0.158549
0.126641
0.115064
0
0.002955
0.385532
13,768
376
180
36.617021
0.834279
0.087231
0
0.34296
0
0
0.122868
0.006386
0
0
0
0
0
1
0.043321
false
0
0.043321
0
0.176895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b327fc80caa49ef916375787bf5e4e7f062d013b
8,409
py
Python
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
cardbuilder/resolution/printer.py
jrhoff/cardbuilder
857360b1827494a286cee9928cb004af882e55b4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import OrderedDict from os import mkdir from os.path import exists, join from typing import Optional, Callable, get_type_hints, Dict import requests from cardbuilder.common.util import dedup_by, retry_with_logging from cardbuilder.exceptions import CardBuilderUsage...
41.220588
121
0.633964
959
8,409
5.252346
0.153285
0.046456
0.023824
0.025412
0.305738
0.265436
0.223347
0.165972
0.156442
0.138972
0
0.00358
0.269235
8,409
203
122
41.423645
0.816111
0.011416
0
0.194805
0
0
0.046346
0.012038
0
0
0
0
0
1
0.12987
false
0
0.058442
0.025974
0.331169
0.25974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b329631d1ae39b00c66566b6ebd6369fb6aa8d9a
19,912
py
Python
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
1,261
2016-12-16T14:29:30.000Z
2022-03-30T20:21:25.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
190
2016-12-17T13:44:09.000Z
2022-03-27T09:28:13.000Z
pysrc/map_info_rdr.py
CrackerCat/xed
428712c28e831573579b7f749db63d3a58dcdbd9
[ "Apache-2.0" ]
155
2016-12-16T22:17:20.000Z
2022-02-16T20:53:59.000Z
#!/usr/bin/env python # -*- python -*- #BEGIN_LEGAL # #Copyright (c) 2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
38.072658
107
0.558206
2,675
19,912
3.903925
0.144299
0.018194
0.018386
0.016853
0.430911
0.356986
0.341856
0.325194
0.310543
0.304989
0
0.011977
0.32493
19,912
522
108
38.145594
0.764916
0.131227
0
0.30829
0
0
0.120042
0.011283
0
0
0
0
0.002591
1
0.072539
false
0.005181
0.025907
0.025907
0.163212
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b32c8ac533a9595c7935a15d0c1ab0a2d7c89655
2,271
py
Python
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
45
2016-04-11T16:50:15.000Z
2020-07-11T23:37:51.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
74
2016-08-09T17:10:55.000Z
2020-07-09T08:36:16.000Z
specs/monitor/events_v1_spec.py
marojor/sysdig-sdk-python
c554f9f747ff88ce075b50a50d81f75aff327bb1
[ "MIT" ]
39
2016-04-20T17:22:23.000Z
2020-07-08T17:25:52.000Z
import os import time from expects import expect, have_key, contain, have_keys, be_empty, equal from mamba import it, before, description from sdcclient.monitor import EventsClientV1 from specs import be_successful_api_call with description("Events v1", "integration") as self: with before.all: self.clien...
41.290909
122
0.647292
335
2,271
4.226866
0.259701
0.056497
0.074153
0.093927
0.554379
0.47387
0.47387
0.434322
0.352401
0.352401
0
0.006989
0.243945
2,271
54
123
42.055556
0.817705
0.035667
0
0.268293
0
0
0.214449
0
0
0
0
0
0
1
0
false
0
0.146341
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b32ce48bfac67262240dc37403bd03bc3776e361
322
py
Python
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
2
2020-07-04T23:02:14.000Z
2021-02-04T21:21:14.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
4
2021-03-30T13:50:34.000Z
2021-09-22T19:22:57.000Z
app/cryptprice/exceptions/app_exceptions.py
MihailButnaru/cryptprice
b9636dbb0fb88d345fc53a9e8ec0554a888e7302
[ "MIT" ]
null
null
null
from rest_framework.exceptions import APIException __author__ = "Mihail Butnaru" __copyright__ = "Copyright 2020, All rights reserved." class APPServerError(APIException): status_code = 500 default_detail = "Service temporarily unavailable, contact the administrator" default_code = "internal_server_error...
29.272727
81
0.795031
34
322
7.117647
0.882353
0
0
0
0
0
0
0
0
0
0
0.025362
0.142857
322
10
82
32.2
0.851449
0
0
0
0
0
0.400621
0.065217
0
0
0
0
0
1
0
false
0
0.142857
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3306de4e386f43f3bd60bacfbc628514aa6597c
2,683
py
Python
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
python/Data Structures/Arrays/maximumRange.py
sinderpl/CodingExamples
9bc59a0345589bf51fc74fe9ad527e9498b9b5c9
[ "MIT" ]
null
null
null
class Solution: def maximumPopulation(self, logs: List[List[int]]) -> int: years_mapped = dict() # Map each person = O(n) # First bottleneck is having to map every year out which increases processing time # The second is also here since we use additional storage to account f...
33.123457
94
0.542303
324
2,683
4.317901
0.277778
0.115082
0.085776
0.048606
0.530379
0.498213
0.498213
0.40386
0.364546
0.364546
0
0.024465
0.390608
2,683
81
95
33.123457
0.831193
0.191577
0
0.660377
0
0
0
0
0
0
0
0
0
1
0.056604
false
0
0
0
0.169811
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b330802951dfea9ae95601d2e89610bb4ee484ba
5,027
py
Python
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2020-09-16T09:17:37.000Z
2020-09-16T09:17:37.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
1
2021-05-13T05:20:07.000Z
2021-05-13T05:20:07.000Z
vision_transformer/Vit.py
ximingxing/Deep-Learning-in-Action
38d5d3d6990553ff9d3ea771d8e83f8b47241b9a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Project : Deep-Learning-in-Action File : Vit.py Description : 论文题目: An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 论文地址: https://arxiv.org/abs/2010.11929 Author : xingximing.xxm Date : 2021/7/11 11:36 AM """ import torch fr...
30.652439
139
0.571912
734
5,027
3.749319
0.239782
0.022892
0.019985
0.027253
0.144622
0.09484
0.02907
0.023983
0
0
0
0.027417
0.296201
5,027
163
140
30.840491
0.750424
0.083947
0
0.089286
0
0.008929
0.062336
0
0
0
0
0
0.017857
1
0.098214
false
0
0.044643
0.026786
0.241071
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33142a09cea192c1496daaf28a083bed7fd400a
3,518
py
Python
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
sheets.py
caleby117/xybot
6dcc6ac99ef05ae7791c6c29c1f2f2c4242fb647
[ "Apache-2.0" ]
null
null
null
import gspread import time gc = gspread.service_account(filename='creds.json') sheetKey = "<insert shet key here>" wb = gc.open_by_key(sheetKey) localtime = time.asctime() newSheetName = f'XY on {localtime}' worksheet = wb.sheet1 scoreSheet = worksheet.duplicate(insert_sheet_index=1, new_sheet_name=newSheetName) #ma...
21.716049
92
0.688459
548
3,518
4.231752
0.293796
0.057352
0.042691
0.024148
0.169901
0.127641
0.114273
0.114273
0.093144
0.093144
0
0.017188
0.17311
3,518
161
93
21.850932
0.779993
0.057987
0
0.105263
0
0
0.066421
0.018786
0
0
0
0
0
1
0.168421
false
0
0.021053
0.010526
0.326316
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33207e52f5d4757fcc591f2721a05242c76cc96
3,538
py
Python
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
3
2022-01-13T03:13:37.000Z
2022-03-12T00:48:18.000Z
rgn/preprocessing.py
alifkurniawan/tesis
6330dba32f5dc12785e956875c94d83344d788a8
[ "MIT" ]
null
null
null
import glob import os import numpy as np from io import BytesIO from tqdm import tqdm import bcolz import platform MAX_SEQUENCE_LENGTH = 700 def filter_input_files(input_files): disallowed_file_endings = (".gitignore", ".DS_Store") return list(filter(lambda x: not x.endswith(disallowed_file_endings), input_f...
34.019231
99
0.550594
469
3,538
4.014925
0.309168
0.100903
0.103558
0.074349
0.359002
0.277217
0.243229
0.190653
0.173659
0.173659
0
0.01623
0.320803
3,538
103
100
34.349515
0.767374
0.075466
0
0.075
0
0
0.037718
0
0
0
0
0
0
1
0.0125
false
0
0.0875
0
0.1125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b336e30f32a8c91df3cdcc80f11eabae458079ff
1,058
py
Python
metropolis/core/tests/test_serializer.py
Ashon/_study_nats_worker
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
5
2020-01-08T07:58:54.000Z
2021-03-03T13:22:11.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-gateway
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
3
2019-11-05T01:15:47.000Z
2019-11-07T09:50:25.000Z
metropolis/core/tests/test_serializer.py
Ashon/python-nats-rpc
9c137a5cb68b13ddd91f999e61ac5d6125cd155a
[ "MIT" ]
1
2019-11-06T04:49:52.000Z
2019-11-06T04:49:52.000Z
import unittest from metropolis.core.serializer import DefaultMessageSerializer from metropolis.core.serializer import JsonMessageSerializer class TestDefaultMessageSerializer(unittest.TestCase): def test_default_serializer_should_returns_bytes_msg(self): msg = 'hello' encoded = DefaultMessageSer...
36.482759
64
0.751418
110
1,058
6.972727
0.290909
0.073012
0.073012
0.125163
0.644068
0.555411
0.555411
0.440678
0.440678
0.440678
0
0
0.165406
1,058
28
65
37.785714
0.86863
0
0
0.285714
0
0
0.032136
0
0
0
0
0
0.190476
1
0.190476
false
0
0.142857
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
0
0
0
0
1
0
b338f100fce3bc7e987544b20907d50a2e935653
5,704
py
Python
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
1
2020-02-22T20:50:47.000Z
2020-02-22T20:50:47.000Z
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
ceph_provisioned/ceph_provisioned.py
CCI-MOC/zabbix-ceph
500b7a714225ef03fe4b202af1f49072cc879651
[ "Apache-2.0" ]
null
null
null
#! /bin/python """Calculate provisioned space""" from __future__ import division import sys import subprocess import json import functools import multiprocessing import configparser from pprint import pprint from math import ceil from pyzabbix import ZabbixMetric, ZabbixSender from pyzabbix_socketwrapper import PyZa...
32.409091
164
0.673562
765
5,704
4.75817
0.224837
0.042033
0.057143
0.041209
0.255495
0.195055
0.143132
0.136813
0.136813
0.109341
0
0.000677
0.222651
5,704
175
165
32.594286
0.820253
0.167251
0
0.095238
0
0
0.228424
0.073422
0
0
0
0
0
1
0.057143
false
0
0.104762
0
0.228571
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33a0a1302faab794aabfcd653702fef3513e51b
6,307
py
Python
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
3
2016-11-15T16:04:14.000Z
2017-02-05T23:51:29.000Z
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
live_cnn/webcam_cnn_pipeline.py
apapiu/live_cnn
d560c14269c81d9b437f4f25169e28c983a7b0af
[ "Apache-2.0" ]
null
null
null
#functions: #to get the dependencies create a conda environment: #conda create --name live_cnn keras ipython opencv scikit-learn #note that the dim ordering here is the theano one - it's faster on CPU. #TODO: do some detection/ bounding box CNN's? import time import os import cv2 import numpy as np from keras.models...
30.322115
96
0.641985
875
6,307
4.534857
0.323429
0.032258
0.025202
0.015121
0.32006
0.292843
0.21875
0.199597
0.185484
0.185484
0
0.032197
0.241636
6,307
207
97
30.468599
0.797407
0.269859
0
0.259615
0
0
0.068187
0.034876
0
0
0.001789
0.009662
0
1
0.086538
false
0
0.086538
0
0.182692
0.009615
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33b2269e6d2e9516aade7f62d1a13fd0a9f22d6
2,292
py
Python
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
1
2022-03-27T20:09:10.000Z
2022-03-27T20:09:10.000Z
robotarm/controllers/api_service.py
AmidBidee/Robot-Arm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
4
2022-03-25T03:45:10.000Z
2022-03-29T14:31:16.000Z
robotarm/controllers/api_service.py
AmidBidee/RobotArm
cfacfc779b2f025846e9748167bcfb15ce207923
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ State Controller Module """ import subprocess from robotarm.controllers import proxy_url import requests import pathlib import psutil BASE_DIR = pathlib.Path(__file__).resolve().parent.parent #print(BASE_DIR) class APIServiceController(): """ contolls api service actions: h...
29.012658
104
0.544939
248
2,292
4.862903
0.491935
0.023217
0.034826
0.033168
0
0
0
0
0
0
0
0.007495
0.301483
2,292
78
105
29.384615
0.745784
0.196771
0
0
0
0
0.234979
0.098751
0
0
0
0
0
1
0.078947
false
0
0.131579
0
0.342105
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33f2a6de57090a527f6078cd21b1bc58dc5b6e8
1,266
py
Python
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
1
2021-06-14T10:18:57.000Z
2021-06-14T10:18:57.000Z
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
examples/basic.py
kpchand/firepack
082b2477024c928e1999691b17eb3c07f015d79f
[ "MIT" ]
null
null
null
from firepack.fields import IntField, StrField from firepack.service import FireService from firepack.errors import SkipError, ValidationError CRAWLED_DB = [] def page_name_validator(name, value): if not value.endswith('.html'): raise ValidationError(name, 'I only know html pages!') class Crawler(Fire...
28.133333
84
0.665877
163
1,266
5.030675
0.496933
0.058537
0.041463
0
0
0
0
0
0
0
0
0.00203
0.221959
1,266
45
84
28.133333
0.830457
0.172986
0
0
0
0
0.131478
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0.035714
0.428571
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b33f68c75544b629936c29fb4b8ae81e16ce8cfe
10,460
py
Python
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dependencies/panda/Panda3D-1.10.0-x64/python/Lib/JOD/JamoDrumNodePath.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
""" NodePath for Jam-o-Drum model @author: Ben Buchwald <bb2@alumni.cmu.edu> Last Updated: 11/29/2005 @var DRUMPAD_RADIUS: constant representing the radius of the drumpad as a percentage of the radius of the table @type DRUMPAD_RADIUS: float @var SPINNER_RADIUS: constant representing the radius o...
33.101266
96
0.60631
1,247
10,460
5.056937
0.194066
0.024738
0.011418
0.016175
0.342372
0.315255
0.295116
0.230891
0.230891
0.230891
0
0.01731
0.298566
10,460
315
97
33.206349
0.84217
0.39847
0
0.169355
0
0
0.013998
0
0
0
0
0
0
1
0.137097
false
0
0.056452
0
0.233871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34056015462e1089eaab43dc86088ca8783c08f
2,927
py
Python
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-07-31T12:39:53.000Z
2019-07-31T12:39:53.000Z
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
null
null
null
src/apps/alarm_clock/tests/test_api.py
stefanhoelzl/alarm-clock
efba84e71fcade26bef020dc7eaa10181ea9f96c
[ "MIT" ]
1
2019-10-04T04:32:20.000Z
2019-10-04T04:32:20.000Z
import pytest from unittest.mock import patch from ..api import * from ..alarm import Alarm from .. import AlarmClockApp from ..alarm_states import Disabled, Enabled class AlarmClockMock(AlarmClockApp): auto_store = False def __init__(self, alarms=None, off=False, snooze=False): super().__init__() ...
27.35514
78
0.617014
393
2,927
4.473282
0.183206
0.067691
0.0876
0.0876
0.471559
0.331058
0.182594
0.182594
0.163823
0.163823
0
0.044045
0.239836
2,927
106
79
27.613208
0.746067
0
0
0.270588
0
0
0.08507
0
0
0
0
0
0.282353
1
0.035294
false
0
0.070588
0
0.129412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b340e1518e138957e56fd973250c45b5d93fb474
4,519
py
Python
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
skipole/skiadmin/skiadminpackages/editfiles/editfile.py
bernie-skipole/skipole
b45d3291c593e7c03c053ab4f192f1ecc5c3e9b9
[ "MIT" ]
null
null
null
"Functions implementing FilePage editing" from ... import ValidateError, FailPage, ServerError from ....ski.project_class_definition import SectionData from ... import skilift from ....skilift import editpage from .. import utils def retrieve_edit_filepage(skicall): "Retrieves widget data for the edit file...
31.823944
115
0.680239
563
4,519
5.250444
0.198934
0.102842
0.101489
0.022327
0.456022
0.403248
0.366712
0.315968
0.315968
0.259134
0
0
0.215313
4,519
141
116
32.049645
0.833615
0.100686
0
0.464646
0
0
0.204475
0
0
0
0
0
0
1
0.040404
false
0
0.050505
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b342a3c46ccc9eff45c7a93f20bcee1cba5cd708
23,313
py
Python
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
32
2022-01-12T16:52:28.000Z
2022-03-24T18:05:47.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
3
2022-01-12T17:01:55.000Z
2022-02-12T15:14:16.000Z
src/radixlib/provider.py
0xOmarA/RadixLib
85d75a47d4c4df4c1a319b74857ae2c513933623
[ "MIT" ]
1
2022-01-21T04:28:07.000Z
2022-01-21T04:28:07.000Z
from radixlib.api_types.identifiers import ( TransactionIdentifier, ValidatorIdentifier, NetworkIdentifier, AccountIdentifier, TokenIdentifier, StateIdentifier, ) from radixlib.actions import ActionType from radixlib.network import Network import radixlib as radix import requests from typing im...
39.313659
134
0.59306
2,513
23,313
5.388778
0.144847
0.050953
0.01403
0.034559
0.48213
0.421356
0.362871
0.34345
0.310959
0.299586
0
0.001009
0.320079
23,313
593
135
39.313659
0.853322
0.473513
0
0.443262
0
0.003546
0.124018
0.024156
0
0
0
0
0
1
0.078014
false
0
0.021277
0
0.177305
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34624bfe3809ef151eb67f5a9916a24938c1e64
3,109
py
Python
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
setup.py
Mr0l3/filometro
46af52121fc3ed94935c9965d2ff51d2d26d1809
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys from shutil import rmtree from setuptools import setup, find_packages, Command from filometro import __version__ from filometro import __author__ here = os.path.abspath(os.path.dirname(__file__)) class PublishCommand(Command): """Support setup.py publish.""" d...
30.480392
129
0.630749
344
3,109
5.607558
0.511628
0.015552
0.0648
0.060135
0.099533
0
0
0
0
0
0
0.010513
0.235124
3,109
102
130
30.480392
0.796888
0.034738
0
0.076923
0
0.012821
0.432107
0.010033
0
0
0
0
0
1
0.051282
false
0.038462
0.076923
0
0.166667
0.064103
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34719cd1fc2bb1e55eb9ba89ae807337753e699
801
py
Python
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
2
2019-07-10T08:54:43.000Z
2019-09-09T16:17:04.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T21:29:47.000Z
2019-09-11T21:29:47.000Z
examples/abcbook/example206.py
martinlackner/approval-multiwinner
17bb6294b1910531b66c457f7b1a34a966d4113d
[ "MIT" ]
1
2019-09-11T16:56:23.000Z
2019-09-11T16:56:23.000Z
""" Example 2.6 (PAV, seq-PAV, revseq-PAV). From "Multi-Winner Voting with Approval Preferences" by Martin Lackner and Piotr Skowron https://arxiv.org/abs/2007.01795 """ from abcvoting import abcrules from abcvoting.preferences import Profile from abcvoting import misc from abcvoting.output import output, DETAILS ou...
24.272727
87
0.705368
125
801
4.424
0.456
0.094033
0.068716
0.014467
0
0
0
0
0
0
0
0.027457
0.13608
801
32
88
25.03125
0.771676
0.25593
0
0
0
0
0.034072
0
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3490a3f712a2661b2490d387f96a6b22dd40ef8
7,605
py
Python
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/Encode.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from discord.ext import commands import base64 import binascii import re from Cogs import Nullify def setup(bot): # Add the bot and deps settings = bot.get_cog("Settings") bot.add_cog(Encode(bot, settings)) class Encode: # Init with the bot reference def __init__(self, bot, set...
30.298805
126
0.687968
1,134
7,605
4.424162
0.169312
0.049432
0.074148
0.041459
0.480965
0.418975
0.340243
0.270082
0.243771
0.228025
0
0.019943
0.175805
7,605
250
127
30.42
0.780472
0.046811
0
0.352941
0
0.010695
0.128918
0
0
0
0.002355
0
0
1
0.064171
false
0.042781
0.037433
0.010695
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34955dfe5c35177be930f5f64d0fb5e134d2832
1,968
py
Python
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
9.classes/a_first_look_at_classes.py
yuishihara/python_tutorial
c88db5b1c002dcf69e183ed1a45c02a08aee905c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class MyClass: """A simple example class""" i = 12345 def f(self): return 'hello world' def class_objects(): print(MyClass.i) print(MyClass.f) print(MyClass.f(None)) x = MyClass() class Complex: def __init__(self, realpart, imagpart): ...
18.055046
47
0.554878
257
1,968
4.050584
0.241245
0.053794
0.042267
0.051873
0.400576
0.400576
0.358309
0.358309
0.358309
0.305476
0
0.011029
0.308943
1,968
108
48
18.222222
0.754412
0.022358
0
0.434211
0
0
0.059437
0
0
0
0
0
0
1
0.184211
false
0
0
0.013158
0.328947
0.197368
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34a6562345bbb78b3671e1bb467aac47ea7b5ce
1,664
py
Python
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
5
2020-10-03T14:24:41.000Z
2021-03-05T12:36:44.000Z
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
omega_miya/plugins/bilibili_dynamic_monitor/util.py
Ailitonia/nonebot_miya
71d8cf3e91bbb0dd63cbee85fd757c738b99f10c
[ "MIT" ]
null
null
null
import base64 import aiohttp from io import BytesIO from nonebot import log # 图片转base64 async def pic_2_base64(url: str) -> str: async def get_image(pic_url: str): timeout_count = 0 while timeout_count < 3: try: timeout = aiohttp.ClientTimeout(total=10) ...
39.619048
98
0.546875
196
1,664
4.44898
0.443878
0.034404
0.055046
0.048165
0.068807
0.068807
0.068807
0
0
0
0
0.056744
0.353966
1,664
41
99
40.585366
0.754419
0.005409
0
0.054054
0
0
0.221416
0
0
0
0
0
0
1
0
false
0
0.108108
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34a72eb51bbf4be0f21e5a82d02a446a82a711f
2,972
py
Python
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
1
2020-10-05T10:46:44.000Z
2020-10-05T10:46:44.000Z
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
server_obj.py
varadhodiyil/vision_pipeline
3cf2925b9d799bbd0dbf213d23ca35bfed927381
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import socket import numpy as np from PIL import Image try: import cPickle as pickle except ImportError: import pickle from datetime import datetime import threading from client_send_message import MessageSender from color_classifier import detect_color import ...
27.018182
92
0.569314
363
2,972
4.46281
0.349862
0.039506
0.011111
0.02716
0.119753
0.051852
0.051852
0.051852
0.051852
0
0
0.016481
0.305855
2,972
110
93
27.018182
0.768783
0.222073
0
0.088235
0
0
0.038899
0
0
0
0
0
0
1
0
false
0
0.205882
0
0.205882
0.073529
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34ceef8d6c2e4dc17ff23fbef63dc632e613112
4,332
py
Python
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
legacy/metamodel/nn_generator/nn_trainer_evaluate.py
AlexJew/CityEnergyAnalyst
6eb372c79e5100a2d0abce78561ae368fb409cd1
[ "MIT" ]
null
null
null
# coding=utf-8 """ 'input_matrix.py' script hosts the following functions: (1) collect CEA inputs (2) collect CEA outputs (demands) (3) add delay to time-sensitive inputs (4) return the input and target matrices """ from math import sqrt import pandas as pd from legacy.metamodel.nn_generator import ra...
47.086957
106
0.707756
547
4,332
5.182815
0.279708
0.074074
0.034921
0.049383
0.401411
0.381658
0.299824
0.273369
0.164021
0.164021
0
0.009513
0.199215
4,332
91
107
47.604396
0.807726
0.051247
0
0
0
0
0.068747
0
0
0
0
0
0
1
0.044776
false
0
0.149254
0
0.208955
0.074627
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b34f561782604d15fbd0ad5fb7b41eb487472431
1,512
py
Python
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
1
2015-02-17T12:37:28.000Z
2015-02-17T12:37:28.000Z
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
src/feedfetcher.py
moretti/comic-scraper
12c767499d64f43e0a9703598a6adcad6ffd6330
[ "Unlicense", "MIT" ]
null
null
null
import feedparser import models import time import datetime as dt from bs4 import BeautifulSoup VALID_IMAGE_ATTRIBUTES = ('alt', 'title', 'src') def fetch(url): f = feedparser.parse(url) feed = models.Feed() feed.link = url feed.website = f.feed.get('link') feed.title = f.feed.get('title') f...
25.2
105
0.618386
194
1,512
4.721649
0.324742
0.016376
0.026201
0.037118
0
0
0
0
0
0
0
0.001817
0.271825
1,512
59
106
25.627119
0.830154
0
0
0.044444
0
0
0.060185
0
0
0
0
0
0
1
0.066667
false
0
0.111111
0
0.288889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b35206db6eaaa312fca86f170531ab36f181b6a0
6,745
py
Python
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
server.py
eugenetan01/TranslatorBot
e814d11b5a492a26ecb84737c31dc2c92c9711d8
[ "MIT" ]
null
null
null
import json import logging from telegram import InlineKeyboardButton, InlineKeyboardMarkup from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackQueryHandler, ConversationHandler import os from googletrans import Translator import Controller as controller import DBController as dbController...
40.878788
166
0.722016
767
6,745
6.273794
0.33116
0.043225
0.033666
0.041147
0.317747
0.238155
0.191604
0.168329
0.15212
0.15212
0
0.002345
0.178206
6,745
164
167
41.128049
0.865777
0.238251
0
0.153061
0
0
0.135013
0.014958
0
0
0
0
0
1
0.081633
false
0.010204
0.091837
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b35557efbdcd9de6dfaad18c72d80170e6a3f1c7
871
py
Python
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
4
2021-01-30T12:36:18.000Z
2022-03-23T10:10:45.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-11-05T09:16:36.000Z
2021-11-05T15:27:25.000Z
tests/test_cluster_assignment.py
mo6zes/Reproducing-Deep-Fair-Clustering
91f915436821eb05cdd021d3e9eb050a248fe993
[ "Unlicense" ]
1
2021-03-21T19:44:45.000Z
2021-03-21T19:44:45.000Z
""" Source: https://github.com/vlukiyanov/pt-dec/blob/master/tests/test_cluster.py """ import torch from unittest import TestCase from module import ClusterAssignment class TestClusterAssignment(TestCase): @classmethod def setUpClass(cls) -> None: cls.cluster = ClusterAssignment( clu...
30.034483
82
0.608496
106
871
4.933962
0.45283
0.045889
0.011472
0.118547
0.141491
0.141491
0
0
0
0
0
0.041979
0.234214
871
28
83
31.107143
0.742129
0.089552
0
0
0
0
0
0
0
0
0
0
0.105263
1
0.105263
false
0
0.157895
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b357152a7c97a6a98a37a74b2b7b43161d57c224
2,789
py
Python
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
products/models.py
anonshubh/eCommerce-rostores-
7503e855d650556e216c42fc1c5b95a42bb9c501
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.urls import reverse import random,os from ecommerce_src.utils import unique_slug_generator,get_filename from django.db.models.signals import pre_save from django.utils.encoding import smart_str from django.core.files.storage import FileSystemStorage from django.conf import setti...
32.811765
122
0.726067
363
2,789
5.380165
0.311295
0.030722
0.064004
0.061444
0.119816
0.059396
0.059396
0.059396
0.059396
0.059396
0
0.009528
0.172105
2,789
84
123
33.202381
0.836293
0.017569
0
0.0625
0
0
0.042748
0.014615
0
0
0
0
0
1
0.1875
false
0
0.125
0.09375
0.734375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b35836893267f52783e00ae095462a2ce8e96ecc
5,473
py
Python
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
null
null
null
ai/project/scraper.py
BoraKurucu/Artificial-Intelligence
5681ad43a79e349b36eab3f8c1fd994fffcf0cfe
[ "MIT" ]
1
2021-02-23T19:34:12.000Z
2021-02-23T19:34:12.000Z
import time from selenium import webdriver from selenium.webdriver.chrome.options import Options class SeleniumCrosswordHelper: """ A class to determine the web-operations of Selenium. Methods --------- get_clues() Returns the data of the clues using the tags that are embedded...
35.083333
101
0.610451
660
5,473
4.80303
0.251515
0.04164
0.032808
0.039748
0.320505
0.17918
0.141325
0.076025
0.076025
0.076025
0
0.002314
0.289421
5,473
155
102
35.309677
0.812805
0.251233
0
0.105263
0
0
0.133572
0.027541
0
0
0
0
0
1
0.144737
false
0
0.039474
0.013158
0.263158
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
0
0
0
1
0
b359b7be06a297e1d25880bf92aada1e13ba8821
3,930
py
Python
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
server.py
LutherMckeiver/http-server
4ce81dfad82c5b2792bf21f088985ddb784d43c9
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler, HTTPServer from urllib.parse import urlparse, parse_qs from cowpy import cow import os import json httpcow = '''<!DOCTYPE html> <html> <head> <title> cowsay </title> </head> <body> <header> <nav> <ul> <li><a href="/cow">cowsay</a></li...
28.273381
97
0.526718
432
3,930
4.655093
0.261574
0.06365
0.071606
0.073098
0.584784
0.584784
0.584784
0.584784
0.584784
0.584784
0
0.02015
0.35598
3,930
138
98
28.478261
0.774397
0.08855
0
0.540816
0
0
0.193825
0.016581
0
0
0
0
0
1
0.040816
false
0
0.05102
0
0.183673
0.010204
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b35e517ebb50cbef91f32f99c017eebf79d3a397
2,873
py
Python
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/site/dbmodels/site.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.site.dbmodels.site ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from typing import Optional from ....database import db from ....typing import BrandID, PartyID from ....util.instances import ReprBuilder f...
34.202381
110
0.678037
355
2,873
5.295775
0.256338
0.055319
0.058511
0.078191
0.257979
0.180319
0.180319
0.046809
0
0
0
0.003456
0.194222
2,873
83
111
34.614458
0.808639
0.06126
0
0
0
0
0.053651
0
0
0
0
0
0
1
0.032258
false
0
0.145161
0.016129
0.435484
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b35f99354012d3ad1fdad1496663748a0d44b801
1,799
py
Python
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
5
2021-08-13T14:55:58.000Z
2022-03-21T12:11:11.000Z
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
src/air_controller.py
n-guitar/flask-natuer-remo
197ff7b6031caa3ac36eaf2bbeca71fbeac090db
[ "MIT" ]
null
null
null
from flask import Blueprint from api.json_dataclient import AppliancesDataClient from api.remoclient import NatureRemoClient air_controller = Blueprint('air_controller', __name__, url_prefix='/air/api') @air_controller.route('/send/power/<appliance_id>/<signal>', methods=['POST']) def send_power(appliance_id,signal...
38.276596
100
0.761534
220
1,799
5.95
0.213636
0.184874
0.12987
0.10084
0.71505
0.621849
0.583652
0.288006
0.288006
0.166539
0
0.001889
0.117287
1,799
46
101
39.108696
0.822418
0.008894
0
0.324324
0
0
0.122965
0.094891
0
0
0
0
0
1
0.135135
false
0
0.081081
0
0.351351
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b36181990f0e7a289739c1df1c506a6c08cadfb1
1,952
py
Python
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
51
2021-11-07T03:14:12.000Z
2022-03-31T11:47:56.000Z
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
null
null
null
code/api_controlers/apis.py
AICyberTeam/retrievalSystem
3a6b4a3f38ed179b529d3ac0cf0aad9aa6b98903
[ "MIT" ]
13
2021-11-07T03:14:14.000Z
2022-03-20T11:14:03.000Z
from flask import Flask, request, jsonify import json, os from threading import Timer from api_controlers import base_function, image_encode_ctl, delete_encode_ctl,\ text_search_ctl, image_search_ctl, semantic_localization_ctl, utils def api_run(cfg): app = Flask(__name__) # Flask 初始化 # ================...
36.830189
83
0.665471
245
1,952
5.012245
0.228571
0.134365
0.044788
0.061075
0.513844
0.289088
0.235342
0.235342
0.235342
0.235342
0
0.00372
0.173668
1,952
52
84
37.538462
0.757595
0.059426
0
0.285714
0
0
0.100219
0.011501
0
0
0
0
0
1
0.171429
false
0
0.114286
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
0
0
0
0
1
0
b36472502cc6bb056b8f449921017ab2cdc6baa1
2,440
py
Python
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
atnp/collecter.py
alanfgn/text-analysis-political-news
2a6e81bbc68eac7cacd63b0fcf157161264a91b1
[ "MIT" ]
null
null
null
import atnp.utils as utils import requests import csv import re import os def slice_url(url): match = re.search(utils.LINK_PATTERN, url) return match.group(1), match.group(2), match.group(3) def gen_unique_name(domain, path): return "{}__{}".format(domain, path.replace("/", "_")) def makerequest(row, ...
28.045977
73
0.611475
312
2,440
4.644231
0.262821
0.043478
0.048309
0.033126
0.196687
0.081435
0.041408
0.041408
0
0
0
0.009698
0.239344
2,440
86
74
28.372093
0.771013
0
0
0
0
0
0.133607
0.011475
0
0
0
0
0
1
0.084746
false
0
0.084746
0.016949
0.220339
0.20339
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b3654a8261cc1c66da5a7989b216f4998e241a89
754
py
Python
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
7
2019-09-18T19:45:46.000Z
2020-05-18T20:07:07.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
252
2019-09-18T20:25:03.000Z
2022-03-25T11:23:50.000Z
alembic/versions/5ce477cd7ee3_add_otp_column.py
ashrafmahmood/oscarine-api
775f3ad5a3d3c50e36e228ee348ef40f075e95ec
[ "MIT" ]
8
2019-09-18T11:02:45.000Z
2021-05-18T17:08:51.000Z
"""add otp column Revision ID: 5ce477cd7ee3 Revises: 54f029830204 Create Date: 2020-05-12 19:04:09.302116 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5ce477cd7ee3' down_revision = '54f029830204' branch_labels = None depends_on = None def upgrade(): #...
24.322581
74
0.679045
97
754
5.206186
0.494845
0.053465
0.083168
0.091089
0.304951
0.304951
0.304951
0.174257
0
0
0
0.0864
0.171088
754
30
75
25.133333
0.7216
0.392573
0
0
0
0
0.128266
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b367e04a0c647330d45d344829776dd6eaf4daa7
3,087
py
Python
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
keras_approach.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
#!/usr/bin/env python import tensorflow import pandas as pd import numpy as np from time import time from keras.models import Sequential from keras.layers import Dense from keras.callbacks import TensorBoard from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import train_test...
27.318584
112
0.694201
424
3,087
4.898585
0.360849
0.031777
0.025036
0.03611
0.105922
0.048146
0.048146
0.048146
0
0
0
0.01536
0.177519
3,087
112
113
27.5625
0.802678
0.169096
0
0
0
0
0.049302
0
0
0
0
0
0
1
0.035088
false
0
0.22807
0
0.298246
0.122807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b371587fd6814326d2d07cd04a37a379d3827420
1,893
py
Python
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
Playlist.py
FloSewn/Jukeberry
9afb4a544ba1f35c6bde41b7bc25be0aa6b87954
[ "MIT" ]
null
null
null
from Songlist import Songlist import random class Playlist(Songlist): def __init__(self, songpool, n_minimum=3, n_maximum=7): super().__init__("Playlist") random.seed(539) self.songpool = songpool self.n_minimum = min((n_minimum, len(songpool.data))) self.n_maximum = ma...
26.291667
113
0.577919
243
1,893
4.333333
0.316872
0.068376
0.041785
0.037037
0.174739
0.144349
0.144349
0.144349
0.091168
0.091168
0
0.024352
0.327522
1,893
71
114
26.661972
0.802828
0.207079
0
0.166667
0
0
0.00567
0
0
0
0
0
0
1
0.111111
false
0
0.055556
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
0
0
0
0
0
0
0
0
0
1
0
b37267d6c2c6d0c826bf45142f7dbce6bb47ab24
4,131
py
Python
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
2
2021-05-09T17:46:10.000Z
2021-05-09T17:46:13.000Z
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
model.py
khk4912/slash-dpy
751f66cb0eb330d230695c179e44ce99b4575fd1
[ "MIT" ]
null
null
null
import inspect from dataclasses import dataclass from typing import Callable, Optional, OrderedDict import aiohttp import discord from discord.member import Member from discord.role import Role from discord.user import User from exceptions import InvaildArgument SUB_COMMAND = 1 SUB_COMMAND_GROUP = 2 STRING = 3 INTEG...
25.5
88
0.535706
417
4,131
5.270983
0.316547
0.045496
0.030937
0.030027
0.040946
0
0
0
0
0
0
0.004651
0.375454
4,131
161
89
25.658385
0.847287
0.123699
0
0.142857
0
0.010204
0.079922
0
0
0
0
0
0
1
0.010204
false
0
0.091837
0
0.214286
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
b37268a6e2b21c06a412ba95af142dfc30df87fd
20,192
py
Python
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
labelprop/voxelmorph2d.py
nathandecaux/labelprop
c92c453e12cc8575929d947db4ae7b266433eb52
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.distributions.normal import Normal from monai.networks.nets import UNet,Classifier,DenseNet,BasicUNet,DynUNet import numpy as np import math from kornia.geometry.transform import get_perspective_transform,get_affine_matrix2d from .MultiLevelN...
37.186004
314
0.595186
2,683
20,192
4.320164
0.169586
0.019843
0.004659
0.004831
0.312398
0.268398
0.217151
0.159952
0.126305
0.11923
0
0.02218
0.296652
20,192
543
315
37.186004
0.793902
0.332359
0
0.221053
0
0
0.016905
0
0
0
0
0
0.010526
1
0.105263
false
0
0.045614
0.003509
0.273684
0.014035
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fa6051aedcd77c23a8930e26b6cd51d26ec9f9d
607
py
Python
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
4fun/open_web.py
gatitoz-luan/extras
b5caf73afcdc5e24f3ad97ef565cb15a7fee2764
[ "MIT" ]
null
null
null
from time import sleep import urllib.request import webbrowser try: urllib.request.urlopen("https://www.youtube.com/watch?v=ffbI0JMW7g4") except Exception as erro: # Desligando o wifi, ou o site não estiver no ar print('\033[1; 31mO melhor vídeo do youtube não está acessível no momento.\033[m') er = erro ...
43.357143
86
0.708402
97
607
4.43299
0.618557
0.060465
0.069767
0.083721
0.162791
0.162791
0.162791
0
0
0
0
0.057884
0.174629
607
14
87
43.357143
0.800399
0.197694
0
0
0
0
0.5
0
0
0
0
0
0
1
0
false
0
0.230769
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fa6797946f30447b24a6199a63c2d91f44255e0
5,546
py
Python
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
5
2018-10-18T19:52:12.000Z
2018-11-17T19:02:49.000Z
crystal_toolkit/components/symmetry.py
mkhorton/mp-dash-components
b9af1b59f0120a90897631d9a7f8d9f0ae561de9
[ "MIT" ]
null
null
null
from fractions import Fraction from dash import html import numpy as np from dash import callback_context from dash.dependencies import Input, Output from pymatgen.core.structure import Structure from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.util.string import unicodeify_spacegroup, unicodeif...
33.817073
94
0.545979
555
5,546
5.284685
0.331532
0.062053
0.021821
0.020457
0.065462
0.034777
0.034777
0
0
0
0
0.005674
0.364407
5,546
163
95
34.02454
0.826383
0
0
0.086957
0
0
0.182474
0.009196
0
0
0
0
0
1
0.043478
false
0
0.072464
0.014493
0.188406
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fa6c536a0c61526a9ec8c3d285219c9f61ba8f1
14,306
py
Python
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
16
2022-02-13T00:35:30.000Z
2022-02-14T20:11:55.000Z
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
null
null
null
operation_obj.py
Frichetten/aws_api_shapeshifter
c5b8891ca98eb290c0773c5fb46672d64cd7fae0
[ "MIT" ]
1
2022-02-16T18:27:34.000Z
2022-02-16T18:27:34.000Z
from xeger import Xeger import api_signer import protocol_formatter import aws_api_shapeshifter """ The operation_obj will be the primary location where parameters are altered and configured. Every user generated modification will pass throug here. As a result this code is ugly and I'm only partially sorry. "...
34.555556
134
0.572557
1,556
14,306
5.073907
0.184447
0.036479
0.021279
0.022799
0.30665
0.223813
0.174668
0.133882
0.08993
0.077517
0
0.004787
0.342933
14,306
414
135
34.555556
0.835106
0.14113
0
0.281588
0
0
0.073753
0.001835
0
0
0
0.002415
0
1
0.093863
false
0.01083
0.01444
0.00722
0.33213
0.00361
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fa7dec69496a095a2c47ea6cc15a0aee006cc97
29,064
py
Python
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
chesstab/gui/uci.py
RogerMarsh/chesstab
01d375dc6bf025b621612a84513e55c4640a78ad
[ "BSD-3-Clause" ]
null
null
null
# uci.py # Copyright 2015 Roger Marsh # License: See LICENSE.TXT (BSD licence) """Control multiple UCI compliant chess engines.""" import tkinter import tkinter.messagebox import tkinter.filedialog from solentware_grid.core.dataclient import DataSource from solentware_misc.gui.exceptionhandler import ExceptionHandl...
37.071429
87
0.525495
2,928
29,064
5.044057
0.155738
0.035751
0.02749
0.025323
0.553389
0.496648
0.459747
0.420272
0.39197
0.354865
0
0.004698
0.392169
29,064
783
88
37.118774
0.831314
0.150874
0
0.483713
0
0
0.120238
0
0
0
0
0
0
1
0.061889
false
0
0.019544
0
0.09772
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fa9b6e0222d2c0b70dc7ec3aecbef873f179373
4,704
py
Python
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
Exercises/flask-blogly/app.py
pedwards95/Springboard_Class
9df8dbd8832223e89b89d12db3f7e0b178e2ed79
[ "MIT" ]
null
null
null
# python -m venv venv # source venv/Scripts/activate # pip install pylint # pip install ipython # pip install flask # pip install flask_debugtoolbar # pip install pylint-flask # pip install psycopg2-binary # pip install flask-sqlalchemy # pip install pylint_flask_sqlalchemy # pip install pylint-sqlalchemy # pip install...
31.36
87
0.713435
723
4,704
4.384509
0.159059
0.039748
0.0347
0.036909
0.481388
0.38265
0.34858
0.278549
0.227445
0.209148
0
0.007153
0.13818
4,704
150
88
31.36
0.77479
0.129889
0
0.194444
0
0
0.229328
0.065589
0
0
0
0
0
1
0.138889
false
0
0.027778
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fad9a654e68fbbd2c8a4a136f03a32478751ee4
1,177
py
Python
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
29
2019-11-12T16:15:15.000Z
2022-02-06T10:51:25.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
3
2020-04-25T11:02:53.000Z
2021-11-25T10:39:09.000Z
emmet/action_utils/utils.py
jingyuexing/py-emmet
e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11
[ "MIT" ]
7
2020-04-25T09:42:54.000Z
2021-02-16T20:29:41.000Z
from ..scanner_utils import is_space class SelectItemModel: __slots__ = ('start', 'end', 'ranges') def __init__(self, start: int, end: int, ranges: list=None): self.start = start self.end = end self.ranges = ranges def to_json(self): return { 'start': self.sta...
23.078431
89
0.531011
155
1,177
3.935484
0.316129
0.034426
0.045902
0.039344
0.095082
0
0
0
0
0
0
0.016883
0.345794
1,177
50
90
23.54
0.775325
0.062872
0
0.054054
0
0
0.086661
0
0
0
0
0
0
1
0.108108
false
0
0.027027
0.027027
0.243243
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2faef444b1852c4a4b65fb3d4c3766d0712c2492
2,765
py
Python
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-04T21:58:27.000Z
2018-12-04T21:58:27.000Z
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
null
null
null
tests/test_effect_overlay.py
niklasR/brave
5234bd9cecd6d7282cd0b50acfda44890cf4cfb8
[ "Apache-2.0" ]
1
2018-12-07T12:21:08.000Z
2018-12-07T12:21:08.000Z
import time, pytest, inspect from utils import * from PIL import Image def test_effect_overlay_visible_after_creation(run_brave): run_brave() time.sleep(0.5) check_brave_is_running() add_overlay({'type': 'effect', 'props': {'effect_name': 'edgetv'}}) time.sleep(0.1) assert_overlays([{'id': 0,...
41.893939
109
0.632911
353
2,765
4.739377
0.23796
0.089659
0.059773
0.046025
0.66049
0.607292
0.512851
0.355051
0.337119
0.317394
0
0.018325
0.171067
2,765
65
110
42.538462
0.711606
0.100543
0
0.354167
0
0
0.266263
0
0
0
0
0
0.166667
1
0.0625
false
0
0.0625
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fafadc84ca6d4bd015e4f90fe2035ddef798fc3
1,659
py
Python
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
RaNDaL/packages/models/text_fields/tree_field.py
adam-bentley/RaNDaL
d079ea4773815630f25f83ab0fbb8eefdbf2d17c
[ "MIT" ]
null
null
null
import json from numpy import ndarray from tensorflow.python.keras import Sequential from ...helpers.segmentation import split_characters from .text_field import TextArea class Tree(TextArea): def __init__(self, frame: ndarray, model: Sequential, inverted: bool = False): """ Constrctor for a tre...
33.18
82
0.502712
200
1,659
4.11
0.395
0.145985
0.058394
0.058394
0
0
0
0
0
0
0
0.020833
0.392405
1,659
50
83
33.18
0.794643
0.201929
0
0
0
0
0.043239
0
0
0
0
0
0
1
0.071429
false
0
0.178571
0.035714
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
0
0
0
0
0
0
0
0
0
0
1
0
2fb05c28f9fc1d23f3b79a475475fc481afb0de9
2,742
py
Python
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
117
2016-08-22T15:52:28.000Z
2022-01-08T00:53:28.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
12
2017-10-28T09:44:44.000Z
2018-11-21T15:12:42.000Z
pyez/PyEZ_Cookbook_2017/15-Monitoring_IPSEC_tunnels/ike-tunnels.py
rsmekala/junosautomation
b76b3e8ce34048e3460cb071d0aeef176ab3836f
[ "Apache-2.0" ]
78
2016-08-19T05:35:28.000Z
2022-03-13T07:16:27.000Z
# Copyright 2017, Juniper Networks Pvt Ltd. # All rights reserved. from jnpr.junos import Device from jnpr.junos.utils.config import Config from lxml import etree import dill import xmltodict from io import StringIO from contextlib import redirect_stdout from collections import defaultdict from operator import itemget...
32.642857
77
0.539023
286
2,742
5.13986
0.416084
0.054422
0.038095
0.05034
0.269388
0.213605
0.213605
0.213605
0.213605
0.213605
0
0.01442
0.342451
2,742
83
78
33.036145
0.800887
0.063093
0
0.369863
0
0
0.152496
0.035491
0
0
0
0
0
1
0.013699
false
0.027397
0.123288
0
0.150685
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fb0c6198b297677732f2c4daf939edfc49f4ce4
3,484
py
Python
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
52
2018-08-24T02:28:43.000Z
2021-07-06T04:44:22.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
62
2018-09-17T06:59:16.000Z
2021-12-15T06:02:51.000Z
tools/precommit_converter/extractor/extractor.py
bayeshack2016/icon-service
36cab484d2e41548d7f2f74526f127ee3a4423fc
[ "Apache-2.0" ]
35
2018-09-14T02:42:10.000Z
2022-02-05T10:34:46.000Z
import json from typing import List, Tuple, Optional from iconservice.base.block import Block from tools.precommit_converter.data.icon_service_info import IconServiceInfo from tools.precommit_converter.data.key_value import KeyValue class NotSupportFileException(Exception): pass class ExtractException(Exceptio...
39.590909
99
0.528703
360
3,484
4.936111
0.272222
0.040518
0.047271
0.04502
0.130557
0.070906
0
0
0
0
0
0.004627
0.379736
3,484
87
100
40.045977
0.817677
0.054535
0
0.095238
0
0
0.061325
0
0
0
0
0
0
1
0.063492
false
0.031746
0.079365
0
0.269841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fb476dd66bd0ab1d1e4099cd971c61bf78c0144
2,325
py
Python
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
api/models/predict.py
sanjeet1207/Batman
658a1bab55de425b23288ffec69f2d7ac93bb007
[ "MIT" ]
null
null
null
from datetime import datetime from PIL import Image from torchvision import transforms from urllib.request import urlopen import requests import logging import os import sys import torch model = torch.hub.load('pytorch/vision:v0.5.0', 'resnet18', pretrained=True) model.eval() def get_class_labels(): class_dict = ...
33.695652
96
0.630968
293
2,325
4.866894
0.474403
0.031557
0.019635
0.026648
0
0
0
0
0
0
0
0.029582
0.258495
2,325
69
97
33.695652
0.797564
0.128172
0
0
0
0
0.066271
0.010386
0
0
0
0
0
1
0.035714
false
0
0.160714
0
0.232143
0.017857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fb6f09cc2a00f81943353736fc4cc723e1daf09
1,471
py
Python
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
nlp_helper/nlp_helper_sentence_split.py
mstaschik/nlp-helper
9f0722637cdcce6ae0063a152db735bb99818ec1
[ "MIT" ]
null
null
null
from pathlib import Path import logging logging.basicConfig(level=logging.DEBUG) def split_text_into_columns(nlp_models, df) -> None: """ Takes Text Content of one DataFrame Cell and splits into multiple Columns Args: nlp_models (list): List of Spacy Language Models df (Pandas DataFrame):...
25.807018
87
0.60775
165
1,471
5.339394
0.50303
0.051078
0.024972
0
0
0
0
0
0
0
0
0.005742
0.289599
1,471
57
88
25.807018
0.837321
0.380693
0
0
0
0
0.072664
0
0
0
0
0
0
1
0.052632
false
0
0.157895
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fb82aeb0795716862ec22bbeb4fb9c9fa7db7dd
5,592
py
Python
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
ribo_annotate.py
everyday847/RiboAnnotate
a53abc6987e71538527b5b282129ead54497b31a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from PIL import Image, ImageFont, ImageDraw base_fields = ["x", "y", "chain", "segid", "seqpos", "name"] def base_info_of(line): """ Line format: x y chain segid seqpos name 205.500 -150.750 C AB 0 L14 """ return dict(zip(...
38.833333
160
0.599428
804
5,592
3.988806
0.241294
0.060804
0.016838
0.021827
0.396632
0.368257
0.243218
0.189585
0.140318
0.088556
0
0.027581
0.241416
5,592
143
161
39.104895
0.72843
0.21191
0
0.177215
0
0
0.119098
0.018558
0
0
0
0
0
1
0.113924
false
0
0.025316
0.012658
0.189873
0.075949
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fbb0c4e75b2c3ddc001608e2927153cc660a8eb
5,560
py
Python
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
web_app.py
frank-chris/HospitalDatabaseSystem
4861582d8cdca0ea28c7ef7ed46b2bdcecb3bf0b
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, session from flask_mysqldb import MySQL from sql_helper import * from html_helper import * app = Flask(__name__) app.debug = True app.secret_key = 'mango' # Enter your database connection details below app.config['MYSQL_HOST'] = 'localhost' app.co...
42.442748
121
0.645863
711
5,560
4.80872
0.14346
0.094765
0.076046
0.042118
0.617724
0.586721
0.568002
0.538462
0.503656
0.503656
0
0.002097
0.228237
5,560
131
122
42.442748
0.794687
0.010791
0
0.45614
0
0
0.109131
0
0
0
0
0
0
1
0.035088
false
0.008772
0.035088
0.008772
0.201754
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fbcf0d92ad2b40b429d3953d100953a69f41fd2
4,379
py
Python
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
seq2seq_dataset.py
Leon-Francis/blue-badminton
4b267ac355173a2ed717f9fcf16edd008960b502
[ "Apache-2.0" ]
null
null
null
import os import re from victim_module.victim_config import IMDB_Config from torch.utils.data import Dataset from tools import logging from transformers import AutoTokenizer from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords os.environ["TOKENIZERS_PARALLELISM"] = "false" # Setup stopwords list ...
38.752212
97
0.542818
468
4,379
4.891026
0.290598
0.045435
0.010485
0.010485
0.349498
0.330275
0.330275
0.301442
0.301442
0.264744
0
0.004904
0.348025
4,379
113
98
38.752212
0.796848
0.053665
0
0.351648
0
0
0.057879
0.00535
0
0
0
0
0
1
0.054945
false
0.010989
0.087912
0.021978
0.208791
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fbf69f0c7833581d5b839c771d79dfeca5e3540
771
py
Python
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
1
2020-01-31T11:38:47.000Z
2020-01-31T11:38:47.000Z
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
tests/read_head_test.py
aescwork/sqliteminor
83aa4f76a28141b085bbfc7f725531e0b67aeed5
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import sys sys.path.append("../sqliteminor/") sys.path.append("../temp/") import sqliteminor import setup_db class ReadHeadTest(unittest.TestCase): def setUp(self): self.conn = setup_db.setup_db() self.read_head_comp = [(1, u'Ash'), (2, u'Yew'), (3, u'White Pine'), (4...
15.734694
124
0.673152
116
771
4.232759
0.431034
0.09776
0.09776
0.065173
0.089613
0
0
0
0
0
0
0.012195
0.149157
771
48
125
16.0625
0.73628
0.027237
0
0
0
0
0.123306
0
0
0
0
0
0.095238
1
0.190476
false
0
0.190476
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
0
0
0
0
1
0
2fbf7f011904cba5b1dd2d9a8b76bf67ae5b7a0e
5,955
py
Python
Gallery/views.py
CiganOliviu/InfiniteShoot
14f7fb21e360e3c58876d82ebbe206054c72958e
[ "MIT" ]
1
2021-04-02T16:45:37.000Z
2021-04-02T16:45:37.000Z
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
Gallery/views.py
CiganOliviu/InfiniteShoot-1
6322ae34f88caaffc1de29dfa4f6d86d175810a7
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.urls import reverse from django.views import generic from django.views.generic.edit import FormMixin from .models import * from Gallery.form import ClientC...
37.21875
116
0.751637
718
5,955
5.82312
0.13649
0.091844
0.130112
0.126525
0.597226
0.478833
0.410428
0.376704
0.376704
0.329347
0
0.000607
0.170109
5,955
159
117
37.45283
0.845407
0
0
0.25
0
0
0.140218
0.093535
0
0
0
0
0
1
0.111111
false
0
0.074074
0.018519
0.398148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc03895160f2fd0bb43ba9092bb74994194db31
4,766
py
Python
kat/controller.py
TOT0RoKR/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
3
2019-10-27T08:26:15.000Z
2019-11-26T12:23:38.000Z
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
null
null
null
kat/controller.py
tot0rokr/kat
5fafe688593a60700f1067ca51ec9d5f148a396e
[ "MIT" ]
1
2020-01-25T00:14:51.000Z
2020-01-25T00:14:51.000Z
from kat.lib.tag import Tag from kat.lib.file import File from kat.lib.scope import Scope from kat.tracer import ccscanner as ccs from kat.tracer import ccparser as ccp from kat.tracer import ppscanner as pps from kat.tracer import ppparser as ppp from kat.ui.tabpage import * import kat.ui.filetree as ft import kat.ui....
29.974843
78
0.610575
619
4,766
4.578352
0.198708
0.042343
0.050459
0.028229
0.37156
0.304164
0.255469
0.184898
0.166549
0.166549
0
0.007345
0.257239
4,766
158
79
30.164557
0.79322
0.051616
0
0.338462
0
0
0.065824
0
0
0
0
0
0.007692
1
0.038462
false
0.015385
0.123077
0
0.2
0.007692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc482b29b5ed517acbe06792cf699b040d68832
7,015
py
Python
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/data_interfaces/utils.py
andyasne/commcare-hq
c59a24e57bdd4d2536493f9ecdcc9906f4ae1b88
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from typing import List, Optional from django.utils.translation import ugettext as _ from couchdbkit import ResourceNotFound from soil import DownloadBase from corehq.apps.casegroups.models import CommCareCaseGroup from corehq.apps.hqcase.utils import get_case_by_identifier from corehq.form_processor.interfaces.dba...
33.564593
115
0.606557
771
7,015
5.285344
0.217899
0.029448
0.039264
0.020614
0.242454
0.211043
0.16638
0.132515
0.113865
0.090307
0
0.002015
0.292373
7,015
208
116
33.725962
0.818896
0.00727
0
0.327381
0
0
0.149691
0
0
0
0
0
0
1
0.035714
false
0
0.059524
0.005952
0.172619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc4fb97dec276ac9c856a99d96ed1184a3ff45c
4,725
py
Python
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
7
2021-02-01T22:39:23.000Z
2021-08-09T16:28:38.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-05-17T13:14:40.000Z
2021-05-20T10:26:09.000Z
category_prediction/evalCategoryModel.py
jakelever/corona-ml
8ceb22af50d7277ebf05f2fd21bbbf68c080ed76
[ "MIT" ]
1
2021-01-04T14:11:18.000Z
2021-01-04T14:11:18.000Z
import argparse import json import sys from sklearn.model_selection import train_test_split from sklearn.preprocessing import MultiLabelBinarizer import sklearn.metrics from coronacode import DocumentClassifier def main(): parser = argparse.ArgumentParser('Build a model for a classifier') parser.add_argument('-...
35.526316
148
0.729735
721
4,725
4.571429
0.209431
0.024272
0.016384
0.014867
0.168386
0.134102
0.118325
0.069175
0.053398
0.053398
0
0.012364
0.126984
4,725
132
149
35.795455
0.786667
0.084444
0
0.072289
0
0
0.171296
0.033796
0
0
0
0
0.012048
1
0.012048
false
0
0.084337
0
0.096386
0.168675
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc5e09486ca793c293ae78afb5fd7c1bcc6bbb2
1,930
py
Python
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
1
2019-10-19T22:03:33.000Z
2019-10-19T22:03:33.000Z
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
simple/cubes.py
sawantss/simple-cozmo
54c85d7a42e351616edfc19ea000c94b3eee47f4
[ "Apache-2.0" ]
null
null
null
""" This class makes it easier to deal with cube tapped events in a procedural way using if statements. """ from __future__ import with_statement __all__ = ["LightCubesEventsSerializer"] __author__ = "Shitalkumar Sawant" __copyright__ = "Copyright(c) 2018 All rights reserved" from threading import Lock import cozmo...
31.129032
99
0.672021
265
1,930
4.615094
0.366038
0.07359
0.040065
0.044154
0.133279
0.100572
0.04906
0.04906
0
0
0
0.015007
0.240415
1,930
61
100
31.639344
0.819236
0.051295
0
0.054054
0
0
0.084482
0.015578
0
0
0
0
0
1
0.162162
false
0
0.135135
0.027027
0.459459
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc616d3f84483fe97876ef204e5c1ea508cf80c
7,771
py
Python
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
test/test_basic.py
brunoginciene/mergin-db-sync
0126e952df0e290ce503629b9831fbd1623edf7e
[ "MIT" ]
null
null
null
import pytest import os import shutil import sqlite3 import tempfile import psycopg2 from mergin import MerginClient, ClientError import sys sys.path.insert(0, '/home/martin/lutra/mergin-db-sync') from dbsync import dbsync_init, dbsync_pull, dbsync_push, dbsync_status, config GEODIFFINFO_EXE = os.environ.get('TES...
34.847534
111
0.713808
1,143
7,771
4.633421
0.167979
0.049849
0.030211
0.024169
0.545128
0.510385
0.487915
0.487538
0.480929
0.456193
0
0.005991
0.18376
7,771
222
112
35.004505
0.828945
0.245528
0
0.476563
0
0.007813
0.187435
0.046467
0
0
0
0
0.078125
1
0.054688
false
0.03125
0.070313
0
0.132813
0.039063
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fc6dec78a4c6244e5db1d19faef976eaab1b58b
20,773
py
Python
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/Expand/bte_querier.py
MayankMurali/RTX
7d86305fb654c013c5ed2450dfe222f8666bfab2
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys import os import traceback import asyncio from biothings_explorer.user_query_dispatcher import SingleEdgeQueryDispatcher sys.path.append(os.path.dirname(os.path.abspath(__file__))+"/../../UI/OpenAPI/python-flask-server/") from swagger_server.models.node import Node from swagger_server.mo...
60.211594
140
0.620854
2,670
20,773
4.500749
0.146442
0.023966
0.017475
0.022468
0.397603
0.293917
0.217276
0.169843
0.124906
0.121994
0
0.000547
0.296154
20,773
344
141
60.386628
0.821353
0.090983
0
0.1875
0
0.007353
0.163779
0.035445
0
0
0
0.002907
0
1
0.044118
false
0
0.029412
0
0.161765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fcabbf4dd03d68a4332042abb2b0e3d729ffc0b
2,088
py
Python
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
filehandling.py
theambidextrous/py-learn-trail
33283d29862654972edaab5baf318ae7298e6f76
[ "Apache-2.0" ]
null
null
null
### FILE HADLING ############# ## File OPen """" Use open() to manipulate files. Open() function takes two parameters; filename, and mode. There are four different methods (modes) for opening a file: =================================================================== "r" - Read - Default value. Opens a file for reading...
34.229508
120
0.534962
270
2,088
4.137037
0.4
0.037601
0.044763
0.058192
0.14145
0.128021
0.128021
0.053715
0
0
0
0.00111
0.137452
2,088
60
121
34.8
0.619101
0.440613
0
0.48
0
0
0.556818
0.378409
0
0
0
0
0
1
0
false
0
0.04
0
0.04
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fcb5b1b96a29a0e18900da614e07c230a2d10b4
5,046
py
Python
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
train_utils.py
mengcz13/pytorch_training_toolbox
fae446b53d687248c7cf4667b45530b6a9676f43
[ "MIT" ]
null
null
null
import os import sys import socket import time import argparse import pickle import datetime import multiprocessing import numpy as np import torch import torch.optim as optim import torch.nn.functional as torchF from torch.optim import lr_scheduler from torch.utils.data import DataLoader import torch.multiprocessing...
36.565217
169
0.652794
669
5,046
4.763827
0.306428
0.033888
0.018826
0.032005
0.213681
0.187951
0.136806
0.127393
0.106056
0.077816
0
0.002104
0.246334
5,046
138
170
36.565217
0.835919
0.291518
0
0.214286
0
0
0.053444
0
0
0
0
0
0
1
0.081633
false
0
0.153061
0
0.306122
0.030612
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fd3ac7c1ba41bd5ab199c3429b9b16299c4d677
3,677
py
Python
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
10
2019-12-19T02:37:33.000Z
2021-12-07T04:47:08.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
5
2019-10-27T23:22:52.000Z
2020-02-13T23:08:15.000Z
get_images.py
agnes-yang/firecam
9282d1b5b83be3abf6a137f7a72c090a9eca05f6
[ "Apache-2.0" ]
13
2019-09-24T18:53:24.000Z
2021-07-16T05:57:18.000Z
# Copyright 2018 The Fuego Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
39.537634
144
0.689421
447
3,677
5.61745
0.438479
0.023895
0.010354
0.012744
0.044604
0.044604
0.044604
0.044604
0.044604
0.044604
0
0.015862
0.19418
3,677
92
145
39.967391
0.83159
0.226815
0
0.064516
0
0.048387
0.173111
0
0
0
0
0
0.080645
1
0.016129
false
0.016129
0.145161
0
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
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fd4b59a4281b93484f61543a3964063cbea187d
2,578
py
Python
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
run_compile_all_cython.py
SamanFekri/BookRecommendation
07dfa875154af39546cb263d4407339ce26d47e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on 30/03/2019 @author: Maurizio Ferrari Dacrema """ import sys, glob, traceback, os from CythonCompiler.run_compile_subprocess import run_compile_subprocess if __name__ == '__main__': # cython_file_list = glob.glob('**/*.pyx', recursive=True) subf...
28.644444
137
0.643134
324
2,578
4.762346
0.333333
0.081659
0.072586
0.062216
0.207388
0.17628
0.139987
0.08814
0.08814
0.08814
0
0.008024
0.226532
2,578
90
138
28.644444
0.765797
0.074864
0
0.215686
0
0
0.194105
0.048842
0
0
0
0
0
1
0
false
0.019608
0.039216
0
0.039216
0.137255
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fd84b89ad959d00f7cb28ec23fef9355fc7136b
1,473
py
Python
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/posix/getenv.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
import angr ###################################### # getenv ###################################### class getenv(angr.SimProcedure): ''' The getenv() function searches the environment list to find the environment variable name, and returns a pointer to the corresponding value string. ''' #pylin...
39.810811
120
0.596062
199
1,473
4.236181
0.386935
0.117438
0.071174
0.067616
0.207592
0.180308
0.066429
0
0
0
0
0.005357
0.239647
1,473
36
121
40.916667
0.747321
0.126273
0
0
0
0
0.035413
0
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fd88f709bdb101553b7e313c87147a9ef4f3e60
1,571
py
Python
pyblaze/utils/examples/normalizing_flows.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/utils/examples/normalizing_flows.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
# pylint: disable=missing-docstring import torch import torch.optim as optim from torch.utils.data.dataset import TensorDataset import matplotlib.pyplot as plt import pyblaze.nn as xnn import pyblaze.plot as P def train(engine, data, lr=1e-2, epochs=1000): data_ = torch.as_tensor(data, dtype=torch.float) # pyl...
29.092593
100
0.615532
206
1,571
4.621359
0.456311
0.016807
0.015756
0.021008
0.072479
0.008403
0
0
0
0
0
0.029851
0.232336
1,571
53
101
29.641509
0.759536
0.037556
0
0.095238
0
0
0.033135
0.016567
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.214286
0.02381
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fd8994fcfe97d0f5782b8f01e1cbbee48079342
4,896
py
Python
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
pracnbastats/team.py
practicallypredictable/pracnbstats
55cd6e285394686a62f3d1535a5b3468cd5410ea
[ "MIT" ]
null
null
null
import numpy as np from . import params from . import scrape from . import utils from . import league class BoxScores(league.BoxScores): def __init__( self, *, scraper, season=params.Season.default(), season_type=params.SeasonType.default(), date_from=params.DateFro...
30.409938
70
0.500817
483
4,896
4.795031
0.250518
0.044905
0.01943
0.015544
0.143782
0.050086
0.050086
0.050086
0.050086
0
0
0.000975
0.371324
4,896
160
71
30.6
0.751462
0.005515
0
0.137255
0
0
0.120814
0
0
0
0
0
0
1
0.026144
false
0
0.03268
0
0.078431
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fde19d1fd4d8c645e2a58569add1946141ead92
3,429
py
Python
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2019-12-25T03:37:01.000Z
2019-12-25T03:37:01.000Z
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
null
null
null
aishell/prepare_data.py
luweishuang/GSoC-2019-ASR-Pipeline
db43575418d57711e8be2ea83c32b931b90fa814
[ "MIT" ]
1
2020-03-20T07:59:37.000Z
2020-03-20T07:59:37.000Z
""" Command : prepare_data.py --src [...] --dst [...] """ import argparse import os import sys from tqdm import tqdm def findaudiofiles(dir): files = [] for dirpath, _, filenames in os.walk(dir): for filename in filenames: if filename.endswith(".wav"): files.append(os.path....
29.560345
89
0.580927
443
3,429
4.417607
0.316027
0.030659
0.030659
0.018396
0.100664
0.043945
0.022483
0.022483
0
0
0
0.004736
0.261009
3,429
115
90
29.817391
0.767561
0.083115
0
0.038961
0
0
0.130838
0.012156
0
0
0
0
0.025974
1
0.025974
false
0
0.051948
0
0.116883
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fe14f420e86345764e26b8b68fa3a9d231ede94
7,717
py
Python
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
3
2018-12-26T09:33:30.000Z
2020-04-22T12:11:30.000Z
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
null
null
null
ddpg.py
fengredrum/DDPG-v2
78d7bfbedb52b4dec76d2723f4e5d04d340f1275
[ "MIT" ]
1
2018-12-20T08:19:08.000Z
2018-12-20T08:19:08.000Z
import time import numpy as np from replayBuffer import Memory from network import * class DDPG: """docstring for DDPG""" def __init__(self, sess, env, args): self.s_dim = env.observation_space.shape[0] self.act_dim = env.action_space.shape[0] self.sess = sess self.args = args...
51.791946
120
0.621485
1,022
7,717
4.446184
0.181018
0.035651
0.017606
0.029269
0.387544
0.25132
0.193222
0.18794
0.166813
0.109155
0
0.008487
0.267073
7,717
148
121
52.141892
0.794908
0.041208
0
0.078125
0
0
0.019093
0
0
0
0
0
0
1
0.070313
false
0
0.03125
0
0.117188
0.007813
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fe4fadf475b13cfb0692513254c3cb049b9b1c5
3,025
py
Python
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
1
2017-11-22T21:23:34.000Z
2017-11-22T21:23:34.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
10
2017-02-16T16:20:09.000Z
2018-03-12T16:57:38.000Z
chainlet_unittests/test_grammar/test_subscription.py
maxfischer2781/chainlet
4e17f9992b4780bd0d9309202e2847df640bffe8
[ "MIT" ]
null
null
null
import itertools import unittest from chainlet.dataflow import MergeLink from chainlet_unittests.utility import Adder class ChainSubscription(unittest.TestCase): def test_pair(self): """Subscribe chain[i:j:k] for `a >> b`""" elements = [Adder(val) for val in (0, -2, -1E6)] for elements i...
44.485294
120
0.596364
347
3,025
5.0317
0.210375
0.178694
0.068729
0.060137
0.571019
0.44559
0.365979
0.306987
0.306987
0.292096
0
0.007878
0.286612
3,025
67
121
45.149254
0.801205
0.042975
0
0.425926
0
0
0.025009
0
0
0
0
0
0.203704
1
0.12963
false
0
0.074074
0.055556
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
0
0
0
0
0
0
0
0
0
1
0
2fe84a2906f5bf097d1442024ee1714c19469089
2,727
py
Python
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
9
2017-01-12T16:52:35.000Z
2020-11-08T19:08:34.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
115
2018-06-12T20:48:09.000Z
2020-07-29T02:14:58.000Z
tests/test_rules.py
f213/richtypo.py
717cf4b640289c410b5ecddbd240d7cc818b8b68
[ "MIT" ]
1
2022-02-10T06:40:58.000Z
2022-02-10T06:40:58.000Z
# -*- coding: utf-8 import re import six from richtypo import Richtypo from richtypo.rules import ABRule, Rule try: from unittest.mock import patch except ImportError: from mock import patch def test_rule_generic(): r = Rule( pattern='b{2}', replacement='c' ) assert r.apply('abb...
20.350746
70
0.604327
364
2,727
4.337912
0.258242
0.048765
0.053198
0.032932
0.395187
0.372388
0.349588
0.349588
0.295124
0.243192
0
0.011341
0.256326
2,727
133
71
20.503759
0.767258
0.059406
0
0.382979
0
0
0.082482
0.042419
0
0
0
0
0.138298
1
0.117021
false
0
0.074468
0
0.191489
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fe8b058bff633879ee2bcceb0dc667d24109f50
786
py
Python
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
1
2017-11-04T20:33:04.000Z
2017-11-04T20:33:04.000Z
accounts/urls.py
UTpay/utpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
7
2020-06-05T17:38:37.000Z
2022-03-11T23:17:27.000Z
accounts/urls.py
UTpay/UTpay
5e43f07f9046781ab2b50ada3c3a022d13da1765
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth_views from django.urls import path from .views import * app_name = 'accounts' urlpatterns = [ path('signup/', SignUpView.as_view(), name='signup'), path('activation/<key>/', ActivationView.as_view(), name='activation'), path('login/', auth_views.LoginView.as_v...
46.235294
96
0.717557
97
786
5.649485
0.350515
0.087591
0.109489
0.09854
0
0
0
0
0
0
0
0
0.100509
786
16
97
49.125
0.775106
0
0
0
0
0
0.270992
0.064886
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2feaafe4312b2826f2437121c11a4ae1d7ccd4e8
10,940
py
Python
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
latest version/web/index.py
Kanae25805/Arcaea-server
0218e797aec835e07488a1dfbd121925d56245b5
[ "MIT" ]
null
null
null
from flask import ( Blueprint, flash, g, redirect, render_template, request, url_for ) from web.login import login_required from werkzeug.utils import secure_filename import sqlite3 import web.webscore import web.system import time import server.arcscore import os UPLOAD_FOLDER = 'database' ALLOWED_EXTENSIONS = {'...
30.304709
139
0.522121
1,262
10,940
4.38748
0.177496
0.018422
0.046957
0.054
0.484017
0.443742
0.382156
0.355066
0.324183
0.312805
0
0.012717
0.345887
10,940
360
140
30.388889
0.76104
0.009049
0
0.491639
0
0.003344
0.176056
0.041287
0
0
0
0
0
1
0.046823
false
0.003344
0.0301
0.010033
0.160535
0.010033
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2feca74f95fd3ef72f4807ca5abf86a33a361fda
14,122
py
Python
taggd/core/demultiplex.py
jfnavarro/taggd
c423a4bb8a2afc1ffaabc6704a8968dc3e829b4f
[ "BSD-3-Clause" ]
3
2015-05-07T12:23:12.000Z
2019-12-07T11:30:43.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
1
2017-06-29T11:49:28.000Z
2017-06-29T17:59:03.000Z
taggd/core/demultiplex.py
JoelSjostrand/taggd
d778dcce5205ca61bd82cb518854583f32f63baf
[ "BSD-3-Clause" ]
3
2015-05-11T08:00:03.000Z
2020-11-30T07:49:27.000Z
""" Runs taggd, a tool to demultiplex (link molecular barcodes back to) a file of genetic reads, typically obtained by sequencing. For matched reads, the barcode and its related properties are added to the read. Unmatched reads, ambiguously matched reads, and stats are by default produced as output files as well. The...
52.303704
195
0.599278
1,651
14,122
5.028468
0.20533
0.024934
0.047097
0.020597
0.283064
0.215972
0.174175
0.150325
0.133341
0.112985
0
0.006452
0.29755
14,122
269
196
52.498141
0.830444
0.087877
0
0.125
0
0.009259
0.333489
0.008958
0.00463
0
0
0
0
1
0.00463
false
0
0.037037
0
0.041667
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fed9c1cc996668efe8fcc3cc02dc64126644948
18,586
py
Python
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
plots_matlabformat.py
apiasecki/benthic_calibration
739a42096018f51af2c2043413b90aa072fcd81d
[ "MIT" ]
null
null
null
# THIS TAKES AN ALREADY FORMATED DATA TABLE from matlab AND DOES THE REGRESSIONS # IT ALSO MAKES THE PLOTS # LAST EDITED 11-29-17 import pandas import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit from pylab import * from pyteomics import mass # can do cool isotope math stuff, not us...
46.698492
112
0.620144
2,961
18,586
3.783857
0.116852
0.017137
0.029008
0.040164
0.535077
0.464834
0.432703
0.37076
0.36362
0.315602
0
0.085677
0.137146
18,586
397
113
46.816121
0.612958
0.421554
0
0.123762
0
0
0.175914
0.007764
0.034653
0
0
0
0
1
0.009901
false
0
0.029703
0.00495
0.049505
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fef0f20d9583beaad642d2b113a19d757ae987a
36,252
py
Python
ai_pomdp_agent.py
Grottoh/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
8
2020-09-17T06:48:33.000Z
2022-01-08T16:51:20.000Z
ai_pomdp_agent.py
pl-robotdecision/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
null
null
null
ai_pomdp_agent.py
pl-robotdecision/Deep-Active-Inference-for-Partially-Observable-MDPs
11fedf09cefaada3dd60f1af430d59d87cbd706e
[ "MIT" ]
1
2021-01-13T12:23:35.000Z
2021-01-13T12:23:35.000Z
__author__ = "Otto van der Himst" __credits__ = "Otto van der Himst, Pablo Lanillos" __version__ = "1.0" __email__ = "o.vanderhimst@student.ru.nl" import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import datetime import sys import gym import ...
50.702098
232
0.594698
4,754
36,252
4.306689
0.127472
0.013676
0.011722
0.011625
0.387907
0.287926
0.229804
0.201377
0.162255
0.148188
0
0.021237
0.305087
36,252
715
233
50.702098
0.791481
0.173784
0
0.180085
0
0.002119
0.063631
0.018343
0
0
0
0
0
1
0.052966
false
0
0.023305
0.002119
0.129237
0.025424
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fefb9f1bc9de1b69287eaed8f707942f874fa69
2,465
py
Python
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
src/BribeNet/bribery/temporal/action/briberyAction.py
RobMurray98/BribeNet
09ddd8f15d9ab5fac44ae516ed92c6ba5e5119bc
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List from BribeNet.helpers.bribeNetException import BribeNetException class BriberyActionExecutedMultipleTimesException(BribeNetException): pass class BriberyActionTimeNotCorrectException(BribeNetException): pass class BriberyAction(ABC): def __...
34.71831
119
0.669371
236
2,465
6.762712
0.338983
0.06015
0.037594
0.030075
0.095238
0.082707
0.045113
0.045113
0.045113
0
0
0
0.270994
2,465
70
120
35.214286
0.888147
0.177688
0
0.238095
0
0
0.105455
0.029091
0
0
0
0
0
1
0.166667
false
0.047619
0.119048
0.047619
0.404762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fefd6e5e58e9aad34db52d1d9799e3ab83c554a
4,269
py
Python
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/quantity.py
niklasschmitz/jax-md
5702b9a852d990ff1f7bae87bf06842734df1a90
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
29.441379
79
0.69829
643
4,269
4.497667
0.339036
0.020747
0.017981
0.008299
0.118257
0.091286
0.029737
0.029737
0.029737
0
0
0.025123
0.188803
4,269
144
80
29.645833
0.809991
0.309909
0
0.089744
0
0
0.051478
0
0
0
0
0.006944
0
1
0.141026
false
0.038462
0.102564
0.025641
0.487179
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2fefd9d669adc52d9fc25135e72257c4fc66d661
9,748
py
Python
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
nsfiu/support/Python/Micronix.py
TobiasSchof/KPIC
619ea31d9705c0168220d79f5d2f6f70535ca416
[ "Unlicense" ]
null
null
null
from serial import Serial from time import sleep from telnetlib import Telnet from logging import debug class TimeoutError(Exception): """An error to be thrown for a movement timeout""" pass # TODO: Can I check which axis are connected in open_x? class Micronix_Device(): """Class for controlling Micronex...
31.856209
91
0.572733
1,298
9,748
4.276579
0.20339
0.034048
0.021798
0.016393
0.366961
0.334714
0.290758
0.24428
0.233471
0.20771
0
0.004769
0.333197
9,748
306
92
31.856209
0.849231
0.387156
0
0.359649
0
0
0.140275
0
0
0
0
0.006536
0.04386
1
0.140351
false
0.008772
0.035088
0
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ff20fd15245634531744ee562835b4c0d1a75be
2,251
py
Python
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
2
2017-07-31T11:45:46.000Z
2017-08-09T09:32:35.000Z
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
28
2016-11-17T11:12:32.000Z
2018-11-02T14:09:13.000Z
tests/test_pipeline_wgbs_index.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
4
2017-02-12T17:47:21.000Z
2018-05-29T08:16:27.000Z
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
30.418919
100
0.67259
306
2,251
4.787582
0.480392
0.040956
0.030717
0.040956
0.049147
0.049147
0
0
0
0
0
0.013302
0.231897
2,251
73
101
30.835616
0.834008
0.377166
0
0
0
0
0.176856
0.069869
0
0
0
0
0.102564
1
0.025641
false
0
0.128205
0
0.153846
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ff388db8366ea8591858ff099655cca6fbb8662
7,625
py
Python
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
finance_manager/functions.py
jehboyes/finance_manager
d310a3a4c2c6b6e5564e2a83e3f355b23266b773
[ "MIT" ]
null
null
null
""" A collection of generic functions and iterators intended for use in various parts of the App, and will probably be of use to future development. """ from importlib import import_module as imp from os import listdir, path import sys import functools import click class periods(): """ Iterator for financia...
26.943463
107
0.557902
953
7,625
4.370409
0.342078
0.026891
0.010084
0.011525
0.061945
0.036735
0.036735
0.036735
0.036735
0.02425
0
0.017649
0.323803
7,625
282
108
27.039007
0.790147
0.429639
0
0.106195
0
0
0.100908
0.018418
0
0
0
0
0
1
0.079646
false
0.026549
0.044248
0
0.19469
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ff4614b2c2823a60726232798f4f0d9f9766030
5,157
py
Python
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
tests/test_openml.py
carefree0910/carefree-learn-benchmark
d5507c1719e0b625230e3befc23149a96e057d14
[ "MIT" ]
null
null
null
import os import cflearn import platform import unittest import numpy as np from typing import Dict from cflearn_benchmark import Benchmark from scipy.sparse import csr_matrix from cftool.ml import patterns_type from cftool.ml import Tracker from cftool.ml import Comparer from cftool.misc import timestamp from cfdata...
38.774436
90
0.587745
549
5,157
5.251366
0.336976
0.027749
0.012487
0.01873
0.055498
0.055498
0.055498
0
0
0
0
0.016802
0.330619
5,157
132
91
39.068182
0.818366
0.023657
0
0
0
0
0.039364
0.008946
0
0
0
0
0.017544
1
0.026316
false
0
0.166667
0
0.27193
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ff8aa8452d3785af93c4d934bd42e377d0cab4b
6,117
py
Python
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
final/predict.py
terrifyzhao/information_extract
d950c25911f5a8d9f7e10eb9ecfd53f897cef8d0
[ "Apache-2.0" ]
null
null
null
import json from final.model import model import os import numpy as np import tensorflow as tf import jieba from tqdm import tqdm import ahocorasick from gensim.models import Word2Vec os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" path = os.getcwd() graph = tf.get_default_graph() train_data = json.load(open(path + '/dat...
32.194737
102
0.541605
956
6,117
3.282427
0.172594
0.020395
0.007648
0.007648
0.205864
0.101976
0.053537
0.022307
0
0
0
0.032235
0.310283
6,117
189
103
32.365079
0.711543
0.026647
0
0.013158
0
0
0.033132
0.008914
0
0
0
0
0
1
0.039474
false
0
0.059211
0
0.144737
0.006579
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ff8c1d733f52e6e0c92e54a6bb944e263727097
16,976
py
Python
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
agent/state/model.py
abiro/minerl-agent
c33361c4a5ad0d5fe903f211665ff4da16439b69
[ "MIT" ]
null
null
null
import os from collections import defaultdict import logging from operator import itemgetter from pathlib import Path from typing import List, Optional, Tuple, Dict, Iterable, Iterator import time import numpy as np import torch as T import torch.nn as nn import torch.nn.functional as F import torch.optim as optim fro...
33.615842
79
0.568332
2,128
16,976
4.322838
0.173872
0.025111
0.018263
0.02435
0.302315
0.257854
0.211545
0.179585
0.163387
0.147842
0
0.026447
0.325106
16,976
504
80
33.68254
0.776469
0.129889
0
0.267062
0
0
0.019123
0
0
0
0
0.005952
0
1
0.091988
false
0
0.04451
0.011869
0.198813
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2ffe22f93b98651c83789010c629f07c9626d409
475
py
Python
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
src/maximize_product_of_array.py
marco-zangari/code-katas
1dfda1cfbbe8687b17e97e414358b38d964df675
[ "MIT" ]
null
null
null
"""Maximize_product_of_arry(array series#2), Codewars Kata, level 7.""" def max_product(li, n): """Return maxima(not maximum) product from a list from the set number. input: list of integers output: integer, product of given integers ex: maxProduct ({4,3,5} , 2) returns return 20 since the s...
26.388889
74
0.631579
75
475
3.92
0.666667
0.061224
0
0
0
0
0
0
0
0
0
0.03966
0.256842
475
17
75
27.941176
0.793201
0.633684
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
640e5f2dbc283de85c337ecaac27efdeff2ecfa4
352
py
Python
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
file_open.py
farhan1503001/Data-structures-with-python-Coursera
04c04fea15f96b83056d846a8cc59f94d9df66ca
[ "MIT" ]
null
null
null
#Opening file filename=open('words.txt') for line in filename: print(line.upper().rstrip()) filename.close() second_file=open('mbox.txt') sum=0 count=0 for line in second_file: if line.startswith("X-DSPAM-Confidence:"): sum=sum+float(line[-7:-1]) count=count+1 print("Average sp...
20.705882
47
0.644886
51
352
4.411765
0.54902
0.062222
0.08
0
0
0
0
0
0
0
0
0.017731
0.198864
352
17
48
20.705882
0.780142
0.034091
0
0
0
0
0.185185
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6412c114e0148cac74c8016e5dd9e4636887e532
2,196
py
Python
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
15
2020-01-05T09:09:57.000Z
2020-11-28T05:27:39.000Z
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
302
2020-01-21T08:03:59.000Z
2020-12-04T05:04:57.000Z
authentik/root/asgi.py
BeryJu/passbook
350f0d836580f4411524614f361a76c4f27b8a2d
[ "MIT" ]
3
2020-03-04T08:21:59.000Z
2020-08-01T20:37:18.000Z
""" ASGI config for authentik project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import django from channels.routing import ProtocolTypeRouter, URLRouter from defusedxml import ...
30.929577
93
0.652095
250
2,196
5.624
0.532
0.042674
0.027738
0.02845
0
0
0
0
0
0
0
0.015115
0.246812
2,196
70
94
31.371429
0.834946
0.285519
0
0
0
0
0.123198
0.033421
0
0
0
0
0
1
0.05
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6412f72910f9d2b8e997d384ba6143ae4869f3af
4,922
py
Python
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-11-20T17:24:49.000Z
2022-03-29T04:17:53.000Z
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
7
2019-04-08T07:36:46.000Z
2022-01-17T22:51:54.000Z
pysaintcoinach/ex/variant2/__init__.py
icykoneko/saintcoinach-py
66898385e1198203a7ec9da83787427bf6fe5c83
[ "MIT" ]
3
2019-04-08T08:24:22.000Z
2021-06-27T22:19:15.000Z
from struct import unpack_from from typing import Iterable as IterableT, TypeVar, Union, Dict from ..datasheet import DataRowBase, IDataSheet, IDataRow from ..column import Column from ..relational import IRelationalDataRow from ..relational.datasheet import IRelationalDataSheet class SubRow(DataRowBase, IRelational...
32.596026
111
0.645266
627
4,922
4.799043
0.15949
0.041874
0.044865
0.02991
0.585909
0.536058
0.519442
0.455965
0.455965
0.455965
0
0.001634
0.253759
4,922
150
112
32.813333
0.817588
0.004673
0
0.469027
0
0
0.044313
0
0
0
0.000817
0
0
1
0.19469
false
0
0.053097
0.053097
0.451327
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
641310d10a8d7e15c9a7d898de0f6cdccc1b0fc5
9,874
py
Python
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
1
2022-03-29T14:59:13.000Z
2022-03-29T14:59:13.000Z
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
wurst/ecoinvent/electricity_markets.py
pjamesjoyce/wurst
95b37e72eaa18b33bdd83cd4a51d37d9eb4ae7ba
[ "BSD-2-Clause" ]
null
null
null
from .. import toolz from ..searching import get_many, equals from ..transformations import rescale_exchange from functools import partial def get_generators_in_mix(db, name="market for electricity, high voltage"): """Get names of inputs to electricity mixes""" inputs = set() for act in db: if act...
51.427083
213
0.708021
1,204
9,874
5.70515
0.225083
0.128403
0.031446
0.036687
0.512738
0.418838
0.344446
0.30907
0.251274
0.174552
0
0.012525
0.199514
9,874
191
214
51.696335
0.856528
0.052967
0
0.044586
0
0.006369
0.587642
0
0
0
0
0
0.006369
1
0.038217
false
0
0.044586
0.006369
0.11465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6418b3422f4c2568aa263e251a1ee434a2dfc461
634
py
Python
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
515
2017-01-25T05:46:52.000Z
2022-03-29T09:52:27.000Z
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
417
2017-01-25T10:01:17.000Z
2022-03-29T09:22:04.000Z
examples/render/render_sphere.py
jkjt/ezdxf
2acc5611b81476ea16b98063b9f55446a9182b81
[ "MIT" ]
149
2017-02-01T15:52:02.000Z
2022-03-17T10:33:38.000Z
# Copyright (c) 2020-2021, Manfred Moitzi # License: MIT License from pathlib import Path import ezdxf from ezdxf.render.forms import sphere DIR = Path("~/Desktop/Outbox").expanduser() doc = ezdxf.new() doc.layers.new("form", dxfattribs={"color": 5}) doc.layers.new("csg", dxfattribs={"color": 1}) doc.layers.new("no...
25.36
60
0.716088
90
634
5
0.544444
0.06
0.08
0
0
0
0
0
0
0
0
0.038596
0.100946
634
24
61
26.416667
0.750877
0.094637
0
0
0
0
0.1331
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0