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
0df1fb92821d42f2413092da69023b3c603ae978
2,902
py
Python
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
326
2015-01-02T10:15:14.000Z
2022-03-28T11:53:57.000Z
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
418
2015-06-01T22:35:46.000Z
2022-03-28T08:55:48.000Z
utils/text_width_check.py
boamaod/frogatto
21eca0e87af51a57298cb7392fcedda2367614aa
[ "CC-BY-3.0" ]
88
2015-01-19T20:03:22.000Z
2022-03-15T17:36:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, sys, codecs #usage: from frogatto's base folder, run: #utils/text_width_check.py po/(desired file, with a "po" or "pot" extension) [optional:max width] #e.g.: #utils/text_width_check.py po/frogatto.pot 360 global MAXWIDTH MAXWIDTH = 360 def main(catalog): if ca...
30.547368
97
0.60062
442
2,902
3.90724
0.257919
0.031268
0.017371
0.026057
0.251303
0.251303
0.170237
0.147076
0.107701
0.107701
0
0.022139
0.175052
2,902
94
98
30.87234
0.699248
0.141282
0
0.223684
0
0.013158
0.082661
0
0
0
0
0
0
1
0.052632
false
0.013158
0.013158
0
0.105263
0.039474
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df217f11454e76bb3aeb5e62d8886ef5b46e27b
1,228
py
Python
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
1
2021-04-20T13:52:55.000Z
2021-04-20T13:52:55.000Z
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
null
null
null
xclib/utils/dense.py
iksteen/pyxclib
2948162dd780f8230a785abfd2ee57e8ab5cc156
[ "MIT" ]
null
null
null
import numpy as np from .sparse import normalize as _normalize from .sparse import binarize as _binarize def compute_dense_features(features, word_embeddings, method='wt_sum', normalize=True, binarize=False): """ Compute dense features as per given sparse features and word embedding...
29.238095
75
0.672638
140
1,228
5.757143
0.385714
0.111663
0.081886
0.059553
0.099256
0.099256
0.099256
0
0
0
0
0.004353
0.251629
1,228
41
76
29.95122
0.872688
0.438925
0
0
0
0
0.019737
0
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df3219c9c394d735e2efe83d97bfc2dd7b7f56a
2,381
py
Python
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
2,150
2019-06-12T20:55:41.000Z
2022-03-21T07:14:51.000Z
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
124
2019-06-22T17:12:27.000Z
2022-02-26T11:43:13.000Z
examples/sim2real/utils.py
gujralsanyam22/pyrobot
a0448714857b684d8b280f710e9304988524d2e0
[ "MIT" ]
329
2019-06-13T03:03:54.000Z
2022-03-30T07:04:55.000Z
# The MIT License # Copyright (c) 2017 OpenAI (http://openai.com) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
38.403226
81
0.635867
343
2,381
4.379009
0.443149
0.046605
0.043276
0.023968
0.035952
0
0
0
0
0
0
0.008576
0.265435
2,381
61
82
39.032787
0.8502
0.525409
0
0
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.034483
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df48fd0e8c11edab2963cf38a4e2ecdaddb235d
115
py
Python
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
EdX/Python/PSET_1_2.py
mayankjobanputra/Programing
eed62661ee9a745c7ea81dde317d83a40ea489f4
[ "MIT" ]
null
null
null
num=0 for i in range(len(s)-2): if(s[i:i+3]=='bob'): num+=1 print "Number of times bob occurs is:",num
19.166667
42
0.565217
25
115
2.6
0.76
0
0
0
0
0
0
0
0
0
0
0.044944
0.226087
115
5
43
23
0.685393
0
0
0
0
0
0.286957
0
0
0
0
0
0
0
null
null
0
0
null
null
0.2
1
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
1
0
0
0
0
0
0
0
0
3
0df4ba5067412628c67412b6dede1e6a1974fd73
1,451
py
Python
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
17
2019-10-21T13:09:49.000Z
2022-01-26T03:06:35.000Z
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
5
2019-10-24T23:02:34.000Z
2020-01-28T02:01:30.000Z
pygmentize/floorplan.py
RedlineResearch/floorplan
dbaa7e6649eed18707ff8a27ee3c33fa83b47fcf
[ "BSD-3-Clause", "MIT" ]
null
null
null
from pygments.lexer import RegexLexer from pygments.token import * import re __all__ = ['FloorplanLexer'] class FloorplanLexer(RegexLexer): name = 'Floorplan' aliases = ['floorplan'] filenames = ['*.flp'] flags = re.MULTILINE | re.UNICODE reserved = ( 'ptr', 'flags', '_', 'Counter', 'bit' , '...
27.377358
74
0.456926
131
1,451
5.015267
0.564886
0.073059
0.129376
0.012177
0
0
0
0
0
0
0
0.00388
0.289456
1,451
52
75
27.903846
0.633366
0.102688
0
0.057143
0
0
0.225756
0.033359
0
0
0
0
0
1
0
false
0
0.085714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df53ba43d95a0153001bd438b6726acb358cb36
1,266
py
Python
status/models.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
9
2015-11-04T16:22:05.000Z
2021-01-27T11:02:19.000Z
status/models.py
osundiranayoade/Django-Bingo_builder
9ca7098c28fa0a4d77c3ea62877d44230940618d
[ "BSD-3-Clause" ]
1
2021-06-10T23:18:27.000Z
2021-06-10T23:18:27.000Z
status/models.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
4
2015-07-13T19:22:09.000Z
2020-11-24T11:25:27.000Z
from django.db import models global_max_length = 200 class FilesystemStats(models.Model): device = models.CharField(max_length = global_max_length) used_perc = models.DecimalField(max_digits = 5, decimal_places = 2) size = models.IntegerField() used = models.IntegerField() avail = models.IntegerFi...
36.171429
71
0.725908
155
1,266
5.696774
0.329032
0.112118
0.101925
0.1359
0.582106
0.582106
0.582106
0.361268
0.120045
0
0
0.015355
0.176935
1,266
34
72
37.235294
0.832054
0
0
0.111111
0
0
0
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.962963
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
0df593c1def415d2eed2a9f746ea18cf01424f0d
8,816
py
Python
blotter/server.py
antequant/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
1
2021-05-09T10:49:41.000Z
2021-05-09T10:49:41.000Z
blotter/server.py
webclinic017/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
null
null
null
blotter/server.py
webclinic017/blotter
2c4bbee069fec199d97728a22d0b9263d5a145d9
[ "MIT" ]
3
2021-01-26T13:44:15.000Z
2021-09-11T16:55:23.000Z
import asyncio import concurrent.futures from datetime import datetime, timedelta, timezone from logging import getLogger from typing import Awaitable, Callable, Iterator, Optional, Tuple, TypeVar import grpc from google.cloud import bigquery import ib_insync from blotter import blotter_pb2, blotter_pb2_grpc, request...
37.514894
137
0.681715
894
8,816
6.440716
0.237136
0.046891
0.021014
0.015804
0.202501
0.122265
0.10455
0.096214
0.0719
0.028135
0
0.00478
0.240699
8,816
234
138
37.675214
0.855393
0.05819
0
0.140351
0
0
0.076754
0.01684
0
0
0
0.004274
0
1
0.070175
false
0
0.099415
0
0.245614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df5af911e3f3139f8bc98bc1ee4ef005bead7ae
5,859
py
Python
src/ralph/dashboards/renderers.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/dashboards/renderers.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/dashboards/renderers.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
import calendar import json import logging from urllib.parse import urlencode from django.core.urlresolvers import NoReverseMatch, reverse from django.template.loader import render_to_string from django.utils.safestring import mark_safe from ralph.dashboards.helpers import encode_params, normalize_value logger = lo...
29.00495
78
0.522103
585
5,859
5.035897
0.276923
0.019009
0.022064
0.020367
0.10353
0.033944
0
0
0
0
0
0.009626
0.361666
5,859
201
79
29.149254
0.778075
0.01519
0
0.139535
0
0
0.087454
0.01232
0
0
0
0
0
1
0.069767
false
0
0.046512
0
0.302326
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df659907ce974dd2868e7904a1d5d37e351ed0f
2,094
py
Python
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
UI/ui_aliasAndNotes.py
ShowingCloud/Capricorn
cfe521975ca23f7502509595f1fd3f8c6c5e1c55
[ "MIT" ]
null
null
null
#coding=utf-8 ''' Created on 2013-3-8 @author: pyroshow ''' from PySide.QtGui import * from Models.LocalDB import * from datetime import datetime class ModifyAliasNotes(QDialog): def __init__(self, sess, UUID, Alias, Notes, parent =None): QDialog.__init__(self, parent) self....
24.635294
88
0.550143
192
2,094
5.953125
0.369792
0.079615
0.059493
0.041995
0
0
0
0
0
0
0
0.005852
0.347182
2,094
84
89
24.928571
0.830285
0.024355
0
0.042553
0
0
0.013759
0
0
0
0
0
0
1
0.06383
false
0
0.06383
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df79d19d0d5139b0f49f4ce3430b3e3555f7c4c
496
py
Python
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
sync.py
bathelomeo/asynchronous_operations
587fed98810ec54d5eec6359e703dd3d4ed5b029
[ "MIT" ]
null
null
null
from timeit import default_timer import requests def load_data(delay): print(f'Starting {delay} second timer') text = requests.get(f'https:// httpbin.org/delay/{delay}').text print(f'Completed{delay}second timer ') return text def run_demo(): start_time = default_timer() two_data = load_data(...
21.565217
67
0.693548
72
496
4.583333
0.486111
0.109091
0.09697
0
0
0
0
0
0
0
0
0.007407
0.183468
496
22
68
22.545455
0.807407
0
0
0
0
0
0.272177
0.137097
0
0
0
0
0
1
0.1875
false
0
0.125
0
0.375
0.1875
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df7fda4e2f2a59db80d37c4fe6a570c0f614782
1,188
py
Python
problems/exercism/space-age/space_age.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/space-age/space_age.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/space-age/space_age.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
class SpaceAge: EARTH_PERIOD = 31557600 MERCURY_PERIOD = 0.2408467 * EARTH_PERIOD VENUS_PERIOD = 0.61519726 * EARTH_PERIOD MARS_PERIOD = 1.8808158 * EARTH_PERIOD JUPITER_PERIOD = 11.862615 * EARTH_PERIOD SATURN_PERIOD = 29.447498 * EARTH_PERIOD URANUS_PERIOD = 84.016846 * EARTH_PERIOD NE...
32.108108
59
0.671717
160
1,188
4.76875
0.225
0.144168
0.157274
0.209699
0.366972
0.366972
0.366972
0
0
0
0
0.079521
0.227273
1,188
36
60
33
0.751634
0
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0.296296
0.962963
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
1
0
0
0
1
1
0
0
4
0df81411a14b3a4796c7dba69369570d42e38320
511
py
Python
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
1
2020-04-10T00:09:57.000Z
2020-04-10T00:09:57.000Z
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
1
2015-07-13T20:04:07.000Z
2015-07-13T20:04:07.000Z
setup.py
cdgriffith/pyctf
55ef40fc784b38afbf377ec0688afa181b74d714
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'requirements.txt')) as f: requirements = f.readlines() setup( name="pyctf", version="0.0", packages=['pyctf'], package_dir={'pyctf'...
22.217391
55
0.639922
63
511
5
0.68254
0.057143
0
0
0
0
0
0
0
0
0
0.007353
0.201566
511
23
56
22.217391
0.764706
0.082192
0
0
0
0
0.196581
0.049145
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df8c6c3e4e25589092f6e714c1d72a9fe4db8d5
664
py
Python
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
scripts/npc/pipe3.py
pantskun/swordiemen
fc33ffec168e6611587fdc75de8270f6827a4176
[ "MIT" ]
null
null
null
# 3rd Pipe Handle (2111019) | Home of the Missing Alchemist (261000001) undergroundStudy = 3339 if sm.hasQuest(undergroundStudy) or sm.hasQuestCompleted(undergroundStudy): # The dummy quest ID 7063 will be used to determine if the pipes are being activated in the right order # This needs to be activated after...
44.266667
107
0.707831
98
664
4.795918
0.622449
0.044681
0.07234
0.085106
0.165957
0.165957
0.165957
0.165957
0.165957
0.165957
0
0.06654
0.207831
664
15
108
44.266667
0.826996
0.329819
0
0.4
0
0
0.312217
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0df977d7b93c280609b83f8c7407e780209f5280
3,501
py
Python
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
backend/ibutsu_server/test/test_importers.py
RonnyPfannschmidt/ibutsu-server
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
[ "MIT" ]
null
null
null
from pathlib import Path from unittest.mock import call from unittest.mock import MagicMock from unittest.mock import patch from ibutsu_server.test import BaseTestCase XML_FILE = Path(__file__).parent / "res" / "empty-testsuite.xml" XML_FILE_COMBINED = Path(__file__).parent / "res" / "combined.xml" class TestImpor...
43.222222
97
0.720366
425
3,501
5.614118
0.2
0.065381
0.085499
0.130763
0.745599
0.745599
0.730511
0.730511
0.711651
0.711651
0
0.007679
0.181662
3,501
80
98
43.7625
0.825131
0.095116
0
0.568966
0
0
0.155238
0.115873
0
0
0
0
0.189655
1
0.051724
false
0
0.724138
0
0.793103
0
0
0
0
null
0
0
0
0
1
1
1
1
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
1
0
1
0
0
7
0dfa57d99c628dfc879e102d39f2b537d771fbed
3,078
py
Python
scripts/import-politique-de-contribution-open-source.py
pajachiet/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
17
2018-10-05T09:17:41.000Z
2022-01-14T10:19:31.000Z
scripts/import-politique-de-contribution-open-source.py
Indianajaune/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
10
2018-10-15T07:50:38.000Z
2022-02-26T04:18:49.000Z
scripts/import-politique-de-contribution-open-source.py
Indianajaune/numerique.gouv.fr
0c4b9c0978da0320a7875c3bd54a1d241e3bba71
[ "MIT" ]
9
2018-10-12T12:43:01.000Z
2021-11-12T20:34:08.000Z
# -*- coding: UTF-8 -*- from git import Repo import shutil import os import glob import re import yaml def get_yaml(f): pointer = f.tell() if f.readline() != '---\n': f.seek(pointer) return '' readline = iter(f.readline, '') readline = iter(readline.next, '---\n') return ''.join(readline) def suppri...
30.475248
154
0.594217
425
3,078
4.207059
0.308235
0.067673
0.072707
0.044743
0.222036
0.171141
0.159955
0.146532
0.146532
0.068233
0
0.004796
0.187135
3,078
100
155
30.78
0.709832
0.006823
0
0.127907
0
0
0.159411
0.049755
0
0
0
0
0
1
0.05814
false
0
0.069767
0
0.174419
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0dfa5e71db2afe7ed5775f869de18eda648f4a6e
8,741
py
Python
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
tools/test_idf_py/test_idf_py.py
dreamcmi/esp-idf
2024ae943466a967f48607c3bd9c258526f08b10
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import os import subprocess import sys from unittest import TestCase, main, mock try: from StringIO import StringIO except ImportError: from io import StringIO try: import...
37.676724
120
0.588491
971
8,741
5.124614
0.205973
0.048232
0.036174
0.038585
0.626005
0.575362
0.483119
0.469453
0.410571
0.358722
0
0.006676
0.280288
8,741
231
121
37.839827
0.784295
0.039355
0
0.42246
0
0
0.22775
0.02219
0
0
0
0
0.15508
1
0.085562
false
0
0.053476
0
0.171123
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0dfaabfbc39ee5e2ac22e5d50e4fe456ac3ceac3
481
py
Python
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
api/urls.py
Luanlpg/favorites_list
593bc8eab89382cbf62f6efa0e8a4769f0dc3a0a
[ "MIT" ]
null
null
null
from django.urls import path from django.urls import include from rest_framework import routers from . import views router = routers.DefaultRouter() urlpatterns = [ path('', include(router.urls)), path('user/', views.UserView.as_view()), path('<str:token>/client/', views.ClientListView.as_view()), p...
28.294118
84
0.706861
61
481
5.491803
0.409836
0.071642
0.089552
0.116418
0.262687
0.262687
0.191045
0.191045
0
0
0
0
0.118503
481
16
85
30.0625
0.790094
0
0
0
0
0
0.189189
0.139293
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
216ddf3f3bee18f9ef70cbc6eb7c66408981e493
938
py
Python
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
more_exercises/21.py
ilante/programming_immanuela_englander
45d51c99b09ae335a67e03ac5ea79fc775bdf0bd
[ "MIT" ]
null
null
null
# 21. rewrite the program from steps 18 to 20 so that it works for reverse complement (i.e. the user types the strings “ATTCGT” and “AAGGAT” and she gets the previous example as result) #18. print 3 rows: the first and the third for the sequences, #the second one should contain “|” if the bases are complementary, “X” ...
37.52
185
0.634328
166
938
3.584337
0.506024
0.033613
0.053782
0
0
0
0
0
0
0
0
0.031165
0.21322
938
24
186
39.083333
0.775068
0.485075
0
0
0
0
0.164557
0
0
0
0
0
0
1
0.071429
false
0
0
0
0.142857
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
216e193708479aa189d55d4a217d2cdf85446483
494
py
Python
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
src/schema/client.py
gabrielroot/pedidosDelivery
52315d6e5db6dc2c8be9e523f7491d798ed07c5b
[ "MIT" ]
null
null
null
from src import ma from src.models import Client from src.models import FlavorItems from marshmallow import fields class OrdersSchema(ma.Schema): class Meta: model = FlavorItems fields = ('item_id', 'flavor_id') class ClientSchema(ma.Schema): orders = fields.Nested(OrdersSchema, many=True) ...
23.52381
110
0.659919
59
494
5.457627
0.525424
0.065217
0.080745
0.118012
0
0
0
0
0
0
0
0
0.222672
494
20
111
24.7
0.838542
0
0
0.142857
0
0
0.147773
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
216e3d46e49817b7dcacb2056f0d736770221c67
5,059
py
Python
nugis/nugis/settings.py
luismorenolopera/nugis-backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
1
2021-04-15T15:29:36.000Z
2021-04-15T15:29:36.000Z
nugis/nugis/settings.py
luismorenolopera/Nugis-Backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
5
2020-06-05T19:01:29.000Z
2022-03-11T23:29:14.000Z
nugis/nugis/settings.py
luismorenolopera/Nugis-Backend
39abe9959ad74a995817b0e8939ee2b52849a63d
[ "MIT" ]
3
2018-12-31T09:13:01.000Z
2021-02-20T08:22:24.000Z
""" Django settings for nugis project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os impo...
26.07732
92
0.691243
558
5,059
6.116487
0.37276
0.057134
0.051568
0.058599
0.168766
0.159098
0.105772
0.105772
0.062701
0.027542
0
0.011209
0.17118
5,059
193
93
26.212435
0.802767
0.256968
0
0
1
0
0.5
0.381374
0
0
0
0
0
1
0
false
0.050847
0.016949
0
0.016949
0
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
1
0
0
0
0
0
2
216fa0157d7ec2be565bf762ad39114041c00593
929
py
Python
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
examples/conjunctive_graphs.py
Letractively/rdflib
b92e162efd61506d19ed25a12960cd32f0c7432e
[ "BSD-3-Clause" ]
null
null
null
from rdflib import Namespace, BNode, Literal, URIRef from rdflib.graph import Graph, ConjunctiveGraph from rdflib.plugins.memory import IOMemory ns = Namespace("http://love.com#") mary = URIRef("http://love.com/lovers/mary#") john = URIRef("http://love.com/lovers/john#") cmary=URIRef("http://love.com/lovers/mary#") ...
24.447368
52
0.674919
125
929
5.016
0.344
0.063796
0.087719
0.108453
0.172249
0.172249
0
0
0
0
0
0.003559
0.092573
929
37
53
25.108108
0.740214
0.046286
0
0.086957
0
0
0.236693
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
216fccd5371afe7b93e013de42d1f279a6bf954f
297
py
Python
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
bitcoin/blocksci-server/app-server.py
joequant/sto
3bd45ef296b0d567c3f74a990580c745fe2114c0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask app = Flask(__name__) @app.route("/hello-world") def hello(): return "Hello world!" if __name__ == "__main__": from gevent.pywsgi import WSGIServer http_server = WSGIServer(('0.0.0.0', 5000), app) http_server.serve_forever()
18.5625
52
0.673401
41
297
4.512195
0.609756
0.032432
0.032432
0
0
0
0
0
0
0
0
0.037037
0.181818
297
15
53
19.8
0.72428
0.070707
0
0
0
0
0.141818
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.111111
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
21706cb4bd6e902ccc7617a54c669f011eefffb2
8,158
py
Python
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
pyflocker/ciphers/backends/symmetric.py
fossabot/pyflocker
293df31e32fb796df5c7fba803846c9872e67485
[ "MIT" ]
null
null
null
"""Tools for Symmetric ciphers common to all the backends.""" from __future__ import annotations import hmac import typing from functools import partial from .. import base, exc class FileCipherWrapper(base.BaseAEADCipher): """ Wraps ciphers that support BaseAEADCipher interface and provides file encry...
30.554307
79
0.599779
950
8,158
4.996842
0.208421
0.041289
0.020855
0.023173
0.391405
0.323362
0.267327
0.232779
0.195071
0.177586
0
0.003935
0.31466
8,158
266
80
30.669173
0.845108
0.220887
0
0.417178
0
0
0.051346
0
0
0
0
0
0
1
0.128834
false
0
0.030675
0.01227
0.251534
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2170b45e278994aee2150395fd274fdfc4ab4f3e
380
py
Python
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
taller control de selectivas/ejercicio_3.py
MiguelUrmo/Talleres-logaritmos
ed711241b8225a39f5107515e8d967575a5c0af6
[ "MIT" ]
null
null
null
""" datos de entrada variable 1--->a--->int variable 2--->b--->int variable 3--->c--->int variable 4--->d--->int """ #entrada a=int(input("ingrese variable 1: " )) b=int(input("ingrese variable 2: ")) c=int(input("ingrese variable 3: ")) d=int(input("ingrese variable 4: ")) #caja negra if (d==0): re=(a-c)**2 elif(d...
19
37
0.576316
66
380
3.318182
0.378788
0.146119
0.273973
0.420091
0
0
0
0
0
0
0
0.037383
0.155263
380
19
38
20
0.64486
0.331579
0
0
0
0
0.381148
0
0
0
0
0
0
1
0
false
0
0
0
0
0.111111
0
0
0
null
0
1
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
2
217199741c69648150fbd523fc6f07a21de56382
1,852
py
Python
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
null
null
null
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
2
2020-04-13T18:33:36.000Z
2021-05-11T10:26:06.000Z
backend/app.py
KakoozaJerry/sera
eee127ce8c73772f5f980e4f5e9b1887a790c465
[ "MIT" ]
null
null
null
from flask import Flask ,jsonify ,abort ,make_response ,request from flask_restful import Resource, Api #from ./estimator import * app = Flask(__name__) api = Api(app) class HelloWorld(Resource): def get(self): return {'hello': data} api.add_resource(HelloWorld, '/api/v1/on-covid-19') todos = {} class ...
25.027027
74
0.598812
250
1,852
4.308
0.344
0.044568
0.030641
0.041783
0.135562
0.119777
0.077066
0.05571
0
0
0
0.020833
0.222462
1,852
74
75
25.027027
0.727083
0.013499
0
0.111111
0
0
0.087748
0
0
0
0
0.040541
0
1
0.166667
false
0
0.111111
0.111111
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
1
0
0
0
2
21725365dcbb684cdebea331fa52515d4fc66d02
314
py
Python
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
26
2017-11-23T19:30:03.000Z
2022-02-09T10:35:10.000Z
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
51
2017-11-16T15:02:32.000Z
2022-03-01T13:51:58.000Z
python/JournalDirective.Values.py
BIMpraxis/Journalysis
af0c042b28d01ba5e44dafc2bbe9556434e897b8
[ "MIT" ]
9
2017-11-20T09:20:01.000Z
2021-09-15T13:08:30.000Z
import clr def process_input(func, input): if isinstance(input, list): return [func(x) for x in input] else: return func(input) def journalDirectiveValues(jdirective): if jdirective.__repr__() == 'JournalDirective': return jdirective.Values else: return [] OUT = process_input(journalDirectiveValues,IN[0])
28.545455
73
0.764331
40
314
5.85
0.525
0.102564
0
0
0
0
0
0
0
0
0
0.003623
0.121019
314
11
74
28.545455
0.844203
0
0
0
0
0
0.050794
0
0
0
0
0
0
1
0.25
false
0
0.125
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
1
0
0
0
0
0
0
0
1
2175488fbd9eeb9626a7072d7fe8708e8f6e0714
2,350
py
Python
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
1
2021-11-05T19:40:10.000Z
2021-11-05T19:40:10.000Z
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
12
2021-06-20T21:25:35.000Z
2021-08-11T08:19:02.000Z
reactome_gnn/dataset.py
reactome/reactome_gnn
5e5c0000a971743d8e4aa2f865fde4dd3aa5fa93
[ "Apache-2.0" ]
null
null
null
import os import pickle import subprocess import dgl from dgl.data import DGLDataset class PathwayDataset(DGLDataset): """ A class that inherits from DGLDataset and extends its functionality by adding additional attributed and processing of the graph accordingly. Attributes ---------- ro...
35.606061
90
0.614043
304
2,350
4.575658
0.335526
0.040259
0.056075
0.050324
0.382459
0.264558
0.20417
0.162473
0.162473
0.162473
0
0.002921
0.271489
2,350
65
91
36.153846
0.809579
0.253191
0
0
0
0
0.083843
0.012852
0
0
0
0
0
1
0.147059
false
0
0.147059
0.029412
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2175b95524f253410e49446b559a80dfe1d3dbb8
124
py
Python
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
Basic syntax Lab/word reverse.py
DiyanKalaydzhiev23/fundamentals---python
7fa032d9a3270648ffa383bb00dad8e51613189d
[ "MIT" ]
null
null
null
word = input() reversed_word = "" for i in range(len(word) - 1, - 1, -1): reversed_word += word[i] print(reversed_word)
20.666667
39
0.637097
20
124
3.8
0.5
0.473684
0
0
0
0
0
0
0
0
0
0.029703
0.185484
124
5
40
24.8
0.722772
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
1
0
0
null
1
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
3
21761ae262f482184353d2351a50a9342cd20302
1,024
py
Python
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
Binomial/Binomial.py
DakotaKry/algorithims
16eba338df768a0468f7a4788998faae382500e4
[ "MIT" ]
null
null
null
class Binomial: def __init__(self, xmax, ymax): self.A = [ [None] * ymax for i in range(xmax) ] self.trace = False def setTrace(self, trace): self.trace = trace def b(self, x , y ): # runs O(x*y) time A = self.A trace = self.trace for i in range ( x ): for j in range ( y ): if ( A[i][j]...
17.355932
49
0.508789
178
1,024
2.904494
0.258427
0.027079
0.034816
0.06383
0.119923
0.061896
0.061896
0
0
0
0
0.02521
0.302734
1,024
58
50
17.655172
0.69888
0.038086
0
0.075
0
0
0.002039
0
0
0
0
0
0
1
0.125
false
0
0
0
0.2
0.075
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2176987fdbd61dbebc421fba3bb535bdc9787060
957
py
Python
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
1
2022-01-17T00:51:15.000Z
2022-01-17T00:51:15.000Z
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
userlib/utils/__init__.py
WorldMoZara/Pardon-Bot-Community
541a87b0794ff6ecb57531df99b37bab44d86453
[ "MIT" ]
null
null
null
import ctypes import os import re import subprocess QalcExchangeRatesUpdater = ctypes.cdll.LoadLibrary( os.path.join("/".join(__name__.split(".")) if __name__ != "__main__" else ".", "qalc-update-exchange-rates.so") ) qalc_update_exchange_rates = QalcExchangeRatesUpdater._Z20upda...
25.184211
79
0.617555
137
957
4.072993
0.50365
0.064516
0.064516
0.082437
0
0
0
0
0
0
0
0.005249
0.203762
957
37
80
25.864865
0.727034
0.042842
0
0
0
0
0.093509
0.031903
0
0
0
0
0
1
0.12
false
0
0.16
0.04
0.36
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2176bd40b94b346745b8e60c8cd96eee5c6444d3
2,538
py
Python
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
project_test/tests/test_005_resolver.py
MtzwOsk/autobreadcrumbs
75e2fd1cc74db790c5fdc924d6fa9410ee7caa45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from django.core.urlresolvers import reverse from autobreadcrumbs.resolver import PathBreadcrumbResolver # Autodiscovering is disabled since it allready have be executed # previously, see warning from "test_004_autodiscover.py" # from autobreadcrumbs.discover import autodiscover...
22.069565
66
0.509062
243
2,538
5.26749
0.36214
0.042188
0.042188
0.028125
0.189063
0.06875
0
0
0
0
0
0.005627
0.299842
2,538
114
67
22.263158
0.714688
0.13357
0
0.376344
0
0
0.266269
0.05637
0
0
0
0
0.032258
1
0.021505
false
0
0.032258
0
0.053763
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21773447f02a33a437fe0c12beffe1d346edd743
7,480
py
Python
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
3
2019-08-28T00:51:23.000Z
2020-03-26T01:19:19.000Z
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
null
null
null
mixer/api.py
ooojustin/mixer.py
9195ecb3f30772c0e982cd92a27f7f56ac05a2a8
[ "MIT" ]
null
null
null
import aiohttp import dateutil.parser import json from datetime import datetime, timezone, timedelta from enum import Enum from . import exceptions as MixerExceptions from .objects import MixerUser, MixerChannel class RequestMethod(Enum): GET = 0 POST = 1 class MixerAPI: API_URL = "https://mixer.com/api...
34.62963
104
0.61123
899
7,480
4.968854
0.221357
0.028655
0.027088
0.035818
0.225207
0.198791
0.191404
0.151108
0.136781
0.128274
0
0.003562
0.286898
7,480
215
105
34.790698
0.833896
0.066979
0
0.194915
0
0
0.085464
0.021459
0
0
0
0
0
1
0.008475
false
0
0.059322
0
0.254237
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217a1c4d9a24091de6f28191afa50d26888bd024
3,983
py
Python
src/baxter_gui/sonar.py
HumaRobotics/baxter_evalutation_gui
eceea236286dd2548287c8df3bc9cae5800ca23e
[ "BSD-2-Clause" ]
2
2017-04-06T06:14:10.000Z
2017-10-05T22:35:58.000Z
src/baxter_gui/sonar.py
HumaRobotics/baxter_evalutation_gui
eceea236286dd2548287c8df3bc9cae5800ca23e
[ "BSD-2-Clause" ]
null
null
null
src/baxter_gui/sonar.py
HumaRobotics/baxter_evalutation_gui
eceea236286dd2548287c8df3bc9cae5800ca23e
[ "BSD-2-Clause" ]
2
2017-04-06T06:13:59.000Z
2017-11-06T12:31:53.000Z
#!/usr/bin/env python ########################################################################### # This software is graciously provided by HumaRobotics # under the Simplified BSD License on # github: # HumaRobotics is a trademark of Generation Robots. # www.humarobotics.com # Copyright (c) 2015, Generation Robo...
38.669903
114
0.648004
487
3,983
5.217659
0.435318
0.01771
0.01889
0.018103
0.144038
0.077922
0.077922
0.077922
0.053522
0.053522
0
0.010924
0.241526
3,983
102
115
39.04902
0.830189
0.491087
0
0.2
0
0
0.098964
0.040852
0
0
0
0
0
1
0.15
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217a53f692aa8c3f0575201c87b0e50ccbd4ef2e
1,647
py
Python
Dynamic Programming/LongestCommonSubseq.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
Dynamic Programming/LongestCommonSubseq.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
Dynamic Programming/LongestCommonSubseq.py
Jh123x/COMP-550-Algorithms-and-Analysis
1bc0b7fb8c48dc52cf89704557795aa87290e88b
[ "MIT" ]
null
null
null
from typing import List # Define directions DIAGONOAL = (-1, -1) UP = (0, -1) LEFT = (-1, 0) def trace_table(backtrack_table, seq1, seq2) -> List[str]: """Trace back the backtrack table to find the longest common subsequence""" i, j = len(seq1)-1, len(seq2)-1 lcs = [] while i >= 0 and j >= 0: ...
30.5
79
0.505161
252
1,647
3.170635
0.230159
0.090113
0.110138
0.060075
0.43179
0.295369
0.161452
0.067584
0.067584
0.067584
0
0.048738
0.302368
1,647
53
80
31.075472
0.646649
0.118397
0
0
0
0
0.02366
0
0
0
0
0
0
1
0.060606
false
0
0.030303
0
0.151515
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217a965ac9c1adbe04867282d571db094f2e92da
1,488
py
Python
faker/providers/person/en/__init__.py
nortronthered/faker
bc55c88f911f30537c8ad1d1e1b64fe6e91428fb
[ "MIT" ]
null
null
null
faker/providers/person/en/__init__.py
nortronthered/faker
bc55c88f911f30537c8ad1d1e1b64fe6e91428fb
[ "MIT" ]
null
null
null
faker/providers/person/en/__init__.py
nortronthered/faker
bc55c88f911f30537c8ad1d1e1b64fe6e91428fb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_name}}', '{{first_name_female}} {{last_na...
35.428571
82
0.577957
166
1,488
4.704819
0.228916
0.184379
0.166453
0.21767
0.576184
0.576184
0.576184
0.419974
0.419974
0.419974
0
0
0.210349
1,488
41
83
36.292683
0.664681
0
0
0.3125
0
0
0.504032
0.112903
0
0
0
0
0
1
0
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
217b4a4e53e620a12cb915d6303bb2ebe3952a08
1,787
py
Python
main.py
gyyang/bio-kvm
1db65ec3250879d16b7906edf4833670d170ec9c
[ "MIT" ]
2
2022-01-01T18:42:50.000Z
2022-03-13T16:20:12.000Z
main.py
gyyang/bio-kvm
1db65ec3250879d16b7906edf4833670d170ec9c
[ "MIT" ]
null
null
null
main.py
gyyang/bio-kvm
1db65ec3250879d16b7906edf4833670d170ec9c
[ "MIT" ]
1
2022-03-18T16:16:32.000Z
2022-03-18T16:16:32.000Z
"""File that summarizes all key results. To train networks in a specific experiment, run in command line python main.py --train experiment_name To analyze results from this experiment python main.py --analyze experiment_name To train and analyze all models quickly, run in command line python main.py --train --analyze...
31.350877
79
0.743145
241
1,787
5.406639
0.406639
0.046048
0.055257
0.052187
0.14505
0.100537
0.050652
0.050652
0
0
0
0.005242
0.146055
1,787
56
80
31.910714
0.848624
0.386682
0
0
0
0
0.132597
0
0
0
0
0
0
1
0
false
0
0.185185
0
0.185185
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217c3521a49c1959764a1dd372b744b03badf06e
1,564
py
Python
src/pyaides/tempfile/temporary_directory.py
okomestudio/pyaides
7cb49620392812101a366dab97ebe4948b47b12a
[ "MIT" ]
null
null
null
src/pyaides/tempfile/temporary_directory.py
okomestudio/pyaides
7cb49620392812101a366dab97ebe4948b47b12a
[ "MIT" ]
null
null
null
src/pyaides/tempfile/temporary_directory.py
okomestudio/pyaides
7cb49620392812101a366dab97ebe4948b47b12a
[ "MIT" ]
null
null
null
from os.path import exists as path_exists from shutil import rmtree from tempfile import mkdtemp from typing import Optional class TemporaryDirectory: """Create a temporary directory using :func:`tempfile.mkdtemp`. The resulting object can be used as a context manager. For example: >>> with Tempora...
31.28
88
0.636829
194
1,564
4.984536
0.407216
0.049638
0.043433
0.071355
0.109617
0.064116
0
0
0
0
0
0
0.276854
1,564
49
89
31.918367
0.854996
0.498721
0
0
0
0
0.086471
0.036262
0
0
0
0
0
1
0.238095
false
0
0.190476
0.095238
0.571429
0
0
0
0
null
0
0
0
0
0
0
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
1
0
0
2
217c9d04d50b6d94a1a684d457eb2c81ff82f9f5
1,216
py
Python
tests/gsfpy3_08/conftest.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
7
2020-07-01T07:12:19.000Z
2022-01-20T20:39:57.000Z
tests/gsfpy3_08/conftest.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
36
2020-06-23T09:10:15.000Z
2022-03-22T10:27:58.000Z
tests/gsfpy3_08/conftest.py
irewolepeter/gsfpy_USM_Implementation
c4614ac3f7d833eb86ea38c7708108b130f96612
[ "MIT" ]
2
2021-02-07T13:21:52.000Z
2021-06-24T19:16:16.000Z
import shutil from dataclasses import dataclass from enum import Enum, auto from pathlib import Path import pytest from pytest_cases import fixture_union class GsfVersion(Enum): V03_08 = auto() @dataclass(frozen=True) class GsfDatafile: gsf_version: GsfVersion path: Path num_beams: int GSF_03_08_...
24.32
75
0.774671
181
1,216
4.79558
0.276243
0.073733
0.08871
0.051843
0.135945
0.101382
0
0
0
0
0
0.032692
0.144737
1,216
49
76
24.816327
0.801923
0
0
0
0
0
0.035362
0.01727
0
0
0
0
0
1
0.088235
false
0
0.176471
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217cdf7669f321ac62a49a7990e683d0c9fcc359
3,041
py
Python
third_party/catapult/dashboard/dashboard/edit_test_owners.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-09-15T08:43:34.000Z
2020-09-15T08:43:34.000Z
third_party/catapult/dashboard/dashboard/edit_test_owners.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/catapult/dashboard/dashboard/edit_test_owners.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides the web interface for adding and removing test owners.""" import json from google.appengine.api import users from dashboard import request_han...
30.108911
76
0.680697
395
3,041
5.055696
0.321519
0.072108
0.091137
0.027041
0.155233
0.102654
0
0
0
0
0
0.00552
0.225584
3,041
100
77
30.41
0.842463
0.183492
0
0.271429
0
0
0.079606
0.008617
0
0
0
0
0
1
0.057143
false
0
0.071429
0
0.228571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217dcf9e3ff97f5c6cd6b8522780f4c3bc9a75ab
1,604
py
Python
google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/websecurityscanner/v1beta/websecurityscanner-v1beta-py/google/cloud/websecurityscanner_v1beta/types/crawled_url.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
27.186441
74
0.657107
214
1,604
4.859813
0.560748
0.057692
0.043269
0.060577
0.147115
0.069231
0.069231
0.069231
0.069231
0.069231
0
0.011026
0.264963
1,604
58
75
27.655172
0.871077
0.662095
0
0.136364
0
0
0.102564
0.081197
0
0
0
0
0
1
0
false
0
0.045455
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
217e3818a801e2f4dcb7d89636aefce07ffabdde
5,775
py
Python
lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py
myasiny/wordembed
d4df516a4ac6eed71d1cc6e085638e895c525de6
[ "MIT" ]
null
null
null
lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py
myasiny/wordembed
d4df516a4ac6eed71d1cc6e085638e895c525de6
[ "MIT" ]
null
null
null
lib/turkish_nltk/trnltk/experiments/dictionaryexperiments.py
myasiny/wordembed
d4df516a4ac6eed71d1cc6e085638e895c525de6
[ "MIT" ]
null
null
null
# coding=utf-8 """ Copyright 2012 Ali Ok (aliokATapacheDOTorg) 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 ...
37.5
145
0.622338
740
5,775
4.685135
0.233784
0.02769
0.023075
0.02769
0.713585
0.692241
0.672051
0.672051
0.647822
0.63715
0
0.009412
0.264069
5,775
154
146
37.5
0.806118
0.044156
0
0.504762
0
0.009524
0.268693
0.080446
0
0
0
0
0
0
null
null
0
0.047619
null
null
0.066667
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
1
0
0
0
0
0
0
0
0
2
217fefc42f63031da392ae65ebe492187d82f599
423
py
Python
item.py
nyalldawson/dwarf_mine
edf4fec2ffe56208d182c1d7ef3bd77a039b4d80
[ "MIT" ]
2
2017-10-05T05:13:02.000Z
2017-10-05T05:16:58.000Z
item.py
nyalldawson/dwarf_mine
edf4fec2ffe56208d182c1d7ef3bd77a039b4d80
[ "MIT" ]
null
null
null
item.py
nyalldawson/dwarf_mine
edf4fec2ffe56208d182c1d7ef3bd77a039b4d80
[ "MIT" ]
null
null
null
class Item: def __init__(self, x, y): self.x = x self.y = y self.char = 'X' self.color = 1 self.mine = None self.type = 'thing' def add_to_mine(self, mine): self.mine = mine def is_attractive_to(self, creature: 'Creature'): return False ...
20.142857
53
0.541371
56
423
3.910714
0.446429
0.109589
0.109589
0
0
0
0
0
0
0
0
0.00365
0.352246
423
21
54
20.142857
0.79562
0
0
0
0
0
0.052009
0
0
0
0
0
0
1
0.3125
false
0.0625
0
0.125
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
1
0
1
0
0
0
3
218172bb8e01270d10bfb5ce4012d602f95f1b03
4,173
py
Python
src/Chapters/Chapter6.py
Fennec2000GH/Python-Crash-Course
421072c13ec4527405297af5fc7920d963cf0fda
[ "MIT" ]
null
null
null
src/Chapters/Chapter6.py
Fennec2000GH/Python-Crash-Course
421072c13ec4527405297af5fc7920d963cf0fda
[ "MIT" ]
null
null
null
src/Chapters/Chapter6.py
Fennec2000GH/Python-Crash-Course
421072c13ec4527405297af5fc7920d963cf0fda
[ "MIT" ]
null
null
null
# create dictionary alien_0 = {'color': 'green', 'points': 5} print(alien_0['color']) print(alien_0['points']) # assign variable to value in dictionary new_points = alien_0['points'] print(f'You just earned {new_points} points!') print(alien_0) # adding new key-value pair alien_0['x_position'] = 0 alien_0['y_position...
26.08125
81
0.654685
579
4,173
4.594128
0.278066
0.07218
0.041353
0.03609
0.242481
0.16203
0.084211
0.058647
0.058647
0
0
0.015928
0.172538
4,173
159
82
26.245283
0.754416
0.141145
0
0.163636
0
0
0.362844
0.019112
0
0
0
0
0
1
0
false
0
0
0
0
0.3
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2181c2135fcc99d7c1b53305b3e3de21dd2e227e
6,936
py
Python
MWW-inventory/cooperage.py
ProsperousHeart/Training-Events
71aa6fae8e77f61924619407f34c39b3ace17fe4
[ "MIT" ]
6
2019-04-17T17:41:36.000Z
2021-02-10T20:50:59.000Z
MWW-inventory/cooperage.py
ProsperousHeart/Training-Events
71aa6fae8e77f61924619407f34c39b3ace17fe4
[ "MIT" ]
2
2018-11-27T06:33:06.000Z
2019-02-20T04:35:49.000Z
MWW-inventory/cooperage.py
ProsperousHeart/Personal-Projects
71aa6fae8e77f61924619407f34c39b3ace17fe4
[ "MIT" ]
3
2019-04-23T03:26:55.000Z
2020-04-17T14:38:39.000Z
import cooper_item import logging # https://docs.python.org/3/library/logging.html import pprint import table_mod as tables from money import Money # create_item = cooperidge_item.CooperageItem # https://docs.python.org/3/library/logging.html#logrecord-attributes #fmt = '%(asctime)s | %(levelname)s ...
34.336634
108
0.634371
965
6,936
4.40829
0.278756
0.019746
0.009403
0.017866
0.397038
0.372826
0.346262
0.333098
0.307005
0.274565
0
0.011756
0.227364
6,936
201
109
34.507463
0.782049
0.397491
0
0.292683
0
0.012195
0.32667
0
0
0
0
0
0
1
0.04878
false
0
0.060976
0
0.134146
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21827a2ebb42f575b8b66013cc122ecef6030ccc
1,667
py
Python
homework03/main.py
PatrickKalkman/pirplepython
d622ce4541e679d63d56115e3c6b21d39564993c
[ "MIT" ]
null
null
null
homework03/main.py
PatrickKalkman/pirplepython
d622ce4541e679d63d56115e3c6b21d39564993c
[ "MIT" ]
null
null
null
homework03/main.py
PatrickKalkman/pirplepython
d622ce4541e679d63d56115e3c6b21d39564993c
[ "MIT" ]
null
null
null
""" Python Is Easy course @Pirple.com Homework Assignment #3: "If" Statements Patrick Kalkman / patrick@simpletechture.nl Details: Create a function that accepts 3 parameters and checks for equality between any two of them. Your function should return True if 2 or more of the parameters are equal, and false is no...
26.887097
77
0.728254
248
1,667
4.895161
0.354839
0.074135
0.079077
0.070016
0.265239
0.265239
0.265239
0.229819
0.229819
0.229819
0
0.041789
0.181764
1,667
61
78
27.327869
0.84824
0.424115
0
0.130435
0
0
0.26919
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.217391
0.26087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2186314aa7aaff87c93cbec4f6a0d72a7b0791ce
253
py
Python
tuiuiu/tests/modeladmintest/apps.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
3
2019-08-08T09:09:35.000Z
2020-12-15T18:04:17.000Z
tuiuiu/tests/modeladmintest/apps.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
null
null
null
tuiuiu/tests/modeladmintest/apps.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
1
2017-09-09T20:10:40.000Z
2017-09-09T20:10:40.000Z
from __future__ import absolute_import, unicode_literals from django.apps import AppConfig class TuiuiuTestsAppConfig(AppConfig): name = 'tuiuiu.tests.modeladmintest' label = 'test_modeladmintest' verbose_name = "Test Tuiuiu Model Admin"
25.3
56
0.786561
28
253
6.821429
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.150198
253
9
57
28.111111
0.888372
0
0
0
0
0
0.272727
0.106719
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
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
1
0
1
0
0
4
2188e2216c065e48a9a5262d01250046d5a64985
219
py
Python
fc_view/setup.py
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
14
2019-07-16T03:29:29.000Z
2022-02-19T14:59:11.000Z
fc_view/setup.py
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
null
null
null
fc_view/setup.py
takanori-fujiwara/ccpca
e2a2f57ca5d9ada00bf91892f7f5c4fa570d6110
[ "BSD-3-Clause" ]
7
2019-07-16T03:35:58.000Z
2022-01-30T05:41:07.000Z
from distutils.core import setup setup(name='fc-view', version=0.1, packages=[''], package_dir={'': '.'}, install_requires=['numpy', 'scipy'], py_modules=['opt_sign_flip', 'mat_reorder'])
24.333333
50
0.598174
26
219
4.807692
0.961538
0
0
0
0
0
0
0
0
0
0
0.011429
0.200913
219
8
51
27.375
0.702857
0
0
0
0
0
0.191781
0
0
0
0
0
0
1
0
true
0
0.142857
0
0.142857
0
1
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
1
0
0
0
0
0
0
3
21898a7d154a88e2d3cffd20cd2b52c26a47aa0f
4,201
py
Python
compiler.py
Hyper5phere/c-minus-compiler
2b111f98c9f2b0ba7473f169e91e5ef7373c1929
[ "MIT" ]
20
2020-09-20T22:58:58.000Z
2022-03-28T06:35:32.000Z
compiler.py
Hyper5phere/c-minus-compiler
2b111f98c9f2b0ba7473f169e91e5ef7373c1929
[ "MIT" ]
null
null
null
compiler.py
Hyper5phere/c-minus-compiler
2b111f98c9f2b0ba7473f169e91e5ef7373c1929
[ "MIT" ]
15
2020-10-04T10:56:10.000Z
2022-03-28T10:11:46.000Z
import os import sys import time import argparse import subprocess as sp script_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, os.path.join(script_dir, "modules")) from cparser import Parser from scanner import Scanner, SymbolTableManager from semantic_analyser import SemanticAnalyser from code_...
43.760417
130
0.645085
518
4,201
5.046332
0.305019
0.025249
0.045524
0.043611
0.171385
0.102142
0.075746
0.052793
0.052793
0
0
0.005648
0.241371
4,201
95
131
44.221053
0.814559
0.016425
0
0.105882
0
0
0.191814
0.005328
0
0
0
0
0
1
0.023529
false
0
0.117647
0
0.141176
0.141176
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218a8e1accf1fbbcec9a82434ec70681538880eb
4,902
py
Python
app/main/views.py
adhoadhi/PITCH
e0e02adf32966bcc622aad4b732e7a7d2db041e5
[ "Unlicense" ]
null
null
null
app/main/views.py
adhoadhi/PITCH
e0e02adf32966bcc622aad4b732e7a7d2db041e5
[ "Unlicense" ]
null
null
null
app/main/views.py
adhoadhi/PITCH
e0e02adf32966bcc622aad4b732e7a7d2db041e5
[ "Unlicense" ]
null
null
null
from flask import render_template, request, redirect, url_for, abort from . import main from flask_login import login_required, current_user from ..models import User, PitchCategory, Pitches, Comments from .forms import UpdateProfile, PitchForm, CommentForm, CategoriesForm from .. import db, photos @main.route('/') d...
29.709091
91
0.695838
669
4,902
4.946188
0.16293
0.029918
0.043518
0.036265
0.365065
0.297975
0.22061
0.174977
0.1644
0.139015
0
0.00443
0.171155
4,902
164
92
29.890244
0.809993
0.088739
0
0.311927
0
0
0.11528
0.011824
0
0
0
0
0
1
0.100917
false
0
0.055046
0
0.311927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218aa6c3c61466a41ac33d5cb1268950318beaa1
1,944
py
Python
etk/extractors/language_identification_extractor.py
varuniyer/etk
57dc2ed2bfef0d9914747bed41fdc4123bfe4423
[ "MIT" ]
null
null
null
etk/extractors/language_identification_extractor.py
varuniyer/etk
57dc2ed2bfef0d9914747bed41fdc4123bfe4423
[ "MIT" ]
null
null
null
etk/extractors/language_identification_extractor.py
varuniyer/etk
57dc2ed2bfef0d9914747bed41fdc4123bfe4423
[ "MIT" ]
null
null
null
from typing import List from etk.extraction import Extraction from etk.extractor import Extractor, InputType from enum import Enum, auto from langid import classify from langdetect import detect class LanguageIdentificationExtractor(Extractor): """ Identify the language used in text, returning the identifier...
31.354839
106
0.629115
222
1,944
5.441441
0.427928
0.019868
0.017384
0.029801
0.082781
0.082781
0.082781
0.082781
0
0
0
0.012427
0.296296
1,944
61
107
31.868852
0.870614
0.342593
0
0.2
0
0
0.043184
0
0
0
0
0.032787
0
1
0.066667
false
0
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
1
0
0
2
218b6c65cc4bb546fc7b94bf21f63dd98d3f4aef
859
py
Python
shifts/urls.py
Beshutaf/shift-report
d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5
[ "MIT" ]
null
null
null
shifts/urls.py
Beshutaf/shift-report
d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5
[ "MIT" ]
null
null
null
shifts/urls.py
Beshutaf/shift-report
d8784ba3901fcbbbe20b31d7b9435d8eb808bdc5
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib import admin from django.template.response import TemplateResponse from django.views.generic import TemplateView, RedirectView from django.contrib.staticfiles.views import serve from shifts import settings urlpatterns = [ url(r'^$', TemplateView.as_view...
29.62069
89
0.657742
103
859
5.427184
0.456311
0.042934
0.060823
0
0
0
0
0
0
0
0
0
0.187427
859
29
90
29.62069
0.80086
0.053551
0
0
0
0
0.1367
0
0
0
0
0
0
1
0
false
0
0.26087
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218ba500303c8c0f234b099b40abb5cfbe848329
1,747
py
Python
constants.py
MartijnGosgens/CovidMobilityTradeOffs
bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c
[ "MIT" ]
2
2021-01-15T11:43:37.000Z
2022-01-26T13:23:13.000Z
constants.py
MartijnGosgens/CovidMobilityTradeOffs
bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c
[ "MIT" ]
null
null
null
constants.py
MartijnGosgens/CovidMobilityTradeOffs
bb0db602edbef9ba79d6bf5f07b5d969eb6ab41c
[ "MIT" ]
null
null
null
class CoronaConstants: # Disease constants latent_period = 4 # nu infectious_period = 5 # omega fraction_tested = 1/15 # alpha contacts_average = 13.85 # c fraction_local_contacts = 0.5 # rho basic_reproduction_number = 1.25 transmission_pr...
47.216216
145
0.676588
206
1,747
5.475728
0.417476
0.066489
0.093085
0.039894
0.264184
0.159574
0.159574
0.08156
0
0
0
0.056923
0.255867
1,747
36
146
48.527778
0.810769
0.263309
0
0
0
0
0.038674
0
0
0
0
0
0
1
0.04
false
0
0
0
0.56
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
218bb6f494c5e3dd3bec32fdc93089f739ef2557
2,273
py
Python
api/calculators/bridge.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
3
2020-12-02T11:14:31.000Z
2021-12-09T16:53:53.000Z
api/calculators/bridge.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
76
2020-09-29T10:59:10.000Z
2022-01-03T07:41:29.000Z
api/calculators/bridge.py
equinor/lcm
338bf67e6eb412446e469b4c73f7000990445ebd
[ "MIT" ]
2
2021-01-25T14:24:57.000Z
2021-01-25T14:51:16.000Z
from math import sqrt from typing import List from cachetools import cached, LFUCache from classes.product import Product from util.enums import BridgeOption @cached(cache=LFUCache(2048)) def theoretical_bridge(mode: str, value: int): bridge_list = [] d_value = 50 bridge_input = value if mode in (B...
15.153333
76
0.524417
329
2,273
3.541033
0.49848
0.034335
0.034335
0
0
0
0
0
0
0
0
0.262407
0.352838
2,273
149
77
15.255034
0.529572
0
0
0.014815
0
0
0.015398
0
0
0
0
0
0
1
0.014815
false
0.007407
0.037037
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
218dc3061d5bd2699c54d77094a85e1b5564ed76
3,388
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/pyNN/neuron/nineml.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
""" Support cell types defined in 9ML with NEURON. Requires the 9ml2nmodl script to be on the path. Classes: NineMLCell - a single neuron instance NineMLCellType - base class for cell types, not used directly Functions: nineml_cell_type - return a new NineMLCellType subclass Constants: NMODL...
33.88
108
0.645809
413
3,388
5.104116
0.394673
0.033207
0.019924
0.042695
0.091082
0.060721
0
0
0
0
0
0.008839
0.265348
3,388
99
109
34.222222
0.838088
0.242916
0
0.068966
0
0
0.087803
0
0
0
0
0
0
1
0.103448
false
0
0.12069
0
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218e022befdbcc3b099f59fc82691e5701aaf7ed
693
py
Python
Network/perf.py
LunarWatcher/NN-chatbot-legacy
50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68
[ "Apache-2.0" ]
null
null
null
Network/perf.py
LunarWatcher/NN-chatbot-legacy
50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68
[ "Apache-2.0" ]
null
null
null
Network/perf.py
LunarWatcher/NN-chatbot-legacy
50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68
[ "Apache-2.0" ]
null
null
null
from time import * def ifOrTuple(): boolVal = False t = time() for i in range(10000000): "test" if boolVal else "testFalse" print("Average: {}".format(time() - t)) combined = 0.0 t = time() for i in range(10000000): ("testFalse", "test")[boolVal] print("Average: {}".for...
21
43
0.52381
83
693
4.277108
0.325301
0.056338
0.067606
0.123944
0.532394
0.402817
0.343662
0
0
0
0
0.068136
0.279942
693
33
44
21
0.643287
0
0
0.518519
0
0
0.123919
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.111111
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218ed007c0e968a23bde2bf831865f422fd7eba5
5,404
py
Python
loris/app/views/fly.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
1
2021-08-01T02:02:54.000Z
2021-08-01T02:02:54.000Z
loris/app/views/fly.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
null
null
null
loris/app/views/fly.py
gucky92/loris
6f54b7d791d473f52690380d71da0acc0352d954
[ "MIT" ]
3
2020-03-31T10:26:46.000Z
2021-08-02T00:12:54.000Z
"""fly specific views """ import os from flask import render_template, request, flash, url_for, redirect, \ send_from_directory, session from functools import wraps from flask_login import current_user, login_user, login_required, logout_user import datajoint as dj import pandas as pd from loris import config fro...
28.898396
78
0.67154
632
5,404
5.531646
0.204114
0.030892
0.04119
0.048913
0.5
0.443078
0.275172
0.275172
0.275172
0.204805
0
0.000921
0.196151
5,404
186
79
29.053763
0.803867
0.038675
0
0.241135
0
0
0.2036
0.016257
0
0
0
0
0
1
0.06383
false
0.014184
0.113475
0
0.248227
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
218faee00f37039153c65e5bb3b49bdfd694a503
990
py
Python
setup.py
PostmonAPI/postmon-python
f226866622040ee03f8a73abfdcb847abbc316de
[ "MIT" ]
5
2015-05-07T13:09:17.000Z
2019-11-14T21:53:11.000Z
setup.py
PostmonAPI/postmon-python
f226866622040ee03f8a73abfdcb847abbc316de
[ "MIT" ]
null
null
null
setup.py
PostmonAPI/postmon-python
f226866622040ee03f8a73abfdcb847abbc316de
[ "MIT" ]
null
null
null
try: import multiprocessing except ImportError: pass from setuptools import setup import postmon setup( name='postmon', version=postmon.__version__, description='Postmon service wrapper', url='http://github.com/PostmonAPI/postmon-python', author='Iuri de Silvio', author_email='iurisi...
22.5
71
0.605051
94
990
6.276596
0.723404
0.047458
0.084746
0
0
0
0
0
0
0
0
0.00955
0.259596
990
43
72
23.023256
0.795362
0
0
0.085714
0
0
0.476768
0
0
0
0
0
0
1
0
true
0.028571
0.114286
0
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
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
219016ed9395191a9d92995122f8e4aa0387fd7a
555
py
Python
coroutines/coroutine_finally.py
lisboaxd/python_shards
42c28288da7f08565de43a2f118216c28c07ce92
[ "MIT" ]
null
null
null
coroutines/coroutine_finally.py
lisboaxd/python_shards
42c28288da7f08565de43a2f118216c28c07ce92
[ "MIT" ]
null
null
null
coroutines/coroutine_finally.py
lisboaxd/python_shards
42c28288da7f08565de43a2f118216c28c07ce92
[ "MIT" ]
null
null
null
class DemoException(Exception): '''A kind of exception to demonstrate''' def demonstrate_exc_finally(): print('-> coroutine started') try: while True: try: x = yield except DemoException: print('*** DemoExcepetion handled. Continuining...') ...
24.130435
68
0.590991
55
555
5.818182
0.6
0.1375
0.13125
0
0
0
0
0
0
0
0
0.010152
0.29009
555
22
69
25.227273
0.80203
0.061261
0
0.117647
0
0
0.209709
0
0
0
0
0
0
1
0.058824
false
0
0
0
0.117647
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21905fa948c69618781b3395191013845aaa212e
3,031
py
Python
mac/pyobjc-core/PyObjCTest/test_corefoundation.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-core/PyObjCTest/test_corefoundation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-core/PyObjCTest/test_corefoundation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
""" Testcases for the CoreFoundation wrappers introduced in 1.5 """ import objc from PyObjCTools.TestSupport import * import re import sys from PyObjCTest.corefoundation import * # registerCFSignature(name, encoding, typeId [, tollfreeName]) -> type CFUUIDRef = objc.registerCFSignature( "CFUUIDRef", ...
30.31
79
0.663477
325
3,031
6.070769
0.406154
0.121642
0.020274
0.015205
0.169285
0.169285
0.169285
0.169285
0.169285
0.169285
0
0.017425
0.223689
3,031
99
80
30.616162
0.821079
0.17519
0
0.210526
0
0.035088
0.094682
0.048348
0
0
0
0.010101
0.245614
1
0.070175
false
0
0.087719
0.017544
0.192982
0
0
0
0
null
0
0
0
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
21908533059650158231fb7a6c13d83d59c8fae2
555
py
Python
examples/echo.py
megamit/discord.py
899c5d0cd9406bd14c8299208bf37736ce6a2df1
[ "MIT" ]
1
2021-04-08T19:19:22.000Z
2021-04-08T19:19:22.000Z
examples/echo.py
megamit/discord.py
899c5d0cd9406bd14c8299208bf37736ce6a2df1
[ "MIT" ]
null
null
null
examples/echo.py
megamit/discord.py
899c5d0cd9406bd14c8299208bf37736ce6a2df1
[ "MIT" ]
null
null
null
import discord import logging # Set up the logging module to output diagnostic to the console. logging.basicConfig() client = discord.Client() client.login('email', 'password') if not client.is_logged_in: print('Logging in to Discord failed') exit(1) @client.event def on_ready(): print('Connected!') ...
21.346154
64
0.706306
77
555
5.025974
0.519481
0.082687
0.072351
0.082687
0.103359
0
0
0
0
0
0
0.002155
0.163964
555
25
65
22.2
0.831897
0.111712
0
0.111111
0
0
0.132383
0
0
0
0
0
0
1
0.111111
false
0.055556
0.111111
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
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
219091666db74f486781a922effd4aee96ba013d
8,673
py
Python
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py
ttracx/metron
e81a5c102375d3b7f9692a561760ff8f8526a6ec
[ "Apache-2.0" ]
1
2019-02-27T03:41:26.000Z
2019-02-27T03:41:26.000Z
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py
ttracx/metron
e81a5c102375d3b7f9692a561760ff8f8526a6ec
[ "Apache-2.0" ]
6
2016-05-10T15:37:06.000Z
2019-03-21T07:15:25.000Z
metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/pcap_commands.py
depshield-user-testing/metron
d749961daaa77624e1cb6878548479d86c8fe668
[ "Apache-2.0" ]
2
2016-01-25T15:51:42.000Z
2016-01-25T15:53:37.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
42.935644
155
0.652485
1,023
8,673
5.178886
0.224829
0.0906
0.0453
0.03775
0.436014
0.377123
0.328237
0.248018
0.248018
0.231031
0
0.003825
0.27649
8,673
201
156
43.149254
0.840478
0.031592
0
0.21831
0
0
0.137739
0.003981
0
0
0
0
0
0
null
null
0
0.070423
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
21938c91ae398fd3303b1f93d2ae749d6ad8be19
640
py
Python
Lab Tests/2019.1 Lab Test/Solutions/q2a.py
alphatrl/IS111
f09fc47f5321dc4d79b9dde97399109e2a368443
[ "MIT" ]
null
null
null
Lab Tests/2019.1 Lab Test/Solutions/q2a.py
alphatrl/IS111
f09fc47f5321dc4d79b9dde97399109e2a368443
[ "MIT" ]
null
null
null
Lab Tests/2019.1 Lab Test/Solutions/q2a.py
alphatrl/IS111
f09fc47f5321dc4d79b9dde97399109e2a368443
[ "MIT" ]
null
null
null
def get_multiples_of(num_list, n): ''' This function returns the number of numbers in num_list that are multiples of n. If there is no number in num_list that is a multiple of n, the function returns 0. Parameters: - num_list, a list of positive integers; list may be empty - n, ...
26.666667
87
0.6125
91
640
4.175824
0.450549
0.110526
0.071053
0.068421
0
0
0
0
0
0
0
0.011655
0.329688
640
24
88
26.666667
0.874126
0.496875
0
0.25
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2193bc956f086678110deef9221f1ab72faae2f2
392
py
Python
app_renekton/forms.py
lia0wang/Renekton-Forums
e2d6861173d2279e5b64b42abb2c921853116cc5
[ "MIT" ]
null
null
null
app_renekton/forms.py
lia0wang/Renekton-Forums
e2d6861173d2279e5b64b42abb2c921853116cc5
[ "MIT" ]
null
null
null
app_renekton/forms.py
lia0wang/Renekton-Forums
e2d6861173d2279e5b64b42abb2c921853116cc5
[ "MIT" ]
null
null
null
from django import forms from .models import Topic, Post class TopicForm(forms.ModelForm): class Meta: model = Topic fields = ['topic_name'] labels = {'topic_name': ''} class PostForm(forms.ModelForm): class Meta: model = Post fields = ['text'] labels = {'text':...
26.133333
62
0.584184
43
392
5.27907
0.511628
0.123348
0.167401
0.202643
0.246696
0
0
0
0
0
0
0.007018
0.272959
392
15
62
26.133333
0.789474
0
0
0.153846
0
0
0.104326
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.461538
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
2195736268951f73a7aaddba531d710135929ebd
8,230
py
Python
nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
199
2017-08-24T12:19:41.000Z
2022-03-20T14:50:17.000Z
nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
275
2017-08-28T21:21:49.000Z
2022-03-29T17:57:26.000Z
nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py
Jimvin/nipyapi
826beac376d4321bd2d69491f09086474c7e7bfb
[ "Apache-2.0" ]
73
2017-09-07T10:13:56.000Z
2022-02-28T10:37:21.000Z
# coding: utf-8 """ NiFi Rest API The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
34.872881
478
0.655286
898
8,230
5.732739
0.194878
0.05711
0.077506
0.066434
0.539239
0.470474
0.423854
0.281274
0.239899
0.192696
0
0.001354
0.281896
8,230
235
479
35.021277
0.869712
0.402916
0
0.074468
0
0
0.089526
0.050374
0
0
0
0
0
1
0.170213
false
0
0.031915
0
0.351064
0.010638
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2195bbee42d1242bbd94379825795efc7049104c
528
py
Python
setup.py
yotammarton/TransformDF2Numpy
3528fe2f207089186865290b9f5cbd14d91e8c82
[ "MIT" ]
null
null
null
setup.py
yotammarton/TransformDF2Numpy
3528fe2f207089186865290b9f5cbd14d91e8c82
[ "MIT" ]
null
null
null
setup.py
yotammarton/TransformDF2Numpy
3528fe2f207089186865290b9f5cbd14d91e8c82
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name="df2numpy", version="1.1.0", description="A simple tool for quick transformation from pandas.DataFrame to numpy.array dataset containing some utilities", long_description='./README.md', author="Masaki Kitayama", author_email="kitayama-mas...
25.142857
128
0.700758
62
528
5.887097
0.806452
0
0
0
0
0
0
0
0
0
0
0.013483
0.157197
528
20
129
26.4
0.806742
0
0
0
0
0
0.492366
0.053435
0
0
0
0
0
1
0
true
0
0.071429
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
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
2195ef8dc9eef8e0680f99fe7fef7e19264acba5
11,726
py
Python
blue_st_examples/read_sensors.py
cchangeur/BlueSTSDK_Python
e5c6e4bc5a58680bad0d867633dd9d92012b9baf
[ "BSD-3-Clause" ]
null
null
null
blue_st_examples/read_sensors.py
cchangeur/BlueSTSDK_Python
e5c6e4bc5a58680bad0d867633dd9d92012b9baf
[ "BSD-3-Clause" ]
null
null
null
blue_st_examples/read_sensors.py
cchangeur/BlueSTSDK_Python
e5c6e4bc5a58680bad0d867633dd9d92012b9baf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # IMPORT from __future__ import print_function import sys import os import time from abc import abstractmethod from blue_st_sdk.manager import Manager from blue_st_sdk.manager import ManagerListener from blue_st_sdk.node import NodeListener from blue_st_sdk.feature import FeatureLi...
36.990536
149
0.541532
1,164
11,726
5.276632
0.20189
0.021654
0.027515
0.023445
0.281667
0.203028
0.148649
0.104526
0.095083
0.056659
0
0.005663
0.367474
11,726
316
150
37.107595
0.822435
0.210728
0
0.295455
0
0
0.084765
0
0
0
0
0.003165
0
1
0.039773
false
0.011364
0.0625
0
0.119318
0.147727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
219767503ab5c59e4efbbc9cbad8776205735bac
540
py
Python
adr/Components/Aerodynamic/RectangularAerodynamicSurface.py
CeuAzul/ADR
09885062cfa79d19fa6370155d91466bda2a27d7
[ "MIT" ]
16
2019-01-31T16:40:55.000Z
2021-09-12T15:12:35.000Z
adr/Components/Aerodynamic/RectangularAerodynamicSurface.py
CeuAzul/ADR
09885062cfa79d19fa6370155d91466bda2a27d7
[ "MIT" ]
157
2019-01-31T16:44:27.000Z
2020-10-05T12:48:50.000Z
adr/Components/Aerodynamic/RectangularAerodynamicSurface.py
CeuAzul/ADR
09885062cfa79d19fa6370155d91466bda2a27d7
[ "MIT" ]
3
2020-12-12T20:27:00.000Z
2021-03-13T18:44:52.000Z
import attr from vec import Vector2 from adr.Components.Aerodynamic import AerodynamicSurface @attr.s(auto_attribs=True) class RectangularAerodynamicSurface(AerodynamicSurface): type: str = 'rectangular_aerodynamic_surface' span: float = None chord: float = None @property def area(self): ...
22.5
62
0.722222
63
540
6.063492
0.507937
0.086387
0.073298
0.104712
0
0
0
0
0
0
0
0.013921
0.201852
540
23
63
23.478261
0.87239
0
0
0.176471
0
0
0.057407
0.057407
0
0
0
0
0
1
0.176471
false
0
0.176471
0.176471
0.764706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
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
1
0
0
2
219815a06b42358ab44f5f67029d88d169f0dbbc
9,934
py
Python
mnnpy/utils.py
dbrg77/mnnpy
b6fd65aa6c7e2ad72308ba10da810e805b79298f
[ "BSD-3-Clause" ]
null
null
null
mnnpy/utils.py
dbrg77/mnnpy
b6fd65aa6c7e2ad72308ba10da810e805b79298f
[ "BSD-3-Clause" ]
null
null
null
mnnpy/utils.py
dbrg77/mnnpy
b6fd65aa6c7e2ad72308ba10da810e805b79298f
[ "BSD-3-Clause" ]
1
2018-10-16T01:56:34.000Z
2018-10-16T01:56:34.000Z
import math import numpy as np from multiprocessing import Pool from scipy.spatial import cKDTree from scipy.linalg import orth from scipy.linalg.interpolative import svd as rsvd from scipy.sparse import issparse from numba import jit, float32, int32, int8 from . import settings from .irlb import lanczos @jit(float3...
37.628788
112
0.62875
1,433
9,934
4.166085
0.177948
0.028643
0.031658
0.013065
0.19866
0.142714
0.091457
0.08392
0.076884
0.076884
0
0.034313
0.243104
9,934
263
113
37.771863
0.759675
0.00302
0
0.135965
0
0
0.023124
0
0
0
0
0
0
1
0.070175
false
0.004386
0.052632
0.013158
0.201754
0.004386
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2199fec3c4a94bc3ee9c0ccd244406c9f8fdfe01
15,408
py
Python
pycharmers/utils/soup_utils.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
2
2019-11-13T11:59:30.000Z
2019-11-17T15:44:09.000Z
pycharmers/utils/soup_utils.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
1
2020-09-12T18:00:30.000Z
2020-09-12T18:00:50.000Z
pycharmers/utils/soup_utils.py
iwasakishuto/Py-utils
5dc1e7d676811c2239e64f500b734bd508335256
[ "MIT" ]
1
2021-04-13T16:19:26.000Z
2021-04-13T16:19:26.000Z
#coding: utf-8 import re import requests from bs4 import BeautifulSoup from .generic_utils import str_strip, handleKeyError def str2soup(string): """Convert strings to soup, and removed extra tags such as ``<html>``, ``<body>``, and ``<head>``. Args: string (str) : strings Returns: bs4.Be...
43.402817
378
0.594496
1,837
15,408
4.899837
0.138813
0.023331
0.021664
0.024553
0.631152
0.590379
0.563937
0.538385
0.494723
0.450506
0
0.006224
0.280439
15,408
355
379
43.402817
0.805628
0.64791
0
0.258065
0
0
0.027878
0
0
0
0
0
0
1
0.086022
false
0
0.053763
0
0.225806
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a00207837c0b03d9e8ba6b3b0c1c8c83c6a9d4
8,444
py
Python
third_party/chromite/cli/cros/lint_autotest.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/cli/cros/lint_autotest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/cli/cros/lint_autotest.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2017 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This module is not automatically loaded by the `cros` helper. The filename # would need a "cros_" prefix to make that happen. ...
31.864151
79
0.71613
1,159
8,444
5.08887
0.281277
0.01492
0.01119
0.021363
0.137165
0.114615
0.096982
0.096982
0.089691
0.083418
0
0.003823
0.194576
8,444
264
80
31.984848
0.863402
0.493842
0
0.160377
0
0
0.09368
0.038471
0
0
0
0
0
1
0.169811
false
0.009434
0.103774
0
0.443396
0.009434
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a0c5a63555445f8c24a7d093541a3e613eb0de
2,176
py
Python
{{cookiecutter.directory_name}}/setup.py
farisachugthai/cookiecutter_lib
783c3fbadcf9f8bbf8da07edd9c6df4addf16435
[ "MIT" ]
null
null
null
{{cookiecutter.directory_name}}/setup.py
farisachugthai/cookiecutter_lib
783c3fbadcf9f8bbf8da07edd9c6df4addf16435
[ "MIT" ]
null
null
null
{{cookiecutter.directory_name}}/setup.py
farisachugthai/cookiecutter_lib
783c3fbadcf9f8bbf8da07edd9c6df4addf16435
[ "MIT" ]
null
null
null
#!/usr/bin/env python """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() requirements = [ {%- if cookiecutter.command_line_interface|lower == 'click' %} 'Click>=7.0', {%- endif %} ] test_requirements = [ {%- if c...
31.085714
103
0.653493
244
2,176
5.663934
0.495902
0.096237
0.099855
0.054269
0.089725
0
0
0
0
0
0
0.004558
0.193474
2,176
69
104
31.536232
0.782906
0
0
0.052632
0
0
0.409746
0.139731
0
0
0
0
0
0
null
null
0
0.017544
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
21a0c8636280ad53c71eff8b3260ed75a7d6bbee
8,298
py
Python
MindLink-Eumpy/data_collection_framework/util/EEG_record.py
Breeze1in1drizzle/MindLink-Exploring
24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59
[ "MIT" ]
7
2020-11-19T14:34:50.000Z
2022-02-26T14:16:50.000Z
MindLink-Eumpy/data_collection_framework/util/EEG_record.py
Breeze1in1drizzle/MindLink-Exploring
24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59
[ "MIT" ]
1
2021-08-20T07:30:32.000Z
2021-09-01T07:20:14.000Z
MindLink-Eumpy/data_collection_framework/util/EEG_record.py
Breeze1in1drizzle/MindLink-Exploring
24e7d60112754c9fe5faf7b7f9ae255fa1bc4c59
[ "MIT" ]
2
2021-07-20T08:59:14.000Z
2021-08-10T08:03:56.000Z
# -*- coding: utf-8 -*- """ Created on Thu Oct 18 11:42:40 2018 by Yongrui Huang Modified on Tue Oct 29th 16:16:50 2019 by Ruixin Lee @author: Yongrui Huang """ import sys sys.path.append('../') from data_collection_framework.util import record import configuration import os import platform import time import ctypes ...
38.416667
110
0.626657
954
8,298
5.226415
0.283019
0.060168
0.027678
0.023466
0.257521
0.238067
0.222222
0.209587
0.1785
0.139591
0
0.019408
0.292119
8,298
215
111
38.595349
0.829418
0.241624
0
0.126984
0
0
0.040884
0.007913
0
0
0.000989
0
0
1
0.02381
false
0.007937
0.119048
0
0.166667
0.103175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a131fadbf256dc2fd90d0c9f6e8868b23e49f2
3,198
py
Python
autophrase/pos_tag.py
QianyangPeng/AutophrasePy
1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7
[ "Apache-2.0" ]
7
2018-08-11T07:03:07.000Z
2022-03-18T06:33:30.000Z
autophrase/pos_tag.py
QianyangPeng/AutophrasePy
1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7
[ "Apache-2.0" ]
1
2018-11-01T08:18:00.000Z
2018-11-01T08:18:00.000Z
autophrase/pos_tag.py
QianyangPeng/AutophrasePy
1d34a62fdf96a649f5e06fe69dc74fa8d69fc8a7
[ "Apache-2.0" ]
1
2020-05-05T12:54:56.000Z
2020-05-05T12:54:56.000Z
import os from glob import glob from shutil import copyfile from math import floor import sys import threading # from download_parameter_files import download_parameter_files def split_file(num_lines, num_files, raw, tmp): smallfile = None file_num = 0 with open(raw) as bigfile: for lineno, line in enumerate(bigf...
31.98
82
0.693558
464
3,198
4.618534
0.267241
0.04853
0.066729
0.118059
0.29538
0.259916
0.234718
0.210453
0.210453
0.210453
0
0.004479
0.162289
3,198
100
83
31.98
0.795446
0.100063
0
0.217949
0
0
0.22884
0.123302
0
0
0
0
0
1
0.051282
false
0
0.076923
0
0.128205
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a59aacb4bd81cb3e7cdf393821079b2b85a81e
926
py
Python
app/utils/try.py
yudhik11/StackOverflow_UserQuery
b3c88ed18304078901497a9a0dc99c232e1ffac4
[ "MIT" ]
3
2019-07-21T16:30:27.000Z
2020-03-04T15:03:32.000Z
app/utils/try.py
yudhik11/StackOverflow_UserQuery
b3c88ed18304078901497a9a0dc99c232e1ffac4
[ "MIT" ]
11
2020-01-28T22:51:49.000Z
2022-02-10T09:16:19.000Z
app/utils/try.py
yudhik11/StackOverflow_UserQuery
b3c88ed18304078901497a9a0dc99c232e1ffac4
[ "MIT" ]
2
2019-07-21T12:30:13.000Z
2019-07-31T16:34:07.000Z
import requests, re import numpy as np u='https://api.stackexchange.com/2.2/similar' tag_arr=[] def clean_text(text): text = str(text) text = re.sub(r"[^\w]", " ", text.lower()) return text # for i in range(1,28): for i in range(1,2): print(i) p={'page':str(i), 'pagesize':'100','fromdate':'138853440...
33.071429
233
0.600432
147
926
3.727891
0.591837
0.065693
0.021898
0.040146
0.109489
0
0
0
0
0
0
0.037909
0.173866
926
27
234
34.296296
0.678431
0.166307
0
0
0
0
0.304688
0.059896
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
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
0
0
0
0
0
0
0
0
1
0
21a73b6961e324b2bf36ea8c248c456445c83c7d
832
py
Python
infrastructure/codigos/solver/extraer_datos_yahoo.py
izmfc/MNO_finalproject
5e25ba84708f75e98768e75a681992986efd87fc
[ "RSA-MD" ]
null
null
null
infrastructure/codigos/solver/extraer_datos_yahoo.py
izmfc/MNO_finalproject
5e25ba84708f75e98768e75a681992986efd87fc
[ "RSA-MD" ]
61
2020-04-25T01:09:22.000Z
2020-05-29T00:18:46.000Z
infrastructure/codigos/solver/extraer_datos_yahoo.py
izmfc/MNO_finalproject
5e25ba84708f75e98768e75a681992986efd87fc
[ "RSA-MD" ]
4
2020-05-01T19:24:45.000Z
2021-01-23T01:28:44.000Z
import yfinance as yf def extraer_datos_yahoo(stocks, start='2015-01-01', end='2020-04-30'): ''' Funcion para extraer precios al cierre de las acciones mediante yahoo finance de 2015-01-01 a 2020-04-30 params: stocks lista de acciones de las cuales se desea obtener el precio start fecha inicial...
37.818182
106
0.674279
128
832
4.296875
0.578125
0.072727
0.029091
0.072727
0
0
0
0
0
0
0
0.052161
0.19351
832
21
107
39.619048
0.767511
0.384615
0
0
0
0
0.146341
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a789b34ff251b32a9332edc970b38f9ab49536
1,244
py
Python
tree/htree.py
Tenbatsu24/python-data-structure
aa54edf30b70f20024111f33ab48c0d081086377
[ "MIT" ]
null
null
null
tree/htree.py
Tenbatsu24/python-data-structure
aa54edf30b70f20024111f33ab48c0d081086377
[ "MIT" ]
null
null
null
tree/htree.py
Tenbatsu24/python-data-structure
aa54edf30b70f20024111f33ab48c0d081086377
[ "MIT" ]
null
null
null
import collections class Node: def __init__(self, data, parent): self.parent = parent self.data = data self.children = {} def __contains__(self, item): return item in self.children def __getitem__(self, item): return self.children[item] def __setitem__(self, ...
25.387755
69
0.580386
139
1,244
4.906475
0.359712
0.058651
0.032258
0
0
0
0
0
0
0
0
0.001214
0.337621
1,244
48
70
25.916667
0.826456
0
0
0.054054
0
0
0.030547
0
0
0
0
0
0
1
0.216216
false
0
0.027027
0.054054
0.459459
0
0
0
0
null
0
0
0
0
0
0
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
21a80ca084c0768d2c462391247b55fb974a5877
4,530
py
Python
data/process.py
RenchuSong/FootballAnalyzer
2a4b619e29e3994b7956ab74217cf08c34756b22
[ "MIT" ]
null
null
null
data/process.py
RenchuSong/FootballAnalyzer
2a4b619e29e3994b7956ab74217cf08c34756b22
[ "MIT" ]
null
null
null
data/process.py
RenchuSong/FootballAnalyzer
2a4b619e29e3994b7956ab74217cf08c34756b22
[ "MIT" ]
null
null
null
import csv import matplotlib.pyplot as plt import json combine = [] def norm_name(name): i = len(name) - 1 while i > -1 and not('a' <= name[i] <= 'z' or 'A' <= name[i] <= 'Z'): i -= 1 return name[0:i+1] def percentile(d, min, max): if ((min <= d <= max) == False and (max <= d <= min) == False): return 0 ret...
31.901408
142
0.582119
770
4,530
3.368831
0.144156
0.060139
0.069391
0.053971
0.39707
0.374325
0.357363
0.357363
0.357363
0.319584
0
0.037552
0.206402
4,530
141
143
32.12766
0.684006
0.046799
0
0.071429
0
0
0.141597
0
0
0
0
0
0
0
null
null
0.008929
0.026786
null
null
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
21a81e454b5018f5bfc22e5ccbd3228cb3ba62b6
2,786
py
Python
tests/unit/test_bio_metadata.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
4
2019-05-08T20:42:10.000Z
2021-08-13T16:39:38.000Z
tests/unit/test_bio_metadata.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
102
2019-04-03T23:08:46.000Z
2021-11-28T19:41:38.000Z
tests/unit/test_bio_metadata.py
haoyuanli/candig-server
5f58a4ef5f58d9e91afb98d385e9213e0899e51d
[ "Apache-2.0" ]
6
2019-05-08T20:42:16.000Z
2021-08-21T03:15:44.000Z
""" Tests the biodata module """ import unittest import candig.server.datamodel.datasets as datasets import candig.server.exceptions as exceptions import candig.server.datamodel.bio_metadata as bioMetadata import candig.schemas.protocol as protocol class TestIndividuals(unittest.TestCase): """ Tests the In...
35.265823
71
0.648959
248
2,786
7.274194
0.33871
0.026608
0.02439
0.028825
0.414634
0.364745
0.308204
0.308204
0.238359
0.238359
0
0.03128
0.254128
2,786
78
72
35.717949
0.836862
0.102656
0
0.307692
0
0
0.084794
0
0
0
0
0
0.115385
1
0.038462
false
0
0.096154
0
0.173077
0.019231
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a84ccfa838eca956c2bc2c4621cd9756bd544c
4,580
py
Python
eval/fig4.py
tk2lab/logbesselk
6ffbc344c0b472d307a556e50de943a380616fb2
[ "Apache-2.0" ]
null
null
null
eval/fig4.py
tk2lab/logbesselk
6ffbc344c0b472d307a556e50de943a380616fb2
[ "Apache-2.0" ]
null
null
null
eval/fig4.py
tk2lab/logbesselk
6ffbc344c0b472d307a556e50de943a380616fb2
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from matplotlib.colors import ListedColormap from . import common def v_loc(x): return 40*np.log10(x + 1) def x_loc(x): return 40*(np.log10(x) + 1) def main(debug=False): thr_v = 25.0 thr_x = lambda v: 1...
35.503876
99
0.4869
792
4,580
2.688131
0.191919
0.027243
0.037576
0.026303
0.376703
0.286519
0.249883
0.226867
0.218412
0.195867
0
0.051964
0.277293
4,580
128
100
35.78125
0.591239
0.129913
0
0.154639
0
0
0.115055
0.014099
0
0
0
0
0
1
0.030928
false
0
0.061856
0.020619
0.113402
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a89ee632dc825af897834036510c30f557a71f
1,660
py
Python
yt_idv/scene_components/particles.py
sochowski/yt_idv
d840d3f80e6f5afb743f2eb9afce1f576645c731
[ "BSD-3-Clause" ]
3
2021-02-08T21:27:21.000Z
2021-07-09T08:35:37.000Z
yt_idv/scene_components/particles.py
sochowski/yt_idv
d840d3f80e6f5afb743f2eb9afce1f576645c731
[ "BSD-3-Clause" ]
17
2020-12-22T18:45:04.000Z
2022-02-25T20:05:50.000Z
yt_idv/scene_components/particles.py
sochowski/yt_idv
d840d3f80e6f5afb743f2eb9afce1f576645c731
[ "BSD-3-Clause" ]
4
2021-04-02T19:56:56.000Z
2021-09-24T01:22:55.000Z
import math import numpy as np import traitlets from OpenGL import GL from yt_idv.scene_components.base_component import SceneComponent from yt_idv.scene_data.particle_positions import ParticlePositions class ParticleRendering(SceneComponent): name = "particle_rendering" data = traitlets.Instance(ParticlePo...
36.086957
87
0.680723
211
1,660
5.085308
0.379147
0.072693
0.069897
0.107176
0.137931
0.039143
0
0
0
0
0
0.018634
0.224096
1,660
45
88
36.888889
0.814441
0
0
0.105263
0
0
0.060241
0
0
0
0
0
0
1
0.078947
false
0
0.157895
0
0.394737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21a8c687710b1e9cf2b84dde1150046d7da9a02d
1,078
py
Python
tests/custom/test_map_priority.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
9
2019-03-31T03:46:51.000Z
2020-05-20T13:05:06.000Z
tests/custom/test_map_priority.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
18
2019-09-11T09:19:45.000Z
2021-07-13T09:16:23.000Z
tests/custom/test_map_priority.py
arkhn/cleaning-scripts
ffe88598b476b2e6b53fd06e8ce6092ef0351b19
[ "Apache-2.0" ]
2
2019-09-18T15:20:10.000Z
2021-07-25T06:46:57.000Z
from scripts import custom def test_map_priority(): raw_input_1 = "0" output_1 = custom.map_priority(raw_input_1) assert output_1 == "stat" raw_input_2 = 0 output_2 = custom.map_priority(raw_input_2) assert output_2 == "stat" raw_input_3 = "1" output_3 = custom.map_priority(raw_inpu...
23.955556
49
0.681818
168
1,078
3.946429
0.166667
0.241327
0.232278
0.315234
0.408748
0
0
0
0
0
0
0.066667
0.220779
1,078
44
50
24.5
0.722619
0
0
0
0
0
0.058442
0
0
0
0
0
0.3125
1
0.03125
false
0
0.03125
0
0.0625
0
0
0
0
null
1
1
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
3
21a941828c011cb36b4651f7351fe451889403ba
3,332
py
Python
uniplot/cli.py
Titas-In-Cloud/uniplot
0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2
[ "MIT" ]
null
null
null
uniplot/cli.py
Titas-In-Cloud/uniplot
0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2
[ "MIT" ]
null
null
null
uniplot/cli.py
Titas-In-Cloud/uniplot
0d31f1c4d4d5ac24543d96ec4bfdc2cbf43406c2
[ "MIT" ]
null
null
null
import argparse from os import path from uniplot import plot from . import parse from . import analysis file = open("location.txt", "r") LOC = file.read() file.close() def file_location_configuration(args): """Allows to set the location from where to get the data file""" open("location.txt", "w").close() ...
42.717949
103
0.664466
442
3,332
4.859729
0.262443
0.03352
0.048417
0.058194
0.379888
0.302607
0.252328
0.252328
0.219739
0.219739
0
0
0.226891
3,332
77
104
43.272727
0.833851
0.119148
0
0.111111
0
0
0.274232
0.014488
0
0
0
0
0
1
0.12963
false
0
0.092593
0
0.222222
0.092593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21aac5ef63f55e45d1b0efa2a2ae4e72550f661b
2,709
py
Python
tests/utils/adapters/test_source_adapter.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
tests/utils/adapters/test_source_adapter.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
tests/utils/adapters/test_source_adapter.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
import pytest from novelsave_sources import models as sm from novelsave.core import dtos from novelsave.utils.adapters import SourceAdapter @pytest.fixture def source_adapter() -> SourceAdapter: return SourceAdapter() def test_novel_to_internal(source_adapter): test_novel = sm.Novel( title="title",...
24.1875
78
0.640827
291
2,709
5.71134
0.209622
0.086041
0.039711
0.075211
0.552948
0.505415
0.505415
0.456077
0.456077
0.456077
0
0.002962
0.252123
2,709
111
79
24.405405
0.817374
0
0
0.477273
0
0
0.11148
0
0
0
0
0
0.068182
1
0.068182
false
0
0.045455
0.011364
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21abbc7937fc3a9823260699ccf02930e2b263d7
233
py
Python
employeeProj/employeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-itayanna
3c6038cd88d03df8aef6ab544c6f331acea5dc2e
[ "Apache-2.0" ]
null
null
null
employeeProj/employeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-itayanna
3c6038cd88d03df8aef6ab544c6f331acea5dc2e
[ "Apache-2.0" ]
null
null
null
employeeProj/employeeApp/urls.py
cs-fullstack-2019-spring/django-formclassv2-cw-itayanna
3c6038cd88d03df8aef6ab544c6f331acea5dc2e
[ "Apache-2.0" ]
null
null
null
# importing info from views and the path function from django.urls import path from . import views # defining endpoints urlpatterns = [ path('', views.index, name='index'), path('appInfo/', views.index, name='appInfo') ]
17.923077
49
0.695279
30
233
5.4
0.566667
0.123457
0.17284
0
0
0
0
0
0
0
0
0
0.180258
233
13
50
17.923077
0.848168
0.283262
0
0
0
0
0.121951
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
21abd60e1f2686da401cbfb50657967001e634e4
593
py
Python
common/data_refinery_common/migrations/0010_auto_20190125_1655.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
106
2018-03-05T16:24:47.000Z
2022-03-19T19:12:25.000Z
common/data_refinery_common/migrations/0010_auto_20190125_1655.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
1,494
2018-02-27T17:02:21.000Z
2022-03-24T15:10:30.000Z
common/data_refinery_common/migrations/0010_auto_20190125_1655.py
erflynn/refinebio
4ead4082a6b98f7fc8cffdc62c4394338a577f3d
[ "BSD-3-Clause" ]
15
2019-02-03T01:34:59.000Z
2022-03-29T01:59:13.000Z
# Generated by Django 2.1.5 on 2019-01-25 16:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("data_refinery_common", "0009_es_cache"), ] operations = [ migrations.AddField( model_name="dataset", name="sha1", ...
24.708333
75
0.588533
64
593
5.3125
0.71875
0.105882
0.135294
0.158824
0.223529
0.223529
0
0
0
0
0
0.054632
0.290051
593
23
76
25.782609
0.752969
0.075885
0
0.352941
1
0
0.117216
0
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
21af623d6e191cda3a4a98ff6894dd3bac159239
570
py
Python
Python/coins_demo.py
Kodiologist/Citematic
03710d08d2a928f0b9bf4a37da056b5946a06c47
[ "Unlicense" ]
1
2016-12-02T20:32:34.000Z
2016-12-02T20:32:34.000Z
Python/coins_demo.py
Kodiologist/Citematic
03710d08d2a928f0b9bf4a37da056b5946a06c47
[ "Unlicense" ]
null
null
null
Python/coins_demo.py
Kodiologist/Citematic
03710d08d2a928f0b9bf4a37da056b5946a06c47
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from sys import stderr from os import environ import yaml, cgi from citematic_coins import coins bib_path = environ['DAYLIGHT_BIB_PATH'] with open(bib_path) as o: database = yaml.load(o) print('''<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Bibliography ...
21.923077
81
0.633333
87
570
4.126437
0.597701
0.058496
0
0
0
0
0
0
0
0
0
0.006198
0.150877
570
25
82
22.8
0.729339
0.036842
0
0
0
0
0.35219
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21b2b134eb876a2908c4696de72ff6c0e1d441eb
4,694
py
Python
wsgi/scripts/subinfo_aggrgate.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
wsgi/scripts/subinfo_aggrgate.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
wsgi/scripts/subinfo_aggrgate.py
AlexeyProskuryakov/rr
dcf598405159a48826f4214fa33abcf57418b680
[ "MIT" ]
null
null
null
import logging from Queue import Empty from multiprocessing import Process, Event from multiprocessing import Queue as mQ from threading import Thread from Queue import Queue as Q from time import sleep import praw from wsgi.engine import get_reposts_count from wsgi.scripts import GET_USER_AGENT_R from wsgi.scripts....
28.448485
112
0.626545
673
4,694
4.123328
0.213967
0.025225
0.02018
0.014054
0.206126
0.110991
0.055496
0.055496
0.032432
0.032432
0
0.005557
0.271623
4,694
164
113
28.621951
0.806084
0.005539
0
0.094488
0
0
0.069653
0
0
0
0
0
0
1
0.047244
false
0.007874
0.102362
0
0.165354
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21b594ae9bbaf94ccb0e9c28f5fa4f7f82326ce0
2,955
py
Python
Wrapping/Generators/Python/itk_generate_pyi.py
rflanz/ITK
7863da6db1fd541487c9e543308dcfcea26d3261
[ "Apache-2.0" ]
1
2021-03-17T14:09:24.000Z
2021-03-17T14:09:24.000Z
Wrapping/Generators/Python/itk_generate_pyi.py
rflanz/ITK
7863da6db1fd541487c9e543308dcfcea26d3261
[ "Apache-2.0" ]
null
null
null
Wrapping/Generators/Python/itk_generate_pyi.py
rflanz/ITK
7863da6db1fd541487c9e543308dcfcea26d3261
[ "Apache-2.0" ]
null
null
null
from typing import List, Any import inspect import importlib import sys try: # First attempt using convention of build directory from pathlib import Path wrap_itk_pth: Path = Path(__file__).parent / "WrapITK.pth" if not wrap_itk_pth.is_file(): print( "ERROR: itk_generate_pyi.py mu...
34.360465
98
0.643655
362
2,955
5.01105
0.367403
0.039691
0.052922
0.090959
0.072767
0.072767
0.072767
0
0
0
0
0.000463
0.268359
2,955
85
99
34.764706
0.838575
0.166497
0
0.15
0
0
0.100205
0.031212
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.266667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21b6504873c6c422500d4a9c19f2abf9476fba3d
314
py
Python
utils.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
utils.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
utils.py
hherrerob/Automated-Resume-Screening-System
4788024d58211b02ccdb4e9599bf08b1a5ceeb40
[ "MIT" ]
null
null
null
from flask import jsonify def make_response(status, message): raw_response = { "status": status } if status == 200: raw_response["results"] = message else: raw_response["message"] = message resp = jsonify(raw_response) resp.status_code = status return resp
17.444444
41
0.624204
35
314
5.428571
0.485714
0.231579
0
0
0
0
0
0
0
0
0
0.013333
0.283439
314
17
42
18.470588
0.831111
0
0
0
0
0
0.063694
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.25
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
21b789e1f1b1d8c14c64211b16ff443f97bbdcbe
33,445
py
Python
challenge_submissions/submit_767200/supplements/bot_agent_1.py
opendilab/GoBigger-Challenge-2021
794897e94caf15b69635dcb36eb64e1341131db9
[ "Apache-2.0" ]
121
2021-11-01T01:24:31.000Z
2022-03-31T10:53:47.000Z
challenge_submissions/submit_767200/supplements/bot_agent_1.py
opendilab/GoBigger-Challenge-2021
794897e94caf15b69635dcb36eb64e1341131db9
[ "Apache-2.0" ]
2
2021-11-06T14:13:00.000Z
2022-01-25T09:19:41.000Z
challenge_submissions/submit_767200/supplements/bot_agent_1.py
opendilab/GoBigger-Challenge-2021
794897e94caf15b69635dcb36eb64e1341131db9
[ "Apache-2.0" ]
39
2021-11-01T12:48:19.000Z
2022-03-01T11:23:38.000Z
import math import os import random import logging import copy import queue from pygame.math import Vector2 from gobigger.agents.base_agent import BaseAgent # from .base_agent import BaseAgent tabu_size=1 position_size=11 class BotAgent(BaseAgent): ''' Overview: A simple script bot ...
54.205835
186
0.554642
4,232
33,445
4.106569
0.050567
0.122562
0.094597
0.054664
0.709765
0.64716
0.590195
0.54796
0.509581
0.463375
0
0.031896
0.312872
33,445
616
187
54.293831
0.724338
0.121932
0
0.530271
0
0
0.056539
0
0
0
0
0
0
1
0.033403
false
0.004175
0.016701
0
0.118998
0.004175
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21b9e59ea383e0b587806904e6e2bc220070db5a
682
py
Python
dummyslurm/setup.py
tdegeus/slurm-epfl
32def6920d9b76eea184dba4756589264498023d
[ "MIT" ]
null
null
null
dummyslurm/setup.py
tdegeus/slurm-epfl
32def6920d9b76eea184dba4756589264498023d
[ "MIT" ]
null
null
null
dummyslurm/setup.py
tdegeus/slurm-epfl
32def6920d9b76eea184dba4756589264498023d
[ "MIT" ]
null
null
null
from setuptools import find_packages from setuptools import setup setup( name="dummyslurm", license="MIT", author="Tom de Geus", author_email="tom@geus.me", description="Dummy slurm installation", long_description="Dummy slurm installation", keywords="SLURM", url="https://github.com/tde...
27.28
48
0.623167
65
682
6.430769
0.615385
0.066986
0.095694
0.157895
0
0
0
0
0
0
0
0
0.250733
682
24
49
28.416667
0.818004
0
0
0
0
0
0.410557
0
0
0
0
0
0
1
0
true
0
0.086957
0
0.086957
0
0
0
0
null
0
0
0
0
0
0
0
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
21bfdd60daace63bc8e65a94ab93a210963d26b5
3,576
py
Python
examples/radial_menu.py
MiguelRobledo/workshop.py
0159eb752e3154d4eb051fdf242a9d0157ab0887
[ "MIT" ]
1
2019-05-28T15:01:13.000Z
2019-05-28T15:01:13.000Z
examples/radial_menu.py
MiguelRobledo/workshop.py
0159eb752e3154d4eb051fdf242a9d0157ab0887
[ "MIT" ]
null
null
null
examples/radial_menu.py
MiguelRobledo/workshop.py
0159eb752e3154d4eb051fdf242a9d0157ab0887
[ "MIT" ]
null
null
null
# Original by /u/Oran9eUtan # https://redd.it/bq45gc # Converted to Python by Peppermint#2241 each_player = ongoing_each_player(all, all) n_allowed_heroes = count_of(allowed_heroes(event_player)) interact_pressed = is_button_held(event_player, interact) eye_pos = eye_position(event_player) rule "Reset menu positions ...
29.311475
164
0.756991
567
3,576
4.395062
0.243386
0.189807
0.043339
0.050562
0.396067
0.317416
0.305377
0.279695
0.261637
0.229535
0
0.023159
0.130593
3,576
121
165
29.553719
0.778385
0.024049
0
0.244444
0
0
0.094405
0
0
0
0
0
0
0
null
null
0
0
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
21c1c1fd0d436d4aa0d902e64ebd89bf247f49da
948
py
Python
chapter1/problem_1_20.py
JBannwarth/OrbitalMechanics
fe3c36eba7cadf977804fb2ad866e0e28a96aab5
[ "MIT" ]
1
2020-08-29T13:34:48.000Z
2020-08-29T13:34:48.000Z
chapter1/problem_1_20.py
JBannwarth/OrbitalMechanics
fe3c36eba7cadf977804fb2ad866e0e28a96aab5
[ "MIT" ]
1
2020-09-06T21:17:51.000Z
2020-09-07T00:52:39.000Z
chapter1/problem_1_20.py
JBannwarth/OrbitalMechanics
fe3c36eba7cadf977804fb2ad866e0e28a96aab5
[ "MIT" ]
null
null
null
""" Orbital Mechanics for Engineering Students Problem 1.20 Question: Numerically solve the second order-differential equation t*yDDot + t^2*yDot - 2*y = 0 for y at t = 4, if the initial conditions at t=1 are: - y = 0 - yDot = 1 Written by: J.X.J. Bannwarth """ import numpy as np import matplotlib...
21.545455
65
0.607595
156
948
3.692308
0.435897
0.013889
0.065972
0.104167
0.166667
0.166667
0.166667
0.166667
0
0
0
0.04878
0.221519
948
43
66
22.046512
0.731707
0.367089
0
0
0
0
0.196691
0
0
0
0
0
0
1
0.05
false
0
0.15
0
0.25
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21c3e1098557143ef1907dc94df0967ca35bba38
6,401
py
Python
regularized-wasserstein-estimator/optimization.py
MarinBallu/regularized-wasserstein-estimator
aeb21778180a5f7b88789ac9640bf0aa90a07552
[ "MIT" ]
null
null
null
regularized-wasserstein-estimator/optimization.py
MarinBallu/regularized-wasserstein-estimator
aeb21778180a5f7b88789ac9640bf0aa90a07552
[ "MIT" ]
null
null
null
regularized-wasserstein-estimator/optimization.py
MarinBallu/regularized-wasserstein-estimator
aeb21778180a5f7b88789ac9640bf0aa90a07552
[ "MIT" ]
null
null
null
from initialize import initialize import timeit import numpy as np import computations ### STOCHASTIC GRADIENT DESCENT def sgd_entropic_regularization(a, b, M, reg1, reg2, numItermax, lr, maxTime): r''' Compute the sgd algorithm with one-sized batches to solve the regularized discrete measures ot dual estim...
32.165829
157
0.683331
903
6,401
4.654485
0.125138
0.028313
0.029979
0.024268
0.85201
0.82108
0.779205
0.779205
0.758982
0.743279
0
0.006777
0.216216
6,401
199
158
32.165829
0.830975
0.381815
0
0.602941
0
0
0.031258
0
0
0
0
0
0
1
0.044118
false
0
0.058824
0
0.147059
0.132353
0
0
0
null
0
0
0
1
1
1
1
1
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
6
21c44a1f70cf3b10e10c40da9f79c822ef4ae113
8,798
py
Python
boilerplate_app/tests.py
rishabhst/graph_test_task
5d342b077401903cf642bfdc8c49a1edb83ec9d7
[ "MIT" ]
null
null
null
boilerplate_app/tests.py
rishabhst/graph_test_task
5d342b077401903cf642bfdc8c49a1edb83ec9d7
[ "MIT" ]
2
2020-06-05T20:42:56.000Z
2021-06-10T21:25:31.000Z
boilerplate_app/tests.py
rishabhst/graph_test_task
5d342b077401903cf642bfdc8c49a1edb83ec9d7
[ "MIT" ]
null
null
null
# from model_mommy import mommy # from django.test import TestCase # from rest_framework_jwt.serializers import JSONWebTokenSerializer # from boilerplate_app.models import User # from boilerplate_app.serializers import UserListSerializer, UserCreateSerializer # class APITests(TestCase): # def test_list_user(...
39.630631
247
0.5599
998
8,798
4.793587
0.155311
0.03658
0.022575
0.0301
0.619147
0.537834
0.4375
0.372701
0.372701
0.298495
0
0.023569
0.291089
8,798
221
248
39.809955
0.743466
0.240396
0
0.280303
0
0
0.163001
0.06975
0
0
0
0
0.121212
1
0.068182
false
0
0.060606
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21c45eed900d2bb1c867cbce3f567b86b198b8b5
984
py
Python
utils.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
utils.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
utils.py
NeuralBending/stylegan2-ada-pytorch
c1b33b7e6d67a8de3d483d64f9ca1a45a7c6d217
[ "BSD-Source-Code" ]
null
null
null
import torch def postprocess(img_out): return (img_out.permute(0,2,3,1)* 127.5 + 128).clamp(0, 255).to(torch.uint8).cpu().numpy() def flicker(frames, f = 30): frames[::f]*=0 frames[2::f]*=0 frames[1::f]=255-frames[1::f] return frames def latent_walk(w,num=20, width=1): lin = torch.linspace(0,width,num)[:...
25.230769
92
0.627033
180
984
3.377778
0.316667
0.013158
0.026316
0.055921
0.069079
0
0
0
0
0
0
0.060024
0.153455
984
38
93
25.894737
0.669868
0.033537
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.033333
0.033333
0.366667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
21c54b7a57604b5f308ac3aab04a31a32f5f6b7c
1,853
py
Python
igvm/exceptions.py
lamaral/igvm
ac44a4ba6830433b3040405d7da98067d9f025a3
[ "MIT" ]
14
2018-02-15T14:09:54.000Z
2021-07-19T01:55:58.000Z
igvm/exceptions.py
lamaral/igvm
ac44a4ba6830433b3040405d7da98067d9f025a3
[ "MIT" ]
129
2018-02-19T09:47:18.000Z
2022-03-02T14:08:10.000Z
igvm/exceptions.py
lamaral/igvm
ac44a4ba6830433b3040405d7da98067d9f025a3
[ "MIT" ]
10
2018-02-16T15:56:59.000Z
2021-05-14T23:31:31.000Z
"""igvm - Exceptions Copyright (c) 2018 InnoGames GmbH """ class IGVMError(Exception): pass class ConfigError(IGVMError): """Indicates an error with the Serveradmin configuration.""" pass class HypervisorError(IGVMError): """Something went wrong on the hypervisor.""" pass class NetworkError...
20.820225
66
0.642742
193
1,853
6.082902
0.398964
0.099659
0.054514
0.063884
0.153322
0.11925
0.068143
0
0
0
0
0.002886
0.252024
1,853
88
67
21.056818
0.844156
0.291419
0
0.302326
0
0
0.052335
0
0
0
0
0
0.023256
1
0.046512
false
0.302326
0
0.023256
0.395349
0
0
0
0
null
0
0
0
0
0
0
0
0
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
21c55a05f8ceabf205b5ec79ef418e96dcbdd37a
16,275
py
Python
test/test.py
Kenneth-T-Moore/PlantEnergy
e0511b68e279c99a19cc88c2c1d5c61f4e7b822d
[ "Apache-2.0" ]
null
null
null
test/test.py
Kenneth-T-Moore/PlantEnergy
e0511b68e279c99a19cc88c2c1d5c61f4e7b822d
[ "Apache-2.0" ]
null
null
null
test/test.py
Kenneth-T-Moore/PlantEnergy
e0511b68e279c99a19cc88c2c1d5c61f4e7b822d
[ "Apache-2.0" ]
null
null
null
import unittest import numpy as np import cPickle as pickle import os from wakeexchange.OptimizationGroups import AEPGroup from fusedwake.WindTurbine import WindTurbine from fusedwake.WindFarm import WindFarm from windIO.Plant import WTLayout, yaml from openmdao.api import Problem class TestFlorisWrapper(unittest....
40.185185
133
0.574255
1,850
16,275
4.941622
0.145946
0.020674
0.043754
0.00525
0.723255
0.702363
0.686174
0.677642
0.633669
0.633669
0
0.060257
0.296406
16,275
405
134
40.185185
0.738101
0.596252
0
0.722689
0
0
0.079477
0.00766
0
0
0
0
0.033613
0
null
null
0
0.159664
null
null
0.008403
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
4
21c6d0b4b938001532a3640675f298b2bb5fd68b
3,045
py
Python
examples/ernie_sat/local/sedit_arg_parser.py
Mu-L/PaddleSpeech
0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d
[ "Apache-2.0" ]
null
null
null
examples/ernie_sat/local/sedit_arg_parser.py
Mu-L/PaddleSpeech
0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d
[ "Apache-2.0" ]
null
null
null
examples/ernie_sat/local/sedit_arg_parser.py
Mu-L/PaddleSpeech
0fa3fdb9ee89ca399b0f63ef2117c6370dc1f33d
[ "Apache-2.0" ]
null
null
null
import argparse def parse_args(): # parse args and config and redirect to train_sp parser = argparse.ArgumentParser( description="Synthesize with acoustic model & vocoder") # acoustic model parser.add_argument( '--am', type=str, default='fastspeech2_csmsc', choi...
35.823529
102
0.622332
356
3,045
5.151685
0.255618
0.098146
0.185387
0.088332
0.420938
0.370774
0.261723
0.229008
0.189749
0.143948
0
0.006547
0.247619
3,045
84
103
36.25
0.793976
0.025944
0
0.405405
0
0
0.385811
0
0
0
0
0
0
1
0.013514
false
0
0.013514
0
0.040541
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
21c6e54c53dfc95007e5b2f40fa0f3853059cf5f
1,054
py
Python
alg3dpy/tests/test_vector.py
saullocastro/alg3dpy
a3bf5fcef177a869447661166bf4aa7ef4365568
[ "BSD-3-Clause" ]
2
2019-02-05T06:12:27.000Z
2020-03-15T21:37:33.000Z
alg3dpy/tests/test_vector.py
saullocastro/alg3dpy
a3bf5fcef177a869447661166bf4aa7ef4365568
[ "BSD-3-Clause" ]
null
null
null
alg3dpy/tests/test_vector.py
saullocastro/alg3dpy
a3bf5fcef177a869447661166bf4aa7ef4365568
[ "BSD-3-Clause" ]
null
null
null
import numpy as np def test_vector(): from alg3dpy.line import asline from alg3dpy.vector import asvector from alg3dpy.plane import plane2lines xaxis = asvector([1, 0, 0]) yaxis = asvector([0, 1, 0]) zaxis = asvector([0, 0, 1]) yaxisneg = asvector([0, -1, 0]) assert xaxis.anglewith(yaxi...
35.133333
53
0.594877
162
1,054
3.864198
0.203704
0.041534
0.023962
0.070288
0.185304
0.134185
0.038339
0
0
0
0
0.068881
0.228653
1,054
29
54
36.344828
0.701107
0
0
0
0
0
0
0
0
0
0
0
0.481481
1
0.037037
false
0
0.148148
0
0.185185
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1