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
2ad510840393706312e8a9042d8e681adabb92dd
5,918
py
Python
research/cv/3dcnn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/3dcnn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/3dcnn/train.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...
41.097222
119
0.654444
932ad9ddf0958ae3c162c7a3f4dcdbffcfd73ceb
2,963
py
Python
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-scipy_image_operations_imageio.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-scipy_image_operations_imageio.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-scipy_image_operations_imageio.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ python_numpy_tutorial-scipy_image_operations_imageio.py TODO: Fix the following error and make this code work. img_tinted = Image.resize( (300,300), img_tinted ) AttributeError: module 'PIL.Image' has no attribute 'resize' This Python script is an attempt to chan...
34.453488
92
0.673304
357c113deba3325f0bce2ce2b40587f14399856f
1,647
py
Python
angstrom/2019/crypto/Lattice_ZKP/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
angstrom/2019/crypto/Lattice_ZKP/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
angstrom/2019/crypto/Lattice_ZKP/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import binascii import numpy as np import socketserver from Crypto.Util.asn1 import DerSequence import lwe welcome = rb''' __ __ __ _ __ / /___ _/ /_/ /_(_)_______ ____ / /______ / / __ `/ __/ __/ / ___/ _ \ /_ / / //_/ __ \ / / /_/ / /_/ /_/ / /__/ __/ / /_/ ,...
22.561644
67
0.593807
ea087e5925fd7b2f72343faa19fd6ece520088e2
2,607
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/lazy_evaluation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/lazy_evaluation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/creational/lazy_evaluation.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" Lazily-evaluated property pattern in Python. https://en.wikipedia.org/wiki/Lazy_evaluation *References: bottle https://github.com/bottlepy/bottle/blob/cafc15419cbb4a6cb748e6ecdccf92893bb25ce5/bottle.py#L270 django https://github.com/django/django/blob/ffd18732f3ee9e6f0374aff9ccf350d85187fac2/django/utils/function...
24.59434
109
0.666667
ea10e3c7d477ce06b9f9252b4e1a976482c155f2
330
py
Python
INBa/2015/KODZOKOV_M_M/task_2_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/KODZOKOV_M_M/task_2_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/KODZOKOV_M_M/task_2_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Эпиктет. #Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Кодзоков М.М., 25.05.2016 print("Раб тот, кто не умеет владеть собою\n\t\t\tЭпиктет") input("Нажмите ENTER для про...
47.142857
129
0.787879
57fbb069477c6ff607e69e28b7f80085bb4ba7c9
1,365
py
Python
transonic/analyses/parser.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/parser.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/parser.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
"""Parser using tokenize ======================== """ from tokenize import tokenize, COMMENT from io import BytesIO def parse_transonic_def_commands(code: str): """Parse the code of a .py file and return data""" functions = set() signatures_func = {} in_def = False g = tokenize(BytesIO(code.e...
29.673913
71
0.520879
10932030fa41257e8dd6e9190eea0bc62b204790
6,526
py
Python
tests/test_profiles.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
tests/test_profiles.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
tests/test_profiles.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from typing import Any, Dict, Optional from uuid import uuid4 import pytest from pydantic import ValidationError from volley import Engine from volley.config import get_configs, import_module_from_string from volley.profiles import ConnectionType, Profile, construct_profiles def test_non_exist_profile() -> None: ...
37.291429
118
0.708397
52ac8157fa75988faed32d9133352cd4cb672c27
3,101
py
Python
lexicon_method/textblob_de.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
lexicon_method/textblob_de.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
lexicon_method/textblob_de.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
""" Created by Florian Fricke. """ from textblob_de import TextBlobDE as TextBlob from sklearn import metrics from tqdm import tqdm from utilities.utilities import transform_data from utilities.utilities import plot_confusion_matrix import pickle import matplotlib.pyplot as plt class TextBlobSentimentAnalysis: de...
41.905405
178
0.558207
5e07c79526dedcf7f19aef091dd62ad76fa298db
11,069
py
Python
module/classification_package/src/loss_functions.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/src/loss_functions.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/src/loss_functions.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import torch import torch.nn as nn import torch.nn.functional as F class QuadrupletLoss(object): def __init__(self, adaptive_margin = False): super().__init__() self.adaptive_margin = adaptive_margin def __call__(self, embeddings, labels, margin=2.0): """Build the quadruplet and trip...
42.409962
148
0.686151
f4ceb7399927dda590ce30dc78546cf4b870cf30
1,392
py
Python
codeit/oop/liskov_substitution_principle/rectangle_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/liskov_substitution_principle/rectangle_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/liskov_substitution_principle/rectangle_wrong.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Rectangle: """직사각형 클래스""" def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height @property def width(self): return self._width @width.setter def width(self, value): self._wid...
20.173913
48
0.599138
f4dfcfd4ad36d4c18a510fe330f8302e6c51a53e
5,709
py
Python
official/recommend/deep_and_cross/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/deep_and_cross/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/deep_and_cross/src/config.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...
46.040323
119
0.661762
0daf6b77109700c0e297f38b5d13cb9a9dd69b5c
103
py
Python
examples/relationship/manytoonefield/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/relationship/manytoonefield/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/relationship/manytoonefield/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.apps import AppConfig class ManytoonefieldConfig(AppConfig): name = 'manytoonefield'
17.166667
38
0.786408
0dec1634dbde023d2211711b7c9f936628dae9ae
1,360
py
Python
register.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
register.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
register.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
from PyQt5.QtWidgets import QDialog, QMessageBox from PyQt5 import uic from dbm import * from main import Main import os class Registration(QDialog): def __init__(self): super().__init__() uic.loadUi("designer/registration.ui", self) self.setWindowTitle("Регистрация") self.dbm = Da...
34.871795
85
0.531618
2194612ecc659aece4bd749831b2d010e509c9d2
248
py
Python
backend/apps/mapview/urls.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/mapview/urls.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/mapview/urls.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path("", views.index, name="index"), path("facilities", views.facilitiesJSON, name="facilitiesJSON"), path("supporters", views.supportersJSON, name="supportersJSON"), ]
24.8
68
0.705645
21ae18135551515418f5686d42edae9f961bb492
167
py
Python
benwaonline/gateways/image_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/gateways/image_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/gateways/image_gateway.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from benwaonline.gateways import EntityGateway class ImageGateway(EntityGateway): _entity = 'image' class PreviewGateway(EntityGateway): _entity = 'preview'
20.875
46
0.778443
df93b98f21b29fa2c56952989d6c038ea8a49372
181
py
Python
config/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
config/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
config/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from .decorators import singleton from .log import Logger from .target import Target from .job import Job from .spider_count import SpiderCount from .config import Config as CONFIG
25.857143
37
0.823204
637e63ab4f6834549506655a4fc7db8f8becc889
1,012
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/regression_tests.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/test/regression_tests.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/test/regression_tests.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" when bugs are identified post-release, put tests here to make sure they don't happen again """ import pybedtools import pybedtools.featurefuncs import pybedtools.helpers from nose.tools import assert_raises def test_midpoint(): """ regression test for #98 """ a = """chr1 3052874 3053149 chr1 3...
25.3
92
0.706522
893ee60d071e7075a9a2734632b66fe37384c9c5
3,639
py
Python
official/recommend/tbnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/tbnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/tbnet/eval.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...
30.838983
115
0.656224
7f69a9b79e43f9b96f7c8b05dce5024aa37d34f2
329
py
Python
src/python/py-accepted/58A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/58A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/58A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 58A # Created on : 2019-01-14 23:43:53 def Main(): s = input() hello = 'hello' j = 0 for i in range(len(hello)): j = s.find(hello[i], j) if j is -1: print('NO') return j += 1 print('YES') if __name__ == '__main__': ...
14.304348
36
0.446809
f6a33730f7942ad6a4d164a9a4d5f5e6795b2b90
474
py
Python
python_playground/data/queryGen.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/queryGen.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/queryGen.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
# query generator # method: 0: 1,2,3,4,5 , 10: 11, 12,13,14,15... def queryGen(data_name=None): if data_name is None: query_pairs = [] for i in range(0, 200): for j in range(i + 1, i + 6): query_pairs.append((i, j)) return query_pairs else: # load loc...
19.75
51
0.535865
1270faeab0582fd9865cfefd88020d54725a8868
5,211
py
Python
test/test_npu/test_network_ops/test___iand__.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___iand__.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___iand__.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # 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/lice...
38.036496
97
0.681059
c3abeb5c235937838819ed70606587bf57a21f75
4,690
py
Python
src/rsa.py
ahmadnaufalhakim/rsa-algorithm
40b8a0d0531620221318146dd6c800a592cb4390
[ "MIT" ]
null
null
null
src/rsa.py
ahmadnaufalhakim/rsa-algorithm
40b8a0d0531620221318146dd6c800a592cb4390
[ "MIT" ]
null
null
null
src/rsa.py
ahmadnaufalhakim/rsa-algorithm
40b8a0d0531620221318146dd6c800a592cb4390
[ "MIT" ]
null
null
null
import os import prime class RSA : datadir = '..\\data' def __init__(self): self.p = 0 self.q = 0 self.n = 0 self.phi_n = 0 self.e = 0 self.d = 0 self.public_key = (self.e, self.n) self.private_key = (self.d, self.n) def is_coprime(self, r, ...
29.130435
96
0.547548
61759493bfceb4b02a1776d298d6868b28d83d91
358
py
Python
zencad/examples/OpenscadLike/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/OpenscadLike/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/OpenscadLike/logo.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from zencad import * def logo(size=50): hole = size / 2 cylinderHeight = size * 1.25 cil = cylinder(r=hole / 2, h=cylinderHeight, center=True) m = sphere(r=size / 2) - cil - cil.rotateX(deg(90)) - cil.rotateY(deg(90)) return m, cil m, cil = logo(50) hl(...
15.565217
78
0.611732
61b0425d6aa02e4d1e957c59da390500573eab8a
97
py
Python
fileOperate/apps.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
8
2020-07-11T14:11:11.000Z
2022-01-27T05:06:07.000Z
fileOperate/apps.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
null
null
null
fileOperate/apps.py
MaoningGuan/FileService
d55fee19a0c96f2cc6dda187d331389b9ae192d3
[ "MIT" ]
4
2020-07-11T14:11:17.000Z
2022-01-27T05:06:11.000Z
from django.apps import AppConfig class FileoperateConfig(AppConfig): name = 'fileOperate'
16.166667
35
0.773196
9c929341976fe3f7ad81aa19f66fabe498336d6a
6,057
py
Python
Fortgeschrittenenpraktikum/Protokolle/V14_Tomographie/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V14_Tomographie/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V14_Tomographie/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import numpy as np from scipy.stats import sem from uncertainties import ufloat import uncertainties.unumpy as unp import matplotlib.pyplot as plt import scipy.constants as sc from scipy.optimize import curve_fit from numpy.linalg import inv A = np.matrix([[0, 0, 0, 0, 0, np.sqrt(2), 0, np.sqrt(2), 0], ...
36.932927
144
0.64669
9cc08564e8bc327e93ba9ed52cb3ffd1664a882f
46,582
py
Python
src/build_diagram/build_diagram.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/build_diagram/build_diagram.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/build_diagram/build_diagram.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
# pylint: disable=unused-wildcard-import, method-hidden # pylint: disable=unused-import # pylint: disable=wildcard-import # pylint: disable=too-many-instance-attributes # pylint: disable=too-many-statements # pylint: disable=too-many-nested-blocks """ build_diagram.py Dynamically creates the diagram """ import ipaddres...
48.522917
120
0.517861
9cfaf03f6e550a21133603d39e67c7518f56db14
37
py
Python
twitter_listener/nlp/__init__.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
twitter_listener/nlp/__init__.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
twitter_listener/nlp/__init__.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
from .clean_text import TextCleaner
18.5
36
0.837838
210c796d4c09ca94dfc8be3d494131513f09c767
2,963
py
Python
crypto/cbc-server/cbc-server.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/cbc-server/release/cbc-server.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/cbc-server/release/cbc-server.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python from Crypto.Cipher import AES import os, sys class Unbuffered(object): def __init__(self, stream): self.stream = stream def write(self, data): self.stream.write(data) self.stream.flush() def writelines(self, datas): self.stream.writelines(datas) ...
30.546392
83
0.512656
25b9559c55187d880a08a68d10042806b8a44a34
652
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/memory_template_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/memory_template_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/memory_template_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# implementation of card game - Memory import simplegui import random # helper function to initialize globals def new_game(): pass # define event handlers def mouseclick(pos): # add game state logic here pass # cards are logically 50x100 pixels in size def draw(c...
18.111111
50
0.702454
25c2e01126d992236bc30a301c75d2d4a47f2695
15,344
py
Python
tests/onegov/election_day/layouts/test_election_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_election_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_election_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from freezegun import freeze_time from onegov.ballot import Candidate from onegov.ballot import Election from onegov.ballot import ElectionAssociation from onegov.ballot import ElectionResult from onegov.ballot import ListConnection from onegov.ballot import PanachageResult from onegov.ballot ...
39.043257
79
0.616071
d37d448354c365ed6a7a1ba9889280ca61c60c73
44,625
py
Python
api/dashan_query.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
api/dashan_query.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
api/dashan_query.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
""" dashan_query.py """ import os, sys, traceback import functools import json import datetime import logging import pytz import requests import asyncio import asyncpg from jhapi_io import JHAPI from monitoring import APIMonitor import dashan_universe.transforms as transforms from time import sleep import random # G...
40.058348
178
0.640179
6cc83945af42f806a3b6b597ed883a61e498cf50
332
py
Python
DeepRTS/python/__init__.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2020-01-08T22:20:37.000Z
2020-01-08T22:20:37.000Z
DeepRTS/python/__init__.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
1
2021-11-11T18:39:56.000Z
2021-11-11T22:15:59.000Z
DeepRTS/python/__init__.py
Yigit-Arisoy/deep-rts
a5ed2c29b76789830df9f7075480c7229ccf0f4d
[ "MIT" ]
null
null
null
from DeepRTS.python import _py_util as util from DeepRTS.python._py_config import Config from DeepRTS.python._py_sprites import Sprites from DeepRTS.python._py_gui import GUI from DeepRTS.python._py_deeprts import Game from DeepRTS.python._py_cppbridge import GameBridge from DeepRTS.python._py_game_arguments import Gam...
36.888889
59
0.86747
9f6fd65a2d634b09f3edabd30362f9e6b4350b78
1,058
py
Python
src/onegov/town6/views/form_submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/form_submission.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Public, Private from onegov.org.views.form_submission import handle_pending_submission from onegov.form import ( PendingFormSubmission, CompleteFormSubmission ) from onegov.town6 import TownApp from onegov.town6.layout import FormSubmissionLayout @TownApp.html(model=PendingFor...
40.692308
70
0.748582
9fb1a821efe9d86b7f0cf237f8f38f6f7ca57337
1,735
py
Python
marsyas-vamp/marsyas/scripts/Python/icme2011_linear_interpolate_pitch_contour.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/icme2011_linear_interpolate_pitch_contour.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/Python/icme2011_linear_interpolate_pitch_contour.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Read in a collection file of pitch contours in .txt format and linearlly interpolate # them to have 100 values # import sys import os import datetime import commands import re import numpy as np if len(sys.argv) != 4: print "Usage: icme2011_linear_interpolate_pitch_contour.py pitch_contours...
23.767123
108
0.69049
2c6ef63579f8ee8af4c89e0ad4588527dde6810f
273
py
Python
http_server_py.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
2
2020-05-14T09:56:24.000Z
2020-07-03T12:51:59.000Z
http_server_py.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
null
null
null
http_server_py.py
cbrozmann/PageTransitionThesis
b140f7bfaba681e551aa545c1a6e83cff284f533
[ "Apache-2.0" ]
null
null
null
import http.server import socketserver PORT = 8080 Handler = http.server.SimpleHTTPRequestHandler with socketserver.TCPServer(("", PORT), Handler) as httpd: print("serving at http://localhost:"+ str(PORT)+ " or http://127.0.0.1:"+str(PORT)) httpd.serve_forever()
27.3
87
0.721612
2caf409f85b9661c054e27cfed46017d93c9b74f
746
py
Python
bolt/discord/models/invite.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/invite.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/invite.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 Model, Field, Timestamp from bolt.discord.models.guild import Guild from bolt.discord.models.channel import Channel from bolt.discord.models.user import User class Invite(Model): code = Field(str) guild = Field(Guild) channel = Field(Channel) target_user = Field(Us...
25.724138
60
0.702413
3908e58fc3032b896571239ace66127836971d43
1,333
py
Python
repo/plugin.video.tagesschau/tagesschau_json_api_test.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.tagesschau/tagesschau_json_api_test.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.tagesschau/tagesschau_json_api_test.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
# # Copyright 2012 Henning Saul, Joern Schumacher # # This program 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. # # This program is...
35.078947
97
0.735184
1a52c02817bc6c29f7fa5b0d5b62ebe824397a31
3,432
py
Python
src/test/tests/operators/radial_resample.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/radial_resample.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/operators/radial_resample.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: radial_resample.py # # Tests: mesh - 2D rectilinear, single domain, # 3D rectilinear, single domain # 3D unstructured, multiple domain # ...
25.422222
78
0.735431
2023fb5c91b19d07fa43824de87061967e86a575
513
py
Python
20-fs-ias-lec/groups/06-longFi/localEther/connect.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/06-longFi/localEther/connect.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/06-longFi/localEther/connect.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import receiveEther import sendEther import split import time def sender(packet, interface): #packet = get_i_have_list packet = split.split_data(packet) time.sleep(2) sendEther.send_len(packet, interface) time.sleep(4) sendEther.send_packet(packet, interface) def receiver(interface): ...
16.548387
52
0.711501
64ab3544724934a991a0858b5b7718856273fb9b
1,488
py
Python
tests/unit/samplers/test_mesh_samplers.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
tests/unit/samplers/test_mesh_samplers.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
tests/unit/samplers/test_mesh_samplers.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import pytest from pyntcloud.samplers import RandomMeshSampler @pytest.mark.parametrize("n", [ 1, 5, 10, 50, 100 ]) @pytest.mark.usefixtures("diamond") def test_RandomMeshSampler_n_argument(diamond, n): sampler = RandomMeshSampler( pyntcloud=diamond, n=n, rgb=True, ...
21.565217
81
0.612231
64c2490e63bcf6c0bf9f042fd2e90c4a3ab8e621
2,600
py
Python
Tensorflow_basic_test/X_test/XOR_3.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
Tensorflow_basic_test/X_test/XOR_3.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
Tensorflow_basic_test/X_test/XOR_3.py
TrunkingW/Deep_Learning
85add772a2c613f8034985872eb3e44683d47bee
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import sys isTrain = input('是否訓練(Y/N)?') if isTrain == 'Y' or isTrain == 'y': X = np.loadtxt('Train_data_X.txt', delimiter=',') Y = np.loadtxt('Train_data_Y.txt', delimiter=',') Y = np.reshape(Y,(len(Y),1)) else: X = np.loadtxt('input_data_X.txt', delimiter=',') ...
24.761905
95
0.653462
805d2e6963ed660b47b432a4c3569dbbe3254f67
9,336
py
Python
addition_module/DSDG/DUM/models/CDCNs_u.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1
2022-02-07T02:03:37.000Z
2022-02-07T02:03:37.000Z
addition_module/DSDG/DUM/models/CDCNs_u.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
addition_module/DSDG/DUM/models/CDCNs_u.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn.functional as F import torch.utils.model_zoo as model_zoo from torch import nn from torch.nn import Parameter import pdb import numpy as np class Conv2d_cd(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilat...
35.097744
117
0.57048
206dc256da14edc760fdfbfdbe29e02da4fadf7f
2,448
py
Python
src/onegov/election_day/views/election/lists.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/lists.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/lists.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Election from onegov.core.security import Public from onegov.election_day import ElectionDayApp from onegov.election_day.layouts import DefaultLayout from onegov.election_day.layouts import ElectionLayout from onegov.election_day.utils import add_last_modified_header from onegov.election_day.u...
24.48
69
0.685866
45bca0fb845635ea65c74ea4926e74eaf5e78c02
812
py
Python
bolt/discord/models/__init__.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/__init__.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/__init__.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.message import * from bolt.discord.models.user import * from bolt.discord.models.emoji import * from bolt.discord.models.channel import * from bolt.discord.models.embed import * from bolt.discord.models.guild import * __all__ = [ "MessageType", "Reaction", "Attachment", "Messag...
19.333333
41
0.616995
afff42266eff50a76b2eb6d80e74358665dfbf51
1,612
py
Python
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Campaign/Scripts/ShowCampaignSenders/ShowCampaignSenders_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import pytest import ShowCampaignSenders INCIDENT_IDS = [{"id": '1'}, {"id": '2'}, {"id": '3'}] DEMISTO_RESULT = [ { 'Contents': '[{"emailfrom": "example1@support.com"}, {"emailfrom": "example2@support.co"}, ' '{"emailfrom": "example1@support.com"}, {"ema...
37.488372
100
0.636476
f3c64c9ca8d3799586bbb28183fc89c100201245
418
py
Python
BITs/2014/Abdrahmanova_G_I/task_1_1 .py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_1_1 .py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Abdrahmanova_G_I/task_1_1 .py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 1. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Саид-Мурадзола Садриддин. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. print('Саид-Мурадзола Садриддин - таджикский писатель,ученый, общественный деятел...
69.666667
216
0.818182
3457a1c5595bfb2e1e6274d46a6344a16091601e
244
py
Python
Lab1/Task[10-12].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[10-12].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
Lab1/Task[10-12].py
ValeriyMartsyshyn/HelloPython
badcf85bc54e889eed0286b420e5cabe68da8572
[ "MIT" ]
null
null
null
import random #task 10 x=random.randint(1,50) y=random.randint(2,5) print(x) print(y) print(x**y) #task11 randnumb=random.uniform(1,10) print(round(randnumb,2)) #task12 kg=float(input("enter your weight in kg: ")) print(round(kg*2.2, 1))
12.2
44
0.70082
1b917c83c4fc760b68404358b64b8492a5113d6f
536
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_4/update_purchase_cost_against_project.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/patches/v5_4/update_purchase_cost_against_project.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_4/update_purchase_cost_against_project.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): for p in frappe.get_all("Project"): purchase_cost = frappe.db.sql("""select sum(ifnull(base_net_amount, 0)) from ...
41.230769
81
0.753731
1baec5324266100f83cacd2632f097b80ee8e1c1
2,099
py
Python
rulebased-algo/epuck_collector/epuck_collector.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
rulebased-algo/epuck_collector/epuck_collector.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
rulebased-algo/epuck_collector/epuck_collector.py
bjarnege/Portfolioleistung-KI-Entwicklungen
27be45e3735421a5dd8441cc76ab69da52678304
[ "MIT" ]
null
null
null
"""epuck_collector controller.""" # You may need to import some classes of the controller module. Ex: from controller import Robot, Receiver, Motor import logging as log import msgpack from rulebasedAlgo import CollectorLogik # create the Robot instance. robot = Robot() # get the time step of the current world. time...
31.328358
104
0.737018
1bc73eb2cc246e92d6c0324495ea7dd4b87fa681
6,361
py
Python
deprecated/examples/deepFM/model.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/deepFM/model.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/deepFM/model.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
#!/usr/bin/python # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
42.125828
91
0.577739
59eda5869facbfc774e8e92e8c1a73d6d40cccae
2,960
py
Python
programm/wingamepad_pygame.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/wingamepad_pygame.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/wingamepad_pygame.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf8 import pygame pygame.init() def main(): screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption("Joystick Testing / XBOX360 Controller") background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((255, ...
44.179104
102
0.544595
9453fa6bf1dad86384fd719e09f15736c282ced5
838
py
Python
Kapitel_1/_6_dunder_other.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_1/_6_dunder_other.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_1/_6_dunder_other.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Klassendeklaration mit Konstruktor, 'Dunder'-Add und 'Dunder'-GreaterThan --- # class Person: def __init__(self, vermoegen): self.vermoegen = vermoegen # self + other def __add__(self, other): return self.vermoegen + other.vermoegen # self > other def __gt__(self, other): ...
31.037037
90
0.657518
84e11cefbe4eb25da3afe016444ddcfb97082397
224
py
Python
python_experiments/playground/playground.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/playground/playground.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/playground/playground.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import json if __name__ == '__main__': my_str = "hello 1112.3 s" print(my_str.split('hello')[-1].split('s')[0]) with open('../data_analysis/data-json/accuracy_result.json') as ifs: print(json.load(ifs))
28
72
0.638393
611b6b37db4e5e79af8e006a2c98b05cf177b19d
990
py
Python
src/onegov/translator_directory/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Secret from onegov.org.models import Organisation from onegov.translator_directory import TranslatorDirectoryApp from onegov.translator_directory.forms.settings import \ TranslatorDirectorySettingsForm from onegov.translator_directory.layout import DefaultLayout from onegov.translat...
30
73
0.737374
fcaf891295a86b3f8f464bfa2f7607fe6563ff43
725
py
Python
Curso-Em-Video-Python/2Exercicios/087_mais_sobre_matriz.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/087_mais_sobre_matriz.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/087_mais_sobre_matriz.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]] par = 0 impar = soma = maior = 0 for l in range(0, 3): for c in range(0, 3): matriz[l][c] = int(input(f'Digite um valor para [{l}, {c}]: ')) print('=-' * 30) for l in range(0, 3): print(f'[{matriz[0][l]:^3}]', end=' ') print() for l in range(0, 3): print(f'...
25
71
0.496552
785ee5adf6e4de5de49d65f8d70e2bb52d5194ec
1,476
py
Python
2018/beginners/pwn-fridge-todo-list/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/beginners/pwn-fridge-todo-list/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/beginners/pwn-fridge-todo-list/doit.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/env python2 #Copyright 2018 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 agree...
28.941176
84
0.718835
15ba4b2362040e55d5d9fb7103d329de5c3bd13b
1,278
py
Python
app/src/main/python/test.py
snfiware/szbsb
092279f6ac1a322e618b7f357b778555983ed54b
[ "Apache-2.0" ]
2
2020-04-28T19:11:13.000Z
2020-04-28T19:11:19.000Z
app/src/main/python/test.py
snfiware/szbsb
092279f6ac1a322e618b7f357b778555983ed54b
[ "Apache-2.0" ]
null
null
null
app/src/main/python/test.py
snfiware/szbsb
092279f6ac1a322e618b7f357b778555983ed54b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime, date import os import os.path import sys import platform from os import environ from pathlib import Path print("cwd") print(os.getcwd()) print("home: %s\npath.home: %s"%(os.path.expanduser('~'),Path.home())) print("argv: %s"%sys.argv) #print("pla...
37.588235
114
0.682316
ec993f9265c6f88a4b295cda8eb4f0639e4690e6
2,808
py
Python
nutrif-face-detection/webcam.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
3
2017-09-22T14:33:54.000Z
2020-07-05T20:01:13.000Z
nutrif-face-detection/webcam.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
2
2017-05-26T23:15:30.000Z
2021-12-14T21:05:56.000Z
nutrif-face-detection/webcam.py
LADOSSIFPB/nutrif
232f519b708cef199dcc2ef3485240cacf57612c
[ "Apache-2.0" ]
2
2016-06-02T23:45:41.000Z
2020-07-05T20:01:24.000Z
import cv2 import sys import logging as log import datetime as dt cascades = [ # { 'file':'haarcascade_eye.xml','label':'eye' }, # { 'file':'haarcascade_eye_tree_eyeglasses.xml','label':'eyeglasses' }, # { 'file':'haarcascade_frontalcatface.xml','label':'frontalcatface' }, # { 'file':'haarcascade_frontalcatface_extend...
38.465753
105
0.654558
01b70b0f941ee23e8e3b06b75aa822514d80bbe9
1,990
py
Python
901-FFT/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
901-FFT/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
901-FFT/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
from math import sin, cos, pi from timeit import timeit def _round(a): a = [complex(round(i.real, 6), round(i.imag, 6)) for i in a] return a def fft(a): # Recursive function of FFT n = len(a) # if input contains just one element if n == 1: return a # For storing n complex nth roots...
26.891892
67
0.573869
bd87b7ca08e60368b1cc870568631b5c660bc855
1,460
py
Python
tests/plugins/test_drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
tests/plugins/test_drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
tests/plugins/test_drop.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from pathlib import PurePath import pytest from hausse.lib import Element, Project from hausse.plugins import Drop def test_drop_simple_pattern(): d1 = Element(PurePath("a/b/c")) d2 = Element(PurePath("a/b/f")) d3 = Element(PurePath("a/k/c")) d4 = Element(PurePath("a/k/d/c")) project = Project(...
22.121212
42
0.642466
16fe07727a164cf3c0155f55cf9f54a9cc9f12d3
5,793
py
Python
graph_network/util/param_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
null
null
null
graph_network/util/param_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
null
null
null
graph_network/util/param_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
null
null
null
import argparse import codecs import json import math import os.path import numpy as np import tensorflow as tf __all__ = ["create_default_hyperparams", "load_hyperparams", "generate_search_lookup", "search_hyperparams", "create_hyperparams_file"] def create_default_hyperparams(config_type): """create...
41.978261
120
0.644571
e509bb80c9070eee125d8899f400c07804c8990d
338
py
Python
src/bias_mitigator/run_bias_mitigation.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/bias_mitigator/run_bias_mitigation.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/bias_mitigator/run_bias_mitigation.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import sys import torch.cuda from src.bias_mitigator.create_adv_token import create_adversarial_tokens from src.bias_mitigator.eval_triggers import evaluate_tokens def run(params): if params.run_mode.find_triggers: create_adversarial_tokens(params) if params.run_mode.run_trigger_eval: evalua...
24.142857
73
0.804734
e5175347c240f98b52d70c699005fe6c2e69a2d0
638
py
Python
SleekSecurity/layers/plugins/fingerprint/framework/seagull.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/framework/seagull.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/framework/seagull.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from re import search,I def seagull(headers,content): _ = False _ |= search(r"<meta name\=\"generator\" co...
39.875
161
0.667712
e5339a50a9b251078299337bff96b9bdc5b63d8b
3,875
py
Python
test/markov_large_state_space.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
null
null
null
test/markov_large_state_space.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
3
2020-03-24T18:18:21.000Z
2021-08-23T20:37:09.000Z
test/markov_large_state_space.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
null
null
null
###################################################### # # Functions for markov processes with large state space # ###################################################### import numpy as np import pandas as pd import random import copy import pickle from matplotlib import pyplot as plt from sklearn.linear_model import L...
33.991228
122
0.596903
e57636c8f01b53ff8fc8ee95adfede83c2a516f7
6,242
py
Python
frappe-bench/apps/erpnext/erpnext/selling/report/sales_person_target_variance_item_group_wise/sales_person_target_variance_item_group_wise.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/report/sales_person_target_variance_item_group_wise/sales_person_target_variance_item_group_wise.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/report/sales_person_target_variance_item_group_wise/sales_person_target_variance_item_group_wise.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 import _, msgprint from frappe.utils import flt from erpnext.accounts.utils import get_fiscal_year from erpnext.controllers.tr...
36.080925
104
0.717558
daaa0106b5e89a786ca4564688de533601a2028b
3,574
py
Python
app/admin/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
app/admin/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/admin/forms.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
# coding:utf-8 from flask_wtf import Form from wtforms import SelectField, StringField, TextAreaField, SubmitField, PasswordField,IntegerField from wtforms.validators import DataRequired, Length, Email, EqualTo,NumberRange class CommonForm(Form): types = SelectField(u'博文分类', coerce=int, validators=[DataRequired()...
36.845361
100
0.730554
c1c76d78a76253a810aa76f6339c4ceecd8437c9
1,569
py
Python
codeit/oop/simulator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/simulator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
codeit/oop/simulator.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from vehicle import Vehicle from transports import Bicycle, NormalCar, SportsCar class DrivingSimulator: def __init__(self): self._vehicles = [] def add_vehicle(self, new_vehicle): if isinstance(new_vehicle, Vehicle): self._vehicles.append(new_vehicle) else: pr...
26.59322
77
0.673678
de0ae48d97233d4229fb4df604b9b101d473fde2
950
py
Python
python_reference/useful_scripts/univariate_rayleigh_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
python_reference/useful_scripts/univariate_rayleigh_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
python_reference/useful_scripts/univariate_rayleigh_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
import numpy as np def comp_theta_mle(d): """ Computes the Maximum Likelihood Estimate for a given 1D training dataset for a Rayleigh distribution. """ theta = len(d) / sum([x**2 for x in d]) return theta def likelihood_ray(x, theta): """ Computes the class-conditional probab...
25.675676
75
0.651579
e782c204f7ab8229a7f60a73a45663e803a18903
922
py
Python
src/onegov/wtfs/forms/user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/user_manual.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.form import Form from onegov.form.fields import UploadField from onegov.form.validators import FileSizeLimit from onegov.form.validators import WhitelistedMimeType from onegov.wtfs import _ class UserManualForm(Form): pdf = UploadField( label=_("PDF"), validators=[ Whiteli...
27.939394
61
0.58243
68dcca480a65813722902066c3fa4ea9716f21b2
6,551
py
Python
api/scripts/backgroundExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
api/scripts/backgroundExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
api/scripts/backgroundExtract.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ backgroundExtract.py -- A routine to extract a small subset from Google, Bing or national ortho imagery. Author: Guido Lemoine, European Commission, Joint Research Centre License: see git repository Version 1.2 - 2021-04-14 Revisions in 1.2: b...
39.70303
76
0.519768
6be26ac164f32ed91b959a5c92717767676cf678
5,287
py
Python
bets/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
bets/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
bets/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 19:36 from __future__ import unicode_literals import bets.util from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('profiles', '__first__')...
49.411215
128
0.583885
cf008a9863a8b6819354b4e93d35c7d856b5752a
1,409
py
Python
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PingCastle/Integrations/PingCastle/PingCastle_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
""" PingCastle Integration for Cortex XSOAR - Unit Tests file This file contains the Pytest Tests for the PingCastle Integration This file tests the get_report command but not the long running integration command because in order to do that I'd need to mock socket itself. """ import CommonServerPython import demistomo...
38.081081
111
0.760114
d8967ac20e23c9b77ddea6752ab0967b0fb0ed5d
1,039
py
Python
easy/2/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
1
2019-02-26T16:34:06.000Z
2019-02-26T16:34:06.000Z
easy/2/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
easy/2/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """app.py: challenge #2""" __author__ = "Carlan Calazans" __copyright__ = "Copyright 2016, Carlan Calazans" __credits__ = ["Carlan Calazans"] __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Carlan Calazans" __email__ = "carlancalazans at gmail dot com" __status...
28.081081
55
0.670837
d8af5e29bdd5ef62fee322f99ca0258e340e3302
35
py
Python
kts/validation/__init__.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/validation/__init__.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/validation/__init__.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
from kts.validation.split import *
17.5
34
0.8
9944ec327f861e95f547961b377f51507e78bbc0
1,304
py
Python
12.Geostatsr GeostatsGuy/GSLIB2R.py
OkomoJacob/RSpatial
0380801d9abc4ae3d558c9b53e6764cfe8d99b48
[ "MIT" ]
2
2021-06-10T23:22:05.000Z
2021-07-17T07:46:02.000Z
12.Geostatsr GeostatsGuy/GSLIB2R.py
OkomoJacob/RWorld
ad5d2e24b7b19672aa33af488b83179198d16870
[ "MIT" ]
null
null
null
12.Geostatsr GeostatsGuy/GSLIB2R.py
OkomoJacob/RWorld
ad5d2e24b7b19672aa33af488b83179198d16870
[ "MIT" ]
1
2021-06-01T19:03:37.000Z
2021-06-01T19:03:37.000Z
import csv, sys import os # Python Script to Convert GSLIB Geo-EAS to R comma delimited # python GSLIB2R.py input_filename output_filename # Author Michael Pyrcz, University of Texas at Austin, @GeostatsGuy # Convert GSLIB Geo-EAS files to a pandas DataFrame for use with Python methods def GSLIB2Dataframe(data_file):...
30.325581
79
0.648773
856feb3d45c23d997ba6d2089549d7a755ce7552
3,565
py
Python
kuehltest.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
kuehltest.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
kuehltest.py
Hofei90/kuehltest_wertelogging
ae8be084d077c886312275c7fa0366aa28d27beb
[ "MIT" ]
null
null
null
import datetime import os import shlex import time from pprint import pprint from subprocess import Popen, PIPE from sys import argv import psutil import toml from peewee import fn from db_modell import Kuehlvarianten, Log, db_create_table from telegram_api.telegram_bot_api import Bot MESSINTERVALL = 5 # in Sekunde...
31.27193
98
0.663114
85ad0dae965cc4539e0ac2521144ea15fc5f1de3
1,273
py
Python
src/onegov/wtfs/models/daily_list.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/daily_list.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/daily_list.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.wtfs.models.report import Report class DailyList(object): pass class DailyListBoxes(Report): """ All boxes of all municipalities on one day. """ def __init__(self, session, date_=None): super().__init__(session, date_, date_) self....
25.979592
55
0.63315
85c26cc1307fb4d2cbea647faa40d2ad1f79dece
3,116
py
Python
test/test_npu/test_masked_scale.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_masked_scale.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_masked_scale.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...
38.95
82
0.681964
a49ebd64f24de02b9530de07ce6a48621228044b
642
py
Python
src/test_pc/test_conv1d.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pc/test_conv1d.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
null
null
null
src/test_pc/test_conv1d.py
msei/insectcounter
1e9356e5639789b70c614da6c74307ec2b8c8304
[ "MIT" ]
2
2020-02-05T05:19:18.000Z
2020-02-05T15:04:32.000Z
import os import unittest from model import conv1d class TestConv1d(unittest.TestCase): def setUp(self): self.samples = 200 self.model = conv1d.Conv1D("../../Wingbeats", ".", self.samples, 1) self.model.load_data() def testModel(self): self.model.build_model() def tearD...
30.571429
127
0.654206
bb416c886515d0f920a96ec395e4d9f61f422d76
879
py
Python
leetcode/402-Remove-K-Digits/RemoveKDigits_tle.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/402-Remove-K-Digits/RemoveKDigits_tle.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/402-Remove-K-Digits/RemoveKDigits_tle.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def removeKdigits(self, num, k): """ :type num: str :type k: int :rtype: str """ l, r = 0, k idx, kk = l, k res = '' while len(res) != len(num) - kk: idx = l tmp = num[l] for i in xran...
25.852941
57
0.315131
3b65c954809a09bc934ad8c913b4c0fd11245d4b
1,270
py
Python
vb_simulation_pkgs/example_pkgs/pkg_cv_example/scripts/node_eg3_qr_decode.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
1
2021-07-13T07:05:29.000Z
2021-07-13T07:05:29.000Z
vb_simulation_pkgs/example_pkgs/pkg_cv_example/scripts/node_eg3_qr_decode.py
TejasPhutane/Eyantra-2021-Vargi-Bots
ab84a1304101850be8c0f69cfe6de70d53c33189
[ "MIT" ]
1
2021-06-05T07:58:03.000Z
2021-06-05T07:58:03.000Z
vb_simulation_pkgs/example_pkgs/pkg_cv_example/scripts/node_eg3_qr_decode.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import cv2 import sys from std_msgs.msg import String from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError from pyzbar.pyzbar import decode class Camera1: def __init__(self): self.bridge = CvBridge() self.image_sub = rospy.Subscriber("/eyrc/vb/...
20.483871
89
0.67874
797cc452d85d80eee3cefbc684b0dc10ef3b41b6
879
py
Python
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-22.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
abeceda = {'A' : 1,'B' : 2, 'C' : 3, 'D' : 4, 'E' : 5, 'F' : 6, 'G' : 7, 'H' : 8, 'I' : 9, 'J' : 10, 'K' : 11, 'L' : 12, 'M' : 13, 'N' : 14, 'O' : 15, 'P' : 16, 'Q' : 17, 'R' : 18, 'S' : 19, 'T' : 20, 'U' : 21, 'V' : 22, 'W' : 23, 'X' : 24, 'Y' : 25, 'Z' : 26} def razvrsti_imena_po_abecedi_v_seznam(imena): with...
29.3
261
0.473265
5c45ee7e7f9cc8b821f041cc64e6fe2c2bea965b
7,994
py
Python
Admin/res/signUp.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
1
2019-02-28T08:39:55.000Z
2019-02-28T08:39:55.000Z
Admin/res/signUp.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
5
2018-07-17T13:09:34.000Z
2018-09-11T13:55:33.000Z
Admin/res/signUp.py
BlaCkinkGJ/SFSH
0134f1e4698ef34caee2d5a8cd875c51507b3527
[ "MIT" ]
2
2019-05-17T03:07:08.000Z
2022-01-01T07:04:31.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'signUp.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets import pipeline as pipe import re import hashlib from res import signIn from PyQt5....
40.785714
100
0.650863
c6275789d918748049a5ebd918e07f59ee91bada
1,464
py
Python
static/posts/broken-one-time-pad/challenge.py
Enteee/duckpond.ch
9fbcf5b684f3ebe63f054a9f3f59012298af90a4
[ "MIT" ]
1
2016-09-14T02:59:51.000Z
2016-09-14T02:59:51.000Z
static/posts/broken-one-time-pad/challenge.py
Enteee/duckpond.ch
9fbcf5b684f3ebe63f054a9f3f59012298af90a4
[ "MIT" ]
3
2019-05-06T06:46:29.000Z
2021-06-11T23:51:48.000Z
static/posts/broken-one-time-pad/challenge.py
Enteee/duckpond.ch
9fbcf5b684f3ebe63f054a9f3f59012298af90a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim: set fenc=utf8 ts=4 sw=4 et : import sys import socket import random from threading import Thread from math import gcd from base64 import b64encode def lcm(a, b): """Return lowest common multiple of a and b""" return a * b // gcd(a, b) with open("key.png", "rb") as f: SECRET ...
28.153846
72
0.629781
3030246931d4f23ca9ae0067c32cbad4205dd4d7
611
py
Python
sort/insertion_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
sort/insertion_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
sort/insertion_sort.py
imttx/awesome-algorithm
d72277cc278131ae670bea74db4283b02f362758
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # 插入排序 ''' 核心:通过构建有序序列,对于未排序序列,在已排序序列中从后向前扫描(对于单向链表则只能从前往后遍历),找到相应位置并插入。实现上通常使用in-place排序(需用到O(1)的额外空间) 1. 从第一个元素开始,该元素可认为已排序 2. 取下一个元素,对已排序数组从后往前扫描 3. 若从排序数组中取出的元素大于新元素,则移至下一位置 4. 重复步骤3,直至找到已排序元素小于或等于新元素的位置 5. 插入新元素至该位置 6. 重复2~5 ''' def insertionSort(data): ...
18.515152
92
0.612111
307c177159fa84546393decd47d033ea643f9e64
520
py
Python
BiliReNamer/GetHTML.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
BiliReNamer/GetHTML.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
BiliReNamer/GetHTML.py
Luke-li-Chen/BiliReNamer
1e83f54840caef23af5f23da5fd5640222c7a73b
[ "Apache-2.0" ]
null
null
null
from urllib import request from io import BytesIO import gzip def GetHTML(url) : f = request.urlopen(url) rawdata = f.read() headers = f.info() # 若网页压缩,则使用gzip解压 if ('Content-Encoding' in headers and headers['Content-Encoding']) or \ ('content-encoding' in headers and headers['content-enc...
21.666667
75
0.623077
06ab13a8d687754953e3ed7836dff5c501ad935b
677
py
Python
misc/Crystal Maze/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
misc/Crystal Maze/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
misc/Crystal Maze/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
from pwn import * E = ["up", "down", "left", "right"] def action(conn, move): conn.recvuntil("move: ") conn.sendline(move) value = conn.recvuntil("\n") if b"AIS3" in value: print(value) exit() return b"ok" in value def maze(step=[""]): print(step) for e in E: if step[-1] == "up" and e == "down": continu...
20.515152
51
0.581979
88bb1aaf010ca4a523af2a52c84c44761d5f08f9
861
py
Python
Python/Tipos e comandos/Newton.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Tipos e comandos/Newton.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
Python/Tipos e comandos/Newton.py
gianvstheworld/POO
f6b9d3d351d703d974a6ca031ee636aea7119367
[ "MIT" ]
null
null
null
''' -- Nome: Gianluca Capezzuto Sardinha -- NUSP: 11876933 -- Exercício 9 ''' from scipy import misc def f(x): fx = x**3 - x**2 - (13 * x) + 8 return fx def leu(): while(True): try: k = int(input('Digite um inteiro: ')) break except ValueError: pri...
15.105263
92
0.491289
88e6cbfb36fe0b58adbcb727058e0d74226bd449
1,625
py
Python
tspdb/src/tslb/tslb.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
43
2019-12-10T00:05:51.000Z
2022-03-31T21:21:20.000Z
tspdb/src/tslb/tslb.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
5
2021-05-09T01:12:31.000Z
2022-03-29T17:34:15.000Z
tspdb/src/tslb/tslb.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
14
2020-01-13T21:20:07.000Z
2022-03-31T02:11:26.000Z
from tspdb.src.tslb.src.continuous import * from tspdb.src.tslb.src.lzw import * from tspdb.src.tslb.src.regModel import regModel as regModel from tspdb.src.tslb.src.utils import * def get_diff(series): return (series.shift(-1) - series)[:-1] def transform_data(series): y_t = (series.shift(-1) - series)[:...
31.25
144
0.641231
4e326efab66412dbb44f6337932792997344663e
93
py
Python
bds_setup/apps.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/apps.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
bds_setup/apps.py
littlegwzh/BDS
6233ea429d173f855c3f9d19fea284f53778e828
[ "MIT" ]
null
null
null
from django.apps import AppConfig class Bds_setupConfig(AppConfig): name = 'bds_setup'
15.5
33
0.763441
9d6236bc9a6eeabe9298c75e02d2ce7ea4d52cce
626
py
Python
errbot/data/config.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
errbot/data/config.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
errbot/data/config.py
lichtwellenreiter/dockerfiles
bad31b1dafffdf95cfc7a83c7f012ae80245b501
[ "MIT" ]
null
null
null
import logging # This is a minimal configuration to get you started with the Text mode. # If you want to connect Errbot to chat services, checkout # the options in the more complete config-template.py from here: # https://raw.githubusercontent.com/errbotio/errbot/master/errbot/config-template.py BACKEND = 'Slack' BO...
25.04
84
0.763578
3b04da7186de357b384879f528629e2bd7039f2a
2,902
py
Python
School/G12/War.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
School/G12/War.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
School/G12/War.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
import random ranks = ['2', '3', '4', '5', '6', '7', '8', '9', '10', 'jack', 'queen', 'king', 'ace'] suits = ['spades', 'hearts', 'clubs', 'diamonds'] class Card(): """class for a specific card""" def __init__(self, suit, rank): """start a new card (suit, rank)""" self.suit = suit sel...
27.377358
86
0.52481
d17db94b555864a038462680b8b4284e6032c65e
1,096
py
Python
etc code/body.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/body.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/body.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
# -*- Encoding:UTF-8 -*- # import sys import os from glob import glob import cPickle as pickle import numpy as np import math path1 = sys.argv[1] path2 = sys.argv[2] body = np.zeros(10) bodyIndex = np.zeros([10,20]) # -10~-9부터 9~10 구간 20개 bodyTemp = np.full([10,20], 0.0) pkl_paths = sorted(glob('./opmlify/result/'...
24.355556
66
0.623175
ae8fcaf4701261e2a0bd55888930b76577b7107b
1,166
py
Python
day22/pong.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day22/pong.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day22/pong.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import time from turtle import Screen from paddle import Paddle, POS_LEFT, POS_RIGHT from ball import Ball from scoreboard import Scoreboard SCREEN_WIDTH = 800 SCREEN_HIGHT = 600 class Game(): def __init__(self) -> None: self.running = True self.screen = Screen() self.screen.set...
22
66
0.606346
ee3df8ea1fae48ab5600ae67127eb4eec51b0dd8
762
py
Python
GeeksForGeeks/Pallindrome String/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
GeeksForGeeks/Pallindrome String/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
GeeksForGeeks/Pallindrome String/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
""" Palindrome checker author: @fr4nkl1n-1k3h """ def palindromeCheck(string: str) -> str: """ This function checks if a string is a palindrome by comparing a string with it's reverse """ # convert the string to all lower case lower_string = string.lower() # create a reversed vers...
23.8125
52
0.677165
4e8bb483a296bc5daae4d48af0a518ad183c23ba
3,183
py
Python
frappe-bench/apps/erpnext/erpnext/config/healthcare.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/healthcare.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/healthcare.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Consultation"), "icon": "icon-star", "items": [ { "type": "doctype", "name": "Patient Appointment", "label": _("Patient Appointment"), }, { "type": "doctype", "name": "C...
19.408537
47
0.471568
ee9acd6e453cb12d45d82b55195c12f5817a6cb3
1,138
py
Python
S4CTF/2021/crypto/Baby-IQ/baby-iq.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
S4CTF/2021/crypto/Baby-IQ/baby-iq.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
S4CTF/2021/crypto/Baby-IQ/baby-iq.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from math import sqrt from flag import flag import os import random import base64 def chunkchunk(msg, l): return [msg[l*i:l*(i + 1)] for i in range(0, len(msg) // l)] def pad(msg): r = int(sqrt(len(msg))) + 1 head = base64.b64encode(os.urandom(r**2))[:r**2 - (len(msg...
19.964912
62
0.539543
014a64db1e3d39fefbc4b0a7f47027cd66df60ca
3,720
py
Python
HeuristicRSTable.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
1
2019-12-21T02:32:07.000Z
2019-12-21T02:32:07.000Z
HeuristicRSTable.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
null
null
null
HeuristicRSTable.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
null
null
null
from Model import Pool, MetaslabGroup, LogSpaceMapGroup import math class MTable(object): def generateRunningSums(self): assert len(self.mrsum) == 0 and len(self.brsum) == 0 assert self.pool.logs.nlogs() <= self.pool.nmetaslabs msum, bsum = 0, 0 for i in range(self.pool.log...
33.513514
78
0.599731
6dc057b564de90aeeab3e51769ed1b74638be027
7,823
py
Python
common/libs/pay/PayService.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
1
2020-03-24T04:26:34.000Z
2020-03-24T04:26:34.000Z
common/libs/pay/PayService.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
common/libs/pay/PayService.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import hashlib, time, random, decimal, json from application import app, db from common.models.food.Food import Food from common.models.food.FoodSaleChangeLog import FoodSaleChangeLog from common.models.pay.PayOrder import PayOrder from common.models.pay.PayOrderItem import PayOrderItem from com...
40.533679
109
0.599386
09f59b91c01221c9a75fd321c20814baf815a36d
734
py
Python
BIZa/2014/Zyabko_A_A/Task_6_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Zyabko_A_A/Task_6_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/Zyabko_A_A/Task_6_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 6. Вариант 45 #Создайте игру, в которой компьютер загадывает название одного из семи чудес света, а игрок должен его угадать. #Зябко Антон #20.05.2016 import random Chudesa=("Пирамида Хеопса", "Висячие сады Семирамиды","Статуя Зевса"," Храм Артемиды"," Мавзолей в Галикарнасе"," Колосс Родосский","Александрийс...
36.7
155
0.742507