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
e93d157cf7aab5c1bcb7bfeee8e1f4209c714ad6
2,862
py
Python
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
1
2021-04-29T04:15:13.000Z
2021-04-29T04:15:13.000Z
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
null
null
null
recommander-lib/src/main.py
armendu/recommander-system
e2d13838237584cc5cc4de2f4ea2d63f9f3b8889
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Main application file """ __author__ = "Armend Ukehaxhaj" __version__ = "1.0.0" __license__ = "MIT" from logzero import logger import numpy as np import pandas as pd import csv import pickle from word2vec import word2vec from preprocessor import preprocessor import json primary_data_filen...
27.519231
74
0.615653
339
2,862
5.00885
0.421829
0.041225
0.030035
0
0
0
0
0
0
0
0
0.014444
0.274284
2,862
103
75
27.786408
0.803081
0.3826
0
0
0
0
0.157375
0.070267
0
0
0
0
0
1
0.045455
false
0
0.181818
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
e93dd26357433b7e319a7cf157df9046ce5be7e6
2,378
py
Python
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/data_types/datetime.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
from typing import Optional, List from pyspark.sql import Column, DataFrame from pyspark.sql.functions import coalesce, to_timestamp from spark_auto_mapper.data_types.column import AutoMapperDataTypeColumn from spark_auto_mapper.data_types.data_type_base import AutoMapperDataTypeBase from spark_auto_mapper.data_types...
38.983607
109
0.670311
257
2,378
5.953307
0.287938
0.047059
0.042484
0.062092
0.236601
0.194771
0.139869
0.139869
0.139869
0.139869
0
0
0.267031
2,378
60
110
39.633333
0.877797
0.095038
0
0.195652
0
0
0.004261
0
0
0
0
0
0
1
0.043478
false
0
0.173913
0
0.304348
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
e93e898e14d862c8186e0e63f6ce2ac5ff75423c
15,524
py
Python
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
3
2020-01-31T08:22:49.000Z
2021-01-10T20:02:37.000Z
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
null
null
null
relah.py
ttwj/ReLah
8231636d4698001dc615848096a97ebd78ae2713
[ "WTFPL" ]
null
null
null
# Python implementation of DBS PayLah! # By ttwj - 2017 import base64 import random import string #remember to install pycryptodome! import datetime from Crypto.Cipher import AES, PKCS1_v1_5 from Crypto.PublicKey import RSA import lxml.etree, json from lxml import html from pprint import pprint from io import String...
33.67462
987
0.626578
1,432
15,524
6.664804
0.26257
0.038034
0.020432
0.027661
0.365465
0.328479
0.318944
0.318944
0.283215
0.272318
0
0.029111
0.269776
15,524
460
988
33.747826
0.812809
0.216761
0
0.426523
0
0
0.154793
0.006508
0
0
0
0.006522
0
1
0.071685
false
0.021505
0.100358
0.007168
0.250896
0.050179
0
0
0
null
0
0
0
0
0
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
e93fa44d8c8e89fa596f6f1e1b5862803b660a31
13,090
py
Python
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
st_dashboard.py
amirtaghavy/TDI-capstone-RedditTalks-vs-MarketAction
62d6b754348ed7ae5d5ef4bd31eb2553a76c8892
[ "MIT" ]
null
null
null
import streamlit as st import dill import pandas as pd import plotly.express as px from datetime import date import statsmodels with open('compiled-sentiment-history.pkd', 'rb') as f: df_compiled = dill.load(f) df_compiled.drop_duplicates(inplace=True) dates = list({idx[1] for idx in df_compiled.ind...
55.940171
504
0.58793
1,563
13,090
4.87396
0.382598
0.014439
0.008926
0.007088
0.056183
0.049094
0.023366
0.023366
0.023366
0.013127
0
0.02046
0.3055
13,090
233
505
56.180258
0.815972
0.016501
0
0.094972
0
0.055866
0.505638
0.012942
0
0
0
0
0
1
0
false
0
0.03352
0
0.03352
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
3a61c5a4f7f2b0b08f169681bdd4f9538e9142c6
13,902
py
Python
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
RocMethod.py
meiyuanqing/MetaThreshold
fbccc7e5356606b929211eedaf5371506232c1b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding:utf-8 """ Author : Yuanqing Mei Date : 2021/4/8 Time: 15:42 File: RocMethod.py HomePage : http://github.com/yuanqingmei Email : dg1533019@smail.nju.edu.cn This script find out the cutoff of a metric value by maximizing the AUC value and ROC、BPP、MFM、GM methods. References: [1] Bender,...
47.447099
120
0.535319
1,634
13,902
4.29437
0.222154
0.057004
0.032065
0.008978
0.328203
0.246829
0.22645
0.191677
0.175004
0.156192
0
0.033555
0.361171
13,902
292
121
47.609589
0.756559
0.165588
0
0.069519
0
0
0.123518
0.030468
0
0
0
0
0
1
0.010695
false
0
0.037433
0.005348
0.053476
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a63a86305fa3e3ced908249d69f673dd8d16d58
717
py
Python
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
migrations/versions/2018-09-27_12:25:31__3cbc86a0a9d7.py
gems-uff/sms
01cfa84bd467617c58f58da04711c5097dd93fe6
[ "MIT" ]
null
null
null
"""empty message Revision ID: 3cbc86a0a9d7 Revises: 77894fcde804 Create Date: 2018-09-27 12:25:31.893545 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3cbc86a0a9d7' down_revision = '77894fcde804' branch_labels = None depends_on = None def upgrade(): # ...
24.724138
106
0.707113
89
717
5.516854
0.561798
0.05499
0.08554
0.093686
0.321792
0.321792
0.179226
0.179226
0
0
0
0.079867
0.161785
717
28
107
25.607143
0.737105
0.411437
0
0
0
0
0.288312
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a640b59523119016904d7053ed1bc557df19331
2,685
py
Python
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
mp_roguelike/ai.py
nonk123/mp_roguelike
48785b44dd3f2518a5a639a6609670408e7ea1f5
[ "MIT" ]
null
null
null
import random from .util import sign class AI: def __init__(self, entity): self.entity = entity self.queued_path = [] def think(self): if self.queued_path: x, y = self.queued_path.pop(0) self.move(x - self.entity.x, y - self.entity.y) def move(self, dx, dy...
26.584158
79
0.582495
351
2,685
4.2849
0.213675
0.146277
0.046543
0.047872
0.234043
0.083777
0
0
0
0
0
0.009651
0.3054
2,685
100
80
26.85
0.796783
0
0
0.183099
0
0
0
0
0
0
0
0
0
1
0.197183
false
0.014085
0.028169
0.042254
0.352113
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
3a66f861ec173370f50a0b31924da0bccb5e1872
2,661
py
Python
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
null
null
null
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
5
2020-12-08T04:37:21.000Z
2021-01-06T03:36:30.000Z
romanyh/transposition.py
napulen/romanyh
34bc75d40bf532eb20607db763fcbc2693cac35f
[ "BSD-3-Clause" ]
null
null
null
import re import sys from music21.interval import Interval from music21.key import Key def findKeysInRomanTextString(rntxt): """Get all the keys in a RomanText string. Receive a string with valid RomanText content. Output a list of all the key changes that happen throughout the content. """ ...
36.452055
70
0.693724
329
2,661
5.586626
0.392097
0.008705
0.013058
0.010881
0.008705
0
0
0
0
0
0
0.005822
0.225479
2,661
72
71
36.958333
0.885978
0.32469
0
0
0
0
0.02449
0
0
0
0
0
0
1
0.073171
false
0
0.097561
0
0.243902
0.02439
0
0
0
null
0
0
0
0
0
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
3a67795832eb29853a6ccb60a0d65c013b0a8f82
4,847
py
Python
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
LizaShak/AzureTRE
b845eb4b73439ef7819565aaadb36f43b6484ad9
[ "MIT" ]
2
2021-11-14T16:57:16.000Z
2022-03-13T15:14:26.000Z
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
management_api_app/tests_ma/test_service_bus/test_deployment_status_update.py
anatbal/AzureTRE
d1d4891657c737092e761c4aaf80b04ff0f03fc7
[ "MIT" ]
null
null
null
import json import pytest import uuid from mock import AsyncMock, patch from db.errors import EntityDoesNotExist from models.domain.resource import Status from models.domain.workspace import Workspace from models.domain.resource import Deployment from resources import strings from service_bus.deployment_status_update...
41.784483
115
0.810192
600
4,847
6.085
0.183333
0.052041
0.036154
0.052588
0.657902
0.598466
0.547795
0.502876
0.490551
0.490551
0
0.004796
0.096555
4,847
115
116
42.147826
0.828956
0
0
0.37931
0
0
0.136786
0.090159
0
0
0
0
0.114943
1
0.034483
false
0
0.114943
0.022989
0.183908
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
3a695ae89ca40a6004f7716018ec39b583cbbbfd
1,587
py
Python
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
tests/sms/models/test_reschedule_sms_messages.py
infobip-community/infobip-api-python-sdk
5ffc5ab877ee1748aa29391f991c8c5324387487
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta import pytest from pydantic.error_wrappers import ValidationError from infobip_channels.sms.models.body.reschedule_sms_messages import ( RescheduleSMSMessagesMessageBody, ) from infobip_channels.sms.models.query_parameters.reschedule_messages import ( RescheduleS...
27.842105
83
0.672968
153
1,587
6.594771
0.366013
0.035679
0.043608
0.043608
0.352825
0.297324
0.176412
0
0
0
0
0.011551
0.236295
1,587
56
84
28.339286
0.820957
0
0
0.347826
0
0
0.084436
0
0
0
0
0
0
1
0.086957
false
0
0.108696
0
0.195652
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
3a6a4945d24f523a66e8dd1cc3a18e4d3749558b
5,578
py
Python
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeStudio_v2
5ed9b9217aff16d903bdcda5c2f1e1cd3bebe367
[ "CNRI-Python" ]
6
2019-08-27T01:30:15.000Z
2020-11-17T00:40:01.000Z
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeMods
47861bfc273262abba55b9f9a61782a5d89479b1
[ "CNRI-Python" ]
2
2019-01-22T04:09:28.000Z
2019-01-23T15:11:39.000Z
_pkg_KuFunc/mod_SetLabel.py
tianlunjiang/_NukeMods
47861bfc273262abba55b9f9a61782a5d89479b1
[ "CNRI-Python" ]
1
2020-08-03T22:43:23.000Z
2020-08-03T22:43:23.000Z
# ------------------------------------------------------------------------------ # Module Import # ------------------------------------------------------------------------------ import nuke, nukescripts import platform from Qt import QtWidgets, QtGui, QtCore #------------------------------------------------...
25.126126
103
0.573682
586
5,578
5.283276
0.389079
0.04199
0.027132
0.022287
0.076227
0.020672
0.020672
0.020672
0.020672
0
0
0.004557
0.134457
5,578
221
104
25.239819
0.636703
0.235748
0
0.052174
0
0
0.2
0
0
0
0
0
0
1
0.069565
false
0
0.026087
0
0.121739
0.008696
0
0
0
null
0
0
0
0
0
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
3a6c6afbecc178b754f00e36139090ce170c777c
780
py
Python
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
imgur_stuff.py
djs2022/DataEntrySite
aac8e71fe0a8b159113b1488cbe7a8a7e641bf1d
[ "MIT" ]
null
null
null
import requests import os class Imgur(): client_id = None remCredits = None def __init__(self, clientID): self.client_id = clientID def uploadImage(self, file, title, description): file.save(file.filename) with open(file.filename, 'rb') as f: data = f.read() ...
27.857143
77
0.574359
87
780
5.068966
0.528736
0.072562
0.054422
0
0
0
0
0
0
0
0
0.001821
0.296154
780
27
78
28.888889
0.801457
0
0
0
0
0
0.141026
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.391304
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
3a6d77c44f6c1309b10cae742c418b58169828c7
4,489
py
Python
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
roles/tox/library/tox_parse_output.py
g-chauvel/zuul-jobs
7ea241a626f2f2e05d4aeb8cf0328d22736b1f0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018 Red Hat # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This software is di...
28.775641
74
0.642237
598
4,489
4.650502
0.366221
0.06904
0.028767
0.027328
0.221143
0.094211
0.049622
0.02589
0
0
0
0.007177
0.255068
4,489
155
75
28.96129
0.824462
0.243261
0
0.176471
0
0
0.168452
0.016667
0
0
0
0
0
1
0.058824
false
0
0.039216
0.019608
0.147059
0.009804
0
0
0
null
0
0
0
0
0
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
3a737b4d0699668e68dfd11d0393dc995f8e0e88
574
py
Python
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
null
null
null
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
2
2019-10-22T08:21:09.000Z
2019-10-22T08:21:09.000Z
python-code/transformer-sample/basic/sentiment_analysis.py
87-midnight/NewbieInJava
ba84153c6b3a382e620c4df7892d653be2e1a607
[ "MIT" ]
null
null
null
# 使用情绪分析流水线 import torch from transformers import BertTokenizer, BertForSequenceClassification torch.manual_seed(0) tokenizer = BertTokenizer.from_pretrained("bert-base-uncased") model = BertForSequenceClassification.from_pretrained("bert-base-uncased", problem_type="multi_label_classification", num_labels=2) inputs ...
41
131
0.801394
71
574
6.366197
0.633803
0.061947
0.079646
0.097345
0.128319
0
0
0
0
0
0
0.007619
0.085366
574
14
132
41
0.853333
0.083624
0
0
0
0
0.158397
0.049618
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
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
3a750f402f6cc67161071bf3b54785b45c55a45d
1,293
py
Python
examples/tutorial/parallel_amuse_script.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
131
2015-06-04T09:06:57.000Z
2022-02-01T12:11:29.000Z
examples/tutorial/parallel_amuse_script.py
rknop/amuse
85d5bdcc29cfc87dc69d91c264101fafd6658aec
[ "Apache-2.0" ]
690
2015-10-17T12:18:08.000Z
2022-03-31T16:15:58.000Z
examples/tutorial/parallel_amuse_script.py
rieder/amuse
3ac3b6b8f922643657279ddee5c8ab3fc0440d5e
[ "Apache-2.0" ]
102
2015-01-22T10:00:29.000Z
2022-02-09T13:29:43.000Z
import time import numpy from amuse.lab import Huayno from amuse.lab import Hermite from amuse.lab import nbody_system from amuse.lab import new_king_model from matplotlib import pyplot def gravity_minimal(bodies, t_end, nproc): gravity = Hermite(number_of_workers=nproc) gravity.particles.add_particles(bodies...
25.352941
71
0.664346
183
1,293
4.480874
0.42623
0.043902
0.058537
0.087805
0.058537
0
0
0
0
0
0
0.014778
0.215004
1,293
50
72
25.86
0.793103
0
0
0
0
0
0.076625
0.03096
0
0
0
0
0
1
0.025641
false
0
0.179487
0
0.230769
0.102564
0
0
0
null
0
0
0
0
0
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
3a75e62e27fdd3a634c7ec673852b4fb62407232
311
py
Python
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
3
2019-10-19T12:07:06.000Z
2020-10-05T17:24:56.000Z
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
17
2019-10-05T12:30:17.000Z
2021-07-25T20:06:33.000Z
modules/random_cat.py
ChaseBosman/chatbot
a39e655e6d586fa596471cd20617dff5f9795a96
[ "Unlicense" ]
26
2018-10-19T05:43:12.000Z
2020-10-02T05:27:48.000Z
import requests import json def random_cat_pic(): try: url = 'http://aws.random.cat/meow' response = requests.get(url) response_json = json.loads(response.text) return "Here's a super cute cat pic: " + response_json.get('file') except: return "Error meow"
25.916667
74
0.614148
41
311
4.560976
0.609756
0.096257
0
0
0
0
0
0
0
0
0
0
0.273312
311
12
75
25.916667
0.827434
0
0
0
0
0
0.221154
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a79851a367aea689a1293265d02727ae30bb330
7,877
py
Python
cvstudio/view/widgets/common/treeview_model.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
32
2019-10-31T03:10:52.000Z
2020-12-23T11:50:53.000Z
cvstudio/view/widgets/common/treeview_model.py
haruiz/CvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
19
2019-10-31T15:06:05.000Z
2020-06-15T02:21:55.000Z
cvstudio/view/widgets/common/treeview_model.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
8
2019-10-31T03:32:50.000Z
2020-07-17T20:47:37.000Z
import itertools import typing from typing import Any from PyQt5 import QtCore from PyQt5.QtCore import QModelIndex, pyqtSignal, QObject from PyQt5.QtGui import QColor from PyQt5.QtWidgets import QAbstractItemDelegate, QWidget, QStyleOptionViewItem, QSpinBox class CustomNode(object): def __init__(self, data=None...
30.296154
116
0.612416
873
7,877
5.390607
0.142039
0.029749
0.029749
0.008925
0.142371
0.036124
0.036124
0.036124
0.021249
0
0
0.005026
0.292751
7,877
259
117
30.413127
0.839706
0.02501
0
0.185366
0
0
0
0
0
0
0
0
0
1
0.195122
false
0
0.034146
0.053659
0.453659
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
3a7bafa3c7ab3354d60a1fcd0376c7ade47cb21d
707
py
Python
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
evtx_to_dataframe.py
esua/evtx_to_dataframe
390bf470e92092e66827373ed7e8b012a4fe94f6
[ "Apache-2.0" ]
null
null
null
import argparse import Evtx.Evtx as evtx import pandas as pd import xmltodict import re parser = argparse.ArgumentParser(description="Convert Windows EVTX event log file to DataFrame.") parser.add_argument("evtx", type=str, help="Path to the Windows EVTX event log file") args = parser.parse_args() with evtx.Evtx(args...
33.666667
110
0.693069
106
707
4.54717
0.481132
0.056017
0.06639
0.078838
0.095436
0
0
0
0
0
0
0.005164
0.178218
707
20
111
35.35
0.824441
0.110325
0
0
0
0
0.2112
0.0368
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0.058824
0
0
0
null
0
0
0
0
0
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
3a7c85d6a1879df3d91cd853104103d5c1ce8afa
1,553
py
Python
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
1
2019-10-29T04:14:40.000Z
2019-10-29T04:14:40.000Z
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
null
null
null
paprotka/feature/cepstral.py
michalsosn/paprotka
d6079eefbade2cb8be5896777a7d50ac968d42ec
[ "MIT" ]
null
null
null
import math import numpy as np from scipy import signal, fftpack def pre_emphasize(data, pre_emphasis=0.97): return np.append(data[0], data[1:] - pre_emphasis * data[:-1]) def hz_to_mel(hz): return 2595 * math.log10(1 + hz / 700) def mel_to_hz(mel): return 700 * (10 ** (mel / 2595) - 1) def make_mel...
33.042553
90
0.675467
241
1,553
4.157676
0.3361
0.053892
0.02994
0.01996
0
0
0
0
0
0
0
0.037391
0.190599
1,553
46
91
33.76087
0.759745
0
0
0
0
0
0.00322
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0.090909
0.484848
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a7d8a539d82fbecac85da845cd748fe400b1a12
2,688
py
Python
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
292
2015-01-27T03:31:51.000Z
2022-03-26T07:00:05.000Z
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
94
2015-04-18T23:03:00.000Z
2022-03-28T17:24:55.000Z
arelle/plugin/unpackSecEisFile.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
200
2015-01-13T03:55:47.000Z
2022-03-29T12:38:56.000Z
''' Unpack SEC EIS File is an example of a plug-in to the GUI menu that will save the unpacked contents of an SEC EIS File in a directory. (c) Copyright 2012 Mark V Systems Limited, All rights reserved. ''' def unpackEIS(cntlr, eisFile, unpackToDir): from arelle.FileSource import openFileSource filesource = ...
43.354839
134
0.604911
277
2,688
5.841155
0.436823
0.038937
0.037083
0.029666
0.088999
0.088999
0.061805
0.061805
0.061805
0.061805
0
0.006253
0.286086
2,688
61
135
44.065574
0.836894
0.087798
0
0.041667
0
0
0.244272
0.009411
0
0
0
0
0
1
0.0625
false
0
0.083333
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3a7e02c43c6ebf2859a5eb96f826707b1b0a7b33
2,251
py
Python
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
203
2016-01-18T14:05:49.000Z
2022-03-25T04:04:42.000Z
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
41
2016-03-08T10:28:14.000Z
2021-11-26T20:53:15.000Z
fpcalc.py
johnlawsharrison/pyacoustid
55321b316f09e782a1c0914826419be799908e01
[ "MIT" ]
56
2016-01-09T04:22:40.000Z
2022-01-29T16:01:39.000Z
#!/usr/bin/env python # This file is part of pyacoustid. # Copyright 2012, Lukas Lalinsky. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitati...
34.106061
77
0.660595
284
2,251
5.126761
0.521127
0.037775
0.032967
0
0
0
0
0
0
0
0
0.007701
0.250111
2,251
65
78
34.630769
0.854858
0.356286
0
0
0
0
0.195941
0
0
0
0
0
0
1
0.027027
false
0
0.189189
0
0.216216
0.324324
0
0
0
null
0
0
0
0
0
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
3a7ec9858eb7869bba6e4129ded3a123b302b0e2
3,071
py
Python
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
null
null
null
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
null
null
null
Learning/button groups.py
atharva0300/PyQt5-Practice
0feacca6518190646a345ce2ea75e071e7861ac5
[ "MIT" ]
1
2021-11-16T10:18:07.000Z
2021-11-16T10:18:07.000Z
# Button Groups in Python import PyQt5 from PyQt5.QtWidgets import QApplication, QHBoxLayout, QLabel, QButtonGroup, QMainWindow, QDialog, QPushButton, QVBoxLayout import sys from PyQt5 import QtGui from PyQt5.QtGui import QFont, QPixmap from PyQt5.QtCore import QSize class window(QDialog): def __init__(...
28.700935
124
0.581895
342
3,071
5.169591
0.318713
0.049774
0.05543
0.047511
0.210407
0.210407
0.210407
0.210407
0.210407
0.210407
0
0.026353
0.308043
3,071
106
125
28.971698
0.805647
0.182677
0
0
0
0
0.058452
0
0
0
0
0
0
1
0.057692
false
0
0.115385
0
0.192308
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
3a7f65074a8ce42ce2f4be7f8b8b5034567b834f
20,126
py
Python
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
1
2022-03-02T21:06:21.000Z
2022-03-04T17:32:14.000Z
ct-tests/lib/crus_integration_test.py
Cray-HPE/cray-crus
6643aa3eb3debe5cbe0088f6a30b7e56ca1b1f17
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # MIT License # # (C) Copyright 2020-2022 Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including w...
45.226966
138
0.673507
2,686
20,126
4.741996
0.155622
0.071681
0.014132
0.018843
0.358719
0.284761
0.23153
0.221245
0.188349
0.165659
0
0.007099
0.223045
20,126
445
139
45.226966
0.807444
0.267862
0
0.168724
0
0
0.152437
0.009748
0
0
0
0
0
1
0.024691
false
0.004115
0.065844
0
0.098765
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
3a80351f1ae9d22c12f2dfa0609670916e8b44d0
3,071
py
Python
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
2
2018-10-23T00:40:53.000Z
2021-05-31T08:19:40.000Z
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
null
null
null
backend/transaction/models.py
elielagmay/react-budgeteer
49a25dbd6dd6ea5d8bc93421eefbc12808f585af
[ "Unlicense" ]
null
null
null
from decimal import Decimal from django.core.exceptions import ValidationError from django.db import models from app.utils import get_balances class Transaction(models.Model): ledger = models.ForeignKey( 'ledger.Ledger', on_delete=models.PROTECT, related_name='transactions' ) date ...
29.528846
75
0.626506
345
3,071
5.466667
0.301449
0.033404
0.037116
0.044539
0.177625
0.112937
0.09597
0.033934
0.033934
0
0
0.003557
0.267665
3,071
103
76
29.815534
0.835038
0
0
0.156627
0
0
0.114295
0.007489
0
0
0
0
0
1
0.072289
false
0
0.048193
0.036145
0.361446
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
3a804a776b085e92ef90bbf2391ea52e871ea437
2,335
py
Python
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
src/games/textquiz.py
aleksandrgordienko/melissa-quiz
49b165acc9aae0ad84cf751cbeb4f6a27dd5ab0f
[ "MIT" ]
null
null
null
# python-telegram-quiz # @author: Aleksandr Gordienko # @site: https://github.com/aleksandrgordienko/melissa-quiz from random import randint from sqlalchemy import Column, Integer, String from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class Question(Base): __tablename__ = 'qu...
33.357143
81
0.621842
268
2,335
5.175373
0.279851
0.129777
0.075703
0.06633
0.227109
0.062004
0.062004
0.062004
0
0
0
0.005332
0.277088
2,335
69
82
33.84058
0.816351
0.089079
0
0.041667
0
0
0.034139
0
0
0
0
0
0
1
0.145833
false
0
0.0625
0.0625
0.479167
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
3a818c77d8d52a71bd103be2681594c2e4e919a8
1,246
py
Python
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
Automate the Boring Stuff with Python/readDocx.py
m-barnes/Python
0940d5f9b832c28703a32691db287b1361ce6ecc
[ "MIT" ]
null
null
null
import docx import time import os from os import system from pprint import pprint finished = False def getText(filename): print(filename) doc = docx.Document(filename) fullText = [] for para in doc.paragraphs: fullText.append(para.text) pprint(fullText) def clear(): try: system('cls') except: system('...
20.766667
139
0.652488
170
1,246
4.782353
0.452941
0.03321
0.0369
0.054121
0.145141
0.083641
0.083641
0
0
0
0
0.004103
0.217496
1,246
59
140
21.118644
0.829744
0
0
0.3125
0
0.020833
0.298795
0
0
0
0
0
0
1
0.0625
false
0
0.104167
0
0.166667
0.145833
0
0
0
null
0
0
0
0
0
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
3a862072dc82d94cea5c675c09cf65fbf2cd377c
4,510
py
Python
concord/ext/audio/middleware.py
nariman/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
null
null
null
concord/ext/audio/middleware.py
nariman/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
14
2019-02-19T03:14:07.000Z
2021-06-25T15:15:55.000Z
concord/ext/audio/middleware.py
narimanized/concord-ext-audio
c7662507f641bfdba277509838433dbb24fe11a3
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2017-2018 Nariman Safiulin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modif...
34.166667
80
0.645455
559
4,510
5.146691
0.334526
0.049705
0.050052
0.015641
0.293361
0.280153
0.271811
0.271811
0.231144
0.231144
0
0.005255
0.282705
4,510
131
81
34.427481
0.88408
0.311308
0
0.467532
0
0
0.124349
0.008789
0
0
0
0
0
1
0
false
0
0.077922
0
0.220779
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
3a866ce737d90dd7710156bcd56f1d122772201c
28,704
py
Python
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
23
2019-04-04T17:34:56.000Z
2021-12-14T19:34:10.000Z
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
null
null
null
tf_rl/common/utils.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
3
2019-07-17T23:56:36.000Z
2022-03-13T03:55:21.000Z
import tensorflow as tf import numpy as np import os, datetime, itertools, shutil, gym, sys from tf_rl.common.visualise import plot_Q_values from tf_rl.common.wrappers import MyWrapper, CartPole_Pixel, wrap_deepmind, make_atari """ TF basic Utility functions """ def eager_setup(): """ it eables an eager ex...
35.745953
162
0.610089
3,705
28,704
4.561943
0.182996
0.010413
0.006508
0.009466
0.346527
0.31375
0.284996
0.252515
0.232931
0.206662
0
0.023698
0.264946
28,704
802
163
35.790524
0.777383
0.223
0
0.316425
0
0.002415
0.094276
0.015517
0
0
0
0.001247
0.012077
1
0.111111
false
0
0.014493
0.002415
0.219807
0.074879
0
0
0
null
0
0
0
0
0
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
3a8780a44ac5da348e337c07269fb06faa67e8cd
2,284
py
Python
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
1
2017-12-14T05:35:38.000Z
2017-12-14T05:35:38.000Z
common/serializers.py
kollad/turbo-ninja
9c3f66b2af64aec01f522d19b309cfdd723e67cf
[ "MIT" ]
null
null
null
from collections import namedtuple, OrderedDict import json __author__ = 'kollad' def isnamedtuple(obj): """Heuristic check if an object is a namedtuple.""" return isinstance(obj, tuple) \ and hasattr(obj, "_fields") \ and hasattr(obj, "_asdict") \ and callable(obj._asdict) ...
34.606061
83
0.609019
300
2,284
4.576667
0.223333
0.03496
0.06992
0.058267
0.182811
0.162418
0.162418
0.162418
0.162418
0.055353
0
0
0.24387
2,284
66
84
34.606061
0.79502
0.019702
0
0
0
0
0.164279
0.068487
0
0
0
0
0
1
0.092593
false
0
0.037037
0.037037
0.481481
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
3a8812b8a7ce8889a96abd8e38c4d8b8f1956ab6
1,079
py
Python
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
setup.py
mjw99/Musketeer
0299a7974ad90c09d8d9206fcf862e45f9fddf30
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as readmeFile: long_description = readmeFile.read() setuptools.setup( name="musketeer", version="0.0.1", author="Daniil Soloviev", author_email="dos23@cam.ac.uk", description="A tool for fitting data from titration experiments.", long_description=lo...
29.162162
70
0.624652
105
1,079
6.304762
0.780952
0.090634
0.057402
0.090634
0
0
0
0
0
0
0
0.009697
0.235403
1,079
36
71
29.972222
0.792727
0
0
0.058824
0
0
0.448563
0.020389
0
0
0
0
0
1
0
false
0
0.029412
0
0.029412
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
3a89f586494444a77daa3b34a1bc45b72a73f85e
16,338
py
Python
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
4
2020-11-26T16:18:23.000Z
2021-06-28T08:43:35.000Z
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
null
null
null
EvolutiveStrategies.py
ignacioct/GeneticAlgorithms
6a92c3d5ec6f2796333576d93c3b6b421055b7a4
[ "MIT" ]
null
null
null
import copy import math import operator import random import sys from concurrent import futures import numpy as np import requests class FitnessFunctionCaller: """Class for returning the fitness function of an individual.""" def __init__(self, *args): functional_parts = [] # Full case with ...
35.135484
144
0.580487
1,786
16,338
5.241881
0.18813
0.038453
0.024033
0.01175
0.280282
0.219077
0.195898
0.16834
0.117924
0.114505
0
0.015206
0.335843
16,338
464
145
35.211207
0.847572
0.222487
0
0.316667
0
0
0.024711
0
0
0
0
0
0
1
0.063333
false
0
0.026667
0
0.136667
0.02
0
0
0
null
0
0
0
0
0
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
3a8ac6ed77639549d9368218a7f979d0a6bcc7b7
1,638
py
Python
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
src/arago/hiro/client/exception.py
166MMX/hiro-python-library
fb29e3247a8fe1b0f7dc4e68141cf7340a8dd0a5
[ "MIT" ]
null
null
null
from typing import Mapping, Any, List class HiroClientError(Exception): def __init__(self, *args: object) -> None: super().__init__(*args) class OntologyValidatorError(HiroClientError): message: str warnings: List[str] errors: List[str] def __init__(self, data: Mapping[str, Any]) -> Non...
27.762712
96
0.525031
155
1,638
5.380645
0.277419
0.029976
0.039568
0.047962
0.199041
0.199041
0.11271
0.11271
0.11271
0.11271
0
0
0.357753
1,638
58
97
28.241379
0.792776
0.139805
0
0.352941
0
0
0.080946
0
0
0
0
0
0
1
0.117647
false
0
0.029412
0
0.470588
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
3a8cac712e69f85d4085b70791e0d285fbcb5630
2,507
py
Python
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
BabysFirstNeuralNetwork/ToyNN.py
dwpicott/BasicNeuralNetwork
ad4f5878098e5ad167ee2280f5b9b03af02dfa27
[ "MIT" ]
null
null
null
''' Basic Python tutorial neural network. Based on "A Neural Network in 11 Lines of Python" by i am trask https://iamtrask.github.io/2015/07/12/basic-python-network/ ''' import numpy as np class ToyNN(object): ''' Simple two-layer toy neural network ''' def __init__(self, inputs=3, outputs=1): ...
27.25
83
0.59274
315
2,507
4.704762
0.365079
0.009447
0.021592
0.024292
0.029015
0
0
0
0
0
0
0.037264
0.282808
2,507
92
84
27.25
0.786986
0.285201
0
0.088889
0
0
0.138049
0.019395
0
0
0
0
0
1
0.111111
false
0
0.022222
0.066667
0.222222
0.333333
0
0
0
null
0
0
0
0
0
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
3a8dcfa7190ecc79bdaa94535eba0d246aff05b9
1,122
py
Python
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
gaphor/UML/deployments/tests/test_connector.py
MartinIIOT/gaphor
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
[ "Apache-2.0" ]
null
null
null
import pytest from gaphor import UML from gaphor.core.modeling import Diagram from gaphor.core.modeling.modelinglanguage import ( CoreModelingLanguage, MockModelingLanguage, ) from gaphor.SysML.modelinglanguage import SysMLModelingLanguage from gaphor.UML.deployments.connector import ConnectorItem from gaphor....
27.365854
78
0.762923
121
1,122
7.016529
0.38843
0.070671
0.03298
0.051826
0.08245
0
0
0
0
0
0
0
0.15508
1,122
40
79
28.05
0.89557
0.060606
0
0.071429
0
0
0
0
0
0
0
0
0.142857
1
0.107143
false
0
0.25
0.035714
0.392857
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
3a8f0982e03b38e05aa03eb45840308eeb8e3dc5
3,730
py
Python
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
7
2021-01-31T19:23:07.000Z
2022-03-10T21:22:41.000Z
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
null
null
null
py_ti/helper_loops.py
tlpcap/tlp_ti
8d72b316b332fd5e20785dbf19401883958c0666
[ "MIT" ]
null
null
null
import numpy as np from numba import jit @jit def wilders_loop(data, n): """ Wilder's Moving Average Helper Loop Jit used to improve performance """ for i in range(n, len(data)): data[i] = (data[i-1] * (n-1) + data[i]) / n return data @jit def kama_loop(data, sc, n_er, length): ...
24.866667
77
0.507507
554
3,730
3.297834
0.146209
0.029557
0.048166
0.032841
0.485495
0.448823
0.296661
0.253968
0.253968
0.125889
0
0.020228
0.363807
3,730
149
78
25.033557
0.749684
0.107775
0
0.308511
0
0
0
0
0
0
0
0
0
1
0.053191
false
0
0.021277
0
0.12766
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
3a9084ba87c0f5c49b0d1b1f5827e460b297b88e
3,991
py
Python
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
3
2021-05-10T13:42:59.000Z
2022-03-28T02:07:23.000Z
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
null
null
null
src/app.py
eug/cron-rest
2d0a2e0d0cf0cb464b71293802b85ac7076f9944
[ "MIT" ]
4
2018-05-12T13:43:00.000Z
2021-10-30T01:23:00.000Z
# -*- coding: utf-8 -*- import json import os from crontab import CronTab from flask import Flask, request from pathlib import Path from pretty_cron import prettify_cron app = Flask(__name__) @app.route('/', methods=['GET']) def home(): return Path(app.root_path + '/index.html').read_text() @app.route('/create'...
26.256579
76
0.540466
435
3,991
4.850575
0.2
0.066351
0.07109
0.099526
0.56872
0.474882
0.43981
0.424171
0.424171
0.293365
0
0.00182
0.311701
3,991
151
77
26.430464
0.766291
0.005262
0
0.528
0
0
0.180444
0.017893
0
0
0
0
0
1
0.04
false
0
0.048
0.008
0.176
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
3a90d1f158c36003df58478dbdda2afff682b6b2
1,196
py
Python
2017/examples/05_randomization.py
limunan/stanford-tensorflow-tutorials
51e53daaa2a32cfe7a1966f060b28dbbd081791c
[ "MIT" ]
9,180
2017-07-27T23:43:41.000Z
2022-03-29T17:10:14.000Z
2017/examples/05_randomization.py
Nianze/stanford-tensorflow-tutorials
51e53daaa2a32cfe7a1966f060b28dbbd081791c
[ "MIT" ]
86
2017-08-04T12:38:38.000Z
2020-12-09T03:34:02.000Z
2017/examples/05_randomization.py
joshosu/stanford-tensorflow-tutorials
b16899102bf07964a15494452a2e91c1b9f88e46
[ "MIT" ]
4,115
2017-07-28T06:53:12.000Z
2022-03-23T12:36:55.000Z
""" Examples to demonstrate ops level randomization Author: Chip Huyen Prepared for the class CS 20SI: "TensorFlow for Deep Learning Research" cs20si.stanford.edu """ import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf # Example 1: session is the thing that keeps track of random state c = tf.rand...
27.813953
74
0.664716
203
1,196
3.857143
0.35468
0.091954
0.122605
0.130268
0.444444
0.444444
0.392082
0.392082
0.360153
0.319285
0
0.08731
0.176421
1,196
43
75
27.813953
0.707614
0.413043
0
0.695652
0
0
0.030702
0
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0.347826
0
0
0
null
0
0
0
0
0
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
3a91c8f71ed1bbfb503d86a5235097fd88dfae4a
5,651
py
Python
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
wangchuanli001/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
12
2019-12-07T01:44:55.000Z
2022-01-27T14:13:30.000Z
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
23
2020-05-23T03:56:33.000Z
2022-02-28T07:54:45.000Z
python-CSDN博客爬虫/CSDN_article/utils/myutils.py
hujiese/Project-experience
b563c5c3afc07c913c2e1fd25dff41c70533f8de
[ "Apache-2.0" ]
7
2019-12-20T04:48:56.000Z
2021-11-19T02:23:45.000Z
# -*- coding: utf-8 -*- ''' 通用工具类 ''' import time import MySQLdb import jieba import ast import random, sys # 日志类 import requests sys.setrecursionlimit(1000000) class Logger(object): def __init__(self, filename='default.log', stream=sys.stdout): self.terminal = stream self.log = open(filename, ...
33.838323
121
0.599186
865
5,651
3.880925
0.294798
0.053619
0.048257
0.066726
0.361632
0.342568
0.297289
0.267501
0.221329
0.184391
0
0.15956
0.228101
5,651
166
122
34.042169
0.610041
0.087064
0
0.072072
0
0.198198
0.307815
0
0
0
0
0
0
1
0.063063
false
0.036036
0.054054
0
0.162162
0.045045
0
0
0
null
0
0
0
0
0
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
3a96f177bdadd6a1d79e415e623de1950e19535a
17,315
py
Python
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
build/fbcode_builder/getdeps/cargo.py
dmitryvinn/watchman
668d3536031acd9b65950c29d6e956bb42b972bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import re import shutil from .builder import BuilderBase class CargoBuilder(BuilderBase): def __init...
40.081019
119
0.551372
2,068
17,315
4.355899
0.185203
0.018317
0.019538
0.015098
0.264987
0.200599
0.161523
0.107682
0.087589
0.080484
0
0.001265
0.360785
17,315
431
120
40.174014
0.812613
0.165348
0
0.161184
0
0.009868
0.09808
0.019129
0
0
0
0
0
1
0.055921
false
0.003289
0.019737
0.009868
0.121711
0.019737
0
0
0
null
0
0
0
0
0
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
3a98425fabf2f4efae0310710f9d76f3fbba768a
3,995
py
Python
donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
3
2018-08-17T05:31:25.000Z
2020-02-13T19:43:02.000Z
tests/donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
1
2018-11-19T06:16:50.000Z
2018-11-19T06:17:53.000Z
tests/donn/layers.py
sharan-amutharasu/DONN
c14557e8ef57f3e1c1b73c1fa98cb6ba19a82904
[ "MIT" ]
2
2018-12-06T05:01:07.000Z
2018-12-06T11:59:47.000Z
# coding: utf-8 # In[4]: from keras.layers import Activation, Dense, Dropout from keras.layers.advanced_activations import LeakyReLU, PReLU, ThresholdedReLU, ELU from keras import regularizers # In[5]: def get_activation_layer(activation): """ Returns the activation layer given its name """ if a...
37.336449
163
0.606758
429
3,995
5.421911
0.191142
0.050301
0.067068
0.045142
0.493981
0.433362
0.405847
0.405847
0.394239
0.394239
0
0.003197
0.295369
3,995
106
164
37.688679
0.823091
0.23229
0
0.327273
0
0
0.086796
0.017426
0
0
0
0
0
1
0.054545
false
0.018182
0.054545
0
0.309091
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
3a9b8204ffb1f187d8be96695d1cf97c47ce3c0a
3,618
py
Python
tournament.py
karol-prz/predictor
2774fe2a88a9bf5f7aa58f884cdcf879182c64c7
[ "MIT" ]
null
null
null
tournament.py
karol-prz/predictor
2774fe2a88a9bf5f7aa58f884cdcf879182c64c7
[ "MIT" ]
null
null
null
tournament.py
karol-prz/predictor
2774fe2a88a9bf5f7aa58f884cdcf879182c64c7
[ "MIT" ]
null
null
null
class Tournament: def __init__(self): # Dictionary of games played, scored, conceded, gd, points self.tables = {'A': {}, 'B': {}, 'C': {}, 'D': {}, 'E': {}, 'F': {}, 'G': {}, 'H':{}} self.groups_finished = False self.records = {} self.references = {} from parsers.utils import read_json self.r = read_js...
22.060976
97
0.622443
538
3,618
4.027881
0.187732
0.045685
0.041994
0.049838
0.255653
0.209045
0.159206
0.091832
0.091832
0.044301
0
0.020645
0.236871
3,618
163
98
22.196319
0.764216
0.022941
0
0.180328
0
0
0.028961
0.011641
0
0
0
0
0
1
0.065574
false
0
0.032787
0
0.155738
0.057377
0
0
0
null
0
0
0
0
0
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
3a9f119bf4f058c5f85a03cbf6f4da2b349b8dd5
1,604
py
Python
data/ABC/filter_out_tiny_models.py
YoungXIAO13/6DPoseEstimationDatasets
b9cb1d9842870860a15bf3cf600cdfb68d1e195e
[ "MIT" ]
383
2019-09-03T15:29:22.000Z
2022-03-28T02:01:15.000Z
data/ABC/filter_out_tiny_models.py
Fang-Haoshu/ObjectPoseEstimationSummary
2a11797e6b01e1820105740fcaeb7c049094c57f
[ "MIT" ]
5
2019-10-18T13:04:07.000Z
2021-09-29T05:26:52.000Z
data/ABC/filter_out_tiny_models.py
Fang-Haoshu/ObjectPoseEstimationSummary
2a11797e6b01e1820105740fcaeb7c049094c57f
[ "MIT" ]
63
2019-09-17T12:13:51.000Z
2022-03-28T03:06:05.000Z
import os from os.path import join, getsize from PIL import Image from tqdm import tqdm import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument('--dataset_dir', type=str, help='dataset directory') parser.add_argument('--model', type=str, default='abc_0000', help='subdirectory containi...
39.121951
106
0.639027
231
1,604
4.30303
0.34632
0.045272
0.051308
0.054326
0.086519
0.086519
0
0
0
0
0
0.007764
0.197007
1,604
40
107
40.1
0.763975
0
0
0
0
0
0.133416
0.036783
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
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
3aa10622900b7fd3873b3fb7ab47170cdb7c2440
2,959
py
Python
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
assignments/06-python-first-lines/first_lines.py
patarajarina/biosys-analytics
a5e8845211797364ec6f7f8679911ed3b5312887
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : patarajarina Date : 2019-02-25 Purpose: Rock the Casbah """ import argparse import sys import os # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python sc...
26.9
82
0.460967
285
2,959
4.719298
0.403509
0.026766
0.050558
0.016357
0.092193
0.068401
0.068401
0.068401
0.068401
0.068401
0
0.009965
0.32173
2,959
109
83
27.146789
0.660189
0.370057
0
0.040816
0
0
0.088594
0
0
0
0
0
0
1
0.081633
false
0
0.061224
0
0.163265
0.081633
0
0
0
null
0
0
0
0
0
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
3aa3c3abf98c6d1ad3b59e984112889aa463ffaf
4,251
py
Python
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
null
null
null
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
null
null
null
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
2
2018-09-05T07:59:21.000Z
2018-09-14T07:15:17.000Z
#!/usr/bin/env python3 '''RFC 2131 DHCP message structures.''' # Copyright (c) 2018 Inocybe Technologies. # # 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/LICE...
42.51
119
0.639379
545
4,251
4.966972
0.357798
0.024012
0.041374
0.05024
0.131511
0.101219
0.101219
0.036941
0.036941
0.036941
0
0.019706
0.247942
4,251
99
120
42.939394
0.827025
0.559868
0
0.08
0
0
0.09047
0
0
0
0
0
0
1
0.08
false
0.02
0.08
0
0.24
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3aa5d9d21b6bad4cb5b8740e530181d78e841342
1,883
py
Python
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
# encoding utf-8 import os from dotenv import find_dotenv,load_dotenv from requests import session import logging #payload for login to kaggle payload = { 'action':'login', 'username': os.environ.get("KAGGLE_USERNAME"), 'password': os.environ.get("KAGGLE_PASSWORD") } def extract_data(url, file_path): ...
30.868852
77
0.668083
263
1,883
4.574144
0.376426
0.04655
0.03325
0.042394
0.136326
0.103076
0.103076
0.103076
0
0
0
0.008719
0.208178
1,883
61
78
30.868852
0.798122
0.141795
0
0
0
0
0.213793
0
0
0
0
0
0
1
0.055556
false
0.027778
0.111111
0
0.166667
0.027778
0
0
0
null
0
0
0
0
0
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
3aa8e8a10f90ca6b21d728f7a1f51b3d5e590506
770
py
Python
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django_extensions.db.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("splash", "0005_auto_20150422_2236")] operations = [ migrations.AlterField( model_name="spl...
27.5
72
0.614286
69
770
6.594203
0.521739
0.105495
0.118681
0.158242
0.320879
0.193407
0
0
0
0
0
0.030853
0.284416
770
27
73
28.518519
0.794918
0.027273
0
0.380952
0
0
0.108434
0.03079
0
0
0
0
0
1
0
false
0
0.142857
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
3aaa3f49b8735100881fb406c235065fe7efe4e9
314
py
Python
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
'''10. Write a Python program to get a string which is n (non-negative integer) copies of a given string. Tools: input function, slicing''' word = str(input("Type in any string or word: ")) n = int(input("Enter the number of repititions: ")) ans = "" for i in range(n): ans = ans + word print(ans)
24.153846
105
0.656051
52
314
3.961538
0.711538
0
0
0
0
0
0
0
0
0
0
0.008163
0.219745
314
12
106
26.166667
0.832653
0.423567
0
0
0
0
0.358824
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
3aac4e1d77f4bf335aa448746527f97c1db73e42
2,085
py
Python
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
import unittest import bigcommerce.api from bigcommerce.connection import Connection, OAuthConnection from bigcommerce.resources import ApiResource from mock import MagicMock, patch, Mock class TestBigcommerceApi(unittest.TestCase): """ Test API client creation and helpers""" def test_create_basic(self): ...
36.578947
130
0.729976
217
2,085
6.880184
0.317972
0.084394
0.107167
0.078366
0.425988
0.304086
0.146015
0.146015
0.100469
0
0
0.008641
0.167386
2,085
56
131
37.232143
0.851382
0.017266
0
0.216216
0
0
0.064247
0.025012
0
0
0
0
0.297297
1
0.162162
false
0
0.135135
0
0.351351
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
3aad54a74724c543c7739f87f3d7419f9de3dd0e
638
py
Python
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
"""Defines the Movie class""" import webbrowser class Movie(object): """This class provides a way to store movie related information.""" def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube, movie_release_date): self.title = movie_title sel...
33.578947
72
0.677116
77
638
5.298701
0.428571
0.137255
0.078431
0.102941
0
0
0
0
0
0
0
0
0.247649
638
18
73
35.444444
0.85
0.202194
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ab1c994ef22b2ed6be0bfd91c5d34915c683650
629
py
Python
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
3
2018-09-18T03:29:33.000Z
2020-01-13T03:34:39.000Z
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
null
null
null
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
1
2022-01-25T09:39:17.000Z
2022-01-25T09:39:17.000Z
# encoding=utf8 import logging # 引入logging模块 from logging.handlers import TimedRotatingFileHandler from sync_conf import log_bese_path, log_backup_count, log_msg_level # 日志 logfile = log_bese_path + '/logs/' + 'binlog_sync.log' logger = logging.getLogger() logger.setLevel(log_msg_level) # 按日分割日志,默认日志保留7份 fh = Tim...
28.590909
90
0.761526
86
629
5.383721
0.569767
0.030238
0.047516
0
0
0
0
0
0
0
0
0.0053
0.100159
629
21
91
29.952381
0.812721
0.117647
0
0
0
0.090909
0.171533
0.05292
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ac6b31791c0cfaed3de6874a765f1f48fec4c3e
741
py
Python
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
''' Created on 09 Nov 2013 @author: michael ''' import json import urllib2 import urllib from django.conf import settings import facebook def validate_access_token(access_token): ''' Validate a Facebook access token ''' # Get an app access token app_token = facebook.get_app_access_token( ...
19.5
74
0.645074
90
741
5.111111
0.511111
0.167391
0.104348
0.095652
0
0
0
0
0
0
0
0.014286
0.244265
741
37
75
20.027027
0.807143
0.132254
0
0
0
0
0.137097
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
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
3acea141522edbabbe9dcfc8fdb02306077a23f4
6,988
py
Python
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
import datetime import pysc2.agents.myAgent.myAgent_6.config.config as config from pysc2.agents.myAgent.myAgent_6.decisionMaker.DQN import DQN import pysc2.agents.myAgent.myAgent_6.smart_actions as sa import pysc2.agents.myAgent.myAgent_6.tools.handcraft_function as handcraft_function from pysc2.env.environment impor...
50.637681
148
0.680309
787
6,988
5.747141
0.161372
0.120274
0.091974
0.101702
0.600929
0.533053
0.395976
0.293389
0.247402
0.247402
0
0.004336
0.240985
6,988
137
149
51.007299
0.848416
0.019319
0
0.180952
0
0
0.011098
0
0
0
0
0
0
1
0.104762
false
0
0.066667
0.009524
0.285714
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3acef1e57e1e1cdd81c2829c115eefd77da35670
8,696
py
Python
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2021-08-22T21:10:48.000Z
2021-08-22T21:10:48.000Z
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
null
null
null
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2020-12-13T22:07:53.000Z
2020-12-13T22:07:53.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.889908
80
0.722516
913
8,696
6.58379
0.210296
0.051905
0.058559
0.034936
0.44718
0.311429
0.277824
0.248544
0.195309
0.153718
0
0.007996
0.180198
8,696
217
81
40.073733
0.83518
0.090156
0
0.17284
0
0
0.08775
0.041593
0
0
0
0
0.12963
1
0.08642
false
0
0.049383
0.006173
0.148148
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
3ad6ff269fcd4396a9cf1a6ea13465342af4b41c
2,017
py
Python
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
7
2020-07-24T13:15:37.000Z
2021-12-11T22:40:07.000Z
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
418
2020-04-27T22:15:27.000Z
2022-03-31T23:49:34.000Z
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
6
2020-05-28T16:06:53.000Z
2021-03-16T02:54:15.000Z
import datetime import scrapy from kingfisher_scrapy.base_spider import CompressedFileSpider from kingfisher_scrapy.util import components, handle_http_error class UruguayHistorical(CompressedFileSpider): """ Domain Agencia Reguladora de Compras Estatales (ARCE) Spider arguments from_date ...
38.056604
110
0.644522
240
2,017
5.275
0.5
0.031596
0.031596
0.031596
0.037915
0
0
0
0
0
0
0.021898
0.252851
2,017
52
111
38.788462
0.818182
0.313832
0
0
0
0.038462
0.164021
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ad6ff65fc6e55b853f7c971880fa3dab4b97d0c
1,136
py
Python
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
3
2019-11-07T17:29:57.000Z
2022-03-21T01:45:04.000Z
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
null
null
null
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
null
null
null
import re class Convertor(): def __init__(self, tagslabels={}): self._tagslabels = tagslabels def _handleLabel(self, tag): if tag in self._tagslabels.keys(): return self._tagslabels[tag] return tag def _handleSingle(self, t): entities = [] index = 0 ...
31.555556
80
0.491197
133
1,136
4.075188
0.368421
0.03321
0.04428
0.055351
0.097786
0.084871
0
0
0
0
0
0.005222
0.325704
1,136
35
81
32.457143
0.70235
0
0
0
0
0
0.121479
0.051056
0
0
0
0
0
1
0.142857
false
0
0.035714
0.035714
0.392857
0.035714
0
0
0
null
0
0
0
0
0
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
3ad8fecb1b29ee0733883fd90b75697788d9e406
2,109
py
Python
backend_final/apartacho/users/views.py
cenavia/skylynx
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
3
2020-04-29T18:07:40.000Z
2020-05-20T20:52:52.000Z
backend_final/apartacho/users/views.py
cenavia/Apartacho
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
53
2020-05-13T03:27:41.000Z
2022-03-12T00:32:46.000Z
backend_final/apartacho/users/views.py
cenavia/Apartacho
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
2
2020-05-16T05:34:45.000Z
2020-06-11T14:47:50.000Z
"""Users views.""" # Django REST Framework from rest_framework.viewsets import GenericViewSet from rest_framework.mixins import (ListModelMixin, RetrieveModelMixin, UpdateModelMixin) from rest_framework import status from rest_framework.decorators i...
31.954545
69
0.662399
203
2,109
6.778325
0.374384
0.056686
0.061773
0.052326
0.263808
0.263808
0.171512
0.171512
0.114826
0.078488
0
0.00565
0.244666
2,109
65
70
32.446154
0.858129
0.079659
0
0.222222
0
0
0.040441
0
0
0
0
0
0
1
0.066667
false
0
0.155556
0
0.377778
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
3ad9ef77b1856ec357338eec91418078b9e1ee31
1,069
py
Python
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
from __future__ import print_function from topologylayer.functional.persistence import SimplicialComplex, persistenceForwardCohom from topologylayer.util.process import remove_zero_bars import torch # first, we build our complex s = SimplicialComplex() # a cycle graph on vertices 1,2,3,4 # cone with vertex...
20.960784
92
0.669785
176
1,069
4.017045
0.375
0.168317
0.101839
0.03819
0
0
0
0
0
0
0
0.057497
0.170253
1,069
50
93
21.38
0.739572
0.27783
0
0
0
0
0.02391
0
0
0
0
0
0
1
0
false
0
0.137931
0
0.137931
0.103448
0
0
0
null
0
0
0
0
0
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
3ada4a4b168c9f32d42b44792e037eaf4b8ba00b
4,020
py
Python
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
import rospy import threading import importlib from collections import deque from custom_msgs.msg import * def Subscriber(topic_name,type_str, window): #creates a subscriber for topic topic_name #using the class given as a string: type_str # in the form package_name/message_type # or in the form package_name.msg.mess...
34.358974
116
0.615672
503
4,020
4.753479
0.276342
0.032204
0.027185
0.020075
0.112923
0.08532
0.08532
0.059389
0.059389
0.059389
0
0.00705
0.294279
4,020
116
117
34.655172
0.835742
0.202488
0
0.178571
0
0
0.055294
0.008168
0
0
0
0
0
1
0.119048
false
0.011905
0.095238
0.02381
0.27381
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
3adcb0e64f1098771d6fe0dddfcf3ecb6a0a3c9a
19,324
py
Python
scripts/condinst.py
Spritaro/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
3
2021-11-14T14:11:10.000Z
2022-02-16T11:42:40.000Z
scripts/condinst.py
datomi79/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
null
null
null
scripts/condinst.py
datomi79/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
1
2022-02-14T21:47:55.000Z
2022-02-14T21:47:55.000Z
import math import numpy as np import torch import torch.nn.functional as F from torch import nn from torch.utils.data import DataLoader, random_split from torch.utils.tensorboard import SummaryWriter import torchvision # from torchvision.models.detection.backbone_utils import resnet_fpn_backbone # from torchvision.o...
48.431078
188
0.644328
2,635
19,324
4.503605
0.113472
0.039437
0.045841
0.038426
0.531558
0.469369
0.386534
0.350805
0.29561
0.262914
0
0.035702
0.23758
19,324
398
189
48.552764
0.769769
0.247413
0
0.229885
0
0
0.005142
0
0
0
0
0
0.003831
1
0.030651
false
0
0.038314
0
0.099617
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
3add20f0867b88372260c1d964a87cf06a4f4b64
1,621
py
Python
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
1
2020-10-23T08:20:59.000Z
2020-10-23T08:20:59.000Z
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
null
null
null
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
null
null
null
from django.conf import settings from django.utils import timezone from .base import default_config, numeric, lowercase_alphabetic, uppercase_alphabetic config = default_config config.update(settings.VERIFICATION) VERIFICATION_CODE_FIELD = 'verification_code' VERIFICATIONS = config.get('VERIFICATIONS') CODE_LENGTH = ...
33.770833
85
0.805676
210
1,621
5.833333
0.280952
0.097959
0.053061
0.069388
0.066939
0
0
0
0
0
0
0.000686
0.101172
1,621
47
86
34.489362
0.840082
0
0
0
0
0
0.167901
0.045679
0
0
0
0
0
1
0.027027
false
0
0.081081
0.027027
0.135135
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
3adedc706a3e7e55655cf8dce7e7f4c1476ebd61
13,078
py
Python
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
import socket import fcntl import os import time import queue import logging import traceback from .controller import Controller, ControllerTypes from ..bluez import BlueZ from .protocol import ControllerProtocol from .input import InputParser from .utils import format_msg_controller, format_msg_switch class Control...
34.415789
90
0.558878
1,417
13,078
5.018349
0.201129
0.0135
0.025313
0.011813
0.476586
0.407538
0.368865
0.346927
0.325552
0.306567
0
0.009512
0.364964
13,078
379
91
34.506596
0.846719
0.170362
0
0.485944
0
0
0.034991
0
0
0
0
0
0
1
0.028112
false
0.012048
0.048193
0
0.104418
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
3adefdd3fa592b7c580b21e49f739074251c1d6b
391
py
Python
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
import frappe from datetime import datetime # bench execute mfi_customization.mfi.patch.set_first_responded_on_issue.execute def execute(): for d in frappe.get_all("Issue"): for tk in frappe.get_all("Task",{"issue": d.name}, ['attended_date_time', 'status']): if tk.attended_date_time: frappe.db.set_value("Is...
35.545455
93
0.749361
61
391
4.540984
0.491803
0.129964
0.173285
0.101083
0
0
0
0
0
0
0
0
0.109974
391
10
94
39.1
0.795977
0.199488
0
0
0
0
0.209003
0
0
0
0
0
0
1
0.142857
false
0
0.285714
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
3adf530cc79f1ef10e5ff6f32271340c43c7203b
3,769
py
Python
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import sys from multiprocessing import Pool from timeit import default_timer as timer from config import Config from cgp.functionset import FunctionSet from cgp.genome import Genome import numpy as np import numpy.random from random import randint from tetris_learning_environment import E...
30.395161
137
0.644733
450
3,769
5.304444
0.328889
0.017595
0.065354
0.024298
0.204022
0.146628
0.125681
0.125681
0.125681
0.125681
0
0.020487
0.248872
3,769
123
138
30.642276
0.822678
0.065004
0
0.087912
0
0
0.048905
0
0
0
0
0
0
1
0.043956
false
0
0.175824
0
0.241758
0.065934
0
0
0
null
0
0
0
0
0
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
3ae33afc12f8987d0c85ee05a95ac1ec3a4be0c6
3,726
py
Python
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Function that loads a checkpoint and rebuilds the model import torch from torch import nn from collections import OrderedDict from torchvision import datasets, transforms, models def save_checkpoint(model, checkpoint_path, output_categories): ''' Save the trained deep...
31.846154
165
0.630972
442
3,726
5.196833
0.319005
0.125381
0.037005
0.031345
0.227688
0.127993
0.101001
0.101001
0.101001
0.101001
0
0.030246
0.281267
3,726
116
166
32.12069
0.827483
0.285829
0
0.106383
0
0.021277
0.184798
0
0
0
0
0
0
1
0.06383
false
0
0.085106
0
0.255319
0.06383
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3ae4b2634727a7a3c18f2473fe0c51212182326b
7,689
py
Python
pytorch/utils/utils.py
XinyiYS/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
25
2020-07-29T03:46:12.000Z
2022-03-23T07:15:53.000Z
pytorch/utils/utils.py
lingjuanlv/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
null
null
null
pytorch/utils/utils.py
lingjuanlv/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
7
2020-09-15T19:06:27.000Z
2022-02-22T06:51:52.000Z
import copy import torch from torch import nn from torch.utils.data import DataLoader from torchtext.data import Batch def averge_models(models, device=None): final_model = copy.deepcopy(models[0]) if device: models = [model.to(device) for model in models] final_model = final_model.to(device) averaged_paramete...
35.109589
123
0.757836
1,158
7,689
4.764249
0.163212
0.059815
0.015226
0.017401
0.287656
0.150082
0.107305
0.107305
0.082654
0.082654
0
0.009201
0.137729
7,689
219
124
35.109589
0.822926
0.038367
0
0.136691
0
0
0.023716
0
0
0
0
0
0.014388
1
0.079137
false
0
0.057554
0.007194
0.223022
0.007194
0
0
0
null
0
0
0
0
0
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
3aea02ea9b227434bbb8b250a3ff42f885040255
17,501
py
Python
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
1
2021-02-27T16:33:53.000Z
2021-02-27T16:33:53.000Z
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
null
null
null
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
null
null
null
import math import os from PyQt5 import QtCore from PyQt5.QtWidgets import QGridLayout, QLabel, QPushButton, QFrame, QTextEdit, QInputDialog, QSizePolicy, QAction, QMessageBox from Core.DieClock import DieClock from Core.WildernessTravelManager import WildernessTravelManager from Interface.Widgets.LineEditMouseWheelE...
52.241791
203
0.746186
1,415
17,501
9.223322
0.180919
0.021914
0.040457
0.040457
0.173933
0.086583
0.067045
0.031492
0.031492
0.024826
0
0.006633
0.172962
17,501
334
204
52.398204
0.895053
0.054797
0
0.0875
0
0
0.041745
0
0
0
0
0
0
1
0.075
false
0
0.0375
0
0.116667
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
3aec38a277d65b28e5bc3af20165517902bdb701
1,189
py
Python
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def getpts(path): pts = set() loc = [0, 0] for step in path: direction = step[0] distance = int(step[1:]) if direction == "R": for s in range(distance): pts.add((loc[0] + s + 1, loc[1])) loc[0] += distance eli...
23.78
78
0.502103
164
1,189
3.609756
0.347561
0.047297
0.040541
0.074324
0.361486
0.361486
0.361486
0.361486
0.361486
0.361486
0
0.039846
0.345669
1,189
49
79
24.265306
0.72108
0.017662
0
0.108108
0
0
0.01371
0
0
0
0
0
0
1
0.027027
false
0
0
0
0.054054
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
3aece6336549f29b4f897302ef630eedb4bbc785
609
py
Python
tests/plugins/test_openrectv.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
5
2017-03-21T19:43:17.000Z
2018-10-03T14:04:29.000Z
tests/plugins/test_openrectv.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
7
2016-10-13T23:29:31.000Z
2018-06-28T14:04:32.000Z
tests/plugins/test_openrectv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
2
2016-11-24T18:37:33.000Z
2017-03-21T19:43:49.000Z
import unittest from streamlink.plugins.openrectv import OPENRECtv class TestPluginOPENRECtv(unittest.TestCase): def test_can_handle_url(self): should_match = [ 'https://www.openrec.tv/live/DXRLAPSGTpx', 'https://www.openrec.tv/movie/JsDw3rAV2Rj', ] for url in shou...
29
59
0.648604
71
609
5.323944
0.43662
0.095238
0.126984
0.134921
0.343915
0
0
0
0
0
0
0.004386
0.251232
609
20
60
30.45
0.824561
0
0
0
0
0
0.167488
0
0
0
0
0
0.125
1
0.125
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3aedf299041cb35f549d54f7d93a4515346863a2
6,474
py
Python
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
1
2021-06-25T08:53:31.000Z
2021-06-25T08:53:31.000Z
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
null
null
null
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
null
null
null
# Script de criação do dashboard # https://dash.plotly.com/dash-html-components # Imports import traceback import pandas as pd import plotly.express as px import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html from dash.dependencies import Input, Output # Módulo...
78.95122
998
0.605653
796
6,474
4.903266
0.344221
0.019728
0.028183
0.073277
0.33359
0.33359
0.33359
0.33359
0.33359
0.33359
0
0.023354
0.30553
6,474
81
999
79.925926
0.844751
0.020853
0
0.446154
0
0.046154
0.462255
0
0
0
0
0
0
1
0.015385
false
0
0.138462
0
0.184615
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
3af4df280e903825cd489383b9d45d6281eb6687
491
py
Python
test/log_check.py
talareq/selenium
302804aa34149ea38b42fe7b55d806211e9e4435
[ "Apache-2.0" ]
null
null
null
test/log_check.py
talareq/selenium
302804aa34149ea38b42fe7b55d806211e9e4435
[ "Apache-2.0" ]
null
null
null
test/log_check.py
talareq/selenium
302804aa34149ea38b42fe7b55d806211e9e4435
[ "Apache-2.0" ]
null
null
null
def test_example(app): app.login_admin() app.get("http://localhost/litecart/admin/?app=catalog&doc=catalog&category_id=1") menu=app.driver.find_elements_by_css_selector("tr .row") for n in range(0,len(menu)): element = app.driver.find_elements_by_css_selector("tr .row") element[n].clic...
35.071429
96
0.672098
74
491
4.283784
0.486486
0.113565
0.100946
0.15142
0.624606
0.624606
0.624606
0.624606
0.624606
0.378549
0
0.007371
0.171079
491
14
96
35.071429
0.771499
0
0
0
0
0
0.328571
0
0
0
0
0
0
1
0.1
false
0
0
0
0.1
0.1
0
0
0
null
0
0
0
0
0
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
3af692d7975c4dc7bec14dbb6e213b560c3130d8
7,526
py
Python
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
1
2022-03-28T10:47:37.000Z
2022-03-28T10:47:37.000Z
# Copyright 2020 Bradbase import itertools from datetime import datetime, timedelta, date from calendar import monthrange from harvest import Harvest from .harvestdataclasses import * class DetailedReports(Harvest): def __init__(self, uri, auth): super().__init__(uri, auth) self.client_cache = ...
40.245989
622
0.558464
875
7,526
4.602286
0.152
0.058108
0.063571
0.041718
0.484728
0.455923
0.433077
0.39111
0.377204
0.365533
0
0.027032
0.336434
7,526
186
623
40.462366
0.779335
0.007972
0
0.385135
0
0
0.03458
0
0
0
0
0
0
1
0.02027
false
0
0.033784
0
0.081081
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
3af6f1205b131d37a985d1c51f9e6d5d18cb4383
328
py
Python
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
253
2015-01-03T23:17:57.000Z
2021-12-14T02:31:08.000Z
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
879
2015-01-11T16:07:25.000Z
2021-12-10T16:24:31.000Z
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
71
2015-01-04T01:02:47.000Z
2022-03-25T18:30:10.000Z
""" Send a kill signal to a BiblioPixel process running on this machine to abruptly kill it DEPRECATED: use .. code-block:: bash $ kill -kill `bpa-pid` """ DESCRIPTION = """ Example: .. code-block:: bash $ bp kill """ from .. util.signal_handler import make_command add_arguments, run = make_command('SI...
13.666667
59
0.682927
45
328
4.888889
0.733333
0.081818
0.118182
0
0
0
0
0
0
0
0
0
0.195122
328
23
60
14.26087
0.833333
0.469512
0
0
0
0
0.333333
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
3af703dc54a66f683dbd47d8d1a850161cd49620
5,645
py
Python
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
# Standard imports import json import ast # Third party imports import pandas as pd from tabulate import tabulate # Local application imports from utils.logger import logger class Dataloding: """Loads movie lens and TMDB data from data folder. """ def __init__(self, data_folder='data'): sel...
37.384106
81
0.583702
665
5,645
4.718797
0.183459
0.033142
0.03123
0.053537
0.232314
0.129382
0.059911
0.037604
0.037604
0.037604
0
0.001551
0.314615
5,645
150
82
37.633333
0.809512
0.137998
0
0.041237
0
0
0.124148
0.022359
0
0
0
0
0
1
0.061856
false
0.010309
0.051546
0
0.164948
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
aae6433bbacb013e1d4734b577daca4627358efe
421
py
Python
easy/1710-maximum-units-on-a-truck.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
easy/1710-maximum-units-on-a-truck.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
easy/1710-maximum-units-on-a-truck.py
changmeng72/leecode_python3
8384f52f0dd74b06b1b6aefa277dde6a228ff5f3
[ "MIT" ]
null
null
null
class Solution: def maximumUnits(self, boxTypes: List[List[int]], truckSize: int) -> int: boxTypes.sort(key=lambda x: x[1],reverse = True) r = 0 remaining = truckSize for boxType in boxTypes: b = min(remaining,boxType[0]) r += b * boxType[1] ...
32.384615
78
0.489311
46
421
4.478261
0.586957
0
0
0
0
0
0
0
0
0
0
0.020161
0.410926
421
13
79
32.384615
0.810484
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aae69a1c9858fa2062e072c3ac6fac72ce0dc685
334
py
Python
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 24 00:44:49 2020 @author: Aanal Sonara """ import cv2 cap = cv2.VideoCapture(0) while cap.isOpened(): _, frame = cap.read() cv2.imshow("live video", frame) k = cv2.waitKey(1) and 0xFF if k==27: break cap.release() cv2.destr...
17.578947
36
0.577844
46
334
4.173913
0.804348
0
0
0
0
0
0
0
0
0
0
0.094262
0.269461
334
19
37
17.578947
0.692623
0.242515
0
0
0
0
0.04386
0
0
0
0.017544
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aae6ab08212b4b7afe1925bc3ddbf0db7587516e
5,515
py
Python
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
import configparser import os import tempfile import urllib.request import xml.dom.minidom import xml.etree.ElementTree as ET from urllib.error import HTTPError, URLError from urllib.parse import urlparse from bs4 import BeautifulSoup from tinytag import TinyTag import gevent dir_path = os.path.dirname(os.path.realpa...
36.282895
114
0.677244
766
5,515
4.562663
0.223238
0.032046
0.033476
0.027182
0.296996
0.210587
0.095279
0.041202
0
0
0
0.015527
0.217588
5,515
151
115
36.523179
0.794438
0
0
0.07377
0
0
0.056029
0
0
0
0
0
0
1
0.106557
false
0.008197
0.090164
0.008197
0.286885
0.008197
0
0
0
null
0
0
0
0
0
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
aae7a8e4bea1bfaeb77207d29d33884bce510446
4,341
py
Python
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import numpy import torch import torchnet from tqdm import tqdm from torchnet.engine import Engine from torchnet.logger import VisdomPlotLogger, VisdomLogger import project.deco as deco from project.sequoder import SequenceEncoder, get_loss def get_args(...
31.919118
95
0.628657
562
4,341
4.701068
0.33452
0.020439
0.038607
0.028388
0.116578
0.100681
0.0757
0.0757
0.040878
0.040878
0
0.010235
0.234739
4,341
135
96
32.155556
0.785069
0.147431
0
0.041237
0
0
0.124254
0
0
0
0
0
0
1
0.103093
false
0
0.092784
0
0.237113
0.020619
0
0
0
null
0
0
0
0
0
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
aae827e1c08cf7a4934daf6680f0a298b8d6f043
18,420
py
Python
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
40.394737
80
0.591205
1,862
18,420
5.640172
0.145542
0.057132
0.023995
0.028566
0.458198
0.410303
0.369073
0.311845
0.280804
0.254428
0
0.002002
0.321987
18,420
455
81
40.483516
0.838898
0.115418
0
0.360856
0
0
0.128764
0.004742
0
0
0
0
0
1
0.076453
false
0.003058
0.021407
0.012232
0.125382
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
aaebd6d86a473c46810168a0f679eb02f758b767
875
py
Python
pretoinf.py
nirmalya8/CalculateAndConvert
07eb954e2ac5960363637079bc8c179edec37a69
[ "CC-BY-3.0" ]
1
2021-01-11T09:01:51.000Z
2021-01-11T09:01:51.000Z
pretoinf.py
nirmalya8/CalculateAndConvert
07eb954e2ac5960363637079bc8c179edec37a69
[ "CC-BY-3.0" ]
null
null
null
pretoinf.py
nirmalya8/CalculateAndConvert
07eb954e2ac5960363637079bc8c179edec37a69
[ "CC-BY-3.0" ]
1
2021-01-10T09:25:45.000Z
2021-01-10T09:25:45.000Z
class prefixtoinfix: def prefixToInfix(self,prefix): stack = [] l = [] # read prefix in reverse order i = len(prefix) - 1 for j in prefix: if j == ' ': return [],False while i >= 0: if not self.isOperator(prefix[i]): ...
29.166667
92
0.377143
89
875
3.707865
0.382022
0.054545
0.072727
0.090909
0.057576
0.057576
0.057576
0.057576
0.057576
0.057576
0
0.008969
0.490286
875
30
93
29.166667
0.730942
0.074286
0
0.173913
0
0
0.012392
0
0.043478
0
0
0
0
1
0.086957
false
0
0
0
0.304348
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
aaf0aa3cbdbb1c81c191ac04d6a56e4b822a4b99
980
py
Python
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
2
2022-03-10T22:22:19.000Z
2022-03-24T14:42:55.000Z
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
null
null
null
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
null
null
null
import pygame class Weapon(pygame.sprite.Sprite): def __init__(self, player, groups): super().__init__(groups) self.spriteType = 'weapon' direction = player.status.split('_')[0] # graphic fullPath = f'./src/img/weapons/{player.weapon}/{direction}.png' self.image = ...
36.296296
75
0.586735
112
980
5.008929
0.392857
0.080214
0.085562
0.121212
0.28877
0.28877
0.117647
0
0
0
0
0.022663
0.279592
980
26
76
37.692308
0.771955
0.017347
0
0.2
0
0
0.071875
0.051042
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
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
aaf368c0cbb0ab66f42b16908ff73d7af84048da
1,224
py
Python
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
3
2021-12-06T16:44:16.000Z
2022-03-30T05:45:48.000Z
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
8
2022-02-14T22:39:19.000Z
2022-03-31T01:54:06.000Z
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
1
2022-02-15T18:59:44.000Z
2022-02-15T18:59:44.000Z
# # Download images from the LOC IIIF server and store them locally # import requests from pathlib import Path import shutil import time base = 'https://www.loc.gov/' iiifbase = 'https://tile.loc.gov/image-services/iiif/' def getImages(item, dest_dir): downloaded_images = list() Path(dest_dir).mkdir(parents=Tr...
36
146
0.607843
152
1,224
4.776316
0.546053
0.038567
0.066116
0.070248
0.068871
0.068871
0.068871
0
0
0
0
0.008677
0.246732
1,224
34
147
36
0.778742
0.051471
0
0
0
0
0.164076
0
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.2
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aaf4cca94bb840d24c6ed43cf92a6175ba126324
1,291
py
Python
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
from floodsystem.datafetcher import fetch_measure_levels from floodsystem.stationdata import build_station_list, update_water_levels import floodsystem.flood as flood import floodsystem.plot as plot from datetime import datetime, timedelta import datetime stations = build_station_list() update_water_levels(stations) ...
32.275
120
0.691712
172
1,291
4.988372
0.424419
0.051282
0.041958
0.051282
0.076923
0.076923
0
0
0
0
0
0.011202
0.239349
1,291
39
121
33.102564
0.862525
0.18048
0
0
0
0
0.082778
0
0
0
0
0
0
1
0.04
false
0
0.24
0
0.28
0.08
0
0
0
null
0
0
0
0
0
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
aaf844dccdd148febc58c248704051fea8ef7efb
1,256
py
Python
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
import pygame from gui_components.gui_util import get_font, BLACK, BLUE, GRAY class Cell: def __init__(self, value, row, col, width, height): self.value = value self.temp = 0 self.row = row self.col = col self.width = width self.height = height self.set_by...
27.304348
105
0.527866
179
1,256
3.581006
0.290503
0.098284
0.070203
0.060842
0.065523
0
0
0
0
0
0
0.023313
0.351115
1,256
45
106
27.911111
0.76319
0
0
0.057143
0
0
0.003981
0
0
0
0
0
0
1
0.114286
false
0
0.057143
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aaf88ec65f719215938c906b09236be307dd6034
2,246
py
Python
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
1
2021-12-01T13:26:10.000Z
2021-12-01T13:26:10.000Z
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
null
null
null
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
null
null
null
""" Remove Dups: Write code to remove duplicates from an unsorted linked list. FOLLOW UP How would you solve this problem if a temporary buffer is not allowed? """ from linkedlist import linkedlist def remove_dup(linked_list): placeholder = dict() pointer1 = linked_list.top # This guy deletes the du...
27.060241
77
0.629564
295
2,246
4.60678
0.284746
0.06181
0.064754
0.100074
0.381163
0.294334
0.294334
0.291391
0.291391
0.291391
0
0.033582
0.284061
2,246
82
78
27.390244
0.811567
0.130899
0
0.425926
0
0
0.020176
0
0
0
0
0
0
1
0.055556
false
0
0.018519
0
0.092593
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
aafaed7bd2fdeb1c2bbe286e7b1293532edfc8c8
2,516
py
Python
api/models.py
mz-techops/banhammer
02476db3d2bb617dbe50827687065fbea7553caf
[ "BSD-3-Clause" ]
3
2018-03-09T23:29:25.000Z
2020-11-25T15:34:13.000Z
api/models.py
whyallyn/banhammer
59fc81b15d9950a7a40279a9d1df8101c58df569
[ "BSD-3-Clause" ]
3
2018-05-08T01:10:43.000Z
2021-03-19T21:56:36.000Z
api/models.py
whyallyn/banhammer
59fc81b15d9950a7a40279a9d1df8101c58df569
[ "BSD-3-Clause" ]
2
2018-05-10T15:07:24.000Z
2018-06-20T16:24:00.000Z
"""API Django models.""" from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class Target(models.Model): """Definition of a Target.""" BAN = 'ban' ALLOW = 'allow' TARGET_ACTION_CHOICES = ( ...
31.848101
76
0.636328
297
2,516
5.144781
0.228956
0.070681
0.122382
0.141361
0.496073
0.383508
0.115183
0.115183
0.057592
0.057592
0
0.010621
0.25159
2,516
78
77
32.25641
0.80085
0.031002
0
0.123077
0
0
0.273328
0
0
0
0
0
0
1
0.030769
false
0
0.046154
0.030769
0.476923
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
aafb2505abc576fb91ec98a082757451092677b3
1,795
py
Python
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse from pathlib import Path from pytorch_lightning import seed_everything from ranking_utils.datasets.antique import ANTIQUE from ranking_utils.datasets.fiqa import FiQA from ranking_utils.datasets.insuranceqa import InsuranceQA from ranking_utils.datasets.trecdl import TRECDL20...
29.42623
88
0.690808
224
1,795
5.3125
0.361607
0.02521
0.067227
0.10084
0.134454
0.053782
0
0
0
0
0
0.017668
0.211699
1,795
60
89
29.916667
0.823322
0.012256
0
0.170213
0
0
0.169865
0
0
0
0
0
0
1
0.021277
false
0.042553
0.170213
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
aafcb95092c87ce209c68768cc38ba847d90f715
945
py
Python
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
# encoding=utf-8 import random from collections import namedtuple Point = namedtuple('Point', 'x y') DIRECTIONS = { 'N': Point(0, -1), 'E': Point(1, 0), 'S': Point(0, 1), 'W': Point(-1, 0), } class LightCycleBaseBot(object): def get_next_step(self, arena, x, y, direction): raise NotIm...
27
73
0.583069
114
945
4.763158
0.438596
0.014733
0.025783
0.051565
0.12523
0.12523
0.12523
0.12523
0.12523
0
0
0.019727
0.302646
945
34
74
27.794118
0.804249
0.04127
0
0.090909
0
0
0.044297
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
aafd6a05995c3be1c704460d3a42582a855ce32e
6,629
py
Python
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
""" This module allows to perform a specific extrinsic evaluation of files by a specified criteria. Antoine Orgerit - François Gréau - Lisa Fougeron La Rochelle Université - 2019-2020 """ import langid import json import copy import subprocess from os import listdir, remove from os.path import isfile, join from utils...
38.994118
276
0.629808
875
6,629
4.534857
0.185143
0.063508
0.081653
0.060988
0.416079
0.261593
0.225302
0.197329
0.178679
0.137097
0
0.009586
0.213154
6,629
169
277
39.224852
0.75115
0.160959
0
0.192661
0
0
0.102697
0.038604
0
0
0
0
0
1
0.073395
false
0
0.06422
0
0.192661
0.302752
0
0
0
null
0
0
0
0
0
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
aafdf4b1d0c84500a3e64c7af727b3f3bc824d1a
5,002
py
Python
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright 2021 Red Hat, Inc. # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
33.797297
78
0.595162
548
5,002
5.213504
0.315693
0.019601
0.015401
0.024151
0.433322
0.40042
0.325516
0.236262
0.155408
0.155408
0
0.003834
0.322071
5,002
147
79
34.027211
0.838691
0.217713
0
0.542857
0
0
0.137275
0
0
0
0
0
0
1
0.047619
false
0
0.057143
0
0.190476
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
aafe6ad15866307b4277788796934306b2fe5812
2,207
py
Python
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
3
2019-02-23T08:19:41.000Z
2021-01-07T08:05:29.000Z
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
null
null
null
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
1
2019-02-23T08:19:43.000Z
2019-02-23T08:19:43.000Z
import time, os from openpyxl import load_workbook from openpyxl import Workbook from .config import * class Excel(): """This is a class that saves data to an excel file.""" def loadFile(self, fileName): """load excel file""" self.wb = load_workbook(fileName) self.sheets = self.wb.get_...
33.439394
63
0.487993
248
2,207
4.318548
0.266129
0.033613
0.029879
0.036415
0.165266
0.097106
0.097106
0.097106
0.097106
0.097106
0
0.01283
0.399638
2,207
66
64
33.439394
0.795472
0.067059
0
0.185185
0
0
0.023657
0
0
0
0
0
0
1
0.092593
false
0
0.074074
0
0.240741
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
c90218f051fff4ea8d9d74263bd6864628d0ed69
2,172
py
Python
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
1
2020-06-20T12:27:11.000Z
2020-06-20T12:27:11.000Z
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
null
null
null
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
null
null
null
from common.bert_args import BertArgs from sutime import SUTime from parsing.nltk_nlp_utils import NLTK_NLP from common import globals_args from common import hand_files parser_mode = globals_args.parser_mode wh_words_set = {"what", "which", "whom", "who", "when", "where", "why", "how", "how many", "how large",...
65.818182
133
0.683702
265
2,172
5.350943
0.490566
0.077574
0.080395
0.105783
0.057828
0.057828
0.057828
0.057828
0
0
0
0.001084
0.150552
2,172
33
134
65.818182
0.76748
0.035451
0
0
0
0
0.301795
0
0
0
0
0
0
1
0
false
0
0.233333
0
0.233333
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
c90237976b3a9200b3841c1dddf956cf22c21271
1,378
py
Python
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
3,172
2017-01-18T19:47:03.000Z
2022-03-27T17:06:03.000Z
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
1,228
2017-01-18T20:09:16.000Z
2022-03-31T04:42:35.000Z
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
850
2017-01-19T03:19:54.000Z
2022-03-29T15:29:52.000Z
from torchtext.data.datasets_utils import ( _RawTextIterableDataset, _wrap_split_argument, _add_docstring_header, _download_extract_validate, _create_dataset_directory, _create_data_from_csv, ) import os import logging URL = 'https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZVhsUnRWR...
30.622222
125
0.716255
157
1,378
5.859873
0.414013
0.034783
0.052174
0.061957
0.063043
0.063043
0.063043
0.063043
0
0
0
0.071737
0.160377
1,378
44
126
31.318182
0.723423
0
0
0
0
0
0.25254
0.122642
0
0
0
0
0
1
0.028571
false
0
0.085714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c90243bd480bf830b8eea8819352fe119d1a48da
2,962
py
Python
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
import os from threading import Thread from typing import List from aiExchangeMessages_pb2 import SimulationID def _handle_vehicle(sid: SimulationID, vid: str, requests: List[str]) -> None: vid_obj = VehicleID() vid_obj.vid = vid i = 0 while i < 10: i += 1 print(sid.sid + ": Test sta...
36.121951
102
0.581702
319
2,962
5.253919
0.322884
0.048329
0.114558
0.073986
0.155131
0.155131
0.062053
0
0
0
0
0.007448
0.320054
2,962
81
103
36.567901
0.824727
0.035787
0
0.117647
0
0
0.078975
0.016497
0
0
0
0
0
1
0.014706
false
0.014706
0.102941
0
0.117647
0.117647
0
0
0
null
0
0
0
0
0
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
c906663e816567788a872d79ad4e2f03fb4244fb
12,019
py
Python
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
34
2017-10-18T06:09:16.000Z
2022-03-21T18:53:16.000Z
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
52
2017-10-19T13:35:39.000Z
2021-06-03T08:54:55.000Z
python/loom_viewer/loom_cli.py
arao11/pattern_viz
3123f19a127c9775fadcca25f83aebfc8dc3b9f9
[ "BSD-2-Clause" ]
6
2018-05-28T06:16:26.000Z
2020-08-17T11:49:34.000Z
#!/usr/bin/env python # Copyright (c) 2016 Sten Linnarsson # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # li...
26.473568
144
0.719611
1,708
12,019
4.986534
0.215457
0.029705
0.033932
0.024304
0.398145
0.358225
0.334742
0.303393
0.291417
0.262299
0
0.004147
0.177469
12,019
453
145
26.532009
0.857374
0.150179
0
0.36246
0
0.009709
0.499115
0
0
0
0
0
0
1
0.016181
false
0.003236
0.038835
0
0.064725
0.006472
0
0
0
null
0
0
0
0
0
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
c907566de3410b8c828deb59e531487549202dc6
1,260
py
Python
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
1
2021-12-25T04:08:53.000Z
2021-12-25T04:08:53.000Z
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
null
null
null
test_function.py
will-huynh/process_controller
e193c80976ef1d35fb9e661425bf609a86a313c8
[ "MIT" ]
null
null
null
import logging import tcp_log_socket logging_socket = tcp_log_socket.local_logging_socket(__name__) logger = logging_socket.logger #Test method simulating a method with required arguments; division is used to test exception handling def test_args(div1, div2): logger.info("Simulating a method with argument...
37.058824
102
0.692857
164
1,260
5.182927
0.371951
0.094118
0.070588
0.074118
0.072941
0.072941
0
0
0
0
0
0.008048
0.211111
1,260
33
103
38.181818
0.847082
0.18254
0
0
0
0
0.252515
0
0
0
0
0
0
1
0.115385
false
0
0.076923
0
0.307692
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
c908908fcda77dbed54b6f285d7d03c69d799dc0
3,154
py
Python
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
1
2020-09-10T11:26:05.000Z
2020-09-10T11:26:05.000Z
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
null
null
null
users/views.py
elvinaqa/Amazon-Review-Analyzer-Summarizer-Python-NLP-ML-
6c70e84ffbcb8c8fd65a7fe0847e1f0eb779f759
[ "Unlicense" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm ##################################################################### from django.http import HttpResponse fr...
38.463415
88
0.642676
354
3,154
5.562147
0.30226
0.055866
0.043169
0.048756
0.068055
0.041646
0
0
0
0
0
0.005848
0.240964
3,154
81
89
38.938272
0.816625
0.007292
0
0.098592
0
0
0.089216
0.026144
0
0
0
0
0
1
0.042254
false
0
0.197183
0
0.323944
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
c9098d28bd2a0a51fc33c4cd5fecc41dc7fc38ec
2,196
py
Python
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
97
2016-12-14T16:48:49.000Z
2021-09-12T17:48:10.000Z
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
38
2016-12-13T09:42:38.000Z
2020-07-05T11:58:07.000Z
stats/monitor.py
pawankaushal/crossbar-examples
b6e0cc321bad020045c4fafec091f78abd938618
[ "Apache-2.0" ]
118
2016-12-12T21:36:40.000Z
2021-11-17T11:49:33.000Z
import argparse from pprint import pformat import txaio txaio.use_twisted() from autobahn.twisted.wamp import ApplicationSession, ApplicationRunner class ClientSession(ApplicationSession): async def onJoin(self, details): print('MONITOR session joined: {}'.format(details)) xbr_config = self.co...
31.826087
89
0.583789
234
2,196
5.282051
0.337607
0.090615
0.048544
0.043689
0.223301
0.058252
0
0
0
0
0
0.006382
0.28643
2,196
68
90
32.294118
0.782387
0.031421
0
0.044444
0
0
0.206118
0.071529
0
0
0
0
0
1
0.066667
false
0
0.088889
0
0.177778
0.066667
0
0
0
null
0
0
0
0
0
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
c90c7861eaff4add66e4d61ef78a76a073959d73
29,349
py
Python
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
2
2020-10-08T17:03:45.000Z
2021-03-09T17:49:44.000Z
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
17
2020-09-24T17:35:38.000Z
2020-12-11T16:10:13.000Z
spirou/sandbox/fits2ramp.py
clairem789/apero-utils
68ed0136a36b6badeaf15eb20d673052ad79a949
[ "MIT" ]
5
2020-04-10T06:41:00.000Z
2020-12-16T21:09:14.000Z
#!/usr/bin/env python2.7 # Version date : Aug 21, 2018 # # --> very minor correction compared to previous version. As keywords may change in files through time, when we delete # a keyword, we first check if the keyword is preseent rather than "blindly" deleting it # --> also corrected integer vs float divisions in ...
40.20411
225
0.665474
4,689
29,349
4.137983
0.182981
0.007731
0.011751
0.015771
0.149925
0.102561
0.072772
0.058857
0.027625
0.027625
0
0.024119
0.213125
29,349
729
226
40.259259
0.816056
0.461958
0
0.185864
0
0
0.257759
0.002402
0
0
0
0
0
1
0.007853
false
0.002618
0.026178
0
0.034031
0.225131
0
0
0
null
0
0
0
0
0
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
c912b5b1a08a02d640553311c19b5c840ef97729
4,651
py
Python
web_app/api_service.py
shayan-taheri/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
23
2017-11-29T17:33:30.000Z
2021-10-15T14:51:12.000Z
web_app/api_service.py
shayan-taheri/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
1
2017-10-12T11:23:08.000Z
2017-10-12T11:23:08.000Z
web_app/api_service.py
isabella232/sql_python_deep_learning
ceb2c41bcb1fed193080f64ba4da018d76166222
[ "MIT" ]
16
2017-12-21T08:55:09.000Z
2021-03-21T20:17:40.000Z
from api import app, BAD_PARAM, STATUS_OK, BAD_REQUEST from flask import request, jsonify, abort, make_response,render_template, json import sys from lung_cancer.connection_settings import get_connection_string, TABLE_SCAN_IMAGES, TABLE_GIF, TABLE_MODEL, TABLE_FEATURES, LIGHTGBM_MODEL_NAME, DATABASE_NAME,NUMBER_PATIEN...
33.221429
176
0.723285
598
4,651
5.301003
0.255853
0.155205
0.033123
0.0347
0.334385
0.295899
0.24511
0.24511
0.24511
0.204416
0
0.007299
0.175231
4,651
140
177
33.221429
0.819082
0.045367
0
0.176471
0
0
0.138989
0.015794
0
0
0
0
0
1
0.107843
false
0
0.078431
0
0.294118
0.019608
0
0
0
null
0
0
0
0
0
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
c9144a2b1a0cbf40a3d765da71a5f9435588a292
335
py
Python
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
null
null
null
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
null
null
null
10-blood/scripts/bloodMeasure.py
antl-mipt-ru/get
c914bd16131639e1af4452ae7351f2554ef83ce9
[ "MIT" ]
1
2021-10-11T16:24:32.000Z
2021-10-11T16:24:32.000Z
import bloodFunctions as blood import time try: samples = [] blood.initSpiAdc() start = time.time() while (time.time() - start) < 60: samples.append(blood.getAdc()) finish = time.time() blood.deinitSpiAdc() blood.save(samples, start, finish) finally: print("Blood measure sc...
17.631579
42
0.641791
38
335
5.657895
0.552632
0.111628
0
0
0
0
0
0
0
0
0
0.007782
0.232836
335
19
42
17.631579
0.828794
0
0
0
0
0
0.08631
0
0
0
0
0
0
1
0
false
0
0.153846
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