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
be62c8d9e725078536f0891cffbcc08c85ff6f54
979
py
Python
my_general_helpers.py
arminbahl/drosophila_phototaxis_paper
e01dc95675f835926c9104b34bf6cfd7244dee2b
[ "MIT" ]
null
null
null
my_general_helpers.py
arminbahl/drosophila_phototaxis_paper
e01dc95675f835926c9104b34bf6cfd7244dee2b
[ "MIT" ]
null
null
null
my_general_helpers.py
arminbahl/drosophila_phototaxis_paper
e01dc95675f835926c9104b34bf6cfd7244dee2b
[ "MIT" ]
null
null
null
from scipy.signal import butter,filtfilt from numba import jit import bisect def is_number_in_sorted_vector(sorted_vector, num): index = bisect.bisect_left(sorted_vector, num) return index != len(sorted_vector) and sorted_vector[index] == num # def butter_lowpass(cutoff, fs, order=5): # nyq = 0.5 * fs # ...
27.971429
86
0.684372
151
979
4.238411
0.344371
0.09375
0.046875
0.021875
0.1375
0.1375
0.1375
0.1375
0.1375
0.1375
0
0.012771
0.200204
979
34
87
28.794118
0.804598
0.225741
0
0
0
0
0.004
0
0
0
0
0
0
1
0.166667
false
0.222222
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
be665281e674fbcee73480a5a06334a427283318
1,254
py
Python
download.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
2
2015-06-13T09:17:46.000Z
2015-10-25T15:31:33.000Z
download.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
null
null
null
download.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
3
2016-02-01T07:36:55.000Z
2018-08-03T12:22:20.000Z
import datetime import httplib import urllib from datetime import timedelta #now = datetime.datetime.now(); #today = now.strftime('%Y-%m-%d') #print today def isfloat(value): try: float(value) return True except ValueError: return False def convfloat(value): try: return float(value) except ValueError: ...
23.660377
93
0.692185
181
1,254
4.679558
0.469613
0.042503
0.047226
0.051948
0
0
0
0
0
0
0
0.022181
0.137161
1,254
52
94
24.115385
0.760628
0.089314
0
0.117647
0
0
0.212841
0.065963
0
0
0
0
0
0
null
null
0
0.117647
null
null
0.088235
0
0
0
null
0
0
0
0
0
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
be687c8fd20a0765459343471aaeb0dc60aa0c2b
666
py
Python
evennia/scripts/migrations/0013_auto_20191025_0831.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,544
2015-01-01T22:16:31.000Z
2022-03-31T19:17:45.000Z
evennia/scripts/migrations/0013_auto_20191025_0831.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
1,686
2015-01-02T18:26:31.000Z
2022-03-31T20:12:03.000Z
evennia/scripts/migrations/0013_auto_20191025_0831.py
Jaykingamez/evennia
cf7cab1fea99ede3efecb70a65c3eb0fba1d3745
[ "BSD-3-Clause" ]
867
2015-01-02T21:01:54.000Z
2022-03-29T00:28:27.000Z
# Generated by Django 2.2.6 on 2019-10-25 12:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("scripts", "0012_auto_20190128_1820")] operations = [ migrations.AlterField( model_name="scriptdb", name="db_typeclass_path", ...
28.956522
150
0.587087
76
666
5.013158
0.763158
0
0
0
0
0
0
0
0
0
0
0.075556
0.324324
666
22
151
30.272727
0.771111
0.067568
0
0
1
0.0625
0.298869
0.037157
0
0
0
0
0
1
0
false
0
0.0625
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be6d27c87017d3ff2b758a9a1954cf3e265b550c
554
py
Python
iocms/iocms/urls.py
Gaurav-Zaiswal/iw-acad-iocms-be
a133f120eed93433925608f08c5145d2d0d1db39
[ "MIT" ]
null
null
null
iocms/iocms/urls.py
Gaurav-Zaiswal/iw-acad-iocms-be
a133f120eed93433925608f08c5145d2d0d1db39
[ "MIT" ]
null
null
null
iocms/iocms/urls.py
Gaurav-Zaiswal/iw-acad-iocms-be
a133f120eed93433925608f08c5145d2d0d1db39
[ "MIT" ]
2
2021-09-16T04:44:59.000Z
2021-09-16T05:45:31.000Z
from django.contrib import admin from django.urls import include, path from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('class/', include('classroom.urls')), path('assignment-api/', include('assignment.urls', namespace='assign...
36.933333
80
0.720217
70
554
5.657143
0.414286
0.10101
0.070707
0
0
0
0
0
0
0
0
0
0.117329
554
14
81
39.571429
0.809816
0
0
0
0
0
0.203971
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
be6f16523ef2463524119c42f75567ed0f66d560
1,905
py
Python
src/security/__init__.py
slippers/blogging_security_flatpage
53644978b798c66369416b1e5625cc04d89c0a87
[ "MIT" ]
1
2018-12-31T05:30:13.000Z
2018-12-31T05:30:13.000Z
src/security/__init__.py
slippers/blogging_security_flatpage
53644978b798c66369416b1e5625cc04d89c0a87
[ "MIT" ]
null
null
null
src/security/__init__.py
slippers/blogging_security_flatpage
53644978b798c66369416b1e5625cc04d89c0a87
[ "MIT" ]
null
null
null
from src import app, db from .models import User, Role, RoleUsers from .security_admin import UserAdmin, RoleAdmin from flask_security import Security, SQLAlchemyUserDatastore, \ login_required, roles_accepted from flask_security.utils import encrypt_password def config_security_admin(admin): admin.add_view(U...
40.531915
83
0.752756
265
1,905
5.218868
0.328302
0.122198
0.049168
0.057845
0.284165
0.284165
0.248012
0.121475
0.121475
0
0
0
0.143307
1,905
46
84
41.413043
0.847426
0.251969
0
0
0
0
0.160537
0
0
0
0
0
0
1
0.076923
false
0.153846
0.192308
0
0.269231
0
0
0
0
null
0
0
0
0
0
0
0
0
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
be76f999496b5e5961109377d7a8e9bebf2c7e1e
2,576
py
Python
regexem.py
lvijay/ilc
1c3b1381e7e5a5064bda829e3d34bfaf24745d1a
[ "BSD-3-Clause-No-Nuclear-Warranty" ]
1
2019-01-03T17:44:11.000Z
2019-01-03T17:44:11.000Z
regexem.py
lvijay/ilc
1c3b1381e7e5a5064bda829e3d34bfaf24745d1a
[ "BSD-3-Clause-No-Nuclear-Warranty" ]
null
null
null
regexem.py
lvijay/ilc
1c3b1381e7e5a5064bda829e3d34bfaf24745d1a
[ "BSD-3-Clause-No-Nuclear-Warranty" ]
null
null
null
#!/usr/bin/python # -*- mode: python; -*- ## This file is part of Indian Language Converter ## Copyright (C) 2006 Vijay Lakshminarayanan <liyer.vijay@gmail.com> ## Indian Language Converter is free software; you can redistribute it ## and/or modify it under the terms of the GNU General Public License ## as published...
33.025641
77
0.632376
373
2,576
4.337802
0.490617
0.027812
0.024104
0.035229
0.067985
0.051916
0
0
0
0
0
0.029828
0.232143
2,576
77
78
33.454545
0.78817
0.552407
0
0.142857
0
0
0.018418
0
0.035714
0
0
0
0
0
null
null
0
0.071429
null
null
0.035714
0
0
0
null
0
0
0
0
0
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
be876cf3ef298b948a6559bdc7b9b04da2062463
589
py
Python
0201-0300/0251-Flatten 2D Vector/0251-Flatten 2D Vector.py
jiadaizhao/LeetCode
4ddea0a532fe7c5d053ffbd6870174ec99fc2d60
[ "MIT" ]
49
2018-05-05T02:53:10.000Z
2022-03-30T12:08:09.000Z
0201-0300/0251-Flatten 2D Vector/0251-Flatten 2D Vector.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
11
2017-12-15T22:31:44.000Z
2020-10-02T12:42:49.000Z
0201-0300/0251-Flatten 2D Vector/0251-Flatten 2D Vector.py
jolly-fellow/LeetCode
ab20b3ec137ed05fad1edda1c30db04ab355486f
[ "MIT" ]
28
2017-12-05T10:56:51.000Z
2022-01-26T18:18:27.000Z
class Vector2D: def __init__(self, v: List[List[int]]): def getIt(): for row in v: for val in row: yield val self.it = iter(getIt()) self.val = next(self.it, None) def next(self) -> int: result = self.val ...
22.653846
63
0.519525
77
589
3.896104
0.480519
0.093333
0.073333
0.1
0.14
0.14
0
0
0
0
0
0.013587
0.375212
589
25
64
23.56
0.80163
0.210526
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.285714
false
0
0
0.071429
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
be8cef6fbad82834998e279653a3e939a968c9d8
2,244
py
Python
instructions/instructions.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
instructions/instructions.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
instructions/instructions.py
fernandozanutto/PyNES
cb8d589ceb55cd7df0e114e726c6b6bbbc556172
[ "Apache-2.0" ]
null
null
null
from addressing import * from instructions.base_instructions import SetBit, ClearBit from instructions.generic_instructions import Instruction from status import Status # set status instructions class Sec(SetBit): identifier_byte = bytes([0x38]) bit = Status.StatusTypes.carry class Sei(SetBit): identifi...
25.213483
72
0.69385
275
2,244
5.498182
0.309091
0.123677
0.125661
0.062831
0.388889
0.267196
0.205688
0.15873
0.15873
0.15873
0
0.021715
0.199643
2,244
88
73
25.5
0.820156
0.021836
0
0.280702
0
0
0
0
0
0
0.018248
0
0
1
0.105263
false
0
0.070175
0.052632
0.719298
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
be917ccdfeb7754dd0eabc0327954755752723d8
425
py
Python
Estrutura_Decisao/who.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
Estrutura_Decisao/who.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
Estrutura_Decisao/who.py
M3nin0/supreme-broccoli
186c1ea3b839ba3139f9301660dec8fbd27a162e
[ "Apache-2.0" ]
null
null
null
prod1 = float(input("Insira o valor do produto A: ")) prod2 = float(input("Insira o valor do produto B: ")) prod3 = float(input("Insira o valor do produto C: ")) if prod1 < prod2 and prod1 < prod3: print ("Escolha o produto A é o mais barato") elif prod2 < prod1 and prod2 < prod3: print ("Escolha o produto B é...
38.636364
53
0.68
72
425
4.013889
0.291667
0.103806
0.16609
0.176471
0.605536
0.321799
0.321799
0
0
0
0
0.04491
0.214118
425
10
54
42.5
0.820359
0
0
0
0
0
0.451765
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
be99d62141111a8ad89510bea1e2a527e33cf08b
478
py
Python
autodiff/debug_vjp.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
1
2021-03-22T14:16:43.000Z
2021-03-22T14:16:43.000Z
autodiff/debug_vjp.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
autodiff/debug_vjp.py
Jakob-Unfried/msc-legacy
2c41f3f714936c25dd534bd66da802c26176fcfa
[ "MIT" ]
null
null
null
import pdb import warnings from jax import custom_vjp @custom_vjp def debug_identity(x): """ acts as identity, but inserts a pdb trace on the backwards pass """ warnings.warn('Using a module intended for debugging') return x def _debug_fwd(x): warnings.warn('Using a module intended for debu...
17.071429
67
0.713389
71
478
4.619718
0.492958
0.073171
0.103659
0.109756
0.310976
0.310976
0.310976
0.310976
0.310976
0.310976
0
0
0.209205
478
27
68
17.703704
0.867725
0.190377
0
0.142857
0
0
0.199461
0
0
0
0
0
0
1
0.214286
false
0
0.214286
0
0.642857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
bea3fce840a92d3dac26a2f605494f57192e6efe
1,217
py
Python
pyscf/nao/test/test_0037_aos.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
1
2019-07-01T12:39:45.000Z
2019-07-01T12:39:45.000Z
pyscf/nao/test/test_0037_aos.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
null
null
null
pyscf/nao/test/test_0037_aos.py
fdmalone/pyscf
021b17ac721e292b277d2b740e2ff8ab38bb6a4a
[ "Apache-2.0" ]
null
null
null
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
38.03125
102
0.739523
191
1,217
4.565445
0.633508
0.068807
0.029817
0.036697
0
0
0
0
0
0
0
0.019569
0.16023
1,217
31
103
39.258065
0.833659
0.508628
0
0
0
0
0.022453
0
0
0
0
0
0.166667
1
0.083333
false
0
0.333333
0
0.5
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
bea8aa6132f2274610cc25a57ec0c74c8765342d
371
py
Python
students/K33402/Komarov_Georgy/LAB2/elevennote/src/api/urls.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33402/Komarov_Georgy/LAB2/elevennote/src/api/urls.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33402/Komarov_Georgy/LAB2/elevennote/src/api/urls.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework_jwt.views import obtain_jwt_token from rest_framework.routers import DefaultRouter from .views import NoteViewSet app_name = 'api' router = DefaultRouter(trailing_slash=False) router.register('notes', NoteViewSet) urlpatterns = [ path('jwt-auth/', obtain...
23.1875
53
0.77628
48
371
5.8125
0.541667
0.078853
0.121864
0
0
0
0
0
0
0
0
0
0.121294
371
15
54
24.733333
0.855828
0
0
0
0
0
0.045822
0
0
0
0
0
0
1
0
false
0
0.363636
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
beb313eb5f64fc657c1686ad77dc2225b87a4889
570
py
Python
viewer_examples/plugins/median_filter.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
null
null
null
viewer_examples/plugins/median_filter.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
null
null
null
viewer_examples/plugins/median_filter.py
atemysemicolon/scikit-image
a48cf5822f9539c6602b9327c18253aed14fa692
[ "BSD-3-Clause" ]
null
null
null
from skimage import data from skimage.filter.rank import median from skimage.morphology import disk from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider, OKCancelButtons, SaveButtons from skimage.viewer.plugins.base import Plugin def median_filter(image, radius): return median(image, s...
25.909091
71
0.784211
74
570
5.986486
0.405405
0.148984
0.115124
0
0
0
0
0
0
0
0
0.005952
0.115789
570
21
72
27.142857
0.873016
0
0
0
0
0
0.015789
0
0
0
0
0
0
1
0.0625
false
0
0.375
0.0625
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
beb680071d94ed8dd93dc11b2e313714df1f9b83
1,727
py
Python
dingtalk/message/conversation.py
kangour/dingtalk-python
b37b9dac3ca3ff9d727308fb120a8fd05e11eaa5
[ "Apache-2.0" ]
88
2017-12-28T05:23:15.000Z
2021-12-20T13:44:18.000Z
dingtalk/message/conversation.py
niulinlnc/dingtalk-python
c4209658f88344e8f0890137ed7c887c8b740a6c
[ "Apache-2.0" ]
8
2018-04-28T05:41:49.000Z
2021-06-01T21:51:11.000Z
dingtalk/message/conversation.py
niulinlnc/dingtalk-python
c4209658f88344e8f0890137ed7c887c8b740a6c
[ "Apache-2.0" ]
43
2017-12-07T09:43:48.000Z
2021-12-03T01:19:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/11/30 下午3:02 # @Author : Matrix # @Github : https://github.com/blackmatrix7/ # @Blog : http://www.cnblogs.com/blackmatrix/ # @File : messages.py # @Software: PyCharm import json from ..foundation import * from json import JSONDecodeError __author__ = 'blackm...
31.981481
120
0.70469
227
1,727
5.044053
0.427313
0.048908
0.034935
0.060262
0.408734
0.408734
0.265502
0.265502
0.265502
0.265502
0
0.009059
0.169079
1,727
53
121
32.584906
0.78885
0.149392
0
0.272727
0
0
0.209733
0.119945
0
0
0
0
0
1
0.090909
false
0.060606
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bebc4c58538a85c2ad00b34ebacde9538e3d0d9b
1,613
py
Python
board/models.py
Fahreeve/TaskManager
7f0a16312b43867270eaade1fe153c07abc2c10e
[ "MIT" ]
null
null
null
board/models.py
Fahreeve/TaskManager
7f0a16312b43867270eaade1fe153c07abc2c10e
[ "MIT" ]
null
null
null
board/models.py
Fahreeve/TaskManager
7f0a16312b43867270eaade1fe153c07abc2c10e
[ "MIT" ]
1
2020-09-15T09:15:13.000Z
2020-09-15T09:15:13.000Z
from django.contrib.auth.models import User from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.utils.translation import ugettext_lazy as _ class Task(models.Model): CLOSE = 'cl' CANCEL = 'ca' LATER = 'la' UNDEFINED = 'un' CHOICES = ( ...
37.511628
118
0.695598
180
1,613
6.061111
0.5
0.036664
0.038497
0.038497
0.095325
0.095325
0.095325
0.095325
0.095325
0
0
0.004461
0.16615
1,613
42
119
38.404762
0.806691
0
0
0.114286
0
0
0.109733
0
0
0
0
0
0
1
0.057143
false
0
0.114286
0.028571
0.771429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
bebe436d87bb3f3a76cbb71e91dc6e70bb5b2e46
475
py
Python
test/test_hex_line.py
bicobus/Hexy
e75d58e66546c278fb648af85e3f9dae53127826
[ "MIT" ]
72
2017-08-30T03:02:51.000Z
2022-03-11T23:15:15.000Z
test/test_hex_line.py
bicobus/Hexy
e75d58e66546c278fb648af85e3f9dae53127826
[ "MIT" ]
10
2019-03-14T08:04:33.000Z
2021-08-10T09:36:45.000Z
test/test_hex_line.py
bicobus/Hexy
e75d58e66546c278fb648af85e3f9dae53127826
[ "MIT" ]
15
2017-11-08T05:37:06.000Z
2021-08-05T19:16:48.000Z
import numpy as np import hexy as hx def test_get_hex_line(): expected = [ [-3, 3, 0], [-2, 2, 0], [-1, 2, -1], [0, 2, -2], [1, 1, -2], ] start = np.array([-3, 3, 0]) end = np.array([1, 1, -2]) print(hx.get_hex_line(start, end)) ...
21.590909
38
0.471579
68
475
3.014706
0.367647
0.117073
0.195122
0.136585
0.195122
0.195122
0
0
0
0
0
0.068627
0.355789
475
21
39
22.619048
0.601307
0
0
0
0
0
0.016842
0
0
0
0
0
0.052632
1
0.052632
false
0
0.105263
0
0.157895
0.105263
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
bebe5670df71295bc98ec96c4bde4a3c31d4fb66
6,747
py
Python
wofry/propagator/propagators2D/integral.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
wofry/propagator/propagators2D/integral.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
1
2021-02-16T12:12:10.000Z
2021-02-16T12:12:10.000Z
wofryimpl/propagator/propagators2D/integral.py
oasys-kit/wofryimpl
f300b714b038110987783c40d2c3af8dca7e54eb
[ "MIT" ]
null
null
null
# propagate_2D_integral: Simplification of the Kirchhoff-Fresnel integral. TODO: Very slow and give some problems import numpy from wofry.propagator.wavefront2D.generic_wavefront import GenericWavefront2D from wofry.propagator.propagator import Propagator2D # TODO: check resulting amplitude normalization (fft and ...
49.977778
156
0.621165
784
6,747
5.100765
0.276786
0.060015
0.032008
0.047512
0.35859
0.249062
0.218555
0.188547
0.144536
0.144536
0
0.011702
0.303394
6,747
134
157
50.350746
0.839149
0.062102
0
0.109589
0
0
0.024619
0.004299
0
0
0
0.014925
0
1
0.068493
false
0
0.041096
0.041096
0.205479
0.013699
0
0
0
null
0
0
0
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
bebf8ceeebe9e29c2c913232279dc6462e901f90
334
py
Python
Desafio051.py
GabrielSanchesRosa/Python
3a129e27e076b2a91af03d68ede50b9c45c50217
[ "MIT" ]
null
null
null
Desafio051.py
GabrielSanchesRosa/Python
3a129e27e076b2a91af03d68ede50b9c45c50217
[ "MIT" ]
null
null
null
Desafio051.py
GabrielSanchesRosa/Python
3a129e27e076b2a91af03d68ede50b9c45c50217
[ "MIT" ]
null
null
null
# Desenvolva um programa que leia o primeiro termo e a razão de uma PA. No final mostre, os 10 primeiros termos dessa prograssão. primeiro = int(input("Primeiro Termo: ")) razao = int(input("Razão: ")) decimo = primeiro + (10 - 1) * razao for c in range(primeiro, decimo + razao, razao): print(f"{c}", end=" -> ") pr...
33.4
129
0.679641
51
334
4.45098
0.705882
0.114537
0
0
0
0
0
0
0
0
0
0.018182
0.176647
334
9
130
37.111111
0.807273
0.38024
0
0
0
0
0.17561
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
bec28b12230a8be61261eca269a7854ba31ae9da
820
py
Python
src/15 listener_and_backdoor/listener_2.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
src/15 listener_and_backdoor/listener_2.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
src/15 listener_and_backdoor/listener_2.py
raminjafary/ethical-hacking
e76f74f4f23e1d8cb7f433d19871dcf966507dfc
[ "MIT" ]
null
null
null
#!/usr/bin/python import socket class Listener: def __init__(self,ip,port): listener = socket.socket(socket.AF_INET,socket.SOCK_STREAM) listener.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1) #options to reuse sockets #listener.bind(("localhost",1234)) listener.bind((ip,port)) listener.listen(0) ...
25.625
70
0.734146
114
820
5.166667
0.561404
0.061121
0.047538
0
0
0
0
0
0
0
0
0.02276
0.142683
820
32
71
25.625
0.815078
0.170732
0
0
0
0
0.107829
0
0
0
0
0
0
0
null
null
0
0.05
null
null
0.15
0
0
0
null
0
0
0
0
0
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
bec6becd26fa525cff31dffaad9d3ab5e8f46f15
11,873
py
Python
lib/fbuild/builders/__init__.py
felix-lang/fbuild
9595fbfd6d3ceece31fda2f96c35d4a241f0129b
[ "PSF-2.0", "BSD-2-Clause" ]
40
2015-02-07T00:44:12.000Z
2021-04-02T13:41:08.000Z
lib/fbuild/builders/__init__.py
felix-lang/fbuild
9595fbfd6d3ceece31fda2f96c35d4a241f0129b
[ "PSF-2.0", "BSD-2-Clause" ]
30
2015-02-06T17:45:15.000Z
2019-01-10T16:34:29.000Z
lib/fbuild/builders/__init__.py
felix-lang/fbuild
9595fbfd6d3ceece31fda2f96c35d4a241f0129b
[ "PSF-2.0", "BSD-2-Clause" ]
3
2015-09-03T06:38:02.000Z
2019-10-24T14:26:57.000Z
import abc import contextlib import os import sys from functools import partial from itertools import chain import fbuild import fbuild.db import fbuild.path import fbuild.temp from . import platform # ------------------------------------------------------------------------------ class MissingProgram(fbuild.ConfigFa...
35.762048
80
0.553609
1,326
11,873
4.831825
0.156863
0.035898
0.037459
0.05057
0.536288
0.482285
0.461058
0.437334
0.418136
0.376151
0
0.000925
0.271456
11,873
331
81
35.870091
0.739769
0.166596
0
0.422594
0
0
0.024862
0
0
0
0
0
0
1
0.117155
false
0.050209
0.046025
0.008368
0.305439
0
0
0
0
null
0
0
0
0
0
0
0
0
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
bec81857d7e4af0801337540f4b978497c5536f9
1,897
py
Python
tuprolog/solve/exception/error/existence/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-08-07T06:29:28.000Z
2021-08-07T06:29:28.000Z
tuprolog/solve/exception/error/existence/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
14
2021-09-16T13:25:12.000Z
2022-01-03T10:12:22.000Z
tuprolog/solve/exception/error/existence/__init__.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-12-22T00:25:32.000Z
2021-12-22T00:25:32.000Z
from typing import Union from tuprolog import logger # noinspection PyUnresolvedReferences import jpype.imports # noinspection PyUnresolvedReferences import it.unibo.tuprolog.solve.exception.error as errors from tuprolog.core import Term, Atom from tuprolog.solve import ExecutionContext, Signature ExistenceError = err...
24.960526
96
0.765946
200
1,897
7.1
0.29
0.042254
0.059859
0.056338
0.047887
0.047887
0
0
0
0
0
0
0.163416
1,897
75
97
25.293333
0.89477
0.037428
0
0.204082
0
0
0.043884
0.030719
0
0
0
0
0
1
0.122449
false
0
0.122449
0.102041
0.387755
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
fe2070ac8557cbd4275cc5e584c79388af700674
2,510
py
Python
detection/contor.py
chika626/chainer_rep
a1d4fd32a8cfcab753269455d08c1918f273388d
[ "MIT" ]
null
null
null
detection/contor.py
chika626/chainer_rep
a1d4fd32a8cfcab753269455d08c1918f273388d
[ "MIT" ]
7
2020-03-13T08:29:46.000Z
2020-05-27T17:34:14.000Z
detection/contor.py
chika626/chainer_rep
a1d4fd32a8cfcab753269455d08c1918f273388d
[ "MIT" ]
null
null
null
import json import math from PIL import Image,ImageDraw import pandas as pd import glob import argparse import copy import numpy as np import matplotlib.pyplot as plt import pickle import cv2 from PIL import ImageEnhance import chainer from chainer.datasets import ConcatenatedDataset from chainer.data...
26.989247
72
0.640239
348
2,510
4.54023
0.298851
0.098734
0.079747
0.072785
0.255063
0.248101
0.139241
0.091139
0.064557
0.064557
0
0.022605
0.259761
2,510
93
73
26.989247
0.827772
0.114343
0
0.190476
0
0
0.017005
0
0
0
0
0
0
1
0.031746
false
0
0.52381
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fe21f2c89737b3c4d120cba724974597cb079bc4
1,675
py
Python
src/boot.py
johngtrs/krux
7b6c6d410e29c16ab5d3c05a5aafab618f13a86f
[ "MIT" ]
null
null
null
src/boot.py
johngtrs/krux
7b6c6d410e29c16ab5d3c05a5aafab618f13a86f
[ "MIT" ]
null
null
null
src/boot.py
johngtrs/krux
7b6c6d410e29c16ab5d3c05a5aafab618f13a86f
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright (c) 2021 Tom J. Sun # 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, modify, ...
32.211538
79
0.755224
254
1,675
4.972441
0.543307
0.069675
0.020586
0.030087
0
0
0
0
0
0
0
0.007971
0.176119
1,675
51
80
32.843137
0.907246
0.696119
0
0.105263
0
0
0.051125
0
0
0
0
0
0
1
0
false
0
0.315789
0
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fe2900b93b3b942d3363b1695eb5a7b3920a90d6
1,913
py
Python
app.py
Nishanth-Gobi/Da-Vinci-Code
b44a2d0c553e4f9cf9e2bb3283ebb5f6eaecea4a
[ "MIT" ]
null
null
null
app.py
Nishanth-Gobi/Da-Vinci-Code
b44a2d0c553e4f9cf9e2bb3283ebb5f6eaecea4a
[ "MIT" ]
null
null
null
app.py
Nishanth-Gobi/Da-Vinci-Code
b44a2d0c553e4f9cf9e2bb3283ebb5f6eaecea4a
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for from os.path import join from stego import Steganography app = Flask(__name__) UPLOAD_FOLDER = 'static/files/' app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'} @app.route("/") def home(): return render_te...
31.360656
97
0.67747
239
1,913
5.242678
0.276151
0.076616
0.071828
0.100559
0.579409
0.490822
0.361532
0.230646
0.230646
0.09577
0
0
0.182436
1,913
60
98
31.883333
0.801151
0.025091
0
0.243902
0
0
0.163178
0
0
0
0
0
0
1
0.073171
false
0.097561
0.073171
0.02439
0.317073
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fe2b48a6665b98787ac1bd205fe634201bd2120e
1,480
py
Python
job-queue-portal/postgres_django_queue/djangoenv/lib/python3.8/site-packages/django_celery_results/migrations/0006_taskresult_date_created.py
Sruthi-Ganesh/postgres-django-queue
4ea8412c073ff8ceb0efbac48afc29456ae11346
[ "Apache-2.0" ]
null
null
null
job-queue-portal/postgres_django_queue/djangoenv/lib/python3.8/site-packages/django_celery_results/migrations/0006_taskresult_date_created.py
Sruthi-Ganesh/postgres-django-queue
4ea8412c073ff8ceb0efbac48afc29456ae11346
[ "Apache-2.0" ]
null
null
null
job-queue-portal/postgres_django_queue/djangoenv/lib/python3.8/site-packages/django_celery_results/migrations/0006_taskresult_date_created.py
Sruthi-Ganesh/postgres-django-queue
4ea8412c073ff8ceb0efbac48afc29456ae11346
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 2.2.4 on 2019-08-21 19:53 # this file is auto-generated so don't do flake8 on it # flake8: noqa from __future__ import absolute_import, unicode_literals from django.db import migrations, models import django.utils.timezone def copy_date_done_to_date_created(apps, schem...
30.204082
83
0.664189
183
1,480
5.065574
0.519126
0.09493
0.064725
0.075512
0.149946
0.149946
0.06904
0
0
0
0
0.019838
0.250676
1,480
48
84
30.833333
0.816051
0.161486
0
0.064516
1
0
0.141815
0.051864
0
0
0
0
0
1
0.064516
false
0.032258
0.096774
0
0.258065
0
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
fe3002f8ab77d8668df51f08f7789bc9628e8c1f
2,370
py
Python
EC2 Auto Clean Room Forensics/Lambda-Functions/snapshotForRemediation.py
spartantri/aws-security-automation
a3904931220111022d12e71a3d79e4a85fc82173
[ "Apache-2.0" ]
null
null
null
EC2 Auto Clean Room Forensics/Lambda-Functions/snapshotForRemediation.py
spartantri/aws-security-automation
a3904931220111022d12e71a3d79e4a85fc82173
[ "Apache-2.0" ]
null
null
null
EC2 Auto Clean Room Forensics/Lambda-Functions/snapshotForRemediation.py
spartantri/aws-security-automation
a3904931220111022d12e71a3d79e4a85fc82173
[ "Apache-2.0" ]
null
null
null
# MIT No Attribution # 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, modify, # merge, publish, distribute, sublicen...
33.857143
110
0.670042
261
2,370
6.045977
0.521073
0.048796
0.016477
0.031686
0
0
0
0
0
0
0
0.00387
0.236709
2,370
69
111
34.347826
0.868436
0.444726
0
0.045455
0
0
0.160123
0.017706
0
0
0
0.014493
0
1
0.022727
false
0
0.045455
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
1
0
0
0
0
0
0
0
0
0
0
1
fe317187c1c12b8c77ea5e51802f388e760744e4
1,324
py
Python
tests/test_intbounds.py
alex/optimizer-model
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
[ "BSD-3-Clause" ]
4
2015-04-29T22:49:25.000Z
2018-02-16T09:06:08.000Z
tests/test_intbounds.py
alex/optimizer-model
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
[ "BSD-3-Clause" ]
null
null
null
tests/test_intbounds.py
alex/optimizer-model
0e40a0763082f5fe0bd596e8e77ebccbcd7f4a98
[ "BSD-3-Clause" ]
null
null
null
from optimizer.utils.intbounds import IntBounds class TestIntBounds(object): def test_make_gt(self): i0 = IntBounds() i1 = i0.make_gt(IntBounds(10, 10)) assert i1.lower == 11 def test_make_gt_already_bounded(self): i0 = IntBounds() i1 = i0.make_gt(IntBounds(10, 10))...
23.22807
67
0.5929
192
1,324
3.901042
0.166667
0.064085
0.140187
0.158879
0.699599
0.65287
0.620828
0.562083
0.365821
0.269693
0
0.092147
0.278701
1,324
56
68
23.642857
0.692147
0
0
0.323529
0
0
0
0
0
0
0
0
0.294118
1
0.205882
false
0
0.029412
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
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
fe32cc9e555895354fe2279db255494d9b4433fb
1,652
py
Python
address_book/address_book.py
wowsuchnamaste/address_book
4877d16d795c54b750e151fa93e69c080717ae72
[ "MIT" ]
null
null
null
address_book/address_book.py
wowsuchnamaste/address_book
4877d16d795c54b750e151fa93e69c080717ae72
[ "MIT" ]
null
null
null
address_book/address_book.py
wowsuchnamaste/address_book
4877d16d795c54b750e151fa93e69c080717ae72
[ "MIT" ]
null
null
null
"""A simple address book.""" from ._tools import generate_uuid class AddressBook: """ A simple address book. """ def __init__(self): self._entries = [] def add_entry(self, entry): """Add an entry to the address book.""" self._entries.append(entry) def get_entries(sel...
25.415385
80
0.565981
197
1,652
4.532995
0.309645
0.080627
0.043673
0.057111
0.079507
0.055991
0
0
0
0
0
0.000906
0.331719
1,652
64
81
25.8125
0.807971
0.208838
0
0
1
0
0.016393
0
0
0
0
0
0
1
0.184211
false
0
0.026316
0.026316
0.342105
0
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
fe358e9590f17c8d7c10eb92232dc2f7d4b20167
235
py
Python
config.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
null
null
null
config.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
null
null
null
config.py
volgachen/Chinese-Tokenization
467e08da6fe271b6e33258d5aa6682c0405a3f32
[ "Apache-2.0" ]
1
2020-07-12T10:38:34.000Z
2020-07-12T10:38:34.000Z
class Config: ngram = 2 train_set = "data/rmrb.txt" modified_train_set = "data/rmrb_modified.txt" test_set = "" model_file = "" param_file = "" word_max_len = 10 proposals_keep_ratio = 1.0 use_re = 1 subseq_num = 15
21.363636
47
0.67234
37
235
3.918919
0.756757
0.110345
0.165517
0.22069
0
0
0
0
0
0
0
0.043478
0.217021
235
11
48
21.363636
0.744565
0
0
0
0
0
0.154867
0.097345
0
0
0
0
0
1
0
false
0
0
0
1
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
fe3845f60103709c0d0030d388891565874650ad
1,076
py
Python
blogtech/src/blog/views.py
IVAN-URBACZKA/django-blog
7ef6050c0de2938791843c3ec93e6e6a1e683baa
[ "MIT" ]
null
null
null
blogtech/src/blog/views.py
IVAN-URBACZKA/django-blog
7ef6050c0de2938791843c3ec93e6e6a1e683baa
[ "MIT" ]
null
null
null
blogtech/src/blog/views.py
IVAN-URBACZKA/django-blog
7ef6050c0de2938791843c3ec93e6e6a1e683baa
[ "MIT" ]
null
null
null
from django.urls import reverse_lazy, reverse from django.utils.decorators import method_decorator from django.views.generic import ListView, DetailView, CreateView, DeleteView, UpdateView from .models import BlogPost from django.contrib.auth.decorators import login_required class BlogPostHomeView(ListView): mode...
31.647059
89
0.760223
119
1,076
6.714286
0.445378
0.081352
0.075094
0.105131
0.244055
0.168961
0.168961
0
0
0
0
0
0.136617
1,076
34
90
31.647059
0.860065
0
0
0.307692
0
0
0.125348
0.023213
0
0
0
0
0
1
0.038462
false
0
0.192308
0.038462
0.884615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fe393898f4084fe1c0d82dbb19e8e9bf170a60ea
4,514
py
Python
apc_deep_vision/python/generate_data.py
Juxi/apb-baseline
fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce
[ "BSD-3-Clause" ]
9
2017-02-06T10:24:56.000Z
2022-02-27T20:59:52.000Z
apc_deep_vision/python/generate_data.py
Juxi/apb-baseline
fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce
[ "BSD-3-Clause" ]
null
null
null
apc_deep_vision/python/generate_data.py
Juxi/apb-baseline
fd47a5fd78cdfd75c68601a40ca4726d7d20c9ce
[ "BSD-3-Clause" ]
2
2017-10-15T08:33:37.000Z
2019-03-05T07:29:38.000Z
#! /usr/bin/env python # ******************************************************************** # Software License Agreement (BSD License) # # Copyright (c) 2015, University of Colorado, Boulder # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted...
37.932773
105
0.634914
577
4,514
4.87695
0.42461
0.034115
0.039801
0.01919
0.117271
0.088131
0.06752
0.06752
0.04833
0.04833
0
0.015616
0.248117
4,514
118
106
38.254237
0.813494
0.476961
0
0
0
0
0.088985
0
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.022222
0
0
0
null
0
0
0
0
0
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
fe39cd977754d7baa5900e133ad7f76b583b9786
3,509
py
Python
stats.py
shirshanka/fact-ory
9e6bae63ca7f8f534b811058efb8942004d6a37b
[ "Apache-2.0" ]
null
null
null
stats.py
shirshanka/fact-ory
9e6bae63ca7f8f534b811058efb8942004d6a37b
[ "Apache-2.0" ]
null
null
null
stats.py
shirshanka/fact-ory
9e6bae63ca7f8f534b811058efb8942004d6a37b
[ "Apache-2.0" ]
null
null
null
import numpy as np; import sys import matplotlib.pyplot as plt; from matplotlib import cm; from termcolor import colored; class Stats(): def __init__(self, param1_range, param2_range): self._total_times = 0; self._total_time = 0.0; self._wrong_answers = []; self._time_dict = {}; self._param1_rang...
34.742574
154
0.68937
529
3,509
4.228733
0.253308
0.040232
0.03755
0.022798
0.111757
0.092088
0.071524
0.039338
0.039338
0.039338
0
0.03499
0.185523
3,509
100
155
35.09
0.747726
0.042177
0
0.025641
0
0
0.051251
0
0
0
0
0
0
0
null
null
0.012821
0.064103
null
null
0.051282
0
0
0
null
0
0
0
0
0
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
fe3c354a94b9bc97c332f504c7fb8dc959b31224
7,019
py
Python
manila/tests/share/test_snapshot_access.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
3
2016-06-06T13:05:00.000Z
2021-05-05T04:29:24.000Z
manila/tests/share/test_snapshot_access.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
manila/tests/share/test_snapshot_access.py
gouthampacha/manila
4b7ba9b99d272663f519b495668715fbf979ffbc
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2016 Hitachi Data Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
41.532544
78
0.648383
812
7,019
5.273399
0.172414
0.13078
0.079402
0.041102
0.662774
0.65717
0.626576
0.626576
0.626576
0.626576
0
0.002511
0.262431
7,019
168
79
41.779762
0.824609
0.087762
0
0.53125
0
0
0.108172
0.080776
0
0
0
0
0.085938
1
0.03125
false
0
0.085938
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe3d447e3c8eb707e5a1d8550493f94e70efafc2
269
py
Python
packages/pyright-internal/src/tests/samples/unnecessaryCast1.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
4,391
2019-05-07T01:18:57.000Z
2022-03-31T20:45:44.000Z
packages/pyright-internal/src/tests/samples/unnecessaryCast1.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
2,740
2019-05-07T03:29:30.000Z
2022-03-31T12:57:46.000Z
packages/pyright-internal/src/tests/samples/unnecessaryCast1.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
455
2019-05-07T12:55:14.000Z
2022-03-31T17:09:15.000Z
# This sample tests the type checker's reportUnnecessaryCast feature. from typing import cast, Union def foo(a: int): # This should generate an error if # reportUnnecessaryCast is enabled. b = cast(int, a) c: Union[int, str] = "hello" d = cast(int, c)
19.214286
69
0.687732
40
269
4.625
0.75
0.075676
0
0
0
0
0
0
0
0
0
0
0.215613
269
13
70
20.692308
0.876777
0.498141
0
0
1
0
0.038168
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe3e90a0352653677e5f89aa3d6275c22d3a1048
470
py
Python
tests/test1.py
SaijC/manhwaDownloader
f6e97cfe25355598e42633a3796d84b666d5302f
[ "MIT" ]
null
null
null
tests/test1.py
SaijC/manhwaDownloader
f6e97cfe25355598e42633a3796d84b666d5302f
[ "MIT" ]
null
null
null
tests/test1.py
SaijC/manhwaDownloader
f6e97cfe25355598e42633a3796d84b666d5302f
[ "MIT" ]
null
null
null
import requests import logging import cfscrape import os from manhwaDownloader.constants import CONSTANTS as CONST logging.basicConfig(level=logging.DEBUG) folderPath = os.path.join(CONST.OUTPUTPATH, 'serious-taste-of-forbbiden-fruit') logging.info(len([file for file in os.walk(folderPath)])) walkList = [file for fi...
24.736842
79
0.778723
63
470
5.793651
0.571429
0.038356
0.060274
0.071233
0.158904
0.158904
0.158904
0
0
0
0
0.002392
0.110638
470
19
80
24.736842
0.870813
0
0
0
0
0
0.067941
0.067941
0
0
0
0
0
1
0
false
0
0.384615
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
0
0
0
1
0
0
0
0
1
fe48c3bafe5a6523868023e377aa4dab0192c3a1
407
py
Python
solutions/python3/894.py
sm2774us/amazon_interview_prep_2021
f580080e4a6b712b0b295bb429bf676eb15668de
[ "MIT" ]
42
2020-08-02T07:03:49.000Z
2022-03-26T07:50:15.000Z
solutions/python3/894.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
null
null
null
solutions/python3/894.py
ajayv13/leetcode
de02576a9503be6054816b7444ccadcc0c31c59d
[ "MIT" ]
40
2020-02-08T02:50:24.000Z
2022-03-26T15:38:10.000Z
class Solution: def allPossibleFBT(self, N): def constr(N): if N == 1: yield TreeNode(0) for i in range(1, N, 2): for l in constr(i): for r in constr(N - i - 1): m = TreeNode(0) m.left = l ...
33.916667
47
0.371007
49
407
3.081633
0.489796
0.139073
0
0
0
0
0
0
0
0
0
0.031915
0.538084
407
12
48
33.916667
0.771277
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe4e2e11b7395e1b93b6ba3044a09072e2e8f08b
1,230
py
Python
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
Modules/Phylogenetic.py
DaneshMoradigaravand/PlasmidPerm
7a84c1d4dbf7320dd5ba821ff0e715a89fe4b3e4
[ "MIT" ]
null
null
null
import os from Bio import AlignIO, Phylo from Bio.Phylo.TreeConstruction import DistanceCalculator, DistanceTreeConstructor class Phylogenetic: def __init__(self, PATH): self.PATH=PATH def binary_sequence_generator(self, input_kmer_pattern, label): string_inp="".join([ 'A' if x==0 else 'C'...
45.555556
102
0.71626
143
1,230
5.895105
0.454545
0.04745
0.035587
0.049822
0.168446
0.168446
0.168446
0.168446
0.168446
0.116251
0
0.000988
0.177236
1,230
27
102
45.555556
0.832016
0
0
0
0
0
0.105605
0.083672
0
0
0
0
0
1
0.227273
false
0
0.136364
0
0.409091
0
0
0
0
null
0
0
0
0
0
0
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
fe50481354faa15f773f5ba3bf0a4fb0f0ded16b
8,854
py
Python
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
17
2016-07-21T14:58:49.000Z
2020-10-26T15:51:38.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
5
2017-06-07T02:42:09.000Z
2019-10-23T12:26:29.000Z
retrieve_regmod_values.py
cbcommunity/cbapi-examples
f8a81006b27c724582b4b04c124eb97a8c8e75d3
[ "MIT" ]
9
2016-10-03T02:18:23.000Z
2021-03-08T22:44:33.000Z
#!/usr/bin/env python # #The MIT License (MIT) # # Copyright (c) 2015 Bit9 + Carbon Black # # 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 t...
42.980583
146
0.61588
1,065
8,854
5.015023
0.367136
0.026212
0.013106
0.013481
0.126006
0.105785
0.077514
0.049803
0.035199
0.016102
0
0.004838
0.299639
8,854
205
147
43.190244
0.856475
0.332279
0
0.135135
0
0.009009
0.138755
0.003745
0
0
0
0.009756
0
0
null
null
0.045045
0.117117
null
null
0.09009
0
0
0
null
0
0
0
0
0
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
fe52c241e006580225be521c666de64401063758
410
py
Python
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
lib/models/bn_helper.py
hongrui16/naic2020_B
9321bdd19e7d2d47ac9c711eb8437cd364e25f44
[ "MIT" ]
null
null
null
import torch import functools if torch.__version__.startswith('0'): from .sync_bn.inplace_abn.bn import InPlaceABNSync BatchNorm2d = functools.partial(InPlaceABNSync, activation='none') BatchNorm2d_class = InPlaceABNSync relu_inplace = False else: # BatchNorm2d_class = BatchNorm2d = torch.nn.SyncBa...
34.166667
70
0.770732
45
410
6.777778
0.533333
0.157377
0.177049
0.209836
0.222951
0
0
0
0
0
0
0.023055
0.153659
410
12
71
34.166667
0.855908
0.136585
0
0
0
0
0.014164
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
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
fe551b06355686622edde6ba5da6a8305143cb35
2,193
py
Python
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
ordered_model/tests/models.py
HiddenClever/django-ordered-model
c94709403cfbb35fa4da3d6470ead816096fdec8
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from ordered_model.models import OrderedModel, OrderedModelBase class Item(OrderedModel): name = models.CharField(max_length=100) class Question(models.Model): pass class TestUser(models.Model): pass class Answer(OrderedModel): question = models.ForeignKey(Question, ...
29.24
117
0.735522
259
2,193
6.042471
0.301158
0.06901
0.092013
0.092013
0.31885
0.301597
0.174441
0.053674
0
0
0
0.022642
0.154127
2,193
74
118
29.635135
0.821024
0
0
0.22449
0
0
0.077063
0.0114
0
0
0
0
0
1
0.020408
false
0.040816
0.040816
0.020408
0.877551
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fe56b7b7af27f780f7fa9407871404e8b6436b3d
1,587
py
Python
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
app/services/base.py
grace1307/lan_mapper
5d244078732b86a2e38a5b21436ffca83c689eeb
[ "MIT" ]
null
null
null
from app.db import db # Ignore it if db can't find the row when updating/deleting # Todo: not ignore it, raise some error, remove checkers in view class BaseService: __abstract__ = True model = None # Create def add_one(self, **kwargs): new_row = self.model(**kwargs) db.session.add(ne...
28.339286
91
0.609326
225
1,587
4.124444
0.328889
0.067888
0.05819
0.038793
0.071121
0.071121
0.071121
0.071121
0
0
0
0
0.297417
1,587
55
92
28.854545
0.832287
0.127914
0
0.088235
0
0
0.002907
0
0
0
0
0.018182
0
1
0.147059
false
0
0.029412
0.029412
0.382353
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
fe5b28c8c0a814b5544650e3dacd259358d5495e
4,972
py
Python
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
1
2017-11-28T02:58:51.000Z
2017-11-28T02:58:51.000Z
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
sbpy/photometry/bandpass.py
jianyangli/sbpy
6b79cbea9bada89207fba17d02dc0c321fa46bf4
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ sbpy bandpass Module """ __all__ = [ 'bandpass' ] import os from astropy.utils.data import get_pkg_data_filename def bandpass(name): """Retrieve bandpass transmission spectrum from sbpy. Parameters ---------- name : string ...
34.054795
75
0.377715
464
4,972
3.974138
0.331897
0.034707
0.030369
0.042299
0.093818
0
0
0
0
0
0
0.060244
0.292237
4,972
145
76
34.289655
0.463768
0.651649
0
0
0
0
0.444444
0.118234
0
0
0
0
0
1
0.02439
false
0.04878
0.121951
0
0.170732
0
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
fe5c54cf485f5924948c2f9e92bdf0e6152fda9f
1,566
py
Python
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
teams/migrations/0001_initial.py
Sudani-Coder/teammanager
857082bc14d7a783d2327b4e982edba7c061f303
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-18 17:19 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='GameScore', fields=[ ('id', models.AutoFiel...
36.418605
141
0.541507
151
1,566
5.470199
0.410596
0.090799
0.072639
0.116223
0.521792
0.521792
0.361985
0.361985
0.361985
0.361985
0
0.032997
0.303321
1,566
42
142
37.285714
0.724106
0.028736
0
0.428571
1
0
0.095458
0
0
0
0
0
0
1
0
false
0
0.028571
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe5f635d76dff706767d5a4351544f241f8b385b
3,192
py
Python
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
1
2021-06-22T10:22:26.000Z
2021-06-22T10:22:26.000Z
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
examples/gather_demo.py
mununum/MAgent
7272cd726182280444597310d52369fac5e13e37
[ "MIT" ]
null
null
null
import random import magent from magent.builtin.rule_model import RandomActor import numpy as np def init_food(env, food_handle): tree = np.asarray([[-1,0], [0,0], [0,-1], [0,1], [1,0]]) third = map_size//4 # mapsize includes walls for i in range(1, 4): for j in range(1, 4): base = np...
28
87
0.580201
458
3,192
3.818777
0.275109
0.056032
0.04574
0.046312
0.284734
0.174957
0.141795
0.129788
0.046312
0.046312
0
0.034378
0.280075
3,192
114
88
28
0.726719
0.107143
0
0.053333
0
0
0.048643
0
0
0
0
0
0
0
null
null
0
0.053333
null
null
0.04
0
0
0
null
0
0
0
0
0
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
fe6407132244604eabc2321eb05eb24333b3bd82
669
py
Python
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
pyTorch/utils.py
rajasekar-venkatesan/Deep_Learning
c375dab303f44043a4dc30ea53b298d7eca1d5a7
[ "MIT" ]
null
null
null
import pandas as pd, numpy as np from sklearn.preprocessing import OneHotEncoder author_int_dict = {'EAP':0,'HPL':1,'MWS':2} def load_train_test_data (num_samples=None): train_data = pd.read_csv('../data/train.csv') train_data['author'] = [author_int_dict[a] for a in train_data['author'].tolist()] ...
33.45
87
0.689088
96
669
4.510417
0.5
0.083141
0.096998
0.083141
0.078522
0
0
0
0
0
0
0.012567
0.167414
669
20
88
33.45
0.764811
0.083707
0
0
0
0
0.104377
0
0
0
0
0
0
1
0.142857
false
0.071429
0.142857
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe64404bf937356d7de814318a6e0bdf49ea36b3
6,987
py
Python
example/dec/dec.py
TheBurningCrusade/A_mxnet
fa2a8e3c438bea16b993e9537f75e2082d83346f
[ "Apache-2.0" ]
159
2016-08-23T22:13:26.000Z
2021-10-24T01:31:35.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
10
2016-08-23T05:59:07.000Z
2018-05-24T02:31:41.000Z
example/dec/dec.py
mrgloom/FaceDetection-ConvNet-3D
f9251c48eb40c5aec8fba7455115c355466555be
[ "Apache-2.0" ]
77
2016-08-21T00:35:00.000Z
2021-06-01T05:03:34.000Z
# pylint: skip-file import sys import os # code to automatically download dataset curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) sys.path = [os.path.join(curr_path, "../autoencoder")] + sys.path import mxnet as mx import numpy as np import data from scipy.spatial.distance import cdist from s...
44.788462
116
0.586232
1,067
6,987
3.665417
0.208997
0.028126
0.035796
0.013296
0.284838
0.207875
0.157504
0.12631
0.117617
0.094605
0
0.033561
0.266495
6,987
156
117
44.788462
0.729561
0.008015
0
0.128571
0
0
0.041276
0
0
0
0
0
0.021429
0
null
null
0
0.085714
null
null
0.028571
0
0
0
null
0
0
0
0
0
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
fe6806edfc8769087714d9060a7456450c7a5f90
1,608
py
Python
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
2
2022-02-05T12:15:03.000Z
2022-03-27T09:55:51.000Z
tests/env_config/test_base.py
DAtek/datek-app-utils
4783345d548bd85b1f6f99679be30b978e368e0e
[ "MIT" ]
null
null
null
from pytest import raises from datek_app_utils.env_config.base import BaseConfig from datek_app_utils.env_config.errors import InstantiationForbiddenError class SomeOtherMixinWhichDoesntRelateToEnvConfig: color = "red" class TestConfig: def test_iter(self, monkeypatch, key_volume, base_config_class): ...
28.714286
84
0.651741
193
1,608
5.26943
0.300518
0.162242
0.058997
0.070796
0.328417
0.208456
0.088496
0.088496
0
0
0
0.015847
0.254353
1,608
55
85
29.236364
0.83236
0
0
0.052632
0
0
0.056592
0.030473
0
0
0
0
0.473684
1
0.078947
false
0.026316
0.078947
0
0.289474
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
fe68c2686760a20f5158d8a2bc5c4a835377dc27
6,801
py
Python
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
null
null
null
mapclientplugins/argonsceneexporterstep/ui_configuredialog.py
Kayvv/mapclientplugins.argonsceneexporterstep
59b0b9cb15660c5747c1a7cba9da0e1eaf0bdf48
[ "Apache-2.0" ]
3
2021-07-26T00:53:24.000Z
2021-11-17T23:23:11.000Z
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'configuredialog.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ##########...
44.45098
113
0.723276
642
6,801
7.5919
0.190031
0.06032
0.07222
0.092532
0.24723
0
0
0
0
0
0
0.012017
0.155712
6,801
152
114
44.743421
0.836816
0.034113
0
0.021053
1
0
0.088208
0.007507
0
0
0
0
0
1
0.021053
false
0
0.031579
0
0.063158
0
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
fe6de4a21365edf7ffd30ec000387c588b119366
9,086
py
Python
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
8
2020-09-16T05:28:33.000Z
2020-09-28T06:29:03.000Z
equipments/migrations/0001_initial.py
fagrimacs/fagrimacs_production
ea1a8f92c41c416309cc1fdd8deb02f41a9c95a0
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-09-18 05:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import multiselectfield.db.fields class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(setting...
75.716667
499
0.637134
959
9,086
5.893639
0.224192
0.08758
0.029724
0.030255
0.587226
0.509377
0.487615
0.402335
0.382166
0.355096
0
0.010819
0.216707
9,086
119
500
76.352941
0.783336
0.004953
0
0.473214
1
0
0.323708
0.018254
0
0
0
0
0
1
0
false
0
0.035714
0
0.071429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe70b613f1b25d8770820b6d2050c23b8fcae093
47,242
py
Python
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
12
2016-11-11T13:24:48.000Z
2022-01-27T19:49:36.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
6
2017-01-05T14:23:59.000Z
2018-09-20T19:14:57.000Z
gralog-fx/src/main/java/gralog/gralogfx/piping/scripts/Gralog.py
gralog/gralog
0ab2e3137b83950cdc4e9234d4df451a22034285
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-25T18:17:00.000Z
2020-06-04T21:38:50.000Z
#!/usr/bin/env python3 import sys from random import randint import os try: import networkx as nx except: print("gPrint#-1#" + "netwrokx not installed for " + sys.executable) sys.stdout.flush() try: import igraph as ig except: print("gPrint#-1#" + "igraph not installed for " + ...
35.870919
203
0.460522
4,056
47,242
5.345168
0.112919
0.023524
0.032934
0.029751
0.445987
0.398293
0.370111
0.340821
0.329151
0.314299
0
0.005918
0.434846
47,242
1,316
204
35.898176
0.806098
0
0
0.466251
0
0
0.035761
0.003676
0.001038
0
0
0.00076
0
0
null
null
0.004154
0.007269
null
null
0.053998
0
0
0
null
0
0
0
0
0
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
fe759c78dfaceadf537006e1685f7155df52a71a
10,073
py
Python
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
6
2020-04-21T12:16:19.000Z
2022-02-10T09:18:08.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
1
2021-12-07T13:09:53.000Z
2021-12-07T13:09:53.000Z
vm_setup/pmevo/measurement-server/PITE/register_file.py
qcjiang/pmevo-artifact
bf5da1788f9ede42086c31b3996d9e41363cc7ee
[ "MIT" ]
2
2021-03-30T12:40:01.000Z
2021-11-23T15:49:50.000Z
#! /usr/bin/env python3 # vim: et:ts=4:sw=4:fenc=utf-8 from abc import ABC, abstractmethod from collections import defaultdict import re class RegisterFile(ABC): registers = NotImplemented def __init__(self): # for each register kind an index pointing to the next register to use self.reset_...
54.448649
111
0.37119
1,145
10,073
3.237555
0.367686
0.01133
0.01079
0.015107
0.194227
0.132722
0.132722
0.116536
0.116536
0.116536
0
0.194602
0.33426
10,073
184
112
54.744565
0.358187
0.157054
0
0.148936
0
0
0.255478
0
0
0
0
0
0
1
0.049645
false
0
0.021277
0.014184
0.134752
0
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
fe79e20af0abaadf27ef0edd6010a9d9587df465
2,019
py
Python
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
18
2018-09-11T01:14:31.000Z
2021-12-27T10:21:59.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
77
2018-09-19T09:28:33.000Z
2021-11-12T13:31:50.000Z
test/test_basic_functions.py
azagajewski/ColiCoords
fa26e46971e24ff582c4d33331c5b8181f605c9f
[ "MIT" ]
8
2019-06-17T16:02:32.000Z
2021-06-30T23:31:17.000Z
import hashlib import unittest from colicoords.cell import Cell, CellList from colicoords.preprocess import data_to_cells from test import testcase from test.test_functions import load_testdata class DataTest(testcase.ArrayTestCase): def setUp(self): self.data = load_testdata('ds1') def t...
30.590909
93
0.618128
266
2,019
4.522556
0.274436
0.099751
0.036575
0.0399
0.382377
0.276808
0.276808
0.276808
0.181214
0.181214
0
0.042056
0.258049
2,019
66
94
30.590909
0.761015
0.007925
0
0.183673
0
0
0.016512
0
0
0
0
0.015152
0.244898
1
0.122449
false
0
0.122449
0
0.285714
0.081633
0
0
0
null
0
0
0
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
fe7d3ca44a30c1b45cb010d74a7365ccccfb69bc
691
py
Python
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
app.py
aosjehdgus/transliteration
1934999385863009cdf9f8806e949157d653a9f4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import tensorflow as tf import numpy as np import data_utils from translate import Transliteration from flask import Flask, request, jsonify transliteration = Transliteration() app = Flask(__name__) # Flask 객체 선언, 파라미터로 어플리케이션 패키지의 이름을 넣어 준다. app.config['JSON_AS_ASCII'] =...
24.678571
68
0.727931
98
691
4.959184
0.622449
0.012346
0.012346
0
0
0
0
0
0
0
0
0.011925
0.150507
691
27
69
25.592593
0.816014
0.124457
0
0
0
0
0.083333
0
0
0
0
0
0
1
0.052632
false
0
0.368421
0
0.473684
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
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
fe7f812fda345139b99dd24f883eb46ae8bf8541
609
py
Python
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2020-08-28T14:57:15.000Z
2020-08-28T14:57:15.000Z
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/scripts/lib/CIME/XML/env_build.py
cbeall123/E3SM
ec32b40d549b292f14acd11e6774686564539d3c
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
1
2021-03-11T23:20:58.000Z
2021-03-11T23:20:58.000Z
""" Interface to the env_build.xml file. This class inherits from EnvBase """ from CIME.XML.standard_module_setup import * from CIME.XML.env_base import EnvBase logger = logging.getLogger(__name__) class EnvBuild(EnvBase): # pylint: disable=unused-argument def __init__(self, case_root=None, infile="env_buil...
33.833333
91
0.714286
84
609
4.880952
0.595238
0.058537
0.080488
0.078049
0
0
0
0
0
0
0
0
0.175698
609
17
92
35.823529
0.816733
0.292282
0
0
0
0
0.115
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe87ead9a791db821c1f883b4076bac8b4dc4efb
99,064
py
Python
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
2
2018-03-11T08:38:43.000Z
2021-09-25T07:46:44.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
208
2017-06-30T10:32:12.000Z
2022-03-29T10:38:32.000Z
lib/XChemPANDDA.py
graeme-winter/XChemExplorer
7b0779387705ab37074d80f77baf22891eb56907
[ "MIT" ]
6
2017-06-01T20:33:31.000Z
2021-10-04T09:44:09.000Z
# last edited: 10/08/2017, 10:25 import os, sys, glob, subprocess from datetime import datetime from PyQt4 import QtGui, QtCore import math #from XChemUtils import mtztools import XChemDB import XChemRefine import XChemUtils import XChemLog import XChemToolTips import csv try: import gemmi import pandas excep...
50.594484
265
0.589447
11,782
99,064
4.772704
0.077661
0.037167
0.043836
0.02415
0.627952
0.557049
0.516467
0.482288
0.439305
0.404823
0
0.008995
0.290762
99,064
1,958
266
50.594484
0.791346
0.084077
0
0.391509
0
0.022911
0.22382
0.037865
0
0
0
0
0
0
null
null
0.001348
0.014825
null
null
0.006739
0
0
0
null
0
0
0
0
0
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
fe8a256140b6390c55cadca6d58880f260544702
5,253
py
Python
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
OmegaErp/Apps/base/forms/__init__.py
OMAR-EHAB777/FerpMenu
6aee4616bc9bc7801023fe51acfa28e1e1267b66
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Global app forms """ # Standard Library import re # Django Library from django import forms from django.contrib.auth.forms import UserChangeForm, UserCreationForm from django.utils.translation import ugettext_lazy as _ # Thirdparty Library from dal import autocomplete # Localfolder Librar...
26.938462
80
0.491148
421
5,253
6.035629
0.320665
0.039355
0.055096
0.082645
0.420307
0.408107
0.341598
0.250295
0.250295
0.250295
0
0.009204
0.358843
5,253
195
81
26.938462
0.745249
0.118409
0
0.387755
0
0
0.187035
0.004818
0
0
0
0
0
1
0.006803
false
0.129252
0.047619
0
0.190476
0.006803
0
0
0
null
0
0
0
0
0
0
0
0
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
fe8c212fdb626e028311eb927a139fd3cc7bba51
1,455
py
Python
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
1
2018-10-29T12:54:44.000Z
2018-10-29T12:54:44.000Z
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
tests/unit/dataactvalidator/test_fabs38_detached_award_financial_assistance_2.py
COEJKnight/one
6a5f8cd9468ab368019eb2597821b7837f74d9e2
[ "CC0-1.0" ]
null
null
null
from tests.unit.dataactcore.factories.staging import DetachedAwardFinancialAssistanceFactory from tests.unit.dataactvalidator.utils import number_of_errors, query_columns _FILE = 'fabs38_detached_award_financial_assistance_2' def test_column_headers(database): expected_subset = {"row_number", "awarding_office_co...
45.46875
120
0.808935
164
1,455
6.762195
0.347561
0.100992
0.129847
0.359784
0.427412
0.427412
0.427412
0.308386
0.308386
0.308386
0
0.022446
0.112027
1,455
31
121
46.935484
0.835913
0.065979
0
0
0
0
0.077323
0.032714
0
0
0
0
0.15
1
0.15
false
0
0.1
0
0.25
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
fe8e1c215219c1805761ef6232ba7b858bfbd7b4
3,641
py
Python
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
3
2020-04-21T11:36:10.000Z
2022-02-01T00:46:59.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
17
2021-01-08T17:20:38.000Z
2021-06-29T05:55:47.000Z
src/conv/convertManifest2Curation.py
nakamura196/i3
16d7695e5412b45dc8e0192d9ca285723ac9f788
[ "Apache-2.0" ]
null
null
null
import urllib.request from bs4 import BeautifulSoup import csv import requests import os import json import time import glob files = glob.glob("/Users/nakamura/git/d_iiif/iiif/src/collections/nijl/data/json/*.json") for i in range(len(files)): file = files[i] file_id = file.split("/")[-1].replace(".json", "...
31.938596
106
0.355397
275
3,641
4.64
0.4
0.014107
0.025078
0.026646
0.131661
0.131661
0.073668
0.073668
0.073668
0.073668
0
0.007688
0.535567
3,641
113
107
32.221239
0.746895
0.00412
0
0.024691
0
0.024691
0.173289
0.037528
0
0
0
0
0
1
0
false
0
0.098765
0
0.098765
0.024691
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe93e83fe7e8770b4f2c1e2cf97bec6cd0abb158
1,628
py
Python
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
5
2016-07-27T08:25:17.000Z
2022-02-07T19:41:45.000Z
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
null
null
null
examples/multiprocess_example.py
ct-clmsn/distributed-tensorflow-orchestration
c841659881e98209149bd6e3e09774a50e3c748e
[ "Apache-2.0" ]
1
2022-02-07T19:41:46.000Z
2022-02-07T19:41:46.000Z
''' marathon_example.py performs a simple matrix multiply using 3 compute nodes ''' def parseargs(): parser = argparse.ArgumentParser(description='Marathon for TensorFlow.') parser.add_argument('--n_tasks', default=1, help='an integer for the accumulator') parser.add_argument('--cpu', default=100.0, ...
34.638298
116
0.673219
204
1,628
5.27451
0.421569
0.066915
0.126394
0.04461
0.268587
0.236989
0.236989
0.236989
0.236989
0.107807
0
0.023432
0.187346
1,628
46
117
35.391304
0.789872
0
0
0.064516
0
0
0.209121
0
0
0
0
0
0
0
null
null
0.032258
0.096774
null
null
0.064516
0
0
0
null
0
0
0
0
0
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
fe97e4775b3fbd1abdf826717d17fd4e96f2144c
353
py
Python
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
21
2018-04-18T17:58:12.000Z
2022-01-19T12:41:01.000Z
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
4
2018-04-24T11:04:15.000Z
2022-02-03T18:35:21.000Z
user_messages/context_processors.py
everaccountable/django-user-messages
101d539b785bdb440bf166fb16ad25eb66e4174a
[ "MIT" ]
7
2018-03-04T16:03:44.000Z
2022-02-03T15:50:39.000Z
from django.contrib.messages.constants import DEFAULT_LEVELS from user_messages.api import get_messages def messages(request): """ Return a lazy 'messages' context variable as well as 'DEFAULT_MESSAGE_LEVELS'. """ return { "messages": get_messages(request=request), "DEFAULT_MESSAG...
23.533333
60
0.708215
41
353
5.878049
0.512195
0.107884
0.165975
0
0
0
0
0
0
0
0
0
0.203966
353
14
61
25.214286
0.857651
0.220963
0
0
0
0
0.117647
0.086275
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fe98a505a6e3e05977900098d14a4c4efb60654a
502
py
Python
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
Day_5/highest_score.py
ecanro/100DaysOfCode_Python
a86ebe5a793fd4743e0de87454ba76925efdd23d
[ "MIT" ]
null
null
null
## Highest Score # 🚨 Don't change the code below 👇 student_scores = input("Input a list of student scores: ").split() for n in range(0, len(student_scores)): student_scores[n] = int(student_scores[n]) print(student_scores) # 🚨 Don't change the code above 👆 # Write your code below this row 👇 highest_score = 0...
26.421053
66
0.721116
82
502
4.341463
0.439024
0.292135
0.02809
0.061798
0.101124
0.101124
0
0
0
0
0
0.004819
0.173307
502
19
67
26.421053
0.840964
0.250996
0
0
0
0
0.186486
0
0
0
0
0
0
1
0
false
0
0
0
0
0.3
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
fea585d93413c287bd31eaa0525d97e26cbdcd0b
742
py
Python
codeforces.com/1669F/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/1669F/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
codeforces.com/1669F/solution.py
zubtsov/competitive-programming
919d63130144347d7f6eddcf8f5bc2afb85fddf3
[ "MIT" ]
null
null
null
for i in range(int(input())): number_of_candies = int(input()) candies_weights = list(map(int, input().split())) bob_pos = number_of_candies - 1 alice_pos = 0 bob_current_weight = 0 alice_current_weight = 0 last_equal_candies_total_number = 0 while alice_pos <= bob_pos: if al...
29.68
91
0.665768
100
742
4.47
0.27
0.232662
0.143177
0.14094
0.342282
0.161074
0.161074
0
0
0
0
0.014467
0.254717
742
24
92
30.916667
0.793852
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
feb04d32f16beda0e1b583eb23a6f47a91df44ef
695
py
Python
src/applications/blog/migrations/0003_post_author.py
alexander-sidorov/tms-z43
61ecd204f5de4e97ff0300f6ef91c36c2bcda31c
[ "MIT" ]
2
2020-12-17T20:19:21.000Z
2020-12-22T12:46:43.000Z
src/applications/blog/migrations/0003_post_author.py
alexander-sidorov/tms-z43
61ecd204f5de4e97ff0300f6ef91c36c2bcda31c
[ "MIT" ]
4
2021-04-20T08:40:30.000Z
2022-02-10T07:50:30.000Z
src/applications/blog/migrations/0003_post_author.py
alexander-sidorov/tms-z43
61ecd204f5de4e97ff0300f6ef91c36c2bcda31c
[ "MIT" ]
1
2021-02-10T06:42:19.000Z
2021-02-10T06:42:19.000Z
# Generated by Django 3.1.7 on 2021-03-24 17:41 import django.db.models.deletion from django.conf import settings from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("blo...
24.821429
66
0.604317
76
695
5.394737
0.605263
0.078049
0.068293
0.107317
0
0
0
0
0
0
0
0.063918
0.302158
695
27
67
25.740741
0.781443
0.064748
0
0.095238
1
0
0.057099
0.035494
0
0
0
0
0
1
0
false
0
0.190476
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
228122dba71ea421f33f3e5c51b862184d5fc4c8
205
py
Python
hubcare/metrics/community_metrics/issue_template/urls.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
7
2019-03-31T17:58:45.000Z
2020-02-29T22:44:27.000Z
hubcare/metrics/community_metrics/issue_template/urls.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
90
2019-03-26T01:14:54.000Z
2021-06-10T21:30:25.000Z
hubcare/metrics/community_metrics/issue_template/urls.py
aleronupe/2019.1-hubcare-api
3f031eac9559a10fdcf70a88ee4c548cf93e4ac2
[ "MIT" ]
null
null
null
from django.urls import path from issue_template.views import IssueTemplateView urlpatterns = [ path( '<str:owner>/<str:repo>/<str:token_auth>/', IssueTemplateView.as_view() ), ]
18.636364
51
0.668293
23
205
5.826087
0.73913
0
0
0
0
0
0
0
0
0
0
0
0.204878
205
10
52
20.5
0.822086
0
0
0
0
0
0.195122
0.195122
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
22849e131dffff72236a4d1d46cddf477f92bab9
2,823
py
Python
src/collectors/rabbitmq/rabbitmq.py
lreed/Diamond
2772cdbc27a7ba3fedeb6d4241aeee9d2fcbdb80
[ "MIT" ]
null
null
null
src/collectors/rabbitmq/rabbitmq.py
lreed/Diamond
2772cdbc27a7ba3fedeb6d4241aeee9d2fcbdb80
[ "MIT" ]
null
null
null
src/collectors/rabbitmq/rabbitmq.py
lreed/Diamond
2772cdbc27a7ba3fedeb6d4241aeee9d2fcbdb80
[ "MIT" ]
null
null
null
# coding=utf-8 """ Collects data from RabbitMQ through the admin interface #### Notes * if two vhosts have the queues with the same name, the metrics will collide #### Dependencies * pyrabbit """ import diamond.collector try: from numbers import Number Number # workaround for pyflakes issue #13 im...
30.031915
78
0.54729
299
2,823
5.056856
0.361204
0.039683
0.042328
0.025132
0.055556
0.055556
0
0
0
0
0
0.006515
0.347503
2,823
93
79
30.354839
0.814332
0.029047
0
0.096774
0
0
0.123271
0
0
0
0
0
0
0
null
null
0.048387
0.080645
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
2285470cfe61c3208efb829c668012f4eb4c042d
196
py
Python
classifier/cross_validation.py
ahmdrz/spam-classifier
a9cc3916a7c22545c82f0bfae7e4b95f3b36248f
[ "MIT" ]
1
2019-08-05T12:02:53.000Z
2019-08-05T12:02:53.000Z
classifier/cross_validation.py
ahmdrz/spam-classifier
a9cc3916a7c22545c82f0bfae7e4b95f3b36248f
[ "MIT" ]
null
null
null
classifier/cross_validation.py
ahmdrz/spam-classifier
a9cc3916a7c22545c82f0bfae7e4b95f3b36248f
[ "MIT" ]
null
null
null
from sklearn.model_selection import KFold def kfold_cross_validation(data, k=10): kfold = KFold(n_splits=k) for train, test in kfold.split(data): yield data[train], data[test]
32.666667
41
0.704082
30
196
4.466667
0.666667
0
0
0
0
0
0
0
0
0
0
0.012658
0.193878
196
6
42
32.666667
0.835443
0
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
228b1c94896beb15138918d15679461767abdb01
3,238
py
Python
examples/nlp/language_modeling/megatron_gpt_ckpt_to_nemo.py
rilango/NeMo
6f23ff725c596f25fab6043d95e7c0b4a5f56331
[ "Apache-2.0" ]
null
null
null
examples/nlp/language_modeling/megatron_gpt_ckpt_to_nemo.py
rilango/NeMo
6f23ff725c596f25fab6043d95e7c0b4a5f56331
[ "Apache-2.0" ]
null
null
null
examples/nlp/language_modeling/megatron_gpt_ckpt_to_nemo.py
rilango/NeMo
6f23ff725c596f25fab6043d95e7c0b4a5f56331
[ "Apache-2.0" ]
1
2021-12-07T08:15:36.000Z
2021-12-07T08:15:36.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.218391
218
0.734713
444
3,238
5.177928
0.414414
0.026098
0.036973
0.050022
0.196607
0.122662
0.122662
0.073075
0.034798
0
0
0.006749
0.176343
3,238
86
219
37.651163
0.855268
0.220198
0
0.207547
0
0.037736
0.226874
0.075758
0
0
0
0.011628
0
1
0.056604
false
0
0.132075
0
0.207547
0
0
0
0
null
0
0
0
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
228b861994dfd3c8d5b7524f5b44ae49bacc2148
6,007
py
Python
sdk/python/pulumi_aws/apigateway/api_key.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/apigateway/api_key.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/apigateway/api_key.py
dixler/pulumi-aws
88838ed6d412c092717a916b0b5b154f68226c3a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class ApiKey...
45.507576
170
0.662227
780
6,007
4.85641
0.214103
0.031679
0.038015
0.029039
0.525607
0.471489
0.447466
0.396779
0.368004
0.326558
0
0.001553
0.249542
6,007
131
171
45.854962
0.838731
0.374064
0
0.03125
1
0
0.141145
0.009321
0
0
0
0
0
1
0.0625
false
0.015625
0.09375
0.03125
0.34375
0
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
228d76877f0d9f67ffc6dc7483c7c0a95962b0f9
864
py
Python
var/spack/repos/builtin/packages/perl-ipc-run/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/perl-ipc-run/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/perl-ipc-run/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PerlIpcRun(PerlPackage): """IPC::Run allows you to run and interact with child processes u...
39.272727
100
0.730324
119
864
5.285714
0.731092
0.028617
0.047695
0.054054
0.069952
0
0
0
0
0
0
0.103825
0.152778
864
21
101
41.142857
0.755464
0.503472
0
0
0
0.142857
0.531863
0.156863
0
0
0
0
0
1
0
false
0
0.142857
0
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
228e9262ba137f922fefb676a2a9e3eabc4bf87c
804
py
Python
src/tevatron/tevax/loss.py
vjeronymo2/tevatron
7235b0823b5c3cdf1c8ce8f67cb5f1209218086a
[ "Apache-2.0" ]
95
2021-09-16T00:35:17.000Z
2022-03-31T04:59:05.000Z
src/tevatron/tevax/loss.py
vjeronymo2/tevatron
7235b0823b5c3cdf1c8ce8f67cb5f1209218086a
[ "Apache-2.0" ]
16
2021-10-05T12:29:33.000Z
2022-03-31T17:59:20.000Z
src/tevatron/tevax/loss.py
vjeronymo2/tevatron
7235b0823b5c3cdf1c8ce8f67cb5f1209218086a
[ "Apache-2.0" ]
15
2021-09-19T02:20:03.000Z
2022-03-10T03:00:23.000Z
import jax.numpy as jnp from jax import lax import optax import chex def _onehot(labels: chex.Array, num_classes: int) -> chex.Array: x = labels[..., None] == jnp.arange(num_classes).reshape((1,) * labels.ndim + (-1,)) x = lax.select(x, jnp.ones(x.shape), jnp.zeros(x.shape)) return x.astype(jnp.float32) ...
36.545455
108
0.690299
129
804
4.147287
0.395349
0.084112
0.084112
0
0
0
0
0
0
0
0
0.016058
0.14801
804
21
109
38.285714
0.764964
0
0
0
0
0
0.007463
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
22915424775bb0c1cd95df8d2deeb30cca4451ba
1,845
py
Python
python_test.py
jackKiZhu/mypython
43eac97bec07338ed3b8b9473d4e4fae26f7140c
[ "MIT" ]
null
null
null
python_test.py
jackKiZhu/mypython
43eac97bec07338ed3b8b9473d4e4fae26f7140c
[ "MIT" ]
null
null
null
python_test.py
jackKiZhu/mypython
43eac97bec07338ed3b8b9473d4e4fae26f7140c
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config["SQLALCHEMY_DATABASE_URI"] = "mysql://root:mysql@127.0.0.1:3306/python_github" app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True db = SQLAlchemy(app) class User(db.Model): id = db.Column(db...
32.368421
95
0.614634
245
1,845
4.318367
0.338776
0.113422
0.090737
0.042533
0.173913
0.113422
0.066163
0.066163
0
0
0
0.010036
0.243902
1,845
56
96
32.946429
0.748387
0.190244
0
0.055556
0
0
0.12289
0.067522
0
0
0
0
0
1
0.055556
false
0.055556
0.055556
0.027778
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
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
2293c25414f578bb3829ecd6692177ce5d098784
1,218
py
Python
python/tree/0103_binary_tree_zigzag_level_order_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/tree/0103_binary_tree_zigzag_level_order_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/tree/0103_binary_tree_zigzag_level_order_traversal.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def zigzagLevelOrder(self, root): """ :type root: TreeNode :rtype: List[List[int]] """ if not root: return [] ...
21
46
0.374384
136
1,218
3.301471
0.352941
0.062361
0.035635
0
0
0
0
0
0
0
0
0.03005
0.50821
1,218
57
47
21.368421
0.719533
0.036125
0
0.083333
0
0
0
0
0
0
0
0
0.020833
1
0.0625
false
0
0
0
0.145833
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
229f21bdd7be594d33b1093f3cb181d2690aa326
3,714
py
Python
pyroute/poi_osm.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/poi_osm.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/poi_osm.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #---------------------------------------------------------------- # OSM POI handler for pyroute # #------------------------------------------------------ # Copyright 2007, Oliver White # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publ...
29.244094
74
0.630856
510
3,714
4.529412
0.398039
0.023377
0.016883
0.024675
0.112987
0.101732
0.077489
0.051515
0.036364
0.036364
0
0.006881
0.178244
3,714
126
75
29.47619
0.75
0.270328
0
0.093023
0
0
0.116201
0
0
0
0
0.007937
0
0
null
null
0.034884
0.05814
null
null
0.05814
0
0
0
null
0
0
0
0
0
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
22a26cac9546e3d04238eea2e14e595751d5270c
11,429
py
Python
geo_regions.py
saeed-moghimi-noaa/Maxelev_plot
5bb701d8cb7d64db4c89ea9d7993a8269e57e504
[ "CC0-1.0" ]
null
null
null
geo_regions.py
saeed-moghimi-noaa/Maxelev_plot
5bb701d8cb7d64db4c89ea9d7993a8269e57e504
[ "CC0-1.0" ]
null
null
null
geo_regions.py
saeed-moghimi-noaa/Maxelev_plot
5bb701d8cb7d64db4c89ea9d7993a8269e57e504
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Geo regions for map plot """ __author__ = "Saeed Moghimi" __copyright__ = "Copyright 2017, UCAR/NOAA" __license__ = "GPL" __version__ = "1.0" __email__ = "moghimis@gmail.com" import matplotlib.pyplot as plt from collections import defaultdict defs = defaultdict(dic...
34.116418
52
0.441683
1,473
11,429
3.361847
0.157502
0.318053
0.124394
0.024233
0.30937
0.240913
0.197294
0.160339
0.122577
0.099152
0
0.125334
0.313063
11,429
334
53
34.218563
0.505413
0.021262
0
0.166667
0
0
0.209031
0.005734
0
0
0
0
0
1
0.003401
false
0
0.006803
0
0.013605
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
22a96894a0336c7d7df8e78f4c4c6ea30cbd0530
1,507
py
Python
microservices/validate/tools/validates.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
microservices/validate/tools/validates.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
microservices/validate/tools/validates.py
clodonil/pipeline_aws_custom
8ca517d0bad48fe528461260093f0035f606f9be
[ "Apache-2.0" ]
null
null
null
""" Tools para validar o arquivo template recebido do SQS """ class Validate: def __init__(self): pass def check_validate_yml(self, template): """ valida se o arquivo yml é valido """ if template: return True else: return False def che...
25.542373
73
0.568016
166
1,507
4.981928
0.349398
0.048368
0.065296
0.072551
0.230955
0.180169
0.180169
0.180169
0.180169
0.128174
0
0
0.357664
1,507
58
74
25.982759
0.854339
0.147976
0
0.444444
0
0
0.041385
0
0
0
0
0
0
1
0.194444
false
0.027778
0
0
0.527778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
22ac34a9639b610355752302f9ba8f423e657538
436
py
Python
Specialization/Personal/SortHours.py
lastralab/Statistics
358679f2e749db2e23c655795b34382c84270704
[ "MIT" ]
3
2017-09-26T20:19:57.000Z
2020-02-03T16:59:59.000Z
Specialization/Personal/SortHours.py
lastralab/Statistics
358679f2e749db2e23c655795b34382c84270704
[ "MIT" ]
1
2017-09-22T13:57:04.000Z
2017-09-26T20:03:24.000Z
Specialization/Personal/SortHours.py
lastralab/Statistics
358679f2e749db2e23c655795b34382c84270704
[ "MIT" ]
3
2018-05-09T01:41:16.000Z
2019-01-16T15:32:59.000Z
name = "mail.txt" counts = dict() handle = open(name) for line in handle: line = line.rstrip() if line == '': continue words = line.split() if words[0] == 'From': counts[words[5][:2]] = counts.get(words[5][:2], 0) + 1 tlist = list() for key, value in counts.items(): ...
18.956522
64
0.548165
60
436
3.983333
0.5
0.133891
0.058577
0.108787
0
0
0
0
0
0
0
0.022654
0.291284
436
22
65
19.818182
0.750809
0
0
0
0
0
0.027523
0
0
0
0
0
0
0
null
null
0
0
null
null
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
22ae53d11248d624a0ee5f564b8dd2e374ddaa54
606
py
Python
Day 2/Day_2_Python.py
giTan7/30-Days-Of-Code
f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8
[ "MIT" ]
1
2020-10-15T14:44:08.000Z
2020-10-15T14:44:08.000Z
Day 2/Day_2_Python.py
giTan7/30-Days-Of-Code
f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8
[ "MIT" ]
null
null
null
Day 2/Day_2_Python.py
giTan7/30-Days-Of-Code
f023a2bf1b5e58e1eb5180162443b9cd4b6b2ff8
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the solve function below. def solve(meal_cost, tip_percent, tax_percent): tip = (meal_cost * tip_percent)/100 tax = (meal_cost * tax_percent)/100 print(int(meal_cost + tip + tax + 0.5)) # We add 0.5 because...
22.444444
76
0.663366
89
606
4.269663
0.483146
0.126316
0.115789
0.142105
0.173684
0.173684
0.173684
0
0
0
0
0.027957
0.232673
606
26
77
23.307692
0.789247
0.268977
0
0
0
0
0.019417
0
0
0
0
0
0
1
0.071429
false
0
0.357143
0
0.428571
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
22aec8fbe47f7975a1e7f4a0caa5c88c56e4a03e
1,133
py
Python
data/train/python/22aec8fbe47f7975a1e7f4a0caa5c88c56e4a03e__init__.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/22aec8fbe47f7975a1e7f4a0caa5c88c56e4a03e__init__.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/22aec8fbe47f7975a1e7f4a0caa5c88c56e4a03e__init__.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
def save_form(form, actor=None): """Allows storing a form with a passed actor. Normally, Form.save() does not accept an actor, but if you require this to be passed (is not handled by middleware), you can use this to replace form.save(). Requires you to use the audit.Model model as the actor is passed to th...
32.371429
118
0.634598
156
1,133
4.544872
0.423077
0.045134
0.059238
0.06488
0.126939
0.126939
0.126939
0.126939
0.126939
0
0
0.008383
0.263019
1,133
34
119
33.323529
0.840719
0.826125
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
22b2735d6e9bb2b53a0a0541af9ec0a4bc2db7e4
738
py
Python
pair.py
hhgarnes/python-validity
82b42e4fd152f10f75584de56502fd9ada299bb5
[ "MIT" ]
null
null
null
pair.py
hhgarnes/python-validity
82b42e4fd152f10f75584de56502fd9ada299bb5
[ "MIT" ]
null
null
null
pair.py
hhgarnes/python-validity
82b42e4fd152f10f75584de56502fd9ada299bb5
[ "MIT" ]
null
null
null
from time import sleep from proto9x.usb import usb from proto9x.tls import tls from proto9x.flash import read_flash from proto9x.init_flash import init_flash from proto9x.upload_fwext import upload_fwext from proto9x.calibrate import calibrate from proto9x.init_db import init_db #usb.trace_enabled=True #tls.trace_en...
18.45
47
0.734417
105
738
5.028571
0.371429
0.145833
0.060606
0
0
0
0
0
0
0
0
0.023511
0.135501
738
39
48
18.923077
0.804075
0.059621
0
0.142857
0
0
0.141823
0
0
0
0.008683
0
0
1
0.035714
true
0
0.285714
0
0.321429
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
22b61a63d3fab6ac5a4af3febf6a8b869aa2fb13
926
py
Python
tests/tools/test-tcp4-client.py
jimmy-huang/zephyr.js
cef5c0dffaacf7d5aa3f8265626f68a1e2b32eb5
[ "Apache-2.0" ]
null
null
null
tests/tools/test-tcp4-client.py
jimmy-huang/zephyr.js
cef5c0dffaacf7d5aa3f8265626f68a1e2b32eb5
[ "Apache-2.0" ]
null
null
null
tests/tools/test-tcp4-client.py
jimmy-huang/zephyr.js
cef5c0dffaacf7d5aa3f8265626f68a1e2b32eb5
[ "Apache-2.0" ]
null
null
null
# !usr/bin/python # coding:utf-8 import time import socket def main(): print "Socket client creat successful" host = "192.0.2.1" port = 9876 bufSize = 1024 addr = (host, port) Timeout = 300 mySocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) mySocket.settimeout(Timeout) ...
20.577778
64
0.512959
95
926
4.894737
0.557895
0.051613
0
0
0
0
0
0
0
0
0
0.035651
0.394168
926
44
65
21.045455
0.793226
0.030238
0
0.060606
0
0
0.116201
0
0
0
0
0
0
0
null
null
0
0.060606
null
null
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
22b976d4af390f9c20bc3dedbfcb6376fdbf0308
5,277
py
Python
hw2/deeplearning/style_transfer.py
axelbr/berkeley-cs182-deep-neural-networks
2bde27d9d5361d48dce7539d00b136209c1cfaa1
[ "MIT" ]
null
null
null
hw2/deeplearning/style_transfer.py
axelbr/berkeley-cs182-deep-neural-networks
2bde27d9d5361d48dce7539d00b136209c1cfaa1
[ "MIT" ]
null
null
null
hw2/deeplearning/style_transfer.py
axelbr/berkeley-cs182-deep-neural-networks
2bde27d9d5361d48dce7539d00b136209c1cfaa1
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F def content_loss(content_weight, content_current, content_target): """ Compute the content loss for style transfer. Inputs: - content_weight: Scalar giving the weighting for the content loss. - content_current: features of the curre...
45.886957
116
0.437938
532
5,277
4.25188
0.246241
0.007958
0.007958
0.022989
0.181256
0.157383
0.1229
0.066313
0.037135
0.037135
0
0.005672
0.264923
5,277
114
117
46.289474
0.577468
0.481713
0
0.08
0
0
0
0
0
0
0
0.035088
0
1
0.16
false
0
0.12
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
22c0a198d3ffbdb90c8a504d310e057f35103de5
2,740
py
Python
site_settings/models.py
shervinbdndev/Django-Shop
baa4e7b91fbdd01ee591049c12cd9fbfaa434379
[ "MIT" ]
13
2022-02-25T05:04:58.000Z
2022-03-15T10:55:24.000Z
site_settings/models.py
iTsSobhan/Django-Shop
9eb6a08c6e93e5401d6bc2eeb30f2ef35adec730
[ "MIT" ]
null
null
null
site_settings/models.py
iTsSobhan/Django-Shop
9eb6a08c6e93e5401d6bc2eeb30f2ef35adec730
[ "MIT" ]
1
2022-03-03T09:21:49.000Z
2022-03-03T09:21:49.000Z
from django.db import models class SiteSettings(models.Model): site_name = models.CharField(max_length=200 , verbose_name='Site Name') site_url = models.CharField(max_length=200 , verbose_name='Site URL') site_address = models.CharField(max_length=300 , verbose_name='Site Address') site_phone = mode...
36.052632
110
0.670073
329
2,740
5.285714
0.218845
0.177113
0.093157
0.124209
0.456584
0.372053
0.327775
0.309373
0.236343
0.212191
0
0.016941
0.224453
2,740
76
111
36.052632
0.801412
0
0
0.285714
0
0
0.124042
0
0
0
0
0
0
1
0.081633
false
0
0.020408
0
0.755102
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
22c745e9fe90945bd78c2b0b4951b89a65ce5057
3,482
py
Python
py_hanabi/card.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
1
2018-09-28T00:47:52.000Z
2018-09-28T00:47:52.000Z
py_hanabi/card.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
py_hanabi/card.py
krinj/hanabi-simulator
b77b04aa09bab8bd8d7b784e04bf8b9d5d76d1a6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A card (duh). """ import random import uuid from enum import Enum from typing import List from py_hanabi.settings import CARD_DECK_DISTRIBUTION __author__ = "Jakrin Juangbhanich" __email__ = "juangbhanich.k@gmail.com" class Color(Enum): RED = 1 BLUE = 2 GREEN = 3 YELLOW ...
24.871429
72
0.587881
435
3,482
4.471264
0.222989
0.064781
0.043188
0.043188
0.243702
0.192288
0.192288
0.160411
0.160411
0.160411
0
0.006203
0.305572
3,482
139
73
25.05036
0.79818
0.059161
0
0.2
0
0
0.050952
0.017802
0
0
0
0
0
1
0.19
false
0
0.05
0.11
0.45
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
22c78686c8b8a763f3206d86fcbc87e20d6ea1aa
1,186
py
Python
setup.py
d2gex/distpickymodel
7acd4ffafbe592d6336d91d6e7411cd45357e41c
[ "MIT" ]
null
null
null
setup.py
d2gex/distpickymodel
7acd4ffafbe592d6336d91d6e7411cd45357e41c
[ "MIT" ]
null
null
null
setup.py
d2gex/distpickymodel
7acd4ffafbe592d6336d91d6e7411cd45357e41c
[ "MIT" ]
null
null
null
import setuptools import distpickymodel def get_long_desc(): with open("README.rst", "r") as fh: return fh.read() setuptools.setup( name="distpickymodel", version=distpickymodel.__version__, author="Dan G", author_email="daniel.garcia@d2garcia.com", description="A shared Mongoengine-...
32.944444
71
0.636594
126
1,186
5.888889
0.690476
0.076819
0.101078
0.070081
0
0
0
0
0
0
0
0.02246
0.211636
1,186
35
72
33.885714
0.771123
0.021922
0
0
0
0
0.522453
0.022453
0
0
0
0
0
1
0.033333
true
0
0.066667
0
0.133333
0
0
0
0
null
0
0
0
0
0
0
0
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
22cc300c5aa21f713c2ef3f3b60722cc7d238f97
1,163
py
Python
rdl/data_sources/DataSourceFactory.py
pageuppeople-opensource/relational-data-loader
0bac7036d65636d06eacca4e68e09d6e1c506ea4
[ "MIT" ]
2
2019-03-11T12:45:23.000Z
2019-04-05T05:22:43.000Z
rdl/data_sources/DataSourceFactory.py
pageuppeople-opensource/relational-data-loader
0bac7036d65636d06eacca4e68e09d6e1c506ea4
[ "MIT" ]
5
2019-02-08T03:23:25.000Z
2019-04-11T01:29:45.000Z
rdl/data_sources/DataSourceFactory.py
PageUpPeopleOrg/relational-data-loader
0bac7036d65636d06eacca4e68e09d6e1c506ea4
[ "MIT" ]
1
2019-03-04T04:08:49.000Z
2019-03-04T04:08:49.000Z
import logging from rdl.data_sources.MsSqlDataSource import MsSqlDataSource from rdl.data_sources.AWSLambdaDataSource import AWSLambdaDataSource class DataSourceFactory(object): def __init__(self, logger=None): self.logger = logger or logging.getLogger(__name__) self.sources = [MsSqlDataSource, AW...
35.242424
83
0.674979
124
1,163
6.08871
0.41129
0.211921
0.029139
0.047682
0.24106
0.24106
0.24106
0.24106
0.24106
0.24106
0
0
0.263113
1,163
32
84
36.34375
0.88098
0
0
0.153846
0
0
0.100602
0
0
0
0
0
0
1
0.153846
false
0
0.115385
0.038462
0.461538
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
22cd87f92115b6affd305877641e7e519dbd0eb4
476
py
Python
server/WitClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
1
2020-06-22T14:28:41.000Z
2020-06-22T14:28:41.000Z
server/WitClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
null
null
null
server/WitClient.py
owo/jitalk
2db2782282a2302b4cf6049030822734a6856982
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import wit import json class WitClient(object): """docstring for WitClient""" _access_token = 'NBPOVLY7T6W3KOUEML2GXOWODH3LPWPD' def __init__(self): wit.init() def text_query(self, text): res = json.loads(wit.text_query(text, WitClient._access_token)) return ...
20.695652
65
0.707983
62
476
5.129032
0.66129
0.09434
0.125786
0
0
0
0
0
0
0
0
0.014851
0.151261
476
23
66
20.695652
0.772277
0.088235
0
0
0
0
0.254951
0.079208
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
22cf943746c3603f630cb274d2c1d26e36acc1fd
3,472
py
Python
python_scripts/BUSCO_phylogenetics/rename_all_fa_seq.py
peterthorpe5/Methods_M.cerasi_R.padi_genome_assembly
c6cb771afaf40f5def47e33ff11cd8867ec528e0
[ "MIT" ]
4
2019-04-01T02:08:21.000Z
2022-02-04T08:37:47.000Z
python_scripts/BUSCO_phylogenetics/rename_all_fa_seq.py
peterthorpe5/Methods_M.cerasi_R.padi_genome_assembly
c6cb771afaf40f5def47e33ff11cd8867ec528e0
[ "MIT" ]
1
2018-09-30T00:29:43.000Z
2018-10-01T07:51:16.000Z
python_scripts/BUSCO_phylogenetics/rename_all_fa_seq.py
peterthorpe5/Methods_M.cerasi_R.padi_genome_assembly
c6cb771afaf40f5def47e33ff11cd8867ec528e0
[ "MIT" ]
1
2019-12-05T09:04:38.000Z
2019-12-05T09:04:38.000Z
#!/usr/bin/env python # author: Peter Thorpe September 2015. The James Hutton Insitute, Dundee, UK. # title rename single copy busco genes from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio import SeqIO import os from sys import stdin,argv import sys from optparse import OptionParser ###############...
26.707692
84
0.579781
436
3,472
4.522936
0.385321
0.015213
0.022819
0.01927
0.105477
0.076065
0.076065
0.076065
0.076065
0.076065
0
0.005363
0.301843
3,472
129
85
26.914729
0.808168
0.116935
0
0.2375
0
0
0.201359
0.008226
0
0
0
0
0
0
null
null
0
0.0875
null
null
0.025
0
0
0
null
0
0
0
0
0
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
22d2e5e3c594615ca7c099c59610e2d90de239db
403
py
Python
pages/migrations/0004_auto_20181102_0944.py
yogeshprasad/spa-development
1bee9ca64da5815e1c9a2f7af43b44b59ee2ca7b
[ "Apache-2.0" ]
null
null
null
pages/migrations/0004_auto_20181102_0944.py
yogeshprasad/spa-development
1bee9ca64da5815e1c9a2f7af43b44b59ee2ca7b
[ "Apache-2.0" ]
7
2020-06-05T19:11:22.000Z
2022-03-11T23:30:57.000Z
pages/migrations/0004_auto_20181102_0944.py
yogeshprasad/spa-development
1bee9ca64da5815e1c9a2f7af43b44b59ee2ca7b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.6 on 2018-11-02 09:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pages', '0003_coachingcourse'), ] operations = [ migrations.AlterField( model_name='coachingcourse', name='username'...
21.210526
63
0.602978
41
403
5.853659
0.829268
0
0
0
0
0
0
0
0
0
0
0.075601
0.277916
403
18
64
22.388889
0.749141
0.111663
0
0
1
0
0.129213
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
22d31dc3511cd477901e03ecc8f042e8c0f688bf
1,119
py
Python
imageclassification/src/sample/splitters/_StratifiedSplitter.py
waikato-datamining/keras-imaging
f044f883242895c18cfdb31a827bc32bdb0405ed
[ "MIT" ]
null
null
null
imageclassification/src/sample/splitters/_StratifiedSplitter.py
waikato-datamining/keras-imaging
f044f883242895c18cfdb31a827bc32bdb0405ed
[ "MIT" ]
null
null
null
imageclassification/src/sample/splitters/_StratifiedSplitter.py
waikato-datamining/keras-imaging
f044f883242895c18cfdb31a827bc32bdb0405ed
[ "MIT" ]
1
2020-04-16T15:29:28.000Z
2020-04-16T15:29:28.000Z
from collections import OrderedDict from random import Random from typing import Set from .._types import Dataset, Split, LabelIndices from .._util import per_label from ._RandomSplitter import RandomSplitter from ._Splitter import Splitter class StratifiedSplitter(Splitter): """ TODO """ def __init_...
28.692308
128
0.671135
127
1,119
5.637795
0.362205
0.055866
0.062849
0.055866
0
0
0
0
0
0
0
0.003521
0.238606
1,119
38
129
29.447368
0.836854
0.003575
0
0
0
0
0.021838
0.021838
0
0
0
0.026316
0
1
0.12
false
0
0.28
0.04
0.52
0
0
0
0
null
0
0
0
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
22d37205c7c002b3538af8a7bcaeddcf556d57d9
315
py
Python
revenuecat_python/enums.py
YuraHavrylko/revenuecat_python
a25b234933b6e80e1ff09b6a82d73a0e3df91caa
[ "MIT" ]
1
2020-12-11T09:31:02.000Z
2020-12-11T09:31:02.000Z
revenuecat_python/enums.py
YuraHavrylko/revenuecat_python
a25b234933b6e80e1ff09b6a82d73a0e3df91caa
[ "MIT" ]
null
null
null
revenuecat_python/enums.py
YuraHavrylko/revenuecat_python
a25b234933b6e80e1ff09b6a82d73a0e3df91caa
[ "MIT" ]
null
null
null
from enum import Enum class SubscriptionPlatform(Enum): ios = 'ios' android = 'android' macos = 'macos' uikitformac = 'uikitformac' stripe = 'stripe' class AttributionNetworkCode(Enum): apple_search_ads = 0 adjust = 1 apps_flyer = 2 branch = 3 tenjin = 4 facebook = 5
17.5
35
0.634921
35
315
5.628571
0.742857
0
0
0
0
0
0
0
0
0
0
0.026432
0.279365
315
18
36
17.5
0.84141
0
0
0
0
0
0.101266
0
0
0
0
0
0
1
0
false
0
0.071429
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
22d9ab4bf21ea11b6c751dd2350676d79a0f46d5
397
py
Python
classroom/migrations/0025_myfile_file.py
Abulhusain/E-learing
65cfe3125f1b6794572ef2daf89917976f0eac09
[ "MIT" ]
5
2019-06-19T03:47:17.000Z
2020-06-11T17:46:50.000Z
classroom/migrations/0025_myfile_file.py
Abulhusain/E-learing
65cfe3125f1b6794572ef2daf89917976f0eac09
[ "MIT" ]
3
2021-03-19T01:23:12.000Z
2021-09-08T01:05:25.000Z
classroom/migrations/0025_myfile_file.py
seeej/digiwiz
96ddfc22fe4c815feec3d75c30576fec5f344154
[ "MIT" ]
1
2021-06-04T05:58:15.000Z
2021-06-04T05:58:15.000Z
# Generated by Django 2.2.2 on 2019-08-25 09:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('classroom', '0024_auto_20190825_1723'), ] operations = [ migrations.AddField( model_name='myfile', name='file', ...
20.894737
63
0.602015
44
397
5.318182
0.818182
0.017094
0
0
0
0
0
0
0
0
0
0.119298
0.282116
397
18
64
22.055556
0.701754
0.11335
0
0
1
0
0.12
0.065714
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
22da72ceaa2598d408165e577728716dec2eb71a
11,928
py
Python
tmp/real_time_log_analy/logWatcher.py
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
7
2017-07-16T15:09:26.000Z
2021-09-01T02:13:15.000Z
tmp/real_time_log_analy/logWatcher.py
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
null
null
null
tmp/real_time_log_analy/logWatcher.py
hankai17/test
8f38d999a7c6a92eac94b4d9dc8e444619d2144f
[ "MIT" ]
3
2017-09-13T09:54:49.000Z
2019-03-18T01:29:15.000Z
#!/usr/bin/env python import os import sys import time import errno import stat import datetime import socket import struct import atexit import logging #from lru import LRUCacheDict from logging import handlers from task_manager import Job, taskManage from ctypes import * from urlparse import * from multiprocessing ...
29.021898
132
0.550889
1,607
11,928
3.927194
0.184194
0.024243
0.030423
0.02155
0.261607
0.211535
0.19569
0.151006
0.11583
0.077167
0
0.021374
0.321429
11,928
410
133
29.092683
0.75834
0.037643
0
0.317416
0
0
0.061273
0.004451
0
0
0
0
0.005618
0
null
null
0
0.047753
null
null
0.039326
0
0
0
null
0
0
0
0
0
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
22df608412513a1bf5e311a4eae60aa3f6a7a737
1,609
py
Python
python/test/test_dynamic_bitset.py
hagabb/katana
a52a688b90315a79aa95cf8d279fd7f949a3b94b
[ "BSD-3-Clause" ]
null
null
null
python/test/test_dynamic_bitset.py
hagabb/katana
a52a688b90315a79aa95cf8d279fd7f949a3b94b
[ "BSD-3-Clause" ]
null
null
null
python/test/test_dynamic_bitset.py
hagabb/katana
a52a688b90315a79aa95cf8d279fd7f949a3b94b
[ "BSD-3-Clause" ]
null
null
null
import pytest from katana.dynamic_bitset import DynamicBitset __all__ = [] SIZE = 50 @pytest.fixture def dbs(): return DynamicBitset(SIZE) def test_set(dbs): dbs[10] = 1 assert dbs[10] def test_set_invalid_type(dbs): try: dbs[2.3] = 0 assert False except TypeError: p...
14.898148
47
0.580485
245
1,609
3.673469
0.208163
0.077778
0.062222
0.07
0.48
0.36
0.234444
0.206667
0.051111
0.051111
0
0.082216
0.304537
1,609
107
48
15.037383
0.722073
0
0
0.513158
0
0
0
0
0
0
0
0
0.289474
1
0.171053
false
0.052632
0.026316
0.013158
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
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
22e1bc52c4e28d18d68ad09f117367db41946c7e
5,679
py
Python
src/clients/ctm_api_client/models/user_additional_properties.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
5
2021-12-01T18:40:00.000Z
2022-03-04T10:51:44.000Z
src/clients/ctm_api_client/models/user_additional_properties.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
3
2022-02-21T20:08:32.000Z
2022-03-16T17:41:03.000Z
src/clients/ctm_api_client/models/user_additional_properties.py
IceT-M/ctm-python-client
0ef1d8a3c9a27a01c088be1cdf5d177d25912bac
[ "BSD-3-Clause" ]
7
2021-12-01T11:59:16.000Z
2022-03-01T18:16:40.000Z
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.215 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from clients.ct...
30.207447
101
0.611727
617
5,679
5.421394
0.212318
0.045441
0.079522
0.09148
0.40867
0.34858
0.326756
0.1429
0.121375
0.02272
0
0.015463
0.305335
5,679
187
102
30.368984
0.832446
0.312555
0
0.055556
1
0
0.055489
0
0
0
0
0
0
1
0.133333
false
0
0.044444
0
0.322222
0.022222
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
22e6c10685bc8e3a610b18ebd720a7487a124de6
9,576
py
Python
object_detection/exporter_test.py
travisyates81/object-detection
931bebfa54798c08d2c401e9c1bad39015d8c832
[ "MIT" ]
1
2019-09-19T18:24:55.000Z
2019-09-19T18:24:55.000Z
object_detection/exporter_test.py
travisyates81/object-detection
931bebfa54798c08d2c401e9c1bad39015d8c832
[ "MIT" ]
null
null
null
object_detection/exporter_test.py
travisyates81/object-detection
931bebfa54798c08d2c401e9c1bad39015d8c832
[ "MIT" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Travis Yates """Tests for object_detection.export_inference_graph.""" import os import mock import numpy as np import tensorflow as tf from object_detection import exporter from object_detection.builders import model_builder from object_detection.core i...
44.539535
77
0.680138
1,181
9,576
5.159187
0.130398
0.105695
0.064993
0.022977
0.684064
0.669457
0.659938
0.651567
0.651567
0.651567
0
0.016752
0.22076
9,576
214
78
44.747664
0.799786
0.012949
0
0.591398
0
0
0.057497
0
0
0
0
0
0.043011
1
0.080645
false
0.010753
0.048387
0.016129
0.172043
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
22f3312bdb283b4ef7d6f8aa9f88ddb5c8c89e30
662
py
Python
ch_4/stopping_length.py
ProhardONE/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
51
2016-04-05T16:56:11.000Z
2022-02-08T00:08:47.000Z
ch_4/stopping_length.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
null
null
null
ch_4/stopping_length.py
zhangxiao921207/python_primer
211e37c1f2fd169269fc4f3c08e8b7e5225f2ad0
[ "MIT" ]
47
2016-05-02T07:51:37.000Z
2022-02-08T01:28:15.000Z
# Exercise 4.11 # Author: Noah Waterfield Price import sys g = 9.81 # acceleration due to gravity try: # initial velocity (convert to m/s) v0 = (1000. / 3600) * float(sys.argv[1]) mu = float(sys.argv[2]) # coefficient of friction except IndexError: print 'Both v0 (in km/s) and mu must be supplied on...
22.827586
73
0.649547
111
662
3.837838
0.630631
0.028169
0.046948
0.070423
0
0
0
0
0
0
0
0.129594
0.219033
662
28
74
23.642857
0.694391
0.194864
0
0
0
0
0.25908
0
0
0
0
0
0
0
null
null
0
0.071429
null
null
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
22f3a0221d0e140933a57d7b71e0a66cb6793a2d
5,761
py
Python
examples/DeepWisdom/Auto_NLP/deepWisdom/transformers_/__init__.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
3
2020-12-15T02:40:43.000Z
2021-01-14T02:32:13.000Z
examples/DeepWisdom/Auto_NLP/deepWisdom/transformers_/__init__.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
null
null
null
examples/DeepWisdom/Auto_NLP/deepWisdom/transformers_/__init__.py
zichuan-scott-xu/automl-workflow
d108e55da943775953b9f1801311a86ac07e58a0
[ "Apache-2.0" ]
4
2021-01-07T05:41:38.000Z
2021-04-07T08:02:22.000Z
__version__ = "2.1.1" # Work around to update TensorFlow's absl.logging threshold which alters the # default Python logging output behavior when present. # see: https://github.com/abseil/abseil-py/issues/99 # and: https://github.com/tensorflow/tensorflow/issues/26691#issuecomment-500369493 try: import absl.logging...
59.391753
109
0.740844
519
5,761
7.870906
0.387283
0.046512
0.061689
0.063647
0.188005
0.188005
0.053856
0.053856
0.053856
0.053856
0
0.007764
0.217497
5,761
96
110
60.010417
0.898403
0.063183
0
0.025641
0
0
0.030269
0
0
0
0
0
0
1
0
false
0.012821
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
22f68910ff9dfaa421812c8e74e6090e44df810d
1,797
py
Python
project/users/models.py
rchdlps/django-docker
2c12732264c1f17cd62e20927b5956db498c30b7
[ "MIT" ]
null
null
null
project/users/models.py
rchdlps/django-docker
2c12732264c1f17cd62e20927b5956db498c30b7
[ "MIT" ]
null
null
null
project/users/models.py
rchdlps/django-docker
2c12732264c1f17cd62e20927b5956db498c30b7
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db.models import CharField from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from django.db import models from PIL import Image class User(AbstractUser): # First Name and Last Name do not cover name patterns ...
41.790698
82
0.673901
233
1,797
5.042918
0.437768
0.099574
0.065532
0.095319
0.154894
0
0
0
0
0
0
0.025222
0.183639
1,797
42
83
42.785714
0.775733
0.046745
0
0
0
0
0.113091
0
0
0
0
0
0
1
0.041667
false
0
0.25
0.041667
0.958333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
22feb380588bd77256d844c8ff999d4f5568fa43
1,499
py
Python
setup.py
ovnicraft/runa
4834b7467314c51c3e8e010b47a10bdfae597a5b
[ "MIT" ]
5
2018-02-02T13:12:55.000Z
2019-12-21T04:21:10.000Z
setup.py
ovnicraft/runa
4834b7467314c51c3e8e010b47a10bdfae597a5b
[ "MIT" ]
1
2017-12-18T15:49:13.000Z
2017-12-18T15:49:13.000Z
setup.py
ovnicraft/runa
4834b7467314c51c3e8e010b47a10bdfae597a5b
[ "MIT" ]
1
2020-03-17T03:50:19.000Z
2020-03-17T03:50:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open("README.rst") as readme_file: readme = readme_file.read() with open("HISTORY.rst") as history_file: history = history_file.read() requirements = ["Click>=6.0", "suds2==0.7.1"] setup_...
28.826923
79
0.662442
177
1,499
5.491525
0.581921
0.052469
0.07716
0.080247
0
0
0
0
0
0
0
0.014913
0.194797
1,499
51
80
29.392157
0.790389
0.116745
0
0
0
0
0.384791
0.019772
0
0
0
0.019608
0
1
0
false
0
0.026316
0
0.026316
0
0
0
0
null
0
0
0
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
fe02b43015e3d0762066c7be3eb1af3c04bff4d4
2,757
py
Python
section_07_(files)/read_csv.py
govex/python-lessons
e692f48b6db008a45df0b941dee1e580f5a6c800
[ "MIT" ]
5
2019-10-25T20:47:22.000Z
2021-12-07T06:37:22.000Z
section_07_(files)/read_csv.py
govex/python-lessons
e692f48b6db008a45df0b941dee1e580f5a6c800
[ "MIT" ]
null
null
null
section_07_(files)/read_csv.py
govex/python-lessons
e692f48b6db008a45df0b941dee1e580f5a6c800
[ "MIT" ]
1
2021-07-20T18:56:15.000Z
2021-07-20T18:56:15.000Z
# If you're new to file handling, be sure to check out with_open.py first! # You'll also want to check out read_text.py before this example. This one is a bit more advanced. with open('read_csv.csv', 'r') as states_file: # Instead of leaving the file contents as a string, we're splitting the file into a list...
48.368421
158
0.692057
470
2,757
4.048936
0.329787
0.031529
0.037835
0.063058
0.011561
0.011561
0
0
0
0
0
0.045205
0.205658
2,757
56
159
49.232143
0.823744
0.821545
0
0
0
0
0.078775
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1