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
2433c7c9ac2e786c1d378e6c6fc342567cb2343a
351
py
Python
445-with-phases/phase3/watcher/urls.py
ysyesilyurt/Metu-CENG
a83fcab00f68e28bda307bb94c060f55042a1389
[ "MIT" ]
33
2019-03-19T07:51:17.000Z
2022-03-15T11:04:35.000Z
445-with-phases/phase3/watcher/urls.py
ysyesilyurt/Metu-CENG
a83fcab00f68e28bda307bb94c060f55042a1389
[ "MIT" ]
1
2019-11-09T18:08:21.000Z
2019-11-09T18:08:21.000Z
445-with-phases/phase3/watcher/urls.py
ysyesilyurt/Metu-CENG
a83fcab00f68e28bda307bb94c060f55042a1389
[ "MIT" ]
13
2019-11-08T06:18:21.000Z
2022-01-07T17:17:38.000Z
from django.urls import path, re_path import multiprocessing import sys from . import views urlpatterns = [ path("", views.index, name='index'), path("create/", views.index, {"create": True}, name="create"), re_path(r"^logs/(?P<wid>[0-9]+)$", views.logs, name='logs'), re_path(r"^rules/(?P<wid>[0-9]+)$"...
29.25
66
0.635328
52
351
4.230769
0.403846
0.081818
0.063636
0.054545
0.1
0
0
0
0
0
0
0.013201
0.136752
351
11
67
31.909091
0.712871
0
0
0
0
0
0.222222
0.128205
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2434d249e12d70943c3d01c03f5b85d253a6fbdb
344
py
Python
json_endpoint/middleware.py
nickloman/entrezajax
d487a2ccf02e9e5bce5d4cba95d7a73edf43b329
[ "Apache-2.0" ]
4
2015-06-21T01:49:39.000Z
2022-01-19T19:51:00.000Z
json_endpoint/middleware.py
nickloman/entrezajax
d487a2ccf02e9e5bce5d4cba95d7a73edf43b329
[ "Apache-2.0" ]
1
2015-08-28T06:54:45.000Z
2016-03-03T17:21:48.000Z
json_endpoint/middleware.py
nickloman/entrezajax
d487a2ccf02e9e5bce5d4cba95d7a73edf43b329
[ "Apache-2.0" ]
2
2016-10-25T14:28:08.000Z
2020-07-10T01:46:29.000Z
from views import dump_result from django.http import HttpResponse class ErrorHandlingMiddleware(object): def process_exception(self, request, exception): response = HttpResponse(mimetype="application/json") error = {'error' : True, 'error_message' : str(exception)} dump_result(request, response, [], error) ...
26.461538
60
0.752907
38
344
6.710526
0.657895
0.078431
0
0
0
0
0
0
0
0
0
0
0.145349
344
13
61
26.461538
0.867347
0
0
0
0
0
0.098551
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
24373e60d1c6cfd7a90fe027f9d7f55cebc34e56
4,552
py
Python
cfg/generate_nerian_config_cpp.py
RaminYT/nerian_stereo
39c03650695b462516d47594ba8f9e3d808eac15
[ "MIT" ]
null
null
null
cfg/generate_nerian_config_cpp.py
RaminYT/nerian_stereo
39c03650695b462516d47594ba8f9e3d808eac15
[ "MIT" ]
null
null
null
cfg/generate_nerian_config_cpp.py
RaminYT/nerian_stereo
39c03650695b462516d47594ba8f9e3d808eac15
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019 Nerian Vision GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, m...
41.381818
132
0.712214
573
4,552
5.544503
0.382199
0.022663
0.045326
0.056657
0.144791
0.127164
0.100409
0.100409
0.100409
0.100409
0
0.004999
0.164982
4,552
109
133
41.761468
0.830834
0.220562
0
0.134328
0
0.014925
0.712496
0.261884
0
0
0
0
0
1
0
false
0
0.014925
0
0.014925
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
243dfce68d8d96b57a4debd0c241a4c97b4273fc
18,562
py
Python
LeapTrello.py
reaktor/trellol
13220a4a67d78ec04f96bdea9fbb0bd9e9541d67
[ "MIT" ]
1
2016-06-22T10:33:51.000Z
2016-06-22T10:33:51.000Z
LeapTrello.py
reaktor/trellol
13220a4a67d78ec04f96bdea9fbb0bd9e9541d67
[ "MIT" ]
null
null
null
LeapTrello.py
reaktor/trellol
13220a4a67d78ec04f96bdea9fbb0bd9e9541d67
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ Leap Motion + Trello A plain Trello view with Leap Motion UI. """ import Leap, sys, os, math, time import ConfigParser, argparse from collections import deque from PyQt...
34.437848
119
0.609094
1,977
18,562
5.639353
0.191199
0.033187
0.021527
0.01453
0.242802
0.185129
0.14674
0.088259
0.062786
0.055431
0
0.003095
0.26899
18,562
538
120
34.501859
0.818557
0.059315
0
0.268734
0
0
0.051656
0.001209
0
0
0
0.001859
0
0
null
null
0
0.02584
null
null
0.005168
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
2443bc2de907a14da3ae31b312cee64e8728b751
2,821
py
Python
signing/bin/sign_image.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
signing/bin/sign_image.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
signing/bin/sign_image.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Chrome OS Image file signing.""" from __future__ import print_function import collections from chromite.lib import commandli...
38.121622
80
0.700815
370
2,821
5.194595
0.421622
0.046826
0.03538
0.021852
0.105099
0.0718
0.0718
0.0718
0.0718
0.0718
0
0.005594
0.176179
2,821
73
81
38.643836
0.821429
0.33357
0
0
0
0
0.239892
0
0
0
0
0.013699
0
1
0.02439
false
0
0.121951
0
0.219512
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
1
0
0
0
0
0
0
0
0
0
0
1
244f65c4acce4ecfa1f271d50891f6d421d26621
1,394
py
Python
crispy/modules/download.py
hanshoffman/crispy-fortnight
6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7
[ "MIT" ]
6
2016-03-12T01:16:55.000Z
2016-08-08T04:35:54.000Z
crispy/modules/download.py
hansjhoffman/crispy-fortnight
6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7
[ "MIT" ]
17
2016-03-14T01:10:56.000Z
2016-06-28T20:42:36.000Z
crispy/modules/download.py
hanshoffman/crispy-fortnight
6b69b0db95eb9beb5e977fdba7c6dcf1f015f6c7
[ "MIT" ]
4
2016-03-16T01:17:29.000Z
2016-05-11T17:20:39.000Z
import logging import os from crispy.lib.myparser import CrispyArgumentParser from rpyc.utils.classic import download from crispy.lib.module import * from crispy.lib.fprint import * logger = logging.getLogger(__name__) __class_name__ = "DownloadModule" class DownloadModule(CrispyModule): """ Download file from r...
34
85
0.644907
157
1,394
5.56051
0.471338
0.054983
0.044674
0.04811
0.064147
0
0
0
0
0
0
0
0.241033
1,394
40
86
34.85
0.825142
0
0
0
0
0
0.189349
0
0
0
0
0
0
0
null
null
0
0.2
null
null
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
1
0
0
0
0
0
0
0
0
1
245a1861adb239f0bbcb20f082a3db3723b38c4f
662
py
Python
Repaso Examenes/enero2020/enero2020pd4.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
Repaso Examenes/enero2020/enero2020pd4.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
Repaso Examenes/enero2020/enero2020pd4.py
Mi7ai/Algoritmia
2f1c7b3990e4971f4f977fd0ea4d308004ab3db5
[ "Apache-2.0" ]
null
null
null
def partido_rec_mem_camino(C, S, N, M): def L(n, m): if n == 0: return 0 if (n, m) not in mem: if m >= C[n - 1]: mem[n, m] = max((L(n - 1, m - d * C[n - 1]) + d * S[n - 1] + (1 - d) * N[n - 1], d) for d in range(2)) else: mem[n, m] = (L(n - 1, m) + N[n - 1], 0) return mem[n, m][0] # nr ciudad...
17.891892
106
0.453172
146
662
1.958904
0.280822
0.062937
0.06993
0.132867
0.195804
0.160839
0.160839
0.160839
0
0
0
0.074725
0.312689
662
36
107
18.388889
0.553846
0.033233
0
0
0
0
0.012559
0
0
0
0
0
0
1
0.068966
false
0
0
0
0.172414
0.034483
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
24636ddfa2e30b261c8803f61c052b071474bcda
926
py
Python
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
2
2017-11-16T16:47:55.000Z
2018-01-02T17:00:09.000Z
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
null
null
null
setup.py
reinbach/django-payfast-convert
20267f76252cc61eba582d06694ce8e24ed413f0
[ "MIT" ]
2
2019-08-06T11:57:35.000Z
2020-09-01T15:50:51.000Z
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-payfast', version='0.3.dev', author='Mikhail Korobov', author_email='kmike84@gmail.com', maintainer='Piet Delport', maintainer_email='pjdelport@gmail.com', packages=find_packages(exclude=['payfast_tests']...
31.931034
95
0.656587
99
926
6.080808
0.737374
0.039867
0
0
0
0
0
0
0
0
0
0.010782
0.198704
926
28
96
33.071429
0.800539
0.021598
0
0
0
0
0.541436
0
0
0
0
0
0
1
0
true
0
0.043478
0
0.043478
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
246776056c54f30b3df5df01d66538e862fc551a
785
py
Python
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
numIslands.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
class Solution(object): def numIslands(self, grid): if not grid: return 0 count = 0 for i in range(len(grid)): for j in range(len(grid[0])): if grid[i][j] == 1: self.dfs(grid, i, j) count += 1 return cou...
25.322581
84
0.426752
131
785
2.557252
0.21374
0.083582
0.089552
0.083582
0.298507
0.277612
0.250746
0.250746
0.223881
0.119403
0
0.085653
0.405096
785
30
85
26.166667
0.631692
0.028025
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
246a759fd309fc3554f45bdaa503500c67764f46
595
py
Python
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
apps/organization/migrations/0003_auto_20190526_0042.py
zhangcw/mxonline
f9ccb5dbdc895e2c71e9426392de154d304f2b39
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-26 00:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organization', '0002_courseorg_category'), ] operations = [ migrations.AddField( model_name='courseorg', name='cours...
24.791667
70
0.596639
60
595
5.783333
0.616667
0.103746
0.132565
0.15562
0.489914
0.489914
0.259366
0.259366
0
0
0
0.049412
0.285714
595
23
71
25.869565
0.767059
0.07563
0
0.352941
1
0
0.149635
0.041971
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
246abb95d07b09fb5078b3e62e092f7a3e3e9fbc
349
py
Python
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
SRC/Chapter_03-Functions-And-Looping/05_password_checker.py
archeranimesh/tth-python-basics-3
accbc894324d084124ec001817edf4dc3afffa78
[ "MIT" ]
null
null
null
import sys MASTER_PASSWORD = "opensesame" password = input("Please enter the super secret password: ") attempt_count = 1 while password != MASTER_PASSWORD: if attempt_count > 3: sys.exit("Too many invalid password attempts") password = input("Invalid password, try again: ") attempt_count += 1 pri...
24.928571
60
0.713467
45
349
5.422222
0.622222
0.147541
0.106557
0
0
0
0
0
0
0
0
0.010638
0.191977
349
13
61
26.846154
0.85461
0
0
0
0
0
0.386819
0
0
0
0
0
0
1
0
false
0.5
0.1
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
246b0933b8c25cdde9aa707e3204fed16c23d116
5,984
py
Python
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
textgenrnn/run_utils.py
cosandr/textgenrnn
b2140c1a5704e866ff934fbfad4e14f3c827d439
[ "MIT" ]
null
null
null
import json import os from typing import Dict, Tuple, List import numpy as np import tensorflow as tf from keras import backend as K from textgenrnn.model import textgenrnn_model def rnn_generate(config_path: str, vocab_path: str, weights_path: str, min_words=50, temperature=0.5, start_char='\n', r...
39.893333
110
0.625501
832
5,984
4.310096
0.233173
0.035694
0.01952
0.023424
0.366425
0.366425
0.355828
0.342722
0.342722
0.342722
0
0.011641
0.253509
5,984
149
111
40.161074
0.791135
0.121992
0
0.211009
1
0
0.10595
0.029559
0
0
0
0
0
1
0.036697
false
0
0.06422
0
0.137615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
79e17f968ed936c3149f0f9aa97bfbf0ba74f0e1
780
py
Python
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
69
2018-10-10T01:59:11.000Z
2022-03-29T17:29:30.000Z
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
18
2018-11-17T12:42:02.000Z
2021-05-22T18:45:27.000Z
flask_unchained/bundles/controller/config.py
briancappello/flask-unchained
bff296b5c808f5b1db10f7dddb81054600545749
[ "MIT" ]
7
2018-10-12T16:20:25.000Z
2021-10-06T12:18:21.000Z
from flask_unchained import BundleConfig class Config(BundleConfig): """ Default configuration options for the controller bundle. """ FLASH_MESSAGES = True """ Whether or not to enable flash messages. NOTE: This only works for messages flashed using the :meth:`flask_unchained.Co...
24.375
85
0.671795
96
780
5.333333
0.5625
0.070313
0.046875
0.054688
0.078125
0
0
0
0
0
0
0
0.246154
780
31
86
25.16129
0.870748
0.071795
0
0
0
0
0.06383
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
79f09ed1e6c670a4cc53df338ad3c26a6ed400c3
25,785
py
Python
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
cyberweb/controllers/gsicreds.py
sumukh210991/Cyberweb
297bd54c9e223d38818b802087055e397c403f1c
[ "Apache-2.0" ]
null
null
null
import os import sys import re import json import logging ###from pylons import request, response, session, app_globals, tmpl_context, url as c, config from pylons import request, response, session, app_globals, tmpl_context as c, config, url from pylons.controllers.util import abort, redirect from pylons.decorators ...
46.967213
160
0.542408
2,839
25,785
4.855231
0.162733
0.029019
0.025029
0.024376
0.478961
0.408372
0.37841
0.331761
0.31377
0.295923
0
0.008786
0.298119
25,785
548
161
47.05292
0.752846
0.136785
0
0.425121
0
0
0.248545
0.061185
0
0
0
0
0
0
null
null
0.041063
0.043478
null
null
0.002415
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
79f2f4f6a2d2f8e60e91d2acbe593d63a614519c
3,256
py
Python
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
player.py
Muhammad-Saad-1/Space-Assault
3c71128905cc0f9d7adc9a48393e7ab57b09f19e
[ "MIT" ]
null
null
null
import pygame as pg display = pg.display.set_mode((900,600)) clock = pg.time.Clock() jump = 10 step = 0 img = 0 left = [pg.image.load('images/character/l1.png'),pg.image.load('images/character/l2.png'),pg.image.load('images/character/l3.png'),pg.image.load('images/character/l4.png'),pg.image.load('images/character/l5.p...
35.010753
337
0.601658
509
3,256
3.805501
0.208251
0.104801
0.164688
0.254517
0.467734
0.272586
0
0
0
0
0
0.04284
0.225737
3,256
92
338
35.391304
0.725506
0.004914
0
0.047059
0
0
0.202966
0.197096
0
0
0
0
0
1
0.047059
false
0
0.011765
0
0.105882
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
79f5d77b9f83d003e02c37ef124000f10f0cba55
1,721
py
Python
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
pi_cam.py
beepscore/pi_cam
33b2eeacf4261e162f366d0ba5e75ebfadbc8d7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import picamera import file_utils import os class PiCam: """ Uses Raspberry Pi camera. http://picamera.readthedocs.org/en/release-1.9/api.html """ def __init__(self): self.camera = picamera.PiCamera() """ PiCamera properties default values camera....
30.732143
88
0.635096
214
1,721
4.957944
0.565421
0.039585
0.02639
0.024505
0
0
0
0
0
0
0
0.024545
0.266124
1,721
55
89
31.290909
0.815519
0.301569
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
79f79e5f95dc0076b2de1960b25234f4a6fcedce
559
py
Python
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CalibTracker/SiStripCommon/test/test_shallowRechitClustersProducer_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
from CalibTracker.SiStripCommon.shallowTree_test_template import * process.TFileService.fileName = 'test_shallowRechitClustersProducer.root' process.load('RecoTracker.TrackProducer.TrackRefitters_cff') process.load('CalibTracker.SiStripCommon.ShallowRechitClustersProducer_cfi') process.testTree = cms.EDAnalyzer( "S...
31.055556
76
0.781753
47
559
9.12766
0.638298
0.11655
0
0
0
0
0
0
0
0
0
0
0.118068
559
17
77
32.882353
0.870183
0
0
0
0
0
0.34347
0.304114
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
79fed91a69796e9dd746aca3006eba9ad9ef6ac5
2,082
py
Python
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-05-29T21:51:37.000Z
2015-05-29T21:51:37.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2015-06-01T15:46:42.000Z
2015-06-01T15:46:42.000Z
ex16.py
kaitlinahrens/learn-python-the-hard-way
0d376782779b7b3d6fb43215b145ed7f80359225
[ "Apache-2.0" ]
1
2018-11-05T23:10:40.000Z
2018-11-05T23:10:40.000Z
from sys import argv script, filename = argv print "We are going to erase %r." % filename print "If you don't want that, hit CTRL-C (^C)." print "If you do want that, hit RETURN." raw_input("?") print "Opening the file..." target = open(filename, 'w') print "Truncating the file. Goodbye!" target.truncate() print ...
29.323944
119
0.690202
374
2,082
3.828877
0.278075
0.048883
0.061453
0.03771
0.691341
0.62081
0.62081
0.60405
0.559358
0.539804
0
0.019343
0.180596
2,082
71
120
29.323944
0.820047
0.641691
0
0.130435
0
0
0.39548
0
0
0
0
0
0
0
null
null
0
0.043478
null
null
0.347826
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
79fef4a09e4a04c87e9e0cbe5fb5877f2eda72c8
408
py
Python
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
16
2018-11-10T21:46:40.000Z
2018-11-11T15:08:36.000Z
apps/user/migrations/0002_user_verify_code.py
dy1zan/softwarecapstone
c121a2b2d43b72aac19b75c31519711c0ace9c02
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-11-01 14:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='verify_code', fie...
20.4
49
0.583333
43
408
5.44186
0.790698
0
0
0
0
0
0
0
0
0
0
0.070423
0.303922
408
19
50
21.473684
0.753521
0.110294
0
0
1
0
0.085873
0
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
79ff61229ec05e724a4cf127b02b53f7784410b1
599
py
Python
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
filler/tests/plain_classes/test_teams_data.py
PeterStuck/teacher-app
e71c5b69019450a9ac8694fb461d343ce33e1b35
[ "CC0-1.0" ]
null
null
null
from django.test import TestCase from filler.plain_classes.teams_data import TeamsData class TestTeamsData(TestCase): def test_participants_none(self): with self.assertRaises(AssertionError): TeamsData(participants=None, actions=['Action'], dates=['Date']) def test_actions_none(self): ...
31.526316
76
0.69783
64
599
6.40625
0.390625
0.05122
0.087805
0.117073
0.514634
0.514634
0.514634
0.514634
0.360976
0.360976
0
0
0.18197
599
18
77
33.277778
0.836735
0
0
0.25
0
0
0.046745
0
0
0
0
0
0.25
1
0.25
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
030a4c184f24d64d17b407ffa5bf671b2f098cd9
3,366
py
Python
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
proto/availability_msgs_pb2.py
Mishaa1/leap
636d8b02a49d2499cda88073f0bd04cc550a930c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/availability-msgs.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _m...
44.289474
496
0.81224
363
3,366
7.121212
0.280992
0.043327
0.054159
0.046422
0.227853
0.147389
0.147389
0.147389
0.147389
0.125725
0
0.040836
0.076055
3,366
75
497
44.88
0.790354
0.153595
0
0.2
1
0.02
0.289697
0.199012
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0310131e0454f4f269acaa1f44087c3778bd5b88
13,906
py
Python
b2handle/tests/testcases/handleclient_read_integration_test.py
mikedarcy/B2HANDLE
a14ae52110ffa4731bb9766713cd27f3d897141e
[ "Apache-2.0" ]
20
2015-10-08T12:09:43.000Z
2020-12-01T15:21:26.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
64
2015-09-18T09:39:50.000Z
2021-09-02T10:20:39.000Z
b2handle/tests/testcases/handleclient_read_integration_test.py
EUDAT-B2HANDLE/B2HANDLE
9c4acf94ea6d22ab8aff735e0f202b3e03d582a9
[ "Apache-2.0" ]
33
2015-08-13T10:20:17.000Z
2021-07-20T00:18:56.000Z
"""Testing methods that need Handle server read access""" import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import requests import json import mock import b2handle from b2handle.handleclient import EUDATHandleClient from b2handle.handleexceptions import * # Load some...
40.9
116
0.648929
1,512
13,906
5.755952
0.185847
0.034126
0.02413
0.026198
0.580145
0.550155
0.512582
0.476273
0.451109
0.424107
0
0.010599
0.267223
13,906
340
117
40.9
0.843474
0.222278
0
0.393519
0
0
0.114848
0.041499
0
0
0
0
0.12037
1
0.078704
false
0.083333
0.041667
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
031665446c8a18e24282dac5017b301c097a262b
1,314
py
Python
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
inheritance.py
Preeti-Barua/Python
76d168617f2a92fa41d6af4ddf62450b6272ff84
[ "bzip2-1.0.6" ]
null
null
null
##*** ##class Base: ## def methodBase(self): ## print("In base class") ##class child(Base): ## def methodchild(Base): ## print("In child class") ##c1=child() ##c1.methodBase() ##c1.methodchild() ##*** ##class Base: ## def ___init__(self): ## print('base') ##class child(Base): ## pass ...
14.282609
54
0.560883
160
1,314
4.425
0.29375
0.076271
0.077684
0.042373
0.059322
0.059322
0
0
0
0
0
0.014448
0.262557
1,314
91
55
14.43956
0.716202
0.212329
0
0.117647
0
0
0.110331
0
0
0
0
0
0
1
0.235294
false
0
0
0
0.352941
0.205882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
032672ab93f8bb597d47b58b260a24ea167e130b
3,996
py
Python
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
null
null
null
scripts/utils/calculate_deg.py
okumakito/dnb-bts
5521e76d7c7ac3eccbd111227dad49c77a198ac7
[ "MIT" ]
1
2021-11-22T09:20:09.000Z
2021-11-22T09:20:09.000Z
import numpy as np import pandas as pd from utils import calculate_q from scipy import stats def calculate_deg_fold_change(data1_df, data2_df, fc_cutoff=1, alternative='two-sided'): """ This function calculates differentially expressed genes (DEGs) between two DataFrames or Series...
32.754098
80
0.666667
560
3,996
4.582143
0.201786
0.04092
0.032736
0.038192
0.751364
0.719797
0.667576
0.628605
0.604443
0.577942
0
0.024791
0.222723
3,996
121
81
33.024793
0.801352
0.488238
0
0.377778
0
0
0.098577
0
0
0
0
0
0
1
0.066667
false
0.022222
0.088889
0
0.222222
0.022222
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
032e191105068d7dcb7cfc95541e05575acdbe66
360
py
Python
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/list_pkg/any_uri/schema_instance/nistschema_sv_iv_list_any_uri_enumeration_1_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.list_pkg.any_uri.schema_instance.nistschema_sv_iv_list_any_uri_enumeration_1_xsd.nistschema_sv_iv_list_any_uri_enumeration_1 import ( NistschemaSvIvListAnyUriEnumeration1, NistschemaSvIvListAnyUriEnumeration1Type, ) __all__ = [ "NistschemaSvIvListAnyUriEnumeration1", "Nists...
36
162
0.861111
34
360
8.441176
0.617647
0.062718
0.097561
0.125436
0.250871
0.250871
0.250871
0.250871
0
0
0
0.018182
0.083333
360
9
163
40
0.851515
0
0
0
0
0
0.211111
0.211111
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0334a1705c59bb245b5883fc692d78120a2f4bb6
521
py
Python
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
setup.py
capolan/iocfg
0d4be5ac232b76155100491a082ba333569d6ca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup, find_packages setup(name='iocfg', version='0.1', description='Configuration for IO modules on Novus IHM', author='Thomas Del Grande', author_email='tgrande@pd3.com.br', packages=find_packages(), scripts=[ 'scripts/diocfg',...
26.05
62
0.621881
59
521
5.338983
0.728814
0.12381
0.120635
0
0
0
0
0
0
0
0
0.007673
0.24952
521
19
63
27.421053
0.797954
0.038388
0
0
0
0
0.438
0.184
0
0
0
0
0
1
0
true
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
033fc0bc9f7f7d57ad5f5faa0ac4b814d9cbec49
4,088
py
Python
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
source/device_manager/script.py
ElsevierSoftwareX/SOFTX-D-21-00051
7ae5ad60971129286e2ee452a797c26810a9cb0f
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import List from source.device_manager.database import get_database_connection,release_database_connection @dataclass class ScriptInfo: id: int name: str fileName: str user: int @dataclass class Script: id: int name: str fileName: str use...
31.206107
94
0.589775
485
4,088
4.802062
0.119588
0.139116
0.081151
0.085874
0.770288
0.725204
0.63933
0.593388
0.529841
0.465006
0
0.007072
0.308219
4,088
130
95
31.446154
0.816478
0
0
0.555556
0
0.010101
0.06473
0.006041
0
0
0
0
0
1
0.080808
false
0
0.030303
0
0.272727
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0348bfc3aede7a83ba1e69a06410cf061126d983
1,192
py
Python
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/sms/migrations/0002_add_selfregistrationinvitation.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sms', '0001_initial'), ] operations = [ migrations.CreateModel( name='SelfRegistrationInvitation', fields=[ ('id', models.AutoField(verbose_name='ID'...
39.733333
129
0.567114
114
1,192
5.754386
0.482456
0.137195
0.137195
0.182927
0.199695
0.176829
0.106707
0
0
0
0
0.023337
0.28104
1,192
29
130
41.103448
0.742124
0
0
0
0
0
0.131711
0.021812
0
0
0
0
0
1
0
false
0
0.04
0
0.16
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
034a6ddc353111fc7c294d34a5c01f3d0f1260d3
1,621
py
Python
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
null
null
null
DL_Models/tf_models/Xception/Xception.py
Zensho/CS91-Proj
876d5e977800af42382f8c6398eb62ccff202497
[ "MIT" ]
1
2022-03-09T14:18:37.000Z
2022-03-09T14:18:37.000Z
import tensorflow as tf from config import config from utils.utils import * import logging from DL_Models.tf_models.ConvNet import ConvNet class XCEPTION(ConvNet): """ The Xception architecture. This is inspired by Xception paper, which describes how 'extreme' convolutions can be represented as separable ...
60.037037
164
0.732264
216
1,621
5.310185
0.430556
0.043592
0.041848
0.036617
0.134263
0.134263
0.134263
0.134263
0.134263
0.134263
0
0.006865
0.19124
1,621
27
165
60.037037
0.86804
0.317705
0
0
0
0
0.007547
0
0
0
0
0
0
1
0.125
false
0
0.3125
0
0.5625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0355954797eb9e1fe29d671274bf1dbde8b9e917
1,162
py
Python
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
5
2020-07-11T14:07:53.000Z
2021-10-30T20:05:14.000Z
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
5
2019-12-21T17:46:09.000Z
2021-08-14T16:26:39.000Z
tests/test_billing.py
payload-code/payload-python
d7c07c679781021ff6e27c13feae22dec0f7c1bc
[ "MIT" ]
2
2019-09-16T07:32:07.000Z
2021-01-07T11:42:42.000Z
import pytest import payload as pl from .fixtures import Fixtures @pytest.fixture() def billing_schedule(processing_account, customer_account): billing_schedule = pl.BillingSchedule.create( start_date="2019-01-01", end_date="2019-12-31", recurring_frequency="monthly", type="subsc...
29.794872
70
0.722892
133
1,162
6.030075
0.353383
0.243142
0.15586
0.119701
0.370324
0.331671
0.331671
0.331671
0.331671
0.331671
0
0.033014
0.191911
1,162
38
71
30.578947
0.821086
0
0
0.285714
0
0
0.055938
0
0
0
0
0
0.178571
1
0.107143
false
0
0.107143
0
0.285714
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0356a1edf61d31074a4a2069b0d6dd1a80c5ea43
5,415
py
Python
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
9
2020-09-24T19:40:49.000Z
2022-03-23T17:24:53.000Z
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
1
2022-03-15T18:42:44.000Z
2022-03-21T14:43:34.000Z
planners/simple.py
vincekurtz/quadruped_drake
0fed14eeb7ba33144ab740bc9afa412398f70b7e
[ "MIT" ]
1
2021-03-30T00:06:20.000Z
2021-03-30T00:06:20.000Z
import numpy as np from pydrake.all import * class BasicTrunkPlanner(LeafSystem): """ Implements the simplest possible trunk-model planner, which generates desired positions, velocities, and accelerations for the feet, center-of-mass, and body frame orientation. """ def __init__(self, frame_id...
38.678571
97
0.597599
768
5,415
4.0625
0.234375
0.125
0.175
0.072115
0.359615
0.333013
0.255769
0.185256
0.136859
0.136859
0
0.03431
0.262604
5,415
139
98
38.956835
0.747057
0.303232
0
0.086957
1
0
0.069464
0
0
0
0
0
0
1
0.101449
false
0
0.028986
0
0.144928
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
035a2fb7d90dd4fec6b4d13bde7778a72b148576
373
py
Python
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
acess phone.py
Soosai007/Python-projects-
3cd61e7019a77ccf46a7805827bef2ac6371af3a
[ "MIT" ]
null
null
null
import urllib.request import cv2 import numpy as np import time URL = "http://192.168.1.3:8080/shot.jpg" while True: img_arr = np.array(bytearray(urllib.request.urlopen(URL).read()),dtype=np.uint8) img = cv2.imdecode(img_arr,-1) cv2.imshow('IPWebcam',img) q = cv2.waitKey(1) if q == ord("q"...
23.3125
85
0.632708
56
373
4.178571
0.642857
0.111111
0
0
0
0
0
0
0
0
0
0.068259
0.214477
373
15
86
24.866667
0.730375
0
0
0
0
0
0.114525
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
035bef3fbb61b8fe7c70ea62e4f07f8bb9692def
559
py
Python
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
3
2015-05-12T16:44:27.000Z
2021-02-09T00:39:24.000Z
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
lang/jquery_python/read/json_python_read.py
ekzemplaro/data_base_language
e77030367ffc595f1fac8583f03f9a3ce5eb1611
[ "MIT", "Unlicense" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- # # json_python_read.py # # Jul/25/2014 # # --------------------------------------------------------------------- import sys sys.path.append ("/var/www/data_base/common/python_common") # from file_io import file_to_str_proc # # --------------------------------------------...
23.291667
71
0.429338
58
559
3.87931
0.603448
0.053333
0.08
0.115556
0.186667
0.186667
0
0
0
0
0
0.015656
0.085868
559
23
72
24.304348
0.424658
0.511628
0
0
0
0
0.354086
0.249027
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.285714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
03622d2bea5b69bb3cd39b0a8ca6acd8476b6fd0
1,258
py
Python
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
DatabaseRelated/player.py
CalmingAgent/Pew-Pew-Test
fed527ca7b83dafd1960c2daf4a0e616e56354ca
[ "MIT" ]
null
null
null
class Player: def __init__(self, id, rating=1000, win_count=0, lose_count=0, win_streak=0, best_win_streak=0): self.id = id self.rating = rating self.win_count = win_count self.lose_count = lose_count self.win_streak = win_streak self.best_win_streak = best_win_streak...
27.347826
100
0.582671
163
1,258
4.239264
0.202454
0.156295
0.094067
0.073806
0.224313
0.105644
0.068017
0
0
0
0
0.053381
0.329889
1,258
45
101
27.955556
0.766311
0.104928
0
0.060606
0
0
0.027654
0
0
0
0
0
0
1
0.212121
false
0
0
0.060606
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0363aea6f2b2de0d16d88b97f4debf89e249ba5b
1,574
py
Python
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:50.000Z
2022-03-04T01:03:50.000Z
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
null
null
null
pythonfiles/testphone_pythonfiles/test_phone/music/test.py
Huyuxuan-github/wica
f87b22ce4c773ce96b9e583ebcd5bf36469e32c7
[ "WTFPL" ]
1
2022-03-04T01:03:53.000Z
2022-03-04T01:03:53.000Z
import os # import pygame from mutagen.mp3 import MP3 import time from classuiui import MyFrame1 import wx # import thread import threading import multiprocessing from playsound import playsound from test001 import MyFrame1 # file="cd&&cd music&&cd&&StarSky.mp3" # os.system(file) # pygame.mixer.init() # audio = MP3("...
21.561644
130
0.629606
201
1,574
4.830846
0.432836
0.0793
0.098867
0.043254
0.117405
0.117405
0.117405
0.117405
0.117405
0
0
0.020586
0.197586
1,574
73
131
21.561644
0.748219
0.390089
0
0.096774
0
0
0.079348
0.070652
0
0
0
0
0
1
0.129032
false
0
0.290323
0
0.548387
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
03653eb422190ef08509f026b301a5cf2cb389bc
787
py
Python
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
2
2021-12-24T13:22:51.000Z
2022-01-23T15:36:22.000Z
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
null
null
null
demo/testout.py
yvr1037/fenghuo-project-of-mmdet
7d51c087aa36fd39c8e844fbbe15a28e952a22a5
[ "Apache-2.0" ]
null
null
null
import mmcv import os import numpy as np from mmcv.runner import load_checkpoint from mmdet.models import build_detector from mmdet.apis import init_detector, inference_detector import torch # device = torch.device("cpu") # os.environ["CUDA_VISIBLE_DEVICES"]="" # import pdb; pdb.set_trace() config_file = '../configs/...
32.791667
93
0.787802
119
787
4.92437
0.512605
0.046075
0.037543
0.054608
0.215017
0.133106
0.133106
0.133106
0.133106
0
0
0.01958
0.091487
787
24
94
32.791667
0.8
0.278272
0
0
0
0
0.290553
0.253119
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
036aded2a5c768db98446d290a146373009c9d4d
382
py
Python
examples/mesoscope_anatomical_high_mag.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
examples/mesoscope_anatomical_high_mag.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
examples/mesoscope_anatomical_high_mag.py
tlambert03/image-demos
a2974bcc7f040fd4d14e659c4cbfeabcf726c707
[ "BSD-3-Clause" ]
null
null
null
""" Displays anatomical data from the mesoscope """ from skimage.io import imread from napari import Viewer, gui_qt stack = imread('data/mesoscope/anatomical/volume_zoomed.tif') with gui_qt(): # create an empty viewer viewer = Viewer() # add the image layer = viewer.add_image(stack, name='stack', c...
22.470588
112
0.698953
57
382
4.596491
0.578947
0.038168
0
0
0
0
0
0
0
0
0
0.044025
0.167539
382
16
113
23.875
0.779874
0.212042
0
0
0
0
0.178082
0.14726
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
036c2e095d7edeb0d2e2e4cd895d6ea7fe8b4740
1,679
py
Python
DataProcessor.py
harrys17451/CryptocurrencyPrediction
4833130c59618f0b1d060596fd39a290e9a6ed97
[ "MIT" ]
669
2017-12-31T01:50:30.000Z
2022-03-30T00:01:57.000Z
DataProcessor.py
mildronize/CryptocurrencyPrediction
7ec542bcd6bf960b115638484737f097120badcd
[ "MIT" ]
11
2018-01-08T15:40:55.000Z
2021-11-30T08:00:49.000Z
DataProcessor.py
mildronize/CryptocurrencyPrediction
7ec542bcd6bf960b115638484737f097120badcd
[ "MIT" ]
262
2018-01-01T14:51:13.000Z
2022-03-17T16:59:55.000Z
# coding: utf-8 # In[2]: import pandas as pd import numpy as np import h5py # In[24]: input_step_size = 50 output_size = 30 sliding_window = False file_name= 'bitcoin2012_2017_50_30_prediction.h5' # In[19]: df = pd.read_csv('data/bitstampUSD_1-min_data_2012-01-01_to_2017-05-31.csv').dropna().tail(1000000) ...
23.647887
99
0.705777
266
1,679
4.184211
0.270677
0.12938
0.186882
0.150943
0.400719
0.400719
0.395328
0.34142
0.34142
0.34142
0
0.039409
0.153663
1,679
70
100
23.985714
0.743842
0.035736
0
0.210526
0
0
0.097576
0.057178
0
0
0
0
0
1
0
false
0
0.078947
0
0.078947
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
036ce936f710a0a2ff80b56468ee08342b668842
776
py
Python
github api example.py
LincT/PythonExamples
a0b61e8c60cd0754f2406b6b72fcd562667c9bb0
[ "MIT" ]
null
null
null
github api example.py
LincT/PythonExamples
a0b61e8c60cd0754f2406b6b72fcd562667c9bb0
[ "MIT" ]
null
null
null
github api example.py
LincT/PythonExamples
a0b61e8c60cd0754f2406b6b72fcd562667c9bb0
[ "MIT" ]
null
null
null
import requests def wip(): print() def apiToDictionary(url, *args): request_string = url response = (requests.get(request_string)) json = response.json() response.close() return dict(json) def main(): # docDict = {"text":"592da8d73b39d3e1f54304fedf7456b1", "markdown":"6a4cccf1c66c780e72...
29.846154
166
0.693299
85
776
6.2
0.6
0.049336
0.113852
0
0
0
0
0
0
0
0
0.055306
0.137887
776
25
167
31.04
0.732436
0.599227
0
0
0
0
0.02623
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0
0.384615
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
1
0
0
0
0
0
0
0
1
036da6e027a7036bf7b62f5adb2656c36fb9601d
325
py
Python
elibrary/migrations/0011_remove_book_tag.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
7
2016-02-21T17:25:54.000Z
2021-10-09T19:36:10.000Z
elibrary/migrations/0011_remove_book_tag.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
19
2020-02-11T23:55:01.000Z
2022-03-31T18:11:56.000Z
elibrary/migrations/0011_remove_book_tag.py
soma115/wikikracja
7715ca1daa4ca09888e1c7389ed5f8a2df29898b
[ "MIT" ]
3
2016-01-20T22:34:58.000Z
2020-09-16T07:45:42.000Z
# Generated by Django 3.1.12 on 2021-09-18 12:55 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('elibrary', '0010_auto_20210918_1434'), ] operations = [ migrations.RemoveField( model_name='book', name='tag', ), ...
18.055556
48
0.587692
35
325
5.342857
0.828571
0
0
0
0
0
0
0
0
0
0
0.140351
0.298462
325
17
49
19.117647
0.679825
0.141538
0
0
1
0
0.137184
0.083032
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
036e27bede50c08e0bbb36a280baf4f71cc05bf8
15,933
py
Python
tools/test/scenarios/bin/tapiHelper.py
cornell-netlab/onos
19c32ac12d1ac3b58403cc8b763c6a0666702cb6
[ "Apache-2.0" ]
2
2019-04-02T03:48:49.000Z
2021-02-03T20:01:27.000Z
tools/test/scenarios/bin/tapiHelper.py
cornell-netlab/onos
19c32ac12d1ac3b58403cc8b763c6a0666702cb6
[ "Apache-2.0" ]
13
2020-03-04T22:56:25.000Z
2022-03-02T04:24:17.000Z
tools/test/scenarios/bin/tapiHelper.py
cornell-netlab/onos
19c32ac12d1ac3b58403cc8b763c6a0666702cb6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import requests import json import random from sets import Set # # Creates client-side connectivity json # def tapi_client_input(sip_uuids): create_input = { "tapi-connectivity:input": { "end-point" : [ { "local-id": sip_uuids[...
40.853846
136
0.62813
2,116
15,933
4.538752
0.117675
0.035714
0.054665
0.022491
0.544565
0.461266
0.394731
0.358913
0.314244
0.28915
0
0.005082
0.258959
15,933
389
137
40.958869
0.808334
0.185339
0
0.377953
0
0.007874
0.244646
0.099938
0
0
0
0.002571
0.031496
0
null
null
0.011811
0.015748
null
null
0.047244
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cee7987780f9d6caf6c5e3e7b2bc8abfa821e3a8
2,105
py
Python
p1_basic/day22_26oop/day26/04_异常处理.py
dong-pro/fullStackPython
5ad8662f7b57f14c8529e7eaf64290eeda773557
[ "Apache-2.0" ]
1
2020-04-03T01:32:05.000Z
2020-04-03T01:32:05.000Z
p1_basic/day22_26oop/day26/04_异常处理.py
dong-pro/fullStackPython
5ad8662f7b57f14c8529e7eaf64290eeda773557
[ "Apache-2.0" ]
null
null
null
p1_basic/day22_26oop/day26/04_异常处理.py
dong-pro/fullStackPython
5ad8662f7b57f14c8529e7eaf64290eeda773557
[ "Apache-2.0" ]
null
null
null
import os class ExistsError(Exception): pass class KeyInvalidError(Exception): pass def new_func(path, prev): """ 去path路径的文件中,找到前缀为prev的一行数据,获取数据并返回给调用者。 1000,成功 1001,文件不存在 1002,关键字为空 1003,未知错误 ... :return: """ response = {'code': 1000, 'data': None...
21.262626
45
0.535392
221
2,105
5.058824
0.248869
0.085868
0.064401
0.053667
0.652952
0.599284
0.481216
0.481216
0.481216
0.481216
0
0.059944
0.326366
2,105
99
46
21.262626
0.728491
0.467933
0
0.153846
0
0
0.049068
0
0
0
0
0
0
1
0.102564
false
0.102564
0.025641
0.025641
0.25641
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
1
0
0
0
0
0
1
ceeab48dfbbd65bcb363f2bc14497327bbed9e95
451
py
Python
api/src/controllers/utils.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
api/src/controllers/utils.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
api/src/controllers/utils.py
debbie-chan/SPM
f84e62779347579287aee8a2e832f72dcc53b8dd
[ "MIT" ]
null
null
null
import json from bson import ObjectId from datetime import datetime, date class JSONEncoder(json.JSONEncoder): def default(self, o): if isinstance(o, ObjectId): return str(o) if isinstance(o, (datetime, date)): return o.isoformat() return json.JSONEncoder.default(se...
25.055556
70
0.643016
57
451
5.087719
0.473684
0.082759
0.082759
0.096552
0
0
0
0
0
0
0
0.008671
0.232816
451
17
71
26.529412
0.82948
0
0
0
0
0
0.059867
0.04878
0
0
0
0
0
1
0.153846
false
0
0.230769
0.076923
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
ceee787626ea63b9ebed145fa361e93cb187c722
494
py
Python
molecule/default/tests/test_role.py
gantsign/ansible-role-git-credential-manager
63c9d20389447ea9a38b56a6198a385fdebe1718
[ "MIT" ]
3
2018-09-04T15:53:22.000Z
2020-06-13T17:22:47.000Z
molecule/default/tests/test_role.py
gantsign/ansible_role_git_credential_manager
b718d4133a272f766719acca5afa8e1999a4588d
[ "MIT" ]
1
2018-09-04T16:02:20.000Z
2018-09-05T14:45:34.000Z
molecule/default/tests/test_role.py
gantsign/ansible_role_git_credential_manager
b718d4133a272f766719acca5afa8e1999a4588d
[ "MIT" ]
null
null
null
import re def test_version(host): version = host.check_output('git-credential-manager-core --version') pattern = r'[0-9\.]+(\.[0-9\.]+){2}' assert re.search(pattern, version) def test_git_config(host): config = host.check_output('git config --system credential.helper') assert config == '/usr/loc...
30.875
76
0.688259
64
494
5.21875
0.4375
0.080838
0.134731
0.161677
0.275449
0.275449
0.275449
0.275449
0
0
0
0.01199
0.15587
494
15
77
32.933333
0.788969
0
0
0
0
0
0.423077
0.261134
0
0
0
0
0.272727
1
0.181818
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cef1f91b5f6b4d828f87bc4bbe7d153aead9af59
1,078
py
Python
app.py
lblod/contact-hub-harvester
75895a1920b3bae10f61e4f284499e2b23927609
[ "MIT" ]
1
2021-06-08T07:58:24.000Z
2021-06-08T07:58:24.000Z
app.py
lblod/contact-hub-harvester
75895a1920b3bae10f61e4f284499e2b23927609
[ "MIT" ]
null
null
null
app.py
lblod/contact-hub-harvester
75895a1920b3bae10f61e4f284499e2b23927609
[ "MIT" ]
null
null
null
import sys import mapping.organization as org import mapping.contact as contact import mapping.worship as worship import mapping.central as central import mapping.national as national import mapping.codelist as codelist import mapping.vocabulary as vocab import mapping.location as location import mapping.local_admin_...
26.292683
51
0.681818
158
1,078
4.550633
0.183544
0.076495
0.112656
0.090403
0.159944
0.159944
0.159944
0.159944
0
0
0
0.025756
0.171614
1,078
40
52
26.95
0.779395
0
0
0
0
0
0.081633
0
0
0
0
0
0
1
0.027778
false
0
0.305556
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cef4a8a3cb987de3e3d820dc98bcefb1e7cbe272
2,815
py
Python
ML_CW2/assgn_2/task_1.py
ShellySrivastava/Machine-Learning
bfdea30c06abe4228c103ae525adcf990015983f
[ "MIT" ]
null
null
null
ML_CW2/assgn_2/task_1.py
ShellySrivastava/Machine-Learning
bfdea30c06abe4228c103ae525adcf990015983f
[ "MIT" ]
null
null
null
ML_CW2/assgn_2/task_1.py
ShellySrivastava/Machine-Learning
bfdea30c06abe4228c103ae525adcf990015983f
[ "MIT" ]
null
null
null
import numpy as np import os import matplotlib.pyplot as plt from print_values import * from plot_data_all_phonemes import * from plot_data import * # File that contains the data data_npy_file = 'data/PB_data.npy' # Loading data from .npy file data = np.load(data_npy_file, allow_pickle=True) data = np.ndarray.tolist(...
34.329268
157
0.694494
462
2,815
4.095238
0.274892
0.059197
0.028541
0.019027
0.182347
0.15592
0.084567
0.056025
0.056025
0.056025
0
0.021983
0.143517
2,815
82
158
34.329268
0.762754
0.488099
0
0.054054
0
0
0.103648
0.017413
0
0
0
0.012195
0
1
0
false
0
0.162162
0
0.162162
0.162162
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
cefe60a9049748b68fc54c632b52a7d08d5a4d7b
442
py
Python
w3r-basic-1-50.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-50.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
w3r-basic-1-50.py
WLi-syd/python
e8bd743535a1eca3493ea7f74a7475d1fb49de98
[ "CNRI-Python" ]
null
null
null
# 50. Write a Python program to print without newline or space. # Question: # Input: # Output: # Solution: https://www.w3resource.com/python-exercises/python-basic-exercise-50.php # Ideas: """ 1. Badly phrased qquestion. Question should be using for loop to generate 10 off "*" and print them in one line. """ # St...
15.241379
114
0.624434
61
442
4.52459
0.819672
0
0
0
0
0
0
0
0
0
0
0.030812
0.192308
442
28
115
15.785714
0.742297
0.730769
0
0
0
0
0.038961
0
0
0
0
0
0
1
0
false
0
0
0
0
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ceffd051d030d11340ed2510ffc0183d9860e640
1,559
py
Python
chris_backend/servicefiles/models.py
rudolphpienaar/ChRIS_ultron_backEnd
5de4e255fb151ac7a6f900327704831da11dcd1f
[ "MIT" ]
null
null
null
chris_backend/servicefiles/models.py
rudolphpienaar/ChRIS_ultron_backEnd
5de4e255fb151ac7a6f900327704831da11dcd1f
[ "MIT" ]
null
null
null
chris_backend/servicefiles/models.py
rudolphpienaar/ChRIS_ultron_backEnd
5de4e255fb151ac7a6f900327704831da11dcd1f
[ "MIT" ]
null
null
null
from django.db import models import django_filters from django_filters.rest_framework import FilterSet REGISTERED_SERVICES = ['PACS'] class Service(models.Model): identifier = models.CharField(max_length=20, unique=True) def __str__(self): return self.identifier class ServiceFile(models.Model): ...
35.431818
89
0.667736
171
1,559
5.760234
0.333333
0.105584
0.093401
0.113706
0.349239
0.308629
0.229442
0.229442
0.13401
0.13401
0
0.004184
0.233483
1,559
43
90
36.255814
0.820084
0
0
0.133333
0
0
0.119384
0
0
0
0
0
0
1
0.066667
false
0
0.1
0.066667
0.733333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3003b7db9f50c73f072be5e7001460eee57f2c46
1,950
py
Python
indexes/utils/dataset.py
war-and-peace/dss
8980477fc118b4f6fc2724427ba101c80eeb69d3
[ "MIT" ]
null
null
null
indexes/utils/dataset.py
war-and-peace/dss
8980477fc118b4f6fc2724427ba101c80eeb69d3
[ "MIT" ]
6
2021-02-24T21:40:27.000Z
2021-03-11T21:35:28.000Z
indexes/utils/dataset.py
war-and-peace/dss
8980477fc118b4f6fc2724427ba101c80eeb69d3
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Abdurasul Rakhimov 24.2.2021. # ------------------------------------------------------------------------------ import numpy as np from overrides import overrides class Dataset: def __init__(self, name, dataset_path)...
29.545455
117
0.567179
240
1,950
4.454167
0.258333
0.104771
0.046773
0.047708
0.275023
0.275023
0.275023
0.213283
0.151544
0.151544
0
0.014443
0.254359
1,950
65
118
30
0.72077
0.10359
0
0.340426
0
0
0
0
0
0
0
0
0
1
0.234043
false
0
0.042553
0.06383
0.468085
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3004c3f59cd9236cf1638000226994613db59de2
733
py
Python
src/kinect/Kinect.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/kinect/Kinect.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/kinect/Kinect.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import time import numpy as np from freenect import sync_get_depth as get_depth, sync_get_video as get_video class Kinect(object): """Offers access to rgb and depth from the real Kinect""" def __init__(self): pass def get_frame(self, record=False): # Get a fresh frame (d...
31.869565
78
0.604366
96
733
4.416667
0.427083
0.056604
0.089623
0
0
0
0
0
0
0
0
0.009634
0.291951
733
23
79
31.869565
0.807322
0.095498
0
0
0
0
0.039308
0
0
0
0
0
0
1
0.166667
false
0.055556
0.166667
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
1
0
0
0
0
0
1
300da26c3c232a2570a4579306f4ee78357682ca
4,278
py
Python
python/caty/jsontools/selector/parser.py
hidaruma/caty
f71d2ab0a001ea4f7a96a6e02211187ebbf54773
[ "MIT" ]
null
null
null
python/caty/jsontools/selector/parser.py
hidaruma/caty
f71d2ab0a001ea4f7a96a6e02211187ebbf54773
[ "MIT" ]
null
null
null
python/caty/jsontools/selector/parser.py
hidaruma/caty
f71d2ab0a001ea4f7a96a6e02211187ebbf54773
[ "MIT" ]
null
null
null
from topdown import * from caty.jsontools import stdjson from caty.jsontools import xjson from caty.jsontools.selector import stm as default_factory from caty.core.spectypes import UNDEFINED from caty.core.language import name_token class JSONPathSelectorParser(Parser): def __init__(self, empty_when_error=False, ...
31.688889
115
0.542076
493
4,278
4.610548
0.243408
0.073911
0.089749
0.059393
0.204136
0.157501
0.157501
0.115266
0.08359
0.041355
0
0.002091
0.32936
4,278
134
116
31.925373
0.790171
0.02244
0
0.081081
0
0
0.019875
0
0
0
0
0
0
0
null
null
0
0.063063
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
301761f399153aa6d426b47322db15a73620a802
1,983
py
Python
ImageAnalyses/tests_maps.py
nicholst/narps
0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc
[ "MIT" ]
30
2019-07-17T22:27:02.000Z
2021-12-21T11:38:12.000Z
ImageAnalyses/tests_maps.py
nicholst/narps
0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc
[ "MIT" ]
21
2019-07-18T14:26:14.000Z
2020-01-20T17:59:19.000Z
ImageAnalyses/tests_maps.py
nicholst/narps
0a9d71a5ab435b40dcd50fea82d2961a43f0a3fc
[ "MIT" ]
12
2019-07-20T06:14:21.000Z
2021-09-25T00:35:29.000Z
# tests for narps code # - currently these are all just smoke tests import pytest import os import pandas from narps import Narps from AnalyzeMaps import mk_overlap_maps,\ mk_range_maps, mk_std_maps,\ mk_correlation_maps_unthresh, analyze_clusters,\ plot_distance_from_mean, get_thresh_similarity from MetaA...
24.182927
70
0.753404
275
1,983
5.12
0.367273
0.044744
0.042614
0.045455
0.06108
0
0
0
0
0
0
0
0.179526
1,983
81
71
24.481481
0.865396
0.178013
0
0
0
0
0.029666
0
0
0
0
0
0.020833
1
0.208333
false
0
0.166667
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
302cdd3bbef43498903450f4d3f2b0902dce4b22
605
py
Python
opm/presentation/presentation.py
Open-Prose-Metrics/open_prose_metrics_app-core
9df65edfe9ee9af0a0731c3f2e21ea25bced250c
[ "MIT" ]
null
null
null
opm/presentation/presentation.py
Open-Prose-Metrics/open_prose_metrics_app-core
9df65edfe9ee9af0a0731c3f2e21ea25bced250c
[ "MIT" ]
4
2021-04-30T21:38:10.000Z
2022-01-13T03:32:33.000Z
opm/presentation/presentation.py
Open-Prose-Metrics/open_prose_metrics_app-core
9df65edfe9ee9af0a0731c3f2e21ea25bced250c
[ "MIT" ]
1
2021-03-21T14:08:28.000Z
2021-03-21T14:08:28.000Z
class FrontEnd(object): def __init__(self): self.theme = "slate" self.logo = "" # path from static/ self.app_name = "Open Prose Metrics" self.report_title = "Results" self.theme_cdn = self.bootswatch_url(self.theme) def bootswatch_url(self, label): if labe...
37.8125
98
0.596694
71
605
4.957746
0.549296
0.076705
0.096591
0.181818
0.272727
0.272727
0.272727
0.272727
0.272727
0
0
0.013699
0.276033
605
15
99
40.333333
0.789954
0.028099
0
0
0
0.142857
0.336842
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
302e0d78b3644fab203f5a2140185b921dd4135b
7,140
py
Python
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
349
2017-02-18T22:48:17.000Z
2021-12-13T19:50:23.000Z
tests/test_jid.py
nicfit/vexmpp
e67070d2822da8356345976fb15d365935b550a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test_jid ---------------------------------- Tests for `vexmpp.xmpp.jid` module. """ import unittest from vexmpp.jid import Jid, _parse, _prep, InvalidJidError, internJid class TestJidParsing(unittest.TestCase): def setUp(self): pass def test_basic(self): self.as...
29.874477
77
0.539076
782
7,140
4.859335
0.182864
0.082105
0.113684
0.065
0.596316
0.465526
0.413158
0.360789
0.313421
0.282368
0
0.004311
0.317787
7,140
238
78
30
0.775816
0.195378
0
0.239316
0
0
0.177619
0.004832
0
0
0
0
0.350427
1
0.247863
false
0.042735
0.017094
0
0.282051
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
3030b091442a66a1758237c47ca2d3b1d6082b1e
368
py
Python
core/models.py
dilshodbekikromov/weatherapp
105ca8c7a142a4afdff9bff7c758896f0335610c
[ "PostgreSQL" ]
1
2021-12-17T05:17:22.000Z
2021-12-17T05:17:22.000Z
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
core/models.py
GiovannaK/Weather-app-django
3138f03b34baa5866ed63f52dc4b759be6eb7aa4
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class City(models.Model): user = models.ManyToManyField(User, default=None,) name = models.CharField(max_length=255, verbose_name="Nome da cidade") def __str__(self): return self.name class Meta: verbose_name = "...
26.285714
74
0.701087
48
368
5.1875
0.625
0.13253
0
0
0
0
0
0
0
0
0
0.010239
0.203804
368
13
75
28.307692
0.83959
0
0
0
0
0
0.07337
0
0
0
0
0
0
1
0.1
false
0
0.2
0.1
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
303f583ef559b4b1aa620758bb07c4e72cd59ab1
730
py
Python
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
simsimi.py
leoodz/discordsimsimi
a9623ee7495f225116219e5a290b4019f597f2d3
[ "MIT" ]
null
null
null
import cloudscraper import json from bs4 import BeautifulSoup from dotenv import load_dotenv import os scraper = cloudscraper.create_scraper() load_dotenv('lang_code') language = os.getenv("lang_code") def simsimi(question): ''' Function to make the HTTP request to the Simsimi API already with the message typed b...
28.076923
142
0.712329
107
730
4.813084
0.635514
0.046602
0
0
0
0
0
0
0
0
0
0.003263
0.160274
730
26
143
28.076923
0.836868
0.363014
0
0
0
0
0.2
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
304dc6dc061f3fd518314469875101efde9ac522
461
py
Python
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
mail1.py
SameerRao22/python
62a0d7d6401152da4c5103668add13ca0f0fd8a3
[ "bzip2-1.0.6" ]
null
null
null
import smtplib user = input('Enter your gmail ') password = input('Enter your password ') receiver = input('Enter the receiver ') msg = input('Enter the message ') #num = input('Enter the number of emails you want to send ') #x = 0 #x = int() #num = int() server = smtplib.SMTP('smtp.gmail.com', 587) server....
25.611111
61
0.672451
66
461
4.69697
0.545455
0.16129
0.125806
0
0
0
0
0
0
0
0
0.013263
0.182213
461
17
62
27.117647
0.809019
0.201735
0
0
0
0
0.320809
0
0
0
0
0
0
1
0
false
0.181818
0.090909
0
0.090909
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
1
0
0
0
0
0
1
304e5b0e47fffc531047a55b5185bd8c13cd32b6
820
py
Python
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
narrative/models/notification.py
siq/narrative
ad3c3bd62725395f34241258cccccea80e8b1cae
[ "Linux-OpenIB" ]
null
null
null
''' Created on Feb 4, 2015 @author: nirmal ''' from scheme import current_timestamp from spire.schema import * from spire.mesh import Surrogate __all__ = ('Notification',) schema = Schema('narrative') class Notification(Model): """A notification.""" class meta: schema = schema ...
26.451613
83
0.696341
84
820
6.678571
0.511905
0.092692
0.064171
0
0
0
0
0
0
0
0
0.007622
0.2
820
30
84
27.333333
0.847561
0.067073
0
0
0
0
0.108033
0.062327
0
0
0
0
0
1
0
false
0
0.166667
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3050a2a71fbaa2cae499a5720b624b2e3232480d
8,896
py
Python
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
login/l3/Python-Tkinter-Login-master/login.py
am-3/TimeZoned
e8ae2e90c2d6addf13b145aa2a4c7a9a66c1346e
[ "MIT" ]
null
null
null
from tkinter import * from tkinter import messagebox from database import db from client import client from pprint import * import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure import Figure import matplotlib.dates as m...
40.807339
165
0.625337
1,114
8,896
4.889587
0.2307
0.030843
0.016706
0.015421
0.321278
0.212961
0.176244
0.156967
0.156967
0.143749
0
0.018971
0.241569
8,896
217
166
40.995392
0.78835
0.064636
0
0.260116
0
0
0.071558
0
0
0
0
0
0
1
0.098266
false
0.138728
0.057803
0
0.184971
0.00578
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3051b98951c21bd4429d8c08c1c8331434412e69
4,431
py
Python
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
1
2019-12-01T10:47:30.000Z
2019-12-01T10:47:30.000Z
eval_race.py
l11x0m7/AITeaching
03e85afbcdcab7838d4c9b9e11ddc8225c3dfbb7
[ "MIT" ]
null
null
null
import torch import numpy as np import os import sys from fairseq.data.data_utils import collate_tokens from fairseq.models.roberta import RobertaModel import time roberta = RobertaModel.from_pretrained('checkpoints/', checkpoint_file='ck.pt', data_name_or_path='data/processed_RACE/') roberta.eval() def eval_one_e...
59.08
1,546
0.672986
704
4,431
4.190341
0.401989
0.018983
0.035593
0.042712
0.217288
0.217288
0.140678
0.140678
0.140678
0.140678
0
0.031023
0.22162
4,431
74
1,547
59.878378
0.824297
0.079666
0
0.192308
0
0.019231
0.493487
0.013763
0
0
0
0
0
1
0.038462
false
0.019231
0.134615
0
0.173077
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3066e6439632008223c0fd046661610d442765bc
4,681
py
Python
package/statistics.py
vohoaiviet/PyReID
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
14
2015-11-23T16:26:58.000Z
2019-10-02T07:47:09.000Z
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
null
null
null
package/statistics.py
Luigolas/PyReid
f13986a6a14bf263383ec97c64ede314aca40426
[ "MIT" ]
8
2016-08-06T05:45:48.000Z
2022-02-05T06:21:26.000Z
__author__ = 'luigolas' import numpy as np from scipy.stats import cumfreq class Statistics(): """ Position List: for each element in probe, find its same ids in gallery. Format: np.array([[2,14],[1,2],...]) Mean List: Calculate means of position list by axis 0. Format: np.array([1.52, 4.89]) Mode_li...
37.150794
120
0.58919
579
4,681
4.585492
0.336788
0.117514
0.044821
0.027119
0.084369
0.045951
0.045951
0.027119
0
0
0
0.020783
0.29075
4,681
125
121
37.448
0.778916
0.444136
0
0
0
0
0.012221
0
0
0
0
0.016
0
1
0.163265
false
0
0.040816
0
0.265306
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
30696989ca682d46c351e2a46bb6af6c82145eb0
3,443
py
Python
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
null
null
null
Shop/forms.py
KumarSantosh22/TheShoppingCArt
e2e2f5c80f6d8a1c418c16ed95ada39b3b3bd502
[ "FTL" ]
3
2021-04-28T07:49:40.000Z
2021-04-28T17:59:13.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from .models import Customer, Seller, Product, Order class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=True) last_name = forms.CharField(max_lengt...
40.988095
137
0.639559
371
3,443
5.77628
0.226415
0.058796
0.055996
0.078395
0.730751
0.684088
0.684088
0.684088
0.620625
0.582361
0
0.01434
0.230322
3,443
84
138
40.988095
0.79434
0
0
0.522388
0
0
0.294135
0
0
0
0
0
0
1
0
false
0.059701
0.059701
0
0.462687
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
307fe557fde0d2f4724e816d89631bf4c19e5543
186
py
Python
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
6-distinct-values-v1/mapper_2.py
mikhaildruzhinin/stepik-hadoop
739413ffeeb3e04c5675c3c126a45eb3f24914d4
[ "MIT" ]
null
null
null
import sys def main(): for line in sys.stdin: value, group = line.strip().split(',') print(group, 1, sep='\t') if __name__ == '__main__': main()
14.307692
46
0.505376
23
186
3.73913
0.782609
0
0
0
0
0
0
0
0
0
0
0.008
0.327957
186
12
47
15.5
0.68
0
0
0
0
0
0.05914
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0618cfbdfa965d703fa909c1b6226865c210caa9
452
py
Python
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
5
2021-06-12T13:03:25.000Z
2022-03-14T11:16:04.000Z
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
fda-analyse-service/dropMDB.py
fair-data-austria/dbrepo
642daec21a1c845c78d56d7d812523f1d1835531
[ "CC-BY-4.0" ]
null
null
null
from psycopg2 import connect import requests import json r = requests.get( "http://localhost:9091/api/getDatabaseContainerByContainerID", params = {"containerID":"Metadatabase"} ) r.json() conn=connect( dbname="metadatabase", user = "postgres", host = r.json()['IpAddress'], password = "postgr...
17.384615
64
0.692478
50
452
6.26
0.66
0.031949
0
0
0
0
0
0
0
0
0
0.013123
0.15708
452
26
65
17.384615
0.808399
0
0
0
0
0
0.370861
0
0
0
0
0
0
1
0
false
0.052632
0.157895
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0626ef011bc905ed25a0243ba65749c5fcdfec23
18,567
py
Python
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
utils/utils_data_association.py
zineanteoh/I24-trajectory-generation
ef0b5160923b87187f65f40da89f7349182dedce
[ "MIT" ]
null
null
null
import numpy as np import torch from collections import defaultdict, deque, OrderedDict import heapq from data_structures import DoublyLinkedList, UndirectedGraph,Fragment import time import sys loss = torch.nn.GaussianNLLLoss() def _compute_stats(track): t,x,y = track['t'],track['x'],track['y'] ct...
41.817568
149
0.522271
2,314
18,567
4.097234
0.136128
0.025314
0.024048
0.031642
0.69075
0.654783
0.62736
0.61523
0.61523
0.61523
0
0.020297
0.357839
18,567
444
150
41.817568
0.774889
0.262886
0
0.524823
0
0
0.024951
0
0
0
0
0
0
1
0.024823
false
0
0.024823
0
0.088652
0.035461
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
062fa22aced8965048eae9457b5cdda95f4b8fc2
2,269
py
Python
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
riva/temp scripts/button_scraper.py
nvitha/Smart-Cities
9a4cb29b143956bb73789e4af2619cde681393be
[ "MIT" ]
null
null
null
import csv import MySQLdb from datetime import datetime from tabulate import tabulate #should be changed to sys/argv but this is temporary anyway FILENAME = '/tmp/buttons.csv' NUM_ROWS = 2 def tabulate_dataset(table): headers = ["Mode", "Datetime"] print tabulate(table, headers, tablefmt="grid") + '\n' def...
27.011905
79
0.584839
292
2,269
4.428082
0.438356
0.037123
0.037123
0.026295
0.029389
0
0
0
0
0
0
0.005566
0.287351
2,269
83
80
27.337349
0.794063
0.211547
0
0
0
0
0.124437
0.016892
0
0
0
0
0
0
null
null
0.020408
0.081633
null
null
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0633ac683c3ed56680bcb92fef00c1d243facc3c
3,040
py
Python
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
null
null
null
backend/resources/admins.py
JyLIU-emma/projet-techweb
07b1d3df4d97850745d61f04c311f6e364901790
[ "CC0-1.0" ]
1
2021-02-28T21:52:47.000Z
2021-02-28T21:52:47.000Z
from flask import Flask, request, url_for, redirect, session, flash, jsonify, abort import json # from flask_login import LoginManager, UserMixin, login_required, logout_user from flask_login import login_user, logout_user, login_required import os from flask_restful import Resource, Api from passlib.apps import ...
33.406593
108
0.608553
363
3,040
5.022039
0.371901
0.042238
0.053758
0.021942
0.131651
0.098738
0.070214
0.044981
0
0
0
0.010959
0.279605
3,040
90
109
33.777778
0.821461
0.097039
0
0.206897
0
0
0.215449
0
0
0
0
0
0
1
0.086207
false
0.206897
0.137931
0.034483
0.362069
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0639398dfb32e33d9f80356f092412a5f93dcc65
368
py
Python
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
src/pyramid_resourceful/__init__.py
wylee/pyramid_resourceful
a755cbfd75335eb5526df7bd624dcb9afa2645c9
[ "MIT" ]
null
null
null
from . import config as config_module from .resource import resource_config, Resource from .view import ResourceView __all__ = [ "resource_config", "Resource", "ResourceView", ] __version__ = "1.0a2" def includeme(config): for name in config_module.__all__: method = getattr(config_module, n...
19.368421
47
0.709239
43
368
5.651163
0.488372
0.148148
0.18107
0
0
0
0
0
0
0
0
0.010204
0.201087
368
18
48
20.444444
0.816327
0
0
0
0
0
0.108696
0
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.307692
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
063b14d87276bf24509b35e8dd89ae6d528821b9
518
py
Python
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/64-caesar-cipher-2.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def decryped_data(text, key): char_lower = "" for i in range(97, 123): char_lower += chr(i) char_lower *= 2 char_upper = char_lower.upper() decryped = "" for i in text: if i in char_lower: decryped += char_lower[char_lower.index(i, 26) - key] elif i in char_up...
24.666667
65
0.57722
73
518
3.917808
0.342466
0.22028
0.111888
0.132867
0
0
0
0
0
0
0
0.027778
0.305019
518
20
66
25.9
0.766667
0
0
0
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0
0
0.111111
0.055556
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
063efdb8c7270aa4b860492c35df24062791fbc9
297
py
Python
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
examples/paragraph_based_segmentation.py
gakhov/sbdc
0c6a3e1a671e3adb7f7ab8ca366c78a7ece43b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sbdc.preprocessing import ContiguousSegmentSet from sbdc.datasets import bbc_load X = bbc_load() cs = ContiguousSegmentSet( min_segment_length=100, small_segment_vanish_strategy="top") cs.fit(X[:, 2]) text_segments = cs.transform() print text_segments[:2]
19.8
51
0.744108
40
297
5.3
0.675
0.075472
0
0
0
0
0
0
0
0
0
0.023346
0.13468
297
14
52
21.214286
0.801556
0.070707
0
0
0
0
0.010949
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0640bc1b181bd6fee650f3342edd6931b1ff3c2c
554
py
Python
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
src/backend/hacker_gif_poll/graphql_api/tenor/queries/hacker_gif.py
guligon90/hacker-gif-poll
d3c4f82191c956f8a4892e60ff72a28c2c858223
[ "MIT" ]
null
null
null
# Base imports from os import environ # Third party imports from graphene import Field, ObjectType, String, Int # Project imports from graphql_api.tenor.schemas.hacker_gif.result import Result from graphql_api.tenor.resolvers.hacker_gif import resolve_hacker_gifs API_KEY = environ.get('TENOR_API_KEY') class Hack...
23.083333
70
0.743682
73
554
5.424658
0.465753
0.083333
0.070707
0.09596
0
0
0
0
0
0
0
0.004386
0.176895
554
23
71
24.086957
0.864035
0.086643
0
0
0
0
0.037924
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
06421c486cf48d8751641e5e70de10c89a4e549d
2,367
py
Python
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
null
null
null
WebServer.py
FrancescoRisso/Domotico-casa
ff0c5d757c15074a2069a1e16eb41680bef2389a
[ "Apache-2.0" ]
1
2019-04-09T06:50:06.000Z
2019-04-09T06:50:06.000Z
# coding: latin-1 # Flask example: https://realpython.com/flask-by-example-part-1-project-setup/ from flask import Flask from waitress import serve app = Flask(__name__) from functions.date import get_date from functions.connect import connect header = '<html>\n\t<header>\n\t\t<title>\n\t\t\tHome control panel\n\t\...
35.863636
246
0.6485
413
2,367
3.653753
0.346247
0.067594
0.053678
0.031809
0.259775
0.206097
0.156395
0.126574
0.126574
0.02452
0
0.015324
0.145332
2,367
65
247
36.415385
0.730598
0.207858
0
0.058824
0
0.205882
0.431025
0.246914
0
0
0
0
0
1
0.088235
false
0
0.117647
0
0.294118
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
06440df8fe03e6136138c3851bd70beb0db8af44
5,823
py
Python
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
9
2017-06-06T17:47:57.000Z
2021-08-06T18:30:11.000Z
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
null
null
null
validate_tags/validate_master.py
asurion/Hibernate
b95c68ba8dba6a43baea288ade231944d1719988
[ "Apache-2.0" ]
null
null
null
import datetime import pytz from utils.timezones import time_zones from utils.CalculateHours import calc_hours def validate_schedule(resource, this_tag, customTagName): t = this_tag if t['Key'].lower() == customTagName.lower(): state = resource.state['Name'] stop_instance = False st...
35.290909
117
0.493732
537
5,823
5.284916
0.232775
0.028189
0.024665
0.042283
0.310782
0.266385
0.243834
0.243834
0.22692
0.123326
0
0.009043
0.4113
5,823
164
118
35.506098
0.818845
0.03864
0
0.222222
0
0.008547
0.097155
0.005904
0
0
0
0
0
0
null
null
0
0.034188
null
null
0.059829
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
06499670b453111a27b20a04dcc90e10b1a775c3
1,418
py
Python
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/_test_callable_py3.py
youknowone/callable
a31ea23103d7df156c30d990c5c249844ce302f6
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import asyncio from callable import Callable from signature import signature import pytest def f1(a: int, b: str = 'x') -> None: pass @asyncio.coroutine def f2(a: int, b: str = 'x') -> None: pass @pytest.mark.parametrize('f,sig', [ (lambda: None, 'lambda'), (lambda a, b: None, 'lambda a, b'), ...
28.938776
85
0.568406
231
1,418
3.458874
0.194805
0.08761
0.100125
0.075094
0.44806
0.360451
0.261577
0.166458
0
0
0
0.035149
0.197461
1,418
48
86
29.541667
0.66696
0
0
0.138889
0
0
0.16796
0
0
0
0
0
0.055556
1
0.138889
false
0.055556
0.111111
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
1
0
0
0
0
0
1
064b9917350edf24d9d7c74cf51fcf14eb034321
569
py
Python
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
gameplay/planning.py
ericgreveson/xwing
5760bf9695b5e081b051f29dce1ba1bf2bc94555
[ "MIT" ]
null
null
null
class Planning: """ This class represents the Planning phase of a turn """ def __init__(self, game): """ Constructor game: The game under way """ self._game = game def execute(self): """ Run the Planning phase """ ...
28.45
88
0.534271
64
569
4.578125
0.59375
0.109215
0.109215
0
0
0
0
0
0
0
0
0
0.377856
569
20
89
28.45
0.827684
0.254833
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
06517cf6f2e451230d0d6eb3711d313d63aa2c66
564
py
Python
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/examples/dev/_semantic_text_features.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
from autogoal.contrib import find_classes from autogoal.kb import * from autogoal.kb import build_pipelines, build_pipeline_graph from autogoal.contrib.spacy import SpacyNLP from autogoal.contrib._wrappers import FlagsMerger import logging logging.basicConfig(level=logging.INFO) pipeline_space = build_pipeline_gra...
22.56
61
0.77305
69
564
6.144928
0.521739
0.141509
0.134434
0.09434
0
0
0
0
0
0
0
0.006186
0.140071
564
24
62
23.5
0.868041
0.090426
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0653906f675760bbd82805e22137ded59d26086f
1,471
py
Python
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
test/test_io.py
wiktorn/pyosmium
0517eae40da1347523c72a6cb097a5b6158b25a8
[ "BSD-2-Clause" ]
null
null
null
# SPDX-License-Identifier: BSD # # This file is part of Pyosmium. # # Copyright (C) 2022 Sarah Hoffmann. import pytest import osmium as o def _run_file(fn): rd = o.io.Reader(fn) try: o.apply(rd, o.SimpleHandler()) finally: rd.close() def test_node_only(test_data): _run_file(test_data(...
21.955224
82
0.636302
225
1,471
3.924444
0.422222
0.12684
0.074745
0.101925
0.339751
0.310306
0.310306
0.244621
0.097395
0.097395
0
0.053541
0.21278
1,471
66
83
22.287879
0.708981
0.063902
0
0.302326
0
0.023256
0.215901
0.042305
0
0
0
0
0.069767
1
0.209302
false
0
0.046512
0
0.255814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0661891491bb2243d237b2af57e0f78a53d8f98b
250
py
Python
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
14
2018-04-06T16:19:38.000Z
2018-04-09T18:59:08.000Z
globe/util/clock.py
T620/globe
5033a9750387d169b757538764bdf4fd229b81ae
[ "MIT" ]
null
null
null
def timeNow(): import time rightNow = time.localtime(time.time()) date = time.strftime("%a %b %d", rightNow) time = time.strftime("%H:%M:%S", rightNow) timeStamp = { "time": time, "date": date } print timeStamp['time'] return timeStamp
17.857143
43
0.644
33
250
4.878788
0.515152
0.149068
0.149068
0
0
0
0
0
0
0
0
0
0.172
250
13
44
19.230769
0.777778
0
0
0
0
0
0.112
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
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
1
0
0
0
0
0
0
0
0
1
0665edd3f6dbbe3c348e0f2328bbc74630f84ac0
481
py
Python
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
Traits/manual/this.py
marshallmcdonnell/interactive_plotting
35e9a781fa1a7328679794d27e24e194e35c012b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # this.py --- Example of This predefined trait from traits.api import HasTraits, This class Employee(HasTraits): manager = This #--------------------------------------- # Extrat class Executive(Employee): pass fred = Employee() mary = Executive() # The following is OK, because fred's...
20.041667
60
0.665281
66
481
4.848485
0.560606
0.075
0.06875
0.08125
0.09375
0
0
0
0
0
0
0
0.172557
481
23
61
20.913043
0.80402
0.544699
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.111111
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
1
0
0
0
0
0
1
066ba314a42c5ac31373da270a9eb728c97a0653
1,374
py
Python
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
null
null
null
tests/test_signal.py
etcd/manticore
87073d9985c4ca445217b7b135a6af0a51044b21
[ "Apache-2.0" ]
1
2021-12-26T12:57:01.000Z
2021-12-26T12:57:01.000Z
import unittest from manticore.utils.event import Signal class Sender(object): def __init__(self): self.sig = Signal() self.sig2 = Signal() class ManticoreDriver(unittest.TestCase): def setUp(self): self.state = {} def tearDown(self): pass def setReceived(self, key,...
19.628571
56
0.569869
159
1,374
4.874214
0.245283
0.116129
0.056774
0.08129
0.425806
0.375484
0.375484
0.375484
0.197419
0
0
0.005176
0.296943
1,374
69
57
19.913043
0.797101
0
0
0.285714
0
0
0.053936
0
0
0
0
0
0.119048
1
0.238095
false
0.02381
0.047619
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
1
0
0
0
0
0
0
0
1
067de1744accb6c29040ae07655261d1c6513b87
33,808
py
Python
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
1
2021-03-31T00:35:00.000Z
2021-03-31T00:35:00.000Z
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
null
null
null
Public_accessV3.py
nismod/natural-capital-mapping
f388fee3c2592bf99eb628b4d4743bf9be3d4346
[ "MIT" ]
2
2020-01-30T09:40:36.000Z
2021-04-16T09:36:40.000Z
# Aim is to apply a multiplier to the natural capital scores to reflect the degree of public access # Challenge is that it is difficult to clip or intersect the complex public access layer with the large and # detailed OSMM-based base map - it takes days to run and then fails. # So here we extract a subset of the base ...
60.479428
141
0.664458
4,101
33,808
5.271641
0.171422
0.010546
0.045608
0.015634
0.321939
0.251769
0.181229
0.153476
0.119201
0.082705
0
0.007427
0.223409
33,808
559
142
60.479428
0.815997
0.284637
0
0.171958
0
0.005291
0.328691
0.046564
0
0
0
0
0
0
null
null
0
0.010582
null
null
0.153439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
067f96e0223f4a4ef755767aa7893138791277ee
3,688
py
Python
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
null
null
null
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
3
2018-04-27T04:11:13.000Z
2018-04-28T01:26:57.000Z
old_site/import/scraper.py
basilleaf/dailyrings
e970ee7771bd1fb60b07f8208b2ffc4866779e88
[ "MIT" ]
null
null
null
""" this script parses the pds-rings press release gallery tree at base_url = "http://pds-rings.seti.org/saturn/cassini/" if an image already exists in the database it is updated to get only the most recent month set latest_month_only to True """ latest_month_only = True # like I was really going to do this monthly ...
33.225225
182
0.639371
505
3,688
4.546535
0.328713
0.031359
0.015679
0.020906
0.134582
0.09669
0.075784
0.061847
0.033972
0
0
0.005644
0.231291
3,688
110
183
33.527273
0.804233
0.078633
0
0.111111
0
0
0.152645
0
0
0
0
0
0
0
null
null
0
0.111111
null
null
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
1
0
0
0
0
0
0
0
0
1
0687517d0be83d1b02e62dee6d9d45a4dee1e6e1
4,959
py
Python
auth/util.py
prajask/Find-Your-Doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
1
2020-09-10T10:52:21.000Z
2020-09-10T10:52:21.000Z
auth/util.py
prajask/find-your-doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
null
null
null
auth/util.py
prajask/find-your-doctor
a4fc682a1757d83bd62b9daea7476f97db91ffb8
[ "MIT" ]
null
null
null
""" Authentication Utility Functions """ from flask import session from models import Patient, Doctor, Degree, database import hashlib, binascii from config import SECRET_KEY def get_degrees(): return [ degree.to_dict() for degree in Degree.query.all() ] def register_user(user_data): registration_details = ...
32.201299
154
0.689655
591
4,959
5.499154
0.145516
0.061538
0.04
0.063077
0.412615
0.380923
0.350769
0.283385
0.174154
0.174154
0
0.004063
0.205888
4,959
154
155
32.201299
0.821229
0.006453
0
0.305556
0
0
0.107339
0.023379
0
0
0
0
0
1
0.138889
false
0.092593
0.037037
0.027778
0.342593
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
068765a77334bb8b750cf60699365fc4fc30858b
4,004
py
Python
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
player.py
akrabio/NBANormalizedStats
de5fb5243e9e26e4d534c319ea984712a908cadc
[ "MIT" ]
null
null
null
from nba_py import player from numpy import mean import league from consts import all_time_stats import consts name_to_index = {'season': 1, consts.rebounds: 20, consts.assists: 21, consts.steals: 22, consts.blocks: 23, consts.points: 26} class Player: def __init__(self, first, last): print 'Getting {} ...
43.521739
130
0.623876
443
4,004
5.392777
0.189616
0.073671
0.032231
0.045207
0.13311
0.060695
0
0
0
0
0
0.006209
0.275974
4,004
91
131
44
0.817868
0.015485
0
0.026316
0
0
0.057375
0
0
0
0
0
0
0
null
null
0
0.065789
null
null
0.118421
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
06911eef246c1772226f520da651c6e6b9337698
40,564
py
Python
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/rpc/rpc.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
43.852973
200
0.636377
4,868
40,564
5.048685
0.135168
0.006917
0.007405
0.005534
0.343207
0.265289
0.241364
0.186028
0.161655
0.146723
0
0.006099
0.276501
40,564
924
201
43.900433
0.831334
0.056479
0
0.214286
0
0.024259
0.092798
0.012741
0
0
0
0.001082
0
0
null
null
0.002695
0.071429
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0694fc4578a8a2dc3e2046b27ace2ea005f03139
5,332
py
Python
api/login.py
lachouettecoop/inventory-coop-api
583866737522ef473cbc05664835fe50787e2146
[ "MIT" ]
null
null
null
api/login.py
lachouettecoop/inventory-coop-api
583866737522ef473cbc05664835fe50787e2146
[ "MIT" ]
17
2020-10-05T19:21:55.000Z
2022-02-13T09:28:44.000Z
api/login.py
lachouettecoop/inventory-coop
c89488ea177b5616f1fe0bb5f149c61ae4bce2d1
[ "MIT" ]
null
null
null
import os import time import jwt import ldap from eve.auth import TokenAuth from flask import Blueprint, abort, jsonify, request blueprint = Blueprint("login", __name__) ADMIN_USERS = os.environ.get("ADMIN_USERS", "papanowel@gmail.com") JWT_ALGORITHM = os.environ.get("JWT_ALGORITHM", "HS256") JWT_EXPIRE_OFFSET = os....
33.325
99
0.61853
637
5,332
5.025118
0.295133
0.025305
0.033739
0.024992
0.322399
0.21587
0.199938
0.199938
0.199938
0.153702
0
0.013462
0.261628
5,332
159
100
33.534591
0.799594
0.095836
0
0.210084
0
0
0.206296
0.040714
0
0
0
0
0
1
0.067227
false
0.05042
0.05042
0
0.210084
0.033613
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
069560330062cf15b22f72ebec9dba45c5f2ba00
411
py
Python
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
4
2015-03-25T01:46:39.000Z
2017-04-30T18:04:46.000Z
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
null
null
null
tools/pinyin-completion/setup.py
Vayn/dotfiles
5a3e0e71669dd1832df7147b14c2943de6746119
[ "MIT" ]
null
null
null
#!/usr/bin/env python # vim: set fileencoding=utf-8 : from distutils.core import setup setup( name="pinyin-comp", version="0.1", description="complete path containing Chinese by pinyin acronym", author="Jekyll Wu", author_email="adaptee@gmail.com", url="http://www.github.com/a...
27.4
73
0.622871
50
411
5.1
0.8
0.117647
0
0
0
0
0
0
0
0
0
0.009434
0.226277
411
14
74
29.357143
0.792453
0.121655
0
0
0
0
0.412256
0
0
0
0
0
0
1
0
true
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
069eac769d2ccf455170294707453e0b3dff4035
1,134
py
Python
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
16
2019-06-19T05:43:01.000Z
2020-12-01T13:24:55.000Z
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
null
null
null
NLP/3-Advanced-RNN-2/3-1-cnn-rnn-1.py
agarwalanant/ThaparWorkshopANN
fd7858b89ade8a621f30e389721166b222228f02
[ "MIT" ]
37
2019-06-17T11:53:13.000Z
2020-06-02T13:05:31.000Z
import numpy as np from sklearn.metrics import accuracy_score from keras.datasets import cifar10 from keras.utils import to_categorical from keras.models import Sequential, Model from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense, LSTM, Input, Activation, Reshape, concatenate from keras import optimizers (...
37.8
157
0.751323
172
1,134
4.796512
0.424419
0.067879
0.04
0.029091
0
0
0
0
0
0
0
0.040594
0.109347
1,134
30
158
37.8
0.776238
0
0
0
0
0
0.054626
0.021145
0
0
0
0
0
1
0
false
0
0.304348
0
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
06a1854bfcd9896d019df15af2c9bb29dfe25337
4,152
py
Python
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
5
2021-03-05T12:19:44.000Z
2022-01-05T19:28:44.000Z
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
null
null
null
relations-finder/src/relations_finder.py
ahmed91abbas/wiki-relations
9f8d20c512f993cab6065cb2695c996c076b6d13
[ "MIT" ]
2
2021-03-13T12:07:33.000Z
2021-03-30T07:58:38.000Z
import en_core_web_sm from spacy import displacy class Relations_finder: def __init__(self): self.subject = '' self.nlp = en_core_web_sm.load() def generate_html(self, nlp_doc): html = displacy.render([nlp_doc], style="dep", page=True) with open('spacy.html', 'w') as out_file:...
37.071429
98
0.575626
495
4,152
4.616162
0.19596
0.068271
0.039387
0.041575
0.280088
0.210066
0.146608
0.10547
0.082713
0.082713
0
0
0.313584
4,152
111
99
37.405405
0.801754
0
0
0.163265
1
0
0.084778
0.007466
0
0
0
0
0
1
0.122449
false
0.010204
0.020408
0
0.326531
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
06a1e865401185ec36f7fc0f3099d2dfb3463d93
8,597
py
Python
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
app/users/routes.py
Shikhar-SRJ/DL_Model_APIs
ea26cb415477cf58a2ddd925689b62588bf95b13
[ "MIT" ]
null
null
null
from flask import jsonify, request, Blueprint, current_app, send_file, make_response import tensorflow as tf import numpy as np from app.users import utils import cv2 from app.models import User, Data, Predictions, Coordinates from app import db from werkzeug.security import generate_password_hash, check_password_hash ...
41.331731
139
0.609282
1,027
8,597
4.933788
0.227848
0.035919
0.039471
0.016775
0.219459
0.169923
0.119795
0.103809
0.052891
0.052891
0
0.011907
0.257532
8,597
207
140
41.531401
0.781921
0.085262
0
0.141026
0
0
0.10529
0.002677
0
0
0
0
0
1
0.051282
false
0.051282
0.057692
0.00641
0.205128
0.012821
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
06a27f548fc5e06937812be30ed778ed22cfc7a5
2,494
py
Python
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
98
2019-08-29T21:38:44.000Z
2022-01-26T04:59:57.000Z
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
143
2019-09-11T15:32:17.000Z
2021-06-08T21:48:30.000Z
bionic/gcs.py
IDl0T/bionic
8eaa868a2e7af81bb561492c045feb414f7c6326
[ "Apache-2.0" ]
20
2019-09-13T18:13:03.000Z
2021-12-03T19:51:01.000Z
""" Utilities for working with Google Cloud Storage. """ import logging import warnings from .deps.optdep import import_optional_dependency logger = logging.getLogger(__name__) _cached_gcs_fs = None def get_gcs_fs_without_warnings(cache_value=True): # TODO It's not expensive to create the gcs filesystem, but...
38.369231
85
0.676423
369
2,494
4.436314
0.444444
0.036652
0.040318
0.027489
0.060476
0.060476
0.060476
0
0
0
0
0.001606
0.251002
2,494
64
86
38.96875
0.874732
0.51684
0
0
0
0
0.104991
0
0
0
0
0.015625
0
1
0.076923
false
0
0.153846
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
06b1dfaeb76409a1c03b523aa234e5fabb549ad9
2,942
py
Python
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
105
2019-09-30T06:05:38.000Z
2022-03-02T09:48:31.000Z
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
103
2019-09-18T08:30:23.000Z
2022-03-16T22:24:14.000Z
fastmri_recon/models/subclassed_models/updnet.py
samiulshuvo/fastmri-reproducible-benchmark
5ac9ba3e7f1ad859dcf74e7019b574a6bf065eac
[ "MIT" ]
38
2019-09-30T06:05:41.000Z
2022-02-26T14:07:52.000Z
from .unet import UnetComplex from .cross_domain import CrossDomainNet from ..utils.fourier import FFT, IFFT class UPDNet(CrossDomainNet): def __init__( self, n_layers=3, layers_n_channels=[8, 16, 32], res=True, non_linearity='relu', channel_...
37.240506
81
0.602311
355
2,942
4.64507
0.253521
0.051546
0.063675
0.034566
0.378411
0.332323
0.24621
0.234081
0.234081
0.204973
0
0.008991
0.319511
2,942
78
82
37.717949
0.814685
0.03433
0
0.222222
0
0
0.019034
0.007402
0
0
0
0.012821
0
1
0.027778
false
0
0.041667
0
0.097222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ebff48e4dc84757244340320b746691161bc3959
1,080
py
Python
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
bdc_collection_builder/celery/worker.py
rodolfolotte/bdc-collection-builder
62583f6c25bca79e7e1b5503bc6308298838c877
[ "MIT" ]
null
null
null
# # This file is part of Brazil Data Cube Collection Builder. # Copyright (C) 2019-2020 INPE. # # Brazil Data Cube Collection Builder is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Defines a structure component to run celery work...
25.714286
96
0.759259
148
1,080
5.391892
0.540541
0.037594
0.052632
0.06015
0.077694
0
0
0
0
0
0
0.009912
0.159259
1,080
41
97
26.341463
0.868943
0.447222
0
0
0
0
0.065719
0
0
0
0
0
0
1
0.133333
false
0
0.333333
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
2304f8609ba1a32f4e4adb328ecb9521ea5b5b8e
893
py
Python
onconet/models/custom_resnet.py
harrivle/Mirai
ea2d4839f1f8b9f881798b819b2192ce2795bd5d
[ "MIT" ]
37
2021-01-28T06:00:34.000Z
2022-03-29T21:14:12.000Z
onconet/models/custom_resnet.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
null
null
null
onconet/models/custom_resnet.py
NkwamPhilip/Mirai
70413de690da36c5878e2e6006711476e166bb1d
[ "MIT" ]
14
2021-02-02T09:42:18.000Z
2022-03-23T00:36:41.000Z
from torch import nn from onconet.models.factory import RegisterModel, load_pretrained_weights, get_layers from onconet.models.default_resnets import load_pretrained_model from onconet.models.resnet_base import ResNet @RegisterModel("custom_resnet") class CustomResnet(nn.Module): def __init__(self, args): ...
37.208333
85
0.712206
111
893
5.396396
0.378378
0.075125
0.085142
0
0
0
0
0
0
0
0
0
0.207167
893
23
86
38.826087
0.846045
0
0
0
0
0
0.014558
0
0
0
0
0
0
1
0.157895
false
0
0.210526
0.052632
0.526316
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
2307774a7abd7ba51f7f8bdccce0f3ce8a1bc5ee
3,437
py
Python
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
cifar_mlp.py
oplatek/ALI
193b666f62236fa1837613beb807d9dcdf978ce6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging from argparse import ArgumentParser import theano from theano import tensor as tt from blocks.algorithms import GradientDescent, Adam from blocks.bricks import MLP, Tanh, Softmax from blocks.bricks.cost import CategoricalCrossEntropy, MisclassificationRate from blocks.initializati...
39.965116
92
0.676171
388
3,437
5.853093
0.412371
0.057244
0.02642
0.024659
0.074857
0.05284
0.05284
0.05284
0.05284
0.05284
0
0.022455
0.222578
3,437
85
93
40.435294
0.82747
0.005819
0
0
0
0
0.082845
0.025176
0
0
0
0
0
1
0.014085
false
0
0.323944
0
0.338028
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
230cfdf0108fc8a76637145365ade46b19c0f345
1,642
py
Python
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
catalog/admin.py
iamsaeedfadaei/Library
45a7b5c421252e20d2e1c0f9b6794b85dfc40eb3
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Book, Author, BookInstance, Genre #creating inline for copy instances in book model by TabularInline. # we have foreignkey from bookinstances to book and from book to authors --> just the way of foreignkey! class BooksInstanceInline(admin.TabularInline): model =...
31.576923
110
0.699147
202
1,642
5.554455
0.470297
0.04902
0.050802
0.069519
0.069519
0.069519
0.069519
0.069519
0.069519
0.069519
0
0
0.184531
1,642
51
111
32.196078
0.837939
0.328867
0
0
0
0
0.222121
0
0
0
0
0
0
1
0
false
0
0.068966
0
0.62069
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
230f2dcf82a79b046dcfaf9af3162a775c4bd915
1,198
py
Python
test/minpwm.py
delijati/ultrabot
37956187b3ed9a28ef655ab2ed064d11e5f29473
[ "MIT" ]
1
2016-12-06T01:25:03.000Z
2016-12-06T01:25:03.000Z
test/minpwm.py
delijati/ultrabot
37956187b3ed9a28ef655ab2ed064d11e5f29473
[ "MIT" ]
null
null
null
test/minpwm.py
delijati/ultrabot
37956187b3ed9a28ef655ab2ed064d11e5f29473
[ "MIT" ]
null
null
null
import enc import config import motor import threading import time enc_t = None pwm_range = (50, 90) class EncoderThread(enc.EncoderReader, threading.Thread): def __init__(self): enc.EncoderReader.__init__(self) threading.Thread.__init__(self) def main(): global enc_t enc_t = EncoderTh...
22.603774
62
0.537563
156
1,198
3.916667
0.352564
0.03928
0.045827
0.062193
0.373159
0.291326
0.291326
0.291326
0.291326
0.291326
0
0.014286
0.357262
1,198
52
63
23.038462
0.779221
0
0
0.325581
0
0
0.09182
0
0
0
0
0
0
0
null
null
0.023256
0.116279
null
null
0.139535
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
231680e3bbb8bd90319b6c531c7b915437fa932f
661
py
Python
src/code-challenges/codewars/7KYU/longest/test_longest.py
maltewirz/code-challenges
97777b10963f19bc587ddd984f0526b221c081f8
[ "MIT" ]
1
2020-08-30T07:52:20.000Z
2020-08-30T07:52:20.000Z
src/code-challenges/codewars/7KYU/longest/test_longest.py
maltewirz/code-challenges
97777b10963f19bc587ddd984f0526b221c081f8
[ "MIT" ]
6
2020-08-12T07:05:04.000Z
2021-08-23T06:10:10.000Z
src/code-challenges/codewars/7KYU/longest/test_longest.py
maltewirz/code-challenges
97777b10963f19bc587ddd984f0526b221c081f8
[ "MIT" ]
null
null
null
from longest import longest import unittest class Test(unittest.TestCase): def test_1(self): result = longest("aretheyhere", "yestheyarehere") self.assertEqual(result, "aehrsty") def test_2(self): result = longest("loopingisfunbutdangerous", "lessdangerousthancoding") self.ass...
26.44
79
0.673222
63
661
6.873016
0.47619
0.064665
0.157044
0
0
0
0
0
0
0
0
0.007619
0.205749
661
24
80
27.541667
0.817143
0
0
0
0
0
0.260212
0.104387
0
0
0
0
0.235294
1
0.235294
false
0
0.117647
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
23341f5ed2859fb2d6684316810220212f51ba71
612
py
Python
users/models.py
nimbustan/Otozi
69d2ff734da05ffdf87936b44a86f4ca00f1ca7a
[ "MIT" ]
null
null
null
users/models.py
nimbustan/Otozi
69d2ff734da05ffdf87936b44a86f4ca00f1ca7a
[ "MIT" ]
null
null
null
users/models.py
nimbustan/Otozi
69d2ff734da05ffdf87936b44a86f4ca00f1ca7a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class User(AbstractUser): """ Bu model kullanıcılar için kullanılacaktır. """ adres = models.CharField(max_length=255, null=True...
32.210526
110
0.727124
74
612
5.905405
0.648649
0.045767
0.08238
0.10984
0.201373
0.201373
0.201373
0.201373
0.201373
0
0
0.013487
0.151961
612
19
110
32.210526
0.828516
0.148693
0
0
0
0
0.108911
0.108911
0
0
0
0
0
1
0
false
0
0.3
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
233559cbbce20a6e666ce90f9a2459c195da1807
19,404
py
Python
Veerappan_bnfo601_exam2/Veerappan_BLAST_prot.py
aravindvrm/bnfo
a6d33b197626fdb753e256b7c38bd923c9c6ae99
[ "MIT" ]
null
null
null
Veerappan_bnfo601_exam2/Veerappan_BLAST_prot.py
aravindvrm/bnfo
a6d33b197626fdb753e256b7c38bd923c9c6ae99
[ "MIT" ]
null
null
null
Veerappan_bnfo601_exam2/Veerappan_BLAST_prot.py
aravindvrm/bnfo
a6d33b197626fdb753e256b7c38bd923c9c6ae99
[ "MIT" ]
null
null
null
""" Aravind Veerappan BNFO 601 - Exam 2 Question 2. Protein BLAST """ import math from PAM import PAM class BLAST(object): FORWARD = 1 # These are class variables shared by all instances of the BLAST class BACKWARD = -1 ROW = (0, 1) COLUMN = (1, 0) def __init__(self, query=None,...
48.148883
121
0.619408
2,681
19,404
4.312197
0.180903
0.011418
0.017559
0.01038
0.209497
0.171871
0.139867
0.129487
0.125422
0.099818
0
0.009995
0.314214
19,404
402
122
48.268657
0.858796
0.396155
0
0.160221
0
0
0.027314
0.008004
0.01105
0
0
0
0
0
null
null
0
0.01105
null
null
0.027624
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1