hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
f8e6b6506a76e1e35e7ea781c3d6925aac25e1d3
871
py
Python
2019/beginners/web-cwo-xss/app/config.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/beginners/web-cwo-xss/app/config.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/beginners/web-cwo-xss/app/config.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# # Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
41.47619
124
0.778416
5393174c05f34ee9d21e6f2d67b5ea012c1b8435
7,802
py
Python
x2paddle/project_convertor/pytorch/models/vgg.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
2
2019-03-15T06:49:08.000Z
2019-03-15T06:49:08.000Z
x2paddle/project_convertor/pytorch/models/vgg.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
null
null
null
x2paddle/project_convertor/pytorch/models/vgg.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
null
null
null
import paddle import paddle.nn as nn from paddle.utils.download import get_weights_path_from_url from typing import Union, List, Dict, Any, cast from x2paddle import torch2paddle __all__ = [ 'VGG', 'vgg11', 'vgg11_bn', 'vgg13', 'vgg13_bn', 'vgg16', 'vgg16_bn', 'vgg19_bn', 'vgg19', ]...
38.433498
114
0.629454
073109aa95e67d8e66e90fc0aea5b9f625498f79
458
py
Python
exercises/pt/test_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_02_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( 'spacy.load("pt_core_news_md")' in __solution__ ), "Você está carregando o fluxo de processamento médio corretamente?" assert "doc[1].vector" in __solution__, "Você está recebendo o vetor correto?" __msg__.good( "Muito bom! No próximo exercício, você utilizará a bibl...
41.636364
82
0.68559
4ae9df6c360c9103c5eade90d823a2c3b9a40a0d
9,762
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gce_pd.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gce_pd.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/gce_pd.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright 2013 Google Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
35.115108
138
0.62354
9171c46b028355bec95ef47ff28564c231cbcbbe
3,951
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/axt_to_lav.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/axt_to_lav.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/axt_to_lav.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python2.7 """ Application to convert AXT file to LAV file. Reads an AXT file from standard input and writes a LAV file to standard out; some statistics are written to standard error. usage: %prog primary_spec secondary_spec [--silent] < axt_file > lav_file Each spec is of the form seq_file[:species_name...
24.849057
77
0.667932
91ac11e6da8cc2eb524c5fb6f4048aef1516b549
5,497
py
Python
test-python/test_my_stat.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
test-python/test_my_stat.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
test-python/test_my_stat.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
""" Teste die Module von my_stat.py""" import unittest from bewerte import my_stat class TestMittelwert(unittest.TestCase): """ Teste die Funktion my_stat.mittelwert """ def test_ganze_Zahl(self): """ Wenn das Ergebnis eine ganze Zahl ergeben soll """ noten = [2, 6] result = my_stat.m...
36.646667
101
0.628707
37f552d2b05823fdb836a3d9699673411b213578
327
py
Python
Python/Aula10/ExerciciosPython/ExerciciosElif/exercicios01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/ExerciciosElif/exercicios01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/ExerciciosElif/exercicios01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Exercício Python: Faça um programa que leia o sexo de uma pessoa, mas só aceite os valores sexo = str(input('Informe seu sexo: [M/F] ')).strip().upper()[0] while sexo not in 'MmFf': sexo = str(input('Dados invalidos. Por favor, informe seu sexo: ')).strip().upper()[0] print('Sexo {} registrado com sucesso'.format...
54.5
91
0.69419
4a2a062fbdd001e1b16e309dff08a2f15e7ca736
7,548
py
Python
research/cvtmodel/vgg/src/vgg11.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cvtmodel/vgg/src/vgg11.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cvtmodel/vgg/src/vgg11.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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 to...
51
119
0.567038
4abe1cc17d4a9107b1f42395844dea7edfe2cae1
3,907
py
Python
Packs/SecurityAdvisor/Integrations/SecurityAdvisor/SecurityAdvisor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/SecurityAdvisor/Integrations/SecurityAdvisor/SecurityAdvisor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/SecurityAdvisor/Integrations/SecurityAdvisor/SecurityAdvisor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * ''' IMPORTS ''' import requests import json import collections # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' URL_SUFFIX_COACH_USER = 'apis/coachuser/' # Allows nested keys to be accesible def makehash(): ...
28.311594
115
0.619657
4387c17571286b2bab91b29a1fca8ebb6411c499
1,269
py
Python
lib/widgets/elements/algoptions.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/algoptions.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/elements/algoptions.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import (QLabel, QLineEdit, QGridLayout) from ...statics import FLABELS as LABELS class AlgorithmOptions(QGridLayout): def __init__(self, parent=None): super(AlgorithmOptions, self).__init__() self.forceLabels = [] self.forceConstants = [] self.__controls() ...
29.511628
64
0.618597
607a35f0620ee8fa80c621bf023e1817ea0a0fbf
82,932
py
Python
research/nlp/gpt2/convert_tf_ckpt/trans_dict.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/gpt2/convert_tf_ckpt/trans_dict.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/gpt2/convert_tf_ckpt/trans_dict.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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 to...
92.868981
120
0.778686
608e5ea3d8b9fb74c6809648cc6bdf0c49ba4d81
42
py
Python
python/socket/gethostname.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/socket/gethostname.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/socket/gethostname.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import socket print(socket.gethostname())
14
27
0.809524
e8380b79020ebcc2759125f1226b7ed927a5fd5b
373
py
Python
pacman-arch/test/pacman/tests/sync890.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync890.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync890.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "conflict 'db vs targ'" sp = pmpkg("pkg3") self.addpkg2db("sync", sp) lp1 = pmpkg("pkg1") lp2 = pmpkg("pkg2") lp2.conflicts = ["pkg3"] for p in lp1, lp2: self.addpkg2db("local", p) self.args = "-S %s --ask=4" % sp.name self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1") self.addru...
17.761905
42
0.670241
1c5220ba244be1ceda5abcd12d2543c19f188161
1,270
py
Python
resources/mechanics_lib/api/graphs/transforms.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/graphs/transforms.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/graphs/transforms.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
import numpy as np from api.symbolic import LinearExpr def MirrorX(): return np.diag([-1, 1, 1, 1]) def MirrorY(): return np.diag([1, -1, 1, 1]) def Scale(scale): return np.diag([scale, scale, scale, 1]) def RotateX(angle): r = np.array([[1, 0, 0, 0], [0, np.cos(angle), -np.sin(angle), 0], ...
24.901961
65
0.531496
c7ec69cb62bf69e359892ed230a87c023fe758d1
631
py
Python
Algorithms/1_Warm_up/10.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/1_Warm_up/10.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/1_Warm_up/10.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/time-conversion/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'timeConversion' function below. # # The function is expected to return a STRING. # The function accepts STRING s as parameter. # def timeConversion(s): if((s...
20.354839
88
0.635499
40b9dfc0e3890d453bcf30eabe49a2742bc511ba
28,801
py
Python
Packs/Endace/Integrations/Endace/Endace_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Endace/Integrations/Endace/Endace_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Endace/Integrations/Endace/Endace_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# -------------------------------------------------------------------------------------------------------------------- # Copyright 2020 Endace Technology Limited # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), t...
56.362035
120
0.59366
907701a8d10eeb78aa1dba26b7e328e6b6e78b58
2,616
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigwig.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigwig.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/contrib/bigwig.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Module to help create scaled bigWig files from BAM """ import pybedtools import os import subprocess def mapped_read_count(bam, force=False): """ Scale is cached in a bam.scale file containing the number of mapped reads. Use force=True to override caching. """ scale_fn = bam + '.scale' if ...
28.434783
78
0.624235
90c23419676ed3e471501acc6643f170dd3df0f2
134
py
Python
packages/watchmen-model/src/watchmen_model/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/analysis/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .factor_index import FactorIndex, FactorIndexId from .pipeline_index import PipelineIndex, PipelineIndexId, PipelineIndexRefType
44.666667
80
0.880597
462cb30ddf4e3cb7e68c88a3e288cac6a8b3c23d
2,701
py
Python
research/cv/autoaugment/src/optim/lr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/autoaugment/src/optim/lr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/autoaugment/src/optim/lr.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 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 to...
33.345679
79
0.647538
4674b1a67b06c150c555450e790976f18c00ea82
3,076
py
Python
bindings/python/ensmallen/datasets/freebase.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
bindings/python/ensmallen/datasets/freebase.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
bindings/python/ensmallen/datasets/freebase.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
"""Module providing graphs available from FreeBase. References ---------- Please cite: ```bib @inproceedings{bollacker2008freebase, title={Freebase: a collaboratively created graph database for structuring human knowledge}, author={Bollacker, Kurt and Evans, Colin and Paritosh, Praveen and Sturge, Tim and Taylor,...
34.954545
100
0.692783
c30822857802799f0cc17bbb9174d135741f6dbc
4,299
py
Python
resources/mechanics_lib/FourBarLegs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/FourBarLegs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/FourBarLegs.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.component import Component from connector import Tab from api.edge import Flat, Cut from math import sqrt class FourBarLegs(Component): def defComponents(self): self.addSubcomponent("mount", "Rectangle") self.addSubcomponent("spacer", "Rectangle") self.addSubcomponent("fakeleg", "Rectangle") ...
35.825
138
0.589439
828501367d7231fac44085949d710db0cf193c85
337
py
Python
programs/genesis_util/canonical_format.py
Meta-Exchange/TTshares
86f5426413d6bf0de39ecaf1c3299b40c064bb30
[ "MIT" ]
1,189
2015-06-08T18:41:58.000Z
2022-02-28T13:20:08.000Z
programs/genesis_util/canonical_format.py
CocosBlockchainExpedition/cocos-mainnet
e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b
[ "MIT" ]
1,941
2017-01-17T22:12:30.000Z
2022-03-09T15:02:10.000Z
programs/genesis_util/canonical_format.py
CocosBlockchainExpedition/cocos-mainnet
e0dc376c191f9b18a3a86f7705bfd0e0ca67cb5b
[ "MIT" ]
729
2017-01-19T14:48:57.000Z
2022-03-12T15:25:29.000Z
#!/usr/bin/env python3 import argparse import json import sys if len(sys.argv) < 3: print("syntax: "+sys.argv[0]+" INFILE OUTFILE") sys.exit(0) with open(sys.argv[1], "r") as infile: genesis = json.load(infile) with open(sys.argv[2], "w") as outfile: json.dump(genesis, outfile, separators=(',', ':'),...
22.466667
70
0.649852
8286fc88d993c100680521ea2e2d573690a957f6
2,771
py
Python
demos/Multiscale/uniswap/model/parts/suf_aux.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/uniswap/model/parts/suf_aux.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/uniswap/model/parts/suf_aux.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
from .policy_aux import get_output_amount # DAI functions def addLiquidity_DAI(_params, substep, sH, s, _input): eth_reserve = int(s['ETH_balance']) token_reserve = int(s['DAI_balance']) if _input['eth_deposit'] == 0: token_amount = 0 else: token_amount = int(_input['eth_deposit'] * t...
32.988095
84
0.678816
48175565741e9ae7e890a2472a5fbd9233591db7
8,019
py
Python
setup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
setup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
setup.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='onegov-cloud', version='1.0.0', package_dir={'': 'src'}, include_package_data=True, namespace_packages=['onegov'], packages=[ 'onegov.activity', 'onegov.agency', 'onegov.async_http', 'onegov.ballot', 'onegov.chat...
28.741935
77
0.494451
6f7cb2288c9f111bacf949aef65b08c63c199537
569
py
Python
Modeling/modelData.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
1
2019-10-01T04:13:08.000Z
2019-10-01T04:13:08.000Z
Modeling/modelData.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
Modeling/modelData.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
import numpy from fit import * from gps import * from equation_builder import * import pickle import sys ''' This is the script run by pestpp in order to model the time series data it takes a few command line arguments in order to run the data to run: python modelData.py /path/to/network.p station_name functionFile...
25.863636
68
0.760984
d24bda2cb2d58c1a305085386c07becfc64e83d3
4,440
py
Python
VeterinerApp/VetApps/Apps/views.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
VeterinerApp/VetApps/Apps/views.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
VeterinerApp/VetApps/Apps/views.py
icakmak/Veteriner
c6445008197f078fdc3f509a3d4b0323532c1df9
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.response import Response from rest_framework.decorators import api_view from VetApps.models import Customer,Kind,Animal from VetApps.Apps.serializers import CustomerSerializer,KindSerializer,AnimalSerializer from rest_framework.views import APIView from rest_frame...
37
94
0.688739
d27f339a91b9aad30f24d1dd9f3ef1a33be640fc
174
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/08.2-Loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/08.2-Loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/08.2-Loop.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
grocery = ["rice", "water", "tomato", "onion", "ginger"] for item in grocery: if item == "water": continue if item == "onion": break print(item)
19.333333
56
0.534483
9630d66408eae8a508aac782b5ee333262d707ac
661
py
Python
238-product-of-array-except-self/238-product-of-array-except-self.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
238-product-of-array-except-self/238-product-of-array-except-self.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
238-product-of-array-except-self/238-product-of-array-except-self.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
import math class Solution: def productExceptSelf(self, nums: List[int]) -> List[int]: zero_counts = nums.count(0) # case 1. the number of '0's >= 2 if zero_counts>=2: return [0]*len(nums) # case 2. the number of '0's == 1 elif zero_counts==1: ...
28.73913
62
0.497731
793bc5660abb319bff8c6fb7d50fab02672f45ab
17,364
py
Python
src/scraper.py
Cxmu03/IServ-Scraper
8f6ae2a8568851f915565f445d64a2f740b73b75
[ "MIT" ]
6
2021-08-31T16:47:27.000Z
2022-01-24T14:46:48.000Z
src/scraper.py
Cxmu03/IServ-Scraper
8f6ae2a8568851f915565f445d64a2f740b73b75
[ "MIT" ]
1
2022-01-24T14:48:18.000Z
2022-01-24T14:48:18.000Z
src/scraper.py
Cxmu03/IServ-Scraper
8f6ae2a8568851f915565f445d64a2f740b73b75
[ "MIT" ]
null
null
null
import asyncio import getpass import os import secrets import shutil import tempfile import urllib.parse from datetime import datetime from pathlib import Path from typing import Coroutine, Iterable import httpx from bs4 import BeautifulSoup from bs4.element import SoupStrainer, Tag from sanitize_filename import sanit...
34.728
107
0.575847
793d046d209b11ed4917626afa99782cc07d3bdf
13,796
py
Python
cbm/foi/foi_v1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/foi/foi_v1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/foi/foi_v1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Gilbert Voican, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import os import psycopg2 # from psycopg2...
40.696165
100
0.683531
f769208e7e8f217d24e2311343b1945fe195de74
12,801
py
Python
haas_lib_bundles/python/libraries/spl06/spl06.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/spl06/spl06.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/libraries/spl06/spl06.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2015-2021 Alibaba Group Holding Limited MicroPython's drive for SPL06 Author: HaaS Date: 2021/09/09 """ from driver import I2C from utime import sleep_ms import math EEPROM_CHIP_ADDRESS = 0x77 spl06_dict = {'Ctemp': 0.0, 'Ftemp': 0.0,'pressure': 0.0, 'altitude': 0.0} class SPL06(obj...
30.771635
110
0.558706
541355f90e89eda32d7b09d07e232a08f7df08f1
1,873
py
Python
algorithms/ar-lreg/python3/linear_regression.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-lreg/python3/linear_regression.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-lreg/python3/linear_regression.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
import warnings # A simple linear regression algorithm of the form y = a + bx. # This function takes in a list of tuple of integers or floats. # It will output estimators a and b from y = a + bx. def linear_regression(dataset): validate_dataset(dataset) sumX = sumX2 = sumY = sumXY = 0 dataset_length = le...
26.013889
78
0.552056
581ea5d74618b3714c30e050c5062ce3c18ec021
4,488
py
Python
gitGraber/tokens.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
gitGraber/tokens.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
gitGraber/tokens.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
CLEAN_TOKEN_STEP1 = '[\=;\\"\<\>,)(]' CLEAN_TOKEN_STEP2 = "[']" def initTokensMap(): tokensList = [] tokensCombo = [] tokensList.append(Token('AMAZON_AWS', '([^A-Z0-9]|^)(AKIA|A3T|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{12,}',['EXAMPLE'])) tokensList.append(Token('FACEBOOK', '\W([0-9a-f]{32})$')) ...
56.1
316
0.60049
583f1136e81cf8fe16bae423b38171401193bede
15,766
py
Python
model.py
JACKYLUO1991/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
24
2019-09-01T09:02:59.000Z
2022-03-22T08:38:16.000Z
model.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
2
2019-10-25T02:39:03.000Z
2022-03-20T15:45:22.000Z
model.py
HeroOneHY/FaceLandmarks
0e7eb636d25ba93e64cc3433a79239be51c883cc
[ "Apache-2.0" ]
11
2019-10-25T01:36:18.000Z
2021-04-09T06:51:58.000Z
# # PFLD: A Practical Facial Landmark Detector # import sys # import time # from keras.models import Model # from keras.layers import * # from keras import backend as K # from keras.utils.vis_utils import plot_model # from keras.utils import vis_utils # def _conv_block(inputs, filters, kernel, strides, dilation_rat...
37.00939
85
0.593683
589639743122ef4e898de628f976d8137d78a4d1
9,688
py
Python
gshiw/quotes_web/quotes/migrations/0001_initial.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
gshiw/quotes_web/quotes/migrations/0001_initial.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
gshiw/quotes_web/quotes/migrations/0001_initial.py
superlead/gsw
fc2bb539e3721cc554b4116b553befd653d2ec74
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-11 14:36 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
63.320261
154
0.614781
49f94631f1af52218683a1ae3a8c5869995d0c45
3,203
py
Python
startup.py
omgwtflaserguns/golemtemp
6c0e547d132906783e5ecf04073e9da2db780115
[ "MIT" ]
null
null
null
startup.py
omgwtflaserguns/golemtemp
6c0e547d132906783e5ecf04073e9da2db780115
[ "MIT" ]
null
null
null
startup.py
omgwtflaserguns/golemtemp
6c0e547d132906783e5ecf04073e9da2db780115
[ "MIT" ]
null
null
null
#!/usr/bin/python from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate from subprocess import * from time import sleep def run_cmd(cmd): p = Popen(cmd, shell=True, stdout=PIPE) output = p.communicate()[0] return output def shutdown(): run_cmd("shutdown -h now") def display(lcd, message, backligh...
30.504762
91
0.573525
12a0b6137f3579d47c9053db540af246c01fbac8
92
py
Python
apps/quiver/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/quiver/apps.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/quiver/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class QuiverConfig(AppConfig): name = 'apps.quiver'
15.333333
33
0.75
12f4b3880a2ad332aaf5f255e2d123107805a3f0
327
py
Python
exercises/fr/exc_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_02_10_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("fr_core_news_md") doc = nlp("C'était un super restaurant. Ensuite nous sommes allés dans un bar vraiment sympa.") # Crée des spans pour "super restaurant" et "bar vraiment sympa" span1 = ____ span2 = ____ # Obtiens la similarité entre les spans similarity = ____.____(____) print(simil...
23.357143
95
0.755352
675b91d5aad50ee5574e1ccd4d1753bfc25eeb4f
3,559
py
Python
helper/segmentation/report/generate_report.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
helper/segmentation/report/generate_report.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
helper/segmentation/report/generate_report.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import torch from jinja2 import Environment, FileSystemLoader from utils import get_dataset_dicts, get_eval_on_selected_set import cv2 import numpy as np # import some common detectron2 utilities from detectron2.engine import DefaultPredictor from detectron2.config import get_cfg from detectron2.utils.visualizer impor...
39.10989
152
0.709188
db37550fc028db9974ad22c580086c6a6d68e042
61
py
Python
chord_rec/datasets/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/datasets/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/datasets/__init__.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
from .krn2vec import * from .vec_datasets import Vec45Dataset
30.5
38
0.836066
e1ed1e6ea32bcf5dd4f3e155317d48b3d8fa31c6
1,527
py
Python
Liquid-experiments/qdrf/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-experiments/qdrf/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-experiments/qdrf/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
import random import time import json def train(jm=None, api=None, seed=2020, case=None): queues = ['small1', 'small2', 'small3', 'small4', 'large'] for name in queues: queue = { 'name': name, 'weight': 10, 'reserved': 'false', 'quota_gpu': 0, 'quota_gpu_mem': 10240, 'quota_cpu': 0...
24.629032
80
0.59332
c001808dfe26fa1343b89050b088a8e7c7bf8231
2,821
py
Python
just_test.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
just_test.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
just_test.py
shyorange/MovieWebsite
aaf3be332b9f944ea93fbd841e1758b4a11d4581
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # __author__ : "shyorange" # __date__ : 2018/12/14 import re; import time; import redis; from urllib.request import Request import urllib.request from urllib.parse import urlencode """ 仅仅由于测试 """ # 测试使用redis数据库 def test_redis(): # 获得数据库连接(decode_responses参数:为True表示插入str类型数据,为False表示插入字节数据。默认为False) ...
33.987952
142
0.620702
e1c85acc165b6ac236072d331c52cc60f57ea63f
557
py
Python
RunFaster/concurrency/Code-10-To_Check_DaemonThread_isalive.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/Code-10-To_Check_DaemonThread_isalive.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/Code-10-To_Check_DaemonThread_isalive.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' DEVELOPER NAME: BALAVIGNESH.M IMPLEMETED DATE: 17-11-2018 ''' import threading import time class DaemonThread: @staticmethod def GetThreadInfo(): print(threading.currentThread().getName(),'Starting......') time.sleep(10) print(threading.currentThread().getName(),'Exiting......')...
20.62963
67
0.687612
bef5e50809f62a521c199c4e10108fbde3f2342a
19,346
py
Python
fhirclient/r4models/servicerequest_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/servicerequest_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/servicerequest_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import servicerequest from .fhirdate import FHIRDate class ServiceRequestTests(unittest.TestCase): def instantia...
58.096096
233
0.67554
beff90a1f35a181c99b9c3775c880925c0dea5f5
1,465
py
Python
tests/onegov/pay/test_integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/pay/test_integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/pay/test_integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging from onegov.pay import process_payment, Price from onegov.pay import CARD_ERRORS def test_process_manual_payment(): payment = process_payment('manual', Price(10, 'CHF')) assert payment.source == 'manual' assert payment.amount == 10 assert payment.currency == 'CHF' payment = proces...
29.3
79
0.675085
55ec4aedf0dbba79d720f4207778e9f77c063055
566
py
Python
configurations/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
1
2019-07-22T14:03:11.000Z
2019-07-22T14:03:11.000Z
configurations/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
configurations/admin.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from configurations.management.commands.get_categories import get_categories_from_keepa from configurations.models import CategorySalesRank class CategorySalesRankAdmin(admin.ModelAdmin): list_display = ( 'name', 'max_allowed', 'preferred', ) acti...
24.608696
87
0.75265
361a0f1554a90a07f7d83001250e5a1cfe5b6d70
1,270
py
Python
src/test/tests/hybrid/defvar_anim.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/defvar_anim.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/defvar_anim.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: defvar.py # # Tests: plots - vector # # Defect ID: '3221 # # Programmer: Hank Childs # Date: April 10, 2003 # # Modifications: # Jeremy Meredith, Thu Jun 24 12:58:06 PDT 2004 # ...
20.819672
78
0.604724
a164c028f1cda774e4d8c3de4235cf50ab34c774
11,608
py
Python
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
9
2020-04-18T18:47:18.000Z
2020-04-18T18:52:41.000Z
Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_backend_dispatcher_implementation.py
ijsf/DeniseEmbeddableWebKit
57dfc6783d60f8f59b7129874e60f84d8c8556c9
[ "BSD-3-Clause" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
#!/usr/bin/env python # # Copyright (c) 2014-2016 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. 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. Redistribution...
55.014218
280
0.67531
62e4ca47caa23784f8115cb217bf3169dbd54fce
1,410
py
Python
wagtail_localize/views/snippets_api.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
6
2019-09-10T19:53:55.000Z
2019-11-14T16:57:07.000Z
wagtail_localize/views/snippets_api.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
17
2019-07-11T11:17:37.000Z
2019-11-19T16:40:31.000Z
wagtail_localize/views/snippets_api.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
2
2019-09-30T20:23:39.000Z
2019-10-31T14:09:31.000Z
from django.contrib.admin.utils import quote from django.urls import reverse from rest_framework import fields, serializers, viewsets from wagtail.snippets.views.snippets import get_snippet_model_from_url_params class BaseSnippetSerializer(serializers.ModelSerializer): id = fields.ReadOnlyField(source="pk") t...
28.77551
77
0.592199
3d6b2ef5e01b64e7c37282a1abf180027c0a5222
645
py
Python
scripts/fuzzing/lib/cliutils.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/fuzzing/lib/cliutils.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/fuzzing/lib/cliutils.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. def show_menu(choices): """Displays a simple interactive menu, looping until a valid selection is made.""" for i, choice in ...
29.318182
86
0.646512
3d95c73882714a51922bfd60bba7e364b99c5fa2
423
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_10_File_Handling/99. return the number of times a given string occurs in a text file.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_10_File_Handling/99. return the number of times a given string occurs in a text file.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_10_File_Handling/99. return the number of times a given string occurs in a text file.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts a string as an input and checks if the input string is present in a text file. The function should return the number of times the string occurs in the text file. Example: Input filename = input.txt word : 'it' Expected output = 1 """ def read_text_file(word): with open("input...
20.142857
109
0.676123
b1216877600dfe1a6b05bf11fa20b574fa9ce681
176
py
Python
python/gdal_cookbook/cookbook_geometry/create_geometry_from_geojson.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_geometry_from_geojson.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_geometry_from_geojson.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from osgeo import ogr geojson = """{"type":"Point", "coordinates":[108420.33,753808.59]}""" point = ogr.CreateGeometryFromJson(geojson) print(f'{point.GetX()},{point.GetY()}')
35.2
69
0.693182
b154ec8d0eb47f2a6a6b240543f7290a78864e47
1,945
py
Python
analyzer/emoji.py
ringvorlesung2019mgm/twitter-bingo
f0a1f40024e335977b395049618dafda123e7a8f
[ "Apache-2.0" ]
2
2019-01-15T12:22:43.000Z
2021-09-08T15:58:49.000Z
analyzer/emoji.py
ringvorlesung2019mgm/twitter-bingo
f0a1f40024e335977b395049618dafda123e7a8f
[ "Apache-2.0" ]
47
2018-11-08T14:06:13.000Z
2019-01-05T17:40:26.000Z
analyzer/emoji.py
ringvorlesung2019mgm/twitter-bingo
f0a1f40024e335977b395049618dafda123e7a8f
[ "Apache-2.0" ]
null
null
null
# Emoji-ratings taken from https://github.com/words/emoji-emotion (and converted to python) index = {'\\U0001f91d': 0.25, '😼': 0.5, '😇': 0.75, '😻': 0.75, '🙂': 0.25, '💩': -0.75, '😽': 0.5, '💙': 0.75, '👄': 0.5, '😶': 0.0, '😡': -1.0, '😹': 0.75, '💞': 0.75, '👿': -1.0, '\\U0001f921': 0.0, '😺': 0.5, '😊': 0.5, '�...
88.409091
707
0.372237
b17101aded9392fc9aa808a5532579ec1c751ac0
5,348
py
Python
loginfgt.py
maycozyx/loginfgt
3bad2500ee3ff780912d83101b841eab95de2a2b
[ "MIT" ]
null
null
null
loginfgt.py
maycozyx/loginfgt
3bad2500ee3ff780912d83101b841eab95de2a2b
[ "MIT" ]
null
null
null
loginfgt.py
maycozyx/loginfgt
3bad2500ee3ff780912d83101b841eab95de2a2b
[ "MIT" ]
null
null
null
# Autor: mayco.zyx@gmail.com Data: 07/12/2018 # -*- coding: utf-8 -*- # Use o parâmetro -d na linha de comando para ativar o modo debug import requests, time, sys debug = False # controla o modo debug que pode ser ativado passando na linha de comando o parâmetro -d TCONNA = 5 # tempo que espera para tentar con...
46.103448
183
0.693904
b186237c144bc35baa5cec9ada0d87429327cced
298
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.3-saarc-else.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.3-saarc-else.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.3-saarc-else.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
saarc = ["Bangladesh", "Afghanistan", "Bhutan", "Nepal", "india", "pakistan", "Sri Lanka"] country = input("Enter the name of the country : ") if country in saarc: print(country, "is a member of SAARC") else: print(country, "is not a member of SAARC") print("program terminated")
29.8
51
0.654362
b19626a43c4f7b8092b3d28467c590a6fd856f2d
936
py
Python
PINp/2015/DENISENKO_A_N/task_4_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_4_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_4_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 27. # Напишите программу, которая выводит имя, под которым скрывается Доменико #Теотокопули. Дополнительно необходимо вывести область интересов указанной #личности, место рождения, годы рождения и смерти (если человек умер), #вычислить возраст на данный момент (или момент смерти). Для хранения всех...
37.44
129
0.763889
b1a0afad28e3be0b64b3eba8606abf52709263bb
10,510
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_device.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_device.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/fortimanager/fmgr_device.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distribut...
34.686469
123
0.665461
a22d5e90049745beeb07c6b6ced4e0e76b49aac7
173
py
Python
p01/src/celery/demo.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/src/celery/demo.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/src/celery/demo.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
from celery import Celery broker = 'sqla+postgresql://flask:Password!@localhost/vc_deployments' app = Celery(broker=broker) @app.task def add(x, y): return x + y
13.307692
69
0.705202
0c29610dda24efa1bef34dc76f890cc66af99812
4,482
py
Python
generate-feedback.py
dassystem/notenfeedback
bca8878b540b50c2793c799edc5637409479c025
[ "Apache-2.0" ]
null
null
null
generate-feedback.py
dassystem/notenfeedback
bca8878b540b50c2793c799edc5637409479c025
[ "Apache-2.0" ]
null
null
null
generate-feedback.py
dassystem/notenfeedback
bca8878b540b50c2793c799edc5637409479c025
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Benoetigt: ezodf (python) und seine Abhaenigkeiten, Python3, pdflatex, pdfnup # Lauffaehig unter Linux und Windows. # Dieses Skript setzt aus einer Tabellenkalkulationsdatei ein LaTeX Dokument fuer Schuelerfeedback. # Zu benutzten mit "$ python generate-feedback.py [[DATEINAME.ods]]" # Geschrie...
28.188679
301
0.635654
a73ea2807233ea088b26b750f59ec10e15a2f142
2,587
py
Python
commom/general_choices.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
commom/general_choices.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
commom/general_choices.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
IMAGE_FORMATS = ('PNG', 'JPG', 'JPEG') SMALLINT_DEBIT_CREDIT = ((0, 'Débito'), (1, 'Crédito')) SMALLINT_BOOLEAN = ((0, 'Não'), (1, 'Sim')) SMALLINT_ACTIVE = ((0, 'Inativo'), (1, 'Ativo')) COIN_ASCII_SYMBOL = ( ('BLR', 'Brasul Real'), ('USD', 'Dólar Americano') ) COUNTRY_ASCII_SYMBOL = ( (...
26.670103
63
0.447623
ac3c904c66dfb145d7c03ac6f157cf3d264bea9b
470
py
Python
gemtown/musicians/urls.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/musicians/urls.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/musicians/urls.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "users" urlpatterns = [ path("all/", view=views.ListAllMusicians.as_view(), name="all_musicians"), path("<int:user_id>/register/", view=views.MusicianRegister.as_view(), name="create_musician"), path("<int:musician_id>/unregister/", view=views...
47
111
0.710638
ceb3bd4a507745c1b938c80e00fd772b1ebac03b
1,863
py
Python
Hackergame_2020/从零开始的记账工具人/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2020/从零开始的记账工具人/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2020/从零开始的记账工具人/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from openpyxl import load_workbook from util import to_rmb_upper import cn2an wb = load_workbook(filename='bills.xlsx') ws = wb['Sheet1'] res = 0 for i in range(2, 1002): a: str = ws["A%d" % i].value b: str = ws["B%d" % i].value str = a str = str.replace("整", "") str = str.replace("佰", "*100+")...
23.2875
49
0.479871
ced5ebf4fb462aab4a275eaf9cdb899350bdde23
7,675
py
Python
frappe-bench/apps/erpnext/erpnext/selling/doctype/quotation/test_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/doctype/quotation/test_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/doctype/quotation/test_quotation.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt, add_days, nowdate, add_months import unittest test_dependencies = ["Product Bundle"] class TestQuotation(...
31.584362
100
0.753746
0cbfb2721e358a4313abdbcbf7c70f6ac0aca2cc
3,350
py
Python
test/test_npu/test_network_ops/test_grid_sampler_2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_grid_sampler_2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_grid_sampler_2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
43.506494
85
0.665373
b2e96119c11ce8ae3e17ef1bc74c3848858c8b86
791
py
Python
Python/Classes/find_the_torsional_angle.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Classes/find_the_torsional_angle.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Classes/find_the_torsional_angle.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
import math class Vect(): def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __mul__(self, o): return self.x * o.x + self.y * o.y + self.z * o.z def __sub__(self, o): return Vect(o.x - self.x, o.y - self.y, o.z - self.z) def __abs__(self): r...
32.958333
88
0.532238
e8e8eda5168347a071b384d45ebb72df8052560f
2,908
py
Python
plotsspark_genres.py
moleop/Pyspark_MoviePlots
638b9b715119ed495a6c40660f78aca4739f85b6
[ "MIT" ]
null
null
null
plotsspark_genres.py
moleop/Pyspark_MoviePlots
638b9b715119ed495a6c40660f78aca4739f85b6
[ "MIT" ]
null
null
null
plotsspark_genres.py
moleop/Pyspark_MoviePlots
638b9b715119ed495a6c40660f78aca4739f85b6
[ "MIT" ]
null
null
null
from pyspark import SparkConf, SparkContext from pyspark.sql.types import * from pyspark.sql import * from pyspark.sql import functions as F def quiet_logs(sc): logger = sc._jvm.org.apache.log4j logger.LogManager.getLogger("org").setLevel(logger.Level.ERROR) logger.LogManager.getLogger("akka").setLevel(logger.Level...
42.764706
134
0.736589
689efe3560c9cdb8d4352b24070b5bd53e80035b
1,640
py
Python
src/resize.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
10
2018-01-11T01:15:15.000Z
2020-06-22T15:03:31.000Z
src/resize.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
src/resize.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os """ this script changes images size to the DCT table size. """ class ImageRisizer(object): def __init__(self, image_files): self.image_files = sorted(image_files) def resize(self, predict=False): images = self.yield_image() for i, image in ...
30.943396
102
0.509756
d7e7a0eb5aacb689cff183b928e0fc502b3f57e3
357
py
Python
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C02LinkedLists/questions/2.7-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Intersection # Given two singly linked lists, determine if the two lists intersect. # Return the intersecting node. # Note that the intersection is defined based on reference, not value. # That is, if tthe kth node of the first linked list is the exact same node by reference # as the jth node of the second link...
44.625
89
0.764706
0be22da0f0fdd9230837576e228013b35582daec
2,513
py
Python
repo/script.ezmaintenanceplus/service.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.ezmaintenanceplus/service.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.ezmaintenanceplus/service.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
import xbmc, xbmcaddon, xbmcgui, xbmcplugin, os, sys, xbmcvfs, glob import shutil import urllib2,urllib import re import time from resources.lib.modules import maintenance AddonID ='script.ezmaintenanceplus' packagesdir = xbmc.translatePath(os.path.join('special://home/addons/packages','')) thumbnails ...
40.532258
319
0.694389
f0f248c338878de8f47d2d9d116f5e3446011fca
381
py
Python
setup.py
UCL/mphy0021-2019-travel-planner-sukrire
5f8b3479b858c46a01b68ee866560dd28d5be47a
[ "MIT" ]
null
null
null
setup.py
UCL/mphy0021-2019-travel-planner-sukrire
5f8b3479b858c46a01b68ee866560dd28d5be47a
[ "MIT" ]
null
null
null
setup.py
UCL/mphy0021-2019-travel-planner-sukrire
5f8b3479b858c46a01b68ee866560dd28d5be47a
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='travelplanner', version='1.0', author='Sandro Moszczynski', author_email='ucapsmj@ucl.ac.uk', packages=['travelplanner'], install_requires=['numpy', 'pytest', 'matplotlib'], entry_points={ 'console_scripts': [ 'bus...
25.4
55
0.627297
a8a19ef9de162abc820f8236c2667d85306b48e1
92
py
Python
complex_to_polar.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
complex_to_polar.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
complex_to_polar.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
import cmath complexZ = complex(input()) print(abs(complexZ)) print(cmath.phase(complexZ))
15.333333
28
0.76087
768c97c4f9d41a81e0f58df454ceac0910965959
437
py
Python
leetcode/114-Flatten-Binary-Tree-to-Linked-List/FlattenBinTree2Llist_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/114-Flatten-Binary-Tree-to-Linked-List/FlattenBinTree2Llist_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/114-Flatten-Binary-Tree-to-Linked-List/FlattenBinTree2Llist_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param root, a tree node # @return nothing, do it in place def flatten(self, root): if root == None: return self.flatten(root.left) self.flatten(root.right) p = root if p.left == None: return p = p.left while p...
24.277778
37
0.498856
76a86a8f35ec4e3b6770551a346dad97e15772df
3,619
py
Python
bolt/discord/models/channel.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/channel.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/channel.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.base import Snowflake, Model, Field, ListField, Enum, Timestamp, SearchableList from bolt.discord.models.user import User from bolt.discord.permissions import Permission import os class ChannelType(Enum): GUILD_TEXT = 0 DM = 1 GUILD_VOICE = 2 GROUP_DM = 3 GUILD_CATEGORY =...
27.416667
105
0.667588
8c14075f9df607b3fac35d5c4136198afe4f41a6
549
py
Python
EssayScrapy/sentence_annotation.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
EssayScrapy/sentence_annotation.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
EssayScrapy/sentence_annotation.py
Superar/PLN
2ed5ea1f0ebb28ca8dd3729c064758bc5c2abcee
[ "MIT" ]
null
null
null
from nltk import sent_tokenize import os def main(): for root, dirs, files in os.walk("essay"): for file_path in files: file_r = open('essay/{}'.format(file_path), 'r') file_w = open('essay/annotation/{}'.format(file_path.split('/')[-1]), 'w') for line in file_r: ...
22.875
86
0.526412
50b9cb518832cfe43afca1309e9d6f103c961792
1,545
py
Python
03_Objektorientierung/circle_class.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
03_Objektorientierung/circle_class.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
03_Objektorientierung/circle_class.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Implementierung zur Übung from typing import Tuple from math import pi class Circle: """ Class for circles with radius and center point """ def __init__(self, cpoint: Tuple[float, float], radius: float): """ Create new circle object :param cpoint: centre point as tu...
24.52381
67
0.57411
e8bd2a9bb9d3dcbd870833624e0f8493125cdae7
1,534
py
Python
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/WindowsForensics/Scripts/Etl2Pcap/Etl2Pcap.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import subprocess import uuid import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def etl_to_pcap(etl_file_path, output_file_path): etl_file_path = os.path.abspath("./" + etl_file_path) output_file_path = os.path.abspath("./" + output_file_path) cmd = ["python", "/v...
31.958333
81
0.648631
7e5c386adf114a1a8f600f3ba0d3e175eacb32a6
161
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/python/7.1-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 7.1 Deck of Cards # Design the data structures for a generic deck of cards. # Explain how you would subclass the data structures to implement blackjack.
20.125
76
0.751553
70dd7ca2d24ec6182f5d9f1bd1d525b6c2eadcbb
4,509
py
Python
test/test_npu/test_network_ops/test_round.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_round.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_round.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
40.621622
79
0.593923
cb76ec3f7187c132f7bf3704a61ad482ae227008
230
py
Python
components/amp-utility/python/mqtt.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/mqtt.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/mqtt.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# -*- coding: UTF-8 -*- """ 模块功能:提供创建MQTT客户端,以及通过客户端进行功能发布和订阅 """ def download(url,path): """ 设置请求header参数 :param url(str): 请求的url :param path(str): 保存的文件路径 :returns: 0: 成功,其他: 失败 """ pass
8.846154
33
0.543478
69f28de678505c49dba1bd99a85b5f0061832b22
572
py
Python
migrations/versions/e759ca20884f_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/e759ca20884f_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/e759ca20884f_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: e759ca20884f Revises: 4a5c083c649b Create Date: 2021-09-08 14:38:28.975242 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "e759ca20884f" down_revision = "4a5c083c649b" branch_lab...
19.066667
88
0.730769
38e866d8e22ad2e5b9a9456fc9b7ab9eabcb5710
664
py
Python
HttpProxyServer.py
gamegrd/YY
39fca68d11956508fdbc094c9c319b7a7082722f
[ "Apache-2.0" ]
9
2016-10-17T04:57:47.000Z
2021-03-08T15:50:03.000Z
HttpProxyServer.py
SkyblueMr/YY
39fca68d11956508fdbc094c9c319b7a7082722f
[ "Apache-2.0" ]
1
2017-10-13T09:27:34.000Z
2017-10-13T09:27:34.000Z
HttpProxyServer.py
SkyblueMr/YY
39fca68d11956508fdbc094c9c319b7a7082722f
[ "Apache-2.0" ]
6
2017-06-07T01:27:42.000Z
2020-02-10T04:08:51.000Z
#!/usr/bin/env python import tornado.ioloop import tornado.iostream import tornado.netutil import hexdump import socket class ServerOnline(object): def on_connected(self): print '%s:%d OK' % (self.host, self.port) def connect(self, host, port): self.host = host self.port = port ...
22.896552
64
0.670181
2a33cb9f77df9242b43c8d892ac53dce05bea7a6
580
py
Python
mod/models/lecturedb.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/models/lecturedb.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/models/lecturedb.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2015-11-17 11:52:44 # @Author : jerry.liangj@qq.com from sqlalchemy import Column, String, Integer, ForeignKey from sqlalchemy.ext.declarative import declarative_base from db import engine Base = declarative_base() class LectureDB(Base): __tablename__ = '...
30.526316
58
0.698276
aadacf675acf1c1bb5d31642ce0f232f2210bcaf
310
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/102_herancas_simples/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/102_herancas_simples/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/102_herancas_simples/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from classes import Cliente, Aluno """ Associação - Usa | Agregação - Tem | Composição - É dono | Heranca - É """ c1 = Cliente('Pedro', 23) # print(c1.nome) c1.falar() c1.comprar() a1 = Aluno('Maria', 25) # print(a1.nome) a1.falar() a1.estudar() teste = Cliente('pedro', 25) print(teste.nome, teste.idade)
16.315789
70
0.658065
2ab043f2a1663079b72e3a6c47120aa7f8d1921f
9,905
py
Python
code/tests/test_chain.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/tests/test_chain.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/tests/test_chain.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
1
2019-06-05T09:10:30.000Z
2019-06-05T09:10:30.000Z
import test_abstractchain from chain import Chain from chain import Block from chainutil import Fork from mock import MagicMock from mock import patch from bitcoin import core from strategy import BlockOrigin from strategy import ActionException import test_util from bitcoin.core import CBlock class ChainTest(test_ab...
41.099585
98
0.70944
2d558ec34d325a885d5c86bb406351468abe4bd5
4,781
py
Python
scripts/figures/figure8/host_run_figure.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
scripts/figures/figure8/host_run_figure.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
scripts/figures/figure8/host_run_figure.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
import os import subprocess import matplotlib.pyplot as plt import numpy as np OUTPUT_FLAG = 'OpenSourceOutputFlag' systems = [ 'pipeswitch', 'no_memory_management', 'no_ipc_optimization', 'no_pin', 'unified_memory' ] models = [ 'resnet152', 'inception_v3', 'bert...
30.069182
138
0.572474
937c06ccadfb62d55b44ba4041f320972dce3d13
516
py
Python
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_texture/test_soil_texture.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_texture/test_soil_texture.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_texture/test_soil_texture.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestSoilTexture(unittest.TestCase): def test_texture_selection(self): soil_tex = frappe.get_all('Soil Texture', fields=['name'],...
36.857143
107
0.755814
a4f8185985cff8e30c24dbf5f00fbe5b99c111cc
102
py
Python
weidianying/app/home/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
1
2019-07-01T07:27:45.000Z
2019-07-01T07:27:45.000Z
weidianying/app/home/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
weidianying/app/home/__init__.py
cici258/flask-movie
6724cf8f3eb5404439647e9492acbddb5e419014
[ "MIT" ]
null
null
null
# coding:utf-8 from flask import Blueprint home = Blueprint("home", __name__) import app.home.views
14.571429
34
0.754902
106896342f3922a0781c5b32c5138407880fd673
367
py
Python
exercises/es/test_03_16_02.py
datakime/spacy-course
823c8f9831cd4d44d16cba073e1af06d8711b8ab
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/es/test_03_16_02.py
datakime/spacy-course
823c8f9831cd4d44d16cba073e1af06d8711b8ab
[ "MIT" ]
null
null
null
exercises/es/test_03_16_02.py
datakime/spacy-course
823c8f9831cd4d44d16cba073e1af06d8711b8ab
[ "MIT" ]
null
null
null
def test(): assert ( 'with nlp.select_pipes(disable=["parser"])' in __solution__ ), "¿Estás usando nlp.disable_pipes con los componentes correctos?" __msg__.good( "¡Perfecto! Ahora que has practicado los consejos y trucos de rendimiento, " "puedes pasar al siguiente capítulo y entre...
36.7
91
0.683924
eae8d95243a1b08846678ff3b2d7df19373d2167
1,243
py
Python
examples/LaTeX/recompile_grammar_obsolote.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/LaTeX/recompile_grammar_obsolote.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/LaTeX/recompile_grammar_obsolote.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """recompile_grammar.py - recompiles any .ebnf files in the current directory if necessary Author: Eckhart Arnold <arnold@badw.de> Copyright 2017 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not ...
27.021739
84
0.726468
f4a9015db06c81b2a898b9fde143783a69f58925
441
py
Python
INBa/2015/SHEMYAKIN_A_V/task_3_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_3_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SHEMYAKIN_A_V/task_3_31.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 31. # Напишите программу, которая выводит имя "Эмиль Эрзог", и запрашивает его псевдоним. Программа должна сцеплять две эти строки и выводить полученную строку, разделяя имя и псевдоним с помощью тире. # Шемякин А.В. # 24.5.16 print('Герой нашей сегодняшней программы - Эмиль Эрзог'); print("Все вер...
44.1
197
0.746032
87052cc275f9cec8eb00292a9496e726b472ab26
3,588
py
Python
bin/sml_reader.py
docdiesel/smartmetertools
3b7449c7a9069696af078631aa5440f53d0f57bc
[ "MIT" ]
1
2019-05-30T08:28:31.000Z
2019-05-30T08:28:31.000Z
bin/sml_reader.py
docdiesel/smartmetertools
3b7449c7a9069696af078631aa5440f53d0f57bc
[ "MIT" ]
null
null
null
bin/sml_reader.py
docdiesel/smartmetertools
3b7449c7a9069696af078631aa5440f53d0f57bc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ## ## sml_reader.py - reads sml data from smart meter ## - writes values as json to stdout ## ## This script was inspired by code and examples on volkszaehler.org [1]. ## Thanks to all who contribute to this project. Using this script, I read ## sml data from an EDL21 eHZ smart...
33.53271
122
0.662207
33abd2696eeb0b9ceab277b8aac07a0decd45f40
2,612
py
Python
plugins/tff_backend/migrations/_013_migrate_users.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/migrations/_013_migrate_users.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/migrations/_013_migrate_users.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.985075
90
0.720521
1d2b9b551aca9cc827718a4b04418c48f751f3f8
17,049
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/simpla/_pvehicle.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/simpla/_pvehicle.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/simpla/_pvehicle.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2017-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.eclipse.org/legal/epl-2....
42.6225
118
0.655405
635deadff02d1b89cf62544c096043955bc013f7
790
py
Python
data/dataGenerator.py
deaconu-sabin/das
e9fb0784cccb768d91c325e499db283fcffc6d91
[ "MIT" ]
null
null
null
data/dataGenerator.py
deaconu-sabin/das
e9fb0784cccb768d91c325e499db283fcffc6d91
[ "MIT" ]
null
null
null
data/dataGenerator.py
deaconu-sabin/das
e9fb0784cccb768d91c325e499db283fcffc6d91
[ "MIT" ]
null
null
null
#!/usr/bin/python import random ######################################################################### # Generate data like [ x, y, z] [ val = (c1*x + c2*y + c3*z + noise) ] # # where x,y,z are random numbers and c1, c2, c3 are coefficients(known) # ################################################################...
27.241379
73
0.540506
63b230522d70a5df1e252664ebc47dead07232b1
369
py
Python
python/unittest/mock/medium/07_class_helpers/pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/07_class_helpers/pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/07_class_helpers/pricer.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from helper import Field COUNTRIES = ("US", "CN", "JP", "DE", "ES", "FR", "NL") class CountryPricer: DISCOUNT = 0.8 country = Field(type_="str", default=COUNTRIES[0]) def get_discounted_price(self, price, country): if country == self.country.value: return price * self.DI...
23.0625
55
0.571816
8987f96bcfe501e21fab7b0ee01c7574d13584bc
534
py
Python
PINp/2014/MASHAEVA_ANGELINA/task_5_35.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/MASHAEVA_ANGELINA/task_5_35.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/MASHAEVA_ANGELINA/task_5_35.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5 Вариант 35 # Напишите программу, которая бы при запуске случайным образом отображала название одной из двенадцати линий московского метрополитена. # 24.03.2016 import random metro=("Сокольническая","Замоскворецкая","Арбатско-Покровская","Филёвская","Кольцевая","Калужско-Рижская","Таганско-Краснопресненская",...
59.333333
225
0.801498
982914ae12fcc93f5ee3258cefff613cabf52afe
262
py
Python
Webpage/arbeitsstunden/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/admin.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import * admin.site.register(season) admin.site.register(account) admin.site.register(costCenter) admin.site.register(project) admin.site.register(work) admin.site.register(customHours)
23.818182
32
0.812977
982a64aa9bc11b931f8e737bdc21601b217a9f23
562
py
Python
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/csv/fou.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/csv/fou.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week3/COURSERA/week_3/csv/fou.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def update_csv(old_name, new_name): import csv fin = open(old_name) fout = open(new_name,'w',newline = '') ct = 0 tot_weight = 0.0 for row in csv.reader(fin): if row[0]!="Date": ct = ct + 1 tot_weight = tot_weight + float(row[1]) csv.writer(fout).writ...
24.434783
51
0.592527
f6dae393d77f190cff7ed219c2440650baf53ce1
3,257
py
Python
Tools/Sqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Tools/Sqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Tools/Sqli.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# uncompyle6 version 2.11.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41) # [GCC 9.3.0] # Embedded file name: Tools\Sqli.py import requests import re from Exploits import printModule from Tools import cpanel from BruteForce import FTPBruteForce Headers = {'User-Agent':...
41.227848
106
0.515812
100e699dcba70ed8720e4801f87c65e9c0190675
374
py
Python
src/onegov/core/orm/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/orm/types/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm.types.hstore_type import HSTORE from onegov.core.orm.types.json_type import JSON from onegov.core.orm.types.utcdatetime_type import UTCDateTime from onegov.core.orm.types.uuid_type import UUID from onegov.core.orm.types.lowercase_text_type import LowercaseText __all__ = [ 'HSTORE', 'JSON',...
26.714286
67
0.76738