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
edd68c9197c8735ef24f38e689cc0aa841279853
1,067
py
Python
dstc8_reddit/validation.py
muyeby/Reddit-Dialogue-Extractor
c8d48a8640d57ab0076aa2e59eb5282e9afa06a1
[ "MIT" ]
null
null
null
dstc8_reddit/validation.py
muyeby/Reddit-Dialogue-Extractor
c8d48a8640d57ab0076aa2e59eb5282e9afa06a1
[ "MIT" ]
null
null
null
dstc8_reddit/validation.py
muyeby/Reddit-Dialogue-Extractor
c8d48a8640d57ab0076aa2e59eb5282e9afa06a1
[ "MIT" ]
null
null
null
from pydantic import BaseModel, validator from typing import List from dstc8_reddit.config import RedditConfig from dstc8_reddit.constants import Patterns class SessionItem(BaseModel): id: str user_id: str bot_id: str domain: str task_id: str turns: List[str] @validator("id", "task_id", ...
26.675
61
0.620431
147
1,067
4.387755
0.421769
0.031008
0.062016
0.052713
0.046512
0.046512
0
0
0
0
0
0.006369
0.264292
1,067
39
62
27.358974
0.815287
0
0
0.125
0
0
0.114339
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.59375
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
edd8baff3086bbd2825d3341b482613e0e0d44b3
538
py
Python
math/fibonacci.py
demirantay/algorithms
eb1573b00c60c0368f387fb5c43620e6fd7dcbd9
[ "MIT" ]
1
2021-09-14T14:26:55.000Z
2021-09-14T14:26:55.000Z
math/fibonacci.py
demirantay/algorithms
eb1573b00c60c0368f387fb5c43620e6fd7dcbd9
[ "MIT" ]
null
null
null
math/fibonacci.py
demirantay/algorithms
eb1573b00c60c0368f387fb5c43620e6fd7dcbd9
[ "MIT" ]
2
2020-05-27T21:55:53.000Z
2021-07-27T06:17:58.000Z
def fibonacci(n): """ Def: In mathematics, the Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and characterized by the fact that every number after the first two is the sum of the two preceding ones: `0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144,...
33.625
79
0.652416
81
538
4.271605
0.555556
0.294798
0.104046
0
0
0
0
0
0
0
0
0.064039
0.245353
538
15
80
35.866667
0.788177
0.526022
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
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
edda0ad049b9fdc7c98c12377619db504e4374b5
968
py
Python
final_project/machinetranslation/tests.py
tejrajmeher/python_language_translator
8a1f3242c685167f0471bec8029f07bf3fac5e85
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
tejrajmeher/python_language_translator
8a1f3242c685167f0471bec8029f07bf3fac5e85
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/tests.py
tejrajmeher/python_language_translator
8a1f3242c685167f0471bec8029f07bf3fac5e85
[ "Apache-2.0" ]
null
null
null
from translator import * import unittest print("\n2 tests for each method") print(english_to_french("what is your name")) print(english_to_french("how are you")) print(french_to_english("quel est ton nom")) print(french_to_english("Comment allez-vous")) print("\ntest for null input") print(english_to_french('')) p...
28.470588
88
0.72314
135
968
5.007407
0.348148
0.079882
0.133136
0.118343
0.400888
0.400888
0.400888
0.106509
0.106509
0
0
0.003636
0.147727
968
34
89
28.470588
0.815758
0
0
0.086957
0
0
0.27451
0
0
0
0
0
0.173913
1
0.086957
false
0
0.086957
0
0.26087
0.521739
0
0
0
null
0
0
0
0
0
0
0
0
0
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
eddcf9e5f3bd52298ccbabcb10bf6137d1a6ed15
1,325
py
Python
L1TriggerConfig/L1GtConfigProducers/test/L1GtVhdlWriter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
L1TriggerConfig/L1GtConfigProducers/test/L1GtVhdlWriter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
L1TriggerConfig/L1GtConfigProducers/test/L1GtVhdlWriter_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# cfg file to write the VHDL templates import FWCore.ParameterSet.Config as cms # process process = cms.Process("L1GtVhdlWriterTest") # number of events and source process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.source = cms.Source("EmptySource") # configuration process.load("L...
29.444444
104
0.781132
141
1,325
7.276596
0.432624
0.093567
0.152047
0.263158
0.337232
0.245614
0.132554
0
0
0
0
0.055743
0.106415
1,325
44
105
30.113636
0.810811
0.329811
0
0.095238
0
0
0.305747
0.245977
0
0
0
0
0
1
0
false
0
0.047619
0
0.047619
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
eddd4358e1b30629412e4ef4c9cd053c635cba80
794
py
Python
stla_lite/timesheets/migrations/0003_auto_20171004_1641.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
null
null
null
stla_lite/timesheets/migrations/0003_auto_20171004_1641.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
1
2017-10-04T18:34:26.000Z
2017-10-04T18:34:26.000Z
stla_lite/timesheets/migrations/0003_auto_20171004_1641.py
401ode/stla-lite
6355b477e729ba8c378285f08cc01410224341b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-10-04 20:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('timesheets', '0002_auto_20171003_1408'), ] operations = [ migrations.AlterF...
37.809524
377
0.61461
89
794
5.325843
0.820225
0.075949
0.084388
0
0
0
0
0
0
0
0
0.054517
0.191436
794
20
378
39.7
0.683801
0.085642
0
0
1
0
0.326418
0.031812
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
edde49a8fea0bad51b04d0bf96e2fc32d6b1073c
3,059
py
Python
controllers/default.py
HumbertoDiego/w2p-ajustamento-redes-nivelamento
a54f850f7834a8798ab729720079a6a25c295eac
[ "MIT" ]
null
null
null
controllers/default.py
HumbertoDiego/w2p-ajustamento-redes-nivelamento
a54f850f7834a8798ab729720079a6a25c295eac
[ "MIT" ]
null
null
null
controllers/default.py
HumbertoDiego/w2p-ajustamento-redes-nivelamento
a54f850f7834a8798ab729720079a6a25c295eac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def index(): return locals() def ajunivgeo(): rows = db(db.successcount).select() # acessa o banco de dadose seleciona o valor de sucessos sucessos=int(rows[0].contador) return locals() def executar(): import NivParamet import os, time form = SQLFORM.factory(Field(...
44.333333
136
0.61883
372
3,059
5.048387
0.349462
0.037274
0.051118
0.044728
0.322684
0.322684
0.280085
0.280085
0.280085
0.258786
0
0.018876
0.255312
3,059
68
137
44.985294
0.805531
0.20693
0
0.288462
0
0
0.115912
0
0
0
0
0
0
0
null
null
0
0.038462
null
null
0.057692
0
0
0
null
0
0
0
0
0
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
ede0cbd16dff49ecbea68a95cac5a1915027bea6
335
py
Python
AI_random.py
lifei96/Chinese-Chess-AI
e269798012c75779a7bbeab151baf033b16a6d69
[ "MIT" ]
20
2017-12-07T09:54:51.000Z
2022-03-26T17:49:35.000Z
AI_random.py
lifei96/Chinese-Chess-AI
e269798012c75779a7bbeab151baf033b16a6d69
[ "MIT" ]
null
null
null
AI_random.py
lifei96/Chinese-Chess-AI
e269798012c75779a7bbeab151baf033b16a6d69
[ "MIT" ]
6
2017-12-07T09:54:52.000Z
2021-01-23T12:44:38.000Z
# random AI by Fei Li from AI_base import * import random class AI_random(AI_base): def __init__(self): AI_base.__init__(self) def select_move(self, board, is_red): moves = board.get_all_moves(is_red) if moves is not []: return random.choice(moves) else: ...
19.705882
43
0.614925
48
335
3.9375
0.541667
0.095238
0
0
0
0
0
0
0
0
0
0
0.304478
335
16
44
20.9375
0.811159
0.056716
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
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
0
0
0
1
0
0
1
edf3747fd256659ee8a1c64ddcd7564f4b892814
1,918
py
Python
pyot/pipeline/handler.py
andrewdge/Pyot
a0b44a4462fd643bb21fbdc349beb9546543997c
[ "MIT" ]
1
2021-02-17T01:02:08.000Z
2021-02-17T01:02:08.000Z
pyot/pipeline/handler.py
bangingheads/Pyot
d133e93d96b6f51a3e22da182b9a9d738442e760
[ "MIT" ]
null
null
null
pyot/pipeline/handler.py
bangingheads/Pyot
d133e93d96b6f51a3e22da182b9a9d738442e760
[ "MIT" ]
null
null
null
import copy class ErrorHandler: default_handler = { 204 : ("T", []), 400 : ("T", []), 401 : ("T", []), 404 : ("T", []), 403 : ("T", []), 405 : ("T", []), 408 : ("E", [3, 3]), 429 : ("E", [3, 3]), 500 : ("E", [3, 3]), 502 : ("E", [3, 3...
38.36
126
0.486444
220
1,918
4.218182
0.345455
0.012931
0.019397
0.161638
0.300647
0.122845
0.090517
0.090517
0
0
0
0.053897
0.37122
1,918
49
127
39.142857
0.715589
0
0
0
0
0.021739
0.25756
0
0
0
0
0
0
1
0.021739
false
0
0.021739
0
0.130435
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
edfa2c02089790f0c052546f37a38da381adca1c
607
py
Python
discoserver/clean.py
futurice/gif-disco
4295abe02c6001d3652a63c11b0b62e56d5717c7
[ "MIT" ]
11
2016-03-31T10:13:05.000Z
2022-01-11T19:33:55.000Z
discoserver/clean.py
futurice/gif-disco
4295abe02c6001d3652a63c11b0b62e56d5717c7
[ "MIT" ]
1
2016-03-31T10:28:02.000Z
2016-03-31T10:28:02.000Z
discoserver/clean.py
futurice/gif-disco
4295abe02c6001d3652a63c11b0b62e56d5717c7
[ "MIT" ]
3
2016-03-31T10:01:56.000Z
2018-04-24T22:48:28.000Z
import shutil import os import glob def main(): script_dir = os.path.dirname(os.path.realpath(__file__)) os.chdir(script_dir) f = open('gifs.json', 'w') f.write('{"visible": [], "all": {}, "lastAddedId": null}') f.close() gif_dir = os.path.join(script_dir, 'static/img/gifs') cleaned_gif...
22.481481
73
0.634267
90
607
3.988889
0.433333
0.083565
0.075209
0.066852
0.189415
0.189415
0.189415
0.189415
0.189415
0
0
0
0.196046
607
26
74
23.346154
0.735656
0
0
0
0
0
0.203306
0.038017
0
0
0
0
0
0
null
null
0
0.176471
null
null
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
1
0
0
0
0
0
0
0
0
1
edfa8f0e51de67b3028f4270862650668a0be195
1,489
py
Python
dnsdb_common/library/exception.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
378
2019-01-22T02:16:28.000Z
2022-03-31T01:34:27.000Z
dnsdb_common/library/exception.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
51
2019-01-23T03:15:16.000Z
2021-05-08T02:22:23.000Z
dnsdb_common/library/exception.py
baiyongjie/open_dnsdb
b5b7a69e439080cd6d85b692825ed56cd8f5c80a
[ "Apache-2.0" ]
139
2019-01-22T02:43:39.000Z
2022-02-21T09:16:01.000Z
# -*- coding: utf-8 -*- BADREQUEST = 400 UNAUTHORIZED = 401 FORBIDDEN = 403 GONE = 410 TOOMANYREQUESTS = 412 class DnsdbException(Exception): def __init__(self, message, errcode=500, detail=None, msg_ch=u''): self.message = message self.errcode = errcode self.detail = detail self....
29.196078
94
0.701813
177
1,489
5.548023
0.237288
0.056008
0.06721
0.10998
0.425662
0.313646
0.244399
0.244399
0.089613
0.089613
0
0.020392
0.176629
1,489
50
95
29.78
0.780587
0.014103
0
0.060606
0
0
0.021146
0
0
0
0
0
0
1
0.242424
false
0.030303
0
0.060606
0.515152
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
61006caffc715e77b04d75438ee3e36489ec77d7
364
py
Python
apps/aggregate/stores/migrations/0008_rename_text_storetext_contents.py
KimSoungRyoul/DjangoBackendProgramming
b346e04ce85388beba788bd3e6a405635ed913dc
[ "MIT" ]
null
null
null
apps/aggregate/stores/migrations/0008_rename_text_storetext_contents.py
KimSoungRyoul/DjangoBackendProgramming
b346e04ce85388beba788bd3e6a405635ed913dc
[ "MIT" ]
null
null
null
apps/aggregate/stores/migrations/0008_rename_text_storetext_contents.py
KimSoungRyoul/DjangoBackendProgramming
b346e04ce85388beba788bd3e6a405635ed913dc
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-07 08:03 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('stores', '0007_auto_20211107_0758'), ] operations = [ migrations.RenameField( model_name='storetext', old_name='text', ...
20.222222
47
0.587912
39
364
5.333333
0.846154
0
0
0
0
0
0
0
0
0
0
0.121569
0.299451
364
17
48
21.411765
0.694118
0.123626
0
0
1
0
0.157729
0.072555
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
610458f4b24e959cbb161e4cd023f5c3f3e2b331
606
py
Python
Question Set 5 - (Classess & Objects)/2/event.py
Randula98/Python-For-Beginners
e41a6014be882f01c6ccdcbe2167e2b581646eee
[ "MIT" ]
6
2021-12-14T17:52:11.000Z
2021-12-19T20:22:44.000Z
Question Set 5 - (Classess & Objects)/2/event.py
GIHAA/Python-For-Beginners
e41a6014be882f01c6ccdcbe2167e2b581646eee
[ "MIT" ]
null
null
null
Question Set 5 - (Classess & Objects)/2/event.py
GIHAA/Python-For-Beginners
e41a6014be882f01c6ccdcbe2167e2b581646eee
[ "MIT" ]
2
2021-12-19T18:50:30.000Z
2022-01-01T23:05:18.000Z
#create class class Event: #create class variables def __init__(self , eventId , eventType , themeColor , location): self.eventId = eventId self.eventType = eventType self.themeColor = themeColor self.location = location #define class functions def displayEventDetails(se...
33.666667
89
0.632013
61
606
6.213115
0.377049
0.087071
0
0
0
0
0
0
0
0
0
0
0.265677
606
18
89
33.666667
0.851685
0.092409
0
0
0
0
0.125912
0
0
0
0
0
0
1
0.230769
false
0
0
0
0.307692
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
0
1
0
0
0
0
0
0
0
1
6105f7115c4aedeb5b617b07a14107cb7b1b9adf
572
py
Python
pydaqmx_helper/examples/Digital_IO.py
JohnQuinn1/PyDAQmx_Helper
0eda9ac36eed4ec6d9f5b930274079912635cb1c
[ "MIT" ]
null
null
null
pydaqmx_helper/examples/Digital_IO.py
JohnQuinn1/PyDAQmx_Helper
0eda9ac36eed4ec6d9f5b930274079912635cb1c
[ "MIT" ]
null
null
null
pydaqmx_helper/examples/Digital_IO.py
JohnQuinn1/PyDAQmx_Helper
0eda9ac36eed4ec6d9f5b930274079912635cb1c
[ "MIT" ]
2
2019-07-23T15:46:38.000Z
2019-11-02T23:25:40.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function # Block below for Python 2&3 support try: input = raw_input except NameError: pass """ Example of using Digital IO to write across both ports 0 and 1 of the Usb 6008""" from pydaqmx_helper.digital_io import Digital_IO myDigital_...
26
86
0.688811
83
572
4.60241
0.674699
0.094241
0
0
0
0
0
0
0
0
0
0.01978
0.204545
572
21
87
27.238095
0.81978
0.127622
0
0
0
0
0.192683
0
0
0
0
0
0
1
0
false
0.076923
0.153846
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
610a685b42c577d4433c08fd2a66a6a38c405de4
741
py
Python
Python Programs/string-word-counter.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
2
2021-06-26T21:50:59.000Z
2021-09-18T04:55:51.000Z
Python Programs/string-word-counter.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
Python Programs/string-word-counter.py
muhammad-masood-ur-rehman/Skillrack
71a25417c89d0efab40ee6229ccd758b26ae4312
[ "CC0-1.0" ]
null
null
null
String Word Counter Given a string S as input which consists of multiple words separated by a space, the program must print the count C of the words which are repeated exactly N times. The comparison of the words is case sensitive. Input Format: The first line contains S The second line contains N Output Format: The f...
26.464286
211
0.761134
141
741
4.007092
0.468085
0.042478
0.035398
0.056637
0.290265
0.113274
0.113274
0.113274
0
0
0
0.021242
0.174089
741
27
212
27.444444
0.900327
0
0
0.148148
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
610c19a0d6836d06b1d81c7b378872e9cf99524b
689
py
Python
piece.py
danielchang2002/MinesweeperBot
ae46d896d15a614b9512b692916a60e7b50df2d8
[ "MIT" ]
8
2021-02-25T06:31:18.000Z
2022-01-06T23:14:41.000Z
piece.py
danielchang2002/MinesweeperBot
ae46d896d15a614b9512b692916a60e7b50df2d8
[ "MIT" ]
1
2021-07-25T17:39:46.000Z
2021-07-25T22:48:41.000Z
piece.py
danielchang2002/MinesweeperBot
ae46d896d15a614b9512b692916a60e7b50df2d8
[ "MIT" ]
3
2022-02-05T09:39:29.000Z
2022-03-14T12:22:29.000Z
class Piece: def __init__(self, row, col): self.clicked = False self.numAround = -1 self.flagged = False self.row, self.col = row, col def setNeighbors(self, neighbors): self.neighbors = neighbors def getNumFlaggedAround(self): num = 0 for n in self...
24.607143
40
0.548621
82
689
4.560976
0.317073
0.173797
0.048128
0.080214
0.21123
0.160428
0.160428
0.160428
0.160428
0
0
0.016393
0.380261
689
28
41
24.607143
0.859485
0
0
0.304348
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0
0
0.434783
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
610f2ac48e3b33ec34863f47d19878fbe9a08dac
2,509
py
Python
searchengine/db.py
qoda/python-searchengine
d514ddbc0be9755ed48143b38dd4591d0123b1bc
[ "BSD-3-Clause" ]
19
2015-01-21T14:46:20.000Z
2021-04-28T22:46:31.000Z
searchengine/db.py
gourav245/python-searchengine
d514ddbc0be9755ed48143b38dd4591d0123b1bc
[ "BSD-3-Clause" ]
1
2020-03-07T08:41:20.000Z
2020-03-11T09:16:59.000Z
searchengine/db.py
gourav245/python-searchengine
d514ddbc0be9755ed48143b38dd4591d0123b1bc
[ "BSD-3-Clause" ]
15
2015-03-28T07:44:52.000Z
2021-01-28T23:45:20.000Z
#!/usr/bin/env python from pymongo import Connection from searchengine.logger import Logging from searchengine.settings import MONGO_HOST, MONGO_PORT, MONGO_NAME class MongoDB(object): """ A simple MongoDB wrapper which establishes a connection to a specified host and port, adds, update and delete data a...
38.015152
94
0.626943
324
2,509
4.719136
0.259259
0.082407
0.117724
0.039241
0.234794
0.215827
0.142577
0.100719
0.100719
0.100719
0
0
0.271024
2,509
65
95
38.6
0.835976
0.213232
0
0.088235
0
0
0.054098
0
0
0
0
0
0
1
0.176471
false
0
0.088235
0
0.558824
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
611178b91984eb322a250cbc2e64afa93062b73f
647
py
Python
API.py
dacom-dark-sun/dacom-client
0d830bb9d5593c36c73f0bab5892eb937f5a345e
[ "MIT" ]
null
null
null
API.py
dacom-dark-sun/dacom-client
0d830bb9d5593c36c73f0bab5892eb937f5a345e
[ "MIT" ]
null
null
null
API.py
dacom-dark-sun/dacom-client
0d830bb9d5593c36c73f0bab5892eb937f5a345e
[ "MIT" ]
null
null
null
import slumber class _CustomResourse(slumber.Resource): def _request(self, *args, **kwargs): try: return super()._request(*args, **kwargs) except slumber.exceptions.HttpClientError as e: if hasattr(e, 'content'): # TODO Change exception message ...
24.884615
63
0.588872
70
647
5.185714
0.514286
0.082645
0.077135
0
0
0
0
0
0
0
0
0
0.287481
647
25
64
25.88
0.787419
0.044822
0
0
0
0
0.045455
0
0
0
0
0.04
0
1
0.125
false
0
0.0625
0
0.4375
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
1
0
0
0
0
0
0
0
0
0
0
1
611379853f9a49e9f72b6f65757ea434c379c9b0
239
py
Python
message/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
message/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
message/urls.py
kilinger/firon-qhcst
057e5b65f454083599502c3b178c88399f11c8b7
[ "BSD-3-Clause" ]
null
null
null
#-*- coding: utf-8 -*- from django.conf.urls import patterns, url urlpatterns = patterns( 'message.views', url(r'^details/$', 'message_details', name="message_details"), url(r'^list/$', 'message_list', name="message_list"), )
26.555556
66
0.656904
30
239
5.1
0.566667
0.052288
0
0
0
0
0
0
0
0
0
0.004854
0.138075
239
9
67
26.555556
0.737864
0.087866
0
0
0
0
0.385321
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
6115c97db032f68b8a4214179900855be4421dfc
409
py
Python
data_structure/dictionary/del.py
joselynzhao/Python-data-structure-and-algorithm
bf413e58b282a9ab767ce6706f2fc53518e64e4e
[ "MIT" ]
1
2020-04-18T02:39:42.000Z
2020-04-18T02:39:42.000Z
data_structure/dictionary/del.py
joselynzhao/Python-data-structure-and-algorithm
bf413e58b282a9ab767ce6706f2fc53518e64e4e
[ "MIT" ]
null
null
null
data_structure/dictionary/del.py
joselynzhao/Python-data-structure-and-algorithm
bf413e58b282a9ab767ce6706f2fc53518e64e4e
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- ''' @AUTHOR:Joselyn Zhao @CONTACT:zhaojing17@foxmail.com @HOME_PAGE:joselynzhao.top @SOFTWERE:PyCharm @FILE:del.py @TIME:2020/4/29 19:57 @DES: ''' dict = {'shuxue':99,'yuwen':99,'yingyu':99} print('shuxue:',dict['shuxue']) print('yuwen:',dict['yuwen']) print('yingyu:',dict['yin...
19.47619
43
0.667482
61
409
4.459016
0.639344
0.073529
0
0
0
0
0
0
0
0
0
0.066489
0.080685
409
21
44
19.47619
0.656915
0.432763
0
0.222222
0
0
0.3125
0
0
0
0
0
0
1
0
false
0
0
0
0
0.555556
0
0
0
null
0
0
0
0
0
0
0
0
0
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
611b60de3ac587085edc36085d3e5b81710e8181
4,403
py
Python
program #2 (DIRT)/source/program2/database.py
flyaway1217/CS-6390-Information-Extraction
4e49aa6232008deaf389769a169443ebc9c5cee8
[ "MIT" ]
null
null
null
program #2 (DIRT)/source/program2/database.py
flyaway1217/CS-6390-Information-Extraction
4e49aa6232008deaf389769a169443ebc9c5cee8
[ "MIT" ]
null
null
null
program #2 (DIRT)/source/program2/database.py
flyaway1217/CS-6390-Information-Extraction
4e49aa6232008deaf389769a169443ebc9c5cee8
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 # -*- coding:utf-8 -*- # # Author: Flyaway - flyaway1217@gmail.com # Blog: zhouyichu.com # # Python release: 3.4.5 # # Date: 2017-02-28 13:43:07 # Last modified: 2017-03-01 17:02:35 """ Database for DIRT """ class Path: """Path is the real data structure that store in the database. ""...
25.9
78
0.472632
504
4,403
4.003968
0.267857
0.044599
0.017839
0.013875
0.067889
0.062438
0.055501
0.024777
0
0
0
0.014488
0.294572
4,403
169
79
26.053254
0.635222
0.233931
0
0.106667
0
0
0.020447
0
0
0
0
0
0.013333
1
0.253333
false
0
0
0.08
0.453333
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
611c4ce0f6c4e700d0ae8b7228446052277c1a2b
344
py
Python
server.py
roberttgt/Sockets
47575625dee6e135fa9937fe15e5deda559ce37c
[ "MIT" ]
null
null
null
server.py
roberttgt/Sockets
47575625dee6e135fa9937fe15e5deda559ce37c
[ "MIT" ]
null
null
null
server.py
roberttgt/Sockets
47575625dee6e135fa9937fe15e5deda559ce37c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import socket server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind(("",9999)) server.listen(1) sc, addr = server.accept() while True: receive = sc.recv(1024) if receive == "close": break print str(addr[0]) + " say ", receive sc.send(receive) sc...
12.740741
58
0.636628
48
344
4.520833
0.645833
0.124424
0
0
0
0
0
0
0
0
0
0.036496
0.203488
344
26
59
13.230769
0.755474
0.05814
0
0
0
0
0.03096
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
611d65255d29bcbbbebcd59ce7cfd7bf192abb22
7,542
py
Python
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/arcsdk/ade/objects.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/arcsdk/ade/objects.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
naoqi-sdk-2.5.5.5-linux64/lib/python2.7/site-packages/arcsdk/ade/objects.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
from arcsdk.resource import Resource, Collection class Administrable(Resource): def to_json(self): # Workaround: server expect admins as a comma separated # list of username admins = getattr(self, 'admins', []) if len(admins): admins = ",".join([a.username for a in adm...
25.653061
78
0.582869
783
7,542
5.490421
0.226054
0.056525
0.071179
0.044196
0.159805
0.149104
0.136543
0.115608
0.092812
0.021866
0
0.000949
0.301644
7,542
293
79
25.740614
0.815265
0.073853
0
0.314433
0
0
0.065746
0
0
0
0
0
0
1
0.07732
false
0.139175
0.005155
0
0.329897
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
611eb9b6f775d2fe89fc4ac84911d25b5c66b4e3
13,723
py
Python
vtmanager.py
Br1an6/Virtual-Time-Manager
c2e31ac1bf71a470dcf4057d741b924f3d31276c
[ "MIT" ]
null
null
null
vtmanager.py
Br1an6/Virtual-Time-Manager
c2e31ac1bf71a470dcf4057d741b924f3d31276c
[ "MIT" ]
null
null
null
vtmanager.py
Br1an6/Virtual-Time-Manager
c2e31ac1bf71a470dcf4057d741b924f3d31276c
[ "MIT" ]
null
null
null
##################### # VT Manager # ##################### # yliu301@iit.edu # ##################### # EMB VT # # Version 0.9.1 # ##################### import time, datetime import random import ast import os, sys, signal import multiprocessing import logging import subprocess # Watch out for sh...
35.459948
135
0.592946
1,614
13,723
4.887237
0.228625
0.074163
0.026369
0.009508
0.363844
0.308063
0.252409
0.217165
0.201572
0.201572
0
0.015558
0.273993
13,723
386
136
35.551813
0.776172
0.101508
0
0.241706
0
0
0.149328
0.010755
0
0
0
0.005181
0
0
null
null
0.009479
0.047393
null
null
0.104265
0
0
0
null
0
0
0
0
0
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
61214f0205446dfb5a82d9ff0e9658dfc87388f1
1,324
py
Python
FrancollaE114-18.py
Ethan-Francolla/Double-Diamonds
ca8cd7c340365721fa9ceef75db0f87cb713adae
[ "MIT" ]
4
2021-11-26T18:40:00.000Z
2022-02-17T04:17:47.000Z
FrancollaE114-18.py
Ethan-Francolla/Double-Diamonds
ca8cd7c340365721fa9ceef75db0f87cb713adae
[ "MIT" ]
null
null
null
FrancollaE114-18.py
Ethan-Francolla/Double-Diamonds
ca8cd7c340365721fa9ceef75db0f87cb713adae
[ "MIT" ]
null
null
null
#Program to draw peaks #Import turtle libary for drawing import turtle as trtl #Set initial conditions for painter object painter = trtl.Turtle() painter.penup() painter.pensize(3) painter.speed(0) painter.goto(-200, 0) painter.pendown() #Set initial postions and movement values x = -200 y = 0 move_x...
21.015873
74
0.629154
226
1,324
3.615044
0.252212
0.0612
0.058752
0.079559
0.5459
0.531212
0.531212
0.531212
0.531212
0.531212
0
0.037618
0.27719
1,324
63
75
21.015873
0.816092
0.391994
0
0.738095
0
0
0
0
0
0
0
0
0
1
0
false
0
0.02381
0
0.02381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
612c895586184e8fd35be0ff8a9ba015592ded92
384
py
Python
strip_promt_nodes.py
MaxBenChrist/ipynb-to-jekyll-post
b27fd590041ebafb225e9b8bf757b3ccfdd28ecf
[ "MIT" ]
null
null
null
strip_promt_nodes.py
MaxBenChrist/ipynb-to-jekyll-post
b27fd590041ebafb225e9b8bf757b3ccfdd28ecf
[ "MIT" ]
null
null
null
strip_promt_nodes.py
MaxBenChrist/ipynb-to-jekyll-post
b27fd590041ebafb225e9b8bf757b3ccfdd28ecf
[ "MIT" ]
null
null
null
import lxml.etree as et import argparse parser = argparse.ArgumentParser() parser.add_argument("file") args = parser.parse_args() print(args.file) parser = et.XMLParser(resolve_entities=False) tree = et.parse(args.file, parser) for bad in tree.xpath("//[contains(@class,'prompt')]"): bad.getparent().remove(bad) p...
24
64
0.755208
55
384
5.181818
0.6
0.063158
0.098246
0
0
0
0
0
0
0
0
0
0.096354
384
15
65
25.6
0.821326
0
0
0
0
0
0.085938
0.075521
0
0
0
0
0
0
null
null
0
0.181818
null
null
0.181818
0
0
0
null
0
0
0
0
0
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
612e02cc62511d933bc184e99c5b9ca674ac22be
764
py
Python
sandcraft/music_mixer.py
jonathansessa/Sandcraft
22b3d0357a3b13b7a539ee52551f1e5b0c09a56e
[ "MIT" ]
3
2021-06-11T20:43:35.000Z
2021-06-16T20:01:36.000Z
sandcraft/music_mixer.py
jonathansessa/Sandcraft
22b3d0357a3b13b7a539ee52551f1e5b0c09a56e
[ "MIT" ]
null
null
null
sandcraft/music_mixer.py
jonathansessa/Sandcraft
22b3d0357a3b13b7a539ee52551f1e5b0c09a56e
[ "MIT" ]
null
null
null
import os from pygame import mixer class MusicMixer: def __init__(self): mixer.init() self.__foundParticle = mixer.Sound(os.path.join(os.path.dirname(__file__), 'soundFiles', 'newParticle.wav')) self.__foundParticle.set_volume(.05) self.__backgroundMusic = mixer.Sound(os.path.join(o...
30.56
117
0.675393
86
764
5.627907
0.406977
0.049587
0.049587
0.066116
0.194215
0.194215
0.194215
0.194215
0.194215
0.194215
0
0.014876
0.208115
764
24
118
31.833333
0.785124
0
0
0
0
0
0.064136
0
0
0
0
0
0
1
0.263158
false
0
0.105263
0
0.421053
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
b6258c9ff9e34eafecec58baca8d49bc034608db
1,129
py
Python
apps/db-api/app.py
Avitus27/member-manager
e398c6db9a5cb5d0183ac84834b1ac3e09f88bb5
[ "Apache-2.0" ]
null
null
null
apps/db-api/app.py
Avitus27/member-manager
e398c6db9a5cb5d0183ac84834b1ac3e09f88bb5
[ "Apache-2.0" ]
4
2020-05-16T13:54:31.000Z
2020-05-16T13:57:27.000Z
apps/db-api/app.py
Avitus27/member-manager
e398c6db9a5cb5d0183ac84834b1ac3e09f88bb5
[ "Apache-2.0" ]
null
null
null
import json import os from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL'] app.config['DEBUG'] = True app.config['TESTING'] = True app.config['CSRF_ENABLED'] = True app.config['SECRET_KEY'] = "u=M~[bf5bM0f2]m)_TsZjL[63...
25.659091
157
0.689991
165
1,129
4.551515
0.587879
0.083888
0.051931
0
0
0
0
0
0
0
0
0.032091
0.144376
1,129
43
158
26.255814
0.745342
0.091231
0
0
0
0.033333
0.27957
0.176931
0
0
0
0.023256
0
1
0.133333
false
0
0.166667
0.066667
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
b626dd9ec1f8b5f2d29e1eb67e11546deb9e73ee
1,093
py
Python
product/models.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
product/models.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
product/models.py
JuanFariasGit/crm
5ab322644cb988a916bf6b5e8ee79322a40f2601
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.db import models from django.urls import reverse class Product(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) item = models.CharField(max_length=100) code = models.CharField(max_length=13) unit_of_measure = models.CharFie...
32.147059
115
0.673376
140
1,093
5.078571
0.507143
0.042194
0.075949
0.101266
0
0
0
0
0
0
0
0.007928
0.192132
1,093
33
116
33.121212
0.797282
0
0
0
0
0
0.136322
0.036597
0
0
0
0
0
1
0.153846
false
0
0.115385
0.153846
0.807692
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
b630bf0779c36f05734992a922150df2013dbf8b
590
py
Python
ch9/9_3_rock_scissors_paper_loop.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch9/9_3_rock_scissors_paper_loop.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
ch9/9_3_rock_scissors_paper_loop.py
hajin-kim/2020-HighSchool-Python-Tutoring
352025a954bff37d21cc3d59e7d5e0f0269a1f17
[ "MIT" ]
null
null
null
import random score = 0 for i in range(3): computer = random.choice(["가위", "바위", "보"]) user = input("가위, 바위, 보: ") result = "" if computer == user: result = "비겼습니다!" elif computer == "가위": if user == "바위": result = "이겼습니다!" elif user == "보": result = "졌습니다!" elif computer == "바위": if user == "보":...
16.857143
44
0.535593
79
590
4
0.341772
0.139241
0.142405
0.18038
0
0
0
0
0
0
0
0.006772
0.249153
590
34
45
17.352941
0.706546
0
0
0.214286
0
0
0.145763
0
0
0
0
0
0
1
0
false
0
0.035714
0
0.035714
0.107143
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
b637a8e2da1c2362bdd0d10d92d5fde3a82ae12d
1,896
py
Python
KRR/surfplot.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
KRR/surfplot.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
KRR/surfplot.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jan 8 09:24:07 2019 @author: madsa """ from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import numpy as np import matplotlib import pickle import matplotlib.tri a...
27.085714
80
0.637131
285
1,896
4.168421
0.480702
0.011785
0.042929
0.032828
0.023569
0
0
0
0
0
0
0.029605
0.198312
1,896
70
81
27.085714
0.751974
0.106013
0
0
0
0
0.053125
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
b63a77dbfaba66039a31b467b88896aff5404b30
6,171
py
Python
tool/confGen.py
xianggong/m2c-llvm-devtools-host
98f41e3f51a8e294adfe3a6bebdae7614468bb55
[ "Apache-2.0" ]
null
null
null
tool/confGen.py
xianggong/m2c-llvm-devtools-host
98f41e3f51a8e294adfe3a6bebdae7614468bb55
[ "Apache-2.0" ]
null
null
null
tool/confGen.py
xianggong/m2c-llvm-devtools-host
98f41e3f51a8e294adfe3a6bebdae7614468bb55
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import argparse class SimConfig: # GPU configurations numCUs = 32 numL1s = 32 numL2s = 6 numMMs = 6 # L1 Cache configurations l1Sets = 64 l1Assoc = 4 l1BlockSz = 64 l1Lateny = 1 # L2 Cache configurations l2Sets = 128 l2Assoc = 16 ...
33.356757
75
0.600713
681
6,171
5.32746
0.237885
0.038589
0.094267
0.035281
0.19763
0.146913
0.109978
0.090959
0.090959
0.090959
0
0.024282
0.272565
6,171
184
76
33.538043
0.783916
0.03954
0
0.064286
0
0
0.137447
0.007608
0
0
0
0
0
0
null
null
0
0.014286
null
null
0.014286
0
0
0
null
0
0
0
0
0
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
b63bc2d8d6a87ae8ee7f2fd32b019b7d2b6f6791
1,903
py
Python
src/main/python/json/json_handler.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
src/main/python/json/json_handler.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
src/main/python/json/json_handler.py
photowey/pytest-dynamic-framework
4e7b6d74594191006b50831d42e7aae21e154d56
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # --------------------------------------------- # @file JSON # @description JSON # @author WcJun # @date 2021/08/02 # --------------------------------------------- import json class JSON(object): """ utilities function of JSON. """ @staticmethod def transferObject(body: o...
23.7875
62
0.533368
205
1,903
4.853659
0.239024
0.096482
0.112563
0.080402
0.687437
0.662312
0.60402
0.578894
0.578894
0.578894
0
0.008462
0.316868
1,903
79
63
24.088608
0.756923
0.375723
0
0.565217
0
0
0
0
0
0
0
0
0
1
0.304348
false
0
0.043478
0
0.695652
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
b640d31a9da73e894e746889b29f252610392331
1,204
py
Python
Example/E08_Slow dec quick inc.py
sanket7941/pyInstrument
74278e53b075418f155d0567410e03a8503f347f
[ "Unlicense" ]
2
2022-01-25T04:30:24.000Z
2022-02-23T11:24:40.000Z
Example/E08_Slow dec quick inc.py
sanket7941/pyInstrument
74278e53b075418f155d0567410e03a8503f347f
[ "Unlicense" ]
null
null
null
Example/E08_Slow dec quick inc.py
sanket7941/pyInstrument
74278e53b075418f155d0567410e03a8503f347f
[ "Unlicense" ]
3
2020-05-21T09:21:31.000Z
2021-01-17T08:32:49.000Z
"""" E-08 Slow decrease, quick increase of the supply voltage Purpose This test simulates the slow decrease of the battery voltage to 0 V and the sudden reapplication of the battery voltage, e.g., from a jump start source. """" import pyvisa as visa from pyinstrument import PSupply def test(volt, delay): ps...
20.066667
96
0.669435
204
1,204
3.936275
0.465686
0.024907
0.034869
0.047323
0.194271
0.194271
0.194271
0.194271
0.194271
0.194271
0
0.046778
0.200997
1,204
59
97
20.40678
0.787942
0.244186
0
0.322581
0
0
0.077728
0
0
0
0
0
0
0
null
null
0
0.064516
null
null
0.193548
0
0
0
null
0
0
0
0
0
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
b64149185a60cd01e1cbb570465211af3a5b372e
2,655
py
Python
60793752-extract-artwork-from-image/extract_artwork_ROI.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
3
2019-09-18T10:45:20.000Z
2021-09-18T08:36:49.000Z
60793752-extract-artwork-from-image/extract_artwork_ROI.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
1
2020-03-19T15:49:31.000Z
2020-03-30T14:54:03.000Z
60793752-extract-artwork-from-image/extract_artwork_ROI.py
nathancy/stackoverflow
e9e2e2b8fba61e41526638a13ac7ada6de2d7560
[ "MIT" ]
1
2021-04-08T19:30:42.000Z
2021-04-08T19:30:42.000Z
import cv2 class ExtractArtworkROI(object): def __init__(self): # Load image self.original_image = cv2.imread('1.png') self.clone = self.original_image.copy() cv2.namedWindow('image') cv2.setMouseCallback('image', self.extractROI) self.selected_ROI = False #...
36.875
236
0.59322
316
2,655
4.829114
0.316456
0.100262
0.222805
0.110092
0.266055
0.169069
0.110092
0.110092
0
0
0
0.029614
0.287759
2,655
71
237
37.394366
0.777366
0.123917
0
0.152174
0
0
0.057476
0
0
0
0
0
0
1
0.086957
false
0
0.021739
0.021739
0.152174
0.065217
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
b6425ac5abe47c283426a8733ded46857efcb27f
522
py
Python
phones/migrations/0005_auto_20210211_1844.py
ab3adel/React_Django
9c86eb64dbe5a2265a53f0dc1c33002634148ce5
[ "MIT" ]
null
null
null
phones/migrations/0005_auto_20210211_1844.py
ab3adel/React_Django
9c86eb64dbe5a2265a53f0dc1c33002634148ce5
[ "MIT" ]
null
null
null
phones/migrations/0005_auto_20210211_1844.py
ab3adel/React_Django
9c86eb64dbe5a2265a53f0dc1c33002634148ce5
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2021-02-11 16:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('phones', '0004_auto_20210211_1125'), ] operations = [ migrations.AlterField( mode...
26.1
131
0.628352
58
522
5.534483
0.689655
0.074766
0.087227
0.137072
0
0
0
0
0
0
0
0.079897
0.256705
522
19
132
27.473684
0.747423
0.086207
0
0
1
0
0.155702
0.050439
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
b6433673e0e5c291a3edd726ca6dc5d1278ed4e3
5,976
py
Python
profiles_api/views.py
santiagodandre/profiles-rest-api
60a7dd5801b06e8849e5f5937dc8a3d3241c1e08
[ "MIT" ]
null
null
null
profiles_api/views.py
santiagodandre/profiles-rest-api
60a7dd5801b06e8849e5f5937dc8a3d3241c1e08
[ "MIT" ]
null
null
null
profiles_api/views.py
santiagodandre/profiles-rest-api
60a7dd5801b06e8849e5f5937dc8a3d3241c1e08
[ "MIT" ]
null
null
null
from rest_framework.views import APIView # To return responses form API views from rest_framework.response import Response # List of HTTP state codes that can be used when returning responses from rest_framework import status from rest_framework import viewsets # Generate a random token from rest_framework.authentica...
40.653061
118
0.683066
719
5,976
5.599444
0.317107
0.045206
0.038003
0.029558
0.209637
0.138351
0.11997
0.10929
0.10929
0.10929
0
0.001969
0.235107
5,976
147
119
40.653061
0.878801
0.322791
0
0.175
0
0
0.129625
0
0
0
0
0
0
1
0.15
false
0
0.15
0
0.6875
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
b6451dfe083551eb726c871cd74e94add2e931a5
3,300
py
Python
Chapter13/Python/04-serialize-ml-models-in-power-query.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
25
2021-02-05T15:26:43.000Z
2022-03-20T10:07:02.000Z
Chapter13/Python/04-serialize-ml-models-in-power-query.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
null
null
null
Chapter13/Python/04-serialize-ml-models-in-power-query.py
PacktPublishing/Extending-Power-BI-with-Python-and-R
b20edc564960c9bafdb1b05212aad133e8253dae
[ "MIT" ]
22
2021-03-02T22:06:32.000Z
2022-03-15T13:17:11.000Z
import pickle import re import os import pandas as pd from pycaret.classification import * def serialize(obj): return obj.encode('latin1') def unserialize(obj): return obj.decode('latin1') def toPickle(obj): return pickle.dumps(obj, 0) def toUnpickle(obj): return pickle.loads(obj) def toCut(obj, w...
34.020619
127
0.726061
493
3,300
4.58215
0.271805
0.065073
0.092076
0.075697
0.257193
0.216467
0.193448
0.08942
0.042497
0.042497
0
0.011694
0.196667
3,300
96
128
34.375
0.840438
0.317273
0
0
0
0
0.057718
0.01387
0
0
0
0
0
1
0.142857
false
0
0.102041
0.122449
0.387755
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
b6476822e539b60bf45cad0992df16fac201deea
1,062
py
Python
src/libs/config.py
Leo-C/webshscr
1a5c202138a60f3bbf7b978168a2a1c404baf291
[ "MIT" ]
null
null
null
src/libs/config.py
Leo-C/webshscr
1a5c202138a60f3bbf7b978168a2a1c404baf291
[ "MIT" ]
null
null
null
src/libs/config.py
Leo-C/webshscr
1a5c202138a60f3bbf7b978168a2a1c404baf291
[ "MIT" ]
null
null
null
''' Copyright 2018 - LC This file is part of webshscr. webshscr is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. webshscr is distributed in...
27.947368
68
0.753296
162
1,062
4.864198
0.537037
0.019036
0.049492
0.072335
0.104061
0.071066
0
0
0
0
0
0.005794
0.187382
1,062
37
69
28.702703
0.9073
0.613936
0
0.142857
0
0
0.044776
0
0
0
0
0
0
1
0.214286
false
0
0.071429
0.071429
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
b64ac8b14e696efbef43b31d62a233b5a3d77fcb
916
py
Python
tests/ML/test_cluster.py
iwasakishuto/Keras-Imitation
8ac0cd7c8912d49d13b19a0182ad534c0781fbfe
[ "MIT" ]
4
2020-04-25T08:50:36.000Z
2020-04-26T04:49:16.000Z
tests/ML/test_cluster.py
iwasakishuto/Keras-Imitation
8ac0cd7c8912d49d13b19a0182ad534c0781fbfe
[ "MIT" ]
null
null
null
tests/ML/test_cluster.py
iwasakishuto/Keras-Imitation
8ac0cd7c8912d49d13b19a0182ad534c0781fbfe
[ "MIT" ]
null
null
null
# coding: utf-8 from kerasy.ML.cluster import DBSCAN from kerasy.utils import generateWholeCakes from kerasy.utils import cluster_accuracy num_clusters = 3 num_samples = 300 def get_test_data(): x_train, y_train = generateWholeCakes(num_classes=num_clusters*2, num_samples...
33.925926
69
0.539301
112
916
4.125
0.446429
0.090909
0.095238
0.077922
0
0
0
0
0
0
0
0.035587
0.386463
916
26
70
35.230769
0.786477
0.014192
0
0
1
0
0
0
0
0
0
0
0.045455
1
0.090909
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b64ec8db743453ec30d27fc4aad3182704bc1eee
380
py
Python
libs/public.py
lj2007331/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
25
2017-04-16T15:28:39.000Z
2018-11-20T06:02:01.000Z
libs/public.py
linuxeye/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
2
2018-04-13T12:26:39.000Z
2018-09-04T06:35:55.000Z
libs/public.py
lj2007331/panel
411ef59f4c06b696aa9e30ee87879643256bf1c0
[ "Apache-2.0" ]
10
2017-05-24T05:18:12.000Z
2018-12-17T08:05:48.000Z
import os, json def readfile(filename, mode = 'r'): if not os.path.exists(filename): return False fp = open(filename, mode) f_body = fp.read() fp.close() return f_body def writefile(filename, body, mode = 'w+'): try: fp = open(filename, mode); fp.write(body) fp.c...
21.111111
43
0.568421
50
380
4.28
0.52
0.168224
0.130841
0.168224
0
0
0
0
0
0
0
0
0.310526
380
17
44
22.352941
0.816794
0
0
0.25
0
0
0.007895
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.4375
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
b64f6b4802fc0ea28f98f916d33d68e0f3d5fa20
1,055
py
Python
show_rule/sen_sim.py
Haibarayu/Wu-Qing-couplet
139b7d5a58f0061912eb0dbffd9236144fdde1ca
[ "MIT" ]
null
null
null
show_rule/sen_sim.py
Haibarayu/Wu-Qing-couplet
139b7d5a58f0061912eb0dbffd9236144fdde1ca
[ "MIT" ]
null
null
null
show_rule/sen_sim.py
Haibarayu/Wu-Qing-couplet
139b7d5a58f0061912eb0dbffd9236144fdde1ca
[ "MIT" ]
null
null
null
#encoding=utf-8 import numpy as np import pickle class SenSim: # word_dict = pickle.load(open("show_rule/data/dict.pkl", "rb")) # word_embedding = np.load("show_rule/data/vectors.npy") word_dict = pickle.load(open("show_rule/data/char_dict", "rb")) word_embedding = np.load("show_rule/data/char_embeddi...
30.142857
73
0.618009
158
1,055
3.917722
0.35443
0.038772
0.077544
0.058158
0.216478
0.216478
0.216478
0.216478
0
0
0
0.007682
0.259716
1,055
34
74
31.029412
0.784891
0.179147
0
0
0
0
0.064177
0.061844
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.52381
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
b653237030b135ebb7a36a8bd0bd73b899c97e3c
1,650
py
Python
network/views/interface.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
1
2017-03-25T23:26:40.000Z
2017-03-25T23:26:40.000Z
network/views/interface.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
1
2020-06-05T17:14:04.000Z
2020-06-05T17:14:04.000Z
network/views/interface.py
Atilla106/members.atilla.org
980fe41e7651b55b7c61b256fff026fdfe888a5f
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.core.urlresolvers import reverse_lazy from django.shortcuts import get_object_or_404 from django.views import generic from ..forms.interface import InterfaceForm from ..models.device import Device from ..models.interface import Interface def get_i...
27.04918
71
0.704242
193
1,650
5.880829
0.321244
0.047577
0.038767
0.049339
0.246696
0.246696
0.188546
0.139207
0.139207
0.139207
0
0.010703
0.207273
1,650
60
72
27.5
0.857034
0.052727
0
0.341463
0
0
0.021837
0
0
0
0
0
0
1
0.097561
false
0
0.170732
0.04878
0.585366
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
b6593d0315b24b8c3d515e58c65fb1f2f1ef93d7
4,510
py
Python
UI/ui_nine_patch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
UI/ui_nine_patch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
UI/ui_nine_patch.py
JoeyGaojingxing/QtLearn
c6f03c5e3af13d93a622442620584493f792f20f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file './UI/nine_patch.ui', # licensing of './UI/nine_patch.ui' applies. # # Created: Mon May 27 11:56:54 2019 # by: pyside2-uic running on PySide2 5.12.3 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, Q...
52.44186
113
0.734812
394
4,510
8.403553
0.335025
0.145877
0.055874
0.021746
0.112353
0.073392
0.061009
0.061009
0.061009
0.061009
0
0.014316
0.163636
4,510
85
114
53.058824
0.863468
0.06031
0
0.152778
1
0
0.051549
0
0
0
0
0
0
1
0.027778
false
0
0.013889
0
0.055556
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
b660f150cf76250603254b9506b4303e10e06612
1,027
py
Python
parlai/core/message.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
55
2020-09-16T02:11:28.000Z
2022-01-27T01:03:19.000Z
parlai/core/message.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
316
2021-03-19T14:53:31.000Z
2022-03-27T03:36:51.000Z
parlai/core/message.py
zl930216/ParlAI
abf0ad6d1779af0f8ce0b5aed00d2bab71416684
[ "MIT" ]
11
2019-06-06T01:19:08.000Z
2020-07-23T07:34:56.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ File for Message object and associated functions. The Message object's key function is to prevent users from editing...
29.342857
86
0.665044
139
1,027
4.784173
0.568345
0.03609
0.030075
0.054135
0.063158
0
0
0
0
0
0
0.001304
0.253165
1,027
34
87
30.205882
0.865711
0.51704
0
0.166667
0
0
0.233766
0
0
0
0
0
0
1
0.25
false
0
0
0.083333
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
b662c51f4ab91687451d5a7ab32f74c47c654937
1,926
py
Python
lcm/pub/nfvi/vim/api/openstack/auth.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
4
2018-08-29T02:51:38.000Z
2021-11-16T11:36:11.000Z
lcm/pub/nfvi/vim/api/openstack/auth.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
null
null
null
lcm/pub/nfvi/vim/api/openstack/auth.py
onap/vfc-nfvo-lcm
b7d4d015fa96a246d73d863092d3362afcedc284
[ "Apache-2.0" ]
1
2019-05-12T08:21:19.000Z
2019-05-12T08:21:19.000Z
# Copyright 2016 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
40.978723
115
0.686916
257
1,926
5.038911
0.439689
0.093436
0.027799
0.030116
0.061776
0.061776
0.061776
0
0
0
0
0.00706
0.19107
1,926
46
116
41.869565
0.824134
0.2892
0
0
0
0
0.221402
0.169004
0
0
0
0
0
1
0.038462
false
0.153846
0.115385
0
0.192308
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
b66406dd7973f950f8e9f0624c92d9b184b4ac51
3,128
py
Python
GramBot/codebase/Servidor22.py
PitCoder/Compilers
1028a9c1637dae88002bfbbd47b55585c8c1befe
[ "MIT" ]
1
2021-06-15T19:27:59.000Z
2021-06-15T19:27:59.000Z
GramBot/codebase/Servidor22.py
PitCoder/Compilers
1028a9c1637dae88002bfbbd47b55585c8c1befe
[ "MIT" ]
null
null
null
GramBot/codebase/Servidor22.py
PitCoder/Compilers
1028a9c1637dae88002bfbbd47b55585c8c1befe
[ "MIT" ]
1
2019-10-08T05:38:29.000Z
2019-10-08T05:38:29.000Z
#SERVIDOR import socket import bluetooth def convierteDato(token): tokensVal = ["c", "n", "e", "s", "o", "u", "d", "t", "r", "l", "b", "z"] i = 0 for tokenVal in tokensVal: if (token is tokenVal): return i i += 1 return -1 server = socket.socket(socket.AF_INET, socket.SOCK_...
30.970297
140
0.487532
331
3,128
4.564955
0.371601
0.060225
0.033752
0.02912
0.199868
0.199868
0.199868
0.199868
0.199868
0.199868
0
0.022233
0.352941
3,128
100
141
31.28
0.724308
0.097187
0
0.350649
0
0
0.140725
0
0
0
0
0
0
0
null
null
0
0.025974
null
null
0.220779
0
0
0
null
0
0
0
0
0
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
b667e273bbdfba6ac1660eb888f1ff8eafa53108
294
py
Python
Python/Topics/Dictionary methods/All hands on deck/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
5
2020-08-29T15:15:31.000Z
2022-03-01T18:22:34.000Z
Python/Topics/Dictionary methods/All hands on deck/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
null
null
null
Python/Topics/Dictionary methods/All hands on deck/main.py
drtierney/hyperskill-problems
b74da993f0ac7bcff1cbd5d89a3a1b06b05f33e0
[ "MIT" ]
1
2020-12-02T11:13:14.000Z
2020-12-02T11:13:14.000Z
deck = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'Jack', 'Queen', 'King', 'Ace'] value = [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] deck_values = dict(zip(deck, value)) hand = [input() for _ in range(6)] hand_values = [deck_values.get(card) for card in hand] print(sum(hand_values) / 6)
42
85
0.554422
55
294
2.872727
0.563636
0.025316
0.037975
0.050633
0.126582
0.126582
0.126582
0.126582
0.126582
0
0
0.123457
0.173469
294
6
86
49
0.526749
0
0
0
0
0
0.088435
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
b6760aaeeb3a7d6a18cd6591980708cd45047875
2,046
py
Python
src/predict_utils.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
src/predict_utils.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
src/predict_utils.py
aidotse/Team-rahma.ai
66857731e1ca2472e0783e37ba472b55a7ac9cd4
[ "MIT" ]
null
null
null
from tqdm.auto import tqdm import numpy as np import os from glob import glob import cv2 import sys from fastai.vision.all import * from fastai.vision import models import torch import matplotlib.pyplot as plt import pandas as df import json sys.path.append('./') sys.path.append('../') from src.helper_factories import...
42.625
177
0.743402
273
2,046
5.351648
0.391941
0.049281
0.046543
0.060233
0.123203
0.123203
0.123203
0.123203
0.123203
0.123203
0
0.007366
0.203812
2,046
48
178
42.625
0.889503
0.397361
0
0
0
0
0.004219
0
0
0
0
0
0
1
0.03125
false
0
0.4375
0
0.46875
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
0
1
0
0
0
0
1
b678577a7782178814b804396f65f0bf928ca32e
535
py
Python
server_parse.py
shankarj67/Python_Log_Parser
21e5c5b096aa241438f65ad3795e5b994cb80115
[ "MIT" ]
null
null
null
server_parse.py
shankarj67/Python_Log_Parser
21e5c5b096aa241438f65ad3795e5b994cb80115
[ "MIT" ]
null
null
null
server_parse.py
shankarj67/Python_Log_Parser
21e5c5b096aa241438f65ad3795e5b994cb80115
[ "MIT" ]
null
null
null
import re import pandas as pd import time from datetime import datetime #get the current date today = time.strftime("%d/%m/%Y") #loading data data = pd.read_csv( 'access.log', sep=r'\s(?=(?:[^"]*"[^"]*")*[^"]*$)(?![^\[]*\])', engine='python', usecols=[0, 3], names=['ip', 'time']) #cl...
17.833333
70
0.6
79
535
4.037975
0.658228
0.075235
0
0
0
0
0
0
0
0
0
0.013761
0.185047
535
29
71
18.448276
0.71789
0.239252
0
0
0
0
0.20802
0.102757
0
0
0
0
0
0
null
null
0
0.266667
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
b6785dde96630f83aed0ab89a55ff899a0dc6c90
888
py
Python
tests/__init__.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
tests/__init__.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
tests/__init__.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
import sys class temporary_python_path(object): """ Acts as a context manager to temporarily prepend a list of paths to sys.path """ def __init__(self, paths): self.paths = paths def __enter__(self): self.original_paths = sys.path[:] sys.path = self.paths ...
28.645161
80
0.650901
115
888
4.791304
0.573913
0.050817
0.092559
0.072595
0
0
0
0
0
0
0
0.001527
0.262387
888
30
81
29.6
0.839695
0.314189
0
0
0
0
0.003731
0
0
0
0
0
0
1
0.285714
false
0
0.142857
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
b67f0ed9e701471f0f3a7c3261a50f7ead8f1eec
992
py
Python
utils/dice_utils.py
vrcunha/daemon_bot
c50ac03ad509add072c5a85c0516e76b227ecd69
[ "MIT" ]
null
null
null
utils/dice_utils.py
vrcunha/daemon_bot
c50ac03ad509add072c5a85c0516e76b227ecd69
[ "MIT" ]
null
null
null
utils/dice_utils.py
vrcunha/daemon_bot
c50ac03ad509add072c5a85c0516e76b227ecd69
[ "MIT" ]
null
null
null
import re import random def roll(string): many_dices = re.split(r'\s\+\s', string) print(many_dices) dices = list() modifier = list() for i in many_dices: dice = re.match(r'(\d+)d(\d+)', i) try: dices.append(dice.groups()) except AttributeError: pass ...
25.435897
91
0.530242
132
992
3.878788
0.439394
0.052734
0.023438
0.050781
0
0
0
0
0
0
0
0.0625
0.306452
992
39
92
25.435897
0.681686
0
0
0.111111
0
0
0.136959
0
0
0
0
0
0
1
0.027778
false
0.055556
0.055556
0
0.111111
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
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
b686562ac559e20cc7de2bc58b17c4fc6ddc2776
554
py
Python
rbBot/migrations/0004_auto_20210630_2140.py
octopi-org/routimiser
99929a7c45503b620f8aad8c43c8db1c05f28093
[ "Apache-2.0" ]
null
null
null
rbBot/migrations/0004_auto_20210630_2140.py
octopi-org/routimiser
99929a7c45503b620f8aad8c43c8db1c05f28093
[ "Apache-2.0" ]
null
null
null
rbBot/migrations/0004_auto_20210630_2140.py
octopi-org/routimiser
99929a7c45503b620f8aad8c43c8db1c05f28093
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-06-30 13:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rbBot', '0003_alter_user_latest'), ] operations = [ migrations.AddField( model_name='location', name='route', ...
23.083333
64
0.575812
55
554
5.709091
0.690909
0.057325
0
0
0
0
0
0
0
0
0
0.046753
0.305054
554
23
65
24.086957
0.768831
0.077617
0
0.117647
1
0
0.119843
0.043222
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
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
b6902675a1039807bd40c748112efca588a481ea
8,004
py
Python
gem5-gpu/configs/se_fusion_classic.py
gem5-graphics/gem5-graphics
a5ce9f4e1e954f16524c431da64ac8c57b3e212e
[ "BSD-3-Clause" ]
22
2018-07-03T16:46:51.000Z
2022-03-22T08:29:36.000Z
gem5-gpu/configs/se_fusion_classic.py
gem5-graphics/gem5-graphics
a5ce9f4e1e954f16524c431da64ac8c57b3e212e
[ "BSD-3-Clause" ]
null
null
null
gem5-gpu/configs/se_fusion_classic.py
gem5-graphics/gem5-graphics
a5ce9f4e1e954f16524c431da64ac8c57b3e212e
[ "BSD-3-Clause" ]
25
2017-12-02T00:46:04.000Z
2022-02-18T19:28:53.000Z
import optparse import os import sys from os.path import join as joinpath import m5 from m5.defines import buildEnv from m5.objects import * from m5.util import addToPath, fatal addToPath('../../gem5/configs') '''addToPath('../../gem5/configs/common') addToPath('../../gem5/configs/ruby') addToPath('../../gem5/configs...
28.688172
105
0.731509
1,122
8,004
5.004456
0.291444
0.032769
0.010686
0.015138
0.11683
0.053428
0.023687
0.023687
0
0
0
0.028485
0.171039
8,004
278
106
28.791367
0.817784
0.115817
0
0.014493
0
0.007246
0.111219
0
0
0
0.001941
0.003597
0.014493
0
null
null
0
0.115942
null
null
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
0
0
1
0
0
0
0
0
0
0
0
1
b691cff432068ec6f83461135281250364c13d07
863
py
Python
solutions/line-reflection.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
3
2017-05-21T04:28:32.000Z
2019-03-06T03:28:51.000Z
solutions/line-reflection.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
null
null
null
solutions/line-reflection.py
Shuailong/Leetcode
153aa7bc1b9ad5bbc503ddd7e0694bd2a17a2b97
[ "MIT" ]
1
2018-10-28T22:49:40.000Z
2018-10-28T22:49:40.000Z
#!/usr/bin/env python # encoding: utf-8 """ line-reflection.py Created by Shuailong on 2016-09-14. https://leetcode.com/problems/line-reflection/. """ class Solution(object): def isReflected(self, points): """ :type points: List[List[int]] :rtype: bool """ if not points...
19.613636
51
0.536501
108
863
4.212963
0.472222
0.026374
0.026374
0.105495
0.175824
0.175824
0.175824
0.175824
0.175824
0
0
0.040678
0.316338
863
43
52
20.069767
0.730508
0.041715
0
0.285714
0
0
0.012539
0
0
0
0
0
0
0
null
null
0
0
null
null
0.095238
0
0
0
null
0
0
0
0
0
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
b6a1453745fd407e98c66c8b251c23e22ed8bb43
664
py
Python
application/src/app_pkg/routes/download.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
null
null
null
application/src/app_pkg/routes/download.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
3
2021-06-08T21:39:12.000Z
2022-01-13T02:46:20.000Z
application/src/app_pkg/routes/download.py
eyardley/CSC648-SoftwareEngineering-Snapster
6dbe1cf9b34de6d6dbc6be75db3a34583f67c01a
[ "MIT" ]
1
2021-05-09T21:01:28.000Z
2021-05-09T21:01:28.000Z
from src.app_pkg import app, db from flask import send_file, request import os ################################################## # DOWNLOAD # ################################################## # Author: Chris Eckhardt # This route takes the digital_media_id as a parameter, # lo...
36.888889
76
0.591867
85
664
4.411765
0.529412
0.074667
0.08
0.112
0.133333
0
0
0
0
0
0
0
0.174699
664
18
76
36.888889
0.684307
0.286145
0
0
0
0
0.150997
0.068376
0
0
0
0
0
1
0.125
false
0
0.375
0
0.625
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
0
0
0
0
1
0
0
0
0
1
b6a91e2c17c9239ab9c49aeeec48958c366ace8b
959
py
Python
img_grid_processing.py
Ibrahim2595/img-grid-ipynb
71f1ca9063bdd50aebbd2fa16fb7e8d183339b09
[ "MIT" ]
null
null
null
img_grid_processing.py
Ibrahim2595/img-grid-ipynb
71f1ca9063bdd50aebbd2fa16fb7e8d183339b09
[ "MIT" ]
null
null
null
img_grid_processing.py
Ibrahim2595/img-grid-ipynb
71f1ca9063bdd50aebbd2fa16fb7e8d183339b09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """img-grid-processing.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1rrkKK1WGrbCC5TnJSGX8772RCMdavj-L """ from google.colab import drive drive.mount('/content/drive') import os import PIL img_dir = "/content/drive/MyD...
19.979167
115
0.696559
145
959
4.503448
0.524138
0.073507
0.087289
0.05513
0
0
0
0
0
0
0
0.030012
0.131387
959
47
116
20.404255
0.753902
0.205422
0
0
1
0
0.235372
0.140957
0
0
0
0
0
1
0
false
0
0.227273
0
0.227273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
b6b172056dc8430db8e527ff3b400071abe40201
591
py
Python
testVoiceToText.py
KendricHood/DoctorRecap
ec03761ab0920b390190299ab9c002bf2f7b3292
[ "Apache-2.0" ]
null
null
null
testVoiceToText.py
KendricHood/DoctorRecap
ec03761ab0920b390190299ab9c002bf2f7b3292
[ "Apache-2.0" ]
null
null
null
testVoiceToText.py
KendricHood/DoctorRecap
ec03761ab0920b390190299ab9c002bf2f7b3292
[ "Apache-2.0" ]
null
null
null
import sttClient import json from watson_developer_cloud import SpeechToTextV1 from os.path import join, dirname def test(): sttClient.Utils.getAuthenticationToken() speech_to_text = SpeechToTextV1( username='1b438e08-110f-4b25-943b-fb55c25db642', password='dMYfxV5dx0mQ', x_watson_lear...
28.142857
78
0.698816
70
591
5.657143
0.7
0.055556
0.060606
0
0
0
0
0
0
0
0
0.056962
0.19797
591
20
79
29.55
0.778481
0
0
0
0
0
0.116751
0.060914
0
0
0
0
0
1
0.0625
false
0.0625
0.25
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
1
0
0
0
0
0
1
fcabed852ab5f3e089ebfb6668db0654b9657c8c
7,149
py
Python
research/database/database_wrapper.py
kelceydamage/axol
b5288577ee769bcd609c361cb0ac5e2a678289da
[ "Apache-2.0" ]
null
null
null
research/database/database_wrapper.py
kelceydamage/axol
b5288577ee769bcd609c361cb0ac5e2a678289da
[ "Apache-2.0" ]
null
null
null
research/database/database_wrapper.py
kelceydamage/axol
b5288577ee769bcd609c361cb0ac5e2a678289da
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python #-----------------------------------------# # Written by Kelcey Damage, 2014 # Import main #-----------------------------------------------------------------------# # EC2 from boto import ec2 # Dynamodb from boto import dynamodb from boto.dynamodb import * # Elasticache from bo...
32.058296
141
0.613372
793
7,149
5.308953
0.181589
0.032304
0.01829
0.034204
0.505463
0.474109
0.408551
0.374347
0.343943
0.25867
0
0.007742
0.15079
7,149
222
142
32.202703
0.685719
0.132746
0
0.383648
0
0
0.270317
0.122156
0
0
0
0
0
0
null
null
0
0.044025
null
null
0.138365
0
0
0
null
0
0
0
0
0
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
fcacb2beef733a085322157107db42ea54e00890
1,880
py
Python
tests/management/test_init.py
pstreck/limis
2316bacc10f0cc7fb17774511ca6f695d2e6c195
[ "MIT" ]
null
null
null
tests/management/test_init.py
pstreck/limis
2316bacc10f0cc7fb17774511ca6f695d2e6c195
[ "MIT" ]
null
null
null
tests/management/test_init.py
pstreck/limis
2316bacc10f0cc7fb17774511ca6f695d2e6c195
[ "MIT" ]
null
null
null
import io import sys from contextlib import redirect_stdout from unittest import TestCase from limis.management import CommandLineInterface, execute_limis_management, execute_limis_project_management, \ exit_codes class TestCaseWithSysArgumentOverride(TestCase): def setUp(self): self.original_sys_arg...
37.6
112
0.715426
214
1,880
5.995327
0.172897
0.087295
0.093531
0.118472
0.622759
0.604832
0.498051
0.455963
0.455963
0.455963
0
0.003927
0.187234
1,880
49
113
38.367347
0.835733
0
0
0.324324
0
0
0.01383
0
0
0
0
0
0.162162
1
0.216216
false
0
0.135135
0
0.432432
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
fcb17f3ee8ee28e223a71b742a3f466f99ab5af0
1,698
py
Python
src/ggrc/migrations/versions/20150522145452_5345a09722f1_migrate_objective_controls_to_.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc/migrations/versions/20150522145452_5345a09722f1_migrate_objective_controls_to_.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc/migrations/versions/20150522145452_5345a09722f1_migrate_objective_controls_to_.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: anze@reciprocitylabs.com # Maintained By: anze@reciprocitylabs.com """Migrate objective_controls to relationships Revision ID: 5345a09722f1 Revise...
26.53125
78
0.702002
201
1,698
5.621891
0.38806
0.210619
0.111504
0.066372
0.382301
0.382301
0.284071
0.19646
0.19646
0.120354
0
0.050761
0.187868
1,698
63
79
26.952381
0.768673
0.237338
0
0.272727
0
0
0.596259
0.116913
0
0
0
0
0
1
0.045455
false
0
0.022727
0
0.068182
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
fcbea095a8ded071b558f8b05f9128d623b648f6
28,904
py
Python
pyart/io/sigmet.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/io/sigmet.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
pyart/io/sigmet.py
josephhardinee/pyart
909cd4a36bb4cae34349294d2013bc7ad71d0969
[ "OLDAP-2.6", "Python-2.0" ]
null
null
null
""" pyart.io.sigmet =============== Reading and writing of Sigmet (raw format) files .. autosummary:: :toctree: generated/ read_sigmet ymds_time_to_datetime _is_time_ordered_by_reversal _is_time_ordered_by_roll _is_time_ordered_by_reverse_roll _time_order_data_and_metadata_roll _time_...
42.694239
79
0.658421
3,928
28,904
4.63391
0.13391
0.013845
0.013845
0.015383
0.386056
0.329359
0.292221
0.268981
0.258873
0.248819
0
0.013047
0.254844
28,904
676
80
42.757396
0.832064
0.346111
0
0.39599
1
0
0.107814
0.008712
0
0
0
0
0
1
0.02005
false
0
0.022556
0
0.070175
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
fcd785ae892cc6f07e820e617b452b924c529599
2,190
py
Python
sites/aai_logon/login.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
15
2020-03-17T15:43:46.000Z
2022-01-08T04:23:49.000Z
sites/aai_logon/login.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
5
2020-03-12T10:05:27.000Z
2021-03-03T16:01:47.000Z
sites/aai_logon/login.py
GeorgOhneH/ethz-document-fetcher
42921e5d71698a269eb54cf9d3979e4a7d88a9cf
[ "MIT" ]
2
2020-03-17T17:09:20.000Z
2020-12-28T22:59:17.000Z
import asyncio import html import re from aiohttp import ClientSession from core.exceptions import LoginError from .constants import * locks = {} def get_sso_data(download_settings): return { ":formid": "_content_main_de_jcr_content_par_start", ":formstart": "/content/main/de/jcr:content/par/st...
32.686567
118
0.592694
271
2,190
4.619926
0.328413
0.038339
0.035942
0.063898
0.289137
0.247604
0.229233
0.088658
0.088658
0.088658
0
0.003755
0.27032
2,190
66
119
33.181818
0.779725
0
0
0.06
0
0
0.178539
0.034703
0
0
0
0
0
1
0.02
false
0.06
0.12
0.02
0.16
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
fcdd7de0445fd2a9b5530c8da894b638bec20386
1,175
py
Python
think-python/code/mul_time.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/mul_time.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/mul_time.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
""" Write a function called mul_time that takes a Time object and a number and returns a new Time object that contains the product of the original Time and the number. Then use mul_time to write a function that takes a Time object that represents the finishing time in a race, and a number that represents the distanc...
30.921053
94
0.701277
198
1,175
3.994949
0.323232
0.088496
0.069532
0.08091
0.264223
0.199747
0.128951
0.128951
0.128951
0.128951
0
0.007726
0.228936
1,175
38
95
30.921053
0.865342
0.59234
0
0
0
0
0.018059
0
0
0
0
0.026316
0
1
0.166667
false
0
0.083333
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fcdeb7510bb0a986eb8e38f9f62469f18e4645e9
605
py
Python
scripts/expand_combinations.py
JMejlsted/iGEM-distribution
ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac
[ "CC-BY-4.0" ]
null
null
null
scripts/expand_combinations.py
JMejlsted/iGEM-distribution
ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac
[ "CC-BY-4.0" ]
null
null
null
scripts/expand_combinations.py
JMejlsted/iGEM-distribution
ae5adc0c24614c6fae3c70b4a51ba96f9f9210ac
[ "CC-BY-4.0" ]
null
null
null
import os import sys import git import sbol3 import scriptutils import sbol_utilities.expand_combinatorial_derivations from sbol_utilities.helper_functions import flatten error = False packages = scriptutils.package_dirs() for p in packages: print(f'Expanding package build plan {os.path.basename(p)}') try: ...
24.2
78
0.73719
89
605
4.921348
0.606742
0.061644
0.063927
0.068493
0
0
0
0
0
0
0
0.004065
0.186777
605
24
79
25.208333
0.886179
0.12562
0
0
0
0
0.206831
0.081594
0
0
0
0
0
1
0
false
0
0.388889
0
0.388889
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fce46776ffd009b6c6e8d8a8b4cf63b66a4b1423
449
py
Python
grade_analytics.py
Jsinclairisto/Data_Analytics_Python
c590f3e8bae0a60bd8b10d7ae64728e0f543c976
[ "MIT" ]
null
null
null
grade_analytics.py
Jsinclairisto/Data_Analytics_Python
c590f3e8bae0a60bd8b10d7ae64728e0f543c976
[ "MIT" ]
null
null
null
grade_analytics.py
Jsinclairisto/Data_Analytics_Python
c590f3e8bae0a60bd8b10d7ae64728e0f543c976
[ "MIT" ]
null
null
null
import csv, os import pandas as pd import numpy as np from matplotlib import pyplot as plt from matplotlib import style # f = open('data.csv') # csv_f = csv.reader(f) data = [10, 44, 90, 30] register = [0, 1, 2, 3] df = pd.read_csv('data.csv', delimiter=',', index_col=0) df['PercentGrade'].describe() df['PercentG...
21.380952
58
0.690423
71
449
4.323944
0.591549
0.136808
0.130293
0.143322
0
0
0
0
0
0
0
0.033333
0.131403
449
20
59
22.45
0.753846
0.093541
0
0
0
0
0.19802
0
0
0
0
0
0
1
0
false
0
0.416667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fce61ad5516effcb8581f327831231b44dbf3943
365
py
Python
tests/unit/test_house/test_wall.py
antunesleo/manotes-api
ea954e3570a1a4c163328288a9a328859c421f29
[ "MIT" ]
13
2018-12-11T10:54:19.000Z
2020-08-07T01:23:43.000Z
tests/unit/test_house/test_wall.py
antunesleo/manotes-api
ea954e3570a1a4c163328288a9a328859c421f29
[ "MIT" ]
1
2020-01-12T04:03:08.000Z
2020-01-12T04:03:08.000Z
tests/unit/test_house/test_wall.py
antunesleo/manotes-api
ea954e3570a1a4c163328288a9a328859c421f29
[ "MIT" ]
3
2019-03-27T11:37:49.000Z
2019-05-31T02:05:00.000Z
from tests.unit import base from src import exceptions from src.house import wall class NoteUpdateTest(base.TestCase): def test_update_should_call_repository_to_update_from_dict(self): note = wall.Note.create_with_instance(self.mock.MagicMock()) note.update({'key': 'value'}) self.assertTr...
30.416667
69
0.761644
51
365
5.196078
0.627451
0.05283
0.10566
0
0
0
0
0
0
0
0
0
0.145205
365
11
70
33.181818
0.849359
0
0
0
0
0
0.021918
0
0
0
0
0
0.125
1
0.125
false
0
0.375
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
1
0
0
0
0
1
fce68ba7efe60cc710ff2141e26b60fa6b95ee07
507
py
Python
port.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
port.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
port.py
fhqjgd/python2.7
6533019b8b2fbe113aa552e44247c054bdd8a75b
[ "bzip2-1.0.6" ]
null
null
null
import socket,time ip=raw_input("Input your IP or Hostname ") port=input("Input you port ") ci=int(input("Input you try times ")) print " " for i in range(ci): time.sleep(1) sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sk.settimeout(2) try: sk.connect((ip,port)) print 'Server %s port %s is OK...
25.35
55
0.613412
82
507
3.756098
0.487805
0.097403
0.084416
0.103896
0.11039
0
0
0
0
0
0
0.007772
0.238659
507
19
56
26.684211
0.790155
0
0
0.157895
0
0
0.343195
0
0
0
0
0
0
0
null
null
0
0.052632
null
null
0.315789
0
0
0
null
0
0
0
0
0
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
fcf4f5432550d49679b64ffbb6e8aeeb5b8c55a3
617
py
Python
src/apps/reservation/migrations/0006_train_user.py
lizaveta-stasevich/booking
acebd0d9d3035e802cdf6e719a142fe5f74ec2c1
[ "Apache-2.0" ]
null
null
null
src/apps/reservation/migrations/0006_train_user.py
lizaveta-stasevich/booking
acebd0d9d3035e802cdf6e719a142fe5f74ec2c1
[ "Apache-2.0" ]
6
2020-06-06T00:11:43.000Z
2022-02-10T09:33:51.000Z
src/apps/reservation/migrations/0006_train_user.py
lizaveta-stasevich/booking
acebd0d9d3035e802cdf6e719a142fe5f74ec2c1
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-20 17:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('reservation', '0005_auto...
28.045455
149
0.680713
74
617
5.513514
0.608108
0.058824
0.068627
0.107843
0
0
0
0
0
0
0
0.065574
0.209076
617
21
150
29.380952
0.770492
0.072934
0
0
1
0
0.092982
0.040351
0
0
0
0
0
1
0
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fcff6182b5ecb92dc1eed39a1c93ef31f11dd6f6
4,961
py
Python
scripts/get_goal_poses.py
osrf/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
29
2015-03-05T19:03:00.000Z
2021-08-11T05:48:51.000Z
scripts/get_goal_poses.py
rethink-imcmahon/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
1
2016-01-30T21:22:07.000Z
2016-02-04T19:33:24.000Z
scripts/get_goal_poses.py
rethink-imcmahon/baxter_demos
1678291de6addb7c3d5ac0391ccd5917398ab195
[ "Apache-2.0" ]
12
2015-01-30T17:14:15.000Z
2021-01-27T07:54:54.000Z
#!/usr/bin/env python """Uses the 3D camera to 3D centroid and pose for all objects in the scene""" import argparse import rospy import yaml import baxter_interface import cv, cv2, cv_bridge import numpy import tf from math import atan2, pi, sqrt import common import ik_command import image_geometry import sensor...
33.52027
129
0.650474
643
4,961
4.832037
0.33126
0.023173
0.019311
0.016415
0.070164
0.041841
0.023173
0
0
0
0
0.011625
0.237049
4,961
147
130
33.748299
0.809247
0.055029
0
0.037383
0
0
0.072996
0.03476
0
0
0
0.006803
0
0
null
null
0
0.140187
null
null
0.028037
0
0
0
null
0
0
0
0
0
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
1e01caeebae1968ce6d767d45f18c3868d343255
966
py
Python
snippets/graph/bfs_template.py
KATO-Hiro/Somen-Soupy
d9a3f44a3f4ab1a491b8fb2ef151966cce4804b1
[ "CC0-1.0" ]
1
2021-05-04T01:33:17.000Z
2021-05-04T01:33:17.000Z
snippets/graph/bfs_template.py
KATO-Hiro/Somen-Soupy
d9a3f44a3f4ab1a491b8fb2ef151966cce4804b1
[ "CC0-1.0" ]
113
2019-06-08T11:50:10.000Z
2022-03-24T04:49:55.000Z
snippets/graph/bfs_template.py
KATO-Hiro/Somen-Soupy
d9a3f44a3f4ab1a491b8fb2ef151966cce4804b1
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): from collections import deque import sys input = sys.stdin.readline h, w = map(int, input().split()) # TODO: Change input format if needs. c = [list(input().rstrip()) for _ in range(h)] d = deque() d.append((0, 0)) visited = [[False] * w for _ ...
21.954545
54
0.438923
135
966
3.059259
0.385185
0.01937
0.072639
0.079903
0.082324
0.082324
0.082324
0
0
0
0
0.030875
0.39648
966
44
55
21.954545
0.67753
0.081781
0
0.133333
0
0
0.010193
0
0
0
0
0.022727
0
1
0.033333
false
0
0.066667
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1e028e55d18c3b9978b27652472b5e5294a49bee
1,217
py
Python
lldb/test/API/tools/lldb-vscode/console/TestVSCode_redirection_to_console.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
2,338
2018-06-19T17:34:51.000Z
2022-03-31T11:00:37.000Z
lldb/test/API/tools/lldb-vscode/console/TestVSCode_redirection_to_console.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
3,740
2019-01-23T15:36:48.000Z
2022-03-31T22:01:13.000Z
lldb/test/API/tools/lldb-vscode/console/TestVSCode_redirection_to_console.py
mkinsner/llvm
589d48844edb12cd357b3024248b93d64b6760bf
[ "Apache-2.0" ]
500
2019-01-23T07:49:22.000Z
2022-03-30T02:59:37.000Z
import unittest2 import vscode import json from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil import lldbvscode_testcase class TestVSCode_redirection_to_console(lldbvscode_testcase.VSCodeTestCaseBase): mydir = TestBase.compute_mydir(__file__) @s...
32.026316
91
0.695152
130
1,217
6.284615
0.569231
0.047736
0.062424
0.056304
0
0
0
0
0
0
0
0.006376
0.226787
1,217
37
92
32.891892
0.861849
0.141331
0
0
0
0
0.110775
0.042296
0
0
0
0
0.086957
1
0.043478
false
0
0.304348
0
0.434783
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
1e02ca1e15ae17823a2766c2337290de1728af48
3,037
py
Python
cohesity_management_sdk/models/restore_site_params_site_owner_drive.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-09-24T17:35:53.000Z
2022-03-25T08:08:47.000Z
cohesity_management_sdk/models/restore_site_params_site_owner_drive.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
18
2019-03-29T19:32:29.000Z
2022-01-03T23:16:45.000Z
cohesity_management_sdk/models/restore_site_params_site_owner_drive.py
nick6655/management-sdk-python
88e792cb83e5c24a22af495b220c145d0c45841d
[ "Apache-2.0" ]
16
2019-02-27T06:54:12.000Z
2021-11-16T18:10:24.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Cohesity Inc. import cohesity_management_sdk.models.restore_site_params_drive_item class RestoreSiteParams_SiteOwner_Drive(object): """Implementation of the 'RestoreSiteParams_SiteOwner_Drive' model. TODO: Type model description here. Attributes: is_enti...
37.036585
157
0.666118
348
3,037
5.537356
0.310345
0.087182
0.065387
0.076284
0.10794
0.055008
0.055008
0.055008
0.055008
0
0
0.00273
0.276259
3,037
81
158
37.493827
0.873976
0.411261
0
0
0
0
0.131881
0.039927
0
0
0
0.012346
0
1
0.058824
false
0
0.029412
0
0.205882
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
1e115ce0d7888c7771ff4e6e28fe874eb47283bf
163
py
Python
pr2/task1.py
jedi2light/MPP
45701322c0f827366a2f2080866870db2004c948
[ "MIT" ]
null
null
null
pr2/task1.py
jedi2light/MPP
45701322c0f827366a2f2080866870db2004c948
[ "MIT" ]
1
2020-10-26T19:12:56.000Z
2020-11-01T09:47:57.000Z
pr2/task1.py
jedi2light/MPP
45701322c0f827366a2f2080866870db2004c948
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def main(): n = int(input()) matrix = [[0] * n] * n return 0 if __name__ == '__main__': sys.exit(main())
9.588235
26
0.527607
23
163
3.391304
0.73913
0
0
0
0
0
0
0
0
0
0
0.025862
0.288344
163
16
27
10.1875
0.646552
0.128834
0
0
0
0
0.056738
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e126ff023b90cdbfbb5bb1161fae9cd226bf381
1,564
py
Python
src/obfsproxy/manager/manager.py
larrycameron80/py-obfsproxy
e0d2b35de98e8ad757d74d01407372dc753568d7
[ "BSD-3-Clause" ]
4
2016-06-08T05:17:02.000Z
2022-01-05T02:20:08.000Z
src/obfsproxy/manager/manager.py
larrycameron80/py-obfsproxy
e0d2b35de98e8ad757d74d01407372dc753568d7
[ "BSD-3-Clause" ]
null
null
null
src/obfsproxy/manager/manager.py
larrycameron80/py-obfsproxy
e0d2b35de98e8ad757d74d01407372dc753568d7
[ "BSD-3-Clause" ]
4
2016-08-05T21:18:57.000Z
2022-02-06T05:10:04.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ This module contains the Manager class, the base class for client and server managers. Managers are command line tools used for testing transports. They simulate Tor by launching transports and providing similar environment variables as would be provided by Tor. Managers a...
34.755556
175
0.662404
205
1,564
4.965854
0.507317
0.019646
0.044204
0.02947
0.168959
0.074656
0.074656
0.074656
0
0
0
0.001711
0.252558
1,564
44
176
35.545455
0.869119
0.024297
0
0.125
0
0
0.142123
0.083904
0
0
0
0
0
0
null
null
0
0.1875
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
1e1727f9d2a2af92f0c112236148210894f2e390
1,875
py
Python
src/enamlnative/widgets/image_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
237
2017-09-15T19:31:45.000Z
2022-03-17T04:22:20.000Z
src/enamlnative/widgets/image_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
74
2017-09-06T20:16:41.000Z
2022-03-05T13:34:35.000Z
src/enamlnative/widgets/image_view.py
codelv/enaml-native
04c3a015bcd649f374c5ecd98fcddba5e4fbdbdc
[ "MIT" ]
22
2017-09-15T19:32:11.000Z
2022-03-17T18:33:39.000Z
""" Copyright (c) 2017, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE, distributed with this software. Created on May 20, 2017 @author: jrm """ from atom.api import ( Typed, ForwardTyped, Int, Unicode, Bool, Event, observe, set_default ) from enaml.core....
25.684932
79
0.616533
220
1,875
5.140909
0.468182
0.013263
0.02122
0.026525
0.118479
0.060124
0.060124
0
0
0
0
0.007529
0.2208
1,875
72
80
26.041667
0.766598
0.5264
0
0.142857
0
0
0.025974
0
0
0
0
0
0
1
0.190476
false
0
0.142857
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
1e188435010af4495fa74d4ff062d30215c89e75
3,326
py
Python
qtinter/parameters_mapping.py
SohajCZ/dumpTk
fb6bdd9b9a7b949457c700a1dcc9254b878fb222
[ "MIT" ]
2
2021-02-04T19:06:35.000Z
2021-02-05T03:07:35.000Z
qtinter/parameters_mapping.py
SohajCZ/dumpTk
fb6bdd9b9a7b949457c700a1dcc9254b878fb222
[ "MIT" ]
null
null
null
qtinter/parameters_mapping.py
SohajCZ/dumpTk
fb6bdd9b9a7b949457c700a1dcc9254b878fb222
[ "MIT" ]
null
null
null
""" This file contains mappings: parameters_names_mapping - Mapping of Tcl/Tk command attributes to methods of Qt/own objects. Own objects are included because of implementation details such as menu problem (see ...
28.672414
75
0.578473
318
3,326
5.874214
0.418239
0.04818
0.070664
0.030514
0.184154
0.063169
0.063169
0.063169
0.063169
0.063169
0
0.000425
0.293145
3,326
115
76
28.921739
0.79413
0.396873
0
0.108108
0
0
0.313854
0.013098
0
0
0
0.026087
0
1
0.040541
false
0
0
0.027027
0.081081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
1e1bb74d4c31f2988db0266da6f75c4378891053
3,845
py
Python
ckan_cloud_operator/deis_ckan/db.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
14
2019-11-18T12:01:03.000Z
2021-09-15T15:29:50.000Z
ckan_cloud_operator/deis_ckan/db.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
52
2019-09-09T14:22:41.000Z
2021-09-29T08:29:24.000Z
ckan_cloud_operator/deis_ckan/db.py
MuhammadIsmailShahzad/ckan-cloud-operator
35a4ca88c4908d81d1040a21fca8904e77c4cded
[ "MIT" ]
8
2019-10-05T12:46:25.000Z
2021-09-15T15:13:05.000Z
import traceback from ckan_cloud_operator.datastore_permissions import DATASTORE_PERMISSIONS_SQL_TEMPLATE from ckan_cloud_operator.providers.db import manager as db_manager from ckan_cloud_operator.providers.ckan.db import migration as ckan_db_migration_manager from ckan_cloud_operator.drivers.postgres import driver a...
51.959459
145
0.638231
450
3,845
5.128889
0.235556
0.054593
0.038995
0.057192
0.274697
0.118718
0.045061
0.045061
0.045061
0
0
0
0.26554
3,845
73
146
52.671233
0.81728
0.010663
0
0.061538
0
0
0.164913
0.02788
0
0
0
0
0.030769
1
0.061538
false
0.092308
0.076923
0.015385
0.169231
0.061538
0
0
0
null
0
0
0
0
0
0
0
0
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
1e2615f831621560b53e65f2dce19b042b6ace85
1,441
py
Python
main/web_apps_examples/it_lending_log/models.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/web_apps_examples/it_lending_log/models.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
main/web_apps_examples/it_lending_log/models.py
gwynethbradbury/itdb
0664100b00ed8cf7d4565a0b2b90e089ad528733
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime import dbconfig from main.sqla.app import db from flask_sqlalchemy import SQLAlchemy class item(db.Model): __bind_key__ = 'project_it_lending_log_db' __tablename__ = 'videos' fields=['id','name','comment'] id = db.Column(db.Integer, primary_key=True) name = db.Col...
30.020833
99
0.646773
202
1,441
4.326733
0.252475
0.073227
0.09611
0.10984
0.535469
0.535469
0.446224
0.446224
0.446224
0.354691
0
0.009967
0.164469
1,441
47
100
30.659574
0.715947
0
0
0.3125
0
0.03125
0.173491
0.1034
0
0
0
0
0
1
0.125
false
0
0.125
0.0625
0.875
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
1e2f1329bb5ba866804ad5ae6cde40c447c1d910
945
py
Python
082-remove-duplicates-from-sorted-list-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
082-remove-duplicates-from-sorted-list-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
082-remove-duplicates-from-sorted-list-ii.py
daicang/Leetcode
676b05c1222670f73294eb2ed2665433eac148f4
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ if not head: return None ...
27
84
0.557672
112
945
4.4375
0.294643
0.225352
0.120724
0.096579
0.104628
0
0
0
0
0
0
0
0.372487
945
35
85
27
0.838111
0.099471
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.086957
false
0
0
0
0.26087
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
1e31a650e5764458cd177b09254bff0f88d7301d
1,067
py
Python
gencode/python/udmi/schema/state_pointset.py
anurag6/udmi
9c5e8eeceb86e2f6f495f3ead7ed37c082db2959
[ "Apache-2.0" ]
19
2020-07-23T03:04:39.000Z
2022-02-06T17:17:01.000Z
gencode/python/udmi/schema/state_pointset.py
anurag6/udmi
9c5e8eeceb86e2f6f495f3ead7ed37c082db2959
[ "Apache-2.0" ]
61
2020-08-01T09:43:17.000Z
2022-03-31T13:56:50.000Z
gencode/python/udmi/schema/state_pointset.py
anurag6/udmi
9c5e8eeceb86e2f6f495f3ead7ed37c082db2959
[ "Apache-2.0" ]
26
2020-07-10T13:39:56.000Z
2022-02-24T18:09:59.000Z
"""Generated class for state_pointset.json""" from .state_pointset_point import PointPointsetState class PointsetState: """Generated schema class""" def __init__(self): self.state_etag = None self.points = None @staticmethod def from_dict(source): if not source: return None result = Po...
24.25
77
0.677601
131
1,067
5.358779
0.274809
0.076923
0.055556
0.048433
0.094017
0.094017
0.094017
0
0
0
0
0.002398
0.218369
1,067
43
78
24.813953
0.839329
0.062793
0
0.411765
1
0
0.032389
0
0
0
0
0
0
1
0.147059
false
0
0.029412
0
0.382353
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
1e3d3bb3cf8223050f8a1822b4eff4972cf5fe0a
573
py
Python
africastalking/Account.py
johngathure/africastalking-python
dbe723acf635da19cda2e198049ca7edc1253b8a
[ "MIT" ]
null
null
null
africastalking/Account.py
johngathure/africastalking-python
dbe723acf635da19cda2e198049ca7edc1253b8a
[ "MIT" ]
null
null
null
africastalking/Account.py
johngathure/africastalking-python
dbe723acf635da19cda2e198049ca7edc1253b8a
[ "MIT" ]
null
null
null
from Service import APIService class AccountService(APIService): def __init__(self, username, api_key): super(AccountService, self).__init__(username, api_key) def _init_service(self): super(AccountService, self)._init_service() self._baseUrl = self._baseUrl + '/version1' def fet...
31.833333
113
0.668412
64
573
5.625
0.4375
0.038889
0.077778
0.15
0
0
0
0
0
0
0
0.002232
0.21815
573
17
114
33.705882
0.801339
0
0
0
0
0
0.04363
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.461538
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
1e42492a8464011f99eb13f7b41f32849dce424c
8,554
py
Python
shirley.py
mdw771/tomosim
7736031aee861cd0ac995d83c2231a7df4fc3365
[ "Apache-2.0" ]
1
2018-07-14T15:06:50.000Z
2018-07-14T15:06:50.000Z
shirley.py
mdw771/tomosim
7736031aee861cd0ac995d83c2231a7df4fc3365
[ "Apache-2.0" ]
null
null
null
shirley.py
mdw771/tomosim
7736031aee861cd0ac995d83c2231a7df4fc3365
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This script works for shirley sample. """ import numpy as np import glob import dxchange import matplotlib.pyplot as plt import scipy.interpolate import tomopy from scipy.interpolate import Rbf from mpl_toolkits.mplot3d.axes3d import Axes3D from matplotlib import cm from project import * f...
40.92823
115
0.602058
1,132
8,554
4.222615
0.180212
0.050209
0.043933
0.05272
0.508996
0.42364
0.392259
0.346025
0.302092
0.274059
0
0.01393
0.28665
8,554
208
116
41.125
0.76942
0.255436
0
0.035088
0
0
0.111413
0.030168
0
0
0
0
0
0
null
null
0.008772
0.122807
null
null
0.078947
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1e4c29ee4995b4e8e7d14c71d13ec66dfe61a487
3,599
py
Python
cyborg/accelerator/drivers/fpga/intel/driver.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
1
2021-06-01T08:50:39.000Z
2021-06-01T08:50:39.000Z
cyborg/accelerator/drivers/fpga/intel/driver.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
null
null
null
cyborg/accelerator/drivers/fpga/intel/driver.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Intel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
33.95283
75
0.645457
461
3,599
4.904555
0.436009
0.021672
0.022556
0.014153
0.094648
0.022999
0.022999
0
0
0
0
0.003398
0.263962
3,599
105
76
34.27619
0.850132
0.37955
0
0
0
0
0.072857
0
0
0
0
0.028571
0
1
0.098039
false
0.019608
0.137255
0.019608
0.372549
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
1e4e32c1dc96a717ef7d771f6045c5904813448d
1,477
py
Python
CH04/For.py
maicmiller/Python-Lab
9559fcab318a3a95d5c121a992edba6d534debf1
[ "MIT" ]
null
null
null
CH04/For.py
maicmiller/Python-Lab
9559fcab318a3a95d5c121a992edba6d534debf1
[ "MIT" ]
null
null
null
CH04/For.py
maicmiller/Python-Lab
9559fcab318a3a95d5c121a992edba6d534debf1
[ "MIT" ]
null
null
null
print('#######################') print('###### Exemplo 1 ######') print('#######################') # Exemplo 1 for i in range(5): print('Iterating ', i) print(' ') print('#######################') print('###### Exemplo 2 ######') print('#######################') # Utilizando os itens da lista como indice. smoothi...
25.465517
86
0.492214
177
1,477
4.107345
0.327684
0.151307
0.140303
0.090784
0.502063
0.275103
0.115543
0.115543
0.115543
0.115543
0
0.029482
0.150305
1,477
57
87
25.912281
0.549801
0.301963
0
0.567568
0
0
0.464251
0.270323
0
0
0
0
0
1
0
false
0
0
0
0
0.783784
0
0
0
null
0
0
0
0
0
0
0
0
0
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
1e4e6132428bf659e37729c49ceea8c1ae082083
20,768
py
Python
closure_measurements/full_model_accel.py
VibroSim/closure_measurements
3c5560db85e0e9e276aaccc06c49c63224dbddca
[ "MIT" ]
null
null
null
closure_measurements/full_model_accel.py
VibroSim/closure_measurements
3c5560db85e0e9e276aaccc06c49c63224dbddca
[ "MIT" ]
null
null
null
closure_measurements/full_model_accel.py
VibroSim/closure_measurements
3c5560db85e0e9e276aaccc06c49c63224dbddca
[ "MIT" ]
null
null
null
import sys import os import os.path import numpy as np import scipy import scipy.integrate # regenerate qagse_fparams.c with: # f2c -a qagse_fparams.f # patch -p0 <qagse_fparams.patch # NOTE: kernelpattern is processed with # '%' (printf) operator, so # be careful about percent signs in it... # '%s's replaced by con...
30.054993
238
0.573238
2,704
20,768
4.268861
0.186021
0.027029
0.006757
0.014554
0.339426
0.299489
0.271507
0.239539
0.224032
0.215369
0
0.0412
0.308118
20,768
690
239
30.098551
0.762127
0.126878
0
0.218684
1
0.031847
0.482522
0.065204
0
0
0
0
0.010616
1
0.012739
false
0.048832
0.019108
0
0.070064
0.008493
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
1e53b9ef26e0607b9e6dfef49d9b8df73d7c8f60
593
py
Python
apriory.py
trigger007/Study-Material-Collector
c35c1d2a4a5f994bbdb3f15732406d64d83d68bd
[ "MIT" ]
1
2021-02-23T16:52:58.000Z
2021-02-23T16:52:58.000Z
apriory.py
trigger007/Study-Material-Collector
c35c1d2a4a5f994bbdb3f15732406d64d83d68bd
[ "MIT" ]
null
null
null
apriory.py
trigger007/Study-Material-Collector
c35c1d2a4a5f994bbdb3f15732406d64d83d68bd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 12 05:37:00 2020 @author: hp """ # Apriori # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Data Preprocessing dataset = pd.read_csv('syllabus.csv', header = None) transactions = [] for i in range(0, 21): transactio...
22.807692
102
0.715008
93
593
4.505376
0.666667
0.033413
0.038186
0
0
0
0
0
0
0
0
0.054545
0.165261
593
26
103
22.807692
0.791919
0.300169
0
0
0
0
0.029777
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
1e5a9c2ecdcfd2b6bc31e4b988d6d249341c6131
16,905
py
Python
test/space-4/cml.py
ashhar-hasan/yaifa
7caf4068087bcb60b168d31322a81c7ca46172e2
[ "MIT" ]
10
2018-11-26T09:04:44.000Z
2021-02-05T16:14:05.000Z
test/space-4/cml.py
ashhar-hasan/yaifa
7caf4068087bcb60b168d31322a81c7ca46172e2
[ "MIT" ]
7
2018-10-12T02:46:01.000Z
2021-04-18T07:31:44.000Z
test/space-4/cml.py
ashhar-hasan/yaifa
7caf4068087bcb60b168d31322a81c7ca46172e2
[ "MIT" ]
3
2018-10-20T18:00:09.000Z
2021-06-23T07:52:08.000Z
# # ----------------------------------------------------------------------- # cml.py - Plugin for Canadian movie listings # ----------------------------------------------------------------------- # # Copyright (C) 2005 James Oakley # # This library is free software; you can redistribute it and/or # modify it...
41.433824
177
0.521384
1,864
16,905
4.629828
0.234442
0.025029
0.017381
0.011124
0.241483
0.203824
0.181344
0.147509
0.133835
0.094206
0
0.01058
0.301094
16,905
407
178
41.535627
0.719848
0.0685
0
0.127517
0
0.036913
0.250191
0.079202
0
0
0
0
0
0
null
null
0
0.04698
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
1e5dcad585b109f7333b9c4e9cac2b355446b109
225
py
Python
src/helpers/csv_reader.py
samukasmk/api-feiras-livres
58fb8861844e812b1edcdf51ee1a1bd42eae4e08
[ "Apache-2.0" ]
2
2017-12-16T00:20:30.000Z
2018-09-25T00:46:38.000Z
src/helpers/csv_reader.py
samukasmk/api-feiras-livres
58fb8861844e812b1edcdf51ee1a1bd42eae4e08
[ "Apache-2.0" ]
null
null
null
src/helpers/csv_reader.py
samukasmk/api-feiras-livres
58fb8861844e812b1edcdf51ee1a1bd42eae4e08
[ "Apache-2.0" ]
null
null
null
import csv def iter_csv_file(csv_file): with open(csv_file) as csvfile_obj: reader = csv.DictReader(csvfile_obj) for row_dict in reader: yield dict((k.lower(), v) for k,v in row_dict.items())
28.125
66
0.653333
37
225
3.756757
0.567568
0.151079
0
0
0
0
0
0
0
0
0
0
0.244444
225
7
67
32.142857
0.817647
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
1e68f0a3acd2dc33101adbf6c5a5ce1fe6af36ad
1,165
py
Python
conda_kapsel/plugins/test/test_network_util.py
LaudateCorpus1/kapsel
736b95d4ef81121bfeb965b989f7c159cf470386
[ "BSD-3-Clause" ]
43
2016-07-13T19:05:06.000Z
2021-02-18T08:17:52.000Z
conda_kapsel/plugins/test/test_network_util.py
conda-archive/kapsel
736b95d4ef81121bfeb965b989f7c159cf470386
[ "BSD-3-Clause" ]
13
2016-08-04T18:42:27.000Z
2017-02-21T01:07:03.000Z
conda_kapsel/plugins/test/test_network_util.py
conda-archive/kapsel
736b95d4ef81121bfeb965b989f7c159cf470386
[ "BSD-3-Clause" ]
10
2016-07-27T00:40:52.000Z
2021-08-23T05:42:23.000Z
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright © 2016, Continuum Analytics, Inc. All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. # -------------------------------------------------------------------...
32.361111
78
0.590558
167
1,165
3.988024
0.413174
0.066066
0.09009
0.036036
0.633634
0.633634
0.633634
0.633634
0.633634
0.633634
0
0.036458
0.175966
1,165
35
79
33.285714
0.65625
0.44721
0
0.555556
0
0
0.056872
0
0
0
0
0
0.111111
1
0.111111
false
0
0.111111
0
0.222222
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
1e697b132e8a6d032c318f2da099d534768c3ab5
1,347
py
Python
parser/team04/Interpreter/Expression/logical.py
mr8ug/tytus
a09abe4095e49d333a8ed9ca81cb3d88f90872ba
[ "MIT" ]
1
2021-01-09T05:32:35.000Z
2021-01-09T05:32:35.000Z
parser/team04/Interpreter/Expression/logical.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
parser/team04/Interpreter/Expression/logical.py
XiomRB/tytus
0873e4bdce5c110bee6ef2aa98240be6a93ae024
[ "MIT" ]
null
null
null
from Interpreter.Expressions.expression import Expression class Logical(Expression): def __init__(self, value): self.value = value def getValue(self, env): pass def isNumeric(self, value): return isinstance(value, int) or isinstance(value, float) class And_cl...
26.94
75
0.628062
147
1,347
5.544218
0.197279
0.068712
0.053988
0.088344
0.611043
0.558282
0.517791
0.517791
0.517791
0.517791
0
0
0.281366
1,347
49
76
27.489796
0.841942
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0.264706
false
0.029412
0.029412
0.029412
0.529412
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
1e6c60fb2e0d35dd84ab30bca0e1f8e62f7dfa48
237
py
Python
bro.py
shubhiD/handyBro
b50ce568ad1622633faafe52dac6c5d6c49b62e0
[ "MIT" ]
null
null
null
bro.py
shubhiD/handyBro
b50ce568ad1622633faafe52dac6c5d6c49b62e0
[ "MIT" ]
1
2016-11-12T15:32:08.000Z
2016-11-12T15:32:08.000Z
bro.py
shubhiD/handyBro
b50ce568ad1622633faafe52dac6c5d6c49b62e0
[ "MIT" ]
null
null
null
#!/usr/bin/python from packages.brow import Brow import sys if __name__=='__main__': obj=Brow() try: if sys.argv[1]==None: pass except: Brow.login(obj) if sys.argv[1]=='sea': Brow.multiSearch(obj,''.join(sys.argv[2:]))
14.8125
45
0.649789
38
237
3.842105
0.605263
0.143836
0.123288
0.136986
0
0
0
0
0
0
0
0.015
0.156118
237
15
46
15.8
0.715
0.067511
0
0
0
0
0.05
0
0
0
0
0
0
1
0
false
0.090909
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1e736cb0508329a0d30345cdeed5e83e9411a079
1,663
py
Python
MV3D_TF_release/tools/data_preprocess.py
ZiningWang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
52
2018-08-28T03:44:51.000Z
2022-03-23T16:00:14.000Z
MV3D_TF_release/tools/data_preprocess.py
weidezhang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
1
2019-06-25T01:32:35.000Z
2019-07-01T01:34:20.000Z
MV3D_TF_release/tools/data_preprocess.py
weidezhang/Sparse_Pooling
a160ddf9a03ef53bad630b4ac186a8437bd0475c
[ "Unlicense" ]
20
2018-07-31T18:17:35.000Z
2021-07-09T08:42:06.000Z
import os,sys #add library to the system path lib_path = os.path.abspath(os.path.join('lib')) sys.path.append(lib_path) lib_path = os.path.abspath(os.path.join('tools')) sys.path.append(lib_path) import numpy as np import cv2 from utils.transform import calib_to_P,clip3DwithinImage,projectToImage,lidar_to_camer...
36.152174
88
0.6819
265
1,663
4.128302
0.373585
0.038391
0.036563
0.043876
0.281536
0.122486
0.102377
0.062157
0.062157
0
0
0.01844
0.152135
1,663
46
89
36.152174
0.757447
0.120866
0
0.064516
0
0
0.081386
0.028203
0
0
0
0
0
0
null
null
0
0.225806
null
null
0.032258
0
0
0
null
0
0
0
0
0
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
1e78b06abe710b02037d4c78d5310add9518c929
1,115
py
Python
src/lemonbarpy.py
dj95/lemonbarpy
372809d480183c0017909a83f76c41f550373a61
[ "MIT" ]
14
2016-06-03T18:34:38.000Z
2020-05-31T10:11:30.000Z
src/lemonbarpy.py
dj95/lemonbarpy
372809d480183c0017909a83f76c41f550373a61
[ "MIT" ]
null
null
null
src/lemonbarpy.py
dj95/lemonbarpy
372809d480183c0017909a83f76c41f550373a61
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # lemonbarpy # # (c) 2016 Daniel Jankowski import os import sys import json import signal import argparse import bspwm CONFIG_FILE = '/home/neo/Projekte/Python/lemonbarpy/conf/lemonbarpy.json' # TODO: remove this dirty solution BAR = None """ @description Shutdown handler to shut ...
16.641791
81
0.666368
150
1,115
4.813333
0.526667
0.096953
0.041551
0.052632
0.055402
0
0
0
0
0
0
0.006857
0.215247
1,115
66
82
16.893939
0.818286
0.081614
0
0
0
0
0.111751
0.065668
0
0
0
0.015152
0
1
0.096774
false
0
0.193548
0
0.354839
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
1e7dc509baeaa2c331d2ed19a680d9d75f91441d
1,527
py
Python
khorosjx/admin.py
jeffshurtliff/khorosjx
1530fad25eb8ccefcbb5a9ae63c09a6858cb033d
[ "MIT" ]
2
2019-11-18T03:52:51.000Z
2020-12-30T04:08:06.000Z
khorosjx/admin.py
jeffshurtliff/khorosjx
1530fad25eb8ccefcbb5a9ae63c09a6858cb033d
[ "MIT" ]
2
2019-12-17T17:02:30.000Z
2021-06-02T13:56:02.000Z
khorosjx/admin.py
jeffshurtliff/khorosjx
1530fad25eb8ccefcbb5a9ae63c09a6858cb033d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ :Module: khorosjx.admin :Synopsis: Collection of functions relating to security groups :Usage: ``from khorosjx import admin`` :Example: Coming Soon :Created By: Jeff Shurtliff :Last Modified: Jeff Shurtliff :Modified Date: 22 Sep 2021 """ from . import co...
31.163265
115
0.703995
188
1,527
5.632979
0.473404
0.03305
0.049103
0.071766
0.287063
0.287063
0.287063
0.287063
0.287063
0.287063
0
0.010788
0.210871
1,527
48
116
31.8125
0.86805
0.724296
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.181818
true
0
0.090909
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1e831944df74630efd2cea6f383225bc16b3bfeb
9,791
py
Python
neighborhoodtrafficflow/figures/maps.py
Neighborhood-Traffic-Flow/neighborhood-traffic-flow
d93fd788f9099afa07d22c9865cba9208c454bd4
[ "MIT" ]
2
2020-06-30T07:33:02.000Z
2020-07-31T23:05:33.000Z
neighborhoodtrafficflow/figures/maps.py
Neighborhood-Traffic-Flow/neighborhood-traffic-flow
d93fd788f9099afa07d22c9865cba9208c454bd4
[ "MIT" ]
2
2019-12-04T17:42:39.000Z
2019-12-17T19:33:47.000Z
neighborhoodtrafficflow/figures/maps.py
Neighborhood-Traffic-Flow/neighborhood-traffic-flow
d93fd788f9099afa07d22c9865cba9208c454bd4
[ "MIT" ]
4
2019-12-10T18:28:11.000Z
2020-05-22T19:22:28.000Z
"""Functions to generate Plotly maps for the dashboard.""" from pathlib import Path import numpy as np import matplotlib.cm as cm from matplotlib.colors import Normalize import pandas as pd # Arterial classification for traffic flow map hover text ROAD_TYPE = { 0: 'Not Designated', 1: 'Principal Arterial', ...
29.053412
79
0.524461
1,057
9,791
4.780511
0.261116
0.026321
0.012468
0.010291
0.135365
0.083713
0.054819
0.048684
0.044726
0.034831
0
0.023649
0.34787
9,791
336
80
29.139881
0.767737
0.310796
0
0.205
1
0
0.196171
0.004551
0
0
0
0
0
1
0.025
false
0
0.025
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1e83ed4224182e10c548de63a511732a4a7eae19
625
py
Python
notify.py
Bhagyashree1203/Reminder-App
5fdd64a6780557c65ab77b4e57defb07a6b8548f
[ "Apache-2.0" ]
1
2020-09-21T14:22:14.000Z
2020-09-21T14:22:14.000Z
notify.py
Bhagyashree1203/Reminder-App
5fdd64a6780557c65ab77b4e57defb07a6b8548f
[ "Apache-2.0" ]
null
null
null
notify.py
Bhagyashree1203/Reminder-App
5fdd64a6780557c65ab77b4e57defb07a6b8548f
[ "Apache-2.0" ]
null
null
null
import time from plyer import notification if __name__ == "__main__": while True: notification.notify( title = "**Please Drink water Now!!!!", message = "The National Academies of Sciences, Engineering, and Medicine determined that an adequate daily fluid intake...
41.666667
100
0.6144
84
625
4.452381
0.809524
0.026738
0.048128
0.080214
0
0
0
0
0
0
0
0.038902
0.3008
625
14
101
44.642857
0.816934
0.064
0
0
0
0.076923
0.14386
0.080702
0
0
0
0
0
0
null
null
0
0.153846
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
1e8a92be40d4d5890f61097c14c5a63911918df0
725
py
Python
blog/urls.py
Walachul/milestone4
ce3be4d39b5d28141f41d4783d3e7211480ce64d
[ "MIT" ]
null
null
null
blog/urls.py
Walachul/milestone4
ce3be4d39b5d28141f41d4783d3e7211480ce64d
[ "MIT" ]
7
2020-02-12T03:15:31.000Z
2022-03-12T00:01:18.000Z
blog/urls.py
Code-Institute-Submissions/Walachul-milestone4
ce3be4d39b5d28141f41d4783d3e7211480ce64d
[ "MIT" ]
1
2020-01-12T12:49:10.000Z
2020-01-12T12:49:10.000Z
from django.conf.urls import url from .views import ( PostListView, PostDetailView, PostCreateView, PostUpdateView, PostDeleteView, UserPostListView, ) from . import views urlpatterns = [ url(r"^$", PostListView.as_view(), name="blog-home"), url(r"^(?P<pk>\d+)/$", PostDetailView.as_view...
29
85
0.616552
91
725
4.846154
0.384615
0.054422
0.136054
0.190476
0.072562
0.054422
0
0
0
0
0
0.003311
0.166897
725
24
86
30.208333
0.726821
0
0
0
0
0
0.254144
0.104972
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
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
1e8d908329964fb49df5b6f5f1797c674108d7a9
1,000
py
Python
src/tests/unit/test_fizzbuzz.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
src/tests/unit/test_fizzbuzz.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
src/tests/unit/test_fizzbuzz.py
lastnamevega/fastapi-demo
c2911c3e4d764c27e5ccf540ddc2d3c9bbc624a6
[ "MIT" ]
null
null
null
from ...lib.fizzbuzz import fizzbuzz import pytest def divisible_by(number: int): return range(number, 101, number) @pytest.mark.parametrize('number', [ i for i in divisible_by(1) if i not in divisible_by(3) and i not in divisible_by(5) ]) def test_fizzbuzz_indivisible(number): assert fizzbuzz(number) =...
24.390244
87
0.711
148
1,000
4.655405
0.310811
0.143687
0.132075
0.156749
0.41074
0.386067
0.317852
0.317852
0.317852
0.317852
0
0.018094
0.171
1,000
40
88
25
0.813028
0
0
0.222222
0
0
0.072
0
0
0
0
0
0.185185
1
0.222222
false
0
0.074074
0.037037
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
1
0
0
0
0
0
0
0
1
1e93c8a7d3e4b860df74f81b82227e9126a84446
789
py
Python
membership/forms.py
benjaoming/django-denmark.org
f708ce95720fd3452913a003ccf8179f869826c4
[ "MIT" ]
null
null
null
membership/forms.py
benjaoming/django-denmark.org
f708ce95720fd3452913a003ccf8179f869826c4
[ "MIT" ]
null
null
null
membership/forms.py
benjaoming/django-denmark.org
f708ce95720fd3452913a003ccf8179f869826c4
[ "MIT" ]
null
null
null
from django import forms from django.conf import settings from django.contrib.auth import forms as auth_forms from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext class InviteForm(forms.Form): invite_code = forms.CharField( label=_("Invite code"), ) ...
30.346154
75
0.712294
99
789
5.484848
0.464646
0.184162
0.055249
0.095764
0.143646
0.143646
0
0
0
0
0
0
0.205323
789
26
76
30.346154
0.866029
0
0
0
0
0
0.073418
0
0
0
0
0
0
1
0.055556
false
0
0.277778
0
0.611111
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
1e97cdf11aae37a7bb95141631398c8ab92e1ac8
811
py
Python
CourseOnline/MainProject/migrations/0023_auto_20200105_0203.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
CourseOnline/MainProject/migrations/0023_auto_20200105_0203.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
CourseOnline/MainProject/migrations/0023_auto_20200105_0203.py
smygt/DjangoSchoolSystem.
6ddbef118ed7a2bb77192f96fc888a36ad4831ed
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2020-01-04 23:03 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('MainProject', '0022_auto_20200105_0036'), ] operations = [ migrations.RemoveField( model_name='...
30.037037
126
0.607891
81
811
5.950617
0.62963
0.049793
0.058091
0.091286
0
0
0
0
0
0
0
0.052013
0.265105
811
26
127
31.192308
0.756711
0.055487
0
0.1
1
0
0.164921
0.064136
0
0
0
0
0
1
0
false
0
0.1
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1