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
bb7233933506ce378e6905eadbfa9e01a8d6c38d
2,295
py
Python
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
11
2015-01-04T14:29:23.000Z
2019-12-25T05:38:37.000Z
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
36
2015-02-20T00:56:53.000Z
2020-12-04T10:02:14.000Z
enaml/tests/widgets/test_spin_box.py
mmckerns/enaml
ebf417b4dce9132bffa038a588ad90436a59d37e
[ "BSD-3-Clause" ]
3
2015-11-19T15:11:37.000Z
2019-03-11T23:45:02.000Z
#------------------------------------------------------------------------------ # Copyright (c) 2012, Enthought, Inc. # All rights reserved. #------------------------------------------------------------------------------ from enaml.validation.api import IntValidator from .enaml_test_case import EnamlTestCase class...
31.875
90
0.623094
267
2,295
5.138577
0.29588
0.104956
0.12828
0.065598
0.427114
0.284257
0.284257
0.284257
0.178571
0
0
0.007778
0.215686
2,295
71
91
32.323944
0.754444
0.270588
0
0.138889
0
0
0.07664
0
0
0
0
0
0.138889
1
0.166667
false
0.027778
0.111111
0
0.305556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb72f9435fdc29920b70ac72d5ae0238e0aa1869
1,351
py
Python
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
127
2017-02-28T17:34:14.000Z
2022-01-21T13:14:30.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
36
2018-06-07T21:34:13.000Z
2022-03-13T21:01:43.000Z
oandapyV20-examples-master/src/console/greenlets/accountdetails.py
cdibble2011/OANDA
68327d6d65dd92952d7a1dc49fe29efca766d900
[ "MIT" ]
76
2017-01-02T14:15:07.000Z
2022-03-28T03:49:45.000Z
# -*- coding: utf-8 -*- import gevent from oandapyV20.endpoints.accounts import AccountDetails, AccountChanges class GAccountDetails(gevent.Greenlet): """Greenlet to handle account details/changes. Initially get the AccountDetails and then keep polling for account changes. In case of changes put tho...
32.95122
75
0.637306
133
1,351
6.398496
0.466165
0.032902
0.077556
0.037603
0.13161
0.13161
0.13161
0.13161
0.13161
0
0
0.004103
0.278312
1,351
40
76
33.775
0.868718
0.159141
0
0.16
0
0
0.06205
0
0
0
0
0
0
1
0.08
false
0
0.08
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb73bd26c0031f64dbf994ec3a8a3952a7f0e16a
802
py
Python
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
wbsv/main.py
yswallow/wbsv-cli
30b68d0d1efd56fba99286d53470a39d317d6d9d
[ "MIT" ]
null
null
null
import sys from . import Archive from . import Find from . import ParseArgs from . import Interact def iter_urls(opt): """Iterate given urls for saving.""" try: for x in opt["urls"]: Archive.archive(Find.extract_uri_recursive(x, opt["level"]), x, opt["retry"]) ...
20.05
72
0.557357
98
802
4.428571
0.459184
0.092166
0.050691
0.041475
0.059908
0
0
0
0
0
0
0.006993
0.286783
802
39
73
20.564103
0.751748
0.05611
0
0.076923
0
0
0.092493
0
0
0
0
0
0
1
0.076923
false
0
0.192308
0
0.269231
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb74b1ea7d5e069ac223adabbb64c46d9e5159e9
5,613
py
Python
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
Sapphire/CallStatement.py
Rhodolite/Parser-py
7743799794d92aa8560db11f1d6d5f00e5ac1925
[ "MIT" ]
null
null
null
# # Copyright (c) 2017-2018 Joy Diamond. All rights reserved. # @gem('Sapphire.CallStatement') def gem(): require_gem('Sapphire.BookcaseExpression') require_gem('Sapphire.MemberExpression') require_gem('Sapphire.Method') require_gem('Sapphire.Tree') class CallStatementBase(SapphireTrunk): ...
31.533708
112
0.549973
550
5,613
5.287273
0.187273
0.116231
0.068776
0.053645
0.293673
0.241747
0.169188
0.069464
0.05227
0.024072
0
0.005389
0.371815
5,613
177
113
31.711864
0.819342
0.020666
0
0.162393
0
0
0.051749
0.024964
0
0
0
0
0.025641
1
0.102564
false
0
0
0.025641
0.299145
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb75831e0db77f35e095a17d5451a6e61a18c00c
546
py
Python
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_partial.py
johnhalbert/oso
3185cf3740b74c3c1deaca5b9ec738325de4c8a2
[ "Apache-2.0" ]
null
null
null
"""Unit tests for partial implementation.""" from polar.expression import Expression from polar.variable import Variable from sqlalchemy_oso.partial import dot_op_path def test_dot_op_path(): single = Expression("Dot", [Variable("_this"), "created_by"]) assert dot_op_path(single) == ["created_by"] doubl...
32.117647
69
0.705128
69
546
5.333333
0.376812
0.067935
0.122283
0.122283
0
0
0
0
0
0
0
0
0.142857
546
16
70
34.125
0.786325
0.069597
0
0
0
0
0.175299
0
0
0
0
0
0.3
1
0.1
false
0
0.3
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb75907adc83d289e117c742bd2e7ed7ea682464
426
py
Python
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
null
null
null
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2021-11-15T17:47:29.000Z
2021-11-15T17:47:29.000Z
lib/version.py
Durendal/electrum-rby
0dadd13467d44bcc7128f0dec0fa1aeff8d22576
[ "MIT" ]
1
2017-11-13T23:19:46.000Z
2017-11-13T23:19:46.000Z
ELECTRUM_VERSION = '3.0' # version of the client package PROTOCOL_VERSION = '0.10' # protocol version requested # The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_2FA = '101' # Two-factor authentication def seed_prefix(seed_type): if seed_t...
32.769231
60
0.683099
58
426
4.810345
0.551724
0.179211
0.09319
0
0
0
0
0
0
0
0
0.040123
0.239437
426
12
61
35.5
0.820988
0.349765
0
0
0
0
0.084871
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb75ca51f4748a57620c013b53d94680ace60cc1
1,579
py
Python
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
src/url.py
nahueldebellis/TwitchTournamentGenerator
a0a203e08d836ad744850839385324c54314b8a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python from pyshorteners import Shortener """Url class""" class Url(): """This class format participants and add to an url and short the url""" cant_participants = 0 bracket = 0 def __init__(self): self.short_url = Shortener() self.url_final = ['https://scorecounter.com/t...
41.552632
88
0.627612
214
1,579
4.485981
0.317757
0.0875
0.15
0.08125
0.194792
0.127083
0.072917
0.072917
0.072917
0
0
0.036667
0.240025
1,579
37
89
42.675676
0.763333
0.131729
0
0
0
0
0.094382
0.038951
0
0
0
0
0
1
0.133333
false
0
0.033333
0
0.3
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb76a8caabf2f194e804291ce67ba419fda452c3
5,302
py
Python
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
UniPCoA.py
AdeBC/UniRPyCoA
f5b54297daf07856d9a88ebc8e6277e7be9b7ecc
[ "MIT" ]
null
null
null
import os import pandas as pd from plotnine import * import plotnine from matplotlib import pyplot as plt import matplotlib from scipy.spatial.distance import pdist, squareform from skbio.stats.ordination import pcoa from skbio.diversity import beta_diversity from skbio.io import read from skbio.tree import TreeNode im...
49.092593
169
0.704828
777
5,302
4.664093
0.293436
0.029801
0.028146
0.015453
0.344095
0.318433
0.289183
0.218543
0.218543
0.199227
0
0.029374
0.120332
5,302
108
170
49.092593
0.747642
0
0
0.277228
0
0
0.254573
0.013389
0
0
0
0
0
1
0.009901
false
0
0.138614
0
0.158416
0.09901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb7baf8c8805cb067d4cf73845cfee7e1f0d116f
2,835
py
Python
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
null
null
null
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
16
2015-01-30T16:28:54.000Z
2015-03-02T14:18:56.000Z
invoice/spy/notify_osd.py
simone-campagna/invoice
6446cf6ebb158b895cd11d707eb019ae23833881
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2015 Simone Campagna # # 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...
35
114
0.65679
329
2,835
5.431611
0.431611
0.033576
0.021824
0.028539
0.193061
0.102406
0.102406
0
0
0
0
0.009836
0.246914
2,835
80
115
35.4375
0.827166
0.288889
0
0
0
0
0.072755
0
0
0
0
0
0
1
0.038462
false
0
0.076923
0.019231
0.134615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb7bc4b7cb8f753fbf39ae6cb16944a05b0ab207
3,878
py
Python
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
41
2015-02-20T00:35:39.000Z
2022-03-15T13:54:13.000Z
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
68
2015-01-09T18:07:38.000Z
2021-10-06T16:30:43.000Z
src/discoursegraphs/readwrite/salt/labels.py
arne-cl/discoursegraphs
4e14688e19c980ac9bbac75ff1bf5d751ef44ac3
[ "BSD-3-Clause" ]
8
2015-02-20T00:35:48.000Z
2021-10-30T14:09:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module handles the parsing of SALT labels. There are three types of labels (SFeature, SElementId, SAnnotation). Labels can occur as children of these elements: 'layers', 'nodes', 'edges' and '{sDocumentStructure}SDocumentGraph'. """ from lxml.builder import Elem...
35.577982
79
0.60624
463
3,878
5.008639
0.339093
0.06727
0.030185
0.01423
0.033635
0
0
0
0
0
0
0.014477
0.287519
3,878
108
80
35.907407
0.824828
0.478339
0
0
0
0
0.104067
0
0
0
0
0
0.028571
1
0.142857
false
0
0.057143
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb7c19c39a756e836f832fe37756f912b98af313
1,214
py
Python
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
31
2018-08-20T08:35:09.000Z
2022-03-21T04:17:27.000Z
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
8
2018-10-17T18:09:44.000Z
2021-12-14T10:03:34.000Z
examples/stream_entries.py
feedly/python-api-client
a211734a77337145efa0d1a1ddfe484f74530998
[ "MIT" ]
7
2018-09-04T01:10:48.000Z
2021-08-19T11:07:54.000Z
from feedly.api_client.session import FeedlySession from feedly.api_client.stream import StreamOptions from feedly.api_client.utils import run_example def example_stream_entries(): """ This example will prompt you to enter a category name, download the 10 latest articles from it, and display their titles...
39.16129
117
0.74547
175
1,214
5.005714
0.451429
0.068493
0.044521
0.065068
0.068493
0
0
0
0
0
0
0.006129
0.193575
1,214
30
118
40.466667
0.888662
0.490939
0
0
0
0
0.069374
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb84b60c8bd64fa0c7fda5ba539335cf5ce1fc5a
10,746
py
Python
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
35
2017-10-17T17:24:16.000Z
2022-03-18T22:10:47.000Z
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
1
2021-07-09T01:06:30.000Z
2021-07-09T01:06:30.000Z
plistutils/nskeyedarchiver.py
sathwikv143/plistutils
fc7783449da1ed222547ceb5c416402216fa9b34
[ "BSD-3-Clause" ]
4
2018-11-17T15:52:36.000Z
2022-02-28T08:01:14.000Z
import logging from uuid import UUID from biplist import Data, Uid from plistutils.utils import parse_mac_absolute_time logger = logging.getLogger(__name__) class NSKeyedArchiveException(Exception): pass class NSKeyedArchiveParser(object): # https://developer.apple.com/documentation/foundation/nskeyed...
45.72766
170
0.622557
1,215
10,746
5.283951
0.240329
0.066822
0.095327
0.047352
0.261682
0.223053
0.185047
0.131464
0.0919
0.06947
0
0.006515
0.271543
10,746
234
171
45.923077
0.813618
0.210311
0
0.138365
0
0
0.117067
0.002971
0
0
0
0.004274
0
1
0.125786
false
0.012579
0.025157
0.044025
0.327044
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb87fa54ef182344fda1ae0ba9713c3ff055e11e
9,337
py
Python
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
null
null
null
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
null
null
null
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
2
2020-11-04T08:00:37.000Z
2020-11-06T08:33:33.000Z
#!/usr/bin/python3 # # Project: build # Description: this is a very simple build tool which imitates from Bazel # import subprocess import argparse import shutil import glob import sys import os from core import * from languages import * from plugins import * class Build(Plugin): def __init__(self, root, rebuil...
34.076642
100
0.543108
1,023
9,337
4.845552
0.210166
0.02441
0.030865
0.018156
0.36978
0.322776
0.287876
0.264676
0.240871
0.240871
0
0.006794
0.353647
9,337
273
101
34.201465
0.814582
0.081825
0
0.340102
0
0
0.113223
0.005397
0
0
0
0
0.005076
1
0.076142
false
0.015228
0.045685
0.005076
0.218274
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb8aaea1d863f144dd7a710dd878ed727beb22e5
414
py
Python
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
import cv2 import sys import numpy as np from scipy.io import loadmat def convert(): labels = loadmat('tmp/data/devkit/cars_meta.mat') car_labels = [] for label in labels['class_names'][0]: car_labels.append(label[0]) labels_file = open("tmp/data/devkit/car_labels.txt", "w") labels_file.w...
21.789474
61
0.673913
61
414
4.295082
0.622951
0.137405
0.099237
0
0
0
0
0
0
0
0
0.008876
0.183575
414
18
62
23
0.766272
0
0
0
0
0
0.195652
0.142512
0
0
0
0
0
1
0.071429
false
0
0.285714
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
bb8d90bc55457ae6e3a765f4679f3b20738e394c
581
py
Python
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/single-number-ii/ # # Given an array of integers, every element appears three times except for one. Find that single one. # # Note: # Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? class Solution(object): def singleNumber(s...
27.666667
108
0.562823
79
581
4.139241
0.772152
0.018349
0
0
0
0
0
0
0
0
0
0.010152
0.321859
581
20
109
29.05
0.819797
0.507745
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb8db06160aa8c394dde6ee5900fec9ece4ddde7
5,347
py
Python
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
import os import uuid from datetime import datetime import mock import pytz from django.conf import settings from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from utils.widget import quill from wiki.models import wikipage, wikisection from wiki.models.wikipag...
53.47
248
0.747522
650
5,347
5.98
0.2
0.057885
0.042449
0.060201
0.47929
0.388732
0.36815
0.272704
0.272704
0.251608
0
0.017312
0.135777
5,347
99
249
54.010101
0.823848
0
0
0.075
0
0
0.0634
0.005985
0
0
0
0
0.2375
1
0.2
false
0.025
0.1625
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
bb8e03933f18743e4789f0bc3df9d4b4ca88a87c
2,205
py
Python
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
1
2021-02-11T04:42:28.000Z
2021-02-11T04:42:28.000Z
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
null
null
null
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jun 20 13:26:46 2019 @author: LENOVO """ import pandas as pd filename = r"C:\Users\LENOVO\Downloads\Tweets.csv" df = pd.read_csv(filename,encoding="unicode_escape") all_data = df.drop_duplicates(keep='first', inplace=False) cleaned_data = all_data.dro...
22.05
105
0.676644
280
2,205
5.114286
0.457143
0.02514
0.023743
0.036313
0.03352
0.03352
0.03352
0
0
0
0
0.013172
0.173696
2,205
100
106
22.05
0.772777
0.168254
0
0
0
0
0.100562
0.022486
0
0
0
0
0
1
0.025641
false
0
0.153846
0
0.179487
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb8fa677b509d4b926b1c8e7fd1bc0528332c98d
909
py
Python
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
10
2015-03-04T01:37:02.000Z
2019-06-04T04:59:44.000Z
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
8
2016-01-16T14:58:16.000Z
2020-06-22T20:30:14.000Z
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
4
2015-09-18T02:04:39.000Z
2020-10-14T20:10:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations def forwards(apps, schema_editor): if not schema_editor.connection.alias == "default": return ActivityState = apps.get_model("pinax_lms_activities", "ActivityState") ActivitySessionState = apps.get_mo...
30.3
89
0.716172
94
909
6.574468
0.510638
0.121359
0.161812
0.055016
0.210356
0.210356
0
0
0
0
0
0.023192
0.193619
909
29
90
31.344828
0.819918
0.023102
0
0
0
0
0.138826
0.025959
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb93be6fbacaf91fef33d78741e67ae984dd8a0a
6,830
py
Python
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
import struct import subprocess from abc import ABCMeta from functools import lru_cache from typing import Union, Tuple, Optional from .base import Header, Protocol from .constants import * ETH_TYPE_IP = 0x0800 ETH_TYPE_ARP = 0x0806 ETH_TYPE_RARP = 0x8035 ETH_TYPE_SNMP = 0x814c ETH_TYPE_IPV6 = 0x086dd ETH_TYPE_MPLS_U...
28.22314
101
0.615959
910
6,830
4.305495
0.220879
0.060745
0.018377
0.02144
0.210567
0.146759
0.090097
0.084227
0.084227
0.084227
0
0.031902
0.270278
6,830
241
102
28.340249
0.754213
0.056369
0
0.10596
0
0
0.063677
0.007347
0
0
0.014318
0.004149
0
1
0.13245
false
0
0.05298
0.059603
0.337748
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb965bb20b20b11f20bb0fdf749f18c3050f9707
893
py
Python
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-12-25T02:19:18.000Z
2021-12-25T02:19:18.000Z
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
null
null
null
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-11-25T10:31:47.000Z
2021-11-25T10:31:47.000Z
from flask import Flask, render_template import random, datetime as dt, requests app = Flask(__name__) # Jinja = templating language @app.route('/') def home(): random_number = random.randint(1,3) return render_template("index.html", random_number = random_number, year = dt.datetime.now().year) @app.route('...
37.208333
103
0.693169
121
893
4.92562
0.421488
0.09396
0.100671
0.095638
0.157718
0
0
0
0
0
0
0.017995
0.128779
893
24
104
37.208333
0.748072
0.030235
0
0
0
0
0.190751
0
0
0
0
0
0
1
0.166667
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb9676589fb7e0a374aed04eb4cfbe0922559c82
3,041
py
Python
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
import pygame import random import time import numpy as np WHITE = 255, 255, 255 BLACK = 0, 0, 0 size = width, height = 480, 320 row = 32 col = 48 cell_width = (width//col) cell_height = (height//row) font_size = 60 FPS = 30 LIVE_P_MAX = 0.5; LIVE_P_MIN = 0.01; _grid = np.full((row, col), None) screen = None refr...
25.771186
110
0.577442
445
3,041
3.770787
0.229213
0.037545
0.058999
0.057211
0.302741
0.213945
0.11919
0.11919
0.11919
0.11919
0
0.028385
0.293325
3,041
117
111
25.991453
0.752443
0.065768
0
0.215909
0
0
0.003175
0
0
0
0
0
0
1
0.090909
false
0.011364
0.045455
0
0.193182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb9746ac2f24608c4e049924c7fcb26f2cfddb65
794
py
Python
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
79
2017-09-25T19:29:17.000Z
2022-03-30T20:55:57.000Z
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
305
2018-01-17T01:12:10.000Z
2022-03-23T22:38:11.000Z
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
69
2017-11-14T00:30:46.000Z
2022-03-01T17:11:45.000Z
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
33.083333
94
0.492443
69
794
5.521739
0.57971
0.170604
0.133858
0
0
0
0
0
0
0
0
0.001605
0.215365
794
23
95
34.521739
0.609952
0.487406
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb9985f1334655b6b9bebcdea894cb35e74ef811
8,551
py
Python
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
6
2021-01-28T10:59:21.000Z
2022-03-30T08:00:06.000Z
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
7
2020-10-28T13:01:13.000Z
2022-03-08T19:21:05.000Z
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
null
null
null
"""Python implementation of the 2DM card parser.""" from typing import IO, List, Optional, Tuple, Union from ..errors import CardError, FormatError, ReadError _MetadataArgs = Tuple[ int, # num_nodes int, # num_elements int, # num_node_strings Optional[str], # name Optional[int], # num_materi...
34.479839
82
0.571161
1,123
8,551
4.190561
0.182547
0.021674
0.029749
0.019125
0.366341
0.305992
0.286443
0.242456
0.232257
0.232257
0
0.022418
0.321834
8,551
247
83
34.619433
0.789102
0.153666
0
0.220994
0
0.005525
0.119522
0.00309
0
0
0
0.004049
0.005525
1
0.033149
false
0
0.01105
0.005525
0.110497
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bb9b59ff879eaecfcc8190f0acec7f2068109681
1,024
py
Python
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
690
2017-04-11T06:45:01.000Z
2022-03-21T23:20:29.000Z
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
74
2017-11-22T18:05:26.000Z
2021-05-05T16:25:31.000Z
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
42
2017-04-13T10:22:40.000Z
2021-05-27T19:19:04.000Z
import sublime, sublime_plugin from ...libs import util class RefactorPreview(): view = None title = None window = None def __init__(self, title): self.title = title self.window = sublime.active_window() self.view = None for v in self.window.views(): if v.name() == self.title: se...
27.675676
92
0.657227
138
1,024
4.695652
0.355072
0.135802
0.060185
0.07716
0.237654
0.123457
0
0
0
0
0
0.001263
0.226563
1,024
37
93
27.675676
0.816919
0
0
0.0625
0
0
0.126829
0.121951
0
0
0
0
0
1
0.09375
false
0
0.0625
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bba24784bd9ee9a55803728f5cef4460717a8929
7,228
py
Python
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
3
2018-10-04T14:00:50.000Z
2021-12-11T08:57:26.000Z
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
null
null
null
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy as np import pandas as pd from itertools import combinations from scipy.stats import binom import scipy.special import matplotlib.pyplot as plt import matplotlib.patches as mpatches from IPython.display import display, HTML #sys.path.append("../") from FrameBuilder.eige...
45.175
152
0.731046
1,083
7,228
4.493075
0.136657
0.074805
0.027949
0.045212
0.709823
0.634402
0.605425
0.586724
0.561652
0.551377
0
0.014784
0.139043
7,228
160
153
45.175
0.767154
0.160072
0
0.43
0
0.04
0.177734
0.029732
0
0
0
0
0
1
0.01
false
0
0.15
0
0.16
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bba40b13a90f7230a2307e2b965c7e2e96ab0207
1,562
py
Python
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
null
null
null
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
null
null
null
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
1
2020-02-21T20:08:43.000Z
2020-02-21T20:08:43.000Z
from person import Person class Population: def __init__(self, family_info, null_parent_value='0'): self.persons = {} # Initialize the persons data structure with Person objects for fid in family_info: self.persons[fid] = {} for iid in family_info[fid]: info = family_info[fid][iid] ...
38.097561
123
0.640845
218
1,562
4.380734
0.233945
0.115183
0.117277
0.08377
0.363351
0.339267
0.186387
0.127749
0.071204
0
0
0.000858
0.254161
1,562
40
124
39.05
0.818884
0.18758
0
0
0
0
0.032488
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bba5ec5ee218ef30daab10fe172b51c78e3cf3a4
4,040
py
Python
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
1
2021-06-30T13:25:35.000Z
2021-06-30T13:25:35.000Z
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
null
null
null
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
2
2020-08-04T01:52:55.000Z
2021-03-16T19:12:20.000Z
''' Convolutional autoencoder on MNIST dataset using Keras functional API ''' from keras.datasets import mnist from keras.models import Model from keras.layers import Activation, Input, BatchNormalization from keras.layers import Conv2D, Conv2DTranspose from keras.callbacks import TensorBoard from keras.optimizers ...
35.438596
118
0.693069
585
4,040
4.589744
0.206838
0.048417
0.020112
0.035754
0.35121
0.312477
0.20298
0.140782
0.116201
0.116201
0
0.036651
0.169307
4,040
113
119
35.752212
0.763409
0.081931
0
0.025
0
0
0.089455
0.006506
0
0
0
0
0
1
0.0375
false
0
0.125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bba73b50d8937afbf151ac7cc18f80271ca8fda7
499
py
Python
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
72
2015-06-23T02:35:13.000Z
2021-12-08T01:47:40.000Z
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
139
2015-03-01T18:48:17.000Z
2021-06-18T15:45:14.000Z
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
19
2015-12-23T21:24:33.000Z
2022-01-06T04:04:41.000Z
from bfg9000.languages import Languages known_langs = Languages() with known_langs.make('c') as x: x.vars(compiler='CC', flags='CFLAGS') with known_langs.make('c++') as x: x.vars(compiler='CXX', flags='CXXFLAGS') def mock_which(*args, **kwargs): return ['command'] def mock_execute(args, **kwargs): ...
26.263158
68
0.639279
68
499
4.617647
0.602941
0.095541
0.089172
0.11465
0.22293
0.22293
0.22293
0.22293
0.22293
0.22293
0
0.037221
0.192385
499
18
69
27.722222
0.741935
0
0
0
0
0
0.236473
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0.076923
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbabba632a1d8ac671dc7f863d9ffae0e405f07a
1,266
py
Python
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
6
2018-02-22T00:27:44.000Z
2019-11-21T18:12:48.000Z
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
null
null
null
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
4
2018-02-19T05:59:23.000Z
2020-04-08T08:53:02.000Z
# coding: utf-8 import matplotlib.pyplot as plt import numpy as np N = 200 X = np.linspace(0, 10, N * 2) noise = np.random.normal(0, 0.5, X.shape) Y = X * 0.5 + 3 + noise def calcLoss(train_X, train_Y, W, b): return np.sum(np.square(train_Y - (train_X * W + b))) def gradientDescent(train_X, train_Y, W, b, lea...
26.375
103
0.661137
202
1,266
3.99505
0.351485
0.052045
0.054523
0.05948
0.106568
0.106568
0.054523
0
0
0
0
0.034415
0.196682
1,266
47
104
26.93617
0.759095
0.010269
0
0
0
0
0.067946
0.016787
0
0
0
0
0
1
0.055556
false
0
0.055556
0.027778
0.138889
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbac3dea77b9a3981684ddd7952fdf41e36843fc
6,343
py
Python
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
import os import boto3 import email import logging import json import re import uuid s3 = boto3.client("s3") workmail_message_flow = boto3.client('workmailmessageflow') logger = logging.getLogger() def lambda_handler(event, context): logger.error(json.dumps(event)) destination_bucket = os.environ.get('destinatio...
40.922581
164
0.653003
805
6,343
4.981366
0.265839
0.050873
0.034913
0.032419
0.236658
0.215711
0.159352
0.135162
0.082793
0.071322
0
0.009306
0.254611
6,343
154
165
41.188312
0.838832
0.196437
0
0.080357
0
0.008929
0.200237
0.029168
0
0
0
0.006494
0
1
0.008929
false
0
0.0625
0
0.098214
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbaeca43c2d4bafe283a3a22b25235f71d730c45
12,685
py
Python
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
'''The dagster-airflow operators.''' import ast import datetime import json import logging import os from contextlib import contextmanager from airflow.exceptions import AirflowException from airflow.models import BaseOperator, SkipMixin from airflow.operators.docker_operator import DockerOperator from airflow.operat...
36.346705
100
0.633662
1,523
12,685
5.050558
0.217334
0.021841
0.022101
0.021061
0.277041
0.215419
0.182137
0.152366
0.152366
0.152366
0
0.005124
0.276862
12,685
348
101
36.451149
0.833424
0.161135
0
0.2
0
0
0.08722
0.006068
0
0
0
0.002874
0
1
0.065306
false
0.004082
0.077551
0.012245
0.212245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbaf9c88715d3ed6658c5b7cac9f3b5786ab4dad
908
py
Python
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
5
2021-07-19T09:08:15.000Z
2022-03-21T10:19:08.000Z
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
5
2021-08-30T20:24:52.000Z
2021-11-29T07:24:51.000Z
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
1
2021-11-25T22:15:27.000Z
2021-11-25T22:15:27.000Z
# Copyright 2021 The CGLB Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
32.428571
74
0.732379
134
908
4.925373
0.69403
0.090909
0.039394
0.048485
0
0
0
0
0
0
0
0.019947
0.171806
908
27
75
33.62963
0.857713
0.63326
0
0
0
0
0.272727
0.08464
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbb379a767a5b56faec727f2a03bfb35f2d9f7df
5,361
py
Python
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
"""Collection of functions related to navigating directories """ ########## # Imports ########## import os from typing import Union from pathlib import Path from logger.select_chall import logging import constants from domains import problem_domains from git import Repo ########## # Subdomain dir_name ########## ...
23.933036
92
0.610707
656
5,361
4.83689
0.22561
0.034037
0.028679
0.016073
0.113457
0.056729
0.041601
0.041601
0.029625
0.029625
0
0.001228
0.240627
5,361
223
93
24.040359
0.778187
0.257042
0
0.089888
0
0
0.148709
0
0
0
0
0
0
1
0.11236
false
0
0.078652
0
0.303371
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbb6e0ba861fbcb599f8a5421f34367fccb32fdd
1,158
py
Python
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
6
2019-12-02T02:38:40.000Z
2021-02-05T06:40:56.000Z
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
null
null
null
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
1
2019-12-02T04:19:08.000Z
2019-12-02T04:19:08.000Z
from ..constant import Service as Service_Key from .base import Service import logging class LoggerService(Service): def init(self, services): config_service = services.get_service(Service_Key.CONFIG_LOCAL) self.date_format = config_service.get_config_value( "LOGGER", "DateFormat") ...
27.571429
71
0.607945
128
1,158
5.25
0.304688
0.096726
0.095238
0.130952
0.205357
0.205357
0.107143
0
0
0
0
0
0.30829
1,158
41
72
28.243902
0.838951
0
0
0
0
0
0.051813
0
0
0
0
0
0
1
0.111111
false
0
0.083333
0.027778
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbb7c9d675be21d26531a6e1f3de3d231a427a1e
1,224
py
Python
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
# Settings file for use with travis-ci # Include all the default settings. from settings import * # Use the following lines to enable developer/debug mode. DEBUG = False TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # Set the external URL context here FORCE_SCRIPT_NAME = '/' USE_X_FORWARDED_HOST = True ALLOWED_HOSTS = [...
26.042553
73
0.718137
171
1,224
5.035088
0.690058
0.027875
0
0
0
0
0
0
0
0
0
0.007937
0.176471
1,224
46
74
26.608696
0.84623
0.558007
0
0
0
0
0.309886
0.119772
0
0
0
0
0
1
0
false
0.047619
0.047619
0
0.047619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbbaccac8596eecef7a731177661a6286ed440a5
1,316
py
Python
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
null
null
null
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
null
null
null
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
1
2021-03-07T09:15:55.000Z
2021-03-07T09:15:55.000Z
f1 = 'intentionally_not_thinking_about_upsetting_things' f2 = 'substance_abuse' f3 = 'denial_of_unhappiness' f4 = 'excessive_rationality_and_control' f5 = 'suppression_of_anger' f6 = 'psychosomatic_symptoms' f7 = 'denial_of_memories' f8 = 'withdrawal_from_people' f9 = 'avoidance_through_sleep_and_lack of energy' f10 = ...
21.225806
68
0.521277
171
1,316
3.77193
0.584795
0.024806
0
0
0
0
0
0
0
0
0
0.175605
0.277356
1,316
62
69
21.225806
0.502629
0
0
0
0
0
0.325988
0.278116
0
0
0
0
0
1
0
false
0.035088
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
bbbb396fd5ddce2bf132ab9fc786735f3c60216f
11,400
py
Python
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
93
2015-11-26T14:15:51.000Z
2022-03-10T13:54:21.000Z
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
19
2017-04-06T11:09:21.000Z
2022-03-05T20:12:39.000Z
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
30
2017-06-12T16:08:51.000Z
2022-01-28T17:34:04.000Z
# code to estimate world surface elevation and EKF yaw error from # image direct pose informaation. # - trianglulate image features (in 3d) based on camera poses # - use essential/fundamental matrix + camera pose to estimate yaw error # - use affine transformation + camera pose to estimate yaw error import cv2 import...
33.236152
78
0.635351
1,703
11,400
4.093365
0.171462
0.040166
0.014919
0.0241
0.390331
0.3275
0.291063
0.254053
0.224502
0.205709
0
0.044324
0.242018
11,400
342
79
33.333333
0.762412
0.208684
0
0.295833
0
0
0.061907
0
0
0
0
0
0
1
0.054167
false
0
0.045833
0
0.191667
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbbdb4df5c383e2a41743d8bacdff942a6c94c7d
3,229
py
Python
portal/migrations/versions/4b1e5b7b69eb_.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/migrations/versions/4b1e5b7b69eb_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/migrations/versions/4b1e5b7b69eb_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""empty message Revision ID: 4b1e5b7b69eb Revises: 13d1c714823a Create Date: 2017-01-19 12:36:55.339537 """ # revision identifiers, used by Alembic. revision = '4b1e5b7b69eb' down_revision = '13d1c714823a' import re from alembic import op import sqlalchemy as sa from sqlalchemy.orm import sessionmaker from porta...
33.28866
91
0.59585
355
3,229
5.28169
0.4
0.0528
0.0448
0.0336
0.112
0.087467
0.0448
0.0448
0.0448
0
0
0.022623
0.260762
3,229
96
92
33.635417
0.762882
0.115825
0
0
0
0
0.255454
0.022167
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.174603
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbc06ee508b4f1069613557ce6ed45315a87cb10
639
py
Python
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2022-02-22T17:13:16.000Z
2022-02-22T17:13:16.000Z
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import datetime import pandas as pd import pandas.testing as tm print(pd.__version__) df = pd.DataFrame( { "A": ["X", "Y"], "B": [ datetime.datetime(2005, 1, 1, 10, 30, 23, 540000), datetime.datetime(3005, 1, 1, 10, 30, 23, 540000), ], } ) print(df) print(df....
18.257143
62
0.56025
90
639
3.911111
0.4
0.045455
0.068182
0.136364
0.267045
0.267045
0.261364
0.261364
0.261364
0.261364
0
0.154812
0.251956
639
34
63
18.794118
0.58159
0
0
0.153846
0
0
0.064163
0
0
0
0
0
0.038462
1
0
false
0
0.115385
0
0.115385
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbc90b64134d3ab6cf219527bed05e8373ac58a3
717
py
Python
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
2
2022-03-01T23:50:08.000Z
2022-03-22T15:25:34.000Z
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
8
2022-02-19T00:06:34.000Z
2022-03-31T00:09:54.000Z
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
1
2022-03-01T22:39:00.000Z
2022-03-01T22:39:00.000Z
""" test for lc """ import pytest import numpy as np from jaxsot.core.weight import comp_weight, comp_omega from jaxsot.core.lc import gen_lightcurve from jaxsot.io.earth import binarymap def test_lc(): mmap=binarymap(nside=16,show=False) nside=16 inc=0.0 Thetaeq=np.pi zeta=np.pi/3.0 Pspin=23...
21.727273
63
0.679219
131
717
3.59542
0.450382
0.042463
0.031847
0
0
0
0
0
0
0
0
0.073005
0.178522
717
32
64
22.40625
0.726655
0.015342
0
0
0
0
0.011478
0
0
0
0
0
0.038462
1
0.038462
false
0
0.192308
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbca0d47c796ae1504de61caad61827265203834
4,057
py
Python
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
from typing import Any, Dict from squad.config import config from squad.exceptions import FrozenError class BodyParameters: """ Storage class for (static) body data/parameters. """ __slots__ = ( "_frozen", "body_length_units", "body_angle_units", "l_body", "w_...
32.198413
78
0.590338
536
4,057
4.083955
0.184701
0.090452
0.036546
0.023755
0
0
0
0
0
0
0
0
0.291348
4,057
125
79
32.456
0.761391
0.106729
0
0.045455
0
0
0.147668
0
0
0
0
0
0
1
0.090909
false
0
0.034091
0.011364
0.215909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbcac82869e4955029c31c4d5ba367911fd7fe18
2,833
py
Python
deep_image_compression/single_psnr.py
LichengXiao2017/deep-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
9
2020-01-09T21:15:17.000Z
2022-02-08T12:41:54.000Z
deep_image_compression/single_psnr.py
LichengXiao2017/deep-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
8
2019-10-15T23:50:03.000Z
2021-11-10T19:40:15.000Z
deep_image_compression/single_psnr.py
LichengXiao2017/enas-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
3
2019-10-16T06:06:49.000Z
2020-07-06T15:02:09.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Licheng Xiao. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.276316
83
0.614896
342
2,833
4.947368
0.415205
0.035461
0.030142
0.031915
0.138889
0.044326
0
0
0
0
0
0.013094
0.27215
2,833
75
84
37.773333
0.807468
0.237204
0
0
0
0
0.098835
0
0
0
0
0
0
1
0.038462
false
0
0.173077
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbcbbaa39a696df212fa670accc00b3ebb116dbd
984
py
Python
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from message.models import Message, DeletedMessage, TextContent from user.tests.utils import create_active_user from conversation.tests.utils import create_private_chat def create_text_content(text='hello') -> TextContent: return TextContent.objects.create(text=text) def create_message(sender=None, chat=None, ...
31.741935
65
0.707317
121
984
5.578512
0.247934
0.059259
0.071111
0.065185
0
0
0
0
0
0
0
0
0.204268
984
30
66
32.8
0.862069
0
0
0
0
0
0.034553
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.047619
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbcbbc848a277e8f627eea2957cd5be0baa2e598
350
py
Python
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
""" Replace the comment in the following code with a while loop. numXs = int(input('How many times should I print the letter X? ')) toPrint = " #concatenate X to toPrint numXs times print(toPrint) """ numXs = int(input('How many times should I print the letter X? ')) toPrint = "" while numXs > 0: toPrint += "X" ...
20.588235
66
0.677143
54
350
4.388889
0.481481
0.067511
0.109705
0.135021
0.455696
0.455696
0.455696
0.455696
0.455696
0.455696
0
0.007194
0.205714
350
16
67
21.875
0.845324
0.548571
0
0
0
0
0.3
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbd1b55c9769411d9a683ac06b192b84c0c94cde
2,479
py
Python
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
#to create the flask page #import flask #flask library was installed in the command line/computer terminal first #Source: PythonHow https://pythonhow.com/python-tutorial/flask/How-making-a-website-with-Python-works/ #Python assigns the name "__main__" to the script when the script is executed. #The debug parameter...
42.741379
146
0.709964
376
2,479
4.531915
0.422872
0.03169
0.056338
0.032864
0.098592
0.098592
0.028169
0
0
0
0
0.025716
0.168616
2,479
58
147
42.741379
0.801067
0.582493
0
0
0
0
0.403361
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0.052632
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbd4c608ff119a6e8725d951c6333bfee210d76b
9,913
py
Python
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
3
2020-10-22T06:18:17.000Z
2021-03-19T16:49:00.000Z
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
11
2019-11-01T23:04:31.000Z
2022-02-10T12:32:11.000Z
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
null
null
null
import uuid from urllib.parse import urljoin from django.core.exceptions import FieldError from multiselectfield import MultiSelectField from rdkit import Chem from django.db import models from resolver import defaults from inchi.identifier import InChIKey, InChI class Inchi(models.Model): id = models.UUIDFiel...
36.988806
117
0.635226
1,115
9,913
5.497758
0.161435
0.038173
0.02969
0.038825
0.526591
0.496411
0.439804
0.368679
0.320065
0.29217
0
0.01436
0.227277
9,913
267
118
37.127341
0.785901
0.009684
0
0.336364
0
0
0.118708
0.007948
0
0
0
0
0
1
0.059091
false
0
0.036364
0.027273
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbd76e1f33835fcc21edddd8477a6604c70dcdb3
5,143
py
Python
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
1
2019-04-19T10:14:49.000Z
2019-04-19T10:14:49.000Z
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
null
null
null
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """内核方法 Copyright 2018-2019 Sean Feng(sean@FantaBlade.com) """ import os import re from concurrent import futures from multiprocessing import cpu_count from urllib.parse import urlparse import pafy import requests class Core: def log(self, message): print(message) def __in...
37.816176
92
0.517986
577
5,143
4.448873
0.247834
0.029996
0.046747
0.021815
0.298403
0.22127
0.155045
0.155045
0.099727
0.099727
0
0.007503
0.352129
5,143
135
93
38.096296
0.762905
0.028194
0
0.224138
0
0
0.101063
0
0
0
0
0
0.008621
1
0.068966
false
0
0.060345
0
0.146552
0.060345
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbdb59840ecfefbcddcb7e8ef4a69bf99648feb6
1,953
py
Python
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np from PIL import Image, ImageSequence import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_io as tfio from scipy.ndimage import rotate from src.data.monuseg import get_dataset, tf_random_rotate, tf_random_crop ds = get_dataset() def random_crop(image,...
39.06
78
0.612391
273
1,953
4.21978
0.271062
0.039063
0.048611
0.055556
0.321181
0.321181
0.321181
0.321181
0.251736
0.208333
0
0.032982
0.270353
1,953
50
79
39.06
0.775439
0
0
0.097561
0
0
0.019959
0
0
0
0
0
0
1
0.02439
false
0
0.195122
0
0.268293
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbddc18cfd9ad9a4f3ecf0a646125463caad5351
870
py
Python
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import ckeditor_uploader.fields class Migration(migrations.Migration): dependencies = [ ('weunion', '0001_initial'), ('investmap', '0003_auto_20161205_1926'), ] operations = [ ...
30
114
0.589655
75
870
6.613333
0.706667
0.064516
0.08871
0
0
0
0
0
0
0
0
0.036741
0.28046
870
28
115
31.071429
0.755591
0.024138
0
0
0
0
0.165289
0.081464
0
0
0
0
0
1
0
false
0
0.136364
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbe19a963ebbfb67a87214650a7ef4c055ac8952
2,071
py
Python
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
1
2022-02-22T07:19:16.000Z
2022-02-22T07:19:16.000Z
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
null
null
null
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
null
null
null
"""Mostly helper functions to help with the driver.""" import json import os import pathlib import sqlite3 import arrow # type: ignore def sql_db(): """Open a SQL connection and perform a query.""" db_path = pathlib.Path(os.getcwd()) db_path = pathlib.Path(db_path/'sql'/'portfolio.sqlite3') con = sql...
29.169014
75
0.598262
291
2,071
4.109966
0.364261
0.06689
0.0301
0.050167
0.093645
0
0
0
0
0
0
0.014342
0.259295
2,071
70
76
29.585714
0.765319
0.129406
0
0
0
0
0.14896
0
0
0
0
0
0
1
0.053571
false
0
0.089286
0
0.232143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbe3022d59c8c55da8fc827a792032bc2f9f1ed9
1,053
py
Python
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
import subprocess import sys import os import math # This code is meant to manage running multiple instances of my KMCLib codes at the same time, # in the name of time efficiency numLambda = 256 sysSize = 5 numVecs = 1 dataLocation = "exactSolns/thesisCorrections/low" lambdaMin = 10.0**(-4) lambdaMax = 10.0**(4) rate...
33.967742
215
0.706553
135
1,053
5.511111
0.533333
0.012097
0.010753
0
0
0
0
0
0
0
0
0.037569
0.140551
1,053
30
216
35.1
0.78453
0.1415
0
0
0
0
0.1
0.064444
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbe58ee718d54a29743fdde56951e945cc81bce6
378
py
Python
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
6
2019-01-23T17:37:09.000Z
2020-11-17T16:12:27.000Z
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
9
2019-01-25T11:09:17.000Z
2022-02-26T09:10:04.000Z
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
1
2019-01-23T17:37:12.000Z
2019-01-23T17:37:12.000Z
import dash from dash_google_charts import PieChart app = dash.Dash() app.layout = PieChart( height="500px", data=[ ["Task", "Hours per Day"], ["Work", 11], ["Eat", 2], ["Commute", 2], ["Watch TV", 2], ["Sleep", 7], ], options={"title": "My Daily Activit...
18
45
0.518519
43
378
4.302326
0.790698
0
0
0
0
0
0
0
0
0
0
0.033708
0.293651
378
20
46
18.9
0.659176
0
0
0
0
0
0.214286
0
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
bbe8dbb33350754634ad5a39bc45f35bec1cec43
4,183
py
Python
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Written by mohlcyber v.0.1 (15.04.2020) # Edited by filippostz v.0.2 (24.09.2021) import random import sys import socket import requests import json import re import smtplib from datetime import datetime from urllib.parse import urljoin from email.mime.text import MIMEText from email.mime.mult...
41.83
127
0.531198
469
4,183
4.624733
0.336887
0.005533
0.030429
0.02213
0.394652
0.337483
0.332872
0.332872
0.319041
0.319041
0
0.023656
0.333015
4,183
99
128
42.252525
0.753763
0.032752
0
0.253012
0
0
0.182133
0.041574
0
0
0
0
0
1
0.048193
false
0
0.13253
0
0.204819
0.072289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbe9079acec9fc7d47c390d5c89d9f262c9f1f50
518
py
Python
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
null
null
null
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
6
2020-08-03T20:55:44.000Z
2020-08-13T22:03:13.000Z
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
null
null
null
#parameters accumulated_weight = 0.5 detector_u = 50 detector_b = 350 detector_r = 300 detector_l = 600 message_x = 10 message_y = 400 date_x = 0 date_y = 450 threshold_min=22 rate = 0.8 RGB_INT_MAX = 255 RGB_INT_MIN = 0 RGB_FLT_MAX = 255.0 RGB_FLT_MIN = 0.0 Blur_value = 7 text_color = (200,50,150) rectangle_color = (0...
17.862069
27
0.758687
95
518
3.842105
0.578947
0.027397
0.038356
0
0
0
0
0
0
0
0
0.155963
0.158301
518
29
28
17.862069
0.681193
0.019305
0
0
0
0
0
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
bbe94404de84755169d02669d387f24583e7d3f0
1,309
py
Python
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
1
2022-02-02T04:44:56.000Z
2022-02-02T04:44:56.000Z
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Genere una matriz de 25 x 40 con números decimales al azar entre 0 y 1. Mostrar los numeros del perimetro y calcularlo. """ from random import random from prototools import show_matrix def solver_a(): """ >>> solver_a() [1, 2, 3, 4, 5, 16, 17...
23.375
71
0.50573
221
1,309
2.873303
0.348416
0.050394
0.03937
0.018898
0.294488
0.270866
0.270866
0.270866
0.270866
0.270866
0
0.135974
0.286478
1,309
55
72
23.8
0.543897
0.250573
0
0.484848
0
0
0.00843
0
0
0
0
0
0
1
0.060606
false
0
0.090909
0
0.151515
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbec39b874803a9ced574ab89af24276b12b55c2
4,698
py
Python
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
1
2022-01-09T21:57:56.000Z
2022-01-09T21:57:56.000Z
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
null
null
null
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
null
null
null
# import modules import os import re import glob import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from wordcloud import WordCloud class Analyse: # Data Cleaning Function def raw_to_df(self, file, key): global df # Time formatting split_form...
29.923567
79
0.561303
616
4,698
4.186688
0.37013
0.024816
0.006979
0.009306
0.048856
0.030244
0.012408
0.012408
0.012408
0.012408
0
0.017263
0.321839
4,698
156
80
30.115385
0.792216
0.269902
0
0.025
0
0.025
0.104038
0.029472
0
0
0
0
0
1
0.05
false
0
0.1
0.0125
0.2125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbece8b4d9743d75c14096162d201bda457080e8
2,857
py
Python
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
2
2019-08-06T07:28:45.000Z
2020-05-31T14:41:40.000Z
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
null
null
null
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
1
2019-01-07T10:14:50.000Z
2019-01-07T10:14:50.000Z
#!/usr/bin/python3 """ rdp Python implementation of the Ramer-Douglas-Peucker algorithm. """ import sys import numpy as np #from math import sqrt #from functools import partial from math import radians, cos, sin, asin, sqrt if sys.version_info[0] >= 3: xrange = range def pl_dist(point, start, end): """ C...
26.453704
95
0.60098
445
2,857
3.822472
0.267416
0.047031
0.016461
0.007055
0.329218
0.22575
0.22575
0.22575
0.221046
0.159906
0
0.023501
0.270214
2,857
107
96
26.700935
0.792326
0.579979
0
0
0
0
0.005076
0
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbee0d1262c642ad50187e5394e6ab5c37bd528f
5,560
py
Python
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
37.823129
77
0.673561
684
5,560
5.19883
0.277778
0.056243
0.071991
0.102362
0.475816
0.459505
0.426603
0.39342
0.292463
0.23622
0
0.013767
0.242266
5,560
146
78
38.082192
0.830287
0.15036
0
0.319588
0
0
0.018839
0
0
0
0
0
0.061856
1
0.092784
false
0
0.082474
0
0.195876
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbefdf91c1e6ecf066af1879e3918f12b778aa84
11,398
py
Python
options_chain_pull.py
anupamsharma01/python
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
2
2020-12-25T22:30:52.000Z
2021-11-26T14:08:12.000Z
options_chain_pull.py
anupamsharma01/python_options_trade
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
null
null
null
options_chain_pull.py
anupamsharma01/python_options_trade
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
3
2020-04-10T15:00:10.000Z
2021-08-19T21:20:19.000Z
from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.parse import parse_qs import requests import ssl import sys import tdameritrade.auth #added as40183 import urllib import urllib3 #as40183 from sys import argv import pymysql.cursors import datetime import dateutil.relativedelta import ...
37.993333
277
0.5887
1,439
11,398
4.528839
0.186935
0.017493
0.02762
0.035906
0.304128
0.283106
0.204082
0.115084
0.084855
0.070585
0
0.021368
0.244517
11,398
299
278
38.120401
0.735455
0.11037
0
0.176991
0
0.026549
0.311684
0.061378
0.004425
0
0
0
0
1
0
false
0
0.09292
0
0.09292
0.172566
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbf00ed1d2c63a8cbd6917e7f62b070f2c550c40
4,492
py
Python
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
53
2018-10-28T20:07:16.000Z
2021-12-17T02:25:57.000Z
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
3
2019-01-07T14:01:39.000Z
2019-05-07T12:01:44.000Z
src/main.py
Naman-ntc/3D-HourGlass-Network
e58b7b6a78d35bc14fe4c0bc611f80022b2f409b
[ "MIT" ]
9
2018-10-28T22:31:29.000Z
2021-10-14T02:54:27.000Z
import os import time import datetime import ref import torch import torch.utils.data from opts import opts from model.Pose3D import Pose3D from datahelpers.dataloaders.fusedDataLoader import FusionDataset from datahelpers.dataloaders.h36mLoader import h36m from datahelpers.dataloaders.mpiiLoader import mpii from dat...
31.412587
163
0.70236
628
4,492
4.883758
0.270701
0.031301
0.04956
0.046951
0.244539
0.10238
0.10238
0.10238
0.10238
0.10238
0
0.019306
0.146705
4,492
142
164
31.633803
0.780851
0.046972
0
0.122807
0
0
0.069207
0.00491
0
0
0
0
0
1
0.026316
false
0
0.140351
0
0.201754
0.061404
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbf0f0dbbea749b29ef7a61b2ac5e680c12f1409
1,053
py
Python
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
basic-part-1/07-print-file-extension.py
inderpal2406/python-practice-2022
59e280a5babefc96b1a9c773a79fb5176e876f7a
[ "MIT" ]
null
null
null
# This script will accept a filename from the user and print the extension of that. # If the script doesn't find a period in filename, then it'll display result accordingly. # "not in" or "in" membership operator can be used with strings as well along with list, tuples. # Need to check which additional other places can...
30.970588
115
0.716999
174
1,053
4.310345
0.454023
0.028
0.037333
0.053333
0.072
0.072
0
0
0
0
0
0.001168
0.187085
1,053
33
116
31.909091
0.875
0.512821
0
0
0
0.071429
0.459245
0
0
0
0
0
0
1
0
false
0
0.142857
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
bbf2ae61952632fab35bb3d4da6625e30a6cc5d4
1,279
py
Python
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
null
null
null
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
null
null
null
src/Xtb/Python/__init__.py
qcscine/xtb_wrapper
5295244771ed5efe3d9e1582e07ed9d26545d387
[ "BSD-3-Clause" ]
1
2022-02-04T13:40:00.000Z
2022-02-04T13:40:00.000Z
__copyright__ = """This code is licensed under the 3-clause BSD license. Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. See LICENSE.txt for details. """ import os import scine_utilities as utils from distutils import ccompiler manager = utils.core.ModuleManager() if not manager.module_loaded('X...
36.542857
78
0.693511
174
1,279
4.896552
0.505747
0.049296
0.061033
0.052817
0.077465
0.077465
0
0
0
0
0
0.001
0.218139
1,279
34
79
37.617647
0.851
0.102424
0
0.076923
0
0
0.184279
0
0
0
0
0
0
1
0.038462
false
0
0.153846
0
0.307692
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
bbf40515dd7d835260533fe653dd331f52016415
5,062
py
Python
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
3
2016-05-03T20:07:25.000Z
2020-12-22T07:16:11.000Z
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
17
2016-04-26T09:35:42.000Z
2016-08-18T10:07:40.000Z
perch/validators.py
OpenPermissions/perch
36d78994133918f3c52c187f19e50132960a0156
[ "Apache-2.0" ]
1
2019-05-20T01:40:56.000Z
2019-05-20T01:40:56.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Open Permissions Platform Coalition # 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 appl...
29.260116
107
0.644212
713
5,062
4.462833
0.31136
0.052797
0.010057
0.006285
0.108422
0.079195
0.050911
0.012571
0.012571
0.012571
0
0.013925
0.248123
5,062
172
108
29.430233
0.822123
0.335836
0
0.04878
0
0.02439
0.150849
0.038655
0
0
0
0
0
1
0.134146
false
0
0.04878
0.036585
0.329268
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbf6bf0479cef19ff010cf6f671d185104dd03d3
9,060
py
Python
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
4
2019-04-26T15:47:57.000Z
2021-04-20T22:53:58.000Z
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
8
2017-11-22T19:20:20.000Z
2022-02-14T01:49:58.000Z
glycan_profiling/tandem/evaluation_dispatch/task.py
mstim/glycresoft
1d305c42c7e6cba60326d8246e4a485596a53513
[ "Apache-2.0" ]
3
2017-11-21T18:05:28.000Z
2021-09-23T18:38:33.000Z
import os from collections import deque from glycan_profiling.task import TaskBase debug_mode = bool(os.environ.get("GLYCRESOFTDEBUG")) class StructureSpectrumSpecificationBuilder(object): """Base class for building structure hit by spectrum specification """ def build_work_order(self, hit_id, hit_map...
37.438017
115
0.562252
1,221
9,060
3.984439
0.181818
0.057554
0.044399
0.048921
0.608222
0.583145
0.583145
0.57184
0.57184
0.57184
0
0.004263
0.352759
9,060
241
116
37.593361
0.825375
0.343709
0
0.459459
0
0
0.108389
0
0
0
0
0
0
1
0.135135
false
0
0.027027
0.027027
0.306306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbf803380db0ef251842437e33a2f97c28f09e88
795
py
Python
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
core/render.py
ayyuriss/EigenFunctions
8cb6c22871fcddb633392c0a12691e960dad5143
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed May 16 09:32:56 2018 @author: gamer """ import pygame as pg import numpy as np import skimage.transform as transform class Render(object): def __init__(self, window_size=(360,480)): pg.init() self.h,self.w = window_size self.dis...
24.090909
73
0.548428
109
795
3.917431
0.568807
0.035129
0.042155
0.046838
0
0
0
0
0
0
0
0.049911
0.29434
795
33
74
24.090909
0.71123
0.093082
0
0
0
0
0.022409
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbf98d99386d0154fceea52ba139487cd08f628c
660
py
Python
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
scripts/branching_recursion.py
ithasnext/python_fractals
1eea4e464d2073ddd0f9dd2000af101cad23c0f8
[ "MIT" ]
null
null
null
import pygame import sys def setup(w,h,r): surf = pygame.Surface((w,h)) fract_circle(w/2, h/2, r, surf) pygame.image.save(surf, str(r)+"_radius.png") # branching recursion def fract_circle(x,y, radius, surface): if radius > 1: pygame.draw.circle(surface, (0,0,255), (int(x),int(y)), int(radius), 1) if radius ...
27.5
73
0.689394
117
660
3.82906
0.290598
0.125
0.133929
0.087054
0.345982
0.303571
0.303571
0.303571
0.303571
0.303571
0
0.031196
0.125758
660
24
74
27.5
0.745234
0.028788
0
0
0
0
0.090625
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbfa57bb471088a16fc1c6466ecf225acd101941
684
py
Python
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
8
2021-03-21T21:34:59.000Z
2022-03-25T20:51:47.000Z
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
7
2021-04-07T07:40:23.000Z
2022-01-22T21:05:40.000Z
WorkInProgress/MagnetoMeter/callibrate.py
SpudGunMan/LMS-uart-esp
95c905cc3dc99349b6b9e7bf0296a6fe0969d2b4
[ "BSD-3-Clause" ]
5
2022-01-21T18:37:20.000Z
2022-02-17T00:35:28.000Z
from hmc5883l import HMC5883L sensor = HMC5883L(scl=5, sda=4) valmin=[0,0,0] valmax=[0,0,0] valscaled=[0,0,0] def convert(x, in_min, in_max, out_min, out_max): return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min f=open("cal.csv",'w') for count in range(3000): valread = sensor.read() ...
27.36
75
0.631579
117
684
3.606838
0.376068
0.028436
0.021327
0.07109
0
0
0
0
0
0
0
0.066901
0.169591
684
24
76
28.5
0.676056
0.358187
0
0
0
0
0.050808
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0.076923
0.230769
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbfba00ada95ca4b323dab1489addc7b7c3e9bf4
13,774
py
Python
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
1
2021-09-30T01:18:51.000Z
2021-09-30T01:18:51.000Z
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
null
null
null
pyriemann/utils/mean.py
qbarthelemy/pyRiemann
b35873b0a6cf9d81a1db09bbedb72a2fefe7d0c3
[ "BSD-3-Clause" ]
null
null
null
"""Mean covariance estimation.""" from copy import deepcopy import numpy as np from .base import sqrtm, invsqrtm, logm, expm from .ajd import ajd_pham from .distance import distance_riemann from .geodesic import geodesic_riemann def _get_sample_weight(sample_weight, data): """Get the sample weights. If none...
32.795238
116
0.635908
1,934
13,774
4.405895
0.153568
0.097172
0.035911
0.048586
0.546884
0.501936
0.497359
0.47248
0.459688
0.441028
0
0.018517
0.251125
13,774
419
117
32.873508
0.807562
0.449107
0
0.380952
0
0
0.036361
0
0
0
0
0
0
1
0.068783
false
0
0.031746
0
0.174603
0.010582
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbfebfa3a6e07ffb390ccc9c51bbfd1c5eb387b7
2,531
py
Python
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
null
null
null
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
4
2019-08-25T13:16:03.000Z
2021-01-07T23:20:24.000Z
img-xlsx.py
jherskovic/img-xlsx
ba301b43c8a3df2282622e70904fcb2d55bad2a3
[ "CNRI-Python" ]
null
null
null
from PIL import Image from openpyxl import Workbook from openpyxl.styles import PatternFill from openpyxl.utils import get_column_letter from functools import partial import sys import argparse def rgb_to_xls_hex(rgb_tuple, image_mode='RGB'): if image_mode == 'RGB': r, g, b = rgb_tuple elif ...
33.746667
111
0.600948
342
2,531
4.315789
0.391813
0.030488
0.04607
0.014905
0.054201
0.039295
0
0
0
0
0
0.016219
0.29356
2,531
74
112
34.202703
0.809284
0.027657
0
0
0
0
0.21057
0.008809
0
0
0
0
0
1
0.054545
false
0
0.127273
0
0.218182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
bbff69aa5097c6b5253948d0d9595188ebebf3c2
7,502
py
Python
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
tests/test_multithread_access.py
TimChild/dat_analysis
2902e5cb2f2823a1c7a26faf6b3b6dfeb7633c73
[ "MIT" ]
null
null
null
from unittest import TestCase from dat_analysis.dat_object.dat_hdf import DatHDF from dat_analysis.hdf_file_handler import HDFFileHandler from dat_analysis.dat_object.make_dat import get_dat, get_dats, DatHandler from tests.helpers import get_testing_Exp2HDF from dat_analysis.data_standardize.exp_specific.Feb21 import ...
40.551351
132
0.681818
1,070
7,502
4.579439
0.147664
0.04
0.022857
0.034286
0.696122
0.682041
0.670204
0.644898
0.617551
0.590408
0
0.019504
0.220874
7,502
184
133
40.771739
0.81882
0.119835
0
0.380165
0
0
0.017447
0.007958
0
0
0
0
0.099174
1
0.115702
false
0
0.107438
0
0.256198
0.024793
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51f8b0d486e0ae6fcf2e60b6ae5a88312c39cab
2,721
py
Python
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
early_projects/theater.py
JSBCCA/pythoncode
b7f2af8b0efc2d01d3e4568265eb3a5038a8679f
[ "MIT" ]
null
null
null
import myshop def movie(name): two = round((9.99 * 1.07), 2) print("Here is your Ticket and movie receipt.\n[Ticket for", name, " - $" + str(two) + "]\nEnjoy the film!") def concession(): print(" Refreshments:\n" "Popcorn - $5.05\n" "Coke - $2.19\n" "Cookies -...
32.011765
79
0.484748
317
2,721
4.160883
0.29653
0.068234
0.106141
0.063685
0.531463
0.52464
0.52464
0.52464
0.52464
0.52464
0
0.019733
0.366777
2,721
84
80
32.392857
0.745792
0
0
0.473684
0
0
0.346196
0
0
0
0
0
0
1
0.039474
false
0
0.013158
0
0.052632
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51f8b0f6e2a6c5f1924803b2a7a2c961da769d4
43,469
py
Python
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
1
2021-04-02T14:36:12.000Z
2021-04-02T14:36:12.000Z
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
3
2018-02-23T19:47:31.000Z
2019-07-15T16:58:54.000Z
TSScall-master/TSScall.py
AdelmanLab/GetGeneAnnotation_GGA
ae8c8328640892a4e50408ba566dd95e70f18d52
[ "MIT" ]
1
2017-01-06T20:16:07.000Z
2017-01-06T20:16:07.000Z
#!/usr/bin/env python # CREATED BY CHRISTOPHER LAVENDER # BASED ON WORK BY ADAM BURKHOLDER # INTEGRATIVE BIOINFORMATICS, NIEHS # WORKING OBJECT ORIENTED VERSION import os import math import argparse import sys from operator import itemgetter def writeBedHeader(file_name, description, OUTPUT): OUTPUT.write('trac...
43.996964
80
0.494835
4,169
43,469
4.952746
0.08875
0.021358
0.028235
0.018016
0.358388
0.281528
0.235858
0.210577
0.176095
0.153816
0
0.010035
0.403966
43,469
987
81
44.04154
0.786908
0.053141
0
0.277251
0
0
0.096538
0.004185
0
0
0
0
0.004739
1
0.03673
false
0.00237
0.005924
0
0.072275
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a51fd6b2b0c4c430c0e920bd959a2e1d06f3221b
234
py
Python
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
1
2018-11-25T19:30:22.000Z
2018-11-25T19:30:22.000Z
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
null
null
null
grayToBinary.py
gaurav3dua/OpenCV
d816158c40c35b897ce9873c176ce72735220069
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('lena.jpg', cv2.IMREAD_GRAYSCALE) thresh = 127 im_bw = cv2.threshold(img, thresh, 255, cv2.THRESH_BINARY)[1] cv2.imshow('image', im_bw) cv2.waitKey(0) cv2.destroyAllWindows()
21.272727
62
0.713675
37
234
4.405405
0.621622
0.110429
0.08589
0
0
0
0
0
0
0
0
0.080402
0.149573
234
11
63
21.272727
0.738693
0
0
0
0
0
0.057778
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a52068720298fd51fbb513a22dc8a2e7f0bdd3f1
652
py
Python
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
6
2016-03-06T05:51:06.000Z
2017-01-10T05:49:03.000Z
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
null
null
null
006-argparse.py
KitchenTableCoders/cli-video
35cacc059f6ac86c7bf6b1f86f42ea178e16165c
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Introduces the "argparse" module, which is used to parse more complex argument strings eg: ./006-argparse.py --name Jeff mauve """ import argparse # http://docs.python.org/2/library/argparse.html#module-argparse import subprocess def main(): parser = argparse.ArgumentParser(description='...
28.347826
99
0.707055
95
652
4.736842
0.621053
0.04
0.075556
0
0
0
0
0
0
0
0
0.012259
0.124233
652
23
100
28.347826
0.775832
0.369632
0
0
0
0
0.159601
0
0
0
0
0
0
1
0.090909
false
0
0.181818
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
a5209d004c35406d08483e6a8a94534fc1c1b17b
4,573
py
Python
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
1
2021-04-21T02:55:11.000Z
2021-04-21T02:55:11.000Z
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
27
2020-12-07T23:11:42.000Z
2022-02-02T23:59:03.000Z
solid_attenuator/ioc_lfe_at2l0_calc/at2l0.py
ZLLentz/solid-attenuator
766ac1df169b3b9459222d979c9ef77a9be2b509
[ "BSD-3-Clause-LBNL" ]
2
2020-04-01T05:52:03.000Z
2020-07-24T16:56:36.000Z
""" This is the IOC source code for the unique AT2L0, with its 18 in-out filters. """ from typing import List from caproto.server import SubGroup, expand_macros from caproto.server.autosave import RotatingFileManager from .. import calculator, util from ..filters import InOutFilterGroup from ..ioc import IOCBase from...
36.293651
79
0.650776
523
4,573
5.510516
0.340344
0.022901
0.022554
0.038168
0.061069
0.028452
0.028452
0.028452
0
0
0
0.00329
0.26897
4,573
125
80
36.584
0.858809
0.144107
0
0.023256
0
0
0.093402
0.014489
0
0
0
0
0
1
0.034884
false
0
0.093023
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a52cc5e0156fbef790ecdf07862d92b75464ebf8
399
py
Python
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
classifier/nets/build.py
yidarvin/firstaid_classification
5cb1ec5a896766ec4670e0daca23014a879e6c14
[ "MIT" ]
null
null
null
import torch from os.path import join from fvcore.common.registry import Registry ARCHITECTURE_REGISTRY = Registry("ARCHITECTURE") def build_model(cfg): arch = cfg.MODEL.ARCHITECTURE model = ARCHITECTURE_REGISTRY.get(arch)(cfg) if cfg.SAVE.MODELPATH and cfg.MODEL.LOADPREV: model.load_state_dict(...
26.6
91
0.749373
55
399
5.327273
0.509091
0.136519
0.109215
0
0
0
0
0
0
0
0
0
0.14787
399
14
92
28.5
0.861765
0
0
0
0
0
0.052764
0
0
0
0
0
0
1
0.1
false
0
0.3
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5320d08df77982d660989950f89ae694eb0d00c
2,870
py
Python
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
1
2018-07-31T08:29:11.000Z
2018-07-31T08:29:11.000Z
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
null
null
null
C45Tree/apply.py
ManuelFreytag/Algorithm_implementation
380453c2bd4a66e8d604ecdf91c68cb1e14f6bb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 30 16:08:04 2016 @author: Manuel """ from C45Tree_own import split import pandas as pa def apply(X, tree): results = [] for x in range(0,len(X.index)): temp_tree = tree.copy() example = X.loc[x,:] while(True == True): ...
32.247191
81
0.501394
337
2,870
4.163205
0.341246
0.119743
0.051319
0.053457
0.295082
0.252316
0.212402
0.212402
0.112616
0.066999
0
0.028879
0.384669
2,870
89
82
32.247191
0.765572
0.206272
0
0.3
0
0
0.0062
0
0
0
0
0
0
1
0.08
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5379fd45bcc411d7e294e71572901a73fd67651
8,204
py
Python
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
26
2021-11-30T02:48:16.000Z
2022-03-26T04:47:25.000Z
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
143
2021-11-04T07:47:53.000Z
2022-03-31T23:13:33.000Z
cogs/original_command.py
RT-Team/rt-bot
39698efb6b2465de1e84063cba9d207a5bf07fa5
[ "BSD-4-Clause" ]
14
2021-11-12T15:32:27.000Z
2022-03-28T04:04:44.000Z
# RT - Original Command from __future__ import annotations from discord.ext import commands import discord from aiomysql import Pool, Cursor from rtutil import DatabaseManager class DataManager(DatabaseManager): TABLE = "OriginalCommand" def __init__(self, pool: Pool): self.pool = pool asyn...
30.385185
104
0.50902
845
8,204
4.868639
0.253254
0.027224
0.027224
0.02771
0.187895
0.14876
0.118619
0.118619
0.092368
0.071463
0
0.004238
0.36726
8,204
269
105
30.498141
0.788287
0.004998
0
0.217105
0
0.006579
0.137455
0.013318
0
0
0
0
0
1
0.019737
false
0
0.032895
0
0.105263
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53a2c90ed2f68c611f75caaa74a581e8ab0f1b5
12,626
py
Python
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
2
2020-02-13T12:30:47.000Z
2020-03-21T16:32:47.000Z
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
2
2021-04-06T18:27:57.000Z
2021-06-02T03:51:47.000Z
cli_stats/get_data/api_scraper/api_scraper.py
timoudas/premier_league_api
2b850466ed1c910ee901c68e660706d55f53df61
[ "MIT" ]
null
null
null
import re import requests import sys sys.path.append('cli_stats') from directory import Directory from pprint import pprint from storage_config import StorageConfig from tqdm import tqdm session = requests.Session() #TODO """ *Program is not scaling well """ """***HOW TO USE*** 1. Create an instance of Foot...
34.497268
165
0.606368
1,591
12,626
4.65682
0.191075
0.021595
0.014847
0.020516
0.358618
0.312728
0.262384
0.213254
0.202996
0.192874
0
0.014757
0.275463
12,626
365
166
34.591781
0.795146
0.187946
0
0.287805
0
0.009756
0.173826
0.007548
0
0
0
0.00274
0
1
0.146341
false
0.009756
0.053659
0.014634
0.380488
0.04878
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53bcdd38f44a14806e05907ccae272513b9cf1c
1,787
py
Python
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
archive/least_squares_BCES.py
Alexander-Serov/abortive-initiation-analysis
2a036a5186459b79e7cdbd84aa8a7b130226b5e1
[ "MIT" ]
null
null
null
import numpy as np def least_squares_BCES(Y1, Y2, V11, V22, V12=0, origin=False): """ Make a least-squares fit for non-NaN values taking into account the errors in both rho and J variables. This implementation is based on Akritas1996 article. It is a generalization of the least-squares method. The variance o...
33.716981
323
0.613318
280
1,787
3.853571
0.45
0.018536
0.019462
0.027804
0.079703
0.037071
0
0
0
0
0
0.050267
0.265249
1,787
52
324
34.365385
0.771516
0.533856
0
0
0
0
0
0
0
0
0
0
0
1
0.047619
false
0
0.047619
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53c77391ca18888fe3d4f6374d65264bcebc717
7,696
py
Python
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
null
null
null
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
4
2020-10-28T19:27:47.000Z
2020-11-04T00:12:25.000Z
tests/test_face.py
andfranklin/ErnosCube
a9dd7feda4bc0e9162cd884cd450f47c6b19c350
[ "MIT" ]
null
null
null
from ErnosCube.face_enum import FaceEnum from ErnosCube.orient_enum import OrientEnum from ErnosCube.sticker import Sticker from ErnosCube.face import Face from ErnosCube.face import RowFaceSlice, ColFaceSlice from plane_rotatable_tests import PlaneRotatableTests from hypothesis import given from strategies import sti...
37
79
0.652677
1,069
7,696
4.492049
0.104771
0.099958
0.059975
0.028113
0.698875
0.664515
0.575385
0.552478
0.545606
0.534361
0
0.045394
0.224272
7,696
207
80
37.178744
0.757454
0.007666
0
0.474684
0
0.031646
0.082558
0.045866
0
0
0
0
0.075949
1
0.082278
false
0
0.075949
0
0.196203
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53cb8a72414679c109b52c99f7c00abcac934ad
19,752
py
Python
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
4
2015-01-05T21:04:20.000Z
2015-09-16T12:56:47.000Z
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
15
2015-01-14T10:08:01.000Z
2021-06-02T07:09:49.000Z
tests/test_djangoes.py
Exirel/djangoes
7fee0ec0383077fc8ac5da8515c51a0b304f84be
[ "CC0-1.0" ]
2
2015-02-17T11:11:31.000Z
2016-05-06T07:11:24.000Z
from unittest.case import TestCase from django.core.exceptions import ImproperlyConfigured from django.test.utils import override_settings from djangoes import (ConnectionHandler, IndexDoesNotExist, ConnectionDoesNotExist, load_backend) from djangoes.b...
31.552716
90
0.571132
1,882
19,752
5.837407
0.138682
0.017841
0.062079
0.062261
0.517659
0.466685
0.408611
0.352631
0.275715
0.244038
0
0.002731
0.314145
19,752
625
91
31.6032
0.808223
0.201094
0
0.489744
0
0
0.153583
0.038347
0
0
0
0
0.187179
1
0.071795
false
0
0.017949
0
0.094872
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53ce607d2484b47e38e0b6a97b11b56e4d3bb58
8,497
py
Python
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
23
2015-01-14T21:32:11.000Z
2021-07-19T12:59:10.000Z
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
1
2017-06-30T10:54:57.000Z
2017-06-30T10:54:57.000Z
bin/yap_conflict_check.py
Novartis/yap
8399e87e6083e6394d1f9340e308a01751465a03
[ "Apache-2.0" ]
9
2015-09-02T17:44:24.000Z
2021-07-05T18:59:16.000Z
#!/usr/bin/env python """ Copyright 2014 Novartis Institutes for Biomedical Research 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 ...
37.933036
79
0.578086
1,032
8,497
4.638566
0.224806
0.012534
0.023397
0.016712
0.117401
0.064759
0.044287
0.019219
0.019219
0.019219
0
0.004566
0.355655
8,497
223
80
38.103139
0.869772
0.393904
0
0.185841
0
0
0.003449
0
0
0
0
0
0
1
0.097345
false
0
0.00885
0
0.283186
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a53d6a324052f390797cf713195803de6c9fa43f
1,148
py
Python
PS4/ps4a.py
PanPapag/MIT-OCW-Introduction-to-Computer-Science-and-Programming-in-Python-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
3
2019-05-20T19:37:49.000Z
2020-05-16T08:57:04.000Z
PS4/ps4a.py
PanPapag/MIT-OCW-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
null
null
null
PS4/ps4a.py
PanPapag/MIT-OCW-6.0001
f9aeb55c1473920a7d283bfc09726bdef5614331
[ "MIT" ]
null
null
null
def get_permutations(sequence): ''' Enumerate all permutations of a given string sequence (string): an arbitrary string to permute. Assume that it is a non-empty string. You MUST use recursion for this part. Non-recursive solutions will not be accepted. Returns: a list of all pe...
30.210526
79
0.595819
143
1,148
4.678322
0.531469
0.089686
0.068759
0.035874
0.053812
0.053812
0
0
0
0
0
0.006075
0.283101
1,148
37
80
31.027027
0.806804
0.408537
0
0
0
0
0.110922
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.125
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
a541ad6227bc2976b930cd5ee28105b474b1a9e3
1,350
py
Python
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
flash_test/utils/log.py
nikolas-hermanns/flash-test
dda642e96f76113b42a7d64415eb3d8cdc03fca5
[ "Apache-2.0" ]
null
null
null
''' Created on Jan 16, 2016 @author: enikher ''' import logging import datetime LOG = logging.getLogger(__name__) LOG_LEVEL = logging.DEBUG LOG_PATH = "./dlService.log" logging.basicConfig(format='%(asctime)s %(levelname)s: %(message)s', filename=LOG_PATH, datefmt='%Y-%m-%dT:%H...
31.395349
71
0.545926
144
1,350
4.881944
0.388889
0.042674
0.048364
0.051209
0.122333
0.073969
0
0
0
0
0
0.006342
0.299259
1,350
42
72
32.142857
0.736786
0.03037
0
0.121212
0
0
0.216756
0
0
0
0
0
0
1
0.060606
false
0
0.060606
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a546651f1dcad01340583064244d142fb1215fd5
1,061
py
Python
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
null
null
null
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
null
null
null
EasyPortfolioExplorer/app/utils/resource_loader.py
jblemoine/EasyPortfolioExplorer
88484a1acb8f41f7497129ffefc89608af2d34d5
[ "MIT" ]
1
2018-05-07T23:44:40.000Z
2018-05-07T23:44:40.000Z
from EasyPortfolioExplorer.app.easy.base import EasyBase class ResourceLoader(EasyBase): """ Class for adding external resources such as css and js file. The current version is based on boostrap 3.3.7. """ def __init__(self, **kwargs): super(ResourceLoader, self).__init__(**kw...
33.15625
122
0.600377
128
1,061
4.8125
0.4375
0.00974
0.01461
0.084416
0.123377
0.123377
0.123377
0.123377
0
0
0
0.023256
0.2705
1,061
32
123
33.15625
0.77261
0.101791
0
0
0
0.1
0.365854
0.06541
0
0
0
0
0
1
0.1
false
0
0.05
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5488a57c13d79bfc459f46fd458c1c896f8b4d3
1,268
py
Python
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
263
2020-10-05T18:47:29.000Z
2022-03-31T19:44:46.000Z
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
1,264
2020-10-05T18:13:05.000Z
2022-03-31T23:16:35.000Z
Python/1289.MatrixSpiral.py
nizD/LeetCode-Solutions
7f4ca37bab795e0d6f9bfd9148a8fe3b62aa5349
[ "MIT" ]
760
2020-10-05T18:22:51.000Z
2022-03-29T06:06:20.000Z
"""This program takes a matrix of size mxn as input, and prints the matrix in a spiral format for example: input ->> [[1,2,3], [4,5,6], [7,8,9], [10,11,12]] output ->> 1 2 3 6 9 12 11 10 7 4 5 8""" class Solution: def matrix_spir...
37.294118
93
0.502366
168
1,268
3.619048
0.291667
0.126645
0.039474
0.072368
0.184211
0.101974
0.101974
0.101974
0
0
0
0.057692
0.384858
1,268
33
94
38.424242
0.721795
0.238959
0
0
0
0
0.004274
0
0
0
0
0
0
1
0.047619
false
0
0
0
0.095238
0.190476
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a54a675c308dee0b53b78a00aef279613875fd2d
4,694
py
Python
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
2
2022-03-02T06:54:28.000Z
2022-03-02T06:56:45.000Z
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
null
null
null
lib/sde.py
NCIA-Diffusion/ScoreSDE
b5a562908daf66e6dcf0b791beb83f1fcb61174b
[ "MIT" ]
2
2022-02-23T11:49:15.000Z
2022-03-02T06:56:46.000Z
import abc import numpy as np import torch import torch.nn as nn class AbstractSDE(abc.ABC): def __init__(self): super().__init__() self.N = 1000 @property @abc.abstractmethod def T(self): """End time of the SDE.""" raise NotImplementedError @abc.abstractmethod ...
31.503356
85
0.532169
621
4,694
3.782609
0.196457
0.061303
0.014049
0.087271
0.346105
0.219242
0.186462
0.137931
0.137931
0.137931
0
0.031767
0.356199
4,694
148
86
31.716216
0.745533
0.241585
0
0.420455
0
0
0.005242
0
0
0
0
0
0
1
0.181818
false
0.011364
0.045455
0.011364
0.352273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a54b68b3a18c130ef71abef51b17c638d75ff918
1,166
py
Python
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
1
2019-11-02T20:23:03.000Z
2019-11-02T20:23:03.000Z
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
null
null
null
diagrams/seq-tables.py
PerFuchs/master-thesis
85386c266fecf72348114bcbafeeb896a9e74601
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt from diagrams.base import * DATASET = DATASET_FOLDER + "ama0302.csv" def tabulize_data(data_path, output_path): data = pd.read_csv(data_path) fix_count(data) fix_neg(data, "copy") data["total_time"] = data["End"] - data["Start"] grouped = data.groupby(...
32.388889
117
0.596913
138
1,166
4.876812
0.5
0.077266
0.084695
0.111441
0.190193
0
0
0
0
0
0
0.025814
0.235849
1,166
35
118
33.314286
0.729517
0
0
0
0
0
0.250429
0.077187
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a54b6dc0f255b7a92415a48a23ac09a9d0e01321
1,513
py
Python
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
instance-segmentation/detectron_train_PointRend.py
diwgan32/IKEA_ASM_Dataset
8f41c15c4a7fb47f53235d2292d0eff8136ae492
[ "MIT" ]
null
null
null
# Run training with PointRend head # uses default configuration from detectron2 # The model is initialized via pre-trained coco models from detectron2 model zoo # # Fatemeh Saleh <fatemehsadat.saleh@anu.edu.au> import os from detectron2.config import get_cfg from detectron2.data.datasets import register_coco_instances...
36.902439
134
0.769993
216
1,513
5.125
0.532407
0.075881
0.03794
0.061427
0.081301
0.081301
0.081301
0.081301
0
0
0
0.041953
0.13351
1,513
40
135
37.825
0.802441
0.155321
0
0
0
0
0.237795
0.188976
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a54c3694831528b032a63a41c9cef6f955e863a0
11,775
py
Python
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
dataviva/attrs/views.py
dogobox/datavivamaster
c89596778e2d8d01a2193b02ca5960bd17f4468d
[ "MIT" ]
null
null
null
import urllib2 from sqlalchemy import func, distinct, asc, desc, and_, or_ from flask import Blueprint, request, jsonify, abort, g, render_template, make_response, redirect, url_for, flash from dataviva import db, __latest_year__ from dataviva.attrs.models import Bra, Wld, Hs, Isic, Cbo, Yb from dataviva.secex.models...
34.429825
148
0.545563
1,557
11,775
3.924213
0.140655
0.03928
0.025532
0.021604
0.307529
0.249918
0.211948
0.174632
0.162848
0.151391
0
0.008622
0.290786
11,775
341
149
34.530792
0.723027
0.046369
0
0.206107
0
0
0.093925
0.00649
0
0
0
0
0
1
0.019084
false
0
0.045802
0.003817
0.087786
0.01145
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a54cde621c4d8d9c2e11ad32222e88ab799ae414
701
py
Python
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
leetcode/easy/sort-array-by-parity.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
""" Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may return any answer array that satisfies this condition. Example 1: Input: [3,1,2,4] Output: [2,4,3,1] The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be a...
20.028571
100
0.617689
117
701
3.700855
0.504274
0.018476
0.020785
0.027714
0.101617
0.101617
0
0
0
0
0
0.070209
0.248217
701
34
101
20.617647
0.751423
0.584879
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a5504cacd4d378cc9aecf50aa2070a23b003b4f8
3,878
py
Python
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
6
2019-03-14T02:39:17.000Z
2021-10-31T11:43:58.000Z
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
null
null
null
app/service/messages/dispatcher.py
ryan4yin/flypy-backend
7fcc2971ac27d3b44e352dfed73acd12e1913d65
[ "MIT" ]
2
2020-02-04T07:44:37.000Z
2021-04-02T23:02:20.000Z
# -*- coding: utf-8 -*- import copy import logging from operator import attrgetter from typing import Dict from app.service.messages.handler import Handler logger = logging.getLogger(__name__) class Dispatcher(object): """ 消息分派器,暂时忽略 Notice platform: 平台,目前只有 qq,未来可能会添加 telegtram、wechat group_id: 群...
34.318584
90
0.566787
426
3,878
5.049296
0.319249
0.055323
0.065086
0.04649
0.143189
0.130637
0.087401
0.087401
0.04556
0
0
0.001118
0.308149
3,878
112
91
34.625
0.800596
0.160392
0
0.093333
0
0
0.106322
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a551e5731106adef0abaef205055eb2d9ca12152
15,493
py
Python
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
2
2021-11-20T14:16:56.000Z
2021-12-15T10:33:01.000Z
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
null
null
null
bfs/bfs.py
NordFk/bfs-soap-api-wrapper
f149e33db9a19f325e3ae335bb6682e15b667e6a
[ "Apache-2.0" ]
2
2021-11-20T16:49:38.000Z
2021-11-20T21:26:16.000Z
from collections import OrderedDict from zeep import Client from zeep import xsd import zeep.helpers import zeep.exceptions import logging.config import re from .constants import methods class Bfs: client = None factory = None credentials = None identifier = None methods = methods def __init...
40.033592
128
0.606274
1,738
15,493
5.26122
0.147296
0.024606
0.026028
0.033683
0.509843
0.46752
0.442039
0.411089
0.390639
0.374125
0
0.002886
0.30659
15,493
386
129
40.137306
0.848273
0.247983
0
0.315789
0
0.004386
0.107186
0.027601
0
0
0
0
0
1
0.078947
false
0.004386
0.035088
0
0.241228
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a554983edfe142d8b785a94b5027ce1bfbe95b20
1,370
py
Python
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
booking_microservice/migrations/versions/7eb209b7ab1e_booking_status.py
7552-2020C2-grupo5/bookings-microservice
92fd3c8c5e4c8462aa0e7f00e50f3c60680ab161
[ "Apache-2.0" ]
null
null
null
"""booking_status Revision ID: 7eb209b7ab1e Revises: 0a95c6679356 Create Date: 2021-02-22 01:19:10.744915 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql from booking_microservice.constants import BookingStatus # revision identifiers, used by Alembic. revision = '7eb209...
24.909091
67
0.642336
148
1,370
5.77027
0.459459
0.076112
0.04918
0.053864
0.236534
0.236534
0.236534
0.138173
0.138173
0.138173
0
0.050633
0.250365
1,370
54
68
25.37037
0.780915
0.216058
0
0.121212
0
0
0.100289
0
0
0
0
0
0
1
0.060606
false
0
0.121212
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a555224273d739957311d97daec8970ec07b9037
669
py
Python
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
cookbookex/c01/3.2.3.py
fengchunhui/cookbookex
0c97ed92b7963ed6cef9140f3dbd5a559c1d1c79
[ "Apache-2.0" ]
null
null
null
records = [('foo', 1, 2), ('bar', 'hello'), ('foo', 3, 4)] def do_foo(x, y): print('foo', x, y) def do_bar(s): print('bar', s) for tag, *args in records: if tag == 'foo': do_foo(*args) elif tag == 'bar': do_bar(*args)#该例子没看懂 line = 'nobody:*:-2:-2:Unprivileged User:/var/empty:/user/b...
19.114286
68
0.578475
108
669
3.527778
0.509259
0.026247
0.026247
0
0
0
0
0
0
0
0
0.052632
0.204783
669
34
69
19.676471
0.663534
0.013453
0
0
0
0
0.136986
0.08828
0
0
0
0
0
1
0.12
false
0
0
0
0.16
0.36
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a555c2aabfb2fed9428a296a73e22048b9b84d87
14,288
py
Python
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
137
2018-03-05T11:53:29.000Z
2019-11-03T16:38:42.000Z
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
385
2018-03-08T12:43:41.000Z
2019-11-10T09:15:36.000Z
rotkehlchen/exchanges/iconomi.py
rotkehlchenio/rotkehlchen
98f49cd3ed26c641fec03b78eff9fe1872385fbf
[ "BSD-3-Clause" ]
59
2018-03-08T10:08:27.000Z
2019-10-26T11:30:44.000Z
import base64 import hashlib import hmac import json import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple from urllib.parse import urlencode import requests from rotkehlchen.accounting.ledger_actions import LedgerAction from ro...
35.542289
95
0.568309
1,458
14,288
5.384088
0.203704
0.032484
0.021656
0.02293
0.277325
0.264586
0.215287
0.188535
0.162293
0.162293
0
0.003114
0.348194
14,288
401
96
35.630923
0.839794
0.06033
0
0.269113
0
0
0.130914
0
0
0
0
0
0.003058
1
0.036697
false
0.006116
0.082569
0.009174
0.16208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a555e99a46c6efc7e9dda4b03dbc6e9937a3b54b
620
py
Python
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
pytorch-extension/pytorch_extension_official/cpp/perform_test.py
xdr940/utils
c4b7b1479956475a7feee90a723541904ec82306
[ "MIT" ]
null
null
null
import time from lltm.lltm import LLTM import torch batch_size = 16 input_features = 32 state_size = 128 X = torch.randn(batch_size, input_features) h = torch.randn(batch_size, state_size) C = torch.randn(batch_size, state_size) rnn = LLTM(input_features, state_size)#net init forward = 0 backward = 0 for _ in range...
23.846154
94
0.675806
98
620
4.112245
0.367347
0.08933
0.111663
0.141439
0.223325
0.138958
0
0
0
0
0
0.045098
0.177419
620
26
94
23.846154
0.745098
0.012903
0
0.1
0
0
0.063725
0
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a55636a8a913811f2be1912dad1aedac22c6a849
1,980
py
Python
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
72
2016-09-12T03:01:02.000Z
2022-03-05T16:54:45.000Z
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
127
2016-09-14T02:07:33.000Z
2022-03-19T13:17:32.000Z
helper/create_functions_table.py
Abhisheknishant/iteration_utilities
b2bf8d8668ed54d1aadf8c31884fc8a7d28551cc
[ "Apache-2.0" ]
11
2017-02-22T20:40:37.000Z
2022-03-05T16:55:40.000Z
# Licensed under Apache License Version 2.0 - see LICENSE """This is a helper that prints the content of the function overview tables . - docs/index.rst - README.rst Both contain a table of functions defined in iteration_utilities and manually updating them is a pain. Therefore this file can be executed and the conte...
32.459016
77
0.685354
285
1,980
4.642105
0.498246
0.042328
0.043084
0.052154
0.082389
0.06198
0.06198
0.06198
0
0
0
0.005799
0.216162
1,980
60
78
33
0.846649
0.475253
0
0.083333
0
0
0.151335
0.065282
0
0
0
0
0
1
0.041667
false
0
0.208333
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
a557d896bbb7713624a8d9ae1db240388f2eb7f7
1,785
py
Python
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
MyWriter/testdragdrop.py
haha517/mywriter
8ddd5ce3b2f31491480dee9beb7367c8d6182282
[ "MIT" ]
null
null
null
import sys import os from PyQt4 import QtGui, QtCore class TestListView(QtGui.QListWidget): def __init__(self, type, parent=None): super(TestListView, self).__init__(parent) self.setAcceptDrops(True) self.setIconSize(QtCore.QSize(72, 72)) def dragEnterEvent(self, event): if eve...
28.790323
78
0.576471
188
1,785
5.340426
0.37766
0.051793
0.032869
0.047809
0.233068
0.233068
0.191235
0.155378
0.155378
0.155378
0
0.007276
0.307003
1,785
61
79
29.262295
0.804365
0
0
0.269231
0
0
0.012325
0
0
0
0
0
0
1
0.134615
false
0
0.057692
0
0.230769
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