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
e4f3f5b2d09517330825637d500809f9259e85f8
14,722
py
Python
eval/vqa_data_provider_layer.py
minsuu/vqa_mcb
cb04e7cd1ceba4e7508024e5dbdfe08d1575b007
[ "BSD-2-Clause" ]
214
2016-07-13T00:17:44.000Z
2022-01-28T07:06:07.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
23
2016-07-14T07:45:59.000Z
2019-08-15T02:56:34.000Z
eval/vqa_data_provider_layer.py
afcarl/vqa-mcb
172775b2ec927456eecbe1aa5878b673482f2a54
[ "BSD-2-Clause" ]
87
2016-07-12T18:20:32.000Z
2021-10-30T16:44:33.000Z
import caffe import numpy as np import random import os import sys import re import json import spacy from operator import mul GLOVE_EMBEDDING_SIZE = 300 CURRENT_DATA_SHAPE = None SPATIAL_COORD = None GLOVE = None class LoadVQADataProvider: def __init__(self, ques_file_path, img_file_pre, vdict_path, adict_pat...
35.73301
111
0.53831
1,964
14,722
3.837576
0.139511
0.028659
0.030251
0.026005
0.392331
0.352262
0.299721
0.274778
0.232453
0.205519
0
0.013631
0.342209
14,722
411
112
35.819951
0.764663
0.046054
0
0.265574
0
0.039344
0.039639
0.001974
0
0
0
0
0.003279
0
null
null
0.013115
0.029508
null
null
0.016393
0
0
0
null
0
0
0
0
0
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
900fb0840db60165c43f29441d88fb00f6f55c09
718
py
Python
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
5
2021-11-02T20:13:41.000Z
2022-03-19T00:01:53.000Z
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
fastapi_crud/fastapicrud.py
miikapo/fastapi-crud
d8517d93068b0e71fb114a695a41f48570387b9a
[ "Apache-2.0" ]
null
null
null
from fastapi import Depends from sqlalchemy.ext.asyncio import AsyncEngine from sqlalchemy.orm import sessionmaker from typing import AsyncGenerator from fastapi_crud.session import Session from fastapi_crud.router import ModelRouter from fastapi_crud.types import Model class FastapiCRUD: def __init__(self, engi...
32.636364
66
0.754875
86
718
6.127907
0.372093
0.104364
0.085389
0
0
0
0
0
0
0
0
0
0.17688
718
21
67
34.190476
0.891709
0
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.4375
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
9012c72f255c969953043607b7f84aeb3ccb4764
9,807
py
Python
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/artifact_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
27.940171
207
0.597634
1,160
9,807
4.844828
0.118966
0.042705
0.156584
0.13879
0.525979
0.431495
0.414947
0.246797
0.193238
0.04911
0
0.021758
0.311104
9,807
350
208
28.02
0.810095
0.352401
0
0.077922
1
0
0.07597
0
0
0
0
0
0
1
0.168831
false
0
0.019481
0
0.311688
0.012987
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
901370bb81cfb113acd130dc5b682b50dbdb76b2
1,133
py
Python
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-03-31T16:20:53.000Z
2021-11-16T11:48:38.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
1
2020-04-06T08:10:12.000Z
2020-04-06T08:10:12.000Z
NLP/DuSQL-Baseline/text2sql/models/grammar/__init__.py
pkulzb/Research
88da4910a356f1e95e1e1e05316500055533683d
[ "Apache-2.0" ]
53
2020-04-01T01:59:08.000Z
2022-03-14T07:59:58.000Z
# -*- coding:utf8 -*- # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
41.962963
103
0.770521
149
1,133
5.791946
0.637584
0.069525
0.062572
0.086906
0
0
0
0
0
0
0
0.013641
0.15887
1,133
26
104
43.576923
0.89192
0.54722
0
0
0
0
0.257606
0
0
0
0
0
0
1
0
false
0
0.571429
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
901749f4d47b3e2fe3385b589ae5e10eae1bbab0
13,064
py
Python
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
3
2020-08-18T19:11:39.000Z
2021-06-13T12:16:41.000Z
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
null
null
null
mcd2c/cfile/__init__.py
Asdew95/mcd2c
bcec95276a45b4bfd90ece5569246bd5a247368b
[ "Zlib" ]
2
2021-06-13T12:16:47.000Z
2021-12-07T18:52:43.000Z
# Inspired by https://github.com/cogu/cfile c_indent_char = ' ' def set_indent_char(char): global c_indent_char c_indent_char = char class blank: def __init__(self, num=1): self.indent = 0 #Irrelevant, kept because it simplifies sequences self.num = num def __str__(self): #...
26.770492
79
0.606782
1,714
13,064
4.363477
0.132439
0.052146
0.038775
0.023533
0.526541
0.453403
0.407407
0.354593
0.332799
0.306324
0
0.003921
0.25819
13,064
487
80
26.825462
0.767826
0.063304
0
0.429752
0
0.002755
0.113975
0.039683
0
0
0
0
0
1
0.214876
false
0.002755
0.00551
0.066116
0.606061
0
0
0
0
null
0
0
0
0
0
0
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
90179942b479c02a62c0f83dc133fc47dd16d363
906
py
Python
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
52
2019-04-12T18:07:56.000Z
2019-10-07T10:26:19.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
135
2019-04-15T12:52:56.000Z
2019-10-08T18:39:58.000Z
typed_python/compiler/tests/subclass_of_test.py
APrioriInvestments/nativepython
94e6b09d788e49cbe34b9b0d3c948218d7a8dcc5
[ "Apache-2.0" ]
1
2019-04-12T13:03:38.000Z
2019-04-12T13:03:38.000Z
from typed_python import Entrypoint, SubclassOf, Class, Final, Function, ListOf class A(Class): pass class B(A): pass class C(B, Final): pass def test_can_cast_subclass_of_correctly(): @Function def f(c: SubclassOf(C)): return "C" @f.overload def f(c: SubclassOf(B)): ...
18.12
79
0.540839
123
906
3.934959
0.276423
0.020661
0.030992
0.092975
0.243802
0.243802
0
0
0
0
0
0
0.284768
906
49
80
18.489796
0.746914
0
0
0.15625
0
0
0.013245
0
0
0
0
0
0.1875
1
0.1875
false
0.09375
0.03125
0.09375
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
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
9017a7257730a81fd99b9ead002708bc4ceba13e
1,442
py
Python
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
53
2015-03-10T06:20:50.000Z
2021-06-07T07:34:02.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
1
2016-11-20T14:28:38.000Z
2016-11-20T14:28:38.000Z
experiments/toy.py
jcrickmer/pyvision
5aea7cd9a85d7d26196c375275e7bf00c27a8ac8
[ "MIT" ]
56
2015-02-10T20:49:42.000Z
2021-04-03T05:41:09.000Z
from vision import * from vision.track import alearn, interpolation from vision import visualize from vision.toymaker import * import os import multiprocessing g = Geppetto() b = Rectangle() b = b.linear((300,300), 100) b = b.linear((0,300), 200) b = b.linear((300,0), 300) g.add(b) path = b.groundtruth() pathdict = d...
30.041667
71
0.585298
187
1,442
4.481283
0.438503
0.047733
0.02864
0.026253
0.059666
0.059666
0
0
0
0
0
0.047893
0.276006
1,442
47
72
30.680851
0.754789
0
0
0
0
0
0.104022
0.024965
0
0
0
0
0
0
null
null
0.025641
0.153846
null
null
0.102564
0
0
0
null
0
0
0
0
0
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
901d3f9a5542e6bed0daf35f7574ccf1740c36b8
1,046
py
Python
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
game-watch-api/games/admin.py
fouadsan/game_watch
ca38d283ef8f55499ea520eb52a78ebfac8a77a4
[ "MIT" ]
null
null
null
from django.contrib import admin from admin_interface.models import Theme as Th from .models import Genre, Platform, Screenshot, Artwork, Mode, PlayerPerspective, Engine, Theme, Game admin.site.unregister(Th) admin.site.register(Genre) admin.site.register(Platform) admin.site.register(Mode) admin.site.register(Playe...
32.6875
209
0.711281
129
1,046
5.658915
0.496124
0.123288
0.209589
0
0
0
0
0
0
0
0
0
0.137667
1,046
31
210
33.741935
0.809313
0
0
0
0
0
0.220841
0
0
0
0
0
0
1
0.047619
false
0
0.142857
0.047619
0.380952
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
9021ca74c4cfd208803fde68aec8f4729d95dd36
1,156
py
Python
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
1
2021-12-22T16:09:52.000Z
2021-12-22T16:09:52.000Z
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
setup.py
loic-simon/asyncode
5f9873acf93f1a3ae6d4ca0b3dfc55acc7598969
[ "MIT" ]
null
null
null
import setuptools version = "1.0.0" with open("README.md", "r", encoding="utf-8") as fh: readme = fh.read() setuptools.setup( name="asyncode", version=version, author="Loïc Simon", author_email="loic.simon@espci.org", description="Emulating Python's interactive interpreter in asynchronous con...
31.243243
86
0.634948
126
1,156
5.753968
0.65873
0.131034
0.172414
0.17931
0
0
0
0
0
0
0
0.019956
0.219723
1,156
36
87
32.111111
0.783814
0.046713
0
0
0
0
0.532302
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
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
9021dafddba10ec136860876afbe1b58c1dcc7f4
1,926
py
Python
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
test_image.py
GSM-Festival-2021/Prettier-photo-plus-Server
98c30d5c8379491d12a4cfd4ed880fd800c40a7c
[ "MIT" ]
null
null
null
function solution(x1, y1, x2, y2) { const x1 = 8; const y1 = 4; const x2 = 8; const y2 = 10; let soundSum = 0; // 두 스피커 사이가 가까워 음량이 5를 넘는 경우 if (Math.abs(x1 - x2) + Math.abs(y1 - y2) < 4) return -1; if (3 < x1 && x1 < 13 && 3 < x2 && x2 < 13 && 3 < y1 && y1 < 13 && 3 < y2 && y2 < 13) { ...
21.164835
91
0.450156
258
1,926
3.360465
0.306202
0.020761
0.018454
0.029988
0.239908
0.239908
0.168397
0.168397
0.168397
0.168397
0
0.107143
0.403946
1,926
91
92
21.164835
0.648084
0
0
0.311688
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
902524521dfdcde30b78e79a7e608392d647a998
6,127
py
Python
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
2
2016-11-22T11:44:52.000Z
2017-08-29T02:38:01.000Z
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
modules/msa/msa/contrib/uniqauth/views.py
haoyutan/MSA-Framework
7c5553b244347f26029729161e15e60b0cc805f5
[ "MIT" ]
null
null
null
from django.contrib.auth import authenticate from msa.utils.ipware import get_ip from msa.views import LoggedAPIView from rest_framework import status from rest_framework.authentication import TokenAuthentication, BasicAuthentication from rest_framework.authtoken.models import Token from rest_framework.permissions impo...
37.588957
110
0.647299
607
6,127
6.385502
0.172982
0.05805
0.04257
0.082043
0.714396
0.696078
0.623065
0.613777
0.564499
0.539474
0
0.003545
0.263261
6,127
162
111
37.820988
0.855117
0.012404
0
0.609375
0
0
0.016077
0
0
0
0
0
0
1
0.0625
false
0.148438
0.070313
0.023438
0.445313
0
0
0
0
null
0
0
0
0
0
0
0
0
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
902fb2aef8b4515b1af62bd380980dd14457df65
502
py
Python
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
6
2020-12-24T10:24:02.000Z
2021-11-30T05:04:53.000Z
apps/workspaces/migrations/0007_workspacegeneralsettings_auto_map_employees.py
fylein/fyle-xero-api
ba81af058dc413fc801d4cf7d1a8961bd42df469
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2021-02-19 18:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('workspaces', '0006_workspacegeneralsettings_import_categories'), ] operations = [ migrations.AddField( model_name='workspacegene...
26.421053
111
0.663347
55
502
5.909091
0.763636
0.043077
0.098462
0
0
0
0
0
0
0
0
0.05483
0.237052
502
18
112
27.888889
0.793734
0.089641
0
0
1
0
0.296703
0.156044
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
903b18672626ab4ad3a5e3aded8aea7688abd5d5
757
py
Python
standards/tests/models.py
GROCCAD/groccad
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
1
2022-03-05T03:11:51.000Z
2022-03-05T03:11:51.000Z
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
standards/tests/models.py
rocdata/rocserver
1d461043030bebe277d74b1c9df9877436baa270
[ "MIT" ]
null
null
null
from functools import partial from django.db import models from standards.fields import CharIdField # MODEL FIXTURES ################################################################################ class CharIdModel(models.Model): field = CharIdField() class CharIdModelWithPrefix(models.Model): field = C...
23.65625
80
0.698811
70
757
7.528571
0.514286
0.104364
0.091082
0.1537
0
0
0
0
0
0
0
0.002999
0.11889
757
31
81
24.419355
0.787106
0.018494
0
0.117647
0
0
0.034796
0.03177
0
0
0
0
0
1
0
false
0.117647
0.176471
0
0.882353
0
0
0
0
null
0
0
0
0
0
0
0
0
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
5f3bba72b50ee67716dbeda71e53db5b079da28f
2,435
py
Python
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-12-07T17:38:41.000Z
2021-06-28T06:19:49.000Z
Code/Python/pract_fund1_sol.py
kunal-mulki/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
27
2016-05-28T21:32:24.000Z
2016-12-08T16:47:09.000Z
Code/Python/pract_fund1_sol.py
NYUDataBootcamp/Materials
b76bba123002972e4063b9b24cd5dc3d980e16e9
[ "MIT" ]
50
2016-10-12T11:04:50.000Z
2021-06-01T23:24:45.000Z
""" Practice problems, Python fundamentals 1 -- Solutions @authors: Balint Szoke, Daniel Csaba @date: 06/02/2017 """ #------------------------------------------------------- # 1) Solution good_string = "Sarah's code" #or good_string = """Sarah's code""" #------------------------------------------------------- ...
21.936937
62
0.433265
252
2,435
4.111111
0.40873
0.007722
0.026062
0.030888
0.03861
0
0
0
0
0
0
0.034275
0.113347
2,435
110
63
22.136364
0.445577
0.465708
0
0.111111
0
0
0.128674
0
0
0
0
0
0
1
0
false
0
0
0
0
0.277778
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
5f42caff296a8e9070523febb1d633e533ecbfff
950
py
Python
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
5
2019-06-12T09:29:06.000Z
2020-12-31T08:53:19.000Z
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
tools.py
chougousui/keyboard_layout_for_mobile
3bb59169f10ac56fb82cb62be07f821f1ecac22e
[ "MIT" ]
null
null
null
import numpy as np def generate_cost_dict(): def inner_func(i, j): x1 = i % 10 y1 = i // 10 x2 = j % 10 y2 = j // 10 alpha = 5 x_center = 5.5 x_radius = 7.5 y_center = 1 y_radius = 4.5 dist = np.sqrt(47 * 47 * np.square(x1 - x2) + 7...
29.6875
119
0.489474
144
950
3.076389
0.305556
0.110609
0.045147
0.049661
0.34763
0.34763
0.34763
0.248307
0.117381
0
0
0.095
0.368421
950
31
120
30.645161
0.643333
0
0
0.08
1
0
0
0
0
0
0
0
0
1
0.08
false
0
0.04
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f47bfe261a0653163329656400b45e38dc2e334
2,103
py
Python
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
tests/functional_tests/authors/test_authors_login.py
Kaique425/recipes
ab188dbe1ca3891160f65a7858613b8750faa721
[ "MIT" ]
null
null
null
import pytest from django.contrib.auth.models import User from django.urls import reverse from selenium.webdriver.common.by import By from .base import AuthorBaseFunctionalTest @pytest.mark.functional_test class AuthorLoginTest(AuthorBaseFunctionalTest): def test_user_valid_data_can_login_successfully(self): ...
37.553571
85
0.661912
269
2,103
4.94052
0.256506
0.066215
0.040632
0.049661
0.576373
0.532731
0.498119
0.498119
0.422122
0.363431
0
0.004266
0.219686
2,103
55
86
38.236364
0.805606
0
0
0.375
0
0
0.152639
0.036139
0
0
0
0
0.0625
1
0.0625
false
0.1875
0.104167
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5f548523f9dcf1f62a0e2fe0f345f22d699939d1
1,728
py
Python
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
codejam/2020-qualification/d.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python3 # https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd27/0000000000209a9e t, b = map(int, input().split()) for _ in range(t): xs = [None] * b q, k, k1, k2 = 0, 0, None, None def query(k): global q q += 1 print(k) r = int(input()) ...
27
91
0.358218
217
1,728
2.847926
0.262673
0.02589
0.038835
0.048544
0.168285
0.153722
0.153722
0
0
0
0
0.114833
0.516204
1,728
63
92
27.428571
0.624402
0.064236
0
0.263158
0
0
0.000619
0
0
0
0
0
0.017544
1
0.052632
false
0.017544
0
0
0.070175
0.035088
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
5f71554b9254c1a62eba83f18f61c6f664cfe709
2,485
py
Python
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
bdd/contact_stepts.py
LukinVV/python_training
9e6eb57fe9527fd591d563b4219c19e49188c4de
[ "Apache-2.0" ]
null
null
null
from pytest_bdd import given, when, then from model.contact import Contact import random @given('a contact list') def contact_list(orm): return orm.get_contact_list() @given('a contact with <firstname>, <lastname> and <address>') def new_contact(firstname, lastname, address): return Contact(firstname=firstnam...
42.118644
101
0.781087
382
2,485
4.793194
0.149215
0.150191
0.07373
0.093392
0.480612
0.449481
0.407974
0.345713
0.345713
0.345713
0
0.000462
0.12837
2,485
59
102
42.118644
0.844875
0
0
0.244898
0
0
0.184634
0
0
0
0
0
0.061224
1
0.204082
false
0
0.061224
0.061224
0.346939
0
0
0
0
null
0
0
0
0
0
0
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
5f72286dd657c066d24e11dfe7993aa6f68aabbc
769
py
Python
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
null
null
null
FigureMaker.py
space-physics/histfeas
caa0100087d8c2b8711c1c3cb60c322379ef5431
[ "MIT" ]
1
2015-05-22T23:51:58.000Z
2015-05-22T23:51:58.000Z
#!/usr/bin/env python """ Figures generated by HiST program intended for use with in/ files including: *_flame.ini *_impulse.ini *_trans.ini Flaming Aurora 2 cameras: ./FigureMaker.py in/2cam_flame.ini Translating Aurora 2 cameras: ./FigureMaker.py in/2cam_trans.ini Impulse Aurora (for testing): ./FigureMaker.py in...
20.783784
55
0.758127
116
769
4.948276
0.543103
0.11324
0.10453
0.099303
0.114983
0.114983
0.114983
0
0
0
0
0.028571
0.135241
769
36
56
21.361111
0.834586
0.721717
0
0
1
0
0.019608
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f72dad431a7abe4ecae9aa703b14fc2183ff13a
2,998
py
Python
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
1
2020-02-16T00:42:17.000Z
2020-02-16T00:42:17.000Z
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
pyv6m/ha/v6m.py
dubnom/pyv6m
d56bf3f3d39b7c2f747b08bc1974dc3dbe6ccff8
[ "MIT" ]
null
null
null
"""Component to control v6m relays and sensors. For more details about this component, please refer to the documentation at https://home-assistant.io/components/v6m/ """ import logging import voluptuous as vol from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT, CONF_NAME) import homea...
28.552381
75
0.615744
361
2,998
4.900277
0.304709
0.027134
0.022046
0.025438
0.134539
0.134539
0.105144
0.105144
0.062182
0.062182
0
0.008272
0.274183
2,998
104
76
28.826923
0.804688
0.166111
0
0.047619
0
0
0.006165
0
0
0
0
0
0
1
0.206349
false
0
0.079365
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
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
5f92da5358e075a34f655feb29ca353ec1f92807
2,833
py
Python
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
2
2016-08-10T15:08:47.000Z
2016-10-25T14:27:51.000Z
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
41
2016-08-04T20:19:49.000Z
2017-03-07T20:05:53.000Z
src/jenova/components/common.py
inova-tecnologias/jenova
c975f0894b8663c6a9c9fdc7fa33590a219a6ad3
[ "Apache-2.0" ]
3
2016-09-26T19:04:51.000Z
2017-10-26T22:13:45.000Z
import uuid, hashlib, os, yaml, logging.config, json, requests, re from bcrypt import hashpw, gensalt from collections import namedtuple from sqlalchemy import create_engine from datetime import datetime CONFIG_FILE = os.environ.get('CONFIG_PATH_FILE') ZimbraGrant = namedtuple( 'ZimbraGrant', [ 'target_name', ...
26.726415
85
0.693611
352
2,833
5.349432
0.335227
0.052045
0.025491
0.028678
0.1094
0.05948
0.025491
0
0
0
0
0.007117
0.206495
2,833
106
86
26.726415
0.830516
0.022238
0
0.129412
0
0
0.060617
0
0
0
0
0
0
1
0.141176
false
0.082353
0.058824
0.047059
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5f9463815346a08c07f5a3a2ec02e760f4e9de1f
3,569
py
Python
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
null
null
null
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
25
2021-10-03T06:19:05.000Z
2022-03-27T12:48:57.000Z
hbutils/binary/base.py
HansBug/hbutils
6872311c8a441c5955572e0093b10189a2b90708
[ "Apache-2.0" ]
null
null
null
import struct from typing import BinaryIO class CIOType: """ Overview: Basic IO type. Used as base class of all the IO types. """ def read(self, file: BinaryIO): """ Read from binary IO object. :param file: Binary file, ``io.BytesIO`` is supported as well. ...
24.445205
87
0.55842
405
3,569
4.82716
0.192593
0.025575
0.041432
0.09821
0.574936
0.493095
0.436829
0.417903
0.347315
0.347315
0
0
0.330905
3,569
145
88
24.613793
0.818677
0.414682
0
0.488889
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0.044444
0
0.577778
0
0
0
0
null
0
0
0
0
0
0
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
5f97f0b8c3e75f1f6f491e876381487088f22f49
771
py
Python
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
4
2017-01-25T05:25:52.000Z
2021-02-18T08:48:51.000Z
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
null
null
null
batch_run.py
hrishioa/Oyente
76c8943426727c93ab161a4e196dc6abdf636fe2
[ "MIT" ]
1
2018-08-09T20:57:31.000Z
2018-08-09T20:57:31.000Z
import json import glob from tqdm import tqdm import os contract_dir = 'contract_data' cfiles = glob.glob(contract_dir+'/contract*.json') cjson = {} print "Loading contracts..." for cfile in tqdm(cfiles): cjson.update(json.loads(open(cfile).read())) results = {} missed = [] print "Running analysis..." for c in...
19.769231
54
0.66537
123
771
4.146341
0.406504
0.047059
0.029412
0.031373
0.098039
0.098039
0.098039
0.098039
0
0
0
0.010479
0.133593
771
39
55
19.769231
0.752994
0.037613
0
0
0
0
0.232119
0
0
0
0
0
0
0
null
null
0
0.148148
null
null
0.148148
0
0
0
null
0
0
0
0
0
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
5f981f7b480688c0f261ed48cbccc55b236c176c
2,266
py
Python
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
1
2020-07-01T14:40:10.000Z
2020-07-01T14:40:10.000Z
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
9
2020-02-07T11:58:51.000Z
2021-09-07T16:23:38.000Z
tests/test_statistics.py
BENR0/textory
0f81b8b6726298b9181be27da7aaac2dd25bd763
[ "MIT" ]
1
2019-11-20T05:53:13.000Z
2019-11-20T05:53:13.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import pytest import numpy as np from textory.util import neighbour_diff_squared, num_neighbours, neighbour_count, create_kernel from textory.statistics import variogram, pseudo_cross_variogram @pytest.fixture def init_np_arrays(): """Inits two random np arrays""" np...
27.634146
101
0.566637
339
2,266
3.693215
0.274336
0.038339
0.047923
0.023962
0.699681
0.674121
0.674121
0.674121
0.674121
0.674121
0
0.030128
0.311562
2,266
81
102
27.975309
0.772436
0.242718
0
0.577778
0
0
0
0
0
0
0
0
0.044444
1
0.066667
false
0
0.088889
0
0.177778
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
5f9a91b6b4cb83726c16979ae7cd27a95c8fd08d
12,235
py
Python
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
1
2018-03-15T16:56:23.000Z
2018-03-15T16:56:23.000Z
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
ultracart/models/apply_library_item_response.py
UltraCart/rest_api_v2_sdk_python
d734ea13fabc7a57872ff68bac06861edb8fd882
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ UltraCart Rest API V2 UltraCart REST API Version 2 # noqa: E501 OpenAPI spec version: 2.0.0 Contact: support@ultracart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ApplyLibraryItemResponse...
31.211735
213
0.621087
1,376
12,235
5.395349
0.114099
0.056034
0.177802
0.151131
0.55361
0.483432
0.452856
0.318292
0.226024
0.176994
0
0.019562
0.298079
12,235
391
214
31.29156
0.8449
0.44953
0
0.079268
1
0
0.070269
0.016408
0
0
0
0
0
1
0.170732
false
0
0.018293
0
0.310976
0.012195
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
5f9c54619428b0b6d3296e3c0080e9ec17335d9c
2,807
py
Python
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
elecalc.py
shka86/py_calc
780167bc10e2a74741ac9620dbc859c0d310e299
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # calculation tool for a bridge circuit with two input current sources # two current sources can supply from both of top of the bridge and middle of the bridge # define the voltage name as follows: # Vp: voltage at the top of the bridge # Vn: voltage at the middle of the brid...
25.990741
88
0.540791
404
2,807
3.727723
0.240099
0.042497
0.01992
0.021248
0.179947
0.119522
0.111554
0.111554
0.078353
0.038513
0
0.035591
0.279302
2,807
107
89
26.233645
0.708848
0.199858
0
0.117647
0
0
0.194345
0
0
0
0
0
0
1
0.044118
false
0
0
0.014706
0.073529
0.455882
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
5f9d943e1c5e5e036c07d0eb1ed8c96b9fd06019
4,038
py
Python
sixx/plugins/images.py
TildeBeta/6X
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:49.000Z
2018-03-17T04:28:57.000Z
sixx/plugins/images.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
2
2018-03-06T20:39:46.000Z
2018-03-15T17:03:03.000Z
sixx/plugins/images.py
TildeBeta/TwitterImages
1814eb8f394b7c25b49decdd7d7249567c85f30f
[ "MIT" ]
1
2018-04-25T22:24:40.000Z
2018-04-25T22:24:40.000Z
from math import sqrt import asks import datetime import numpy as np import random from PIL import Image from PIL.ImageDraw import Draw from PIL.ImageEnhance import Brightness from PIL.ImageFont import truetype from curio import spawn_thread from curious.commands import Context, Plugin, command from io import BytesIO ...
40.38
124
0.488856
437
4,038
4.398169
0.345538
0.043704
0.027055
0.021852
0.110302
0.091571
0.069719
0.069719
0.03538
0
0
0.044845
0.409113
4,038
99
125
40.787879
0.760687
0.037147
0
0.169014
0
0
0.015249
0
0
0
0
0.010101
0
1
0
false
0
0.183099
0
0.197183
0
0
0
0
null
0
0
0
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
5fa27ee2e5dad2743d90292ecca26ad61a23a586
615
py
Python
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
1
2020-07-31T06:34:27.000Z
2020-07-31T06:34:27.000Z
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
null
null
null
inbound/admin.py
nilesh-kr-dubey/django-inbound-rules
5ca122bf915d17c04a63b1464048bba91006e854
[ "MIT" ]
null
null
null
from django.contrib import admin from inbound.models import Rule, InboundIP # Register your models here. class InboundIPInline(admin.TabularInline): ''' Inline of Inbound Rule ''' model = InboundIP readonly_fields = ['cidr'] extra = 1 class RuleAdmin(admin.ModelAdmin): model = Rule list_dis...
25.625
98
0.676423
71
615
5.71831
0.619718
0.098522
0.078818
0
0
0
0
0
0
0
0
0.001984
0.180488
615
23
99
26.73913
0.803571
0.082927
0
0
0
0
0.18851
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.928571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5fa6b75aa0e33eeec7402b44584c8450dcb054c7
1,226
py
Python
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
gssClients/gssPythonClients/download_gss.py
SemWES/client_libs
48c3af519ceaf80b3f33cf509c72376b9b3d9582
[ "Zlib" ]
null
null
null
#!/bin/env python # Copyright STIFTELSEN SINTEF 2016 import suds import urllib2 import sys if len(sys.argv) < 4: print ("Usage:") print ("\t %s gss-url outputfilename token" % sys.argv[0]) exit() # get url: url = sys.argv[1] outputfileName = sys.argv[2] sessionToken = sys.argv[3] wsdlLocation = "https:...
29.190476
88
0.686786
134
1,226
6.276119
0.544776
0.041617
0
0
0
0
0
0
0
0
0
0.014493
0.212072
1,226
41
89
29.902439
0.856108
0.047308
0
0
0
0.033333
0.14433
0
0
0
0
0
0
0
null
null
0
0.1
null
null
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
5fb1b34629d1b25a94935e87aa37911d21e8edb9
704
py
Python
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-06-18T20:20:39.000Z
2019-11-09T20:21:06.000Z
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
8
2019-12-04T23:26:42.000Z
2022-02-10T12:02:19.000Z
estoque/admin.py
Felipebros/mini_curso_django
965dd5e8837db9dea4485e889c2b8703fb5e902d
[ "MIT" ]
3
2019-06-21T22:37:32.000Z
2019-10-31T00:38:45.000Z
from django.contrib import admin from .models import Produto, TipoProduto, Estoque # Register your models here. class TipoProdutoAdmin(admin.ModelAdmin): search_fields = ['descricao',] admin.site.register(TipoProduto, TipoProdutoAdmin) class EstoqueAdmin(admin.ModelAdmin): search_fields = ['produto__nome'] ...
35.2
105
0.755682
76
704
6.802632
0.447368
0.087041
0.121857
0.156673
0
0
0
0
0
0
0
0
0.117898
704
20
106
35.2
0.832528
0.036932
0
0
0
0
0.223043
0.064993
0
0
0
0
0
1
0
false
0
0.142857
0
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5fb1ba21e31a7c2b9e588c895f10ae57243ce651
3,137
py
Python
star/star.py
gd-star-pp/star-pp
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
2
2021-10-10T23:42:30.000Z
2022-03-31T19:43:13.000Z
star/star.py
lotus-gd/azalea
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
null
null
null
star/star.py
lotus-gd/azalea
24c7289199215961fe5462b99ec600907b305d3f
[ "MIT" ]
null
null
null
import gd, itertools from cube import calculate_cube from ball import calculate_ball from helpers import average client = gd.Client() def calculate_ship(editor: gd.api.Editor, level: gd.Level, portal: gd.api.Object, speed, portal_count: int): pass def calculate_ufo(editor: gd.api.Editor, level: gd.Level, portal:...
36.057471
203
0.646159
435
3,137
4.54023
0.234483
0.03038
0.04557
0.043038
0.229367
0.198987
0.198987
0.198987
0.198987
0.198987
0
0.026823
0.239401
3,137
87
204
36.057471
0.800922
0.030602
0
0.112676
0
0
0.002633
0
0
0
0
0
0
1
0.084507
false
0.084507
0.056338
0
0.15493
0.042254
0
0
0
null
0
0
0
0
0
0
0
0
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
5fba9266d157d784d487f4f6d96c252ab58bc927
221
py
Python
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
tetov/ITA19
1af68a8885caf83acd98f4136d0286539ccbe63b
[ "MIT" ]
7
2019-11-13T20:29:54.000Z
2020-02-26T14:30:54.000Z
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
4
2019-11-07T20:57:51.000Z
2020-03-04T11:43:18.000Z
modules/module0/02_datastructures_and_geometry/datastructures_0b.py
GeneKao/ITA19
c4b10dc183599eed4ed60d922b6ef5922d173bdb
[ "MIT" ]
6
2019-10-30T13:25:54.000Z
2020-02-14T14:06:09.000Z
import os import compas from compas.datastructures import Mesh HERE = os.path.dirname(__file__) DATA = os.path.join(HERE, 'data') FILE = os.path.join(DATA, 'faces.obj') mesh = Mesh.from_obj(FILE) print(mesh.summary())
18.416667
38
0.737557
35
221
4.514286
0.457143
0.113924
0.126582
0
0
0
0
0
0
0
0
0
0.117647
221
11
39
20.090909
0.810256
0
0
0
0
0
0.058824
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
5fbebd443ba2cc788cd34ccb4de7f2967a894072
3,957
py
Python
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
4
2020-05-20T03:55:19.000Z
2020-12-24T06:33:40.000Z
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-05-18T11:21:35.000Z
2020-07-07T21:25:57.000Z
vis_utils/animation/group_animation_controller.py
eherr/vis_utils
b757b01f42e6da02ad62130c3b0e61e9eaa3886f
[ "MIT" ]
1
2020-07-20T06:57:13.000Z
2020-07-20T06:57:13.000Z
#!/usr/bin/env python # # Copyright 2019 DFKI GmbH. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merg...
39.57
98
0.706849
421
3,957
6.527316
0.384798
0.072052
0.052402
0.050218
0.055313
0.028384
0
0
0
0
0
0.002951
0.229214
3,957
100
99
39.57
0.898033
0.304271
0
0.125
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.053571
0.053571
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
1
0
0
0
0
0
0
0
1
5fcaa9f085f2d78ed188a66c5c69d0728b2a6373
2,640
py
Python
tools/common.py
JamzumSum/yNet
78506738e64321cfd26f0af70a62dd2119948e39
[ "MIT" ]
5
2021-06-09T02:11:19.000Z
2021-10-04T09:00:31.000Z
tools/common.py
JamzumSum/yNet
78506738e64321cfd26f0af70a62dd2119948e39
[ "MIT" ]
null
null
null
tools/common.py
JamzumSum/yNet
78506738e64321cfd26f0af70a62dd2119948e39
[ "MIT" ]
null
null
null
from dataclasses import dataclass from typing import Iterable import torch from torchmetrics import ConfusionMatrix from collections import defaultdict argmax = lambda l: l.index(max(l)) BIRAD_MAP = ['2', '3', '4', '5'] def _lbm(): global BIRAD_MAP BIRAD_MAP = torch.load("./data/BIRADs/meta.pt")['classname...
24.220183
117
0.591667
360
2,640
4.236111
0.288889
0.057705
0.073443
0.043279
0.325902
0.24
0.103607
0.103607
0.103607
0
0
0.008214
0.262121
2,640
108
118
24.444444
0.774641
0
0
0.148148
0
0.012346
0.077652
0.026894
0
0
0
0
0.012346
1
0.197531
false
0
0.061728
0.148148
0.493827
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5fcddc4097a230efd88262807f43401aaaeff2ab
257
py
Python
p5.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p5.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p5.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
from fractions import gcd def smallestDiv(): """Finds smallest number that is evenly divisible from 1 through 20""" return reduce(lambda x,y: lcm(x,y), range(1,21)) def lcm(a,b): return (a*b) / gcd(a,b) if __name__ == '__main__': print smallestDiv()
21.416667
71
0.692607
43
257
3.953488
0.697674
0.035294
0
0
0
0
0
0
0
0
0
0.027778
0.159533
257
11
72
23.363636
0.759259
0
0
0
0
0
0.042781
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.142857
0
0
0
null
0
0
0
0
0
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
39563b416a76edc246cc669718217ec4a6dc8d69
199
py
Python
tools/stress_test.py
chouette254/quo
8979afd118e77d3d0f93f9fbe8711efada7158c5
[ "MIT" ]
5
2021-06-17T21:06:39.000Z
2022-03-11T06:45:51.000Z
tools/stress_test.py
chouette254/quo
8979afd118e77d3d0f93f9fbe8711efada7158c5
[ "MIT" ]
39
2021-07-19T19:36:18.000Z
2022-02-23T14:55:08.000Z
tools/stress_test.py
secretuminc/quo
c4f77d52f015c612d32ed0fc2fc79545af598f10
[ "MIT" ]
1
2021-05-31T17:19:15.000Z
2021-05-31T17:19:15.000Z
from quo import Console from quo.pretty import Pretty from quo.panel import Panel DATA = "My name is Quo" console = Console() for w in range(130): console.echo(Panel(Pretty(DATA), width=w))
15.307692
46
0.718593
33
199
4.333333
0.515152
0.146853
0
0
0
0
0
0
0
0
0
0.018405
0.180905
199
12
47
16.583333
0.858896
0
0
0
0
0
0.070352
0
0
0
0
0
0
1
0
false
0
0.428571
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
0
1
0
0
0
0
1
395bc11ce97e1bb26dff3ffa2dd8e88c133704f6
2,403
py
Python
ietf/ipr/migrations/0007_create_ipr_doc_events.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
25
2022-03-05T08:26:52.000Z
2022-03-30T15:45:42.000Z
ietf/ipr/migrations/0007_create_ipr_doc_events.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
219
2022-03-04T17:29:12.000Z
2022-03-31T21:16:14.000Z
ietf/ipr/migrations/0007_create_ipr_doc_events.py
hassanakbar4/ietfdb
cabee059092ae776015410640226064331c293b7
[ "BSD-3-Clause" ]
22
2022-03-04T15:34:34.000Z
2022-03-28T13:30:59.000Z
# Copyright The IETF Trust 2020, All Rights Reserved # -*- coding: utf-8 -*- # Generated by Django 1.11.27 on 2020-01-17 12:32 from django.db import migrations def create_or_delete_ipr_doc_events(apps, delete=False): """Create or delete DocEvents for IprEvents Mostly duplicates IprEvent.create_doc_even...
34.826087
91
0.62422
297
2,403
4.86532
0.424242
0.044291
0.038754
0.035294
0.081661
0.081661
0.081661
0.081661
0.056747
0
0
0.017919
0.280067
2,403
68
92
35.338235
0.817341
0.306284
0
0
1
0
0.106542
0.035514
0
0
0
0
0
1
0.076923
false
0
0.025641
0
0.179487
0
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
395f4cf60fb9e63158d7823964bdae4a063e3899
665
py
Python
zk_shell/tests/test_acl_reader.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
163
2015-01-24T06:17:34.000Z
2021-12-17T22:58:46.000Z
zk_shell/tests/test_acl_reader.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
86
2015-01-01T00:22:57.000Z
2022-03-02T14:50:59.000Z
zk_shell/tests/test_acl_reader.py
sellers/zk_shell
5f5972c4362212f97de91a75e44d2a551c7bcd51
[ "Apache-2.0" ]
32
2015-02-18T17:33:16.000Z
2021-12-28T03:43:45.000Z
# -*- coding: utf-8 -*- """ ACLReader test cases """ import unittest from kazoo.security import ACL, Id from zk_shell.acl import ACLReader class ACLReaderTestCase(unittest.TestCase): """ test watcher """ def test_extract_acl(self): acl = ACLReader.extract_acl('world:anyone:cdrwa') expected...
28.913043
97
0.685714
82
665
5.463415
0.45122
0.098214
0.071429
0.102679
0.263393
0.147321
0.147321
0.147321
0
0
0
0.02925
0.177444
665
22
98
30.227273
0.789762
0.087218
0
0.166667
0
0
0.173401
0.114478
0
0
0
0
0.166667
1
0.166667
false
0.166667
0.25
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
1
0
0
0
0
0
1
396297e39e5a9bcc3e2b8459e2edf7a1785fe3e7
1,575
py
Python
models/networks/recurrent/encoder.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
models/networks/recurrent/encoder.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
models/networks/recurrent/encoder.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch class EncoderRNN(nn.Module): def __init__(self, vocab_size, hidden_size, nlayers=2): super(EncoderRNN, self).__init__() self.nlayers = nlayers self.hidden_size = hidden_size self.embedding = nn.Embedding(vocab_size, hidden_size) self.gru ...
35
109
0.670476
206
1,575
4.936893
0.257282
0.157325
0.110128
0.078663
0.697148
0.697148
0.634218
0.534907
0.40708
0.40708
0
0.004052
0.216508
1,575
44
110
35.795455
0.820097
0.121905
0
0
0
0
0.005952
0
0
0
0
0
0
1
0.2
false
0
0.133333
0.066667
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
39637ce1898c8dbfd20a89d25579fc15ae6c2bcd
432
py
Python
events_calendar/urls.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
events_calendar/urls.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
8
2021-04-08T21:57:55.000Z
2022-03-12T00:50:38.000Z
events_calendar/urls.py
mkbeh/Site-Nordic-Walking-
ba98f41db09ed448ecc4db175f65ef4fa2d64979
[ "MIT" ]
null
null
null
from django.urls import path from .views import events_calendar, calendar_event_detail, past_competitions app_name = 'events_calendar' urlpatterns = [ path('past_competitions/', past_competitions, name='past_competitions'), path('<int:year>/<int:month>/<int:day>/<int:hour>/<slug:event>/', calendar_...
30.857143
76
0.733796
54
432
5.592593
0.407407
0.18543
0.188742
0
0
0
0
0
0
0
0
0
0.118056
432
13
77
33.230769
0.792651
0
0
0
0
0.111111
0.354167
0.180556
0
0
0
0
0
1
0
false
0
0.222222
0
0.222222
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3965e8f70ee4cbba8c4a1ffa659f82e9962bbdcf
619
py
Python
migrations/versions/6f98e24760d_session_speaker.py
jace/goafunnel
5ff25f0e6a247ff1f6e87fce2a793d1775476cc0
[ "BSD-2-Clause" ]
null
null
null
migrations/versions/6f98e24760d_session_speaker.py
jace/goafunnel
5ff25f0e6a247ff1f6e87fce2a793d1775476cc0
[ "BSD-2-Clause" ]
null
null
null
migrations/versions/6f98e24760d_session_speaker.py
jace/goafunnel
5ff25f0e6a247ff1f6e87fce2a793d1775476cc0
[ "BSD-2-Clause" ]
null
null
null
"""session speaker Revision ID: 6f98e24760d Revises: 58588eba8cb8 Create Date: 2013-11-22 17:28:47.751025 """ # revision identifiers, used by Alembic. revision = '6f98e24760d' down_revision = '58588eba8cb8' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
22.925926
89
0.6979
76
619
5.644737
0.578947
0.062937
0.097902
0.107226
0.205128
0.205128
0.205128
0.205128
0
0
0
0.102913
0.168013
619
26
90
23.807692
0.730097
0.471729
0
0
0
0
0.173469
0
0
0
0
0
0
1
0.25
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
396b128eaea90d279b0b41fb297fa2fa82ed6d87
1,930
py
Python
nanome/api/user/presenter_info.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
3
2020-07-02T13:08:27.000Z
2021-11-24T14:32:53.000Z
nanome/api/user/presenter_info.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
11
2020-09-14T17:01:47.000Z
2022-02-18T04:00:52.000Z
nanome/api/user/presenter_info.py
nanome-ai/nanome-plugin-api
f2ce6a5e3123ee7449a90c2659f3891124289f4a
[ "MIT" ]
5
2020-08-12T16:30:03.000Z
2021-12-06T18:04:23.000Z
class PresenterInfo(): """ | Class to fetch information about the current nanome session's presenter. """ def __init__(self): self._account_id = "" self._account_name = "" self._account_email = "" self._has_org = False self._org_id = 0 self._org_name = ""...
21.208791
78
0.564249
226
1,930
4.561947
0.159292
0.096023
0.075655
0.069835
0.228904
0.216295
0.216295
0.216295
0.216295
0
0
0.000781
0.336788
1,930
90
79
21.444444
0.804688
0.251295
0
0.136364
0
0
0
0
0
0
0
0
0
1
0.295455
false
0
0
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
396d4f672042b6ba26b0ebbbfccf8610a433735a
2,976
py
Python
scripts/staging/sklearn/mappers/supervised.py
mgd-hin/systemds
08944a7305cbc4f4d9cbbd4565efa8bcc93b82e3
[ "Apache-2.0" ]
372
2017-06-09T01:02:53.000Z
2020-06-24T05:45:00.000Z
scripts/staging/sklearn/mappers/supervised.py
ywcb00/systemds
5cc523971854cdf4f22e6199987a86e213fae4e2
[ "Apache-2.0" ]
418
2017-06-08T16:27:44.000Z
2020-06-25T12:15:54.000Z
scripts/staging/sklearn/mappers/supervised.py
ywcb00/systemds
5cc523971854cdf4f22e6199987a86e213fae4e2
[ "Apache-2.0" ]
190
2017-06-08T19:32:54.000Z
2020-06-15T12:26:12.000Z
# ------------------------------------------------------------- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you unde...
33.438202
80
0.576277
364
2,976
4.656593
0.409341
0.076696
0.099705
0.053097
0.302065
0.273156
0.257227
0.19823
0.19823
0.127434
0
0.027856
0.288306
2,976
88
81
33.818182
0.772427
0.409946
0
0.464286
0
0
0.113769
0
0
0
0
0.011364
0
1
0.053571
false
0
0.017857
0
0.339286
0
0
0
0
null
0
0
0
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
397c6d5c141c7b6d17cf9a8f120d47ea7101ea9f
587
py
Python
tasks/migrations/0002_auto_20201008_2236.py
milenakowalska/todolist
5b5208b952e88334453935652424f8168ecf9113
[ "MIT" ]
null
null
null
tasks/migrations/0002_auto_20201008_2236.py
milenakowalska/todolist
5b5208b952e88334453935652424f8168ecf9113
[ "MIT" ]
null
null
null
tasks/migrations/0002_auto_20201008_2236.py
milenakowalska/todolist
5b5208b952e88334453935652424f8168ecf9113
[ "MIT" ]
null
null
null
# Generated by Django 3.0.2 on 2020-10-08 22:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tasks', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='background', fie...
24.458333
112
0.575809
61
587
5.47541
0.770492
0.053892
0
0
0
0
0
0
0
0
0
0.079903
0.296422
587
23
113
25.521739
0.728814
0.076661
0
0.117647
1
0
0.162963
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3980310409feb9f0ac71dbf46448b126022d5366
1,258
py
Python
support.py
ipascual1/spootnik_bot
ad7658f49705b1ce57bcc5ed84006ef658f63fa3
[ "Unlicense" ]
null
null
null
support.py
ipascual1/spootnik_bot
ad7658f49705b1ce57bcc5ed84006ef658f63fa3
[ "Unlicense" ]
null
null
null
support.py
ipascual1/spootnik_bot
ad7658f49705b1ce57bcc5ed84006ef658f63fa3
[ "Unlicense" ]
null
null
null
import re import os def extract(regularE : str, init : str, stop : str, string : str): """ regularE: RE to catch string init: First string to replace stop: Last string to replace string: String to apply the RE With a regular expression and init and stop t...
29.255814
83
0.612878
165
1,258
4.624242
0.442424
0.058978
0.047182
0.031455
0.173001
0.12844
0.12844
0.12844
0
0
0
0.003382
0.294913
1,258
42
84
29.952381
0.856821
0.500795
0
0.142857
0
0
0.208178
0.078067
0
0
0
0
0
1
0.214286
false
0
0.142857
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
39806196aae9564f8e399df05393bb7226dec4f7
1,054
py
Python
steam.py
iganeshk/alfred-totp
f9c17fe83025c99cbfaf5413d20212aa63d7e0d5
[ "MIT" ]
7
2020-04-12T21:16:41.000Z
2022-01-09T08:55:22.000Z
steam.py
iganeshk/alfred-totp
f9c17fe83025c99cbfaf5413d20212aa63d7e0d5
[ "MIT" ]
null
null
null
steam.py
iganeshk/alfred-totp
f9c17fe83025c99cbfaf5413d20212aa63d7e0d5
[ "MIT" ]
1
2022-03-26T16:04:53.000Z
2022-03-26T16:04:53.000Z
#!/usr/env/python3 # coding=utf-8 # # Generate Steamguard OTP with the shared secret passed as an argument # Ganesh Velu import hmac import base64 import hashlib import codecs import time import sys STEAM_DECODE_CHARS = ['2', '3', '4', '5', '6', '7', '8', '9', 'B', 'C', 'D', 'F', 'G', 'H', 'J',...
29.277778
90
0.586338
149
1,054
3.95302
0.624161
0.081494
0.108659
0.047538
0.101868
0.101868
0.101868
0
0
0
0
0.039752
0.236243
1,054
36
91
29.277778
0.691925
0.105313
0
0
1
0
0.044776
0
0
0
0.013859
0
0
1
0.04
false
0
0.24
0
0.32
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39812282916a91f854eceaec095dab9dd29955a6
1,783
py
Python
igvc_ws/src/igvc_nav/src/path_planner/node.py
SoonerRobotics/igvc_software_2022
906e6a4fca22d2b0c06ef1b8a4a3a9df7f1d17dd
[ "MIT" ]
4
2020-07-07T14:56:56.000Z
2021-08-13T23:31:07.000Z
igvc_ws/src/igvc_nav/src/path_planner/node.py
pradumn203/igvc-winners-2021
658233609054eafac59603a77b2a092dc002e145
[ "MIT" ]
13
2019-11-12T02:57:54.000Z
2020-03-17T17:04:22.000Z
igvc_ws/src/igvc_nav/src/path_planner/node.py
pradumn203/igvc-winners-2021
658233609054eafac59603a77b2a092dc002e145
[ "MIT" ]
3
2021-06-29T05:21:18.000Z
2021-08-23T05:03:27.000Z
""" """ class Node: INFINITY = 1000000000 def __init__(self, row, col, cost = 0): self.row = row self.col = col # Default node value self.G = self.INFINITY self.rhs = self.INFINITY self.par = None self.key = (None, None) # Cost (for obstacles...
22.858974
68
0.528884
251
1,783
3.613546
0.231076
0.084895
0.044101
0.071665
0.303197
0.303197
0.284454
0.284454
0.284454
0.255788
0
0.024412
0.356702
1,783
77
69
23.155844
0.766347
0.100953
0
0.22449
0
0
0
0
0
0
0
0
0
1
0.22449
false
0
0
0.020408
0.489796
0
0
0
0
null
0
0
0
0
0
0
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
3982edd57b175c1d224315f35831e37d04e0c726
1,408
py
Python
tools/generatekeypair.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
tools/generatekeypair.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
tools/generatekeypair.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import argparse import json from authlib.jose import JsonWebKey from cryptography.hazmat.primitives import serialization def generate_key_pair(filename, kid=None): """ 'kid' will default to the jwk thumbprint if not set explicitly. Reference: https://tools.ietf.org/html/rfc7638 """ options = {} ...
30.608696
87
0.648438
180
1,408
4.994444
0.455556
0.036707
0.053393
0.05673
0.106785
0.106785
0.106785
0.106785
0.082314
0.082314
0
0.010082
0.225142
1,408
45
88
31.288889
0.813932
0.078835
0
0.096774
1
0
0.155051
0
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.16129
0.096774
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
398533491570a42901637e1afb785d157af6a86a
809
py
Python
accounts/forms.py
mohsenamoon1160417237/Social_app
79fa0871f7b83648894941f9010f1d99f1b27ab3
[ "MIT" ]
null
null
null
accounts/forms.py
mohsenamoon1160417237/Social_app
79fa0871f7b83648894941f9010f1d99f1b27ab3
[ "MIT" ]
null
null
null
accounts/forms.py
mohsenamoon1160417237/Social_app
79fa0871f7b83648894941f9010f1d99f1b27ab3
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django import forms from .models import UserProfile class UserRegistrationForm(forms.ModelForm): password = forms.CharField(max_length=20 , widget=forms.PasswordInput , label='Password') password2 = forms.CharField(max_length=20 , widget=forms.PasswordInput , label...
17.212766
98
0.721879
95
809
6.084211
0.494737
0.072664
0.072664
0.079585
0.342561
0.186851
0.186851
0.186851
0.186851
0
0
0.011782
0.160692
809
47
99
17.212766
0.83947
0
0
0.227273
0
0
0.134568
0
0
0
0
0
0
1
0.045455
false
0.272727
0.136364
0
0.590909
0
0
0
0
null
0
0
0
0
0
0
0
0
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
3986c0e0bd792870f8eee7d99d0e2fa5761fa22e
1,429
py
Python
blueprints/accounts/manage/config.py
GetmeUK/h51
17d4003336857514765a42a0853995fbe3da6525
[ "MIT" ]
null
null
null
blueprints/accounts/manage/config.py
GetmeUK/h51
17d4003336857514765a42a0853995fbe3da6525
[ "MIT" ]
4
2021-06-08T22:58:13.000Z
2022-03-12T00:53:18.000Z
blueprints/accounts/manage/config.py
GetmeUK/h51
17d4003336857514765a42a0853995fbe3da6525
[ "MIT" ]
null
null
null
from manhattan.manage import config from manhattan.nav import Nav, NavItem from blueprints.accounts.manage import blueprint from blueprints.accounts.models import Account __all__ = ['AccountConfig'] class AccountConfig(config.ManageConfig): frame_cls = Account blueprint = blueprint @classmethod de...
26.462963
70
0.491952
118
1,429
5.754237
0.338983
0.041237
0.082474
0.188513
0.32106
0.217968
0.172312
0.172312
0
0
0
0
0.416375
1,429
53
71
26.962264
0.814149
0
0
0.292683
0
0
0.091673
0
0
0
0
0
0
1
0.02439
false
0
0.097561
0
0.219512
0.073171
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
398adc2cec18c8f88eebd57e5b5cd30a4eaccd31
5,280
py
Python
basket/BasketGlobals.py
Hartman-/Basket
7b9c174b031c9ffac2de886f5e149adcd5f7c83f
[ "BSD-3-Clause" ]
2
2017-02-07T11:28:58.000Z
2017-12-01T05:41:36.000Z
basket/BasketGlobals.py
Hartman-/Basket
7b9c174b031c9ffac2de886f5e149adcd5f7c83f
[ "BSD-3-Clause" ]
25
2016-08-18T01:16:59.000Z
2017-02-11T03:57:20.000Z
basket/BasketGlobals.py
Hartman-/Basket
7b9c174b031c9ffac2de886f5e149adcd5f7c83f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import platform from glob import glob import utils.appconfig as appconfig # GLOBAL CONSTANTS # --- File Structure Constants --- BASE_DIRS = { 'delivery': [ 'CritiqueArchive' ], 'docs': [], 'frames': [], ...
27.076923
115
0.595455
606
5,280
5.09901
0.264026
0.040777
0.093204
0.119094
0.635275
0.601942
0.406472
0.383172
0.333981
0.333981
0
0.004067
0.254924
5,280
194
116
27.216495
0.781393
0.097727
0
0.290076
0
0
0.178353
0.004633
0
0
0
0
0
0
null
null
0
0.030534
null
null
0.015267
0
0
0
null
0
0
0
0
0
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
39a0dad5efbaf0ea7f66987d69ed3575a2e7b7d0
1,068
py
Python
python/easy/1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
1
2021-05-22T03:27:33.000Z
2021-05-22T03:27:33.000Z
python/easy/1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
python/easy/1342_Number_of_Steps_to_Reduce_a_Number_to_Zero.py
JackWang0107/leetcode
c02932190b639ef87a8d0fcd07d9cd6ec7344a67
[ "MIT" ]
null
null
null
from typing import * class Solution: # 32 ms, faster than 53.97% of Python3 online submissions for Number of Steps to Reduce a Number to Zero. # 14.2 MB, less than 35.20% of Python3 online submissions for Number of Steps to Reduce a Number to Zero. def numberOfSteps(self, num: int) -> int: ans = 0 ...
34.451613
110
0.553371
155
1,068
3.76129
0.335484
0.06175
0.102916
0.178388
0.57976
0.57976
0.480274
0.480274
0.480274
0.480274
0
0.067747
0.364232
1,068
31
111
34.451613
0.790869
0.38764
0
0.173913
0
0
0.012308
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0
0.434783
0.043478
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
39a92e95003cf25b12c9d62aa465b8c0ddd75afb
5,510
py
Python
HyperGui.py
MIC-Surgery-Heidelberg/HyperGUI_1.0
0ee8e0da85049076bb22a542d15d6c3adf6ea106
[ "MIT" ]
null
null
null
HyperGui.py
MIC-Surgery-Heidelberg/HyperGUI_1.0
0ee8e0da85049076bb22a542d15d6c3adf6ea106
[ "MIT" ]
null
null
null
HyperGui.py
MIC-Surgery-Heidelberg/HyperGUI_1.0
0ee8e0da85049076bb22a542d15d6c3adf6ea106
[ "MIT" ]
null
null
null
""" @author: Alexander Studier-Fischer, Jan Odenthal, Berkin Oezdemir, Isabella Camplisson, University of Heidelberg """ from HyperGuiModules import * import logging import os #logging.basicConfig(level=logging.DEBUG) xSize=None ySize=None def main(): (window, introduction, input_output, image_diagram, hist_cal...
36.979866
162
0.741561
712
5,510
5.425562
0.15309
0.062128
0.125032
0.160756
0.494693
0.267668
0.179912
0
0
0
0
0.025849
0.171506
5,510
148
163
37.22973
0.820372
0.111797
0
0
0
0
0.001851
0
0
0
0
0
0
1
0.011905
false
0
0.035714
0
0.047619
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39ab88cab3f3527e44f2aa4992feac019e41f3f0
2,120
py
Python
PA2_Optical_Flow.py
tianzixie/CAP5415PA2
6a7f4b1f178f10b37d588e698eddd013ce193544
[ "MIT" ]
null
null
null
PA2_Optical_Flow.py
tianzixie/CAP5415PA2
6a7f4b1f178f10b37d588e698eddd013ce193544
[ "MIT" ]
null
null
null
PA2_Optical_Flow.py
tianzixie/CAP5415PA2
6a7f4b1f178f10b37d588e698eddd013ce193544
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Oct 26 08:19:16 2017 @author: 0 """ from scipy.misc import imresize from scipy.signal import convolve,convolve2d import scipy from PIL import Image import cv2 import numpy as np img = cv2.imread("C://Users/0/Downloads/basketball1.png",0) img2 = cv2.imread("C://Users/0/Downloa...
20.784314
78
0.618868
416
2,120
3.153846
0.240385
0.042683
0.01372
0.025152
0.137195
0.129573
0.018293
0.018293
0
0
0
0.098006
0.17217
2,120
101
79
20.990099
0.649573
0.315566
0
0
0
0
0.08764
0.083146
0
0
0
0
0
0
null
null
0
0.176471
null
null
0.176471
0
0
0
null
0
0
0
0
0
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
39ab9e369da24d4871a1bbc5c6f073cf0d4fed1f
743
py
Python
Test_data/database.py
mayowak/SQLite_test
a1185650dffe360d033e0691567ec2b2e075cae5
[ "MIT" ]
null
null
null
Test_data/database.py
mayowak/SQLite_test
a1185650dffe360d033e0691567ec2b2e075cae5
[ "MIT" ]
null
null
null
Test_data/database.py
mayowak/SQLite_test
a1185650dffe360d033e0691567ec2b2e075cae5
[ "MIT" ]
null
null
null
#!usr/bin/env python3 #import dependecies import sqlite3 import csv #connect to test_data conn = sqlite3.connect('test_data.db') #create a cursor c = conn.cursor() c.execute("DROP TABLE test_data") #create a test_data table c.execute("""CREATE TABLE test_data(age integer, sex te...
22.515152
78
0.549125
88
743
4.488636
0.465909
0.182278
0.065823
0
0
0
0
0
0
0
0
0.00616
0.344549
743
33
79
22.515152
0.804928
0.18035
0
0
0
0
0.620232
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
39b39323fb50875fc0c540df3d833adc6f094d24
2,583
py
Python
definition.example.py
JoshData/represent-boundaries
0a77bad99758bc77140c6c6def4f8d5e68810367
[ "MIT" ]
2
2016-07-05T06:10:21.000Z
2016-10-20T17:55:13.000Z
definition.example.py
JoshData/represent-boundaries
0a77bad99758bc77140c6c6def4f8d5e68810367
[ "MIT" ]
null
null
null
definition.example.py
JoshData/represent-boundaries
0a77bad99758bc77140c6c6def4f8d5e68810367
[ "MIT" ]
2
2016-07-05T06:10:25.000Z
2020-03-04T02:22:24.000Z
from datetime import date import boundaries boundaries.register('federal-electoral-districts', # The slug of the boundary set # The name of the boundary set for display. name='Federal electoral districts', # Generic singular name for a boundary from this set. Optional if the # boundary set's name ends...
52.714286
139
0.722416
401
2,583
4.610973
0.453865
0.029746
0.030287
0.014602
0.127096
0.092482
0.092482
0.092482
0.092482
0.092482
0
0.019185
0.192799
2,583
48
140
53.8125
0.867626
0.629113
0
0
0
0.176471
0.474649
0.029126
0
0
0
0
0
1
0
true
0
0.117647
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
39b549fc5da98ce81d958623dcf67a57d0a50eec
2,962
py
Python
tyo_mq_client/publisher.py
e-tang/tyo-mq-client-python
82ea47bf8cf8a924b515149456eaecb5557a0f3e
[ "MIT" ]
null
null
null
tyo_mq_client/publisher.py
e-tang/tyo-mq-client-python
82ea47bf8cf8a924b515149456eaecb5557a0f3e
[ "MIT" ]
1
2018-06-19T23:42:27.000Z
2018-06-20T07:06:25.000Z
tyo_mq_client/publisher.py
e-tang/tyo-mq-client-python
82ea47bf8cf8a924b515149456eaecb5557a0f3e
[ "MIT" ]
null
null
null
# # from .subscriber import Subscriber from .logger import Logger from .constants import Constants from .events import Events # import json class Publisher(Subscriber): def __init__(self, name, eventDefault=None, host=None, port=None, protocol=None): super(Publisher, self).__init__(name, host, port, proto...
33.280899
105
0.641458
338
2,962
5.408284
0.218935
0.02954
0.060175
0.04267
0.206236
0.147702
0.147702
0.147702
0.147702
0.108315
0
0
0.255571
2,962
88
106
33.659091
0.829025
0.045915
0
0.074074
0
0
0.05694
0
0
0
0
0
0
1
0.203704
false
0
0.092593
0
0.314815
0
0
0
0
null
0
0
0
0
0
0
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
39b57868be76cc021f5f1127464558d697a138df
3,560
py
Python
app/authenticate.py
directedbyshawn/Secure-Login
15f2a6168986b11ffbde318333415671fb62578f
[ "MIT" ]
null
null
null
app/authenticate.py
directedbyshawn/Secure-Login
15f2a6168986b11ffbde318333415671fb62578f
[ "MIT" ]
null
null
null
app/authenticate.py
directedbyshawn/Secure-Login
15f2a6168986b11ffbde318333415671fb62578f
[ "MIT" ]
null
null
null
''' Authentication methods for cs166 final project. ''' import random, hashlib from .db import retrieve_accounts lower_case = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] upper_case = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', '...
28.709677
156
0.589045
431
3,560
4.740139
0.334107
0.020558
0.019579
0.026432
0.077827
0.077827
0.063632
0.029369
0.029369
0.029369
0
0.01236
0.272753
3,560
124
157
28.709677
0.776748
0.214607
0
0.129032
0
0
0.033784
0
0
0
0
0
0
1
0.048387
false
0.274194
0.032258
0
0.16129
0
0
0
0
null
0
0
0
0
0
0
0
0
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
39c13236092aa20981aa814b36bf7e898a69daef
343
py
Python
app.py
victorathanasio/KPI-test
cbc24ebc9b6e9304c7ff0428458c827d09bd99aa
[ "MIT" ]
null
null
null
app.py
victorathanasio/KPI-test
cbc24ebc9b6e9304c7ff0428458c827d09bd99aa
[ "MIT" ]
null
null
null
app.py
victorathanasio/KPI-test
cbc24ebc9b6e9304c7ff0428458c827d09bd99aa
[ "MIT" ]
null
null
null
from WebApp.mainapp import app import dash_html_components as html import flask from REST_API.rest_api import API from WebApp.Layout import Layout app.layout = Layout() app.server.register_blueprint(API) server = app.server if __name__ == '__main__': # app.run_server(debug=False, host='0.0.0.0', port=90) app....
24.5
58
0.766764
56
343
4.428571
0.482143
0.024194
0.096774
0.137097
0
0
0
0
0
0
0
0.020067
0.12828
343
13
59
26.384615
0.809365
0.151604
0
0
0
0
0.027682
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
39cd57d3e96930bf2512f61084f0ec5dbd909936
2,129
py
Python
django_project/apps/qfauth/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/qfauth/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/qfauth/forms.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django import forms from apps.forms import FormMixin from django.core import validators from .models import User from django.core.cache import cache class LoginForm(forms.Form,FormMixin): telephone = forms.CharField(max_length=11,min_length=11) password = forms.CharField(max_length=30,min_length=6,error_me...
43.44898
136
0.716768
263
2,129
5.596958
0.277567
0.067255
0.092391
0.125
0.394022
0.326766
0.326766
0.326766
0.326766
0.27106
0
0.024803
0.166745
2,129
48
137
44.354167
0.804961
0.01597
0
0
0
0
0.115053
0
0
0
0
0
0
1
0.027778
false
0.166667
0.138889
0
0.5
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
39d5975250cb33441f80fb188d15a624f07f6415
4,216
py
Python
GraphOfDocs.py
NC0DER/GraphOfDocs
16603de9d8695ae8205117aa7123707d1dcbe0e0
[ "Apache-2.0" ]
12
2020-01-27T20:26:08.000Z
2022-03-10T14:45:09.000Z
GraphOfDocs.py
NC0DER/GraphOfDocs
16603de9d8695ae8205117aa7123707d1dcbe0e0
[ "Apache-2.0" ]
1
2021-11-17T11:45:55.000Z
2021-11-17T11:45:55.000Z
GraphOfDocs.py
NC0DER/GraphOfDocs
16603de9d8695ae8205117aa7123707d1dcbe0e0
[ "Apache-2.0" ]
2
2020-01-27T13:17:11.000Z
2020-01-29T09:35:22.000Z
import sys import platform from neo4j import ServiceUnavailable from GraphOfDocs.neo4j_wrapper import Neo4jDatabase from GraphOfDocs.utils import generate_words, read_dataset, clear_screen from GraphOfDocs.parse_args import parser from GraphOfDocs.create import * def graphofdocs(create, initialize, dirpath, wi...
43.916667
95
0.64777
530
4,216
5.064151
0.349057
0.022355
0.013413
0.020119
0.131893
0.115499
0.085693
0.085693
0.052906
0.052906
0
0.007234
0.2787
4,216
95
96
44.378947
0.87537
0.307638
0
0.067797
1
0
0.166607
0.007508
0
0
0
0
0.016949
1
0.016949
false
0
0.118644
0
0.152542
0.135593
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
39dce94f390b2bc845f4a4548517b2bf61e50466
5,711
py
Python
CiscoWebAuthManager.py
darizotas/ciscowebauth
aaac65b5e78fe3246f0d4dedaf44eea4d8d293cb
[ "BSD-3-Clause" ]
1
2018-01-22T04:43:39.000Z
2018-01-22T04:43:39.000Z
CiscoWebAuthManager.py
darizotas/ciscowebauth
aaac65b5e78fe3246f0d4dedaf44eea4d8d293cb
[ "BSD-3-Clause" ]
null
null
null
CiscoWebAuthManager.py
darizotas/ciscowebauth
aaac65b5e78fe3246f0d4dedaf44eea4d8d293cb
[ "BSD-3-Clause" ]
null
null
null
"""Script that establishes a session in a wireless network managed by Cisco Web Authentication. This script requests for re-establishing a session in a wireless network managed by Cisco Web Authentication. Copyright 2013 Dario B. darizotas at gmail dot com This software is licensed under a new BSD License. Unported...
34.823171
102
0.615654
633
5,711
5.507109
0.327014
0.038726
0.044177
0.019507
0.496845
0.470166
0.470166
0.443775
0.420252
0.420252
0
0.007089
0.283663
5,711
164
103
34.823171
0.845026
0.03502
0
0.551724
0
0
0.152089
0.01436
0
0
0
0
0
0
null
null
0.025862
0.051724
null
null
0.12931
0
0
0
null
0
0
0
0
0
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
39e14dad20bbe0a515df5d2bbdc11d428ec81e56
1,799
py
Python
yacht/data/transforms.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
5
2021-09-03T10:16:50.000Z
2022-02-28T07:32:43.000Z
yacht/data/transforms.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
null
null
null
yacht/data/transforms.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
1
2022-03-05T16:06:46.000Z
2022-03-05T16:06:46.000Z
from abc import ABC, abstractmethod from typing import Any, List, Optional import pandas as pd from yacht.config import Config class Transform(ABC): @abstractmethod def __call__(self, sample: Any) -> Any: pass class Compose(Transform): def __init__(self, transforms: List[Transform]): s...
27.676923
119
0.625347
192
1,799
5.651042
0.270833
0.066359
0.040553
0.073733
0.282028
0.278341
0.193548
0.193548
0.119816
0.119816
0
0.007576
0.192885
1,799
64
120
28.109375
0.739669
0
0
0.205128
0
0
0.070833
0.014881
0
0
0
0
0
1
0.153846
false
0.025641
0.102564
0
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
39ec9a70f64ddc65a70eb731b8421b2083d1e79f
410
py
Python
src/aerocloud/packages.py
Aerometrex/aerocloud-python-client
0bd15432bb0f81fc5e9ca03c48b9b15c8e8ed438
[ "MIT" ]
null
null
null
src/aerocloud/packages.py
Aerometrex/aerocloud-python-client
0bd15432bb0f81fc5e9ca03c48b9b15c8e8ed438
[ "MIT" ]
null
null
null
src/aerocloud/packages.py
Aerometrex/aerocloud-python-client
0bd15432bb0f81fc5e9ca03c48b9b15c8e8ed438
[ "MIT" ]
null
null
null
import os from enum import Enum class AppPackage(Enum): # Add packages here as required. LASTOOLS = "lastools" def getPackageDirectory(package: AppPackage, version: str = None): "Gets the directory where the specified package is installed." varName = f'AZ_BATCH_APP_PACKAGE_{package.value}' if ...
21.578947
66
0.702439
51
410
5.568627
0.666667
0.056338
0
0
0
0
0
0
0
0
0
0
0.204878
410
18
67
22.777778
0.871166
0.22439
0
0
0
0
0.325397
0.095238
0
0
0
0
0
1
0.1
false
0
0.2
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
39f26329f53e08a2340c221abdf702988c619417
12,075
py
Python
hashvis.py
boredzo/hashvis
74a017c7fa9b6d48e43172ffd15fc19ccfb060e1
[ "BSD-3-Clause" ]
15
2015-12-02T14:26:52.000Z
2018-01-21T15:18:59.000Z
hashvis.py
boredzo/hashvis
74a017c7fa9b6d48e43172ffd15fc19ccfb060e1
[ "BSD-3-Clause" ]
10
2015-12-04T06:00:42.000Z
2016-07-09T21:40:53.000Z
hashvis.py
boredzo/hashvis
74a017c7fa9b6d48e43172ffd15fc19ccfb060e1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """hashvis by Peter Hosey Reads from standard input or files, and prints what it reads, along with colorized versions of any hashes or signatures found in each line. The goal here is visual comparability. You should be able to tell whether two hashes are the same at a glance...
46.087786
319
0.729441
1,848
12,075
4.625
0.235931
0.029601
0.040365
0.051129
0.460512
0.433602
0.420498
0.354627
0.334035
0.261729
0
0.125386
0.141366
12,075
261
320
46.264368
0.698302
0.106584
0
0.17801
0
0.073298
0.342694
0.205351
0
0
0.00531
0
0.151832
0
null
null
0
0.04712
null
null
0.078534
0
0
0
null
0
0
0
0
0
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
f2d302744caca38acace037f6391b1ffee2c8630
1,432
py
Python
src/minescrubber/controller.py
alok1974/minescrubber
0c18d960b385a4a59ac0cf38bc69271a23c667e7
[ "MIT" ]
1
2020-08-11T23:08:34.000Z
2020-08-11T23:08:34.000Z
src/minescrubber/controller.py
alok1974/minescrubber
0c18d960b385a4a59ac0cf38bc69271a23c667e7
[ "MIT" ]
null
null
null
src/minescrubber/controller.py
alok1974/minescrubber
0c18d960b385a4a59ac0cf38bc69271a23c667e7
[ "MIT" ]
null
null
null
from minescrubber_core import abstract from . import mainwindow class UI(abstract.UI): def __init__(self): self.main_window = mainwindow.MainWidget() def init_board(self, board): self.main_window.init_board(board) def refresh(self, board, init_image=True): self.main_window.refr...
22.730159
68
0.670391
176
1,432
5.221591
0.272727
0.078346
0.137106
0.055495
0.292709
0.267682
0.176279
0.102285
0
0
0
0.001845
0.243017
1,432
62
69
23.096774
0.845941
0
0
0.232558
0
0
0.004888
0
0
0
0
0
0
1
0.302326
false
0
0.139535
0.093023
0.581395
0
0
0
0
null
0
0
0
0
0
0
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
f2d563db44644c1403a6f057432f77eaa66bdff6
1,517
py
Python
Chapter04/chapter4.py
Kushalshingote/Hands-On-Generative-Adversarial-Networks-with-Keras
fccada4810ba1fe8b79c5a74420a590c95623b52
[ "MIT" ]
76
2019-05-27T23:38:53.000Z
2021-12-19T00:31:13.000Z
Chapter04/chapter4.py
Kushalshingote/Hands-On-Generative-Adversarial-Networks-with-Keras
fccada4810ba1fe8b79c5a74420a590c95623b52
[ "MIT" ]
9
2019-05-29T21:01:32.000Z
2020-07-30T12:00:02.000Z
Chapter04/chapter4.py
Kushalshingote/Hands-On-Generative-Adversarial-Networks-with-Keras
fccada4810ba1fe8b79c5a74420a590c95623b52
[ "MIT" ]
35
2019-05-12T04:20:54.000Z
2022-03-03T19:46:06.000Z
# get the training data D, sample the Generator with random z to produce r N = X_train z = np.random.uniform(-1, 1, (1, z_dim)) r = G.predict_on_batch(z) # define our distance measure S to be L1 S = lambda n, r: np.sum(np.abs(n - r)) # compute the distances between the reference and the samples in N using the...
35.27907
87
0.712591
268
1,517
3.791045
0.343284
0.029528
0.034449
0.031496
0.122047
0.061024
0
0
0
0
0
0.012935
0.184575
1,517
42
88
36.119048
0.808407
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
f2d93f0a50f1963382d3895bbaf47dcf3e2de6e0
1,124
py
Python
routes/class_incoming.py
fingerecho/proms-4.0
6c3a1fd62c9394761664e100fc1dde50fd79dc11
[ "CC-BY-4.0" ]
2
2019-11-23T03:56:28.000Z
2019-12-03T15:48:34.000Z
routes/class_incoming.py
fingerecho/proms-4.0
6c3a1fd62c9394761664e100fc1dde50fd79dc11
[ "CC-BY-4.0" ]
null
null
null
routes/class_incoming.py
fingerecho/proms-4.0
6c3a1fd62c9394761664e100fc1dde50fd79dc11
[ "CC-BY-4.0" ]
3
2019-04-12T18:09:35.000Z
2020-03-14T14:38:45.000Z
from abc import ABCMeta, abstractmethod import database from . import w_l class IncomingClass(metaclass=ABCMeta): @abstractmethod def __init__(self, request): self.request = request self.graph = None self.uri = None self.named_graph_uri = None self.error_messages = None...
29.578947
120
0.615658
141
1,124
4.758865
0.439716
0.053651
0.083458
0.101341
0
0
0
0
0
0
0
0
0.318505
1,124
37
121
30.378378
0.875979
0.017794
0
0.225806
0
0
0.169553
0
0
0
0
0
0
1
0.129032
false
0.064516
0.096774
0
0.354839
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f2db2b20dcde6fe54280e2d0105ffc23c0015da0
404
py
Python
setup.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
2
2022-03-08T12:30:55.000Z
2022-03-29T19:46:59.000Z
setup.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
null
null
null
setup.py
TDGerve/ramCOH
328f27891906e7207344fb3c5a685648a0924dd2
[ "MIT" ]
null
null
null
import setuptools setuptools.setup( name= 'ramCOH', version= '0.1', description= '...', author= 'Thomas van Gerve', packages= setuptools.find_packages( exclude= ['examples'] ), # package_dir= {'' : 'petroPy'}, package_data= {'ramCOH': ['static/*']}, install_requi...
17.565217
44
0.534653
34
404
6.235294
0.852941
0
0
0
0
0
0
0
0
0
0
0.00692
0.284653
404
23
45
17.565217
0.726644
0.074257
0
0
0
0
0.217158
0
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f2dda34548b86bf17367a72a0ef32f5325649770
576
py
Python
python/binary_tree/104.maximum-depth-of-binary-tree.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
python/binary_tree/104.maximum-depth-of-binary-tree.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
python/binary_tree/104.maximum-depth-of-binary-tree.py
Nobodylesszb/LeetCode
0e902f6bff4834a93ce64cf9c57fd64297e63523
[ "MIT" ]
null
null
null
""" Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Note: A leaf is a node with no children. Example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its depth =...
20.571429
114
0.625
93
576
3.870968
0.537634
0.055556
0.022222
0
0
0
0
0
0
0
0
0.04401
0.289931
576
28
115
20.571429
0.836186
0.546875
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
f2e49a7f41a62f84a3de746b66ce03eb20e0b955
1,395
py
Python
ipython/data/parseSource/input.py
cainja/RMG-Py
f9ad0f4244e476a28768c8a4a37410ad55bcd556
[ "MIT" ]
1
2020-01-14T09:12:22.000Z
2020-01-14T09:12:22.000Z
ipython/data/parseSource/input.py
speth/RMG-Py
1d2c2b684580396e984459d9347628a5ceb80e2e
[ "MIT" ]
72
2016-06-06T18:18:49.000Z
2019-11-17T03:21:10.000Z
ipython/data/parseSource/input.py
speth/RMG-Py
1d2c2b684580396e984459d9347628a5ceb80e2e
[ "MIT" ]
3
2017-09-22T15:47:37.000Z
2021-12-30T23:51:47.000Z
# Data sources database( thermoLibraries = ['primaryThermoLibrary'], reactionLibraries = [('C3', False)], seedMechanisms = ['GRI-Mech3.0'], kineticsDepositories = ['training'], kineticsFamilies = 'default', kineticsEstimator = 'rate rules', ) # List of species species( label='ethane', r...
19.375
47
0.632258
138
1,395
6.391304
0.710145
0.006803
0.011338
0.015873
0
0
0
0
0
0
0
0.064044
0.216487
1,395
71
48
19.647887
0.742909
0.032258
0
0.032787
0
0
0.138187
0
0
0
0
0
0
1
0
true
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f2e593a65e27e8bb4c6dbcd20c5d00538ad0aa1c
438
py
Python
simbench/__init__.py
BaraaUniKassel/simbench
eca679bbef2b7c61d4a42dd9d9716ad969ff6f77
[ "BSD-3-Clause" ]
null
null
null
simbench/__init__.py
BaraaUniKassel/simbench
eca679bbef2b7c61d4a42dd9d9716ad969ff6f77
[ "BSD-3-Clause" ]
null
null
null
simbench/__init__.py
BaraaUniKassel/simbench
eca679bbef2b7c61d4a42dd9d9716ad969ff6f77
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019-2021 by University of Kassel, Tu Dortmund, RWTH Aachen University and Fraunhofer # Institute for Energy Economics and Energy System Technology (IEE) Kassel and individual # contributors (see AUTHORS file for details). All rights reserved. __version__ = "1.3.0" __author__ = "smeinecke" import os s...
33.692308
101
0.783105
61
438
5.409836
0.770492
0.036364
0
0
0
0
0
0
0
0
0
0.029101
0.136986
438
12
102
36.5
0.843915
0.577626
0
0
0
0
0.077348
0
0
0
0
0
0
1
0
false
0
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
f2efb530b1ef641d5c0b78f798aa8a3ec91dbadc
3,184
py
Python
functions/constants.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
4
2022-03-08T08:46:44.000Z
2022-03-19T07:52:11.000Z
functions/constants.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
114
2021-10-30T05:48:54.000Z
2022-03-06T10:57:00.000Z
functions/constants.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
null
null
null
import os import sys from enum import Enum from enum import unique from typing import List # Set system constants based on the current platform if sys.platform.startswith("win32"): DEFAULT_SYSTEM_CONFIG_PATH = os.path.join(os.environ["APPDATA"], "config") elif sys.platform.startswith("linux"): DEFAULT_SYSTEM_C...
25.269841
83
0.666143
387
3,184
5.377261
0.335917
0.02691
0.028832
0.055262
0.3037
0.250841
0.250841
0.227775
0.176838
0.156655
0
0.000806
0.220477
3,184
125
84
25.472
0.837631
0.218593
0
0.168831
0
0
0.134568
0
0
0
0
0
0
1
0.064935
false
0
0.064935
0.012987
0.623377
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
8401c1577e1e3475bf83b16d801193d6422761d2
2,735
py
Python
dashboard/urls.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
dashboard/urls.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
16
2019-12-10T19:40:27.000Z
2022-02-10T11:51:06.000Z
dashboard/urls.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
from django.conf.urls import include, url, re_path from rest_framework import routers from . import views urlpatterns = [ re_path(r"^api/dashboard/(?P<slug>[a-zA-Z0-9-_]+)/versiontime", views.get_last_processed_time), re_path(r"^api/dashboard/(?P<slug>[a-zA-Z0-9-_]+)/players", views.get_player_list), re_p...
80.441176
145
0.697623
460
2,735
3.891304
0.180435
0.046927
0.078212
0.093855
0.501676
0.497207
0.497207
0.497207
0.497207
0.477095
0
0.023447
0.064351
2,735
33
146
82.878788
0.676045
0
0
0
0
0.064516
0.51298
0.51298
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
8406877949c3d33a1b17a8c7fd596cba40c180cf
3,542
py
Python
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0001_initial.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0001_initial.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0001_initial.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-01 13:47 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
38.5
168
0.559006
312
3,542
6.137821
0.269231
0.063185
0.065274
0.060052
0.449086
0.449086
0.432898
0.357702
0.310705
0.310705
0
0.01191
0.312535
3,542
91
169
38.923077
0.774538
0.019198
0
0.457831
1
0
0.209162
0.033996
0
0
0
0
0
1
0
false
0
0.036145
0
0.084337
0
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
840d053d29d25ef335ed6bf8148849bf05df3d8b
596
py
Python
guitar-package/guitar/guitar/fetcher/__init__.py
django-stars/guitar
9bddfd2d7b555c97dd9470b458a5f43bd805b026
[ "MIT" ]
null
null
null
guitar-package/guitar/guitar/fetcher/__init__.py
django-stars/guitar
9bddfd2d7b555c97dd9470b458a5f43bd805b026
[ "MIT" ]
null
null
null
guitar-package/guitar/guitar/fetcher/__init__.py
django-stars/guitar
9bddfd2d7b555c97dd9470b458a5f43bd805b026
[ "MIT" ]
null
null
null
import urllib2 import json FAKE_PACKAGES = ( 'south', 'django-debug-toolbar', 'django-extensions', 'django-social-auth', ) class GuitarWebAPI(object): def __init__(self, url): self.url = url def search(self, q): url = self.url + 'search/' + q + '/' res = urllib2.urlop...
20.551724
55
0.587248
70
596
4.914286
0.542857
0.081395
0.087209
0.093023
0
0
0
0
0
0
0
0.018307
0.266779
596
28
56
21.285714
0.768879
0
0
0.095238
0
0
0.176175
0
0
0
0
0
0
0
null
null
0
0.095238
null
null
0.095238
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
841b950a79e8d2aae01b030de733c8d1017b6718
3,649
py
Python
libs/token.py
yareally/twitter-clone-python
1323c3fa4bf66f479a3092c09fb165a323eb1c85
[ "MIT" ]
1
2020-05-22T22:13:48.000Z
2020-05-22T22:13:48.000Z
libs/token.py
yareally/twitter-clone-python
1323c3fa4bf66f479a3092c09fb165a323eb1c85
[ "MIT" ]
null
null
null
libs/token.py
yareally/twitter-clone-python
1323c3fa4bf66f479a3092c09fb165a323eb1c85
[ "MIT" ]
null
null
null
# coding=utf-8 from operator import xor import os import scrypt import time from libs.rediswrapper import UserHelper try: xrange except NameError: xrange = range class Token(object): """ @param user_id: @type user_id: @param password: @type password: """ __BLOCK_SIZE = 256 _...
28.960317
102
0.609482
465
3,649
4.567742
0.270968
0.039548
0.033898
0.040019
0.324859
0.277778
0.267891
0.202448
0.202448
0.202448
0
0.020737
0.28638
3,649
125
103
29.192
0.794931
0.326391
0
0.106383
0
0
0.029285
0
0
0
0.003841
0
0
1
0.106383
false
0.191489
0.106383
0
0.489362
0
0
0
0
null
0
0
0
0
0
0
0
0
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
842064b9ee1d937a6d9bb100474bd7dafa3c5859
3,766
py
Python
applications/plugins/SofaPython/python/SofaPython/DAGValidation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/SofaPython/python/SofaPython/DAGValidation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
applications/plugins/SofaPython/python/SofaPython/DAGValidation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
import sys import Sofa import Tools def MechanicalObjectVisitor(node): ## listing mechanical states, bottom-up from node ancestors = [] visited = [] for p in node.getParents(): path = p.getPathName() if not path in visited: state = p.getMechanicalState(...
30.128
123
0.521774
383
3,766
5.062663
0.245431
0.046416
0.036101
0.024755
0.265601
0.249097
0.230531
0.215575
0.215575
0.215575
0
0.001243
0.359002
3,766
124
124
30.370968
0.801988
0.161445
0
0.253333
0
0
0.121367
0.03641
0
0
0
0
0
0
null
null
0
0.04
null
null
0.133333
0
0
0
null
0
0
0
0
0
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
84226726736f353bcbde4bab4581da03be81116f
878
py
Python
Newsfeed/Newsfeed/app.py
akshayseth7/Intership_Snapshot
e262ec4939e2e5c5e2037333b7fa37f7c57d5425
[ "MIT" ]
null
null
null
Newsfeed/Newsfeed/app.py
akshayseth7/Intership_Snapshot
e262ec4939e2e5c5e2037333b7fa37f7c57d5425
[ "MIT" ]
null
null
null
Newsfeed/Newsfeed/app.py
akshayseth7/Intership_Snapshot
e262ec4939e2e5c5e2037333b7fa37f7c57d5425
[ "MIT" ]
null
null
null
from flask import Flask , render_template, request import google_news app = Flask(__name__) outFile = '' @app.route("/") def main(): print "Welcome!" return render_template('index.html') @app.route('/uploadFile', methods=['POST']) def upload(): global outputFile filedata = request.files['upload'] ...
20.904762
50
0.67426
92
878
6.23913
0.445652
0.073171
0.069686
0
0
0
0
0
0
0
0
0
0.200456
878
41
51
21.414634
0.817664
0.01139
0
0
0
0
0.181293
0
0
0
0
0
0
0
null
null
0
0.066667
null
null
0.233333
0
0
0
null
0
0
0
0
0
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
84272a9b78bd142a71da410927baa64f753039be
1,069
py
Python
TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py
rootfinlay/SageTeamX
cf4cde3360c8cccb8a727ba64d66345805d7a0ed
[ "Unlicense" ]
null
null
null
TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py
rootfinlay/SageTeamX
cf4cde3360c8cccb8a727ba64d66345805d7a0ed
[ "Unlicense" ]
null
null
null
TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py
rootfinlay/SageTeamX
cf4cde3360c8cccb8a727ba64d66345805d7a0ed
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2.3 on 2019-07-12 12:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('TeamXapp', '0039_auto_20190712_1348'), ] operations = [ migrations.AddField( model_name='leavec...
35.633333
168
0.649205
120
1,069
5.65
0.4
0.058997
0.082596
0.129794
0.529499
0.529499
0.529499
0.529499
0.376106
0.376106
0
0.03753
0.227315
1,069
29
169
36.862069
0.783293
0.042095
0
0.304348
1
0
0.190802
0.044031
0
0
0
0
0
1
0
false
0
0.086957
0
0.217391
0
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
8438a4e8ec614cde523653248e7af3039519099a
463
py
Python
mqtt_sender.py
kehtolaulu/iot-ccs811
611ca30ffaec067d730ac95c59b6800fda2cf148
[ "MIT" ]
null
null
null
mqtt_sender.py
kehtolaulu/iot-ccs811
611ca30ffaec067d730ac95c59b6800fda2cf148
[ "MIT" ]
null
null
null
mqtt_sender.py
kehtolaulu/iot-ccs811
611ca30ffaec067d730ac95c59b6800fda2cf148
[ "MIT" ]
null
null
null
import json from paho.mqtt.client import Client from subscriber import Subscriber from datetime import datetime class MqttSender(Subscriber): def __init__(self, client: Client, topic: str): self.client = client self.topic = topic def on_next(self, message: dict): json_message = json...
25.722222
72
0.695464
58
463
5.413793
0.448276
0.095541
0.101911
0
0
0
0
0
0
0
0
0
0.200864
463
17
73
27.235294
0.848649
0
0
0
0
0
0.116631
0.064795
0
0
0
0
0
1
0.166667
false
0
0.333333
0
0.583333
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
84416b0aa44ff310962bcf2724c753d72fba9519
476
py
Python
main/schemas/location_lat.py
ohioh/ohioh_Framework_Cluster_3_Flask
69e50b9d697b5e8818305328335d26314b625732
[ "Apache-2.0" ]
1
2020-08-11T18:37:36.000Z
2020-08-11T18:37:36.000Z
main/schemas/location_lat.py
ohioh/ohioh_Framework_Cluster_3_Flask
69e50b9d697b5e8818305328335d26314b625732
[ "Apache-2.0" ]
null
null
null
main/schemas/location_lat.py
ohioh/ohioh_Framework_Cluster_3_Flask
69e50b9d697b5e8818305328335d26314b625732
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from marshmallow import Schema, EXCLUDE import marshmallow.fields as ms_fields class LocationLatSchema(Schema): user_id = ms_fields.Str(required=True) user_timestamp = ms_fields.DateTime(default=datetime.now()) location_id = ms_fields.Str(default="") latitude = ms_fields...
23.8
63
0.737395
63
476
5.412698
0.460317
0.164223
0.058651
0.076246
0.129032
0.129032
0
0
0
0
0
0.010127
0.170168
476
19
64
25.052632
0.853165
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.25
0
0.916667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
84418df14873be48f72ce565d6b9bb740aefa623
411
py
Python
Python/34-match.py
strawman2511/Learning
21ee7bdad376060503fdc0a739fed2d7bd40f9b9
[ "MIT" ]
1
2022-03-16T23:25:54.000Z
2022-03-16T23:25:54.000Z
Python/34-match.py
strawman2511/Learning
21ee7bdad376060503fdc0a739fed2d7bd40f9b9
[ "MIT" ]
null
null
null
Python/34-match.py
strawman2511/Learning
21ee7bdad376060503fdc0a739fed2d7bd40f9b9
[ "MIT" ]
null
null
null
# Till now only Python 3.10 can run match statement def check_point(point): match point: case (0, 0): print("Origin") case (0, y): print(f"Y = {y}") case (x, 0) print(f"X = {x}") case (x, y): print(f"X = {x}, Y = {y}") case _: ...
20.55
51
0.452555
60
411
3.05
0.433333
0.098361
0.163934
0.087432
0
0
0
0
0
0
0
0.036145
0.394161
411
19
52
21.631579
0.698795
0.119221
0
0
0
0
0.130556
0
0
0
0
0
0
0
null
null
0
0
null
null
0.25
0
0
0
null
0
0
0
0
0
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
844a39e610cb54a65514ca7f805b41f45b503518
3,021
py
Python
jarvis/resume/tests/test_utils.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2019-01-03T06:10:04.000Z
2019-01-03T06:10:04.000Z
jarvis/resume/tests/test_utils.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
1
2021-03-31T19:11:52.000Z
2021-03-31T19:11:52.000Z
jarvis/resume/tests/test_utils.py
Anubhav722/blahblah
160698e06a02e671ac40de3113cd37d642e72e96
[ "MIT" ]
null
null
null
from django.test import TestCase from jarvis.resume.utils.extractor import get_text from jarvis.resume.utils.parser_helper import get_urls, get_url_response, url_categories, get_github_username, get_stackoverflow_userid, get_stackoverflow_username, get_name, get_id_from_linkedin_url, get_email from unidecode import uni...
43.782609
210
0.676266
365
3,021
5.361644
0.191781
0.032192
0.064384
0.02606
0.237609
0.170158
0.043945
0
0
0
0
0.013333
0.180735
3,021
68
211
44.426471
0.777374
0.052301
0
0
0
0
0.249295
0.01763
0
0
0
0
0.2
1
0.222222
false
0
0.088889
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
844bd667c2563dc8f5e9e83fc9eaf8e0c1857eb6
560
py
Python
news/admin.py
trojsten/news
aa1dfb4ee31a7f810dcd484eecafd49659292d76
[ "BSD-3-Clause" ]
null
null
null
news/admin.py
trojsten/news
aa1dfb4ee31a7f810dcd484eecafd49659292d76
[ "BSD-3-Clause" ]
6
2016-07-10T00:22:02.000Z
2021-12-23T22:43:41.000Z
news/admin.py
trojsten/news
aa1dfb4ee31a7f810dcd484eecafd49659292d76
[ "BSD-3-Clause" ]
2
2019-04-30T20:20:38.000Z
2021-02-16T18:41:01.000Z
from django.contrib import admin from django.db import models from easy_select2.widgets import Select2Multiple from news.models import Entry class EntryAdmin(admin.ModelAdmin): list_display = ('title', 'pub_date', 'author') readonly_fields = ('slug',) exclude = ('author',) formfield_overrides = { ...
25.454545
61
0.682143
64
560
5.875
0.671875
0.053191
0
0
0
0
0
0
0
0
0
0.006757
0.207143
560
21
62
26.666667
0.84009
0
0
0
0
0
0.0625
0
0
0
0
0
0
1
0.0625
false
0
0.25
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
845c29a7df8a071ea4d00366b934a8a0a5899a8f
2,832
py
Python
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
3
2021-04-14T02:59:09.000Z
2021-06-08T00:17:27.000Z
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
81
2020-12-08T00:11:52.000Z
2021-08-09T18:13:32.000Z
vbb_backend/session/migrations/0002_auto_20210215_1509.py
patrickb42/backend-vbb-portal
88362bc5b4d5cab95aa67e12694f98371604b65a
[ "MIT" ]
5
2021-01-12T04:50:26.000Z
2021-06-04T02:00:03.000Z
# Generated by Django 3.0.10 on 2021-02-15 15:09 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20210209_0849'), ('session', '0001_initial'), ] operations = [ migr...
37.76
153
0.598517
259
2,832
6.374517
0.316602
0.049061
0.123561
0.138098
0.466384
0.430042
0.20533
0.20533
0.20533
0.20533
0
0.018146
0.280014
2,832
74
154
38.27027
0.791564
0.016243
0
0.441176
1
0
0.192888
0.079382
0
0
0
0
0
1
0
false
0
0.044118
0
0.088235
0
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
8463673ccc7d5d8251d46b1bed4eb08caa70dd68
1,054
py
Python
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/game/pvp/objects.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
import smart_imports smart_imports.all() class BattleRequest: __slots__ = ('id', 'initiator_id', 'matchmaker_type', 'created_at', 'updated_at') def __init__(self, id, initiator_id, matchmaker_type, created_at, updated_at): self.id = id self.initiator_id = initiator_id self.matchmake...
31.939394
85
0.66129
126
1,054
5.095238
0.214286
0.218069
0.124611
0.116822
0.507788
0.383178
0.383178
0.140187
0.140187
0
0
0
0.233397
1,054
32
86
32.9375
0.794554
0
0
0.26087
0
0
0.133903
0
0
0
0
0
0
1
0.130435
false
0
0.086957
0.043478
0.434783
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
8465fe705e2203a309cb2f80aab7f362306bc341
1,111
py
Python
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
testesDuranteAulas/aula019.py
Igor3550/Exercicios-de-python
e0f6e043df4f0770ac15968485fbb19698b4ac6b
[ "MIT" ]
null
null
null
# Dicionarios pessoas = {'nome': 'Igor', 'sexo': 'M', 'idade': 20} print(f'O {pessoas["nome"]} tem {pessoas["idade"]} anos.') print(pessoas.keys()) #chaves do dicionario print(pessoas.values())#valores das chaves print(pessoas.items())#mostra os itens do dicionario print() for k in pessoas.keys(): print(k) for v in...
26.452381
58
0.629163
170
1,111
4.111765
0.388235
0.02289
0.057225
0.040057
0.144492
0.125894
0.125894
0.091559
0.091559
0.091559
0
0.011905
0.168317
1,111
41
59
27.097561
0.744589
0.155716
0
0.297297
0
0
0.191604
0
0
0
0
0
0
1
0
false
0
0
0
0
0.432432
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
ffbcc28e993823f93d8f7e3809b6abd49a5cc187
1,998
py
Python
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
froide/publicbody/admin.py
rufuspollock/froide
8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.http import HttpResponse from django.utils.translation import ugettext as _ from froide.publicbody.models import (PublicBody, FoiLaw, PublicBodyTopic, Jurisdiction) class PublicBodyAdmin(admin.ModelAdmin): prepopulated_fields = { "slug": ("name",), ...
34.448276
87
0.699199
205
1,998
6.604878
0.395122
0.044313
0.079764
0.097489
0.121123
0.121123
0
0
0
0
0
0.002436
0.178178
1,998
57
88
35.052632
0.822168
0
0
0.093023
0
0
0.167167
0
0
0
0
0
0
1
0.046512
false
0
0.116279
0.023256
0.581395
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
ffc1d0bbd0644054a0b22502249482b17c06c941
2,532
py
Python
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
null
null
null
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
6
2021-03-05T16:39:42.000Z
2021-06-11T01:04:57.000Z
tests/utils/test_commons.py
jajomi/flow
c984be6f7de1a34192601c129dbc19f2ce45f135
[ "Apache-2.0" ]
null
null
null
from unittest.mock import mock_open from unittest.mock import patch import flow.utils.commons as commons def test_extract_story_id_with_empty_list(): story_list = commons.extract_story_id_from_commit_messages([]) assert len(story_list) == 0 commit_example = [ "223342f Adding ability to specify artifactory u...
36.171429
100
0.781991
361
2,532
5.155125
0.213296
0.062869
0.075228
0.051048
0.750672
0.711445
0.698012
0.698012
0.588393
0.430951
0
0.097846
0.120063
2,532
69
101
36.695652
0.737433
0
0
0.288462
0
0
0.376777
0.080569
0
0
0
0
0.134615
1
0.115385
false
0
0.057692
0
0.173077
0.057692
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ffc40ad7630c4587dcf4487c052a523769c15b4a
1,254
py
Python
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
packages/M2Crypto-0.21.1/demo/smime/unsmime.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
#!/usr/bin/env python """S/MIME demo. Copyright (c) 2000 Ng Pheng Siong. All rights reserved.""" from M2Crypto import BIO, Rand, SMIME, X509 import sys def decrypt_verify(p7file, recip_key, signer_cert, ca_cert): s = SMIME.SMIME() # Load decryption private key. s.load_key(recip_key) # Extract PKCS...
24.588235
77
0.6563
188
1,254
4.212766
0.484043
0.022727
0.05303
0.037879
0.159091
0.159091
0.159091
0.090909
0
0
0
0.040082
0.224083
1,254
50
78
25.08
0.773895
0.290271
0
0
0
0
0.081047
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.045455
0
0
0
null
0
0
0
0
0
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
ffc57756064cdbfdff55d925646e8ab713a50ba6
1,675
py
Python
timeseries/test.py
zoobree/MachineLearning
67fd35e67469d9f03afd5c090f2ca23f514bebfd
[ "Apache-2.0" ]
null
null
null
timeseries/test.py
zoobree/MachineLearning
67fd35e67469d9f03afd5c090f2ca23f514bebfd
[ "Apache-2.0" ]
1
2018-04-07T05:24:40.000Z
2018-04-07T05:24:40.000Z
timeseries/test.py
joybree/MachineLearning
69a381efa35436a6d211005c320576db966eea11
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import arima import os import pandas as pd class Arima_Test(unittest.TestCase): def set_data_dir(self): print("set_data_dir") self.dir = "E:/code/python/MachineLearning/data/test_data/" self.error = 0.001 self.num_percent = 0.9 def t...
25.769231
99
0.587463
220
1,675
4.145455
0.345455
0.052632
0.060307
0.065789
0.04386
0
0
0
0
0
0
0.015491
0.306269
1,675
64
100
26.171875
0.769363
0.025672
0
0.130435
0
0
0.066542
0.045398
0
0
0
0
0.021739
1
0.173913
false
0.130435
0.086957
0
0.282609
0.130435
0
0
0
null
0
0
0
0
0
0
0
0
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
ffc7fe1be16dc65b683b9d6a05ef9740a31e195b
42,563
py
Python
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
3
2016-09-20T09:50:06.000Z
2018-08-10T01:41:38.000Z
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
null
null
null
ion/simulators/SBE37_SMP_simulator.py
ooici/coi-services
43246f46a82e597345507afd7dfc7373cb346afa
[ "BSD-2-Clause" ]
2
2016-03-16T22:25:49.000Z
2016-11-26T14:54:21.000Z
#!/usr/bin/env python __author__ = 'Roger Unwin' import socket import time from time import gmtime, strftime import datetime import string import sys import random import asyncore import thread import getopt import select import os ### default values defined below (b/c class is not yet defined) #default_port = 4001 ...
44.94509
405
0.453398
4,983
42,563
3.753562
0.120409
0.103507
0.084688
0.055603
0.505667
0.449797
0.376925
0.357678
0.342868
0.31266
0
0.06122
0.403238
42,563
946
406
44.9926
0.675157
0.064798
0
0.336022
0
0.00672
0.146193
0.000991
0
0
0
0
0
0
null
null
0.001344
0.017473
null
null
0.020161
0
0
0
null
0
0
0
0
0
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
ffc9b886976a36f8168389759472ba04ff485037
10,360
py
Python
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
Case_Study_1.py
Amritha29/Stout_DDA_FULL_STACK_21.github.io
89be2324468dfba2ba9afb378881c6e9e460696b
[ "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor Amritha Subburayan code for STOUT DDA FULL STACK CASE STUDIES """ import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline from sklearn import preprocessing import sklearn.metrics as sm data = pd.r...
32.888889
167
0.754826
1,575
10,360
4.713016
0.205079
0.041223
0.054964
0.073286
0.482689
0.403476
0.325475
0.243567
0.178769
0.15937
0
0.0359
0.110039
10,360
314
168
32.993631
0.769197
0.178185
0
0.013699
0
0
0.279484
0.098937
0
0
0
0
0
0
null
null
0
0.075342
null
null
0.109589
0
0
0
null
0
0
0
0
0
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
ffcf7b955b11391d80d86773ca0338d0d81e1b2c
709
py
Python
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/56/463.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, intervals: List[List[int]]) -> List[List[int]]: if len(intervals) == 1: return intervals intervals.sort() result = [intervals[0]] for i in range(1, len(intervals)): # 总共三种情况需要考虑,比较两个区间,另两个区间中的元素值依次为a,b,c,d。 temp = res...
32.227273
65
0.472496
85
709
3.941176
0.435294
0.044776
0.071642
0.053731
0.149254
0.149254
0.149254
0
0
0
0
0.025287
0.38646
709
21
66
33.761905
0.744828
0.119887
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
ffd73066eb937a59b32d4daec9ba6f8807fa09da
5,551
py
Python
utils/StartMOOS.py
ianfixes/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-07-09T17:51:20.000Z
2016-04-14T23:06:04.000Z
utils/StartMOOS.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
null
null
null
utils/StartMOOS.py
ifreecarve/MOOS-python-utils
1c34f3b8cde4fdcee48a8ee128a3c160eb17d722
[ "WTFPL" ]
3
2015-03-31T04:18:21.000Z
2016-10-22T04:55:16.000Z
#!/usr/bin/env python ########################################################################### # # Written in 2009 by Ian Katz <ijk5@mit.edu> # Terms: WTFPL (http://sam.zoy.org/wtfpl/) # See COPYING and WARRANTY files included in this distribution # #####################################...
26.816425
85
0.572149
639
5,551
4.838811
0.383412
0.028461
0.017788
0.023286
0.148124
0.124191
0.106727
0.086675
0.064683
0.064683
0
0.011285
0.297604
5,551
206
86
26.946602
0.781739
0.200324
0
0.233333
0
0
0.160169
0
0
0
0
0
0
0
null
null
0
0.041667
null
null
0.158333
0
0
0
null
0
0
0
0
0
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
ffde4e382f893654ea15768c8c27165eee09e3a4
3,720
py
Python
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Control/Sign.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
from tkinter.font import BOLD from PIL import ImageTk from tkinter import* from PIL import Image from tkinter import messagebox from Tools.log_db import* class Sign: def __init__(self, root): self.root = root ## Init frame and button Frame_sign = Frame(self.root, bg="#120b26") Fr...
53.913043
265
0.596774
466
3,720
4.654506
0.291845
0.067773
0.076072
0.039189
0.344398
0.311664
0.289534
0.198709
0.119871
0.119871
0
0.054241
0.261559
3,720
69
266
53.913043
0.735348
0.045968
0
0.061224
0
0
0.165772
0.027958
0
0
0
0
0
1
0.040816
false
0.285714
0.122449
0
0.183673
0
0
0
0
null
0
0
0
0
0
0
0
0
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
ffe63e2dda8d22501b711fdd07b98a6cfff2ea5a
2,484
py
Python
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
bot/PythonProject/Commands.py
RamaDev09/CrateBot
34b9f50b88da42cc1c449466402897340ec142df
[ "MIT" ]
null
null
null
import os from bot.TextInput import TextInput from bot.prompt import color_msg def PythonCommands(file, name, category, description, slash): here = os.getcwd() # Writing a new import line cogs = file['config']['commands'] = [] cogs.append(name) with open(here + "/main.py", "r") as f : ...
45.163636
118
0.517311
252
2,484
5.063492
0.285714
0.056426
0.094044
0.094044
0.699843
0.67163
0.67163
0.67163
0.67163
0.67163
0
0.022556
0.357488
2,484
55
119
45.163636
0.776942
0.010064
0
0.596154
0
0
0.178453
0.012895
0
0
0
0
0
1
0.019231
false
0
0.076923
0
0.096154
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
ffe7fe43c53e89a050ea85e42fd101e3306b2423
9,139
py
Python
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
1
2016-03-08T14:39:52.000Z
2016-03-08T14:39:52.000Z
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
null
null
null
vision_proc/proc_frame.py
SMS-Raiders/First2016
a08eb1fa195bd869f8e7de7761d791e3fcf23d22
[ "BSD-3-Clause" ]
null
null
null
#!/bin/python #Frame processing and distance estimation for #goal #------------------------------------------------------------------------------- # IMPORTS #------------------------------------------------------------------------------- import cv2 import math import numpy i...
37.454918
135
0.402889
938
9,139
3.826226
0.289979
0.008359
0.021454
0.02229
0.03455
0.015046
0
0
0
0
0
0.041327
0.274538
9,139
243
136
37.609054
0.5
0.360105
0
0.13913
0
0
0.089235
0
0
0
0
0
0
0
null
null
0
0.034783
null
null
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fff197ae68beb5dbb26583494df00c1fc7732948
1,285
py
Python
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
7
2019-07-19T21:30:26.000Z
2021-06-17T03:57:22.000Z
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
null
null
null
tools/gen_bbox_ac.py
vincentzhang/faster-rcnn-fcn
7118d715a430f0ec2697e5f7a9a39c9752b466da
[ "BSD-2-Clause" ]
1
2021-06-17T03:57:23.000Z
2021-06-17T03:57:23.000Z
# generated bbox ground truth from pixel-wise segmentation # it currently only generate one bbox from __future__ import print_function import numpy as np import h5py import os import pdb mask_path = '../data/acce' f = h5py.File(os.path.join(mask_path, "resized_label_ac_2d.h5"), 'r') bbox_path = '../data/acce/bbox' if...
34.72973
83
0.585214
202
1,285
3.569307
0.455446
0.044383
0.033287
0.041609
0.027739
0
0
0
0
0
0
0.022941
0.253697
1,285
36
84
35.694444
0.728884
0.224125
0
0
1
0
0.112576
0.022312
0
0
0
0
0
1
0
false
0
0.178571
0
0.178571
0.142857
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