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
3291b0fa03bb75af83a902f66fc3f91285f8e9a3
9,147
py
Python
TM1py/Services/GitService.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
113
2019-03-12T19:42:39.000Z
2022-03-31T22:40:05.000Z
TM1py/Services/GitService.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
459
2019-01-25T09:32:18.000Z
2022-03-24T21:57:16.000Z
TM1py/Services/GitService.py
adscheevel/tm1py
8a53c7a63e3c0e2c6198c2cd0c2f57d10a7cfe43
[ "MIT" ]
107
2019-01-31T15:08:34.000Z
2022-03-16T14:58:38.000Z
# -*- coding: utf-8 -*- import json from typing import List from TM1py.Objects.Git import Git from TM1py.Objects.GitCommit import GitCommit from TM1py.Objects.GitPlan import GitPushPlan, GitPullPlan, GitPlan from TM1py.Services.ObjectService import ObjectService from TM1py.Services.RestService import RestService, Resp...
44.619512
117
0.608396
1,149
9,147
4.742385
0.181027
0.028262
0.014682
0.027895
0.49789
0.467058
0.445036
0.440264
0.430354
0.403927
0
0.007804
0.285558
9,147
204
118
44.838235
0.826014
0.282278
0
0.292453
0
0
0.101576
0.018365
0
0
0
0
0
1
0.075472
false
0.084906
0.075472
0
0.235849
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
329f38947acdd5b4c36b6e62995a1a5be5206f16
1,515
py
Python
scripts/lwtnn-build-dummy-inputs.py
aghoshpub/lwtnn
979069b372f8c3d001d08fb0c756ff98954db644
[ "MIT" ]
98
2016-11-27T04:05:56.000Z
2022-02-28T17:14:19.000Z
scripts/lwtnn-build-dummy-inputs.py
aghoshpub/lwtnn
979069b372f8c3d001d08fb0c756ff98954db644
[ "MIT" ]
90
2016-11-24T15:13:31.000Z
2021-11-29T14:09:34.000Z
scripts/lwtnn-build-dummy-inputs.py
aghoshpub/lwtnn
979069b372f8c3d001d08fb0c756ff98954db644
[ "MIT" ]
46
2016-12-15T17:21:43.000Z
2022-01-27T22:45:42.000Z
#!/usr/bin/env python3 """Generate fake serialized NNs to test the lightweight classes""" import argparse import json import h5py import numpy as np def _run(): args = _get_args() _build_keras_arch("arch.json") _build_keras_inputs_file("variable_spec.json") _build_keras_weights("weights.h5", verbose=...
27.545455
72
0.634323
219
1,515
4.105023
0.410959
0.066741
0.043382
0.044494
0.171301
0.126808
0.126808
0.095662
0.095662
0.095662
0
0.027661
0.212541
1,515
54
73
28.055556
0.725901
0.054125
0
0.046512
1
0
0.112824
0
0
0
0
0
0
1
0.139535
false
0
0.093023
0.023256
0.27907
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
32b9a1053b526032d5d6c19f20fe7c9cbc1b1859
5,299
py
Python
social_network/utils.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
3
2015-01-13T05:45:04.000Z
2020-01-10T19:05:35.000Z
social_network/utils.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
null
null
null
social_network/utils.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
6
2015-01-13T04:40:53.000Z
2021-08-13T01:07:40.000Z
# coding=utf-8 import random from django.core.cache import cache from django.core.exceptions import ObjectDoesNotExist from django.utils.translation import ugettext as _ from notifications.models import EventType from social_graph import EdgeType try: from hashlib import sha1 as sha_constructor, md5 as md5_constru...
31.35503
93
0.670881
671
5,299
4.988078
0.196721
0.072602
0.052584
0.035853
0.35375
0.291903
0.18046
0.113833
0.088139
0.047804
0
0.00534
0.222495
5,299
169
94
31.35503
0.807039
0.13663
0
0.380165
0
0
0.111406
0.073533
0
0
0
0.005917
0
1
0.082645
false
0.07438
0.090909
0
0.347107
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
32c0b9c3ba62988df85d3108c0c4b36be8f563b9
1,223
py
Python
pybb/contrib/mentions/processors.py
thoas/pybbm
0e7ab7ef60f15951660015f2b9be0ff7192f1095
[ "BSD-2-Clause" ]
1
2015-05-18T09:19:30.000Z
2015-05-18T09:19:30.000Z
pybb/contrib/mentions/processors.py
ulule/pybbm
0e7ab7ef60f15951660015f2b9be0ff7192f1095
[ "BSD-2-Clause" ]
5
2017-06-13T16:25:34.000Z
2018-07-17T20:30:56.000Z
pybb/contrib/mentions/processors.py
ulule/pybbm
0e7ab7ef60f15951660015f2b9be0ff7192f1095
[ "BSD-2-Clause" ]
1
2018-10-29T13:12:59.000Z
2018-10-29T13:12:59.000Z
import re from pybb.processors import BaseProcessor from pybb.compat import get_user_model from . import settings class MentionProcessor(BaseProcessor): username_re = r'@([\w\-]+)' format = '@%(username)s' tag = '[mention=%(user_id)s]%(username)s[/mention]' model = get_user_model() def get_user...
25.479167
98
0.562551
138
1,223
4.797101
0.297101
0.036254
0.036254
0
0
0
0
0
0
0
0
0.001227
0.333606
1,223
47
99
26.021277
0.811043
0
0
0.125
0
0
0.080948
0.035159
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
0.53125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
32c6b6ee54440932d94dc43f2f2f342cc123a082
1,848
py
Python
ObitSystem/ObitSD/scripts/scriptResidCal.py
sarrvesh/Obit
e4ce6029e9beb2a8c0316ee81ea710b66b2b7986
[ "Linux-OpenIB" ]
5
2019-08-26T06:53:08.000Z
2020-10-20T01:08:59.000Z
ObitSystem/ObitSD/scripts/scriptResidCal.py
sarrvesh/Obit
e4ce6029e9beb2a8c0316ee81ea710b66b2b7986
[ "Linux-OpenIB" ]
null
null
null
ObitSystem/ObitSD/scripts/scriptResidCal.py
sarrvesh/Obit
e4ce6029e9beb2a8c0316ee81ea710b66b2b7986
[ "Linux-OpenIB" ]
8
2017-08-29T15:12:32.000Z
2022-03-31T12:16:08.000Z
# Program to self calibrate OTF data import Obit, OTF, Image, OSystem, OErr, OTFGetSoln, InfoList, Table # Init Obit err=OErr.OErr() ObitSys=OSystem.OSystem ("Python", 1, 103, 1, ["None"], 1, ["./"], 1, 0, err) OErr.printErrMsg(err, "Error with Obit startup") # Files disk = 1 # Dirty inFullFile = "OTFDirtyFull.fits"...
31.862069
77
0.715368
239
1,848
5.531381
0.380753
0.026475
0.039334
0.048412
0.113464
0.043873
0
0
0
0
0
0.027336
0.14881
1,848
57
78
32.421053
0.813096
0.200216
0
0.052632
0
0
0.136488
0
0
0
0
0
0
0
null
null
0
0.026316
null
null
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
32c8f25c548f019704dfb22f0db7ab07f62d2dd9
504
py
Python
projeto/main/migrations/0017_alter_user_room.py
neilom18/g5-chess
8998199b3432f0b83aa27e5c2126173ecc87f311
[ "MIT" ]
null
null
null
projeto/main/migrations/0017_alter_user_room.py
neilom18/g5-chess
8998199b3432f0b83aa27e5c2126173ecc87f311
[ "MIT" ]
1
2021-10-03T22:26:45.000Z
2021-10-03T22:26:45.000Z
projeto/main/migrations/0017_alter_user_room.py
neilom18/g5-chess
8998199b3432f0b83aa27e5c2126173ecc87f311
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-09-24 15:29 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('main', '0016_alter_user_usercode'), ] operations = [ migrations.AlterField( model_name='user', ...
25.2
141
0.640873
61
504
5.196721
0.655738
0.07571
0.088328
0.138801
0
0
0
0
0
0
0
0.049096
0.232143
504
19
142
26.526316
0.770026
0.089286
0
0
1
0
0.107221
0.052516
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08691612fc229c4b74017cbf49ecddb0965a12ea
462
py
Python
helga_umb/signals/util.py
ktdreyer/helga-umb
f0c6858745d90205e74eec0eb5ebaafa655b2336
[ "MIT" ]
null
null
null
helga_umb/signals/util.py
ktdreyer/helga-umb
f0c6858745d90205e74eec0eb5ebaafa655b2336
[ "MIT" ]
2
2018-04-27T15:37:10.000Z
2018-08-22T21:00:40.000Z
helga_umb/signals/util.py
ktdreyer/helga-umb
f0c6858745d90205e74eec0eb5ebaafa655b2336
[ "MIT" ]
null
null
null
def product_from_branch(branch): """ Return a product name from this branch name. :param branch: eg. "ceph-3.0-rhel-7" :returns: eg. "ceph" """ if branch.startswith('private-'): # Let's just return the thing after "private-" and hope there's a # product string match somewhere in...
30.8
73
0.621212
64
462
4.453125
0.671875
0.05614
0
0
0
0
0
0
0
0
0
0.017442
0.255411
462
14
74
33
0.811047
0.558442
0
0
0
0
0.050562
0
0
0
0
0
0
1
0.2
false
0
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
08698150dd4c0d31ae984574dc2eb2d108201474
752
py
Python
work/2021/ne201076/src/cpu_notify.py
tora01/SkillLab
61ebfaf45c503b9e6f4a3d05a7edd4de2fcad93e
[ "CC0-1.0" ]
2
2020-09-09T02:40:23.000Z
2021-09-12T18:08:15.000Z
work/2021/ne201076/src/cpu_notify.py
tora01/SkillLab
61ebfaf45c503b9e6f4a3d05a7edd4de2fcad93e
[ "CC0-1.0" ]
1
2021-09-14T09:36:38.000Z
2021-09-14T09:36:38.000Z
work/2021/ne201076/src/cpu_notify.py
tora01/SkillLab
61ebfaf45c503b9e6f4a3d05a7edd4de2fcad93e
[ "CC0-1.0" ]
19
2021-09-07T06:11:29.000Z
2021-09-07T07:45:08.000Z
import requests url = 'https://notify-api.line.me/api/notify'#LINE NotifyのAPIのURL token = '2RNdAKwlaj69HK0KlEdMX1y575gDWNKrPpggFcLnh82' #自分のアクセストークン ms = "新たなソフトを開くと負担が過剰にかかってしまいます。"#送信する通知内容 def line(message,url,token): post_data = {'message': message} headers = {'Authorization': 'Bearer ' + token} #送信する...
31.333333
73
0.670213
78
752
6.384615
0.615385
0.032129
0
0
0
0
0
0
0
0
0
0.025338
0.212766
752
23
74
32.695652
0.815878
0.136968
0
0
0
0
0.23869
0.107644
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0869cc3c4f8fe0eb7c864da5eb1b5caf6b676944
550
py
Python
testScripts/getAllFiles.py
ryanemerson/JGroups-HiTab
8fd8c6c45219e4c04618630be7e2449ebb0578dc
[ "Apache-2.0" ]
null
null
null
testScripts/getAllFiles.py
ryanemerson/JGroups-HiTab
8fd8c6c45219e4c04618630be7e2449ebb0578dc
[ "Apache-2.0" ]
null
null
null
testScripts/getAllFiles.py
ryanemerson/JGroups-HiTab
8fd8c6c45219e4c04618630be7e2449ebb0578dc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os from collections import defaultdict hosts = {'mill001', 'mill004', 'mill005'} user = 'a7109534' file_location = '/work/a7109534/' #file_location = '/home/ryan/workspace/JGroups' #file_location = '/home/pg/p11/a7109534/' file_wildcard = '*' extension = ".csv" get_file = file_location + f...
26.190476
77
0.681818
68
550
5.367647
0.602941
0.131507
0.109589
0
0
0
0
0
0
0
0
0.073593
0.16
550
20
78
27.5
0.71645
0.192727
0
0
0
0
0.138322
0
0
0
0
0
0
0
null
null
0
0.133333
null
null
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
1
0
0
0
0
0
0
0
0
1
086fc0967062337eeb0ecb19108dc1ab0e1d65e3
957
py
Python
geeklist_examples.py
juliengrenier/python-geeklist
52528b099e94e539c3451bfd2e741e563f0924e9
[ "MIT" ]
1
2015-02-28T10:22:02.000Z
2015-02-28T10:22:02.000Z
geeklist_examples.py
juliengrenier/python-geeklist
52528b099e94e539c3451bfd2e741e563f0924e9
[ "MIT" ]
null
null
null
geeklist_examples.py
juliengrenier/python-geeklist
52528b099e94e539c3451bfd2e741e563f0924e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from geeklist.api import BaseGeeklistApi, GeekListOauthApi, GeekListUserApi from access import consumer_info #please access.py which contains consumer_info = { 'key': YOUR_KEY, 'secret': secret} BaseGeeklistApi.BASE_URL ='http://sandbox-api.geekli.st/v1' oauth_api = GeekListOauthApi(consumer_i...
41.608696
118
0.797283
130
957
5.6
0.407692
0.090659
0.061813
0.086538
0.087912
0.087912
0
0
0
0
0
0.002288
0.086729
957
22
119
43.5
0.830664
0.123302
0
0
0
0
0.252998
0
0
0
0
0
0
0
null
null
0
0.1875
null
null
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08757365d19fb16259355c3f4a0bc7a45ccc8fde
1,808
py
Python
networkunit/models/backends/network_model.py
russelljjarvis/NetworkUnit
32179371d3a0ba354e6637cf4f97ba70522d4054
[ "BSD-3-Clause" ]
null
null
null
networkunit/models/backends/network_model.py
russelljjarvis/NetworkUnit
32179371d3a0ba354e6637cf4f97ba70522d4054
[ "BSD-3-Clause" ]
1
2019-11-15T22:56:20.000Z
2019-11-15T22:56:20.000Z
networkunit/models/backends/network_model.py
russelljjarvis/NetworkUnit
32179371d3a0ba354e6637cf4f97ba70522d4054
[ "BSD-3-Clause" ]
null
null
null
"""NeuronUnit model class for reduced neuron models""" import numpy as np from neo.core import AnalogSignal import quantities as pq import neuronunit.capabilities as cap import neuronunit.models as mod import neuronunit.capabilities.spike_functions as sf from neuronunit.models import backends from generic_network imp...
35.45098
131
0.68031
238
1,808
5.016807
0.394958
0.033501
0.046901
0.023451
0.063652
0.063652
0.063652
0.063652
0.063652
0.063652
0
0.037518
0.233407
1,808
50
132
36.16
0.823954
0.107854
0
0
0
0
0
0
0
0
0
0.02
0
1
0.111111
false
0.027778
0.25
0.055556
0.472222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
087e3e81767ebb79be98cf41ccb71262d3691e12
2,454
py
Python
jocular/calcs.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
6
2021-03-21T16:46:44.000Z
2021-11-27T14:07:06.000Z
jocular/calcs.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
jocular/calcs.py
MartinCooke/jocular
635816d4ef6aa6ea75187137e25386dad2d551e9
[ "MIT" ]
null
null
null
''' Various astro calcs mainly based on Meuss. ''' import numpy as np import math import time from datetime import datetime def julian_date(when): # from Meuss p 61; 'when' is a datetime object y = when.year m = when.month d = when.day + when.hour/24 + when.minute/(24*60) + when.second/(24*3600) if m < 3: y...
26.106383
104
0.600652
440
2,454
3.304545
0.370455
0.030949
0.028886
0.011004
0.111417
0.053645
0.030261
0
0
0
0
0.200318
0.231051
2,454
93
105
26.387097
0.570217
0.172372
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0880a4f7dffdc5894d94be459ed45b4d22287a7c
3,505
py
Python
tests/sql_parser/ast/test_insert_statement_is_parsed.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
69
2019-05-16T06:40:18.000Z
2022-03-24T06:23:49.000Z
tests/sql_parser/ast/test_insert_statement_is_parsed.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
36
2019-05-15T19:55:24.000Z
2021-07-22T07:07:14.000Z
tests/sql_parser/ast/test_insert_statement_is_parsed.py
vladbalmos/mitzasql
06c2a96eb4494095b2b72bc1454199a4940b0700
[ "MIT" ]
8
2019-05-16T06:56:28.000Z
2022-02-11T02:24:12.000Z
import pytest from mitzasql.sql_parser.parser import parse from mitzasql.utils import dfs def test_simple_insert_is_parsed(): raw_sql = ''' INSERT DELAYED INTO table (col1, col2, col3) VALUES (100, 200, 300) ''' ast = parse(raw_sql) assert len(ast) > 0 ast = ast[0] assert ast.type == 'i...
26.353383
77
0.650499
493
3,505
4.525355
0.115619
0.104886
0.069027
0.087405
0.679964
0.558046
0.558046
0.51905
0.51905
0.51905
0
0.030303
0.22796
3,505
132
78
26.55303
0.794161
0
0
0.56
0
0
0.124964
0
0
0
0
0
0.56
1
0.04
false
0
0.03
0
0.07
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0881a63860af8a2c6c4f14401c7170b38015ba3a
775
py
Python
ArraysAndSorting/MakeItAnagram.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
8
2015-04-16T03:43:49.000Z
2018-08-14T22:47:03.000Z
ArraysAndSorting/MakeItAnagram.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
null
null
null
ArraysAndSorting/MakeItAnagram.py
tejasnikumbh/Algorithms
2a2983a522be295ce95bd970a0ee8a617866992f
[ "BSD-2-Clause" ]
7
2016-03-22T20:29:27.000Z
2018-09-29T18:55:47.000Z
# Importing standard libraires import sys ''' Main Function for the program. Logic is as follows Make two frequency tables for two strings Take overlap of both and add up the non overlapping regions (absolute values) ''' if __name__ == "__main__": # Parsing in the input s1 = list(sys.stdin.readline...
31
81
0.636129
112
775
4.330357
0.553571
0.018557
0.037113
0.082474
0.169072
0.061856
0.061856
0.061856
0
0
0
0.042955
0.249032
775
24
82
32.291667
0.790378
0.181935
0
0
0
0
0.022779
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0883af2fe80ecab9fbfc1b7be524e037979d920a
518
py
Python
testing/examples/talib-macd.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
5
2020-04-08T14:14:05.000Z
2021-06-29T03:42:01.000Z
testing/examples/talib-macd.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
null
null
null
testing/examples/talib-macd.py
pchaos/quanttesting
98331670547e8a45ba93b49f3e9c660495645114
[ "MIT" ]
7
2020-04-15T15:07:39.000Z
2022-03-23T05:44:02.000Z
''' Ta-lib计算MACD ''' import pandas as pd import numpy as np import talib as ta import tushare as ts from matplotlib import rc import matplotlib.pyplot as plt import seaborn as sns rc('mathtext', default='regular') sns.set_style('white') # %matplotlib plt.rcParams["figure.figsize"] = (20, 10) dw = ts.get_k_data("60060...
24.666667
107
0.722008
79
518
4.696203
0.594937
0.037736
0
0
0
0
0
0
0
0
0
0.032538
0.110039
518
21
108
24.666667
0.772234
0.048263
0
0
0
0
0.183128
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0887199a887a1fbf59285a7c42522a561d36fdf6
160
py
Python
jsons.py
tebeka/py2go-cheatsheet
14c83850876ef80c36af326ab4fc6f56344781c7
[ "BSD-3-Clause" ]
13
2017-09-09T08:32:34.000Z
2022-02-28T04:32:43.000Z
jsons.py
tebeka/py2go-cheatsheet
14c83850876ef80c36af326ab4fc6f56344781c7
[ "BSD-3-Clause" ]
3
2017-11-25T18:48:11.000Z
2017-12-30T13:00:04.000Z
jsons.py
tebeka/py2go-cheatsheet
14c83850876ef80c36af326ab4fc6f56344781c7
[ "BSD-3-Clause" ]
2
2019-11-03T19:58:17.000Z
2020-04-28T01:14:17.000Z
import json from sys import stdout # START data = '''{ "name": "bugs", "age": 76 }''' obj = json.loads(data) json.dump(obj, stdout) # END print(obj)
10.666667
22
0.59375
23
160
4.130435
0.695652
0
0
0
0
0
0
0
0
0
0
0.016
0.21875
160
14
23
11.428571
0.744
0.05625
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.111111
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
088834b65e8fc3335e7c944aeb1e307017ece6c9
1,258
py
Python
opetuskoodi/2021_10_18/2_kerta_kertaus.py
mikkokotola/pythonkoodaus
5415b3d87dfcb65b72edb916967824304d155d9a
[ "CC-BY-4.0", "MIT" ]
null
null
null
opetuskoodi/2021_10_18/2_kerta_kertaus.py
mikkokotola/pythonkoodaus
5415b3d87dfcb65b72edb916967824304d155d9a
[ "CC-BY-4.0", "MIT" ]
null
null
null
opetuskoodi/2021_10_18/2_kerta_kertaus.py
mikkokotola/pythonkoodaus
5415b3d87dfcb65b72edb916967824304d155d9a
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Kertaus, kerta 3 # Muuttujat ja syötteen lukeminen käyttäjältä nimi = input("Anna nimesi: ") kengännumero = input("Mikä on kengännumerosi: ") print("Moi vaan, " + nimi + "! Kengännumerosi on " + kengännumero + ".") # F-merkkijono print(f"Moi vaan, {nimi}! Kengännumerosi on {kengännumero}.") # Numerot # Ikälaskuri...
21.689655
99
0.683625
174
1,258
4.942529
0.373563
0.04186
0.048837
0.083721
0.305814
0.215116
0.124419
0.054651
0.054651
0.054651
0
0.041825
0.163752
1,258
57
100
22.070175
0.775665
0.228935
0
0.090909
0
0
0.356621
0
0
0
0
0
0
1
0
false
0
0
0
0
0.454545
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0893025cc2e6d02ad0cc2a38ee4b17db36c8a68d
9,064
py
Python
sam_actions/scripts/gps_fix_server.py
Jollerprutt/sam_common
dd8b43b3c69eee76fe0c35a98db9dfb67f2b79f2
[ "BSD-3-Clause" ]
1
2020-06-09T18:23:53.000Z
2020-06-09T18:23:53.000Z
sam_actions/scripts/gps_fix_server.py
Jollerprutt/sam_common
dd8b43b3c69eee76fe0c35a98db9dfb67f2b79f2
[ "BSD-3-Clause" ]
3
2020-10-06T09:46:03.000Z
2021-03-10T13:40:44.000Z
sam_actions/scripts/gps_fix_server.py
Jollerprutt/sam_common
dd8b43b3c69eee76fe0c35a98db9dfb67f2b79f2
[ "BSD-3-Clause" ]
5
2020-01-20T18:33:55.000Z
2020-12-29T12:34:22.000Z
#!/usr/bin/python import rospy from rospy import ROSException from std_msgs.msg import Header, Bool from std_srvs.srv import SetBool from geometry_msgs.msg import PoseWithCovarianceStamped, Point, Quaternion from sensor_msgs.msg import NavSatFix, NavSatStatus from sam_msgs.msg import GetGPSFixAction, GetGPSFixFeedback...
42.553991
143
0.645521
1,180
9,064
4.720339
0.205085
0.058169
0.048474
0.045242
0.371454
0.305206
0.228905
0.210233
0.20395
0.20395
0
0.008566
0.252979
9,064
212
144
42.754717
0.81406
0.076567
0
0.216216
0
0
0.145749
0.011497
0
0
0
0
0
0
null
null
0
0.101351
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08967bfbf25d6987de9933fc65d4f932dbcd6e60
1,307
py
Python
src/model/RoleProxy.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
4
2017-08-26T10:18:10.000Z
2020-07-28T19:50:54.000Z
src/model/RoleProxy.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
null
null
null
src/model/RoleProxy.py
JulienGrv/puremvc-python-demo-PySide-employeeadmin
b076493ac34254e665b485259b0a7122fa9cfde4
[ "BSD-3-Clause" ]
3
2020-09-22T12:17:14.000Z
2021-07-16T12:28:18.000Z
# -*- coding: utf-8 -*- from puremvc.patterns.proxy import Proxy from .. import ApplicationFacade class RoleProxy(Proxy): NAME = 'RoleProxy' def __init__(self, proxyName=None, data=[]): super(RoleProxy, self).__init__(proxyName, data) self.data = data def addItem(self, role): ...
27.808511
72
0.61974
138
1,307
5.797101
0.311594
0.05
0.045
0.105
0.185
0.185
0.185
0.185
0.185
0.185
0
0.001071
0.285386
1,307
46
73
28.413043
0.85546
0.016067
0
0.121212
0
0
0.007009
0
0
0
0
0
0
1
0.212121
false
0
0.060606
0.030303
0.393939
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0896a00f400830a8eb41593559f65d607a6a09c6
1,358
py
Python
flappy-brird/utils/radio.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
flappy-brird/utils/radio.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
flappy-brird/utils/radio.py
victorathanasio/Personal-projects
94c870179cec32aa733a612a6faeb047df16d977
[ "MIT" ]
null
null
null
import pygame import os class Radio: def __init__(self, settings): """ Method that initiates the object Radio for game sounds Input = (Dict) """ pygame.mixer.init() self.file_die_sound = pygame.mixer.Sound('Assets/Sounds/die.mp3') self.file_hit_sound = ...
25.148148
77
0.611193
176
1,358
4.494318
0.204545
0.131479
0.088496
0.11378
0.510746
0.510746
0.212389
0.108723
0.108723
0
0
0.006141
0.28056
1,358
53
78
25.622642
0.80348
0.150957
0
0
0
0
0.09668
0.084961
0
0
0
0
0
1
0.217391
false
0
0.086957
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
089c7e0aea70b01bb6426d16f39e585a80906239
307
py
Python
src/papierstat/datasets/data_helper.py
sdpython/papierstat
f69de884c59ada30b58224dca39f2a44d92122c1
[ "MIT" ]
7
2019-03-21T09:52:31.000Z
2021-01-17T16:56:27.000Z
src/papierstat/datasets/data_helper.py
sdpython/papierstat
f69de884c59ada30b58224dca39f2a44d92122c1
[ "MIT" ]
33
2018-02-08T23:56:57.000Z
2021-02-10T23:55:43.000Z
src/papierstat/datasets/data_helper.py
sdpython/papierstat
f69de884c59ada30b58224dca39f2a44d92122c1
[ "MIT" ]
1
2021-02-11T09:16:33.000Z
2021-02-11T09:16:33.000Z
# -*- coding: utf-8 -*- """ @file @brief Fonctions retournant des jeux de données. """ import os def get_data_folder(): """ Retourne le répertoire de données inclus dans ce module. """ this = os.path.dirname(__file__) data = os.path.join(this, "data") return os.path.abspath(data)
19.1875
60
0.641694
42
307
4.547619
0.714286
0.094241
0
0
0
0
0
0
0
0
0
0.004132
0.211726
307
15
61
20.466667
0.785124
0.436482
0
0
0
0
0.026667
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
089f58dcbc654f5aa5c0245f1cc3a918e10ba168
464
py
Python
ollivanders/offer/models.py
paradox-particle/diagon-alley
184a58da34046319c96b6d5535646497d80c4970
[ "MIT" ]
null
null
null
ollivanders/offer/models.py
paradox-particle/diagon-alley
184a58da34046319c96b6d5535646497d80c4970
[ "MIT" ]
null
null
null
ollivanders/offer/models.py
paradox-particle/diagon-alley
184a58da34046319c96b6d5535646497d80c4970
[ "MIT" ]
null
null
null
from django.db import models class Coupon(models.Model): coupon = models.CharField(max_length=20) discount = models.IntegerField() valid_from = models.DateTimeField() valid_to = models.DateTimeField() active = models.BooleanField(default=True) def __str__(self): return self.coupon ...
24.421053
46
0.661638
51
464
5.803922
0.627451
0.081081
0.114865
0
0
0
0
0
0
0
0
0.005666
0.239224
464
18
47
25.777778
0.832861
0
0
0
0
0
0.053879
0
0
0
0
0
0
1
0.071429
false
0
0.071429
0.071429
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
089fb8ac7ea2e682cd5404a50c0fbd9b93f873d7
6,470
py
Python
qa/advancedloggingplugin/advancedlogging.py
robertstarmer/aurora
ae98329c8dc466dea2c8040203624f0bfc1c7cfe
[ "Apache-2.0" ]
23
2015-01-22T22:23:35.000Z
2021-10-21T23:08:29.000Z
qa/advancedloggingplugin/advancedlogging.py
sysbot/aurora
9e319d4eb8c760cf84cb80ed2959cd52976af11c
[ "Apache-2.0" ]
2
2015-10-13T00:47:45.000Z
2019-05-06T14:52:33.000Z
qa/advancedloggingplugin/advancedlogging.py
sysbot/aurora
9e319d4eb8c760cf84cb80ed2959cd52976af11c
[ "Apache-2.0" ]
27
2015-03-18T19:39:30.000Z
2022-03-11T00:58:09.000Z
import os from os.path import join import traceback from bs4 import BeautifulSoup from nose.plugins import Plugin class AdvancedLogging(Plugin): name = "advanced-logging" enabled = False capture_screen = True score = 1 _log_path = join(os.getcwd(), 'test_output') _script_path = None def...
30.956938
75
0.52813
693
6,470
4.808081
0.243867
0.062425
0.072629
0.092437
0.217887
0.183373
0.168367
0.144358
0.12515
0.12515
0
0.005942
0.349768
6,470
208
76
31.105769
0.786071
0
0
0.267045
0
0
0.197527
0.007264
0
0
0
0
0
0
null
null
0.028409
0.028409
null
null
0.005682
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08a0d32c04f17aef2a43162c106a80b10c85518c
999
py
Python
setup.py
sunghyunzz/aiohttp-toolbox
1948a1962b3bd4071f234719b6683b55cd03d6f0
[ "MIT" ]
6
2016-11-21T08:38:34.000Z
2019-02-20T12:56:16.000Z
setup.py
sunghyunzz/aiohttp-toolbox
1948a1962b3bd4071f234719b6683b55cd03d6f0
[ "MIT" ]
1
2017-07-20T02:20:03.000Z
2017-07-20T02:20:03.000Z
setup.py
sunghyunzz/aiohttp-toolbox
1948a1962b3bd4071f234719b6683b55cd03d6f0
[ "MIT" ]
2
2017-07-20T02:20:44.000Z
2019-02-21T13:37:37.000Z
""" aiohttp-ultrajson ----------------- Integrates UltraJSON with your aiohttp application. """ from setuptools import setup setup( name='aiohttp-ultrajson', version='0.1.0', url='https://github.com/sunghyunzz/aiohttp-ultrajson', license='MIT', author='sunghyunzz', author_email='me@sunghyunzz....
27
70
0.608609
98
999
6.102041
0.622449
0.107023
0.167224
0.130435
0.150502
0.150502
0
0
0
0
0
0.017016
0.235235
999
36
71
27.75
0.765707
0.088088
0
0
0
0
0.528239
0
0
0
0
0
0
1
0
true
0
0.034483
0
0.034483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
08a4afc96f7c56b3ec32526d5ad975c5272d1d27
1,225
py
Python
setup.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
setup.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
setup.py
danizen/apache-replay
5e5cc8d0df693f2367d188d71099041c6a65317f
[ "MIT" ]
null
null
null
from setuptools import setup def get_readme(): with open('README.md') as f: return f.read() setup( name = 'apache-replay', version = '0.0.3', url = 'https://github.com/danizen/apache-replay.git', author = 'Daniel Davis', author_email = 'dan@danizen.net', description = 'Facilitate...
33.108108
96
0.625306
128
1,225
5.882813
0.742188
0.079681
0
0
0
0
0
0
0
0
0
0.006403
0.235102
1,225
36
97
34.027778
0.797225
0
0
0
0
0
0.526531
0.031837
0
0
0
0
0
1
0.03125
true
0
0.03125
0
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
08a6713846bc912e38363c64df0ddb98d1d40470
464
py
Python
setup.py
duytintruong/do_more
3a306da78ca302d2963cc7bae5f17e668168b595
[ "MIT" ]
null
null
null
setup.py
duytintruong/do_more
3a306da78ca302d2963cc7bae5f17e668168b595
[ "MIT" ]
null
null
null
setup.py
duytintruong/do_more
3a306da78ca302d2963cc7bae5f17e668168b595
[ "MIT" ]
null
null
null
from distutils.core import setup setup( name='do_more', packages=['do_more'], version='0.1.0', description='A library enhancing pydoit features.', author='Duy Tin Truong', author_email='', url='https://github.com/duytintruong/do_more', download_url='https://github.com/duytintruong/do_mor...
27.294118
80
0.637931
60
464
4.816667
0.666667
0.083045
0.020761
0.117647
0.242215
0.242215
0.242215
0
0
0
0
0.026247
0.178879
464
16
81
29
0.732283
0
0
0
0
0.0625
0.422414
0
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
08a9c217d15d92822c4d608156162c3fb67806ee
358
py
Python
eo_sensors/migrations/0005_auto_20210425_1946.py
dymaxionlabs/satlomas-back
f4568f6535755fd4a2432ecc661a264872206c6c
[ "Apache-2.0" ]
1
2021-02-18T20:11:25.000Z
2021-02-18T20:11:25.000Z
eo_sensors/migrations/0005_auto_20210425_1946.py
dymaxionlabs/satlomas-back
f4568f6535755fd4a2432ecc661a264872206c6c
[ "Apache-2.0" ]
7
2020-06-09T14:54:43.000Z
2021-09-22T21:00:13.000Z
eo_sensors/migrations/0005_auto_20210425_1946.py
dymaxionlabs/satlomas-back
f4568f6535755fd4a2432ecc661a264872206c6c
[ "Apache-2.0" ]
1
2020-05-08T20:42:49.000Z
2020-05-08T20:42:49.000Z
# Generated by Django 3.1.6 on 2021-04-25 19:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('eo_sensors', '0004_coveragemask'), ] operations = [ migrations.AlterUniqueTogether( name='raster', unique_together={('date',...
19.888889
57
0.592179
36
358
5.805556
0.888889
0
0
0
0
0
0
0
0
0
0
0.073359
0.276536
358
17
58
21.058824
0.733591
0.125698
0
0
1
0
0.151125
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08ab2b8e0ae8691b40dba63be074cd70a395c8c1
503
py
Python
algorithms/course_1/assignments/frac_knapsack/code.py
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
algorithms/course_1/assignments/frac_knapsack/code.py
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
algorithms/course_1/assignments/frac_knapsack/code.py
ideahitme/coursera
af44c8d817481d4f9025205284f109d95a9bb45d
[ "MIT" ]
null
null
null
import math line = raw_input().strip().split() N = int(line[0]) cap = float(line[1]) items = [] for _ in xrange(N): items.append(map(float, raw_input().split())) def custcmp(x, y): _x = x[0]/x[1] _y = y[0]/y[1] if _x < _y: return 1 if _x == _y: return 0 if _x > _y: return -1 items = sorted(items, cm...
14.371429
46
0.600398
95
503
3.031579
0.378947
0.027778
0.041667
0.104167
0.114583
0
0
0
0
0
0
0.042929
0.212724
503
34
47
14.794118
0.684343
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08ac25798ceabd59a9de5ca3ae55d5d23549ad85
6,640
py
Python
adios-1.9.0/utils/skel/lib/skel_params.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
adios-1.9.0/utils/skel/lib/skel_params.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
adios-1.9.0/utils/skel/lib/skel_params.py
swatisgupta/Adaptive-compression
b97a1d3d3e0e968f59c7023c7367a7efa9f672d0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import sys import os import argparse import adios import skel_settings import skel_bpls # Command line parsing is chained together. This is stage two. The first stage happens in ../bin/skel def pparse_command_line (parent_parser): parser = argparse.ArgumentParser ( parents=[...
37.514124
181
0.613253
869
6,640
4.533947
0.27618
0.052538
0.060406
0.053299
0.338071
0.254822
0.220812
0.21066
0.188832
0.161421
0
0.006015
0.273946
6,640
176
182
37.727273
0.811242
0.12003
0
0.175926
0
0.018519
0.26836
0.009437
0
0
0
0.005682
0
0
null
null
0
0.055556
null
null
0.046296
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08ac337e36cbf17a299188a90d4c593630ec7136
786
py
Python
centraldogma/util.py
line/centraldogma-python
2248e8d7d660c0535aa747a70742ddd2bb0a5268
[ "Apache-2.0" ]
8
2021-12-02T00:51:35.000Z
2022-01-07T09:49:08.000Z
centraldogma/util.py
line/centraldogma-python
2248e8d7d660c0535aa747a70742ddd2bb0a5268
[ "Apache-2.0" ]
8
2021-11-22T03:37:17.000Z
2022-02-14T10:02:31.000Z
centraldogma/util.py
line/centraldogma-python
2248e8d7d660c0535aa747a70742ddd2bb0a5268
[ "Apache-2.0" ]
4
2021-11-22T03:48:39.000Z
2021-12-31T05:42:43.000Z
# Copyright 2021 LINE Corporation # # LINE Corporation licenses this file to you under the Apache License, # version 2.0 (the "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
39.3
78
0.720102
121
786
4.603306
0.628099
0.10772
0.046679
0.057451
0
0
0
0
0
0
0
0.012461
0.183206
786
19
79
41.368421
0.85514
0.75827
0
0
0
0
0.291429
0.251429
0
0
0
0
0
1
0.25
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
08ad2e5befe9beab57f5cfbb4752e8b8f6f82193
3,834
py
Python
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Build/site_scons/msvs_preprocessed.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""Provides a Preprocessed action for the Microsoft Visual Studio compilers. """ import os import SCons.Action import SCons.Util import preprocessed_builder # XXX These are internal to SCons and may change in the future...but it's unlikely from SCons.Tool.msvc import CSuffixes, CXXSuffixes, msvc_batch_key # TODO Con...
41.673913
139
0.684142
498
3,834
5.144578
0.401606
0.02459
0.035129
0.0605
0.177986
0.163154
0.130367
0.094457
0
0
0
0.005005
0.21831
3,834
91
140
42.131868
0.84985
0.361242
0
0.136364
0
0.045455
0.206681
0.049687
0
0
0
0.021978
0
1
0.113636
false
0
0.113636
0
0.340909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
08b0009d58869628b97762ea4dfa9d97bd3f4777
429
py
Python
envdsys/envdaq/migrations/0006_controllerdef_component_map.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
1
2021-11-06T19:22:53.000Z
2021-11-06T19:22:53.000Z
envdsys/envdaq/migrations/0006_controllerdef_component_map.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
25
2019-06-18T20:40:36.000Z
2021-07-23T20:56:48.000Z
envdsys/envdaq/migrations/0006_controllerdef_component_map.py
NOAA-PMEL/envDataSystem
4db4a3569d2329658799a3eef06ce36dd5c0597d
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-26 21:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('envdaq', '0005_controller_alias_name'), ] operations = [ migrations.AddField( model_name='controllerdef', name='comp...
22.578947
79
0.615385
45
429
5.733333
0.777778
0.100775
0.124031
0
0
0
0
0
0
0
0
0.060127
0.263403
429
18
80
23.833333
0.756329
0.104895
0
0
1
0
0.191099
0.068063
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08b53292c5c752e44fcf8b466dc5d84fa3ed0ec7
231
py
Python
server.py
LuisAlbizo/luisalbizo.github.io
823cac2c184686eb5056f9e1d3d0790f9a2233e1
[ "MIT" ]
null
null
null
server.py
LuisAlbizo/luisalbizo.github.io
823cac2c184686eb5056f9e1d3d0790f9a2233e1
[ "MIT" ]
null
null
null
server.py
LuisAlbizo/luisalbizo.github.io
823cac2c184686eb5056f9e1d3d0790f9a2233e1
[ "MIT" ]
null
null
null
import http.server import os import socketserver Handler = http.server.SimpleHTTPRequestHandler httpd = socketserver.TCPServer(("127.0.0.1", 8080), Handler) print("server:\thttp://127.0.0.1:8080\n\nlog:") httpd.serve_forever()
19.25
60
0.757576
33
231
5.272727
0.575758
0.114943
0.057471
0.068966
0.114943
0
0
0
0
0
0
0.094787
0.08658
231
11
61
21
0.729858
0
0
0
0
0
0.203463
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
08bc79ee80be4534b8a825bbd1af9247d2662a71
2,633
py
Python
diagnosis/system_diagnosis/inference.py
opengauss-mirror/openGauss-AI
449ce3cac81ced74dd56edf76709553411b0814a
[ "MulanPSL-1.0" ]
1
2021-12-22T08:31:07.000Z
2021-12-22T08:31:07.000Z
diagnosis/system_diagnosis/inference.py
opengauss-mirror/openGauss-AI
449ce3cac81ced74dd56edf76709553411b0814a
[ "MulanPSL-1.0" ]
null
null
null
diagnosis/system_diagnosis/inference.py
opengauss-mirror/openGauss-AI
449ce3cac81ced74dd56edf76709553411b0814a
[ "MulanPSL-1.0" ]
3
2021-12-16T13:55:57.000Z
2022-02-24T09:53:49.000Z
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
28.010638
87
0.689708
410
2,633
4.163415
0.419512
0.051552
0.023433
0.02109
0.065612
0.033978
0.033978
0.033978
0.033978
0
0
0.013514
0.18496
2,633
93
88
28.311828
0.78192
0.097607
0
0
0
0
0.058475
0.03178
0
0
0
0
0
0
null
null
0
0.084746
null
null
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08bd8918199d2e5006f69cc8ccd6b3fde0ba16d8
1,850
py
Python
python/test_golden_master.py
AEGISoft/GildedRose-Refactoring-Kata
a81452de5b6831fa6c4f42b15f827ecf6ef29807
[ "MIT" ]
null
null
null
python/test_golden_master.py
AEGISoft/GildedRose-Refactoring-Kata
a81452de5b6831fa6c4f42b15f827ecf6ef29807
[ "MIT" ]
null
null
null
python/test_golden_master.py
AEGISoft/GildedRose-Refactoring-Kata
a81452de5b6831fa6c4f42b15f827ecf6ef29807
[ "MIT" ]
null
null
null
import unittest from gilded_rose import Item, GildedRose class GoldenMasterTest(unittest.TestCase): def test_golden_master(self): output_file = None try: output_file = open("output.txt", 'r') golden_master_lines = [output_file.readlines()] finally: outp...
31.355932
87
0.617838
247
1,850
4.441296
0.368421
0.065634
0.04649
0.05196
0.244303
0.20237
0.20237
0.20237
0.136737
0.136737
0
0.027937
0.245405
1,850
58
88
31.896552
0.75788
0.003243
0
0
0
0
0.176982
0
0
0
0
0
0.022222
1
0.066667
false
0.066667
0.066667
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
08cc589cc9423942aa94cc3bb343109a1f7cba67
18,161
py
Python
tests/strategies/test_horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
1
2022-02-28T17:34:11.000Z
2022-02-28T17:34:11.000Z
tests/strategies/test_horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
null
null
null
tests/strategies/test_horizontal.py
rohith-bs/dgraphpandas
29e91e2e7bb1d5d991ab94709a2d7e27f7dd7316
[ "MIT" ]
1
2021-04-10T19:57:05.000Z
2021-04-10T19:57:05.000Z
import unittest from unittest.mock import patch, Mock import pandas as pd from pandas.testing import assert_frame_equal from parameterized import parameterized from dgraphpandas.strategies.horizontal import horizontal_transform class HorizontalTests(unittest.TestCase): @parameterized.expand([ (None, {'...
34.395833
125
0.472
1,763
18,161
4.657969
0.111174
0.05358
0.049318
0.075621
0.738066
0.687652
0.66963
0.649294
0.644423
0.612884
0
0.062297
0.38836
18,161
527
126
34.461101
0.67699
0.058587
0
0.62877
0
0
0.190721
0.032026
0
0
0
0
0.074246
1
0.025522
false
0.016241
0.013921
0
0.041763
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08cedf482cda63c943ec43e8d04a65c278427e19
378
py
Python
clienteTCP.py
planetacomputer/pythonsecurity
5b808512afae5bc221715f37f91a0294f4800f19
[ "MIT" ]
null
null
null
clienteTCP.py
planetacomputer/pythonsecurity
5b808512afae5bc221715f37f91a0294f4800f19
[ "MIT" ]
null
null
null
clienteTCP.py
planetacomputer/pythonsecurity
5b808512afae5bc221715f37f91a0294f4800f19
[ "MIT" ]
null
null
null
#!/usr/bin/python # This is client.py file import socket # Import socket module s = socket.socket() # Create a socket object #host = socket.gethostname() # Get local machine name host = socket.gethostbyname("localhost") print host port = 53 # Reserve a port for your serv...
29.076923
59
0.637566
51
378
4.72549
0.666667
0.099585
0
0
0
0
0
0
0
0
0
0.021505
0.261905
378
13
60
29.076923
0.842294
0.470899
0
0
0
0
0.046392
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08d269d1ebc51a6ac75c04bc8fcc26f6ea8bd98e
1,002
py
Python
cron/weather.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
1
2017-08-25T18:55:11.000Z
2017-08-25T18:55:11.000Z
cron/weather.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
null
null
null
cron/weather.py
joedanz/flask-weather
fe35aa359da6f5d7f942d97837403e153b5c5ede
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json, urllib2, datetime from sqlite3 import dbapi2 as sqlite3 # zip codes to log zipcodes = ['07740','11210','33139','90210'] # configuration DATABASE = '../db/weather.db' SECRET_KEY = 'hackerati' DEBUG = True # open database db = sqlite3.connect(DATABASE) for zipcode in zipcodes: # pu...
26.368421
102
0.673653
131
1,002
5.061069
0.519084
0.045249
0.042232
0
0
0
0
0
0
0
0
0.044957
0.178643
1,002
37
103
27.081081
0.760632
0.147705
0
0
0
0
0.225768
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08d5febbe68f3f78281ba4430f7b17df3067f244
3,526
py
Python
tcex/api/tc/v3/_gen/_gen_args_abc.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/_gen/_gen_args_abc.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
tcex/api/tc/v3/_gen/_gen_args_abc.py
GShepherdTC/tcex
70b1199b8bb9e63f53e2ba792489267108c909cd
[ "Apache-2.0" ]
null
null
null
"""Generate Docs for ThreatConnect API""" # standard library import importlib import sys from abc import ABC from typing import Any, Optional # first-party from tcex.api.tc.v3._gen._gen_abc import GenerateABC class GenerateArgsABC(GenerateABC, ABC): """Generate docstring for Model.""" def __init__(self, typ...
33.264151
89
0.574022
422
3,526
4.556872
0.265403
0.058242
0.045762
0.024961
0.133125
0.087363
0.061362
0.036401
0.036401
0
0
0.008157
0.304594
3,526
105
90
33.580952
0.776101
0.132445
0
0.084507
1
0
0.080624
0
0
0
0
0
0
1
0.070423
false
0
0.140845
0
0.295775
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08d8b9d0bef0b39a979fb0521f02328c098ccbd7
448
py
Python
3day/Quiz01_1.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/Quiz01_1.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/Quiz01_1.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
# Quiz01_1.py items = {"콜라":1000,"사이다":900,"씨그램":500,"우유":700,"활명수":800} print("=== 음료 자판기 입니다 ====") print("[콜라][사이다][씨그램][우유][활명수] 중 선택") print("복수 선택 시 --> 예) 사이다,우유 ") def pItems(*args1,**args2) : price = 0 for i in args1: price = price + args2[i.strip()] return price # 선택목록 item, 가격 pr...
22.4
58
0.564732
73
448
3.465753
0.589041
0.039526
0
0
0
0
0
0
0
0
0
0.074586
0.191964
448
20
59
22.4
0.621547
0.084821
0
0
0
0
0.229064
0.05665
0
0
0
0
0
0
null
null
0
0
null
null
0.307692
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08da6b4771c11626f2b1e4199314a129e0c7bb3d
3,089
py
Python
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
2
2020-01-15T05:17:23.000Z
2020-08-13T01:50:00.000Z
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
null
null
null
app/ml/train_data.py
curioswati/scrapy-tsa
50556880125412e0b8d925fb46c41c44dd31fb37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy import csv import re, nltk from sklearn.feature_extraction.text import CountVectorizer from nltk.stem.porter import PorterStemmer from sklearn.linear_model import LogisticRegression # from sklearn.cross_validation import train_test_split from sklearn.externals import joblib...
26.86087
94
0.717708
414
3,089
5.154589
0.357488
0.050609
0.059044
0.033739
0.182755
0.124649
0.061856
0.061856
0
0
0
0.015058
0.161541
3,089
114
95
27.096491
0.80888
0.10586
0
0.077922
0
0
0.167455
0.033855
0
0
0
0
0
0
null
null
0
0.116883
null
null
0.155844
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08dcaa11c309d6ad11738f4ba7bc30c87f71fe32
274
py
Python
templates/python.py
limacat76/Polyglot-Study
ec71186d4dfbecebf372eb11affd9b5a2b76e47a
[ "MIT" ]
null
null
null
templates/python.py
limacat76/Polyglot-Study
ec71186d4dfbecebf372eb11affd9b5a2b76e47a
[ "MIT" ]
null
null
null
templates/python.py
limacat76/Polyglot-Study
ec71186d4dfbecebf372eb11affd9b5a2b76e47a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from sys import argv from sys import stdin from sys import stdout alp = len(argv) if alp > 1 and argv[1] == "--version": print ('version 0.1') quit() if alp > 1 and argv[1] == "--help": print ('ctrl+d to quit') quit() print('todo')
17.125
38
0.605839
46
274
3.608696
0.521739
0.126506
0.23494
0.108434
0.168675
0.168675
0
0
0
0
0
0.033019
0.226277
274
15
39
18.266667
0.75
0.076642
0
0.181818
0
0
0.174603
0
0
0
0
0
0
1
0
false
0
0.272727
0
0.272727
0.272727
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08e02a9b4adc8aa43eb49a2fd41a870ebd71dbaa
516
py
Python
micro_admin/migrations/0010_auto_20160804_1044.py
lance0145/micro-finance
1ba6339a9d05ff2f20b020b97a233c766b2ee6e0
[ "MIT" ]
72
2015-09-18T07:23:20.000Z
2022-03-23T14:35:46.000Z
micro_admin/migrations/0010_auto_20160804_1044.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
68
2015-01-03T13:44:40.000Z
2021-06-10T20:00:23.000Z
micro_admin/migrations/0010_auto_20160804_1044.py
mohbadar/micro-finance
00fc9ad1e09cd6658aa5fa0dd991cf18fe2927a6
[ "MIT" ]
73
2015-02-10T07:03:42.000Z
2022-02-24T21:11:01.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-04 10:44 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('micro_admin', '0009_page'), ] operations = [ migrations.AlterModelOptions( ...
25.8
162
0.629845
58
516
5.448276
0.827586
0.063291
0
0
0
0
0
0
0
0
0
0.050505
0.232558
516
19
163
27.157895
0.747475
0.129845
0
0
1
0
0.311659
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08e17bfd02380a8da82eb6cb901cf80fe395ede2
34,734
py
Python
feature.py
TimothyChen225/AFC-X
901a0019b7c153804570c480c3da4825776dbf02
[ "MIT" ]
null
null
null
feature.py
TimothyChen225/AFC-X
901a0019b7c153804570c480c3da4825776dbf02
[ "MIT" ]
null
null
null
feature.py
TimothyChen225/AFC-X
901a0019b7c153804570c480c3da4825776dbf02
[ "MIT" ]
null
null
null
from collections import Counter from Bio import SeqIO import numpy as np import warnings import math warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim') from gensim.models import Word2Vec Max_length = 100 # maximum length of used peptides def check_length(file): len...
31.040214
241
0.501324
4,472
34,734
3.799195
0.094812
0.014126
0.019776
0.015539
0.724662
0.69741
0.67575
0.645968
0.623131
0.601883
0
0.071952
0.339379
34,734
1,118
242
31.067979
0.668483
0.055479
0
0.668177
0
0.002265
0.115224
0.046324
0
0
0
0
0
1
0.03171
false
0
0.006795
0.001133
0.074745
0.005663
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08ee02203bdf0fc6105effa49f09100d9294242e
8,412
py
Python
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
main_gui.py
vedymin/All_IPG_Move
b8b079fd471709731a7550cec3a5add3db409b81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main_gui.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
54.980392
116
0.714812
862
8,412
6.800464
0.151972
0.07506
0.0348
0.033777
0.468782
0.41334
0.347834
0.319686
0.309792
0.255715
0
0.013143
0.185925
8,412
152
117
55.342105
0.842874
0.021517
0
0.228571
1
0
0.053401
0.002726
0
0
0
0
0
1
0.014286
false
0
0.007143
0
0.028571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
08f05b58d9116c10d8df8fa1c928dc1cf428e826
2,820
py
Python
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
1
2020-04-12T21:05:46.000Z
2020-04-12T21:05:46.000Z
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
collectors/cpustats.py
vijayanant/kunai
0dfe169731eaceb1bba66e12715b3968d2a3de20
[ "MIT" ]
null
null
null
import httplib # Used only for handling httplib.HTTPException (case #26701) import os import sys import platform import re import urllib import urllib2 import traceback import time from StringIO import StringIO from multiprocessing import subprocess from kunai.log import logger from kunai.collector import Collector ...
32.790698
114
0.510638
262
2,820
5.48855
0.446565
0.053547
0.061196
0.039638
0.133519
0.133519
0.108484
0.070932
0
0
0
0.012181
0.388652
2,820
85
115
33.176471
0.821926
0.045035
0
0.230769
0
0
0.10685
0.00968
0
0
0
0
0
0
null
null
0
0.2
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08f52305d640784da8d8fb26cf618726da107b3a
2,357
py
Python
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
11
2017-09-29T05:37:57.000Z
2022-02-04T06:34:17.000Z
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
2
2018-07-03T12:19:50.000Z
2019-10-19T21:24:53.000Z
spark_mapinput.py
pw2393/spark-bitcoin-parser
320eb30ffcc462b0607655d2f4002a82590fd120
[ "MIT" ]
3
2019-11-09T13:01:07.000Z
2021-12-03T04:20:29.000Z
""" Author: Peng Wu License: MIT """ # Initialize Spark Context: local multi-threads from pyspark import SparkConf, SparkContext output_folder = './csv/' def main(): # Initialize Spark Context: local multi-threads conf = SparkConf().setAppName("BTC-InputMapper") sc = SparkContext(conf=conf) # Load...
28.39759
117
0.602036
302
2,357
4.589404
0.390728
0.060606
0.040404
0.05772
0.339105
0.30303
0.209235
0.167388
0.126984
0.126984
0
0.021476
0.229529
2,357
83
118
28.39759
0.74174
0.311413
0
0.066667
0
0
0.119819
0.0211
0
0
0
0
0
0
null
null
0.033333
0.1
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
08f98d32f073c8a759a51d5a1b5fc9a27ec1c07c
1,927
py
Python
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
python/http_request.py
MrVallentin/http_request
b21cb23ead1e3bc7176f09804f9cc9287b9f0168
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Author: Christian Vallentin <mail@vallentinsource.com> # Website: http://vallentinsource.com # Repository: https://github.com/MrVallentin/http_request # # Date Created: February 28, 2016 # Last Modified: February 29, 2016 # # Developed and tested using Python 3.5.1 import http.client, urllib....
23.790123
65
0.694862
270
1,927
4.87037
0.307407
0.069202
0.074525
0.095817
0.293536
0.247909
0.209886
0.209886
0.209886
0.209886
0
0.010592
0.167099
1,927
80
66
24.0875
0.808723
0.155682
0
0.155556
0
0
0.064317
0.020408
0
0
0
0
0
1
0.155556
false
0
0.022222
0.133333
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3e946fdc0458e3cc6d05239b37f7f11a04a0d076
898
py
Python
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
1
2018-09-07T10:10:29.000Z
2018-09-07T10:10:29.000Z
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
test_simplebuy.py
caoxuwen/bitgym
0a6796a039290122430ebc13c8d7ad9ff741921a
[ "MIT" ]
null
null
null
import random import numpy as np import pandas as pd import trading_env # np.set_printoptions(threshold=np.nan) #df = pd.read_hdf('dataset/SGXTW.h5', 'STW') #df = pd.read_hdf('dataset/SGXTWsample.h5', 'STW') df = pd.read_csv('dataset/btc_indexed2.csv') print(df.describe()) env = trading_env.make(env_id='training_v1'...
27.212121
77
0.587973
122
898
4.188525
0.581967
0.023483
0.046967
0.043053
0.207436
0.101761
0
0
0
0
0
0.018663
0.283964
898
32
78
28.0625
0.77605
0.202673
0
0.090909
0
0
0.098453
0.033755
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.136364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3e9679307c3b46578c6f09f3d9606e2140ef17b5
1,253
py
Python
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
null
null
null
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
1
2015-12-29T09:38:21.000Z
2015-12-30T16:16:19.000Z
sandbox/images/reseau_serveur_utile.py
chiesax/sandbox
3b628e0068c6f7116c3a98d481299158a8bf5de3
[ "MIT" ]
null
null
null
#!/usr/bin/python3.4 # -*-coding:utf-8 -* """ https://openclassrooms.com/courses/apprenez-a-programmer-en-python/le-reseau À LA FIN LE TERMINAL QUITTE PYTHON : DONC CE PROGRAMME NE MARCHE PAS !! """ # Les deux lignes précédentes serviraient si je rendais ce fichier # directement exécutable import socket # Construi...
27.844444
89
0.739824
180
1,253
5.061111
0.611111
0.16685
0.052689
0
0
0
0
0
0
0
0
0.017143
0.162011
1,253
44
90
28.477273
0.850476
0.646449
0
0
0
0
0.115108
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
0.444444
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
3e9f295d7038dec0577aca1bae6bbad75edf434c
2,083
py
Python
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
src/hard/multi_search.py
JadielTeofilo/General-Algorithms
dfcf86c6ecd727573079f8971187c47bdb7a37bb
[ "MIT" ]
null
null
null
""" 17.17 Multi Search: Given a string b and an array of smaller strings T, design a method to search b for each small string in T. In - text: str, words: List[str] Out - List[str] lgget`s go to the party tonight? ['go', 'test', 'jump'] return ['go'] O(k^2 + n*t) time complexity, where k is the size of text, n is ...
24.797619
120
0.586174
291
2,083
4.103093
0.309278
0.058626
0.036851
0.027638
0.393635
0.246231
0.197655
0.197655
0.137353
0.137353
0
0.006775
0.291407
2,083
83
121
25.096386
0.802168
0.221795
0
0.304348
0
0
0.068424
0
0
0
0
0.012048
0
1
0.152174
false
0
0.021739
0
0.391304
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3ea4ef2ff77ddb776dc4b7390350caad1477ed17
687
py
Python
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
null
null
null
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
1
2019-11-19T16:49:21.000Z
2019-11-19T16:49:21.000Z
elements/requesting.py
pughlab/GENIE-FMI-converter
62009d419ac9ada8bfea2432412e0304724ae842
[ "MIT" ]
1
2019-12-12T04:27:29.000Z
2019-12-12T04:27:29.000Z
import requests import re import sys xml = re.compile(r'<.+>|\n') # queries using closed intervals [x,y], 1-based def get_segment(url, chrom, coords): r = requests.get(url, params={'segment': "{}:{},{}".format(chrom, *coords)}) if r.status_code == requests.codes.ok: return re.sub(xml, '', r.text).uppe...
28.625
105
0.611354
100
687
4.16
0.53
0.132212
0.052885
0.086538
0.096154
0.096154
0
0
0
0
0
0.014679
0.206696
687
23
106
29.869565
0.748624
0.136827
0
0.117647
0
0
0.108475
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.529412
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
1
0
0
1
3ea75b500ba52b9dd243fdb83d052c734dde9d13
477
py
Python
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/rules/uk/creator.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
from invenio_oarepo_oai_pmh_harvester.register import Decorators from invenio_oarepo_oai_pmh_harvester.rules.utils import iter_array from invenio_oarepo_oai_pmh_harvester.transformer import OAITransformer @Decorators.rule("xoai") @Decorators.pre_rule("/dc/creator") def transform_creator(paths, el, results, phase, **k...
29.8125
71
0.735849
60
477
5.583333
0.583333
0.098507
0.152239
0.179104
0.286567
0.286567
0
0
0
0
0
0.0025
0.161426
477
15
72
31.8
0.835
0
0
0
0
0
0.06499
0
0
0
0
0
0
1
0.083333
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ea985da6ab078979759098314b0008ca7d1ea59
1,490
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_windows/trackers/GenomicContext.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from MedipReport import ProjectTracker from CGATReport.Tracker import SingleTableTrackerRows, \ SingleTableTrackerEdgeList class ContextSummary(ProjectTracker, SingleTableTrackerRows): table = "context_stats" class GatFold(ProjectTracker, SingleTableTrackerEdgeList): '''fold change matrix.''' row =...
24.032258
76
0.642953
163
1,490
5.717791
0.460123
0.009657
0.038627
0.051502
0.156652
0.156652
0.156652
0.156652
0.156652
0.103004
0
0.008757
0.233557
1,490
61
77
24.42623
0.807356
0.034228
0
0.216216
0
0
0.215137
0
0
0
0
0
0
1
0.081081
false
0
0.054054
0.081081
0.675676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3eaea2f364b0232cd2155f284fa3e784667552cf
321
py
Python
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
null
null
null
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
4
2020-06-05T20:53:52.000Z
2022-02-10T08:32:51.000Z
card_collector_db/urls.py
tyhunt99/card-collector-db
932bd829eb46f9492e6a25326140823629161bab
[ "MIT" ]
null
null
null
''' cardcollectordb URL Configuration ''' from django.contrib import admin from django.urls import include, path from account.views import SignUp urlpatterns = [ path('admin/', admin.site.urls), path('account/', include('account.urls'), name='account'), path('signup/', SignUp.as_view(), name='signup'), ]...
21.4
62
0.697819
39
321
5.717949
0.487179
0.089686
0
0
0
0
0
0
0
0
0
0
0.140187
321
14
63
22.928571
0.807971
0.102804
0
0
0
0
0.164286
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3eb1b1746b5ee00b2b35cef5dad3b395d8706a08
294
py
Python
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
www/bigghosthead/bigghosthead/items.py
baijiege9/BigGhostHead
1ffa0bf390bad707e4fc902f9af98a4c73eea554
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from scrapy.item import Item, Field class BigghostheadItem(Item): # 电商网站的fields productId = Field() title = Field()# 商品 store = Field()# 店铺 #新闻博客的fields text = Field()# 文本 keywords = Field()# 关键词 comment = Field() productId = Field()
22.615385
35
0.602041
32
294
5.53125
0.6875
0.158192
0
0
0
0
0
0
0
0
0
0.004587
0.258503
294
13
36
22.615385
0.807339
0.193878
0
0.222222
0
0
0
0
0
0
0
0
0
1
0
false
0
0.111111
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3ebc6bb0c418253d021814396ba94a1161d06814
18,106
py
Python
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
pidlearningscript.py
mtw30/ml_accumualtor_controller
d80d62ac66ccea9e6f089d9deebf796678fa818b
[ "Apache-2.0" ]
null
null
null
# My script to process the generated data # The temperature we want to aim for aimTemperature = float(30 + 273) # To halt the script import sys # Numpy matrices import numpy as np #Used to get the epoch time to calculate the time difference dt import datetime import time #Regular expressions import re # Generate rando...
37.486542
122
0.643378
2,374
18,106
4.894693
0.262848
0.006024
0.002582
0.002754
0.195697
0.180034
0.171429
0.171429
0.171429
0.164028
0
0.033751
0.263614
18,106
482
123
37.564315
0.837771
0.394621
0
0.181818
1
0.008264
0.072284
0.034346
0
0
0
0
0
1
0.049587
false
0
0.033058
0
0.136364
0.099174
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3ebef9e4fbaf39a788a4ad55fc4f3d9f0f5242a4
3,659
py
Python
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
1
2018-09-10T23:44:02.000Z
2018-09-12T16:28:07.000Z
site-packages/cinderclient/tests/unit/v2/test_cgsnapshots.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
2
2018-09-07T23:17:23.000Z
2019-01-11T16:10:08.000Z
# Copyright (C) 2012 - 2014 EMC Corporation. # # 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 # # Un...
38.515789
78
0.639519
447
3,659
5.024609
0.284116
0.081033
0.098397
0.109973
0.557881
0.44301
0.412289
0.387355
0.380232
0.295191
0
0.025171
0.239956
3,659
94
79
38.925532
0.782452
0.167532
0
0.359375
0
0
0.140594
0.017822
0
0
0
0
0.40625
1
0.15625
false
0
0.03125
0
0.203125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
3ec23576c70ac623990dae2bb8e27678909b68f6
2,327
py
Python
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
dataAnalytics/roomAnalytics.py
PeterJWei/EnergyFootprinting
0396efba7d4e6863452e322f9f7561c6cd756478
[ "MIT" ]
null
null
null
import DBScrape import calendar import datetime import time import csv import sys import os days = 30 class roomAnalytics: energyDictionary = {} energyCounts = {} def backspace(self): print '\r', def roomData(self): databaseScrape = DBScrape.DBScrape() t = (2017, 5, 1, 0, 0, 0, 0, 0, 0) beginTime = calend...
25.021505
96
0.638161
300
2,327
4.936667
0.343333
0.028359
0.008103
0.008103
0.099932
0.035111
0.035111
0.035111
0
0
0
0.034807
0.222174
2,327
93
97
25.021505
0.783425
0.026644
0
0.054054
0
0
0.02479
0
0
0
0
0
0
0
null
null
0.013514
0.094595
null
null
0.040541
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
3ee683dea81950011c4a8893e44e207f0c0558cc
275
py
Python
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
2016/Day5/tests.py
dh256/adventofcode
428eec13f4cbf153333a0e359bcff23070ef6d27
[ "MIT" ]
null
null
null
import pytest from Door import Door def test_find_password(): door_id = "abc" door = Door(door_id) assert(door.find_password() == "18f47a30") def test_find_password2(): door_id = "abc" door = Door(door_id) assert(door.find_password2() == "05ace8e3")
22.916667
47
0.676364
38
275
4.631579
0.368421
0.136364
0.125
0.147727
0.420455
0.420455
0.420455
0.420455
0.420455
0.420455
0
0.054054
0.192727
275
12
47
22.916667
0.738739
0
0
0.4
0
0
0.07971
0
0
0
0
0
0.2
1
0.2
false
0.4
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3eea8ad1e4ebfd2294a6137803d28554a3bc0130
5,621
py
Python
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-01-25T10:18:18.000Z
2021-01-23T15:29:56.000Z
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/benchmarks/smoothness.py
justremotephone/android_external_chromium_org
246856e61da7acf5494076c74198f2aea894a721
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:13.000Z
2020-11-04T07:24:13.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry import test from benchmarks import silk_flags from measurements import smoothness import page_sets @test.Disabled # crbug.com/368767 class...
32.871345
80
0.794698
587
5,621
7.51448
0.20954
0.034459
0.092496
0.107912
0.715484
0.713217
0.681025
0.625028
0.565178
0.449558
0
0.016762
0.129692
5,621
170
81
33.064706
0.884914
0.290162
0
0.65625
0
0
0.046992
0.013943
0
0
0
0
0
1
0.083333
false
0
0.041667
0
0.739583
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3eeacd092135bae68f848fe55ada198c37b80c48
315
py
Python
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
setup.py
igorccouto/robot
67019ee1f52d5474ce36734c1e56725046471cd9
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='robot', version='1.0', author='Igor Couto', author_email='igorcouto@gmail.com', description='A project to execute a robot that performs several actions on the browser.', packages=find_packages(), license='MIT' )
28.636364
96
0.660317
39
315
5.25641
0.820513
0.117073
0
0
0
0
0
0
0
0
0
0.008264
0.231746
315
10
97
31.5
0.838843
0
0
0
0
0
0.37377
0
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3ef267c5d2fee953bb87ccf05e6b6f25d5d276e4
3,632
py
Python
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
motorisedcameratracking/Cameras.py
wDove1/motorisedcameratracking
97ae1722978fc99faf37c0ab7e3c8f39e3e2355d
[ "Apache-2.0" ]
null
null
null
from picamera import PiCamera from time import * from cv2 import * import numpy as np import os from PIL import Image from .errors import * class RPICam: """A class for the raspberry pi camera Attributes: modelDetails: A dictionary containing details of the Camera imagePath: The ...
35.262136
99
0.566079
387
3,632
5.27907
0.361757
0.062653
0.027411
0.0279
0.096427
0.02839
0.02839
0
0
0
0
0.013049
0.367015
3,632
102
100
35.607843
0.875598
0.348844
0
0.115385
0
0
0.012352
0
0
0
0
0
0
1
0.25
false
0.038462
0.134615
0.076923
0.673077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3ef554160c1a186dae9bd51e974deb08ac86e468
1,226
py
Python
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
5
2017-12-19T17:50:56.000Z
2019-02-12T03:19:50.000Z
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
null
null
null
setup.py
Superbuy-Team/sbcnab240
fe32ffa1efc3f07f8e1be607d4bf110f5134720a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages """ Uma biblioteca para leitura de arquivos CNAB 240. """ setup( name='sbcnab240', version='0.1.0', url='https://github.com/Superbuy-Team/sbcnab240/', license='MIT', author='SuperBuy Team', author_email='ti@superbuy.com.br', description='Uma bibl...
31.435897
70
0.630506
128
1,226
5.9375
0.632813
0.1
0.131579
0.102632
0.107895
0.107895
0.107895
0.107895
0
0
0
0.033613
0.223491
1,226
38
71
32.263158
0.764706
0.01876
0
0
0
0
0.518777
0.027074
0
0
0
0
0
1
0
true
0
0.03125
0
0.03125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
3efbe3ec6f7235b59b283ab4d9dd8c0d9a53ffcd
1,090
py
Python
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
plugins/modules/set_java_trusted_sites_facts.py
c2platform/ansible-collection-core
40c4e86349cda170c406c9af2b74d7760dcf5c86
[ "MIT" ]
null
null
null
#!/usr/bin/python from ansible.module_utils.basic import * def site_result(site, trusted_sites_download): rs = trusted_sites_download['results'] for r in rs: if r['site'] == site: return r msg = "Result for site {} not found in {}".format(site, rs) raise Exception(msg) def set_j...
30.277778
75
0.647706
138
1,090
4.811594
0.376812
0.216867
0.144578
0.126506
0.201807
0.090361
0
0
0
0
0
0
0.195413
1,090
35
76
31.142857
0.757127
0.014679
0
0
0
0
0.239515
0.041007
0
0
0
0
0
1
0.12
false
0
0.04
0
0.24
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3eff530062f79f81142b5bbce7a5802437435e1c
3,985
py
Python
ensemble_compilation/physical_db.py
LumingSun/deepdb-public
39cf21b3145c3255f15eb40df606b02a53323e86
[ "MIT" ]
48
2020-02-21T10:19:18.000Z
2022-03-29T20:59:20.000Z
ensemble_compilation/physical_db.py
LumingSun/deepdb-public
39cf21b3145c3255f15eb40df606b02a53323e86
[ "MIT" ]
7
2020-04-29T15:13:05.000Z
2021-06-08T13:33:53.000Z
ensemble_compilation/physical_db.py
jschj/deepdb-public
655ada13a043a4226a239b0c0a65bcdefef87a02
[ "MIT" ]
18
2020-02-21T13:11:49.000Z
2022-03-07T23:27:05.000Z
import psycopg2 import pandas as pd from ensemble_compilation.utils import gen_full_join_query, print_conditions class DBConnection: def __init__(self, db_user="postgres", db_password="postgres", db_host="localhost", db_port="5432", db="shopdb"): self.db_user = db_user self.db_password...
36.227273
118
0.524969
392
3,985
5.107143
0.216837
0.098901
0.034965
0.072428
0.380619
0.363137
0.325175
0.325175
0.325175
0.325175
0
0.005401
0.395985
3,985
109
119
36.559633
0.82634
0.038896
0
0.493827
0
0
0.016757
0
0
0
0
0
0
1
0.098765
false
0.08642
0.037037
0
0.222222
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
410af5985b4b1c70714faefbc090b58a89a67ddd
270
py
Python
main/run_camera_calibrate.py
mcekwonu/pycamera
0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2
[ "MIT" ]
null
null
null
main/run_camera_calibrate.py
mcekwonu/pycamera
0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2
[ "MIT" ]
null
null
null
main/run_camera_calibrate.py
mcekwonu/pycamera
0d2c9cb70e8cbc9012e252c06ff1827ae8544cf2
[ "MIT" ]
null
null
null
"""Script to run camera calibration""" from camera import Camera camera = Camera(source_dir='/home/mce/Documents/bubble3D/calibration/Cam01', outfilename='Cam01', target_dir='results/camera', verbose=True) camera.calibrate() camera.compute_undistort()
30
97
0.740741
32
270
6.15625
0.6875
0.121827
0
0
0
0
0
0
0
0
0
0.021277
0.12963
270
8
98
33.75
0.817021
0.118519
0
0
0
0
0.280172
0.198276
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
410b5247c45f5769ae5e7ac2ac703fb1bb25e83e
1,994
py
Python
Hub/Program/Other/Class/ZThreadSingle.py
MPZinke/SmartCurtain
ef9976d7a6b982bb044e6fd914fdea4756d5b5c4
[ "MIT" ]
null
null
null
Hub/Program/Other/Class/ZThreadSingle.py
MPZinke/SmartCurtain
ef9976d7a6b982bb044e6fd914fdea4756d5b5c4
[ "MIT" ]
18
2020-06-21T02:36:52.000Z
2022-03-14T04:17:56.000Z
Hub/Program/Other/Class/ZThreadSingle.py
MPZinke/SmartCurtain
ef9976d7a6b982bb044e6fd914fdea4756d5b5c4
[ "MIT" ]
1
2020-01-19T02:24:38.000Z
2020-01-19T02:24:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "MPZinke" ######################################################################################################################## # # # cre...
51.128205
120
0.336008
133
1,994
4.857143
0.586466
0.051084
0.037152
0
0
0
0
0
0
0
0
0.009804
0.488465
1,994
38
121
52.473684
0.623529
0.613842
0
0
0
0
0.013807
0
0
0
0
0
0
1
0.142857
false
0.071429
0.214286
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
1
0
0
0
0
0
1
4122fe432a52c30c10d6907870148cde9432de71
2,648
py
Python
src/shake/sentence_nlp.py
makergabriel/gearmood
cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e
[ "MIT" ]
null
null
null
src/shake/sentence_nlp.py
makergabriel/gearmood
cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e
[ "MIT" ]
null
null
null
src/shake/sentence_nlp.py
makergabriel/gearmood
cd0e205e6e22f9f4b33d18d93e5bef5a39b8763e
[ "MIT" ]
null
null
null
import nltk from nltk.tokenize import sent_tokenize from nltk.tokenize import word_tokenize from nltk.corpus import wordnet # TODO move cut words to config CUT_WORDS = ( "drop", "cut", "leave", "lose", "trim", "shed", "cast", "unload", "strike", "skip", "throw", "shake",...
31.52381
95
0.60423
349
2,648
4.438395
0.409742
0.049709
0.021304
0.028405
0
0
0
0
0
0
0
0.00221
0.316465
2,648
83
96
31.903614
0.853591
0.319864
0
0
0
0
0.060742
0
0
0
0
0.012048
0
1
0.050847
false
0
0.067797
0
0.169492
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
412484a70f53006f985b8a1791e3e361afab8182
2,144
py
Python
tests/test_iam/test_iam_groups.py
mrucci/moto
076a6a7055ad18908b5661e599648c40b251cdc1
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
tests/test_iam/test_iam_groups.py
mrucci/moto
076a6a7055ad18908b5661e599648c40b251cdc1
[ "Apache-2.0" ]
2
2016-07-01T03:43:37.000Z
2016-07-18T19:38:06.000Z
tests/test_iam/test_iam_groups.py
zenefits/moto
8341c722a8e06decf23fd4b5e67de612accebb80
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from __future__ import unicode_literals import boto import sure # noqa from nose.tools import assert_raises from boto.exception import BotoServerError from moto import mock_iam @mock_iam() def test_create_group(): conn = boto.connect_iam() conn.create_group('my-group') with assert_raises(BotoServerError...
29.369863
122
0.712687
316
2,144
4.503165
0.142405
0.127899
0.109628
0.107519
0.718904
0.70766
0.65636
0.65636
0.553057
0.510892
0
0.004362
0.14459
2,144
72
123
29.777778
0.771538
0.001866
0
0.672414
0
0
0.175398
0.026193
0
0
0
0
0.12069
1
0.103448
false
0
0.103448
0
0.206897
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
4125c4ef4416a704e2a8626b154e255f03a002cf
433
py
Python
rampwf/utils/tests/test_sanitize.py
DimitriPapadopoulos/ramp-workflow
c235e80b81fc8d8a5e0c175df50a55cc58dd78aa
[ "BSD-3-Clause" ]
66
2017-08-31T08:48:45.000Z
2022-03-21T16:05:31.000Z
rampwf/utils/tests/test_sanitize.py
DimitriPapadopoulos/ramp-workflow
c235e80b81fc8d8a5e0c175df50a55cc58dd78aa
[ "BSD-3-Clause" ]
265
2017-06-02T19:22:38.000Z
2022-03-31T13:08:00.000Z
rampwf/utils/tests/test_sanitize.py
DimitriPapadopoulos/ramp-workflow
c235e80b81fc8d8a5e0c175df50a55cc58dd78aa
[ "BSD-3-Clause" ]
44
2017-06-03T15:35:58.000Z
2022-03-31T12:46:42.000Z
import pytest from rampwf.utils.sanitize import _sanitize_input def test_sanitize_input(): _sanitize_input('Harmess code') msg = "forbidden key word open detected" with pytest.raises(RuntimeError, match=msg): _sanitize_input("with open('test.txt', 'wr') as fh") msg = "forbidden key word sca...
27.0625
60
0.709007
56
433
5.285714
0.517857
0.219595
0.101351
0.128378
0.385135
0.385135
0.385135
0.385135
0.385135
0
0
0
0.184758
433
15
61
28.866667
0.838527
0
0
0.2
0
0
0.307159
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.3
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
412aadfb4c71d1e45e7e11134561c9b5c2fc6eda
2,018
py
Python
FileNamePurifier/FileNamePurifier.py
dbpiper/FileNamePurifier
620088ea3be1b8874609fa769cfb8e6b636d5e8b
[ "MIT" ]
null
null
null
FileNamePurifier/FileNamePurifier.py
dbpiper/FileNamePurifier
620088ea3be1b8874609fa769cfb8e6b636d5e8b
[ "MIT" ]
null
null
null
FileNamePurifier/FileNamePurifier.py
dbpiper/FileNamePurifier
620088ea3be1b8874609fa769cfb8e6b636d5e8b
[ "MIT" ]
null
null
null
from Parser import Parser from LexicalAnalyzer import LexicalAnalyzer class FileNamePurifier: def __init__(self, stringAppendToFront, stringAppendToEnd, removeFirstInstanceOfStringsInList, removeAllInstancesOfStringsInList, substringsToPreserve, oldSeperators, seperatorToUse, breakUpBy...
46.930233
133
0.693756
109
2,018
12.807339
0.256881
0.049427
0.057307
0
0
0
0
0
0
0
0
0
0.263627
2,018
43
134
46.930233
0.939435
0
0
0
0
0
0
0
0
0
0
0
0
1
0.09375
false
0
0.0625
0.03125
0.25
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5b4beb61d529163a339e65d180ea7a983c8e73d
359
py
Python
HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/paths/L1T_SingleTkMuon_22_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms #from ..modules.hltL1TkMuons_cfi import * from ..modules.hltL1TkSingleMuFiltered22_cfi import * from ..sequences.HLTBeginSequence_cfi import * from ..sequences.HLTEndSequence_cfi import * L1T_SingleTkMuon_22 = cms.Path( HLTBeginSequence + # hltL1TkMuons + hltL1TkSin...
25.642857
53
0.788301
35
359
7.914286
0.514286
0.129964
0.140794
0.158845
0
0
0
0
0
0
0
0.035484
0.13649
359
13
54
27.615385
0.858065
0.16156
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f5c48e8b3a21158680b98773692e8c83b730ba87
5,053
py
Python
libs/complex2epz.py
ledummy/CoMPlEx
f315df7a1b13cfcbdafd9879ff93a974f2e2c38b
[ "MIT" ]
null
null
null
libs/complex2epz.py
ledummy/CoMPlEx
f315df7a1b13cfcbdafd9879ff93a974f2e2c38b
[ "MIT" ]
1
2020-04-08T12:55:50.000Z
2020-04-08T12:55:50.000Z
libs/complex2epz.py
ledummy/CoMPlEx
f315df7a1b13cfcbdafd9879ff93a974f2e2c38b
[ "MIT" ]
1
2020-04-08T12:44:47.000Z
2020-04-08T12:44:47.000Z
INIT = 1 REST = ['START_MODSAFE',[0,0]] NEUTRAL = ['START_MODSAFE',[1,INIT]] FDBK = ['START_MODSAFE',[2,INIT]] LIN = ['START_MODSAFE',[3,INIT]] SIN = ['START_MODSAFE',[4,INIT]] TYPES = {'Vconst':LIN,'Fconst':FDBK,'Zconst':NEUTRAL} try: import epz as tempEpz import inspect _,_,keys,_ = inspect.getargspec(...
23.723005
90
0.660993
779
5,053
4.210526
0.256739
0.046951
0.070427
0.064024
0.272561
0.193598
0.110366
0.085671
0.085671
0.031707
0
0.01571
0.231546
5,053
212
91
23.834906
0.828998
0.434198
0
0
0
0
0.119641
0
0
0
0
0
0
1
0.34375
false
0.015625
0.0625
0
0.421875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f5cc6aee2d43d9f8f6fc9d61aea78cd19c169feb
4,921
py
Python
tadpole/template/app/lib/auth.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
2
2017-12-02T07:02:31.000Z
2020-10-13T02:20:18.000Z
tadpole/template/app/lib/auth.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
null
null
null
tadpole/template/app/lib/auth.py
echoyuanliang/pine
22175e6aea0ca9b02d6542677b27a690c1501c9c
[ "MIT" ]
1
2018-04-23T04:59:38.000Z
2018-04-23T04:59:38.000Z
#!/usr/bin/env python # coding: utf-8 """ create at 2017/11/22 by allen """ import re from flask import request, session, current_app from app.lib.constant import ResourceType from app.models.auth import Resource, role_resource, Role, user_role, User from app.lib.exceptions import AuthError, PermissionError cla...
30.190184
79
0.65251
587
4,921
5.219762
0.204429
0.025457
0.037206
0.032637
0.324739
0.27252
0.231723
0.16906
0.16906
0.16906
0
0.003067
0.271083
4,921
162
80
30.376543
0.851129
0.023369
0
0.357798
0
0
0.033605
0
0
0
0
0
0
1
0.165138
false
0.146789
0.045872
0.045872
0.431193
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f5dc6d973bebdd28a311046ec3c5d189663906f8
530
py
Python
sentences.py
vanatteveldt/perspectives
6d537082b915ccde15031d94983bd2d575cdc380
[ "MIT" ]
null
null
null
sentences.py
vanatteveldt/perspectives
6d537082b915ccde15031d94983bd2d575cdc380
[ "MIT" ]
null
null
null
sentences.py
vanatteveldt/perspectives
6d537082b915ccde15031d94983bd2d575cdc380
[ "MIT" ]
null
null
null
import csv import sys from KafNafParserPy import KafNafParser from naflib import * woorden = [r['original'] for r in csv.DictReader(open("klimaatwoorden.csv"))] o = csv.writer(sys.stdout) o.writerow(["file", "sentence", "term", "text"]) for fn in sys.argv[1:]: naf = KafNafParser(fn) for klimaterm in find_te...
27.894737
85
0.677358
77
530
4.571429
0.467532
0.051136
0
0
0
0
0
0
0
0
0
0.002288
0.175472
530
18
86
29.444444
0.803204
0
0
0
0
0
0.088847
0
0
0
0
0
0
1
0
false
0
0.307692
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
1
0
0
0
0
1
f5dd11fe9a9263410d61440cc6794ca854255416
1,127
py
Python
view/user/__init__.py
archever/flask-web
cd120f64deec31fd1a87285372abaa22fc379b9f
[ "MIT" ]
null
null
null
view/user/__init__.py
archever/flask-web
cd120f64deec31fd1a87285372abaa22fc379b9f
[ "MIT" ]
null
null
null
view/user/__init__.py
archever/flask-web
cd120f64deec31fd1a87285372abaa22fc379b9f
[ "MIT" ]
null
null
null
# coding=utf-8 from flask import Blueprint, render_template, redirect from controlers.user import UserCtr from libs.login import login_user, logout_user, current_user bp = Blueprint("user", __name__, url_prefix="/user") @bp.route("/login", methods=["GET"]) def login_form(): return render_template("user/login.htm...
23.978723
60
0.668146
146
1,127
5.054795
0.280822
0.047425
0.075881
0.051491
0.479675
0.336043
0.336043
0.336043
0.336043
0.336043
0
0.001066
0.167702
1,127
46
61
24.5
0.785714
0.010648
0
0.40625
0
0
0.114106
0
0
0
0
0
0
1
0.15625
false
0.1875
0.09375
0.0625
0.40625
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f5deb3f2744fe175063b1c389f169973e74ce044
9,607
py
Python
recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/52275_sparse_dictionary_based_sparse_matrix/recipe-52275.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
#!/usr/bin/env python import vector import math, types, operator """ A sparse matrix class based on a dictionary, supporting matrix (dot) product and a conjugate gradient solver. In this version, the sparse class inherits from the dictionary; this requires Python 2.2 or later. """ class sparse(dict): """ A compl...
22.819477
90
0.565525
1,632
9,607
3.279412
0.157475
0.023916
0.018498
0.01775
0.429933
0.382474
0.334268
0.327915
0.276345
0.232623
0
0.031892
0.229728
9,607
420
91
22.87381
0.691351
0.018008
0
0.383387
0
0.003195
0.143255
0.0058
0
0
0
0
0
0
null
null
0.00639
0.015974
null
null
0.15655
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f5e083f241a88c8c9d72629bf0fc59c5c51dd648
392
py
Python
FlaskApp/sql_connection.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/sql_connection.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/sql_connection.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
#https://www.youtube.com/watch?v=f9PR1qcwOyg #create global convention import mysql.connector __cnx=None def get_sql_connection(): global __cnx if __cnx is None: __cnx = mysql.connector.connect(user='root', password='password', host='127.0.0.1', ...
30.153846
74
0.584184
44
392
4.931818
0.75
0.129032
0
0
0
0
0
0
0
0
0
0.03321
0.308673
392
13
75
30.153846
0.767528
0.170918
0
0
0
0
0.102894
0
0
0
0
0
0
1
0.1
false
0.1
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f5e3d0985186fbf72ce1898f6d250fd384de7e07
2,154
py
Python
sound.py
ITNano/soundserver
b84cbfd821987ad8af72a6c2677caa0b949abff6
[ "MIT" ]
null
null
null
sound.py
ITNano/soundserver
b84cbfd821987ad8af72a6c2677caa0b949abff6
[ "MIT" ]
null
null
null
sound.py
ITNano/soundserver
b84cbfd821987ad8af72a6c2677caa0b949abff6
[ "MIT" ]
null
null
null
import pyaudio import numpy as np import mixer class Sound(object): def __init__(self): self.p = pyaudio.PyAudio() self.mixers = [] self.streams = [] for i in range(self.p.get_device_count()-3): self.streams.append(SoundcardStream(self.p, i)) def start_...
32.149254
176
0.596565
261
2,154
4.758621
0.252874
0.070853
0.038647
0.036232
0.268116
0.232689
0.18277
0.157005
0.094203
0.066023
0
0.005291
0.29805
2,154
67
177
32.149254
0.816138
0
0
0.117647
0
0
0.042691
0.009745
0
0
0
0
0
1
0.254902
false
0
0.058824
0.019608
0.372549
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
1
0
0
0
0
0
0
0
1
f5e6032fc8e0c3163e2cd3542bdd970f3cb1268b
423
py
Python
tbutton_maker/admin.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
tbutton_maker/admin.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
tbutton_maker/admin.py
codefisher/tbutton_web
357bddc26b42c8511e7b5ce087bb0ac115f97e4c
[ "MIT" ]
null
null
null
from django.contrib import admin from tbutton_web.tbutton_maker.models import Application, Button, DownloadSession, UpdateSession class DownloadSessionAdmin(admin.ModelAdmin): list_display = ['time', 'query_string'] admin.site.register(DownloadSession, DownloadSessionAdmin) class UpdateSessionAdmin(admin.ModelAdm...
42.3
96
0.820331
44
423
7.75
0.545455
0.087977
0.111437
0.152493
0.340176
0.340176
0.340176
0.340176
0.340176
0.340176
0
0
0.085106
423
10
97
42.3
0.881137
0
0
0.25
0
0
0.075472
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f5e6080e840c71c64f246a6744ac59598bb42ed0
1,359
py
Python
abi_recursion.py
Abirami33/python-75-hackathon
c15505615d92cf304c27eabd3136406b08c59078
[ "MIT" ]
null
null
null
abi_recursion.py
Abirami33/python-75-hackathon
c15505615d92cf304c27eabd3136406b08c59078
[ "MIT" ]
null
null
null
abi_recursion.py
Abirami33/python-75-hackathon
c15505615d92cf304c27eabd3136406b08c59078
[ "MIT" ]
null
null
null
#PASCALS TRIANGLE USING RECURSION def pascal(n): if n == 0: #if 0 number of rows return [] #return a null list elif n == 1: ...
48.535714
106
0.40103
151
1,359
3.556291
0.443709
0.018622
0.067039
0.05959
0.074488
0
0
0
0
0
0
0.046828
0.512877
1,359
27
107
50.333333
0.76435
0.304636
0
0
0
0
0.039616
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.222222
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5efba2cc27e11d0b24ffd544963fe1fe77b60d3
764
py
Python
ecojunk/users/api/v1/resources.py
PIN-UPV/EcoJunkWebServer
53a42687c303ffe345f59dc1f11fa41c3526f6d7
[ "MIT" ]
1
2018-10-02T11:54:26.000Z
2018-10-02T11:54:26.000Z
ecojunk/users/api/v1/resources.py
PIN-UPV/EcoJunkWebServer
53a42687c303ffe345f59dc1f11fa41c3526f6d7
[ "MIT" ]
8
2018-10-03T08:02:39.000Z
2018-11-21T07:42:26.000Z
ecojunk/users/api/v1/resources.py
PIN-UPV/EcoJunkWebServer
53a42687c303ffe345f59dc1f11fa41c3526f6d7
[ "MIT" ]
1
2018-10-02T11:54:32.000Z
2018-10-02T11:54:32.000Z
from rest_framework import status from rest_framework.generics import RetrieveUpdateAPIView from rest_framework.response import Response from ecojunk.users.api.v1.serializers import UserSerializer class UserResource(RetrieveUpdateAPIView): serializer_class = UserSerializer def retrieve(self, request, *args,...
31.833333
67
0.740838
86
764
6.44186
0.430233
0.043321
0.092058
0.075812
0.397112
0.397112
0.397112
0.397112
0.397112
0.220217
0
0.011147
0.17801
764
23
68
33.217391
0.871019
0
0
0.125
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f5f611d50ecae53133cd83f244cc01c20777a693
261
py
Python
day_07/task_1.py
Korred/advent_of_code_2021
89afcaae3343653106d36fb7ad08558c0fbb4732
[ "Unlicense" ]
null
null
null
day_07/task_1.py
Korred/advent_of_code_2021
89afcaae3343653106d36fb7ad08558c0fbb4732
[ "Unlicense" ]
null
null
null
day_07/task_1.py
Korred/advent_of_code_2021
89afcaae3343653106d36fb7ad08558c0fbb4732
[ "Unlicense" ]
null
null
null
crabs = sorted(map(int, open("input.txt", "r").readline().strip().split(","))) # position with minimal fuel usage is at the median position median_pos = crabs[len(crabs) // 2] min_fuel = sum([abs(crab_pos - median_pos) for crab_pos in crabs]) print(min_fuel)
32.625
78
0.704981
43
261
4.139535
0.697674
0.101124
0
0
0
0
0
0
0
0
0
0.004386
0.126437
261
7
79
37.285714
0.776316
0.222222
0
0
0
0
0.054726
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f5fc99298c4f8aba96ad5b5882efa8fbf637939b
421
py
Python
makevideo.py
bitrogen/sorting-algorithms
f7eada32db9e0ce385878f49d79b3d6b8c09280a
[ "CC0-1.0" ]
null
null
null
makevideo.py
bitrogen/sorting-algorithms
f7eada32db9e0ce385878f49d79b3d6b8c09280a
[ "CC0-1.0" ]
1
2021-04-05T20:20:30.000Z
2021-04-05T20:22:41.000Z
makevideo.py
bitrogen/sorting-algorithms
f7eada32db9e0ce385878f49d79b3d6b8c09280a
[ "CC0-1.0" ]
null
null
null
import cv2 import numpy import glob import os images = [] path = os.getcwd()+"\\frames\\" myVideo = cv2.VideoWriter("quicksort-1.mkv", cv2.VideoWriter_fourcc(*"DIVX"), 60, (1920,1080)) for filename in range(len(os.listdir(path))): filename = f"frame-{filename}.png" img = cv2.imread(f"{path}{f...
20.047619
95
0.638955
55
421
4.872727
0.654545
0.104478
0
0
0
0
0
0
0
0
0
0.044379
0.19715
421
20
96
21.05
0.748521
0
0
0
0
0
0.162095
0
0
0
0
0
0
1
0
false
0
0.307692
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
1
0
0
0
0
1
eb1051fc036fc84c631af126f696c0417323ff9f
419
py
Python
daemons/area-deletion-daemon/app.py
sampierson/upload-service
b7c470706f729bdee34a4254555f798558877095
[ "MIT" ]
6
2018-01-31T19:44:17.000Z
2020-02-20T13:03:09.000Z
daemons/area-deletion-daemon/app.py
sampierson/upload-service
b7c470706f729bdee34a4254555f798558877095
[ "MIT" ]
379
2018-03-21T21:29:15.000Z
2020-01-28T14:20:48.000Z
daemons/area-deletion-daemon/app.py
HumanCellAtlas/staging-service
b7c470706f729bdee34a4254555f798558877095
[ "MIT" ]
5
2018-03-09T14:13:15.000Z
2020-01-30T15:49:46.000Z
import json from upload.common.upload_area import UploadArea # This lambda function is invoked by messages in the the area_deletion_queue (AWS SQS). # The queue and the lambda function are connected via aws_lambda_event_source_mapping def delete_upload_area(event, context): unwrapped_event = json.loads(event["Rec...
38.090909
87
0.785203
62
419
5.080645
0.580645
0.07619
0
0
0
0
0
0
0
0
0
0.002747
0.131265
419
10
88
41.9
0.862637
0.403341
0
0
0
0
0.080972
0
0
0
0
0
0
1
0.166667
false
0
0.333333
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
1
0
0
0
0
1
eb1fb044cf839bde93fe0d603ce5bba8c4e8cccd
449
py
Python
vks/vulkanglobals.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
1
2022-01-09T19:02:00.000Z
2022-01-09T19:02:00.000Z
vks/vulkanglobals.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
null
null
null
vks/vulkanglobals.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
null
null
null
# Copyright (C) 2019 by geehalel@gmail.com # This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) import platform _WIN32 = (platform.system() == 'Windows') VK_USE_PLATFORM_WIN32_KHR = _WIN32 VK_USE_PLATFORM_ANDROID_KHR = False VK_USE_PLATFORM_WAYLAND_KHR = False _DIRECT2DISPLAY = Fal...
29.933333
88
0.815145
68
449
4.955882
0.558824
0.089021
0.231454
0.106825
0.237389
0
0
0
0
0
0
0.0625
0.109131
449
14
89
32.071429
0.78
0.349666
0
0
0
0
0.024306
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb20be04422ba85fc708db252613db55adc1f7a9
359
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/scripts/vulture/whitelist.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
#!/bin/env python # Vulture often detects false positives when analyzing a code # base. If there are particular things you wish to ignore, # add them below. This file is consumed by # scripts/dead_code/find-dead-code.sh from vulture.whitelist_utils import Whitelist view_whitelilst = Whitelist() # Example: # view_w...
23.933333
61
0.793872
54
359
5.12963
0.814815
0.057762
0
0
0
0
0
0
0
0
0
0
0.139276
359
14
62
25.642857
0.89644
0.735376
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
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
1
0
0
0
0
1
eb2601a12ac399bfb0e416993c3a1b51cb79ad73
577
py
Python
graph_help/colorschemes/DarkColorScheme.py
jgurhem/Graph_Generator
d60f4451feef0c530389bfc4bc6978bda3d4c0cb
[ "MIT" ]
null
null
null
graph_help/colorschemes/DarkColorScheme.py
jgurhem/Graph_Generator
d60f4451feef0c530389bfc4bc6978bda3d4c0cb
[ "MIT" ]
null
null
null
graph_help/colorschemes/DarkColorScheme.py
jgurhem/Graph_Generator
d60f4451feef0c530389bfc4bc6978bda3d4c0cb
[ "MIT" ]
null
null
null
from .DefaultColorScheme import DefaultColorScheme class DarkColorScheme(DefaultColorScheme): def __init__(self): self.colors = dict() self.colors['background'] = 'black' self.colors['edge'] = 'white' self.colors['fontcolor'] = 'black' self.colors['initv'] = 'grey65' self.colors['initm'] = 'g...
30.368421
50
0.636049
63
577
5.730159
0.492063
0.360111
0.083102
0
0
0
0
0
0
0
0
0.016878
0.17851
577
18
51
32.055556
0.744726
0
0
0
0
0
0.232639
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.1875
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
eb26e6350d60cf3d97e04c6da4b6ad1b56768020
554
py
Python
Psi_Phi/plot.py
Twinstar2/Phython_scripts
19f88420bca64014585e87747d01737afe074400
[ "MIT" ]
null
null
null
Psi_Phi/plot.py
Twinstar2/Phython_scripts
19f88420bca64014585e87747d01737afe074400
[ "MIT" ]
1
2018-02-14T15:19:07.000Z
2018-02-14T15:19:07.000Z
Psi_Phi/plot.py
TobiasJu/Python_Master_scripts
19f88420bca64014585e87747d01737afe074400
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt plt.switch_backend('agg') import seaborn as sns sns_plot = \ (sns.jointplot(psi, phi, size=12, space=0, xlim=(-190, 190), ylim=(-190, 190)).plot_joint(sns.kdeplot, zorder=0, n_levels=6)) # sns_pl...
39.571429
112
0.617329
71
554
4.619718
0.619718
0.085366
0.060976
0.115854
0.134146
0
0
0
0
0
0
0.064593
0.245487
554
14
113
39.571429
0.720096
0.238267
0
0
0
0
0.141148
0.100478
0
0
0
0
0
0
null
null
0
0.25
null
null
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eb2b0a445ecc0e541307b4aff935b22d4cc3183d
939
py
Python
hello.py
ookcode/CodingSpider
eac57ef8b41be841a8366f3cc376ff259d01e27f
[ "MIT" ]
null
null
null
hello.py
ookcode/CodingSpider
eac57ef8b41be841a8366f3cc376ff259d01e27f
[ "MIT" ]
null
null
null
hello.py
ookcode/CodingSpider
eac57ef8b41be841a8366f3cc376ff259d01e27f
[ "MIT" ]
1
2022-02-23T07:12:23.000Z
2022-02-23T07:12:23.000Z
#!/usr/bin/python #coding=utf-8 import os from flask import Flask from flask import Response from flask import request app = Flask(__name__) @app.route('/') def root(): return app.send_static_file('index.html') @app.route('/env') def env(): html = "System Environment:\n\n" for env in os.environ.keys(): ...
30.290323
97
0.652822
125
939
4.784
0.456
0.073579
0.075251
0
0
0
0
0
0
0
0
0.001305
0.184239
939
31
98
30.290323
0.779373
0.029819
0
0
0
0
0.228571
0
0
0
0
0
0
1
0.12
false
0.16
0.16
0.04
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
eb2cab16d3d0736d863c283be6817d00ab5e890d
3,993
py
Python
stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
3
2019-08-13T01:44:16.000Z
2019-12-10T04:05:56.000Z
stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
null
null
null
stacks/XIAOMATECH/1.0/services/ROCKETMQ/package/scripts/namesrv.py
tvorogme/dataops
acfa21df42a20768c004c6630a064f4e38e280b2
[ "Apache-2.0" ]
7
2019-05-29T17:35:25.000Z
2021-12-04T07:55:10.000Z
from resource_management.core.resources.system import Execute from resource_management.libraries.script import Script from resource_management.core.resources.system import Directory from resource_management.core.resources.system import File from resource_management.core.source import InlineTemplate from resource_manag...
35.651786
146
0.643877
477
3,993
5.18239
0.226415
0.050971
0.065534
0.055825
0.528722
0.429207
0.407362
0.327265
0.187298
0.158172
0
0.008235
0.239669
3,993
111
147
35.972973
0.805995
0
0
0.404255
0
0.010638
0.130228
0.038317
0
0
0
0
0
0
null
null
0
0.148936
null
null
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
eb41c235a81322c2905a0154804ac4a18d5c346c
1,060
py
Python
src/sentimentClassification.py
MaxPowerScience/EnglishSentiment
119eeb6e1ee9f24805fbad6650d1a9c3e305f952
[ "Apache-2.0" ]
null
null
null
src/sentimentClassification.py
MaxPowerScience/EnglishSentiment
119eeb6e1ee9f24805fbad6650d1a9c3e305f952
[ "Apache-2.0" ]
null
null
null
src/sentimentClassification.py
MaxPowerScience/EnglishSentiment
119eeb6e1ee9f24805fbad6650d1a9c3e305f952
[ "Apache-2.0" ]
null
null
null
from perceptron import train_network, create_perceptron, test_network from preprocessingData import get_ids_matrix, separate_test_and_training_data, read_word_list from extractRawData import get_raw_data from lstm import create_lstm, create_lstm_with_tensorflow def main(): all_texts, pos_texts, neg_texts = get_raw...
37.857143
93
0.766038
144
1,060
5.194444
0.368056
0.053476
0.048128
0.06016
0.139037
0
0
0
0
0
0
0.01652
0.143396
1,060
28
94
37.857143
0.807269
0.338679
0
0
0
0
0.011544
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
eb42e8c815ef79c9ee2b0e9d574f89c917610639
693
py
Python
ArticleSpider/ArticleSpider/utils/selenium_spider.py
ms-wu/Scrapy_projects
376eb5e1c6eca54bcfb781170513c8e9d3476fec
[ "MIT" ]
null
null
null
ArticleSpider/ArticleSpider/utils/selenium_spider.py
ms-wu/Scrapy_projects
376eb5e1c6eca54bcfb781170513c8e9d3476fec
[ "MIT" ]
null
null
null
ArticleSpider/ArticleSpider/utils/selenium_spider.py
ms-wu/Scrapy_projects
376eb5e1c6eca54bcfb781170513c8e9d3476fec
[ "MIT" ]
null
null
null
from selenium import webdriver from scrapy.selector import Selector import time chrome_opt = webdriver.ChromeOptions() prefs = {"profile.managed_default_content_settings.images": 2} chrome_opt.add_experimental_option("prefs", prefs) browser = webdriver.Chrome(executable_path="H:\chromedriver.exe", chrome_options=chrom...
31.5
139
0.780664
93
693
5.623656
0.645161
0.051625
0.091778
0
0
0
0
0
0
0
0
0.007937
0.090909
693
22
140
31.5
0.822222
0.443001
0
0
0
0
0.246032
0.124339
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
de16d40373757db432c5c7a3e7d57eeddc1025cc
1,745
py
Python
tests/test_generators_rst.py
dbaty/soho
3fe67d3dc52919751217d6e73be436c3e291ab04
[ "BSD-3-Clause" ]
null
null
null
tests/test_generators_rst.py
dbaty/soho
3fe67d3dc52919751217d6e73be436c3e291ab04
[ "BSD-3-Clause" ]
1
2015-10-11T10:34:08.000Z
2015-10-11T10:34:08.000Z
tests/test_generators_rst.py
dbaty/soho
3fe67d3dc52919751217d6e73be436c3e291ab04
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase class TestRSTGenerator(TestCase): def _make_one(self): from soho.generators.rst import RSTGenerator return RSTGenerator() def _call_generate(self, filename): import os.path generator = self._make_one() here = os.path.dirname(__file__) ...
37.12766
79
0.581089
208
1,745
4.730769
0.341346
0.106707
0.04878
0.065041
0.367886
0.317073
0.23374
0.168699
0.168699
0.115854
0
0.006173
0.257307
1,745
46
80
37.934783
0.753086
0
0
0.052632
1
0.026316
0.302579
0.155874
0
0
0
0
0.184211
1
0.157895
false
0
0.078947
0
0.315789
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
de269b1d0a4fe87a69767fba8b3e00ccf68b4d65
6,543
py
Python
admin.py
ericholscher/pypi
4c7c13bd2061d99bbf11a803ac7a7afe3740e365
[ "BSD-3-Clause" ]
1
2015-11-08T11:31:07.000Z
2015-11-08T11:31:07.000Z
admin.py
ericholscher/pypi
4c7c13bd2061d99bbf11a803ac7a7afe3740e365
[ "BSD-3-Clause" ]
null
null
null
admin.py
ericholscher/pypi
4c7c13bd2061d99bbf11a803ac7a7afe3740e365
[ "BSD-3-Clause" ]
null
null
null
import sys, os, urllib, StringIO, traceback, cgi, binascii, getopt, shutil import zipfile, gzip, tarfile #sys.path.append('/usr/local/pypi/lib') import store, config def set_password(store, name, pw): """ Reset the user's password and send an email to the address given. """ user = store.get_user(name.str...
35.367568
97
0.599419
869
6,543
4.406214
0.227848
0.02925
0.039175
0.016715
0.265343
0.188561
0.186994
0.181771
0.181771
0.181771
0
0.003356
0.271435
6,543
184
98
35.559783
0.799874
0.005808
0
0.189542
0
0
0.214599
0.003414
0
0
0
0
0.006536
0
null
null
0.019608
0.019608
null
null
0.091503
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de2838f69cfe04090e0142bb22b24b01a4243cd5
948
py
Python
setup.py
povilasb/udptest
3d16d2e6509e008b37775e7784af54b6edb6633e
[ "MIT" ]
2
2017-11-17T09:10:41.000Z
2019-09-20T21:50:08.000Z
setup.py
povilasb/udptest
3d16d2e6509e008b37775e7784af54b6edb6633e
[ "MIT" ]
null
null
null
setup.py
povilasb/udptest
3d16d2e6509e008b37775e7784af54b6edb6633e
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages def requirements() -> list: return [ 'click==6.7', 'curio==0.8', ] setup( name='udptest', version='0.1.0', description='UDP benchmarking/testing tool.', long_description=open('README.rst').read(), url='https://github.com/povilas...
25.621622
49
0.582278
93
948
5.860215
0.784946
0.044037
0
0
0
0
0
0
0
0
0
0.017094
0.259494
948
36
50
26.333333
0.759259
0
0
0
0
0
0.433544
0.022152
0
0
0
0
0
1
0.03125
true
0
0.03125
0.03125
0.09375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
de31ea78bbeb185adcdcced18fcb297d6af4dc71
447
py
Python
phrasebook/middleware.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
1
2020-11-10T17:31:56.000Z
2020-11-10T17:31:56.000Z
phrasebook/middleware.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
null
null
null
phrasebook/middleware.py
DanCatchpole/phrasebook-django
4f85ec40626cbb97c659448ee06f2291c8f2918b
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from .models import UserLanguage class FirstLoginMiddleware(object): def process_request(self, request): if request.user.is_authenticated: langs = UserLanguage.objects.filter(user=request.user) if langs.__len__() == 0: return r...
27.9375
66
0.680089
49
447
6.020408
0.612245
0.074576
0
0
0
0
0
0
0
0
0
0.002933
0.237136
447
15
67
29.8
0.86217
0
0
0
0
0
0.049217
0.049217
0
0
0
0
0
1
0.181818
false
0.090909
0.181818
0
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
de3555aacf51f612d0e7cb4e5d614fc7db59f6c9
4,022
py
Python
scanner.py
Darchiv/scambus
0a81a67b76a5ec5117d56a4c05c4392696eb3f06
[ "MIT" ]
22
2015-08-21T11:58:20.000Z
2021-12-28T04:50:05.000Z
scanner.py
Darchiv/scambus
0a81a67b76a5ec5117d56a4c05c4392696eb3f06
[ "MIT" ]
5
2017-02-26T14:22:53.000Z
2021-02-11T00:47:48.000Z
scanner.py
Darchiv/scambus
0a81a67b76a5ec5117d56a4c05c4392696eb3f06
[ "MIT" ]
14
2015-04-13T08:02:18.000Z
2021-12-16T14:08:54.000Z
#! /usr/bin/env python2.7 import getopt, sys, time, util from wmbus import WMBusFrame from Crypto.Cipher import AES def main(argv): samplefile = '' interface = '/dev/ttyUSB3' usagetext = 'scanner.py -hv -i <interface>' verbosity = 0 # setup known keys dictionarry by their device id ...
31.421875
92
0.458478
446
4,022
4.09417
0.408072
0.049288
0.069003
0.085433
0.101862
0.066265
0.05586
0.05586
0.05586
0.026287
0
0.032987
0.449776
4,022
127
93
31.669291
0.792137
0.134013
0
0.206349
0
0.031746
0.096101
0.050414
0
0
0.004726
0.007874
0
0
null
null
0
0.047619
null
null
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
de3618687057494d918d8f6f783dfd78edbb7ce5
828
py
Python
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
1
2019-02-21T14:47:40.000Z
2019-02-21T14:47:40.000Z
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
2
2015-07-11T03:32:35.000Z
2015-08-26T09:29:40.000Z
setup.py
ntamas/python-selecta
bc9a11f288df427ceb126aa994ac3810685e2d94
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from selecta import __version__ from setuptools import setup options = dict( name='python-selecta', version=__version__, url='http://github.com/ntamas/python-selecta', description='Python port of @garybernhardt/selecta', license='MIT', author='T...
20.195122
56
0.607488
82
828
5.926829
0.731707
0.049383
0
0
0
0
0
0
0
0
0
0.00321
0.247585
828
40
57
20.7
0.776886
0.056763
0
0
0
0
0.412596
0.05527
0
0
0
0.025
0
1
0
false
0
0.074074
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1