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
95887e566eb9b0860bede603c8c4d3bf2e059af1
5,634
py
Python
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
3
2021-02-05T09:33:39.000Z
2021-07-25T18:39:43.000Z
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
null
null
null
main.py
TrueMLGPro/MultiDownloader
8ef6cdccbe253fe79cf3cec9ed83fd40c3f834bc
[ "Apache-2.0" ]
1
2022-02-28T21:41:12.000Z
2022-02-28T21:41:12.000Z
# Copyright 2020 TrueMLGPro # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, soft...
39.398601
149
0.671814
773
5,634
4.796895
0.244502
0.044498
0.028317
0.030744
0.385922
0.33603
0.276699
0.23247
0.209817
0.162082
0
0.004824
0.15371
5,634
143
150
39.398601
0.772861
0.097089
0
0.298246
0
0.008772
0.350995
0
0
0
0
0
0
1
0.061404
false
0
0.04386
0
0.105263
0.122807
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
958a38d4edf87c352270fdf92a3b1727c3d068e0
1,129
py
Python
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
1
2017-11-15T15:04:44.000Z
2017-11-15T15:04:44.000Z
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
2
2021-03-20T05:32:38.000Z
2021-03-26T00:39:11.000Z
forge/kubernetes.py
Acidburn0zzz/forge
c53d99f49abe61a2657a1a41232211bb48ee182d
[ "Apache-2.0" ]
null
null
null
import os, glob from tasks import task, TaskError, get, sh, SHResult def is_yaml_empty(dir): for name in glob.glob("%s/*.yaml" % dir): with open(name) as f: if f.read().strip(): return False return True class Kubernetes(object): def __init__(self, namespace=None, conte...
29.710526
75
0.558902
143
1,129
4.265734
0.356643
0.080328
0.054098
0.042623
0.252459
0.252459
0.252459
0.121311
0.121311
0.121311
0
0.002528
0.29938
1,129
37
76
30.513514
0.768647
0
0
0.25
0
0
0.085031
0
0
0
0
0
0
1
0.125
false
0
0.0625
0
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
958c59599470ad36c300e0c6dec5381bb27923b6
1,952
py
Python
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
1
2022-02-14T05:52:53.000Z
2022-02-14T05:52:53.000Z
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
null
null
null
demucs/ema.py
sparshpriyadarshi/demucs
7c7f65401db654d750df2b6f4d5b82a0101500b1
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # Inspired from https://github.com/rwightman/pytorch-image-models from contextlib import contextmanager import torch from...
29.134328
73
0.585553
255
1,952
4.419608
0.376471
0.071872
0.034605
0.031943
0.161491
0.161491
0.161491
0.161491
0.161491
0.161491
0
0.01034
0.306352
1,952
66
74
29.575758
0.822009
0.227971
0
0.195122
0
0
0.015646
0
0
0
0
0
0
1
0.146341
false
0
0.073171
0.02439
0.268293
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
958e7f740b7a101b6adbafb3854a0ff8c7e6558c
12,328
py
Python
gws.py
intelligence-csd-auth-gr/greek-words-evolution
ab1ee717f7567ffa8171e64f835932af7502955d
[ "MIT" ]
9
2020-07-12T13:45:24.000Z
2021-12-05T16:08:58.000Z
word_embeddings/we.py
emiltj/NLP_exam_2021
9342e8dc9ad684927bbfa5eb6c125dd53c14cccb
[ "MIT" ]
2
2021-03-30T14:35:26.000Z
2022-03-12T00:40:17.000Z
word_embeddings/we.py
emiltj/NLP_exam_2021
9342e8dc9ad684927bbfa5eb6c125dd53c14cccb
[ "MIT" ]
2
2021-04-23T13:07:55.000Z
2021-12-16T14:06:51.000Z
import warnings import argparse import os import logging import lib.metadata as metadata import lib.model as model import lib.text as text import lib.website as website warnings.filterwarnings('ignore') logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) ####################################...
56.036364
120
0.455224
936
12,328
5.83547
0.17735
0.023068
0.02197
0.039546
0.431527
0.398572
0.33138
0.283962
0.242402
0.204321
0
0.003117
0.141304
12,328
219
121
56.292237
0.512847
0.111291
0
0.089552
0
0
0.270628
0.003038
0
0
0
0
0
1
0.029851
false
0
0.059701
0
0.089552
0.067164
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
958ef26cd63d83883ded41820724c2716c93e70b
2,716
py
Python
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
ssepaperless/Organizer/views.py
michaelkressaty/ssepaperless
d536f9106fd499e664d3c03fb6331b4feb1cc4ca
[ "BSD-3-Clause" ]
null
null
null
from django.shortcuts import get_object_or_404, render from django.http import HttpResponse from django.template import RequestContext, loader from Organizer.models import Department from Organizer.models import Advisor from Organizer.models import Student from Organizer.models import Course from Organizer.models impor...
48.5
111
0.796024
340
2,716
6.091176
0.132353
0.056494
0.069049
0.08788
0.534524
0.377595
0.279575
0.279575
0.279575
0.279575
0
0.016991
0.111561
2,716
55
112
49.381818
0.841276
0.008468
0
0.2
0
0
0.120401
0.070977
0
0
0
0
0
1
0.177778
false
0
0.266667
0
0.622222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95908c4c021ce144e1c7f298836a5c4a2cc424d8
462
py
Python
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
project/3/cal.py
Aries-Dawn/Cpp-Program-Design
9d4fc9a902fff2f76e41314f5d6c52871d30a511
[ "MIT" ]
null
null
null
import numpy as np matrixA = np.loadtxt('./mat-A-32.txt') matrixB = np.loadtxt('./mat-B-32.txt') checking = np.loadtxt('./out32.txt') result = np.dot(matrixA, matrixB) diff = result - checking print(checking) print(result) print(diff) np.absolute(diff) print(np.max(diff)) [rows, cols] = diff.shape with open ('./out20...
23.1
42
0.623377
75
462
3.84
0.48
0.09375
0.083333
0
0
0
0
0
0
0
0
0.028947
0.177489
462
19
43
24.315789
0.728947
0
0
0
0
0
0.140693
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
0.235294
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9594993f4525fce4f5b648804a7994f70f4ed262
4,773
py
Python
ci/check-documentation.py
FredrikBlomgren/aff3ct
fa616bd923b2dcf03a4cf119cceca51cf810d483
[ "MIT" ]
315
2016-06-21T13:32:14.000Z
2022-03-28T09:33:59.000Z
ci/check-documentation.py
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
153
2017-01-17T03:51:06.000Z
2022-03-24T15:39:26.000Z
ci/check-documentation.py
a-panella/aff3ct
61509eb756ae3725b8a67c2d26a5af5ba95186fb
[ "MIT" ]
119
2017-01-04T14:31:58.000Z
2022-03-21T08:34:16.000Z
#!/usr/bin/env python3 import argparse import sys import re import subprocess import os import glob import copy import aff3ct_help_parser as ahp # read all the lines from the given file and set them in a list of string lines with striped \n \r def readFileInTable(filename): aFile = open(filename, "r") lines = [] ...
27.431034
128
0.707521
750
4,773
4.286667
0.24
0.054432
0.025194
0.02986
0.216174
0.133126
0.115086
0.099533
0.049145
0.027994
0
0.013951
0.159019
4,773
174
129
27.431034
0.786996
0.070605
0
0.134921
0
0
0.159024
0.030946
0
0
0
0
0
1
0.063492
false
0.007937
0.063492
0
0.174603
0.079365
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
9595a509a88acc24d2199e14d5a84b03b3fb5415
677
py
Python
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
5
2020-08-05T21:02:35.000Z
2021-11-11T14:31:35.000Z
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2020-09-24T04:41:20.000Z
2020-09-28T04:37:50.000Z
todoster/list_projects.py
SophieAu/todoster
6f69f7b254683d63f60f934eafa8971e78df7eb2
[ "MIT" ]
1
2021-08-09T19:23:24.000Z
2021-08-09T19:23:24.000Z
from todoster.file_operations import load_projects from todoster.output_formatter import format_string def list_projects(arguments): projects = load_projects() if not arguments.show_all_projects: projects = list(filter(lambda x: x["active"], projects)) print() project_counter = 1 for proj...
33.85
85
0.669129
78
677
5.628205
0.461538
0.109339
0.068337
0
0
0
0
0
0
0
0
0.005566
0.20384
677
19
86
35.631579
0.808905
0
0
0.133333
0
0
0.053176
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0
0.2
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95988a5a0c747ad5cc792f45a029f70fc328bc8e
621
py
Python
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
src/game_test.py
TomNo/tictactoe-mcts
5d5db97f54fe5a3bf7c9afaaa4d74984fdb30ec4
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'Tomas Novacik' import unittest2 from game import Game from board import Board, PlayerType, Move class GameTest(unittest2.TestCase): def test_winning_move(self): game = Game() game.start() # set winning status to board board = Board() ...
18.264706
75
0.613527
79
621
4.670886
0.481013
0.086721
0.081301
0.086721
0.113821
0
0
0
0
0
0
0.013483
0.283414
621
33
76
18.818182
0.81573
0.083736
0
0.222222
0
0
0.022968
0
0
0
0
0
0.055556
1
0.111111
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95993548b5a77661a71dcd96b3ee1f6f35d686ce
1,911
py
Python
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
3
2021-11-21T17:21:12.000Z
2021-12-10T21:19:57.000Z
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
16
2021-10-06T11:20:35.000Z
2022-02-02T11:44:28.000Z
skills_taxonomy_v2/pipeline/skills_extraction/get_sentence_embeddings_utils.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
1
2021-10-04T12:27:20.000Z
2021-10-04T12:27:20.000Z
""" Functions to mask sentences of undesirable words (stopwords, punctuation etc). Used in get_sentence_embeddings.py to process sentences before finding embeddings. """ import re from skills_taxonomy_v2.pipeline.skills_extraction.cleaning_sentences import ( separate_camel_case, ) def is_token_word(token, token_...
29.4
85
0.553114
206
1,911
4.956311
0.470874
0.073457
0.117532
0.064643
0.212537
0.151812
0.111655
0.111655
0.111655
0.111655
0
0.000814
0.357405
1,911
64
86
29.859375
0.830619
0.26269
0
0
0
0
0.04384
0
0
0
0
0
0
1
0.04878
false
0
0.04878
0
0.146341
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
959a854d76fcee93383a4561465ab39d08da02e1
1,000
py
Python
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
11
2017-08-23T17:41:43.000Z
2018-10-24T03:00:38.000Z
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
480
2017-07-14T00:29:11.000Z
2020-01-06T19:04:51.000Z
migrations/versions/033809bcaf32_destinations.py
RagtagOpen/carpools
56b8f6491a2d347b637b345fbad7bc744130ec7f
[ "Apache-2.0" ]
22
2017-07-07T00:07:32.000Z
2020-02-27T19:43:14.000Z
"""destinations Revision ID: 033809bcaf32 Revises: 4a77b8fb792a Create Date: 2017-08-24 05:56:45.166590 """ from alembic import op import sqlalchemy as sa import geoalchemy2 # revision identifiers, used by Alembic. revision = '033809bcaf32' down_revision = '4a77b8fb792a' branch_labels = None depends_on = None def...
27.027027
89
0.698
122
1,000
5.663934
0.516393
0.057887
0.081042
0.086831
0.127352
0.127352
0.127352
0.127352
0
0
0
0.067536
0.156
1,000
36
90
27.777778
0.751185
0.294
0
0
0
0
0.124066
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
959ac1baff7cea9daabf593760b72f74cd08cb19
778
py
Python
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
porcupine/plugins/gotoline.py
rscales02/porcupine
91b3c90d19d2291c0a60ddb9dffac931147cde3c
[ "MIT" ]
null
null
null
from tkinter import simpledialog from porcupine import actions, get_tab_manager, tabs def gotoline(): tab = get_tab_manager().select() # simpledialog isn't ttk yet, but it's not a huge problem imo lineno = simpledialog.askinteger( "Go to Line", "Type a line number and press Enter:") if linen...
31.12
79
0.638817
107
778
4.579439
0.672897
0.079592
0.053061
0
0
0
0
0
0
0
0
0.001695
0.241645
778
24
80
32.416667
0.828814
0.200514
0
0
0
0
0.153971
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
959aea6673bc315fd2a49870629b49b87e1b393a
4,634
py
Python
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
7
2020-01-22T03:23:39.000Z
2021-12-26T05:02:10.000Z
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
null
null
null
preprocessing.py
JackAndCole/Detection-of-sleep-apnea-from-single-lead-ECG-signal-using-a-time-window-artificial-neural-network
692bb7d969b7eb4a0ad9b221660901a863bc76e2
[ "Apache-2.0" ]
1
2020-05-29T06:32:24.000Z
2020-05-29T06:32:24.000Z
import os import pickle import sys import warnings from collections import OrderedDict import biosppy.signals.tools as st import numpy as np import wfdb from biosppy.signals.ecg import correct_rpeaks, hamilton_segmenter from hrv.classical import frequency_domain, time_domain from scipy.signal import medfilt...
44.990291
120
0.579197
565
4,634
4.555752
0.39646
0.13209
0.0777
0.062937
0.293318
0.265346
0.255245
0.255245
0.151515
0.070707
0
0.05938
0.26953
4,634
102
121
45.431373
0.701034
0.035175
0
0.144578
0
0
0.096101
0
0
0
0
0
0
1
0.012048
false
0.012048
0.144578
0
0.168675
0.024096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
959b3935838082e9b39f90f0dbe7ce84722264d7
3,904
py
Python
tiddlywebplugins/tiddlyspace/openid.py
FND/tiddlyspace
7b26e5b4e0b0a817b3ea0a357613c59705d016d4
[ "BSD-3-Clause" ]
2
2015-12-15T00:40:36.000Z
2019-04-22T16:54:41.000Z
tiddlywebplugins/tiddlyspace/openid.py
jdlrobson/tiddlyspace
70f500687fcd26e3fa4ef144297a05203ccf0f35
[ "BSD-3-Clause" ]
null
null
null
tiddlywebplugins/tiddlyspace/openid.py
jdlrobson/tiddlyspace
70f500687fcd26e3fa4ef144297a05203ccf0f35
[ "BSD-3-Clause" ]
null
null
null
""" Subclass of tiddlywebplugins.openid2 to support tiddlyweb_secondary_user cookie. """ import urlparse from tiddlyweb.web.util import server_host_url, make_cookie from tiddlywebplugins.openid2 import Challenger as OpenID FRAGMENT_PREFIX = 'auth:OpenID:' class Challenger(OpenID): def __init__(self): ...
36.148148
72
0.615523
421
3,904
5.517815
0.344418
0.051657
0.037882
0.024107
0.146362
0.104176
0.104176
0.104176
0.061128
0.061128
0
0.005891
0.260758
3,904
107
73
36.485981
0.79903
0.109631
0
0.076923
0
0
0.313069
0.069897
0
0
0
0
0
1
0.051282
false
0
0.038462
0.012821
0.141026
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
959bcca51833c2423f463ff10fb943bd7f71b93f
9,047
py
Python
pyacoustics/morph/intensity_morph.py
UNIST-Interactions/pyAcoustics
f22d19d258b4e359fec365b30f11af261dee1b5c
[ "MIT" ]
72
2015-12-10T20:00:04.000Z
2022-03-31T05:42:17.000Z
pyacoustics/morph/intensity_morph.py
alivalehi/pyAcoustics
ab446681d7a2267063afb6a386334dcaefd0d93b
[ "MIT" ]
5
2017-08-08T05:13:15.000Z
2020-11-26T00:58:04.000Z
pyacoustics/morph/intensity_morph.py
alivalehi/pyAcoustics
ab446681d7a2267063afb6a386334dcaefd0d93b
[ "MIT" ]
16
2016-05-09T07:36:15.000Z
2021-08-30T14:23:25.000Z
''' Created on Apr 2, 2015 @author: tmahrt ''' import os from os.path import join import math import copy from pyacoustics.morph.morph_utils import common from pyacoustics.morph.morph_utils import plot_morphed_data from pyacoustics.utilities import utils from pyacoustics.utilities import sequences from pyacoustics....
36.776423
79
0.606831
812
9,047
6.729064
0.330049
0.016471
0.008785
0.014641
0.123719
0.100659
0.087482
0.036969
0.036969
0
0
0.010543
0.318559
9,047
245
80
36.926531
0.87575
0.167127
0
0.09589
0
0
0.008734
0
0
0
0
0
0.020548
1
0.034247
false
0
0.068493
0
0.123288
0.006849
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95a2f6f31ddcda8bf982507b3035c6d82bfe1d80
723
py
Python
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
4
2019-05-29T19:44:56.000Z
2021-09-10T18:36:57.000Z
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
null
null
null
selfdrive/visiond/tensorflow_autodetect.py
jeroenbbb/openpilot
4a2ff784f85ac87a4aa9ba8a345c2403102f960a
[ "MIT" ]
5
2019-08-09T07:49:28.000Z
2020-10-11T03:19:04.000Z
import os from setuptools import setup version = os.getenv('VERSION', '1.10.1') setup( name='tensorflow-autodetect', version=version, url='https://github.com/commaai/tensorflow-autodetect', author='comma.ai', author_email='', license='MIT', long_description='Auto-detect tensorflow or tenso...
30.125
111
0.656985
79
723
5.974684
0.658228
0.082627
0.105932
0
0
0
0
0
0
0
0
0.010327
0.196404
723
23
112
31.434783
0.802065
0
0
0.095238
0
0
0.49101
0.06639
0
0
0
0
0
1
0
false
0
0.095238
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95a49255a761f17a3cc35cbf97bc73b1442eaf32
7,563
py
Python
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
plex_import_watched_history.py
chazlarson/plex-watched-tools
ef3e34e733ec9555353d695ced582395bdc73480
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # python3 -m pip install --force -U --user PlexAPI import json import time import logging import plexapi import plexapi.video import plexapi.myplex import plexapi.server import plexapi.library import plexapi.exceptions PLEX_URL = "" PLEX_TOKEN = "" WATCHED_HISTORY =...
36.713592
114
0.672352
927
7,563
5.160734
0.18986
0.059783
0.033445
0.025084
0.449415
0.323161
0.210284
0.178721
0.135242
0.121446
0
0.005783
0.222663
7,563
205
115
36.892683
0.807961
0.0238
0
0.123288
0
0.006849
0.153294
0.039848
0
0
0
0
0
1
0.054795
false
0
0.089041
0.006849
0.157534
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95aa9b2ab7c302c981b157247e84659b7c3d8105
709
py
Python
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
17
2021-06-02T12:26:30.000Z
2022-03-27T18:35:02.000Z
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
null
null
null
test/test_integration.py
gaborfodor/wave-bird-recognition
6feafdbae82746e3e7b0f6588a9158aa8336309a
[ "MIT" ]
3
2021-06-02T12:26:51.000Z
2021-06-06T05:56:45.000Z
from birds.display_utils import geo_plot from birds.pann import load_pretrained_model, read_audio_fast, get_model_predictions_for_clip, BIRDS def test_prediction_works(): test_bird = 'comrav' model = load_pretrained_model() y = read_audio_fast(f'./data/audio/{test_bird}.mp3') predictions = get_mode...
27.269231
100
0.71086
105
709
4.466667
0.495238
0.10661
0.081023
0.093817
0.110874
0
0
0
0
0
0
0.010135
0.165021
709
25
101
28.36
0.782095
0
0
0
0
0
0.09591
0.039492
0
0
0
0
0.0625
1
0.125
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ae2e3a04b5bb9553c2d275221aaaba3d17f40e
1,236
py
Python
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
0205.Isomorphic Strings/solution.py
zhlinh/leetcode
6dfa0a4df9ec07b2c746a13c8257780880ea04af
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: zhlinhng@gmail.com Version: 0.0.1 Created Time: 2016-03-24 Last_modify: 2016-03-24 ****************************************** ''' ''' Given two strings s and t, determine if th...
24.235294
75
0.536408
175
1,236
3.782857
0.531429
0.045317
0.024169
0.021148
0
0
0
0
0
0
0
0.040678
0.283981
1,236
50
76
24.72
0.707345
0.242718
0
0.166667
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95b233e62bad224b765ef9f8b1c2e67cce2b24ad
1,659
py
Python
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
YOLOv2.py
scain40/OpenCVCVImageComparisson
368d901233111606fb2f0ecbce4447dd9c149fd0
[ "MIT" ]
null
null
null
import numpy as np import cv2 as cv import os import sys class ObjectDetector: """ Object Detector is the class model for using YOLOv2 and gathering results """ def __init__(self): self.network_loading() def network_loading(self): # Loading in the trained darknet models labels self.LABELS =...
36.866667
112
0.722122
219
1,659
5.420091
0.515982
0.075821
0.023589
0
0
0
0
0
0
0
0
0.014771
0.183846
1,659
44
113
37.704545
0.861891
0.261001
0
0
0
0
0.033448
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95b40e4094e935db9b4e39bc3de9c67b55114bbe
484
py
Python
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
app/run.py
dudikbender/geocoder
af8c0839d3d73c7825a0488763d053b5e6bc8257
[ "Unlicense" ]
null
null
null
from utils.db import connection, print_version import pandas as pd def add_table(csv_file, table_name, engine): df = pd.read_csv(csv_file) df = df.drop('Unnamed: 0') df.to_sql(name=table_name, con=engine, index=False, if_exists='replace') table = 'data/tables/postcode_coordinates.csv' add_table(table, 'P...
25.473684
76
0.727273
70
484
4.842857
0.571429
0.168142
0
0
0
0
0
0
0
0
0
0.004831
0.144628
484
19
77
25.473684
0.81401
0
0
0
0
0
0.245361
0.074227
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95b771302ac3436f68366f36390ccc4ddba021fd
2,206
py
Python
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
1
2020-04-11T16:46:56.000Z
2020-04-11T16:46:56.000Z
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
3
2020-04-13T10:42:59.000Z
2020-07-10T06:26:23.000Z
validator_rewards/validator_rewards.py
harmony-one/monitor-ops
0a379655ff26bff5821cd7cb6f619a15a308441b
[ "MIT" ]
2
2020-04-22T10:36:25.000Z
2020-05-20T15:58:02.000Z
import argparse import json from pyhmy import ( get_all_validator_addresses, get_validator_information ) def get_block_by_num(block_num, endpoint): params = [ str(hex(block_num)), False, ] payload = { "id": "1", "jsonrpc": "2.0", "method": "hmy_getBlockByNum...
31.514286
96
0.609248
268
2,206
4.787313
0.41791
0.046765
0.053001
0.020265
0.14809
0.082619
0.049883
0.049883
0.049883
0.049883
0
0.006623
0.247053
2,206
69
97
31.971014
0.765804
0.014506
0
0.135593
0
0
0.186464
0.02302
0
0
0
0
0
1
0.050847
false
0.016949
0.050847
0.016949
0.152542
0.152542
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95bbb3583a2750d5735e9244fe93a6a446fb803f
8,314
py
Python
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
76
2020-02-08T03:15:54.000Z
2022-03-04T16:14:52.000Z
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
5
2020-02-07T14:00:58.000Z
2021-05-31T01:37:55.000Z
dataset/data_load.py
clovaai/symmetrical-synthesis
207953b1ae3d2e0a96fb676db3669bdc88cc18e8
[ "MIT" ]
13
2020-02-10T02:56:51.000Z
2021-05-28T06:56:30.000Z
''' symmetrical-synthesis Copyright (c) 2020-present NAVER Corp. MIT license ''' import os import time import glob import cv2 import random import numpy as np import tensorflow as tf import random try: import data_util except ImportError: from dataset import data_util tf.app.flags.DEFINE_boolean('random_resize...
35.228814
170
0.615227
1,139
8,314
4.183494
0.195786
0.039664
0.016789
0.023505
0.227912
0.149633
0.104512
0.090241
0.035257
0.035257
0
0.020354
0.273154
8,314
235
171
35.378723
0.768162
0.100674
0
0.134228
0
0
0.047886
0.006365
0
0
0
0
0
1
0.040268
false
0
0.073826
0.006711
0.134228
0.026846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95bc1cbdca2faf1169e04427ea20b03a36f4f201
1,678
py
Python
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
python_parikshith21/Day39.py
01coders/50-Days-Of-Code
98928cf0e186ee295bc90a4da0aa9554e2918659
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jun 17 20:55:53 2019 @author: Parikshith.H """ import sqlite3 conn=sqlite3.connect('music.sqlite') cur=conn.cursor() cur.execute('DROP TABLE IF EXISTS Tracks') cur.execute('CREATE TABLE Tracks(title TEXT,plays INTEGER)') cur.execute('''INSERT INTO Tracks(title,plays) VALUES...
28.440678
80
0.544696
187
1,678
4.887701
0.320856
0.142232
0.105033
0.131291
0.619256
0.619256
0.584245
0.584245
0.296499
0.180525
0
0.0563
0.110846
1,678
59
81
28.440678
0.5563
0.340882
0
0.423077
0
0
0.544527
0.051948
0
0
0
0
0
1
0
false
0
0.038462
0
0.038462
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c0ec3bbf5dfcbc14218087f1c41fdd10c1b36f
5,135
py
Python
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
spacy/tests/website/test_home.py
moyogo/spacy
ddf5c5bb61864320189ebc70dac3bc10e4ecde82
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import pytest import spacy import os try: xrange except NameError: xrange = range @pytest.fixture() def token(doc): return doc[0] @pytest.mark.models def test_load_resources_and_process_text(): from spacy.en import English nlp = English() doc = nlp(u...
28.370166
78
0.631353
718
5,135
4.32312
0.346797
0.027062
0.046392
0.05509
0.11759
0.042526
0.02384
0.02384
0.02384
0.02384
0
0.01026
0.259786
5,135
180
79
28.527778
0.806367
0.102629
0
0.117188
0
0
0.057984
0.008785
0
0
0
0
0.101563
1
0.171875
false
0
0.0625
0.03125
0.289063
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c1db49e8979342f440e2ee5e1a48186d51308c
936
py
Python
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
parsers/download_data.py
bioinf-mcb/polish-microbiome-project
0fc15b1a5afe4edf63b6be6b945ac4053e3a24f9
[ "BSD-3-Clause" ]
null
null
null
#%% import json import requests from io import StringIO import pandas as pd # %% with open("../db_pass", "r") as f: token = json.load(f)['token'] # %% data = { 'token': token, 'content': 'record', 'format': 'csv', 'type': 'flat', 'csvDelimiter': '', 'rawOrLabel': 'raw', 'rawOrLabelHead...
23.4
113
0.63141
129
936
4.496124
0.589147
0.02069
0.041379
0
0
0
0
0
0
0
0
0.016477
0.157051
936
39
114
24
0.718631
0.014957
0
0
0
0.034483
0.386041
0.129771
0
0
0
0
0
1
0
false
0.034483
0.137931
0
0.137931
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c256321ed64a1e2f22ab370936dbb097ea26b8
2,622
py
Python
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
599
2020-04-14T19:28:58.000Z
2022-03-26T11:29:37.000Z
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
157
2020-04-14T21:13:43.000Z
2022-02-07T06:30:16.000Z
preprocess/sequence_stats.py
ashish-roopan/fsgan
1582e112d0f59cd32920ac5953baec783e088cad
[ "CC0-1.0" ]
150
2020-04-14T20:40:41.000Z
2022-03-30T10:50:21.000Z
""" Sequence statistics: Count, length, bounding boxes size. """ import os from glob import glob import pickle from tqdm import tqdm def extract_stats(cache_path): # Load sequences from file with open(cache_path, "rb") as fp: # Unpickling seq_list = pickle.load(fp) if len(seq_list) == 0: ...
35.432432
114
0.622426
375
2,622
4.104
0.274667
0.051982
0.042885
0.023392
0.102014
0.071475
0
0
0
0
0
0.010256
0.256293
2,622
73
115
35.917808
0.778974
0.094584
0
0
0
0.02
0.161933
0
0
0
0
0
0
1
0.04
false
0
0.1
0
0.18
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c5e262b4da5f7adb2dec6d61c74e3194680b9a
7,735
py
Python
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
9
2017-11-16T12:39:11.000Z
2021-10-16T19:30:52.000Z
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
1
2017-11-16T14:20:20.000Z
2017-11-20T18:49:14.000Z
tests/test_dossier.py
openkamer/tk-api-python
907b98ccc7602ad7e3e74f1e06f9544fbe66aba3
[ "MIT" ]
3
2018-09-10T18:57:39.000Z
2020-06-09T14:13:10.000Z
import datetime from tkapi.util import queries from tkapi.zaak import Zaak, ZaakSoort from tkapi.dossier import Dossier, DossierWetsvoorstel from tkapi.document import Document from .core import TKApiTestCase class TestDossier(TKApiTestCase): def test_get_dossiers(self): dossiers = self.api.get_dossier...
39.065657
118
0.648869
909
7,735
5.293729
0.147415
0.044888
0.02286
0.022444
0.405653
0.310266
0.265586
0.204073
0.124688
0.108063
0
0.019686
0.257919
7,735
197
119
39.263959
0.818641
0.249644
0
0.184874
0
0
0.025204
0
0
0
0
0
0.084034
1
0.10084
false
0
0.05042
0
0.226891
0.151261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c7b536f4cc90da867d02e9f53e889cad554b21
27,649
py
Python
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
3
2021-06-16T12:27:22.000Z
2022-01-04T11:21:35.000Z
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
null
null
null
Manuscript files/modflow_reference/auxfile_hexaplot.py
MaxRamgraber/Simple-AEM-Toolbox
27751103f5e504dd675ba6225f2aee9f85d7c85d
[ "MIT" ]
3
2021-06-17T11:20:20.000Z
2022-01-12T09:56:56.000Z
""" This library contains several functions designed to help with the illustration of hexagonal grids Functions: plot_hexagaons : plots a specified data vector over a 2-D hexagon grid. create_alpha_mask : creates an alpha shape (a concave hull), which is required for plotting contou...
42.66821
240
0.537054
3,089
27,649
4.732923
0.178375
0.02093
0.010944
0.01026
0.379275
0.323461
0.272845
0.259302
0.239056
0.22948
0
0.032065
0.323231
27,649
648
241
42.66821
0.749145
0.355492
0
0.4
0
0
0.027599
0
0
0
0
0
0
1
0.022581
false
0
0.083871
0
0.119355
0.009677
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c8f1ad4e81caf4b83710c865b7efb620f7466e
58,889
py
Python
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
14
2020-07-21T21:09:25.000Z
2022-01-30T11:00:35.000Z
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
2
2020-07-28T14:46:11.000Z
2020-07-28T14:52:23.000Z
tests/python/self_concepts_test.py
JulianAL-01/self-concepts
d4a5ebfdadc472535777349602c775a67aaa3823
[ "MIT" ]
5
2020-07-28T13:50:20.000Z
2021-07-12T22:56:11.000Z
''' self_concepts_test This module serves as the unit test for self_concepts ''' import argparse, sys sys.path.append('../../source/python') from self_concepts import Concept from self_concepts import Property from self_concepts import Relationship from self_concepts import Ontology from self_concepts import Blackb...
40.252221
120
0.69558
5,816
58,889
7.013067
0.050894
0.120477
0.075463
0.109836
0.763533
0.690252
0.633348
0.586079
0.536334
0.499387
0
0.015023
0.218954
58,889
1,462
121
40.279754
0.871769
0.009611
0
0.564652
0
0
0.354245
0.005697
0
0
0
0
0
1
0.015302
false
0.00306
0.006121
0
0.027544
0.006886
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95c9bf8a576fcba5f592caf1b205652fbf6c6df7
1,042
py
Python
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
100-200q/123.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
''' Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not engage in multiple transactions at the same time (i.e., you must sell the stock before you buy again). Example 1...
30.647059
121
0.579655
179
1,042
3.363128
0.435754
0.041528
0.026578
0.039867
0
0
0
0
0
0
0
0.04878
0.291747
1,042
33
122
31.575758
0.766938
0.541267
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ca4ff47bbf69d356929cfddbfe83070e5ea793
2,077
py
Python
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
9
2019-12-30T16:32:22.000Z
2020-03-03T20:14:47.000Z
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
283
2020-02-03T15:16:03.000Z
2020-05-05T03:18:59.000Z
lambdas/verify_admin.py
charvi-a/320-S20-Track1
ac97504fc1fdedb1c311773b015570eeea8a8663
[ "BSD-3-Clause" ]
3
2020-04-16T15:23:29.000Z
2020-05-12T00:38:41.000Z
import json from package.query_db import query from package.dictionary_to_list import dictionary_to_list from package.lambda_exception import LambdaException from boto3 import client as boto3_client def verify_admin(event, context): user_id = int(event['user_id']) user_id_dic = {} if user_id == None: #Maki...
42.387755
148
0.639384
263
2,077
4.840304
0.319392
0.084839
0.050275
0.037706
0.25923
0.190102
0.190102
0.190102
0.190102
0.190102
0
0.011913
0.272508
2,077
48
149
43.270833
0.830576
0.108329
0
0.05
0
0
0.266667
0
0
0
0
0
0
1
0.025
false
0
0.125
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95cadfb3b8d6c3a18abd5334655fd77acc7c9759
4,821
py
Python
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
run.py
Galaxy-SynBioCAD/rp2paths
f87ea0f64556be44af1ae717cd4246159253d029
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Created on September 21 2019 @author: Melchior du Lac @description: Wrap rp2paths into a docker """ import argparse import tempfile import os import logging import shutil import docker import glob def main(rp_pathways, rp2paths_pathways, rp2paths_compounds, timeout=30, max_steps=0, max_pa...
43.827273
158
0.611077
543
4,821
5.254144
0.263352
0.071504
0.04171
0.012618
0.201542
0.19313
0.121977
0.093936
0.093936
0.093936
0
0.018118
0.290189
4,821
109
159
44.229358
0.815605
0.186476
0
0.173333
0
0
0.214639
0.076322
0
0
0
0
0
1
0.013333
false
0
0.093333
0
0.106667
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95cb8a34cde724ada03c12bdaeb21669317ed997
402
py
Python
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
44
2018-11-19T16:49:10.000Z
2021-12-05T10:16:24.000Z
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
null
null
null
verilator/scripts/concat_up5k.py
micro-FPGA/engine-V
00a8f924e10fc69874d9c179f788bf037fe9c407
[ "Apache-2.0" ]
5
2018-12-05T23:43:21.000Z
2020-09-03T04:36:34.000Z
spiFile = open('spiflash.bin','wb') # 128KB is reserved for bitstream bitFile = open('../bitstream/mf8a18_rv32i.bin','rb') bitData = bitFile.read(0x20000) riscvFile = open('riscv.bin','rb') riscvData = riscvFile.read(32768) spiFile.write(bitData) spiFile.seek(0x20000) spiFile.write(riscvData) nullData = bytearray...
17.478261
52
0.748756
52
402
5.769231
0.538462
0.12
0
0
0
0
0
0
0
0
0
0.07989
0.097015
402
22
53
18.272727
0.746556
0.077114
0
0
0
0
0.152589
0.079019
0
0
0.057221
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95cda288d497faae566e114db4bdc1e1b83b2b52
753
py
Python
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2019-11-20T20:08:42.000Z
2022-02-24T12:24:20.000Z
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
6
2020-01-27T16:15:11.000Z
2021-04-12T11:42:11.000Z
pyvista_gui/options.py
akaszynski/pyvista-gui
4ed7e3a52026dfeab4e82a300b92a92f43060dda
[ "MIT" ]
null
null
null
"""Options for saving user prefences, etc. """ import json import os import pyvista class RcParams(dict): """Internally used class to manage the rcParams""" filename = os.path.join(pyvista.USER_DATA_PATH, 'rcParams.json') def save(self): with open(self.filename, 'w') as f: json.dump...
19.815789
68
0.629482
100
753
4.63
0.5
0.056156
0.051836
0.069114
0.103672
0
0
0
0
0
0
0
0.25498
753
37
69
20.351351
0.825312
0.217795
0
0
0
0
0.026042
0
0
0
0
0
0
1
0.130435
false
0
0.130435
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ce4cab43e2034234aed87a60cc3f00447f9524
4,445
py
Python
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
1
2019-12-27T22:36:30.000Z
2019-12-27T22:36:30.000Z
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
2020/aoc/__init__.py
amochtar/adventofcode
292e7f00a1e19d2149d00246b0a77fedfcd3bd08
[ "MIT" ]
null
null
null
import itertools import re import math from typing import List, Tuple def ints(text: str) -> Tuple[int, ...]: "Return a tuple of all ints in a string" return tuple(map(int, re.findall(r'-?\b\d+\b', text))) def powerset(iterable): "powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)" s ...
26.939394
109
0.526659
787
4,445
2.935197
0.162643
0.085714
0.114286
0.038961
0.551948
0.511688
0.511688
0.501299
0.437229
0.407359
0
0.044383
0.265017
4,445
164
110
27.103659
0.662687
0.19685
0
0.188976
0
0.015748
0.205174
0
0
0
0
0
0
1
0.125984
false
0
0.031496
0.007874
0.283465
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ce971f5a305cd3a19578c204fef92020757f3c
4,431
py
Python
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
pi_source_code.py
cjkuhlmann/CCHack2019
fb6eb505ac350c2dda0c36e1f33254fbeef049bf
[ "MIT" ]
null
null
null
import math import time from max30105 import MAX30105, HeartRate import smbus from bme280 import BME280 import socket #from matplotlib import pyplot as plt class DataPoint(): def __init__(self,value,time): self.time_stamp = time self.value = value class Device(): def __init__(self...
28.403846
83
0.558565
545
4,431
4.321101
0.220183
0.056051
0.035669
0.033121
0.242463
0.134183
0.112527
0.051805
0
0
0
0.053828
0.324983
4,431
155
84
28.587097
0.733534
0.045362
0
0.086957
0
0
0.01315
0
0
0
0.001144
0
0
1
0.108696
false
0.01087
0.065217
0
0.195652
0.01087
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95cead6bce011703374b48a18d5379f241d0c282
1,417
py
Python
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
2
2019-08-22T08:57:42.000Z
2019-11-28T14:01:49.000Z
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
null
null
null
butter/mas/clients/client_factory.py
bennymeg/Butter.MAS.PythonAPI
9641293436d989ae9c5324c2b8129f232822b248
[ "Apache-2.0" ]
null
null
null
from .client_http import HttpClient from .client_tcp import TcpClient from .client_udp import UdpClient from .client import Client class ClientFactory: """ Client factory for different types of protocols """ def getClient(self, ip, port=None, protocol="http") -> Client: """Creates new client ...
30.148936
81
0.56669
149
1,417
5.369128
0.288591
0.0375
0.03
0.0375
0.46
0.235
0.1675
0.1675
0.1675
0.1675
0
0
0.348624
1,417
46
82
30.804348
0.866739
0.281581
0
0.434783
0
0
0.032147
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.652174
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ceaebae16674be2fef2960c47326152d1eb461
1,569
py
Python
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
scrapytest/spiders/ScrapyDemo5.py
liang1024/Scrapy
bfa7ea5b2174bf91c49f4da9dadc5471acc43092
[ "Apache-2.0" ]
null
null
null
import scrapy ''' 现在您已经知道如何从页面中提取数据,我们来看看如何跟踪它们的链接。 首先是提取我们想要跟踪的页面的链接。检查我们的页面,我们可以看到有一个链接到下一个页面与以下标记: <ul class="pager"> <li class="next"> <a href="/page/2/">Next <span aria-hidden="true">&rarr;</span></a> </li> </ul> 我们可以尝试在shell中提取它: >>> response.css('li.next a').extract_first() '<a href="/page/2/"...
24.138462
116
0.66348
177
1,569
5.824859
0.519774
0.058196
0.037827
0.049467
0.153249
0.13579
0.13579
0.13579
0.13579
0
0
0.004623
0.172721
1,569
65
117
24.138462
0.788906
0
0
0.111111
0
0
0.189679
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95cf9c3a1a9e3db6fb75803b4f3891c4c503d528
15,563
py
Python
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
digits/model/forms.py
Linda-liugongzi/DIGITS-digits-py3
6df5eb6972574a628b9544934518ec8dfa9c7439
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. import os import flask from flask_wtf import FlaskForm import wtforms from wtforms import validators from digits.config import config_value from digits.device_query import get_device, get_nvml_info from digits import utils f...
36.791962
122
0.556512
1,545
15,563
5.440777
0.259547
0.03331
0.040566
0.044492
0.258506
0.196407
0.164406
0.148227
0.139186
0.131573
0
0.007402
0.340294
15,563
422
123
36.879147
0.811337
0.083531
0
0.307463
0
0
0.219826
0.002178
0
0
0
0
0
1
0.026866
false
0.008955
0.035821
0
0.197015
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95d02019dda244ece2c09a15f8673c55536ad4de
1,155
py
Python
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
4
2020-06-09T19:10:04.000Z
2020-06-17T18:23:47.000Z
004 Sons/afinacao.py
yamadathamine/300ideiasparaprogramarPython
331a063bbf8bcd117ae5a34324b8176a6014fc98
[ "MIT" ]
null
null
null
# encoding: utf-8 # usando python 3 # Afinação - Alberto toca violão e é programador. # Precisando afinar o violão e sem diapasão por perto, # resolveu fazer um programa para ajudá-lo. # O que ele queria era a nota Lá soando sem parar até que ele conseguisse afinar a # respectiva corda do violão; as demais cordas ...
35
88
0.735931
199
1,155
4.246231
0.653266
0.017751
0.016568
0
0
0
0
0
0
0
0
0.043944
0.192208
1,155
33
89
35
0.861736
0.684848
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95d7f54672f221417081565b033268249f18412b
835
py
Python
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
tests/test_modules/test_builtin/test_grouppart.py
MattTaylorDLS/pymalcolm
995a8e4729bd745f8f617969111cc5a34ce1ac14
[ "Apache-2.0" ]
null
null
null
import unittest from malcolm.core import call_with_params from malcolm.modules.builtin.parts import GroupPart class TestGroupPart(unittest.TestCase): def setUp(self): self.o = call_with_params( GroupPart, name="things", description="A group of things") self.setter = list(self.o.creat...
32.115385
70
0.653892
107
835
5.028037
0.439252
0.074349
0.122677
0.139405
0.315985
0.104089
0
0
0
0
0
0.003077
0.221557
835
25
71
33.4
0.824615
0
0
0.105263
0
0
0.132934
0
0
0
0
0
0.368421
1
0.157895
false
0
0.157895
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95d8eae1e421c5a5d85e31ca5953813a5295d371
512
py
Python
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
1
2020-02-10T17:53:58.000Z
2020-02-10T17:53:58.000Z
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
6
2020-01-06T19:37:12.000Z
2021-09-22T18:03:31.000Z
ok2_backend/common/utils.py
Mipsters/ok2-backend
50ddbb44262749d731f4e923add205541254223d
[ "MIT" ]
5
2019-11-18T17:39:29.000Z
2020-07-31T16:00:21.000Z
import os from jose import jwt from datetime import datetime, timedelta JWT_SECRET = 'secret' JWT_ALGORITHM = 'HS256' JWT_EXP_DELTA_SECONDS = 31556952 # year def get_token(request): return jwt.decode(request.headers.get('Authorization'), os.environ['JWT_SECRET']) def create_token(user_id): payload = { ...
23.272727
85
0.722656
69
512
5.101449
0.434783
0.076705
0.102273
0.102273
0
0
0
0
0
0
0
0.026005
0.173828
512
21
86
24.380952
0.806147
0.007813
0
0
0
0
0.086957
0
0
0
0
0
0
1
0.133333
false
0
0.2
0.066667
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e0d6973a04cf649a738acb651bea0fa6b7dfcd
996
py
Python
Inflearn_SungKim/3.MultiVariableLinearRegression/multi-variableLinearregression.py
shinhaha/tensorflow
4647017a727985d64c5b0addee92f0ec516952c1
[ "MIT" ]
null
null
null
Inflearn_SungKim/3.MultiVariableLinearRegression/multi-variableLinearregression.py
shinhaha/tensorflow
4647017a727985d64c5b0addee92f0ec516952c1
[ "MIT" ]
null
null
null
Inflearn_SungKim/3.MultiVariableLinearRegression/multi-variableLinearregression.py
shinhaha/tensorflow
4647017a727985d64c5b0addee92f0ec516952c1
[ "MIT" ]
null
null
null
import tensorflow as tf x1_data=[73.,93.,89.,96.,73.] x2_data=[80.,88.,91.,98.,66.] x3_data=[75.,93.,90.,100.,70.] y_data=[152.,185.,180.,196.,142.] x1=tf.placeholder(tf.float32) x2=tf.placeholder(tf.float32) x3=tf.placeholder(tf.float32) Y=tf.placeholder(tf.float32) w1=tf.Variable(tf.random_normal([1]),name='weight...
32.129032
85
0.712851
170
996
4.047059
0.458824
0.075581
0.087209
0.127907
0.188953
0.188953
0.188953
0.104651
0
0
0
0.09989
0.085341
996
31
86
32.129032
0.655324
0.03012
0
0
0
0
0.046681
0
0
0
0
0
0
1
0
false
0
0.041667
0
0.041667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e18e6281085104769aa15c1a8ef9828b449526
1,759
py
Python
train_model.py
sanjjayrj/Chatbot-NLTK
2000a3c640d6624984ca4ad2457557e937d4ae05
[ "MIT" ]
3
2020-11-17T12:14:37.000Z
2021-08-14T05:46:38.000Z
train_model.py
sanjjayrj/Chatbot-NLTK
2000a3c640d6624984ca4ad2457557e937d4ae05
[ "MIT" ]
null
null
null
train_model.py
sanjjayrj/Chatbot-NLTK
2000a3c640d6624984ca4ad2457557e937d4ae05
[ "MIT" ]
null
null
null
import pandas as pd import nltk import re from nltk.stem import wordnet from nltk import pos_tag from nltk import word_tokenize from datetime import datetime data = pd.read_csv('traindata.csv', encoding='utf-8') train_counter = 0 def text_normalize(text): global train_counter if train_counter % 10000 == 0: ...
37.425532
119
0.557703
204
1,759
4.607843
0.387255
0.06383
0.031915
0.057447
0.145745
0.123404
0
0
0
0
0
0.007052
0.19386
1,759
47
120
37.425532
0.655853
0
0
0.045455
0
0
0.249432
0.120455
0
0
0
0
0
1
0.022727
false
0
0.181818
0
0.227273
0.227273
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e2b38a9c011b08bb379e05752137d534a0a8a9
1,848
py
Python
tensor_twister/server.py
iamorphen/tensor_twister
d7936efa50cf0f7f3950ff4cbb0dd3fbac310ca9
[ "MIT" ]
null
null
null
tensor_twister/server.py
iamorphen/tensor_twister
d7936efa50cf0f7f3950ff4cbb0dd3fbac310ca9
[ "MIT" ]
null
null
null
tensor_twister/server.py
iamorphen/tensor_twister
d7936efa50cf0f7f3950ff4cbb0dd3fbac310ca9
[ "MIT" ]
null
null
null
import io import logging import queue from collections import namedtuple import torch import zmq from tensor_twister.status_codes import StatusCode UnpackedMessage = namedtuple("UnpackedMessage", ["tensor", "name", "ip"]) def serve(host: str, port: int): """ Listen for incoming tensor data from clients. P...
33
120
0.635281
242
1,848
4.756198
0.404959
0.047785
0.026064
0.022589
0.034752
0
0
0
0
0
0
0.016186
0.231061
1,848
55
121
33.6
0.793807
0.170455
0
0
0
0.088235
0.26
0
0
0
0
0
0
1
0.029412
false
0
0.205882
0
0.235294
0.088235
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e39518b618f5551cfe1c882c8f307a7a86e276
6,744
py
Python
optunity/solvers/CMAES.py
xrounder/optunity
019182ca83fe2002083cc1ac938510cb967fd2c9
[ "BSD-3-Clause" ]
401
2015-01-08T00:56:20.000Z
2022-03-19T09:07:12.000Z
optunity/solvers/CMAES.py
xrounder/optunity
019182ca83fe2002083cc1ac938510cb967fd2c9
[ "BSD-3-Clause" ]
67
2015-01-08T09:13:20.000Z
2022-01-05T23:26:36.000Z
optunity/solvers/CMAES.py
xrounder/optunity
019182ca83fe2002083cc1ac938510cb967fd2c9
[ "BSD-3-Clause" ]
94
2015-02-04T08:35:56.000Z
2021-10-03T12:40:35.000Z
#! /usr/bin/env python # Copyright (c) 2014 KU Leuven, ESAT-STADIUS # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notic...
36.852459
144
0.631821
806
6,744
5.203474
0.387097
0.01073
0.017167
0.010968
0.133047
0.121602
0.101097
0.076776
0.076776
0.076776
0
0.008307
0.286032
6,744
182
145
37.054945
0.862721
0.375297
0
0.164948
0
0
0.159567
0
0
0
0
0
0
1
0.082474
false
0
0.164948
0.041237
0.329897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e555ee7266bd7c5e0f103c5c42eba12b36c67d
622
py
Python
DailyCoding/11.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
46
2019-10-14T01:21:35.000Z
2022-01-08T23:55:15.000Z
DailyCoding/11.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
53
2019-10-03T17:16:43.000Z
2020-12-08T12:48:19.000Z
DailyCoding/11.py
jason71319jason/Interview-solved
42ca93a68475952753d185c325cb55c79e2e55e1
[ "MIT" ]
96
2019-10-03T18:12:10.000Z
2021-03-14T19:41:06.000Z
""" This problem was asked by Twitter. Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, return all strings in the set that have s as a prefix. For example, given the query string de and the set of strings [dog, deer, deal], return [deer, deal]. Hint: Try prep...
28.272727
161
0.705788
96
622
4.552083
0.583333
0.05492
0.050343
0
0
0
0
0
0
0
0
0
0.210611
622
22
162
28.272727
0.89002
0.639871
0
0
0
0
0.060465
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
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
0
0
0
0
0
0
0
0
1
0
95e79ef92334e9854cdc295c02dc16e232f812ed
4,974
py
Python
pyblnet/blnet_parser.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
3
2019-03-11T12:38:43.000Z
2022-02-18T21:40:54.000Z
pyblnet/blnet_parser.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
26
2018-10-15T10:57:21.000Z
2021-03-23T18:35:06.000Z
pyblnet/blnet_parser.py
henfri/pyblnet
0a3a59ea39ab569d4b59be5a918736dc238bcf13
[ "MIT" ]
7
2018-10-03T09:39:30.000Z
2020-03-12T19:44:44.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on 09.08.2018 This is basically a python port of of a script by berwinter https://github.com/berwinter/uvr1611/blob/master/lib/backend/blnet-connection.inc.php author: Niels """ import struct from datetime import datetime # Parser constant # 1 bit DIGITAL_ON ...
29.784431
85
0.559912
581
4,974
4.640275
0.299484
0.031157
0.040059
0.031528
0.148739
0.057864
0.057864
0
0
0
0
0.051432
0.347205
4,974
166
86
29.963855
0.778873
0.183957
0
0.137255
0
0
0.008105
0
0
0
0.025359
0
0
1
0.078431
false
0
0.019608
0
0.264706
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95e8a73a4c141ad9d18c2ea514ffb13b8b700b03
3,568
py
Python
app/routers/nodes.py
yamatteo/vue-fastapi-boilerplate
5fa3de29a6e7ec4a8df9b3a4073f462307f62cb6
[ "MIT" ]
2
2020-03-11T02:58:44.000Z
2020-03-27T16:00:25.000Z
app/routers/nodes.py
yamatteo/vue-fastapi-boilerplate
5fa3de29a6e7ec4a8df9b3a4073f462307f62cb6
[ "MIT" ]
7
2021-03-10T07:59:29.000Z
2022-02-26T23:46:17.000Z
app/routers/nodes.py
yamatteo/vue-fastapi-boilerplate
5fa3de29a6e7ec4a8df9b3a4073f462307f62cb6
[ "MIT" ]
1
2020-03-11T02:58:48.000Z
2020-03-11T02:58:48.000Z
from typing import Optional from typing import List from fastapi import APIRouter, Depends, Body from models import User, Content, Node, Group, ExternalContent from routers import get_current_user, admin_only from schemas import NodeAdd, NodeEdit, NodeFind # router = APIRouter() @router.post("/push_content") async...
37.166667
121
0.690583
492
3,568
4.810976
0.148374
0.037178
0.060837
0.047317
0.606675
0.558513
0.454584
0.400507
0.363329
0.363329
0
0
0.169843
3,568
95
122
37.557895
0.799122
0
0
0.338028
0
0
0.060835
0.012335
0
0
0
0
0.056338
1
0
false
0
0.084507
0
0.225352
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ea2d544465e77e80dcc38902724b81ddc4c5b9
2,427
py
Python
Algebra/vector.py
jonasjungaker/VectorsAlgebra
1b064b4328b7eb6a3c7a1c50b29e6df042309ca5
[ "MIT" ]
null
null
null
Algebra/vector.py
jonasjungaker/VectorsAlgebra
1b064b4328b7eb6a3c7a1c50b29e6df042309ca5
[ "MIT" ]
null
null
null
Algebra/vector.py
jonasjungaker/VectorsAlgebra
1b064b4328b7eb6a3c7a1c50b29e6df042309ca5
[ "MIT" ]
null
null
null
class vector: def __init__(self, *vals): self.x = list(vals) for val in vals: float(val) self.dimension = len(self.x) def __getitem__(self, key): return self.x[key] def __setitem__(self, key, value): self.x[key] = value return self ...
29.240964
87
0.510507
292
2,427
4.082192
0.232877
0.098154
0.030201
0.055369
0.399329
0.286913
0.14094
0
0
0
0
0.015852
0.376185
2,427
82
88
29.597561
0.771466
0.046148
0
0.223881
0
0
0.024664
0
0
0
0
0
0
1
0.19403
false
0
0
0.044776
0.432836
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ed4a727fcf9707dcfd7fa3fc1e4e7848fbb44c
992
py
Python
neodroidagent/common/session_factory/vertical/procedures/training/sampling/rollout.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
8
2017-09-13T08:28:44.000Z
2022-01-21T15:59:19.000Z
neodroidagent/common/session_factory/vertical/procedures/training/sampling/rollout.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
4
2019-03-22T13:49:16.000Z
2019-03-25T13:49:39.000Z
neodroidagent/common/session_factory/vertical/procedures/training/sampling/rollout.py
gitter-badger/agent
3f53eaa7ebdee3ab423c7b58785d584fe1a6ae11
[ "Apache-2.0" ]
3
2017-09-13T08:31:38.000Z
2021-11-09T11:22:27.000Z
from itertools import count from tqdm import tqdm from neodroid.environments.droid_environment import VectorUnityEnvironment def run(self, environment: VectorUnityEnvironment, render: bool = True) -> None: state = environment.reset().observables F = count(1) F = tqdm(F, leave=False, disable=not render)...
26.810811
82
0.626008
117
992
5.230769
0.401709
0.029412
0.068627
0.104575
0
0
0
0
0
0
0
0.004155
0.272177
992
36
83
27.555556
0.84349
0
0
0.083333
0
0
0.034274
0
0
0
0
0
0
1
0.083333
false
0
0.125
0
0.208333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95eef20a68a045c35b991c4b9eef565e70a03766
17,995
py
Python
sysevr/slicer/mapping.py
Saleh-Ibtasham/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
1
2021-04-12T12:59:33.000Z
2021-04-12T12:59:33.000Z
sysevr/slicer/mapping.py
Jokers-grin/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
sysevr/slicer/mapping.py
Jokers-grin/VulScrape
738d17e9dd7e5edc2341d106361651fd28f99c61
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import copy import os import string import xlrd import pickle from .get_tokens import * keywords_0 = ('auto', 'typedf', 'const', 'extern', 'register', 'static', 'volatile', 'continue', 'break', 'default', 'return', 'goto', 'else', 'case') keywords_1 = ('catch', 'sizeof...
38.866091
160
0.373159
1,759
17,995
3.681069
0.152359
0.087104
0.047876
0.069498
0.537297
0.503475
0.478919
0.462857
0.438147
0.425328
0
0.033092
0.492859
17,995
462
161
38.950216
0.676419
0.020228
0
0.581267
0
0.00551
0.103162
0.014137
0
0
0
0
0
1
0.016529
false
0.002755
0.019284
0
0.068871
0.008264
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ef71f8c3f9102a164ab9d3fc0c343aa7cbaaa5
7,035
py
Python
lib/datasets/vrd/to_pascal_format.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
2
2019-04-21T01:45:01.000Z
2020-03-11T07:09:18.000Z
lib/datasets/vrd/to_pascal_format.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
null
null
null
lib/datasets/vrd/to_pascal_format.py
sx14/open-relation.pytorch
3fe52a0c6129a80abbc84df53903d13b7dea05d6
[ "MIT" ]
null
null
null
import os import shutil import xml.dom.minidom def output_pascal_format(mid_data, output_path): # mid_data: # filename # width # height # depth # objects # -- xmin # -- ymin # -- xmax # -- ymax # -- name # -- pose # -- truncated # -- difficult ...
45.980392
87
0.729495
930
7,035
5.055914
0.093548
0.062527
0.089962
0.071884
0.529562
0.31795
0.175883
0.034879
0
0
0
0.004804
0.171429
7,035
153
88
45.980392
0.801853
0.04037
0
0
0
0
0.074085
0
0
0
0
0
0
1
0.008197
false
0
0.02459
0
0.032787
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95f03d2ec095743360ac14d2a11b057617f86d87
4,880
py
Python
stellar/cognition/planning.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
stellar/cognition/planning.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
stellar/cognition/planning.py
strfx/stellar
41b190eed016d2d6ad8548490a0c9620a02d711e
[ "MIT" ]
null
null
null
""" Contains path planning logic. """ import math import numpy as np from heapq import heappush, heappop def heuristics(a, b): """Heuristics function using the Euclidian Distance.""" weight = 1.0 x1, y1 = a x2, y2 = b distance = np.sqrt(np.square(x2-x1) + np.square(y2-y1)) # distance = math....
28.87574
92
0.527664
582
4,880
4.269759
0.297251
0.012072
0.015694
0.017706
0.129577
0.075654
0.075654
0.051509
0.005634
0.005634
0
0.030093
0.380328
4,880
168
93
29.047619
0.791667
0.182992
0
0.072165
0
0
0.006724
0
0
0
0
0.005952
0
1
0.061856
false
0.010309
0.041237
0.010309
0.164948
0.010309
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95f29beeb0a5add129f6eb5d02625efa724d1d4e
699
py
Python
core/migrations/0008_auto_20151203_1519.py
rafaelbantu/timtec
86c51b7440a044704ed33c3e752a6cf6b15ceae3
[ "BSD-3-Clause" ]
21
2015-09-23T14:07:16.000Z
2022-02-18T01:35:18.000Z
core/migrations/0008_auto_20151203_1519.py
rafaelbantu/timtec
86c51b7440a044704ed33c3e752a6cf6b15ceae3
[ "BSD-3-Clause" ]
178
2016-05-10T16:16:19.000Z
2021-12-15T20:21:21.000Z
core/migrations/0008_auto_20151203_1519.py
rafaelbantu/timtec
86c51b7440a044704ed33c3e752a6cf6b15ceae3
[ "BSD-3-Clause" ]
18
2015-10-23T13:28:17.000Z
2021-09-22T13:08:28.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20151202_1434'), ] operations = [ migrations.AddField( model_name='certificationprocess', ...
27.96
132
0.635193
62
699
6.935484
0.66129
0.04186
0.134884
0.153488
0
0
0
0
0
0
0
0.032319
0.247496
699
24
133
29.125
0.785171
0.030043
0
0.222222
0
0
0.211538
0.069527
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95f38c9fc1b89ab08b48f547bb8603c9adde90bb
628
py
Python
hipshare/lib/util.py
erg0dic/hipshare
993f0edee7e9156b7154d578ef6a4e50cfcdd632
[ "BSD-2-Clause" ]
1
2015-11-03T19:33:44.000Z
2015-11-03T19:33:44.000Z
hipshare/lib/util.py
erg0dic/hipshare
993f0edee7e9156b7154d578ef6a4e50cfcdd632
[ "BSD-2-Clause" ]
1
2015-11-03T19:35:19.000Z
2015-11-03T19:35:19.000Z
hipshare/lib/util.py
erg0dic/hipshare
993f0edee7e9156b7154d578ef6a4e50cfcdd632
[ "BSD-2-Clause" ]
null
null
null
import json import logging import sys log = logging.getLogger(__name__) def die(s): log.error(s) sys.exit(-1) def load_json(path): try: fp = open(path) except OSError as err: die("Could not open {}: {}".format(path, str(err))) try: value = json.load(fp) except ValueEr...
17.942857
60
0.598726
93
628
3.956989
0.473118
0.043478
0.043478
0.086957
0
0
0
0
0
0
0
0.004274
0.254777
628
34
61
18.470588
0.782051
0
0
0.153846
0
0
0.109873
0
0
0
0
0
0
1
0.192308
false
0
0.115385
0.038462
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95f8d504586e0cc5968ca2a0c621d00c07ae2c40
2,078
py
Python
p2_mahjong/utils.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
p2_mahjong/utils.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
p2_mahjong/utils.py
yata0/Mahjong
764cd607df715b879f3f8a54b6def55e0b7d4706
[ "MIT" ]
null
null
null
# coding=utf-8 import sys import numpy as np from p2_mahjong.card import MahjongCard as Card log_head = "utils.py" CARD_USED_TYPE = ['characters', 'green', 'red', 'white', 'east', 'west', 'north', 'south', 'spring', 'summer', 'autumn', 'winter', 'mei', 'lan', 'zhu', 'ju'] card_encoding_dict = {} card...
29.685714
90
0.590472
295
2,078
3.854237
0.267797
0.121372
0.055409
0.087951
0.420405
0.407212
0.359719
0.332454
0.332454
0.263852
0
0.016894
0.259384
2,078
69
91
30.115942
0.721897
0.005775
0
0.254237
0
0
0.112512
0
0
0
0
0
0
1
0.016949
false
0
0.050847
0
0.084746
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95fa5390eed432169e5e44214698604b6c85fcde
1,062
py
Python
Chapter 01/int_sqrt.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
1
2021-05-14T19:53:41.000Z
2021-05-14T19:53:41.000Z
Chapter 01/int_sqrt.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
null
null
null
Chapter 01/int_sqrt.py
bpbpublications/Python-Quick-Interview-Guide
ab4ff3e670b116a4db6b9e1f0ccba8424640704d
[ "MIT" ]
null
null
null
class Solution: def mySqrt(self, x: int) -> int: # Base cases if (x == 0 or x == 1): return x # Staring from 1, try all numbers until # i*i remains less than to x. i = 1 while (i*i < x):i += 1 return i if i*i == x else i-1 ''' cla...
24.136364
62
0.415254
147
1,062
3
0.340136
0.056689
0.054422
0.099773
0.231293
0.231293
0.108844
0.108844
0.108844
0.108844
0
0.035971
0.47646
1,062
43
63
24.697674
0.757194
0.073446
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
95ff75475d347ef322808cfa526e253df07b5f81
13,517
py
Python
meg_runtime/ui/manager.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
null
null
null
meg_runtime/ui/manager.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
5
2020-03-24T19:59:38.000Z
2020-04-22T03:44:43.000Z
meg_runtime/ui/manager.py
MultimediaExtensibleGit/Runtime
ba2e469666163177034e44077b02378dfc6649c9
[ "MIT" ]
2
2020-03-13T18:35:46.000Z
2020-04-11T20:19:20.000Z
"""MEG UI Manager """ import pkg_resources from PyQt5 import QtCore, QtWidgets, QtGui, uic from meg_runtime.config import Config from meg_runtime.logger import Logger from meg_runtime.app import App class UIManager(QtWidgets.QMainWindow): """Main UI manager for the MEG system.""" UI_FILE = 'mainwindow.ui' ...
41.719136
134
0.600059
1,580
13,517
4.982278
0.13481
0.030488
0.021723
0.019563
0.322282
0.231453
0.19563
0.179497
0.167175
0.134909
0
0.001739
0.319154
13,517
323
135
41.848297
0.853635
0.203226
0
0.3125
0
0
0.042354
0.001981
0
0
0
0.003096
0
1
0.081731
false
0
0.024038
0
0.173077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2501aa9e0452052b19ad9fe91a29c5a969b9d03e
1,935
py
Python
release/davis16/evaluate.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
70
2019-09-16T17:55:55.000Z
2022-03-07T00:26:53.000Z
release/davis16/evaluate.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
9
2019-09-30T09:15:11.000Z
2021-07-21T11:33:13.000Z
release/davis16/evaluate.py
MSiam/segment-any-moving
82cb782867d866d2f4eb68230edb75f613e15a02
[ "Apache-2.0" ]
5
2019-09-25T05:14:37.000Z
2021-07-08T20:13:47.000Z
import argparse import logging import yaml from pathlib import Path from script_utils.common import common_setup from release.davis16.compute_flow import link_splits from release.helpers.misc import msg, subprocess_call def check_tracks(track_output, splits): for split in splits: np_dir = track_output /...
31.209677
74
0.632041
230
1,935
5.108696
0.452174
0.065532
0.017021
0.030638
0.057872
0.057872
0.057872
0
0
0
0
0.008862
0.24186
1,935
61
75
31.721311
0.792093
0.031525
0
0
0
0
0.198718
0.037927
0
0
0
0
0
1
0.066667
false
0
0.155556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2503cb791f9ad674e778396da993788db1fa44bb
4,712
py
Python
qq/mention.py
foxwhite25/qq.py
92e744205e57b4c8922aa5843095ae900b3c1d84
[ "MIT" ]
40
2021-12-07T02:18:14.000Z
2022-03-28T13:14:16.000Z
qq/mention.py
foxwhite25/qq.py
92e744205e57b4c8922aa5843095ae900b3c1d84
[ "MIT" ]
2
2021-12-12T17:34:29.000Z
2021-12-17T04:43:03.000Z
qq/mention.py
foxwhite25/qq.py
92e744205e57b4c8922aa5843095ae900b3c1d84
[ "MIT" ]
5
2021-12-10T11:17:41.000Z
2022-03-05T13:53:50.000Z
# The MIT License (MIT) # Copyright (c) 2021-present foxwhite25 # # 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, ...
35.164179
102
0.655136
578
4,712
5.233564
0.3391
0.061818
0.019835
0.023802
0.044298
0.029091
0
0
0
0
0
0.001674
0.239389
4,712
133
103
35.428571
0.842355
0.423599
0
0.030303
0
0
0.089832
0.03211
0
0
0
0
0
1
0.136364
false
0
0.075758
0.060606
0.378788
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
250a44eb50bdd484b59b76e217165e7deeb8a326
9,686
py
Python
utils/iwr6843_utils/parse_tlv.py
ApocalyVec/mGesf
21e0bf37a9d11a3cdde86a8d54e2f6c6a2211ab5
[ "MIT" ]
18
2020-06-02T11:21:47.000Z
2022-03-25T08:16:57.000Z
utils/iwr6843_utils/parse_tlv.py
ApocalyVec/mGesf
21e0bf37a9d11a3cdde86a8d54e2f6c6a2211ab5
[ "MIT" ]
4
2020-06-20T13:53:44.000Z
2021-09-11T22:58:21.000Z
utils/iwr6843_utils/parse_tlv.py
ApocalyVec/mGesf
21e0bf37a9d11a3cdde86a8d54e2f6c6a2211ab5
[ "MIT" ]
6
2020-04-23T21:30:17.000Z
2021-08-03T19:59:12.000Z
import struct import sys import math import numpy as np # # TODO 1: (NOW FIXED) Find the first occurrence of magic and start from there # TODO 2: Warn if we cannot parse a specific section and try to recover # TODO 3: Remove error at end of file if we have only fragment of TLV # def tlvHeaderDecode(data): tlvT...
39.056452
120
0.58218
1,171
9,686
4.708796
0.266439
0.035909
0.010881
0.015959
0.204933
0.14436
0.094305
0.081973
0.081973
0.081973
0
0.025237
0.312719
9,686
247
121
39.214575
0.803064
0.287735
0
0.134752
0
0
0.04371
0.01778
0
0
0
0.008097
0
1
0.070922
false
0.049645
0.028369
0.007092
0.198582
0.035461
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
250eb809dd09ad7a9b6aa51c271e231f078546da
1,772
py
Python
bunq/sdk/util/util.py
mwiekens/sdk_python
9333636083bc63dca4353e8f497588f57617efec
[ "MIT" ]
null
null
null
bunq/sdk/util/util.py
mwiekens/sdk_python
9333636083bc63dca4353e8f497588f57617efec
[ "MIT" ]
null
null
null
bunq/sdk/util/util.py
mwiekens/sdk_python
9333636083bc63dca4353e8f497588f57617efec
[ "MIT" ]
null
null
null
from __future__ import annotations import json import socket import requests from bunq.sdk.context.api_context import ApiContext, ApiEnvironmentType from bunq.sdk.exception.bunq_exception import BunqException from bunq.sdk.http.api_client import ApiClient from bunq.sdk.model.generated import endpoint from bunq.sdk.m...
34.076923
79
0.744921
205
1,772
5.980488
0.356098
0.089723
0.044861
0.041599
0.117455
0.076672
0.053834
0
0
0
0
0.000696
0.189052
1,772
51
80
34.745098
0.85247
0
0
0
0
0
0.046275
0.012415
0
0
0
0
0
1
0.054054
false
0
0.243243
0
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2511753f88ea48953fbf7d9fff0197ffc5356c2e
752
py
Python
students/models/exams.py
samitnuk/studentsdb
659c82f7bdc0d6a14074da14252384b9443e286c
[ "MIT" ]
null
null
null
students/models/exams.py
samitnuk/studentsdb
659c82f7bdc0d6a14074da14252384b9443e286c
[ "MIT" ]
null
null
null
students/models/exams.py
samitnuk/studentsdb
659c82f7bdc0d6a14074da14252384b9443e286c
[ "MIT" ]
null
null
null
from django.db import models class Exam(models.Model): """Exam Model""" class Meta(object): verbose_name = 'Іспит' verbose_name_plural = 'Іспити' title = models.CharField( max_length=256, blank=False, verbose_name='Назва предмету') datetime = models.DateTimeF...
22.117647
60
0.599734
83
752
5.253012
0.566265
0.151376
0.116972
0.144495
0.220183
0.220183
0.220183
0.220183
0.220183
0
0
0.011257
0.291223
752
33
61
22.787879
0.806754
0.013298
0
0.25
0
0
0.112772
0
0
0
0
0
0
1
0.041667
false
0
0.041667
0.041667
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25132e1264d30cca913fe293f3805c8d79177d9b
2,201
py
Python
club_crm/api/clubtour.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/clubtour.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
club_crm/api/clubtour.py
VivekChamp/clubcrm
82036360d867d3dc5406bc71445a98841b5bffbf
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import frappe from frappe import _ from datetime import datetime, timedelta, date, time from frappe.utils import getdate, get_time, flt, now_datetime from frappe.utils import escape_html from frappe import throw, msgprint, _ @frappe.whitelist() def get_schedule(): time_sched...
33.348485
116
0.606997
265
2,201
4.818868
0.260377
0.050117
0.031323
0.042287
0.278778
0.234926
0.234926
0.170713
0.170713
0.170713
0
0.005471
0.252612
2,201
65
117
33.861538
0.770821
0
0
0.258621
0
0
0.17174
0.009995
0
0
0
0
0
1
0.051724
false
0
0.12069
0
0.172414
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2513a6b22c946cb8b820c0695cdd317c638f6bf0
647
py
Python
goalboost/model/__init__.py
JohnLockwood/Goalboost
1556a15f766ab762243e5d198b00ee7239b20411
[ "RSA-MD" ]
null
null
null
goalboost/model/__init__.py
JohnLockwood/Goalboost
1556a15f766ab762243e5d198b00ee7239b20411
[ "RSA-MD" ]
10
2021-07-30T14:39:05.000Z
2021-07-30T14:39:07.000Z
goalboost/model/__init__.py
JohnLockwood/Goalboost
1556a15f766ab762243e5d198b00ee7239b20411
[ "RSA-MD" ]
null
null
null
''' goalboost.model package The goalboost model package consists of MongoEngine models along with Marshmallow schemas. MongoEngine is our database ORM to MongoDB, and Marshmallow is a serialization library that helps us validate, consume, and expose these Orm objects for clients that need it at the API layer. For Mon...
26.958333
75
0.789799
91
647
5.593407
0.637363
0.05501
0.082515
0
0
0
0
0
0
0
0
0
0.139104
647
23
76
28.130435
0.913824
0.795981
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2513a8a764760e74306e494219df1291ea86952f
3,290
py
Python
examples/block_store/snapshots.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/block_store/snapshots.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/block_store/snapshots.py
IamFive/sdk-python
223b04f90477f7de0f00b3e652d8672ba73271c8
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2018 Huawei Technologies Co.,Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy of the # License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
29.115044
89
0.614286
362
3,290
5.375691
0.312155
0.12333
0.071942
0.08222
0.452724
0.358171
0.29702
0.224049
0.213772
0.213772
0
0.021313
0.28693
3,290
112
90
29.375
0.808184
0.171733
0
0.367089
0
0
0.116519
0.013274
0
0
0
0
0
1
0.126582
false
0
0.012658
0
0.139241
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2515ebed6d44cdb6e775f2b149da71a36b8ce3fa
6,270
py
Python
lambda_upload.py
elbursto/aws_lambda_upload
62215a1efd7037cad2d099489c16fab905ccf2d3
[ "Apache-2.0" ]
null
null
null
lambda_upload.py
elbursto/aws_lambda_upload
62215a1efd7037cad2d099489c16fab905ccf2d3
[ "Apache-2.0" ]
null
null
null
lambda_upload.py
elbursto/aws_lambda_upload
62215a1efd7037cad2d099489c16fab905ccf2d3
[ "Apache-2.0" ]
null
null
null
import boto3 from zipfile import ZipFile import argparse import json import os import shutil class LambdaMaker(object): def __init__(self, config_file, working_dir): # const vars self.creator='TomLambdaCreator_v1.0.0' os.chdir(working_dir) self.process_config_file(config_file) ...
33
79
0.601435
672
6,270
5.49256
0.258929
0.074776
0.017339
0.019507
0.072067
0.023842
0
0
0
0
0
0.007583
0.284848
6,270
189
80
33.174603
0.815566
0.081978
0
0.070423
0
0
0.111402
0.00401
0
0
0
0
0
1
0.077465
false
0
0.042254
0
0.126761
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
0
0
0
0
0
1
0
25166ab3132cfb837c187df9b62bcf91450b7109
6,260
py
Python
official/vision/image_classification/callbacks.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
null
null
null
official/vision/image_classification/callbacks.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
3
2020-08-12T06:16:40.000Z
2020-08-17T05:44:26.000Z
official/vision/image_classification/callbacks.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
1
2020-08-04T01:56:03.000Z
2020-08-04T01:56:03.000Z
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
36.184971
103
0.684824
786
6,260
5.21374
0.315522
0.04124
0.035139
0.016105
0.127867
0.0898
0.015617
0
0
0
0
0.007137
0.216613
6,260
172
104
36.395349
0.828507
0.216454
0
0.063063
0
0
0.022291
0.004541
0
0
0
0.005814
0
1
0.063063
false
0
0.117117
0
0.225225
0.009009
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2519a94caf6b2f931b487b3397703da9ddf2b842
885
py
Python
EDyA_II/4_tree/python/4_default_parameter.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
EDyA_II/4_tree/python/4_default_parameter.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
EDyA_II/4_tree/python/4_default_parameter.py
jrg-sln/academy
498c11dcfeab78dbbbb77045a13d7d6675c0d150
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Saucer(object): """ Representa un plato de comida. """ def __init__(self, cadNombre, realPrecio, cadDescription=None, cadImagen=None, boolVegetariano=False, entCoccion=1): self.nombre = cadNombre self.precio = realPrecio self.des...
34.038462
75
0.59661
86
885
6.046512
0.569767
0.086538
0
0
0
0
0
0
0
0
0
0.009509
0.287006
885
26
76
34.038462
0.81458
0.059887
0
0
0
0
0.104039
0
0
0
0
0
0
1
0.111111
false
0
0
0.055556
0.222222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2519e01a81d1d3e2c4f4e4fede4c19c82e764391
9,768
py
Python
model/bdrar.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
2
2019-01-10T03:44:03.000Z
2019-05-24T08:50:14.000Z
model/bdrar.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
model/bdrar.py
Mhaiyang/iccv
04a8ee52c2323d7ff5cdf03c0be1466e8180d2eb
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn from resnext.resnext101_regular import ResNeXt101 class _AttentionModule(nn.Module): def __init__(self): super(_AttentionModule, self).__init__() self.block1 = nn.Sequential( nn.Conv2d(64, 64, 1, bias=False), nn.BatchNo...
51.141361
135
0.619676
1,427
9,768
4.056762
0.06377
0.04975
0.064605
0.129211
0.617205
0.575056
0.507342
0.429608
0.373121
0.373121
0
0.098968
0.226249
9,768
190
136
51.410526
0.666975
0.011159
0
0.180124
0
0
0.013257
0
0
0
0
0
0
1
0.024845
false
0
0.024845
0
0.080745
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
251a755eafd6983caca29826a579cc38212144dd
7,413
py
Python
pgeng/font.py
Bouncehball/pgeng
6f88991e16cfd744c8565b68b6348f313b4d75c0
[ "MIT" ]
null
null
null
pgeng/font.py
Bouncehball/pgeng
6f88991e16cfd744c8565b68b6348f313b4d75c0
[ "MIT" ]
null
null
null
pgeng/font.py
Bouncehball/pgeng
6f88991e16cfd744c8565b68b6348f313b4d75c0
[ "MIT" ]
null
null
null
'Classes and functions for creating fonts and text buttons' #IMPORTS import pygame from pathlib import Path from .core import clip_surface, load_image from .colour import palette_swap #IMPORTS #VARIALBES __all__ = ['create_font', 'TextButton'] path = Path(__file__).resolve().parent #VARIABLES #CREATE_FON...
37.439394
356
0.673816
1,139
7,413
4.225637
0.170325
0.041139
0.018907
0.030542
0.323914
0.288386
0.288386
0.275504
0.250987
0.250987
0
0.029494
0.181303
7,413
198
357
37.439394
0.763552
0.288008
0
0.23
0
0.03
0.117191
0.007761
0
0
0
0
0
1
0.11
false
0
0.04
0
0.27
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
251ac80cf768d166a984daeae7c4d2c5d7422487
1,814
py
Python
pyguetzli/pil_image.py
wanadev/pyguetzli
765cc89137e2f5fca80e5f894f4ec95c38995d96
[ "Apache-2.0" ]
28
2017-05-03T17:48:21.000Z
2022-02-14T13:40:24.000Z
pyguetzli/pil_image.py
wanadev/pyguetzli
765cc89137e2f5fca80e5f894f4ec95c38995d96
[ "Apache-2.0" ]
6
2017-08-21T07:52:18.000Z
2020-07-17T16:41:44.000Z
pyguetzli/pil_image.py
wanadev/pyguetzli
765cc89137e2f5fca80e5f894f4ec95c38995d96
[ "Apache-2.0" ]
3
2018-03-13T23:33:10.000Z
2021-09-09T02:33:07.000Z
""" This modules contain helper function to deal with PIL / Pillow Images. .. note:: Please note that the ``[PIL]`` (pillow) extra dependency must be installed to allow functions from this module to work. """ from . import guetzli def _to_pil_rgb_image(image): """Returns an PIL Image converted to the R...
26.676471
79
0.656009
254
1,814
4.582677
0.370079
0.085911
0.033505
0.022337
0.304124
0.233677
0.233677
0.161512
0.161512
0.161512
0
0.012602
0.25634
1,814
67
80
27.074627
0.850259
0.588754
0
0
0
0
0.015291
0
0
0
0.018349
0
0
1
0.1
false
0
0.1
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
251cba64cfe05ed7cdba8439be4d154984b803ea
12,053
py
Python
src/dip_main.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
src/dip_main.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
src/dip_main.py
BardiaMojra/dip
201bd14c13052b81967e051444f4e5c08c72631a
[ "MIT" ]
null
null
null
''' dip @author Bardia Mojra - 1000766739 @brief ee-5323 - project - @date 10/31/21 code based on below YouTube tutorial and Pymotw.com documentation for socket mod. @link https://www.youtube.com/watch?v=3QiPPX-KeSc @link https://pymotw.com/2/socket/tcp.html python socket module documentation @link ht...
31.064433
118
0.652867
1,937
12,053
3.867321
0.206505
0.012014
0.018022
0.018155
0.34428
0.28087
0.254172
0.240822
0.213056
0.204779
0
0.064702
0.208828
12,053
387
119
31.144703
0.720847
0.207085
0
0.213178
0
0.011628
0.064751
0.02069
0
0
0
0
0
1
0.031008
false
0
0.05814
0
0.089147
0.015504
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
251d295ac1daf4f6c0aa7d07697c6e03ea7c9186
1,128
py
Python
generator/apigen/CommandParser.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
1
2017-05-26T00:18:26.000Z
2017-05-26T00:18:26.000Z
generator/apigen/CommandParser.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
generator/apigen/CommandParser.py
grbd/GBD.Build.BlackJack
3e8d027625b7528af3674a373fd9931e3feaaab4
[ "Apache-2.0" ]
null
null
null
""" A Command parser to parse over each jinja template for a given cmake command """ import os from apigen.Logger import Logger from jinja2 import Environment, PackageLoader, FileSystemLoader class CommandParser(object): def __init__(self, cmdfile: str, env: Environment, outdir: str): super().__init__() ...
31.333333
76
0.675532
133
1,128
5.488722
0.503759
0.123288
0
0
0
0
0
0
0
0
0
0.002323
0.236702
1,128
35
77
32.228571
0.845528
0.16844
0
0
0
0
0.016181
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2521a1ac6de3b8964ba83ce10e729714793f678d
2,578
py
Python
cineapp/push.py
ptitoliv/cineapp
4b6a8c68144436c5497353135a013ea783cfd224
[ "MIT" ]
2
2016-12-02T02:29:01.000Z
2019-03-03T15:48:50.000Z
cineapp/push.py
ptitoliv/cineapp
4b6a8c68144436c5497353135a013ea783cfd224
[ "MIT" ]
128
2016-05-22T21:44:20.000Z
2022-03-11T23:14:18.000Z
cineapp/push.py
ptitoliv/cineapp
4b6a8c68144436c5497353135a013ea783cfd224
[ "MIT" ]
1
2017-08-20T14:14:52.000Z
2017-08-20T14:14:52.000Z
from __future__ import print_function from cineapp import app, db, lm from flask_login import login_required from flask import jsonify, session, g, url_for, request from pywebpush import webpush, WebPushException from cineapp.models import PushNotification import json, traceback, sys, datetime, time from cineapp.auth i...
39.060606
202
0.747867
350
2,578
5.382857
0.397143
0.033439
0.027601
0.02707
0.139066
0.139066
0.139066
0.139066
0.098726
0
0
0.002236
0.132661
2,578
65
203
39.661538
0.84034
0.069822
0
0.137255
0
0
0.255328
0.02967
0
0
0
0
0
1
0.058824
false
0
0.156863
0
0.294118
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25249f6ffc68bd327fd5d0540e42e061ccc8880f
4,577
py
Python
Codes/trreemap.py
Pepeisadog/Project
49d77b1590723f87111a0e3a64bd94fa4bb65986
[ "Unlicense" ]
null
null
null
Codes/trreemap.py
Pepeisadog/Project
49d77b1590723f87111a0e3a64bd94fa4bb65986
[ "Unlicense" ]
3
2015-01-12T09:33:30.000Z
2015-01-29T22:56:47.000Z
Codes/trreemap.py
Pepeisadog/Project
49d77b1590723f87111a0e3a64bd94fa4bb65986
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 25 15:48:52 2015 @author: Sofia """ import csv import json import os sourceEncoding = "iso-8859-1" targetEncoding = "utf-8" # encode files to utf8 (source: http://stackoverflow.com/questions/191359/how-to-convert-a-file-to-utf-8-in-python) csvfile = open('..\Data\AMFI....
31.136054
125
0.622023
560
4,577
4.941071
0.228571
0.043368
0.020239
0.023853
0.284785
0.226961
0.179256
0.151428
0.151428
0.151428
0
0.015402
0.219795
4,577
146
126
31.349315
0.759451
0.095259
0
0.132653
0
0
0.16861
0.055637
0
0
0
0
0
1
0
false
0
0.030612
0
0.030612
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2526119172205dbcc83b912e56e47b1cfd9d139b
3,751
py
Python
test_haystack/whoosh_tests/test_whoosh_management_commands.py
cbows/django-haystack
80c154b7b11fdcf99dd2ef0e82342ed13e26053a
[ "BSD-3-Clause" ]
2,021
2015-02-06T07:45:08.000Z
2022-03-30T12:26:39.000Z
test_haystack/whoosh_tests/test_whoosh_management_commands.py
cbows/django-haystack
80c154b7b11fdcf99dd2ef0e82342ed13e26053a
[ "BSD-3-Clause" ]
787
2015-02-03T20:06:04.000Z
2022-03-30T09:00:38.000Z
test_haystack/whoosh_tests/test_whoosh_management_commands.py
cbows/django-haystack
80c154b7b11fdcf99dd2ef0e82342ed13e26053a
[ "BSD-3-Clause" ]
878
2015-02-04T15:29:50.000Z
2022-03-28T16:51:44.000Z
import datetime import os import unittest from io import StringIO from tempfile import mkdtemp from unittest.mock import patch from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.management import call_command as real_call_command from django.core.management.base i...
33.491071
84
0.691816
454
3,751
5.517621
0.292952
0.061477
0.074651
0.071856
0.351697
0.33014
0.312974
0.291816
0.272655
0.253094
0
0.009109
0.209811
3,751
111
85
33.792793
0.83502
0.039989
0
0.2625
0
0
0.050654
0
0
0
0
0
0.0375
1
0.1
false
0
0.2125
0
0.3375
0.0125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25282fa8805725b2acc31f9c959840083384e1e2
2,977
py
Python
src/server.py
tyler-fishbone/http_server
93a49090d356b31522acd5bc3a25a1c8a3b604e3
[ "MIT" ]
null
null
null
src/server.py
tyler-fishbone/http_server
93a49090d356b31522acd5bc3a25a1c8a3b604e3
[ "MIT" ]
null
null
null
src/server.py
tyler-fishbone/http_server
93a49090d356b31522acd5bc3a25a1c8a3b604e3
[ "MIT" ]
null
null
null
from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.parse import urlparse, parse_qs from cowpy import cow import json import sys class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): def do_GET(self): parsed_path = urlparse(self.path) parsed_qs = parse_qs(parsed_path.query) ...
26.114035
76
0.543164
318
2,977
4.915094
0.320755
0.051184
0.071657
0.080614
0.506718
0.414587
0.414587
0.395393
0.395393
0.336532
0
0.01998
0.344306
2,977
113
77
26.345133
0.780738
0.02217
0
0.431818
0
0
0.155487
0.01032
0
0
0
0
0
1
0.056818
false
0
0.056818
0.022727
0.215909
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2529f17c13ced51c4629d6195cff0d46c5800cac
7,033
py
Python
Chapter06/6B_TrendFollowings/6B_3_RunCNN.py
uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking
3a10a14194368478bb8b78d3d17e9c6a7b7253db
[ "MIT" ]
115
2020-06-18T15:00:58.000Z
2022-03-02T10:13:19.000Z
Chapter06/6B_TrendFollowings/6B_3_RunCNN.py
uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking
3a10a14194368478bb8b78d3d17e9c6a7b7253db
[ "MIT" ]
2
2020-11-06T11:02:31.000Z
2021-01-22T12:44:35.000Z
Chapter06/6B_TrendFollowings/6B_3_RunCNN.py
uyenphuong18406/Hands-On-Artificial-Intelligence-for-Banking
3a10a14194368478bb8b78d3d17e9c6a7b7253db
[ "MIT" ]
60
2020-07-22T14:53:10.000Z
2022-03-23T10:17:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Oct 30 00:58:34 2018 @author: jeff """ '''************************************* #1. Import libraries and key varable values ''' import os import quandl import pandas as pd import numpy as np import keras from PIL import Image #folder path folder_path =...
32.560185
187
0.624485
1,183
7,033
3.404903
0.215554
0.092105
0.079196
0.038729
0.377855
0.353029
0.303625
0.269861
0.269861
0.244538
0
0.032056
0.22821
7,033
215
188
32.711628
0.710022
0.158538
0
0.125926
0
0
0.070989
0
0
0
0
0
0
1
0.007407
false
0
0.044444
0
0.059259
0.081481
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
252ac1c22921db6597accc034da434758be4405a
2,589
py
Python
lichee/dataset/field_parser/image_local_path.py
Tencent/Lichee
7653becd6fbf8b0715f788af3c0507c012be08b4
[ "Apache-2.0" ]
91
2021-10-30T02:25:05.000Z
2022-03-28T06:51:52.000Z
lichee/dataset/field_parser/image_local_path.py
zhaijunyu/Lichee
7653becd6fbf8b0715f788af3c0507c012be08b4
[ "Apache-2.0" ]
1
2021-12-17T09:30:25.000Z
2022-03-05T12:30:13.000Z
lichee/dataset/field_parser/image_local_path.py
zhaijunyu/Lichee
7653becd6fbf8b0715f788af3c0507c012be08b4
[ "Apache-2.0" ]
17
2021-11-04T07:50:23.000Z
2022-03-24T14:24:11.000Z
# -*- coding: utf-8 -*- from lichee import plugin from .field_parser_base import BaseFieldParser import os from PIL import Image from torchvision import transforms import torch from lichee.utils import storage @plugin.register_plugin(plugin.PluginType.FIELD_PARSER, "image_local_path") class ImgDataFieldParser(BaseFie...
30.821429
117
0.611047
315
2,589
4.901587
0.374603
0.036269
0.027202
0.033679
0
0
0
0
0
0
0
0.014618
0.286597
2,589
83
118
31.192771
0.821332
0.288142
0
0.1
0
0
0.043929
0
0
0
0
0
0
1
0.125
false
0
0.175
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
252b421527774d5fb18e906562e999ce4cef4de4
2,054
py
Python
models/inception.py
ildoonet/kaggle-human-protein-atlas-image-classification
9faedaf6e480712492ccfb36c7bdf5e9f7db8b41
[ "Apache-2.0" ]
35
2019-01-11T00:55:19.000Z
2021-07-14T11:44:10.000Z
models/inception.py
ildoonet/kaggle-human-protein-atlas-image-classification
9faedaf6e480712492ccfb36c7bdf5e9f7db8b41
[ "Apache-2.0" ]
null
null
null
models/inception.py
ildoonet/kaggle-human-protein-atlas-image-classification
9faedaf6e480712492ccfb36c7bdf5e9f7db8b41
[ "Apache-2.0" ]
9
2019-01-11T01:42:14.000Z
2020-03-02T05:47:18.000Z
import torch from torch import nn import torch.nn.functional as F import torchvision from torchvision.models.inception import BasicConv2d, InceptionAux import pretrainedmodels from common import num_class class InceptionV3(nn.Module): def __init__(self, pre=True): super().__init__() self.encoder ...
36.035088
108
0.595424
275
2,054
4.309091
0.290909
0.10211
0.029536
0.047257
0.527426
0.490295
0.490295
0.490295
0.452321
0.452321
0
0.050196
0.253165
2,054
56
109
36.678571
0.722295
0.038462
0
0.347826
0
0
0.022819
0
0
0
0
0
0
1
0.086957
false
0.021739
0.152174
0
0.326087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
252f0a3cb8c24df7cf5db2bc1599071146727275
1,238
py
Python
Problem001.py
DimitrisMantas/ProjectEuler
69b647232729a2d2a38ea08d1214616a861046cf
[ "Apache-2.0" ]
null
null
null
Problem001.py
DimitrisMantas/ProjectEuler
69b647232729a2d2a38ea08d1214616a861046cf
[ "Apache-2.0" ]
null
null
null
Problem001.py
DimitrisMantas/ProjectEuler
69b647232729a2d2a38ea08d1214616a861046cf
[ "Apache-2.0" ]
null
null
null
"""This is the solution to Problem 1 of Project Euler.""" """Copyright 2021 Dimitris Mantas""" import time def compute_all_multiples(of_number, below_number): """Compute all natural numbers, which are multiples of a natural number below a predefined number.""" # Register the list of said multiple...
30.195122
109
0.673667
171
1,238
4.748538
0.450292
0.073892
0.116995
0.039409
0.081281
0.081281
0
0
0
0
0
0.026539
0.239095
1,238
40
110
30.95
0.835456
0.493538
0
0
0
0
0.088512
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.230769
0.230769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2533ae4893b1c779f4471ef4511dd0dbc0e4068c
3,701
py
Python
03_queue/queue_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
1
2021-08-13T10:55:33.000Z
2021-08-13T10:55:33.000Z
03_queue/queue_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
null
null
null
03_queue/queue_xrh.py
Xinrihui/Data-Structure-and-Algrithms
fa3a455f64878e42d033c1fd8d612f108c71fb72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- import timeit import numpy as np import sys import random as rand class Queue_array: """ 顺序队列 """ def __init__(self,capacity): self._items = [None]*(capacity+1) #最后一个位置 空置 self._capacity = capacity self._head = 0 self._tail...
19.276042
87
0.518779
433
3,701
4.210162
0.21709
0.083379
0.071311
0.055952
0.641251
0.568843
0.49424
0.450905
0.407021
0.333516
0
0.009042
0.34261
3,701
191
88
19.376963
0.740238
0.168873
0
0.551724
0
0
0.047502
0
0
0
0
0.005236
0
1
0.114943
false
0
0.045977
0.011494
0.344828
0.126437
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
253438c9cde5237ab336b6ebc0e8e1089525b6e7
1,703
py
Python
domains/gym_craft/tests/plotting.py
AndrewPaulChester/sage-code
9fe676bfbcbc6f642eca29b30a1027fba2a426a0
[ "MIT" ]
null
null
null
domains/gym_craft/tests/plotting.py
AndrewPaulChester/sage-code
9fe676bfbcbc6f642eca29b30a1027fba2a426a0
[ "MIT" ]
null
null
null
domains/gym_craft/tests/plotting.py
AndrewPaulChester/sage-code
9fe676bfbcbc6f642eca29b30a1027fba2a426a0
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt import math MAX_SPEED = 2 ACCELERATION = 0.5 DRAG = 0.3 TURN_SPEED=5 IMAGE = np.array([ [0,0,0,1,0,0,0], [0,0,1,1,1,0,0], [0,1,1,1,1,1,0], [1,1,1,1,1,1,1], [0,1,1,1,1,1,0], [0,0,1,1,1,0,0], [0,0,0,1,0,0,0]]) def main(): position=(42 ,42) speed=0 bear...
22.706667
81
0.613623
299
1,703
3.397993
0.247492
0.03937
0.038386
0.031496
0.294291
0.107283
0.048228
0.036417
0.036417
0.018701
0
0.08841
0.20963
1,703
75
82
22.706667
0.666419
0.015854
0
0.101695
0
0
0.025687
0
0
0
0
0
0
1
0.067797
false
0
0.050847
0
0.152542
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25388135b2590bec6c24b4f712d9da835c81c62b
4,338
py
Python
pysplit/clusgroup.py
haochiche/pysplit
df6f8ebe93dd81ff8925529b8dfaaea2f446f2e5
[ "BSD-3-Clause" ]
110
2015-07-12T15:13:18.000Z
2022-03-28T00:58:59.000Z
pysplit/clusgroup.py
haochiche/pysplit
df6f8ebe93dd81ff8925529b8dfaaea2f446f2e5
[ "BSD-3-Clause" ]
70
2016-02-23T03:19:55.000Z
2022-03-14T09:12:43.000Z
pysplit/clusgroup.py
haochiche/pysplit
df6f8ebe93dd81ff8925529b8dfaaea2f446f2e5
[ "BSD-3-Clause" ]
66
2015-07-10T20:43:30.000Z
2022-02-18T01:00:33.000Z
from __future__ import division, print_function from .trajgroup import TrajectoryGroup from .hypath import HyPath from .hygroup import HyGroup def print_clusterprocedure(): """Print clustering guide.""" print(""" In ``PySPLIT`` 1. Create ``TrajectoryGroup`` with desired set of trajectorie...
27.807692
79
0.574919
408
4,338
5.985294
0.382353
0.02457
0.009009
0.022113
0.174447
0.156429
0.085176
0.045864
0
0
0
0.003659
0.307054
4,338
155
80
27.987097
0.808716
0.397418
0
0.122449
0
0
0.296786
0.015595
0
0
0
0
0
1
0.142857
false
0.020408
0.081633
0
0.346939
0.061224
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
253a183c509b499df726c22fb7b3ee45b370c6ff
2,424
py
Python
bin/lkft_notify_developer.py
roxell/lkft-tools
bd1981b1f616114cb260878fe7319753107e581b
[ "MIT" ]
3
2018-12-14T02:37:10.000Z
2020-04-30T19:07:01.000Z
bin/lkft_notify_developer.py
roxell/lkft-tools
bd1981b1f616114cb260878fe7319753107e581b
[ "MIT" ]
25
2018-07-27T13:38:17.000Z
2021-10-05T13:01:36.000Z
bin/lkft_notify_developer.py
roxell/lkft-tools
bd1981b1f616114cb260878fe7319753107e581b
[ "MIT" ]
12
2018-07-09T22:52:32.000Z
2021-11-29T19:45:33.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import os import re import requests import sys sys.path.append(os.path.join(sys.path[0], "../", "lib")) import lkft_squad_client # noqa: E402 def get_branch_from_make_kernelversion(make_kernelversion): """ IN: "4.4.118" OUT: "4.4" ...
28.186047
86
0.664604
318
2,424
4.820755
0.336478
0.039139
0.039139
0.009785
0.068493
0.029354
0
0
0
0
0
0.011948
0.205858
2,424
85
87
28.517647
0.784416
0.105198
0
0
0
0
0.12894
0
0
0
0
0
0
1
0.06
false
0
0.12
0
0.26
0.06
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
253c3b4e7dd3233e756d0a0d7809bcec3e7f9d2a
1,507
py
Python
day_3.py
bastoche/adventofcode2017
a93ecff1de78376b03d4c922c82dff96574f2466
[ "MIT" ]
null
null
null
day_3.py
bastoche/adventofcode2017
a93ecff1de78376b03d4c922c82dff96574f2466
[ "MIT" ]
null
null
null
day_3.py
bastoche/adventofcode2017
a93ecff1de78376b03d4c922c82dff96574f2466
[ "MIT" ]
null
null
null
from math import ceil, sqrt def part_one(input): circle_index = get_circle_index(input) circle_zero = get_circle_zero(circle_index) cardinal_points = get_cardinal_points(circle_index, circle_zero) distance_to_closest_cardinal_point = compute_distance_to_closest_cardinal_point(input, cardinal_points) ...
25.542373
119
0.639681
238
1,507
3.777311
0.205882
0.026696
0.07564
0.111235
0.467186
0.288098
0.288098
0.20356
0.193548
0.193548
0
0.02627
0.242203
1,507
58
120
25.982759
0.760946
0
0
0
0
0
0.005309
0
0
0
0
0
0
1
0.175
false
0
0.025
0.1
0.475
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
253e8b5989062bd43d076499f35aace1547716ff
2,395
py
Python
src/pysqldump/domain/manager.py
tongyeouki/sql-converter
28039fe16b43f443925447d06d682f6aa8c3a909
[ "MIT" ]
1
2020-06-12T03:32:35.000Z
2020-06-12T03:32:35.000Z
src/pysqldump/domain/manager.py
tongyeouki/sql-converter
28039fe16b43f443925447d06d682f6aa8c3a909
[ "MIT" ]
null
null
null
src/pysqldump/domain/manager.py
tongyeouki/sql-converter
28039fe16b43f443925447d06d682f6aa8c3a909
[ "MIT" ]
1
2020-06-12T03:32:15.000Z
2020-06-12T03:32:15.000Z
from typing import Optional from pysqldump.domain.formatters import ( CSVFormatter, DictFormatter, JsonFormatter, ConsoleFormatter, ) from pysqldump.settings.base import get_config config = get_config() class File: def __init__(self, filename): self.filename = filename def get_exten...
29.567901
84
0.617954
264
2,395
5.44697
0.212121
0.108484
0.041725
0.052851
0.194715
0.194715
0.194715
0.150209
0.150209
0.150209
0
0.000579
0.279332
2,395
80
85
29.9375
0.832561
0
0
0.169231
0
0
0.0238
0
0
0
0
0
0
1
0.153846
false
0
0.046154
0.015385
0.476923
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25405166ea1f14ffbb145a0fad72cb35236d7ab6
605
py
Python
Mortgage Calculator.py
BokijonovM/Projects
7c032f872aaa4bdf0fba100385019c6058c3c8fb
[ "BSD-2-Clause" ]
1
2021-03-18T08:12:15.000Z
2021-03-18T08:12:15.000Z
Mortgage Calculator.py
BokijonovM/Python_Projects
7c032f872aaa4bdf0fba100385019c6058c3c8fb
[ "BSD-2-Clause" ]
null
null
null
Mortgage Calculator.py
BokijonovM/Python_Projects
7c032f872aaa4bdf0fba100385019c6058c3c8fb
[ "BSD-2-Clause" ]
null
null
null
"""**Mortgage Calculator** - Calculate the monthly payments of a fixed term mortgage over given Nth terms at a given interest rate. Also figure out how long it will take the user to pay back the loan.""" months = int(input("Enter mortgage term (in months): ")) rate = float(input("Enter interest rate (in %): ...
37.8125
127
0.661157
90
605
4.411111
0.522222
0.09068
0.075567
0
0
0
0
0
0
0
0
0.024691
0.196694
605
15
128
40.333333
0.792181
0.330579
0
0
0
0
0.409922
0
0
0
0
0
0
1
0
false
0
0
0
0
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2545a6ce4bad291b2182fea9564fd36668358b01
660
py
Python
scrapingData/scraping.py
karumo10/coursesel-helper
deb7e52a7bfe1fc41cd630d5a2cbe96fa089d986
[ "MIT" ]
null
null
null
scrapingData/scraping.py
karumo10/coursesel-helper
deb7e52a7bfe1fc41cd630d5a2cbe96fa089d986
[ "MIT" ]
null
null
null
scrapingData/scraping.py
karumo10/coursesel-helper
deb7e52a7bfe1fc41cd630d5a2cbe96fa089d986
[ "MIT" ]
null
null
null
from requests_html import HTMLSession import os import sys writeFileName = "courseLinks.out" writeFileStream = open(writeFileName,'w',encoding='utf-8') session = HTMLSession() url = 'https://www.ji.sjtu.edu.cn/academics/courses/courses-by-number/' r = session.get(url) for i in range(2,100): sel = '...
24.444444
72
0.636364
85
660
4.917647
0.705882
0.086124
0.095694
0.110048
0.133971
0
0
0
0
0
0
0.013514
0.215152
660
26
73
25.384615
0.793436
0.078788
0
0
0
0.058824
0.219723
0
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
254a5b1fda824a925564dbbe740873888025ca2b
7,655
py
Python
jukebot/cogs/gametime.py
Kommotion/Jukebot
4e50342b914ff6b91fd78802900d1e24bee946db
[ "MIT" ]
1
2021-07-26T02:44:00.000Z
2021-07-26T02:44:00.000Z
jukebot/cogs/gametime.py
Kommotion/Jukebot
4e50342b914ff6b91fd78802900d1e24bee946db
[ "MIT" ]
null
null
null
jukebot/cogs/gametime.py
Kommotion/Jukebot
4e50342b914ff6b91fd78802900d1e24bee946db
[ "MIT" ]
null
null
null
import logging import discord from datetime import datetime from discord.ext import tasks, commands from discord.ext.commands import Cog from cogs.utils.utils import json_io_dump, json_io_load log = logging.getLogger(__name__) STATUS = 'status' TIME_STARTED = 'time_started' NAME = 'name' GAMES = 'games' NONE = 'none'...
40.502646
142
0.617897
963
7,655
4.796469
0.220145
0.081186
0.035722
0.057588
0.22992
0.164105
0.107383
0.039402
0.039402
0.039402
0
0.01806
0.276682
7,655
188
143
40.718085
0.816146
0.169432
0
0.019802
0
0.009901
0.086575
0
0
0
0
0
0
1
0.039604
false
0
0.059406
0
0.138614
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
254ca1af527eda83d904a3bb25f7ec725799bb3b
2,578
py
Python
transformy/conversion/_pyqtgraph.py
AllenInstitute/transformy
17c769857d0cb05ad252ab684dec9eadb61a7c59
[ "BSD-3-Clause" ]
1
2021-06-22T18:06:06.000Z
2021-06-22T18:06:06.000Z
transformy/conversion/_pyqtgraph.py
AllenInstitute/transformy
17c769857d0cb05ad252ab684dec9eadb61a7c59
[ "BSD-3-Clause" ]
null
null
null
transformy/conversion/_pyqtgraph.py
AllenInstitute/transformy
17c769857d0cb05ad252ab684dec9eadb61a7c59
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from .converter import TransformConverter from .. import linear class PyqtgraphTransformConverter(TransformConverter): name = 'pyqtgraph' def __init__(self): try: import pyqtgraph self._import_error = None except ImportError as exc: s...
34.837838
114
0.564779
295
2,578
4.8
0.247458
0.033898
0.008475
0.032486
0.324859
0.276836
0.208333
0.185028
0.185028
0.185028
0
0.033792
0.322731
2,578
73
115
35.315068
0.777205
0.038402
0
0.274194
0
0
0.060985
0
0
0
0
0
0
1
0.096774
false
0
0.145161
0.016129
0.403226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25507a35dbe62df6d608b962eb29203e902472af
5,018
py
Python
src/means/io/sbml.py
nicktimko/means
fe164916a1d84ab2a4fa039871d38ccdf638b1db
[ "MIT" ]
10
2016-05-25T08:28:39.000Z
2020-06-04T03:19:50.000Z
src/means/io/sbml.py
nicktimko/means
fe164916a1d84ab2a4fa039871d38ccdf638b1db
[ "MIT" ]
5
2015-12-08T14:01:15.000Z
2020-01-10T22:42:18.000Z
src/means/io/sbml.py
nicktimko/means
fe164916a1d84ab2a4fa039871d38ccdf638b1db
[ "MIT" ]
6
2015-12-10T17:24:11.000Z
2021-03-22T16:12:17.000Z
from collections import namedtuple import os import sympy import numpy as np from means.core.model import Model _Reaction = namedtuple('_REACTION', ['id', 'reactants', 'products', 'propensity', 'parameters']) def _sbml_like_piecewise(*args): if len(args) % 2 == 1: # Add a final True element you can skip ...
40.144
115
0.682742
603
5,018
5.527363
0.31675
0.040504
0.016502
0.012001
0.081008
0.070207
0.039004
0.039004
0.039004
0
0
0.0036
0.22499
5,018
125
116
40.144
0.853433
0.190514
0
0.050633
0
0
0.036273
0
0
0
0
0
0
1
0.050633
false
0
0.075949
0
0.177215
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2551cc7f888a7265ce1f8beeca110b9348759577
1,123
py
Python
clrenv/tests/test_path.py
color/clrenv
e11b67fcce129a4c828b6d7b421d9f2eac58785b
[ "MIT" ]
2
2019-12-04T05:38:17.000Z
2022-02-17T06:24:23.000Z
clrenv/tests/test_path.py
color/clrenv
e11b67fcce129a4c828b6d7b421d9f2eac58785b
[ "MIT" ]
9
2019-11-11T20:01:11.000Z
2021-09-30T00:41:52.000Z
clrenv/tests/test_path.py
color/clrenv
e11b67fcce129a4c828b6d7b421d9f2eac58785b
[ "MIT" ]
4
2017-08-24T00:00:34.000Z
2021-06-25T16:41:20.000Z
import pytest import clrenv @pytest.fixture(autouse=True) def clear_overlay_path(monkeypatch): monkeypatch.setenv("CLRENV_OVERLAY_PATH", "") def test_custom_base(tmp_path, monkeypatch): custom_path = tmp_path / "custom/path" custom_path.parent.mkdir() custom_path.write_text("data") monkeypatch....
27.390244
81
0.715049
140
1,123
5.407143
0.264286
0.073976
0.151915
0.107001
0.332893
0
0
0
0
0
0
0.011702
0.162956
1,123
40
82
28.075
0.793617
0
0
0
0
0
0.13179
0.027605
0
0
0
0
0.068966
1
0.137931
false
0
0.068966
0
0.206897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25536ba36fdcd55ea907e174eeadb755910513a2
2,583
py
Python
utils/convert_codah.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
null
null
null
utils/convert_codah.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
null
null
null
utils/convert_codah.py
Longday0923/CODAH_Baseline
e9e331452a12c85e35969833cbfc824d6c0256c1
[ "MIT" ]
null
null
null
import random import pandas as pd import numpy as np import json from tqdm import * def split(full_list, shuffle=False, ratio=0.2): n_total = len(full_list) offset = int(n_total * ratio) if n_total == 0 or offset < 1: return [], full_list if shuffle: random.shuffle(full_list) subli...
37.434783
99
0.684863
363
2,583
4.608815
0.278237
0.038255
0.041841
0.068739
0.109982
0.050209
0.050209
0
0
0
0
0.015957
0.199381
2,583
68
100
37.985294
0.793037
0.187379
0
0
0
0
0.12823
0.029187
0
0
0
0
0
1
0.078431
false
0
0.098039
0
0.254902
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25541a58e6ade5999bf8649b87e0a951c63912f5
3,237
py
Python
new_imgt_scraping/new_imgt/new_imgt/spiders/new_imgt_spider.py
yaosichao0915/DeepImmuno
a2a7832f6cded9296735475c2e8fa5c9b62b3f8d
[ "MIT" ]
20
2020-12-28T03:34:34.000Z
2022-03-14T01:36:52.000Z
new_imgt_scraping/new_imgt/new_imgt/spiders/new_imgt_spider.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
3
2021-04-23T19:21:11.000Z
2021-08-22T00:39:01.000Z
new_imgt_scraping/new_imgt/new_imgt/spiders/new_imgt_spider.py
zhangjiahuan17/DeepImmuno
5ab182429bc3276fd43be2ec8d86b72e773992ef
[ "MIT" ]
11
2021-04-23T16:46:29.000Z
2022-03-18T15:53:55.000Z
''' pip install Scrapy pip install selenium In a folder: scrapy startproject imgt when running: scrapy crawl new_imgt -o out.json when using scrapy shell: scrapy shell 'url' in Ipython, you can use response.xpath or response.css to try out object: 1. selectorlist if css('a') and there are ...
33.030612
139
0.666976
467
3,237
4.526767
0.426124
0.033113
0.019868
0.025544
0.129139
0.129139
0.070956
0
0
0
0
0.011691
0.207291
3,237
98
140
33.030612
0.812159
0.279271
0
0
0
0
0.190476
0.064986
0
0
0
0
0
1
0.121212
false
0
0.121212
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
25582a95ad549fbb53f7bc9394341328228fcce8
38,786
py
Python
Base/opcode_tab.py
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
171
2020-01-30T16:58:07.000Z
2022-03-27T22:12:17.000Z
Base/opcode_tab.py
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
14
2021-05-15T02:12:09.000Z
2022-03-16T04:16:18.000Z
Base/opcode_tab.py
robertmuth/Cwerg
fdf30b06c93b4620c0a45b448b6d92acb81c35f0
[ "Apache-2.0" ]
5
2021-03-01T20:52:13.000Z
2022-03-07T06:35:03.000Z
#!/usr/bin/python3 # (c) Robert Muth - see LICENSE for more info from typing import List, Dict import enum from Util import cgen # maximum number of operands in an instruction MAX_OPERANDS = 5 # maximum number of function parameters (or results) MAX_PARAMETERS = 64 #################################################...
36.113594
108
0.571443
5,307
38,786
3.958357
0.145657
0.057695
0.054839
0.040844
0.417385
0.356643
0.318989
0.295901
0.263388
0.256296
0
0.023573
0.260635
38,786
1,073
109
36.147251
0.708965
0.125355
0
0.237537
0
0.001466
0.12837
0.002149
0
0
0.012511
0.000932
0.020528
1
0.033724
false
0
0.005865
0.016129
0.222874
0.036657
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
255a4a642a2b2e33a26ec84bb18d2413e8e4b098
31,149
py
Python
main/staff.py
YukiGao7718/Airline-Reservation-System
ecc75316ccbc6aa2db4d0378b938c0275fddb6d3
[ "MIT" ]
null
null
null
main/staff.py
YukiGao7718/Airline-Reservation-System
ecc75316ccbc6aa2db4d0378b938c0275fddb6d3
[ "MIT" ]
null
null
null
main/staff.py
YukiGao7718/Airline-Reservation-System
ecc75316ccbc6aa2db4d0378b938c0275fddb6d3
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, session, redirect, url_for import pymysql.cursors import datetime from pyecharts import options as opts from pyecharts.charts import Pie,Bar from appdef import * #Get the airline the staff member works for def getStaffAirline(): username = session['username'] ...
40.400778
129
0.596969
3,270
31,149
5.591437
0.106116
0.026799
0.031394
0.043754
0.700831
0.666102
0.629293
0.598337
0.561693
0.529206
0
0.006372
0.279527
31,149
770
130
40.453247
0.80835
0.071206
0
0.591667
0
0.001667
0.159295
0.029828
0
0
0
0
0
1
0.041667
false
0
0.01
0
0.165
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0