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
6449be5106c0d2254cc81fbd8f052f5c252003c6
213
py
Python
Online-Judges/CodingBat/Python/Warmup-01/08-pos_neg.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Warmup-01/08-pos_neg.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Warmup-01/08-pos_neg.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def pos_neg(a, b, negative): if negative is True: if a < 0 and b < 0: return True return False elif (a < 0 and b < 0) or (a > 0 and b > 0): return False return True
23.666667
48
0.502347
379fb808600637c74f18b89b10046c87db1d6a5b
769
py
Python
src/settings.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
null
null
null
src/settings.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
2
2021-05-08T03:57:45.000Z
2021-09-01T00:50:03.000Z
src/settings.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
1
2020-10-24T16:12:46.000Z
2020-10-24T16:12:46.000Z
RASPBERRY_ID = 2 SYSTEM_STOPPED_DELAY_TIME = 5 DANGEROUS_WORD = "test" DATABASE_FILE_NAME = "data/database.csv" DATABASE_INDEX_NAME = 0 DATABASE_INDEX_EMAIL_ADDRESS = 1 DATABASE_INDEX_PHONE_NO = 2 WEBAPI_PROTOCOL = "http" WEBAPI_HOST = "192.168.1.8" WEBAPI_PORT = 37001 WEBAPI_URL = WEBAPI_PROTOCOL + "://" + WEBAPI...
26.517241
81
0.769831
8093b969ddbdd8f6ccdb7e2e7a39286face97177
483
py
Python
Chapter2_Python/12-ZipEnumerate.py
olebause/TensorFlow2
70fcb7c85c7ead0dc4f88ffa35be5f2eb93e618e
[ "MIT" ]
11
2020-10-12T14:06:31.000Z
2022-02-22T09:16:32.000Z
Chapter4_Intermediate/ZipEnumerate.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
1
2020-12-21T15:29:20.000Z
2022-01-15T12:06:09.000Z
Chapter4_Intermediate/ZipEnumerate.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
8
2020-10-29T07:53:49.000Z
2022-03-17T11:01:20.000Z
list_a = [100.0, 200.0, -10.0] list_b = [False, False, True] # index for idx in range(len(list_a)): print(idx, list_a[idx], list_b[idx]) print("") # values for multiple iterables for val_a, val_b in zip(list_a, list_b): print(val_a, val_b) print("") # index and value for idx, val in enumerate(list_a): ...
16.1
58
0.662526
809a5b6f2a1b492230031779e0dd3f24a309f268
3,475
py
Python
tests/test_maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
tests/test_maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
tests/test_maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from typing import Any from hypothesis import assume, given from pfun import List, Unary, compose, identity from pfun.hypothesis_strategies import anything, lists, maybes, unaries from pfun.maybe import (Just, Maybe, Nothing, filter_, flatten, for_each, gather, maybe) from .monad_test import ...
30.482456
76
0.634245
209f1af5eaaa9bdb124890ac1293f6064594ebbb
502
py
Python
api/abstract/db_base.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/abstract/db_base.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/abstract/db_base.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/28 下午5:22 # @Author : Latent # @Email : latentsky@gmail.com # @File : base_db.py # @Software: PyCharm # @class : 所有数据库类的基类 from abc import ABCMeta, abstractmethod class DB_BASE(metaclass=ABCMeta): # 2. 查询 @abstractmethod def db_query(self, **k...
17.310345
39
0.60757
45b9d10881307a01f5e6a659c4a8e22a060e89e5
5,833
py
Python
ds/practice/daily_practice/20-07/assets/code/doubly_linked_list.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
ds/practice/daily_practice/20-07/assets/code/doubly_linked_list.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
ds/practice/daily_practice/20-07/assets/code/doubly_linked_list.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Data Structures :: Doubly-linked list """ class ListNode: def __init__(self, value, prev=None, next=None): """Each ListNode holds a value, a reference to its previous node as well as its next node in the List.""" self.value = value self.prev = prev self.next = next ...
32.954802
72
0.576204
45c0bbe5eb43fc51c1bea5313b8d05c32593362b
532
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex11_friends_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex11_friends_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex11_friends_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch02_math.solutions.ex11_friends import calc_friends @pytest.mark.parametrize("max_exclusive, friends", [(250, {220: 284}), (300, {220: 284, 284: 220}), ...
31.294118
65
0.586466
b34d76c819fe272d606c9d83696bda300df4dc2a
1,279
py
Python
marsyas-vamp/marsyas/src/marsyas_python/win.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/win.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/win.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
# Simple example of Marsyas network illustrating the problem # of trying to tap the processedData control of the last # MarSystem in a Series. For more information see the Marsyas # blog post entitled: The most common confusion in Marsyas. #!/usr/bin/evn python from pylab import * from marsyas_util import * import ...
25.078431
84
0.756059
2fd59aea6184dea990b89ef7ca378980fbaf6485
1,841
py
Python
src/onegov/directory/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/directory/upgrade.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains upgrade tasks that are executed when the application is being upgraded on the server. See :class:`onegov.core.upgrade.upgrade_task`. """ from onegov.core.orm.types import UTCDateTime from onegov.core.upgrade import upgrade_task from onegov.directory import Directory from sqlalchemy import Column, Integer ...
32.298246
75
0.728952
ffa418017cda0adc7c71010691624fd9f53671b4
1,968
py
Python
frappe-bench/apps/erpnext/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/selling/report/customer_credit_balance/customer_credit_balance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt from erpnext.selling.doctype.customer.customer import get_customer_outstanding,...
31.238095
97
0.750508
44416b11ec6dbb8505b098d934bd919cea6e9b90
358
py
Python
Backend/prometheus.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/prometheus.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/prometheus.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import os from prometheus_flask_exporter import PrometheusMetrics from prometheus_flask_exporter.multiprocess import GunicornInternalPrometheusMetrics is_gunicorn = "gunicorn" in os.environ.get("SERVER_SOFTWARE", "") if is_gunicorn: metrics = GunicornInternalPrometheusMetrics.for_app_factory() else: metrics ...
29.833333
84
0.835196
447dadc25af0af5bc6e982252083c81df8c1c441
1,773
py
Python
frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/resources/payout.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/resources/payout.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/gocardless_pro/resources/payout.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# WARNING: Do not edit by hand, this file was generated by Crank: # # https://github.com/gocardless/crank # class Payout(object): """A thin wrapper around a payout, providing easy access to its attributes. Example: payout = client.payouts.get() payout.id """ def __init__(self, attri...
16.885714
67
0.602369
44864ba1b40fe06597208663730c9809e108c731
1,453
py
Python
_transonic_testing/for_test_init.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
_transonic_testing/for_test_init.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
_transonic_testing/for_test_init.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic import Transonic, boost, Array, Union, const # transonic def func(int, float) @boost def func(a, b): i: int i = 2 c: float = 0.1 + i return a + b + c def func_tmp(arg): return arg ** 2 def func0(a, b): return a + b func0_boosted = boost(func0) A = Un...
15.457447
65
0.549209
5bd60b1973e6687e5b3b6ddddc369c7420130695
478
py
Python
CareerTinderServer/CareerTinder/resume_retrieval.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/resume_retrieval.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/resume_retrieval.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.template import loader import os import json # Create your views here. def index(request): template = loader.get_template('CareerTinder/retrieve.html') context = { 'name': 'John Doe' } return HttpResponse(template.render(context, request)) def f...
31.866667
139
0.717573
ca204b6c2dc481502346c9a681f4c2a04cbfbd8c
491
py
Python
python/pickle/compress_pickle.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/compress_pickle.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pickle/compress_pickle.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pickle import bz2 my_string = """Per me si va ne la città dolente, per me si va ne l'etterno dolore, per me si va tra la perduta gente. Giustizia mosse il mio alto fattore: fecemi la divina podestate, la somma sapienza e 'l primo amore; dinanzi a me non fuor cose create se non etterne, e io etterno du...
25.842105
49
0.735234
b6f285e8ed38bf723c9e29249dcb63885c5de004
6,488
py
Python
src/onegov/org/models/traitinfo.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/traitinfo.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/models/traitinfo.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.org import _ from onegov.org.elements import DeleteLink, Link, LinkGroup from onegov.org.models.clipboard import Clipboard from onegov.org.models.editor import Editor #: Contains the messages that differ for each trait (the handling of all traits #: is the same). New traits need to adapt the same messages ...
33.968586
79
0.551942
eddfa0534c2bfe0f1262d3b344218c7437aaf008
544
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_plistlib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_plistlib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_plistlib.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_plistlib.py,v 1.1 2018/06/17 19:21:21 adam Exp $ Add ability to parse unsigned integers as externalized by NetBSD proplib(3). --- Lib/plistlib.py.orig 2014-12-10 15:59:39.000000000 +0000 +++ Lib/plistlib.py @@ -463,7 +463,7 @@ class PlistParser: def end_false(self): self.addObject(Fal...
34
76
0.663603
61210732a9aa942a67e528a92250336f9439f12e
3,004
py
Python
project/cli/scrape_news.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/cli/scrape_news.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/cli/scrape_news.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import datetime import re import feedparser from dateutil import parser from sqlalchemy.sql import and_, not_ from project import app, db from project.dateutils import get_now from project.models import NewsFeed, NewsItem def scrape(): now = get_now() min_date = now - datetime.timedelta(days=14) news_f...
27.814815
87
0.627497
b69bd08257fc3ea7dc07715d695a9251ce8c6976
3,396
py
Python
test/test_npu/test_network_ops/test_affine_grid_generator.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_affine_grid_generator.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_affine_grid_generator.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/licen...
39.952941
84
0.628681
fcd4b279167728c4de1a3215104303f6bdf63fb5
38,953
py
Python
python/web_version/modules/kineticizer.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/web_version/modules/kineticizer.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/web_version/modules/kineticizer.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python import libsbml import sys try: from . import misc except: import misc class Kineticizer(object): ''' Base kineticizer class. This is a template class. To use it derive it and implement the get_denominator function. ''' # mapping of internal names (the ones used in this code) ...
44.773563
112
0.504223
bf6e4002fa08b3275caf852e1b1cddf23bea1474
949
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/local-echonest.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/local-echonest.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/local-echonest.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import os.path import os import time import pipes import json import mar_collection def echonest_upload(full_filename): print "trying: ", full_filename cmd = "echonest-analyzer %s" % pipes.quote(full_filename) os.system(cmd) time.sleep(0.5) json_data = open( fu...
18.98
64
0.684932
44f1b9cf0b3576e36e604d889a7d5fa0e9709f51
353
py
Python
Assignments/Assignment 6/leap_year copy.py
ryan-gonfiantini/CMPT-120L-902-21S
e5807251e26ce422ce0c70f99ac62661b5881c18
[ "MIT" ]
null
null
null
Assignments/Assignment 6/leap_year copy.py
ryan-gonfiantini/CMPT-120L-902-21S
e5807251e26ce422ce0c70f99ac62661b5881c18
[ "MIT" ]
null
null
null
Assignments/Assignment 6/leap_year copy.py
ryan-gonfiantini/CMPT-120L-902-21S
e5807251e26ce422ce0c70f99ac62661b5881c18
[ "MIT" ]
null
null
null
years = int(input("enter a year: ")) if (years % 4) == 0: if (years % 100) == 0: if (years % 400) == 0: print("{0} is a leap year".format(years)) else: print("{0} is not a leap year".format(years)) else: print("{0} is a leap year".format(years)) else: print("{0} is ...
27.153846
56
0.521246
7843745a17e31a4bf3b60db3ff97c1367260c454
6,310
py
Python
Packs/FireEyeCM/Integrations/FireEyeCM/test_data/result_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FireEyeCM/Integrations/FireEyeCM/test_data/result_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FireEyeCM/Integrations/FireEyeCM/test_data/result_constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
QUARANTINED_EMAILS_CONTEXT = [ {'appliance_id': 'appliance_id', 'completed_at': '2021-02-14T09:42:48', 'email_uuid': 'uuid', 'from': 'test@malicious.net', 'message_id': 'queue-id@no-message-id', 'quarantine_path': '/data/email-analysis/quarantine2/2021-02-14/09/queue_id', 'queue_id': 'queue_id',...
41.24183
122
0.553724
da786688fa0be8eb46ee18e9a07ec162e599fc0d
1,728
py
Python
restful04/migrations/versions/45a8e7af1853_.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
restful04/migrations/versions/45a8e7af1853_.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
restful04/migrations/versions/45a8e7af1853_.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
"""empty message Revision ID: 45a8e7af1853 Revises: Create Date: 2020-02-14 11:27:04.005777 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '45a8e7af1853' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
30.315789
65
0.659722
e57b7665223bd59e3bc5f5d4b5cea3e747e028f8
742
py
Python
sketches/sidescroller1/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/sidescroller1/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/sidescroller1/sprites.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# coding=utf-8 class Sprite(object): def __init__(self, x, y): self.x = x self.y = y def update(self): pass def show(self): pass class Alien(Sprite): def __init__(self, x, y): Sprite.__init__(self, x, y) self.status = "walking" ...
21.823529
47
0.47035
97c97e3b52b65b6beffac5d78e45a98c2e9cab35
464
py
Python
lab5/clear_console.py
Jialu-Huang/python
45713c34ecc3608e6387a0569efdbd32a6c67cad
[ "MIT" ]
1
2019-02-24T07:35:44.000Z
2019-02-24T07:35:44.000Z
lab5/clear_console.py
Jialu-Huang/python
45713c34ecc3608e6387a0569efdbd32a6c67cad
[ "MIT" ]
2
2019-02-17T02:52:33.000Z
2019-03-02T20:07:11.000Z
lab5/clear_console.py
Jialu-Huang/python
45713c34ecc3608e6387a0569efdbd32a6c67cad
[ "MIT" ]
1
2019-02-17T02:24:07.000Z
2019-02-17T02:24:07.000Z
import sys import os import platform def clean_the_console( ): sysstr = platform.system() if(sysstr =="Windows"): #Windows NT only clear = lambda : os.system('cls') clear() elif(sysstr == "Linux"): #Ubuntu,Deepin,CentOS...... clear = lambda : os.system('clear') clear() ...
27.294118
57
0.56681
a9ae42fce82cfc144a627f56d5cf94cfb35fb6cd
1,641
py
Python
Source/08_TCP_Thread/server.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
1
2022-02-28T09:49:35.000Z
2022-02-28T09:49:35.000Z
Source/08_TCP_Thread/server.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
Source/08_TCP_Thread/server.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
import socket import threading print("Server Side with Thread") print("*" * 30) # Show Machine Name server = socket.gethostname() print(server) # DESKTOP-BN340OI --> Name of the PC # Show Machine IP server = socket.gethostbyname(socket.gethostname()) print(server) # 192.168.178.53 PORT = 30000 BASIC_MSG_LEN =...
20.5125
73
0.628885
e7b6197749328e2bcb73ca8859dccb3a84d5052e
2,623
py
Python
pythonProj/FZPython/pyquant/strategies/temp.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/strategies/temp.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/strategies/temp.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
# coding: utf8 import backtrader as bt import backtrader.indicators as btind import datetime import argparse import pandas as pd from backtrader.analyzers import (SQN, AnnualReturn, TimeReturn, SharpeRatio, TradeAnalyzer) import pyquant.utils.utils as utils import backtrader.analyzer...
25.466019
77
0.599695
8227740b8e2509acfb307ce715d51384d3fb757d
3,263
py
Python
src/test/tests/hybrid/cleanzonesonly.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/cleanzonesonly.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/cleanzonesonly.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: cleanzonesonly.py # # Tests: plots - filled boundary # # Defect ID: '5135 # # Programmer: Jeremy Meredith # Date: July 6, 2004 # # Modifications: # # Mark C. Miller, Wed Jan 20 07...
24.17037
79
0.567882
5c6b1c7f6e8e580639f5e050b64d897a7270c0bb
2,518
py
Python
scripts/component_graph/test/server/graph/test_component_node.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/server/graph/test_component_node.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/server/graph/test_component_node.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # 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. import unittest from server.graph.component_graph import * from server.graph.component_link import * from server.graph.component_node i...
37.029412
72
0.646942
7a7f5468091e124e188e760381ad456104c02e95
257
py
Python
python/python_backup/PRAC_PYTHON/fe.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/fe.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/fe.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class h.c.f def__init__(self): self.n=0 self.a=0 self.b=0 def input(self,k): self.n=k def calculate(self): while a%b!=0 k=a%b a=b b=k print "h.c.f=",k x=h.c.f a=input("enter data:") b=input("enter data:") x.input(k1)
15.117647
23
0.552529
56f0b3cc1b9d1d9b07b77f2d0d4bb5b9358f5f5a
1,868
py
Python
Termin 6/bilderGenerator.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/bilderGenerator.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/bilderGenerator.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
3
2019-11-17T01:33:07.000Z
2020-03-26T10:13:39.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu May 17 10:32:28 2018 @author: wilms """ import numpy as np def zieheBilder(anzBilder): """ Returns ------- x1 : Array der Shape (anzBilder) mit den Mittelwerten der generierten Bilder. x2 : Array der Shape (anzBilder) mit den ...
35.245283
89
0.619379
a437315ca4d5c5d7848b27d8062a2de1f1dd96f1
52
py
Python
python/pathlib/origin/touch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/touch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/touch.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path Path('myfile.txt').touch()
17.333333
26
0.75
f11065c7fcfb3112ace9b164a0798dfd2b64e7f6
4,978
py
Python
src/onegov/feriennet/models/notification_template.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/notification_template.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/notification_template.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import re from onegov.activity import BookingCollection, InvoiceCollection from onegov.core.orm import Base from onegov.core.orm.mixins import ContentMixin, TimestampMixin from onegov.core.orm.types import UUID, UTCDateTime from onegov.feriennet import _ from onegov.feriennet.collections import VacationActivityCollect...
28.609195
76
0.582965
f11d90032f7bbbb8dd6961c5a978b1bf82cf198f
27,569
py
Python
src/universal_build/build_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
src/universal_build/build_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
src/universal_build/build_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
"""Universal build utilities.""" import argparse import os import re import shutil import subprocess import sys from typing import Dict, List, Match, Optional, Tuple, Union from universal_build._utilities import DashInsensitiveDict _ALLOWED_BRANCH_TYPES_FOR_RELEASE = ["release", "production"] _MAIN_BRANCH_NAMES = ["...
35.527062
296
0.644927
74c6379d6fad9cdf77dac5424bce0217c8003fcd
5,847
py
Python
loadtest/create_test_data.py
cybcon/CHN256234
7396f28bb46cbe59e482b68afc2db04780fe7454
[ "MIT" ]
null
null
null
loadtest/create_test_data.py
cybcon/CHN256234
7396f28bb46cbe59e482b68afc2db04780fe7454
[ "MIT" ]
null
null
null
loadtest/create_test_data.py
cybcon/CHN256234
7396f28bb46cbe59e482b68afc2db04780fe7454
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # (c) 2021 BridgingIT GmbH # Author: Bastian Appenzeller # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without ...
39.506757
98
0.611425
74466f21186ac48d1b64cfed9bd1033cb9bae6c0
3,836
py
Python
python/en/archive/topics/command_line_arguments/test-getopt_more.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/test-getopt_more.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/test-getopt_more.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' aimldl > python3 > topics > command_line_arguments > test-getopt_more.py Rev.3: 2019-11-13 (Wed) Rev.2: 2019-11-07 (Thu) Rev.1: 2019-03-01 (Fri) Draft: 2018-11-08 (Thu) Examples: $ python test-getopt_more.py -m option1 argc=3 argv=['test-getopt_more.py',...
27.797101
84
0.596194
77e726dba1c388ccf177cd366321c8e869f2426c
995
py
Python
backend/songwriter/migrations/0013_songsgroup.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/migrations/0013_songsgroup.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/migrations/0013_songsgroup.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-18 16:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('songwriter', '0012_song_selected'), ] operations = [ migrations.CreateModel...
34.310345
115
0.592965
77ea29e9f056513a426a72799f8097a743cec448
2,556
py
Python
lesson6/bfundme/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
lesson6/bfundme/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
lesson6/bfundme/scripts/deploy.py
raynardj/sbs
726dd47c7a3da0874b97b3df8dcf5b34060d79f6
[ "MIT" ]
null
null
null
from brownie import FundMe, accounts, network, config from scripts.utils import get_account, deploy_mock, FORKED_LOCAL PUBLIC_NETS = ["mainnet", "ropsten", "rinkeby", "kovan"] def get_price_feed_address(): net = network.show_active() if net in PUBLIC_NETS: return config['networks'][net]['eth_usd_pric...
41.225806
95
0.723396
248ffac07fefb1848653aee17d90722ffb79f6a7
3,194
py
Python
botat.py
Tgrayman/BoTaT
ce7a2ff7d3c7633a61ef35d7aca56de10798b848
[ "MIT" ]
null
null
null
botat.py
Tgrayman/BoTaT
ce7a2ff7d3c7633a61ef35d7aca56de10798b848
[ "MIT" ]
null
null
null
botat.py
Tgrayman/BoTaT
ce7a2ff7d3c7633a61ef35d7aca56de10798b848
[ "MIT" ]
null
null
null
import os import random import discord from dotenv import load_dotenv from discord.ext import commands import asyncio import xlrd import logging # Initialisations et autres data load_dotenv() TOKEN = os.getenv('DISCORD_TOKEN') GUILD = os.getenv('DISCORD_GUILD_NAME') GUILD_ID = os.getenv('DISCORD_GUILD_I...
32.927835
145
0.649656
24fd29e0eee50a2375ba5dc60ff420a201b03707
1,308
py
Python
cs/python/python_general/misc_functions/paragraph_line_split.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/paragraph_line_split.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/paragraph_line_split.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Sprint up a long string into multiple lines.""" # %% imports from typing import List # %% def split_into_lines(s: str, line_hgt: int = 14, width: int = 100,) -> List[str]: lines = [] # List of lines to return line = "" # Current line's string for word in s.split(): # Loop through words if le...
35.351351
280
0.647554
561e63e40139b9ce51e7d42ab7d924194e72dbd1
2,415
py
Python
Packs/MicrosoftTeams/Scripts/MicrosoftTeamsAsk/MicrosoftTeamsAsk_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MicrosoftTeams/Scripts/MicrosoftTeamsAsk/MicrosoftTeamsAsk_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MicrosoftTeams/Scripts/MicrosoftTeamsAsk/MicrosoftTeamsAsk_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from MicrosoftTeamsAsk import main from CommonServerPython import entryTypes import demistomock as demisto import json import pytest def execute_command(name, args=None): if name == 'addEntitlement': return [ { 'Type': entryTypes['note'], 'Contents': '4404dae8-2...
30.1875
88
0.595859
d902bf60f5c90f0eae9379ee2ad45bfaa7f184c8
146
py
Python
app/db.py
Projeto-Integrador-2-Grupo-9/Poseidon
ceffc3ab325ce9ccc00f65c501d32552c86814ab
[ "MIT" ]
null
null
null
app/db.py
Projeto-Integrador-2-Grupo-9/Poseidon
ceffc3ab325ce9ccc00f65c501d32552c86814ab
[ "MIT" ]
null
null
null
app/db.py
Projeto-Integrador-2-Grupo-9/Poseidon
ceffc3ab325ce9ccc00f65c501d32552c86814ab
[ "MIT" ]
null
null
null
from pymongo import MongoClient mongo_client = MongoClient("mongodb://root:example@mongo:27017/") database = mongo_client["AquaData_Poseidon"]
20.857143
65
0.794521
eb490c1b57ba919ed084b9f37af2e81f10eae913
703
py
Python
example/solid_example/building_lsp_bad.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
example/solid_example/building_lsp_bad.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
example/solid_example/building_lsp_bad.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
class Building: material = '건물재료' def __init__(self, name): self.name = name def build(self): print(f'{self.material}으로 {self.name}을 짓습니다.') class ConcreteBuilding(Building): def __init__(self, name): self.name = name def build(self, material): print(f'{material}으...
23.433333
54
0.652916
eb8163772f9e897a9911a89886ff57a926b95a80
466
py
Python
pacman-arch/test/pacman/tests/sync401.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/sync401.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/sync401.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Ensure we choose provider already in target list" sp1 = pmpkg("pkg1") sp1.depends = ["dep"] self.addpkg2db("sync", sp1) sp2 = pmpkg("pkg2") sp2.provides = ["dep"] self.addpkg2db("sync", sp2) sp3 = pmpkg("pkg3") sp3.conflicts = ["pkg2"] sp3.provides = ["dep"] self.addpkg2db("sync", sp3) self.args...
21.181818
69
0.695279
ba646001c71018d5f7e0848e741cff4ec6263ace
1,999
py
Python
src/onegov/org/views/form_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/form_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/form_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Lists the custom forms. """ from onegov.core.security import Public from onegov.form import FormCollection, FormDefinition from onegov.org import _, OrgApp from onegov.org.layout import FormCollectionLayout from onegov.org.models.external_link import ExternalLinkCollection, \ ExternalLink from onegov.org.utils...
30.753846
75
0.634817
24420a57056529f075c0d064360cd0f3bd52e637
81
py
Python
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P02_RadiansToDegrees.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P02_RadiansToDegrees.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P02_RadiansToDegrees.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
import math rad = float(input()) deg = rad * 180 / math.pi print(math.floor(deg))
20.25
25
0.679012
035427df2596cde472d1a59e6874f204342b1f05
403
py
Python
OSINT-SPY-master/modules/ip_enum.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
OSINT-SPY-master/modules/ip_enum.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
OSINT-SPY-master/modules/ip_enum.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from .config import * from .utils import format_dict import shodan def ip_details(ip, json_output=False): try: api = shodan.Shodan(shodan_api_key) host = api.host(ip) if json_output: print(host) return print(f'IP Provided:: {ip}') format...
23.705882
44
0.578164
3068a08cf5e64576305297c1fb44d31d57bd7939
455
py
Python
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-01-def_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-01-def_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-01-def_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# Ch03-Functions-01-def_statements.py # # https://automatetheboringstuff.com/chapter3/ # Functions: Lesson 9 - def Statements, arguments, and the None value # Simple Hello function with a def statement def Hello(): print('Howdy!') print('Hello there.') print('First Hello()') Hello() print('Secon...
19.782609
70
0.665934
00072ef2dd17fcc48fb58334840eb12e7722cb11
30,224
py
Python
modules/adjustments.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/adjustments.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/adjustments.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
"""Adjusts a variable during a variable scan. Variable Classifications: * Base variable: A non-gradient variable that is either used as input to MMM, or is needed to calculate an MMM input variable. Base variables do not depend on values of gradient or additional variables. * Gradient variable: A variable that is...
38.01761
105
0.733358
ae4337ce9d6fe51608888e6a6df3f08637409e52
5,415
py
Python
LibMS/libapp/migrations/0001_initial.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
2
2021-05-31T13:11:50.000Z
2021-06-05T04:37:51.000Z
LibMS/libapp/migrations/0001_initial.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
LibMS/libapp/migrations/0001_initial.py
StephenWayen/LibMS
df6078a8171f77b75f2ad3ac91e9747ef753d2a6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2021-05-06 12:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
50.138889
163
0.562142
f5055a0e51cde57ac95cdf0eb8ddb747a1360394
1,654
py
Python
storage/emulated/0/qpython/scripts3/python_post.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/python_post.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/python_post.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- #import requests # #headers = {'user-agent': 'haha'} # #with open("D:\SFD_assistant\SettlersFinancialData\d_software_develop\python-web\post-test\\test.jpg", "rb") as f: # requests.post('http://127.0.0.1:8080', headers=headers, data=f) import urllib.request #as req import urllib.pa...
44.702703
115
0.683797
eef3e8abed09a68de1c0a04ae52556cab1a96fe5
770
py
Python
ANN/e07/e07.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
ANN/e07/e07.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
ANN/e07/e07.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from __future__ import division import numpy as np from numpy import linalg from numpy.polynomial import polynomial as poly import matplotlib.pyplot as plt Xi = np.array([i / 10 for i in range(-25, 50, 5)]) Yi = np.array( [ 3.35, 2.6, 3.06, 4.38, 0.49, 0.15, ...
20.810811
68
0.506494
011e1c186115d9970d3348b01c3a99ad71f7d672
1,374
py
Python
models/test_sympy.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_sympy.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
models/test_sympy.py
zaqwes8811/voicegen
938e26d9e83c8be9df830698aa5b65cb904dd2eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # eval: # http://docs.sympy.org/dev/modules/numeric-computation.html # Scilab for control eng.: # http://bsiswoyo.lecture.ub.ac.id/files/2012/01/SG.pdf # limit() - предел # # fixme: не нашел z-преобразования # http://comments.gmane.org/gmane.comp.python.sympy/18287 # # ...
21.138462
65
0.649927
015092395f8fcb74e7a6c09898980d4e97428b14
5,862
py
Python
src/network/conversations/block_download.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/conversations/block_download.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/network/conversations/block_download.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
import logging import os from ..bo.messages.get_blocks import Get_blocks from ..bo.messages.blocks import Blocks from db.mapper import Mapper from blockchain.block import Block class Block_download(): def __init__(self, node) -> None: self.node = node # hash of the genesis block self.genes...
45.796875
100
0.636302
3a2d2880fe140b26fbcee15d3b39f606dbb61dc2
2,342
py
Python
Liquid-experiments/preempt/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-experiments/preempt/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-experiments/preempt/launcher.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
import random def train(jm=None, api=None, seed=2020, case=None): pass def test(jm=None, api=None, seed=2020, case=1): cases = ["FCFS", "priority", "preempt", "batch_preempt", "reset_strategy"] if case not in cases: print('[WARN] case not in ' + str(cases)) return api.conf_reset() conf = {} ...
23.897959
87
0.593937
3a4cacacea9708b1d8b9db9c952b9fb9127bc543
33,069
py
Python
isp/webapp.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
isp/webapp.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
isp/webapp.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ webapp ====== CHANGELOG ========= 0.1.2 / 2021-12-08 ------------------ - changes for Python 3.8 - use add_extension for jinja extensions 0.1.1 / 2021-05-19 ------------------ - change cors header 0.1.0 / 2021-01-16 ------------------ - First Release """ __author__ = "R. Bauer" __c...
34.627225
209
0.563005
e94680af413369fe7a90f418995b2b71d80a556f
2,241
py
Python
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/local_db.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/local_db.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/lib/local_db.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
# # sn/lib/local_db.py import base64 import os import lib.gg as gg import lib.pcap as pcap class LOCAL_DB: def __init__(self): self.dirname = None self.db = {} # feed : seq : transfer self.fn = {} # feed : fname self.max = {} # feed : maxs self.cnt = 0 self.max...
29.103896
81
0.472111
6e7efb9ff97420b22e7546f0cab2b43b7fca5bb3
3,679
py
Python
mk-full-package.py
derUli/ulicms
4a5fb4b468f5c862644955cad61caa7de90f5bd5
[ "BSD-3-Clause" ]
14
2016-02-06T01:41:17.000Z
2022-02-12T20:36:17.000Z
mk-full-package.py
derUli/ulicms
4a5fb4b468f5c862644955cad61caa7de90f5bd5
[ "BSD-3-Clause" ]
608
2015-04-23T21:38:08.000Z
2022-03-15T13:43:45.000Z
mk-full-package.py
derUli/ulicms
4a5fb4b468f5c862644955cad61caa7de90f5bd5
[ "BSD-3-Clause" ]
3
2016-12-04T16:48:22.000Z
2022-03-16T23:39:43.000Z
#!/usr/bin/python # coding: utf8 import shutil import argparse import os import codecs import platform from contextlib import closing from zipfile import ZipFile, ZIP_DEFLATED import time def zipdir(basedir, archivename): assert os.path.isdir(basedir) with closing(ZipFile(archivename, "w", ZIP_DEFLATED)) as z...
37.540816
112
0.617559
28987163a44f00c5c702b13dd53c5639e68f316c
3,850
py
Python
tf/clasificador2/lector_entrenador_4multi.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/lector_entrenador_4multi.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/lector_entrenador_4multi.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
# coding=UTF-8 import numpy as np # import matplotlib.pyplot as plt import os import cv2 from tqdm import tqdm import random import filetype from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D fro...
28.731343
120
0.615325
9596482680662b11e0e022703a00bc1465b6e8f6
5,883
py
Python
src/onegov/election_day/utils/svg_generator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/svg_generator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/svg_generator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Ballot from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.core.utils import groupbylist from onegov.election_day import log from onegov.election_day.utils import svg_filename from onegov.election_day.utils.d3_renderer import D3Renderer from shutil import ...
38.703947
79
0.578616
c2516d6c99b129d29bbe4925e0bc9a4216b2dd70
1,675
py
Python
Termin 6/Aufgabe1.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/Aufgabe1.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/Aufgabe1.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
3
2019-11-17T01:33:07.000Z
2020-03-26T10:13:39.000Z
import numpy as np import matplotlib.pyplot as plt import bilderGenerator as bg TrainingsBilder = bg.zieheBilder(250) ValidierungsBilder = bg.zieheBilder(25) w1, w2 = np.random.normal(0, 0.001, 2) b = 0 alpha = 0.0000005 plt.close("all") fig, ax = plt.subplots(1, 1) cat1 = np.where(TrainingsBilder[2] == -1) cat2 =...
29.910714
95
0.632239
6c17b202ad43d04504dac1eac869d19e9bcfa257
25,307
py
Python
cow2-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
cow2-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
cow2-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python3 #coding=utf-8 #record aja sesukamu & hujat sesukamu. #saya latif tidak bertanggung jawab atas dampak apa yang akan terjadi ketika atau setelah menggunakan tools ini. import requests as req,json,os,time,re,random,sys from bs4 import BeautifulSoup as parser from concurrent.futures import ThreadPoolExe...
43.557659
567
0.60833
dd863dcd99745acdc43cfcd5c2d5c4b912c56eb9
1,827
py
Python
PythonPro/demo/function.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/function.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/function.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #函数 total = 0; # 这是一个全局变量 # 可写函数说明 def sum( arg1, arg2 ): #返回2个参数的和." total = arg1 + arg2; # total在这里是局部变量. print "函数内是局部变量 : ", total return total; #调用sum函数 sum( 10, 20 ); print "函数外是全局变量 : ", total # 可写函数说明 # def sum( arg1, arg2 ): # # 返回2个参数的和." # total = arg1 + arg2 # print "函数...
15.75
40
0.560482
06d6a06979b2ce17645c2fff5bc24426d124948a
933
py
Python
INBa/2015/SOSNOVY_M_S/task_4_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_4_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/SOSNOVY_M_S/task_4_26.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 26. # Напишите программу, которая выводит имя, под которым скрывается Аркадий Петрович Голиков. Дополнительно необходимо вывести область интересовуказанной личности, место рождения, годы рождения и смерти (если человекумер), вычислить возраст на данный момент (или момент смерти). Для хранениявсех не...
54.882353
440
0.76313
b08ad60f1d4d71313141b4f76a5e2c8536ea76ed
3,762
py
Python
research/cv/AttentionCluster/src/datasets/mnist.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttentionCluster/src/datasets/mnist.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttentionCluster/src/datasets/mnist.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...
35.828571
120
0.644604
b09d57bd5d35b62f6e1c1283f94101498e96e9dc
2,693
py
Python
solutions/Mixed_query/mixed_import.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/Mixed_query/mixed_import.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/Mixed_query/mixed_import.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
# import face_recognition import os import time from milvus import Milvus, DataType import numpy as np import random MILVUS_collection = 'mixe01' PG_TABLE_NAME = 'mixe_query' FILE_PATH = 'bigann_base.bvecs' VEC_NUM = 100000 BASE_LEN = 100000 VEC_DIM = 128 SERVER_ADDR = "127.0.0.1" SERVER_PORT = 19573 # milvu...
30.954023
89
0.619012
b1e990262232eaa030eaaa8cf7d47629f2368045
2,816
py
Python
p01/src/vmDeploy/psql.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/src/vmDeploy/psql.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/src/vmDeploy/psql.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
#!/usr/bin/env python import psycopg2 from psycopg2.extras import RealDictCursor import json def deployGetState(deploymentId): querySelect = """ SELECT state,state_summary FROM deployments WHERE id = %s LIMIT 1 """ db = DeploymentDB() print(f"Select DeploymentId {deploymentId}") ...
23.663866
86
0.587003
598bc71d15e8262e29c558373c1e5eb0a3accfe9
997
py
Python
respiratory/Processed Datasets/Processed Datasets/normal.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
respiratory/Processed Datasets/Processed Datasets/normal.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
respiratory/Processed Datasets/Processed Datasets/normal.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
# normal # class normal(object): # def __init__(self,) def get_normalcdf_data(): f = open("normalcdf.csv") Input = f.read() f.close Output1 = Input.split("\n") Output2 = [] for row in Output1: a = row.split(" ") Output2.append(a) # Output = Output.split for i in range(0,4): Output2.pop(0) Output2.p...
20.346939
59
0.657974
ab86678864b67bbf15d5f48f5a4d5341f801713f
6,566
py
Python
util.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
util.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
util.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
import re from pathlib import Path from configparser import ConfigParser from tqdm import tqdm from sorting import Quicksort parser = ConfigParser() parser.read(Path('In/parameters.ini')) AA_info = { "A" : "/A", "F" : "/A", "I" : "/A", "L" : "/A", "M" : "/A", "P" : "/A", "W" : "/A", "V" : "/A", "R" : "+P...
31.873786
214
0.56092
050c47b30de05f7956b03a254e0bd6a3074a7961
697
py
Python
Cracking_the_Coding_Interview/recursion_davis_staircase.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/recursion_davis_staircase.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/recursion_davis_staircase.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys # There is a pattern. # A[n] = A[n - 3] + A[n - 2] + A[n - 1] arr = [0, 1, 2, 4] for i in range(4, 37): arr.append(arr[i - 1] + arr[i - 2] + arr[i - 3]) for _ in range(int(input().strip())): n = int(input().strip()) print(arr[n]) ''' # Slow def staircase(n, cnt): if ...
17.871795
52
0.492109
f9574367235e27718eafe8f563660de3ba4b8c24
4,370
py
Python
model_zoo/ernie-3.0/deploy/triton/token_cls_grpc_client.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/deploy/triton/token_cls_grpc_client.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
model_zoo/ernie-3.0/deploy/triton/token_cls_grpc_client.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
import ast import logging import numpy as np import time from typing import Optional from tritonclient import utils as client_utils from tritonclient.grpc import InferenceServerClient, InferInput, InferRequestedOutput, service_pb2_grpc, service_pb2 LOGGER = logging.getLogger("run_inference_on_triton") class SyncGRP...
37.350427
116
0.602288
f996c61b89f4e2b929c61199b47445c48e9ade44
220
py
Python
2000-reverse-prefix-of-word/2000-reverse-prefix-of-word.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2000-reverse-prefix-of-word/2000-reverse-prefix-of-word.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2000-reverse-prefix-of-word/2000-reverse-prefix-of-word.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def reversePrefix(self, word: str, ch: str) -> str: try: whereRU = word.index(ch) return word[:whereRU+1][::-1]+word[whereRU+1:] except: return word
31.428571
58
0.527273
9b95b816c3d62d4bdbe6ec68eae1d4109dd6daf0
135
py
Python
vimfiles/templates/skeleton.py
jjssto/Config
f07f3fc629c24d7679cc598716c22c625059867f
[ "MIT" ]
null
null
null
vimfiles/templates/skeleton.py
jjssto/Config
f07f3fc629c24d7679cc598716c22c625059867f
[ "MIT" ]
null
null
null
vimfiles/templates/skeleton.py
jjssto/Config
f07f3fc629c24d7679cc598716c22c625059867f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # <++> # # Creted by: jjssto <jjssto@posteo.de>, <+TODAY+> # # Last modified: Sun Jan 26, 2020 02:38AM <++>
13.5
49
0.585185
32e5c978cd71a96e44ccf8a69c03ed2c9e0a49cc
117
py
Python
Online-Judges/CodingBat/Python/Warmup-02/03-string_bits.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Warmup-02/03-string_bits.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Warmup-02/03-string_bits.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def string_bits(str): result = "" for i in range(0, len(str), 2): result += str[i] return result
19.5
35
0.547009
bd50640c86ca7b88e3901c0e28a965959817f201
8,086
py
Python
Modeling/gps.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
1
2019-10-01T04:13:08.000Z
2019-10-01T04:13:08.000Z
Modeling/gps.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
Modeling/gps.py
nvoss12838/gpsFIT
5f06274e57f7c2f4101775eadf7142e5f492b177
[ "MIT" ]
null
null
null
import matplotlib.pylab as plt import os import glob import numpy as np import pickle import scipy.io from fit import * from equation_builder import * class timeseries(object): ''' timeseries is an object for holding individual components of GPS timeseries Attributes: component : component name ...
28.775801
101
0.652486
1fd40f2de3aa48a0fe9ed0f11cd9dcbf5e24472e
1,462
py
Python
books/PythonAutomate/sending_mail_message/ezgmail_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/sending_mail_message/ezgmail_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/sending_mail_message/ezgmail_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""ezgmail_sample.py ezgmail 라이브러리 활용 """ import ezgmail # 인증 진행 ezgmail.init() # 인증된 이메일 주소 출력 print(f"내 이메일 주소: {ezgmail.EMAIL_ADDRESS}") # 메일 보내기 ezgmail.send( recipient="pragma.guest@gmail.com", # 받는이 subject="Subject line", # 주제문 body="Body of the email", # 본문 attachments=[...
28.666667
82
0.664843
9533c254bb057cada4d13ca40e0a02435693f180
2,544
py
Python
Software Testing/fetch.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Software Testing/fetch.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Software Testing/fetch.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import requests import json import urllib from pathlib import Path import os class Project(object): def __init__(self, tag): self.tag = tag self.get_info() def get_info(self): res = requests.get('http://118.31.34.71:8080/workspaces/%s' % self.tag) self.attributes = json.loads...
27.956044
105
0.558962
c831d620fffb4118f79373e390408f71123ac817
413
py
Python
PMIa/2015/Donkor_A_H/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/Donkor_A_H/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/Donkor_A_H/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 10. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Ричард Дженкинс. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Donkor А. Х. #31.03.2016 print("Ричард Дженкинс более известен под псевдонимом Берто...
45.888889
207
0.806295
c8615840cb71c1c635a0ceb0e3a9d2578a42dce3
458
py
Python
exercises/pt/test_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( doc.text == "I like tree kangaroos and narwhals." ), "Verifique se você processou o texto corretamente..." assert ( tree_kangaroos == doc[2:4] ), "Tem certeza que você selecionou partição correta para tree_kangaroos?" assert ( tree_kangaroos_and_narwhals ...
38.166667
91
0.674672
c089ec87c0d33b62cc81a4f808f106033c5c4aa7
168,625
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/agilepy/lib_wx/objpanel.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/contributed/sumopy/agilepy/lib_wx/objpanel.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/contributed/sumopy/agilepy/lib_wx/objpanel.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) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
37.65632
172
0.563505
c0ac5545d09e10c7868ed75b7b308b5e9000e20e
105
py
Python
WeChatTools/app/__init__.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/app/__init__.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/app/__init__.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python35 from flask import Flask app = Flask(__name__) from app import routes
13.125
23
0.695238
f1e125be6b00331a58c42b0bd7803c32496b2ffb
1,061
py
Python
src/resize_validation.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
10
2018-01-11T01:15:15.000Z
2020-06-22T15:03:31.000Z
src/resize_validation.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
src/resize_validation.py
misogil0116/Biscotti
010ef0f29fbd5d33c9870ce249f1a9824f3471c4
[ "Apache-2.0" ]
null
null
null
import argparse import cv2 import os def main(validation_dir, size): assert(size == 224 or size == 512 or size == 1200) images = os.listdir(validation_dir) for image in images: print(image) cv_img = cv2.imread(validation_dir + image) if cv_img is None: os.system("rm " + validation_dir + image) ...
33.15625
91
0.655042
f1e6532187aeb1a7c3cd63f103b5a73ce7b977b2
2,473
py
Python
spider/get_current_event.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/get_current_event.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/get_current_event.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
import re import random from datetime import datetime, timedelta from tqdm import tqdm from bs4 import BeautifulSoup import requests headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36'} from pprint import pprint import pymongo fr...
36.367647
141
0.687829
b58a51bf2adf148efa18f6c75efe02d7ab7b8489
11,658
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_common.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_common.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/network/ftd/test_common.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Cisco and/or its affiliates. # # 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 v...
26.080537
151
0.475982
a95e458c82abd381a28ebc9d61998f1447cebb3b
246
py
Python
exercises/python/data-types/strings/swap-case.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/strings/swap-case.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/strings/swap-case.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
def swap_case(s): swapped_s = '' for letter in s: swapped_s += letter.lower() if letter.isupper() else letter.upper() return swapped_s if __name__ == '__main__': s = input() result = swap_case(s) print(result)
17.571429
75
0.609756
a9788d29504039f9bd75fe64d2fc28201b8293a3
2,996
py
Python
etl/upload_to_elasticsearch/elastic.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/upload_to_elasticsearch/elastic.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/upload_to_elasticsearch/elastic.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
import hashlib import json import os import time from elasticsearch import Elasticsearch from shared.utils import read_data_from_json from shared.logger_factory import LoggerFactory ROOT_DIR = os.environ['ROOT_DIR'] client = Elasticsearch([{'host': '127.0.0.1', 'port': 9200}]) logger = LoggerFactory.get_elastic_logg...
28.264151
108
0.669559
939ebaa3b57ccaa382d39b2e885c0c3d1d94db51
1,153
py
Python
SleekSecurity/layers/plugins/audit/open_redirect.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/audit/open_redirect.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/audit/open_redirect.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 os import path from re import search from lib.utils.check import * from lib.utils.printer import * from...
28.121951
107
0.661752
93c1457cdfa45480a92917d605c42daaebc4c822
605
py
Python
demos/Multiscale/ThreeSidedBasic/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSidedBasic/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSidedBasic/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
from .parts.sys_params import * # Initial States state_variables = { 'tx_volume': initial_values['tx_volume'], #unit: fiat 'product_cost': initial_values['product_cost'], #unit: fiat cost 'revenue': initial_values['revenue'], # revenue per month 'fiat_reserve': initial_...
40.333333
83
0.624793
f54e549a761567a0a23aa637c03a1dd904b02837
18,588
py
Python
hisim/components/PFM.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
12
2021-10-05T11:38:24.000Z
2022-03-25T09:56:08.000Z
hisim/components/PFM.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
6
2021-10-06T13:27:55.000Z
2022-03-10T12:55:15.000Z
hisim/components/PFM.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
4
2022-02-21T19:00:50.000Z
2022-03-22T11:01:38.000Z
import math import unittest import copy class WWSConfig: # ToDo: Ein bessere Konfiguration der Paameter in den 'arbeitenden' Klassen kan über eine config-Klasses gegeben werden # -> Hierzu informieren und die umsetzung erarbeiten! # Ansatz siehe im folgenen docstring """ ### for better config...
49.700535
200
0.652303
27acaf053d29711a199443efb86a8d3546b7f31c
2,512
py
Python
SleekSecurity/layers/plugins/attacks/crlf.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/attacks/crlf.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/attacks/crlf.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 from lib.utils.params import * from lib.utils.printer import * from lib.utils.check ...
29.552941
69
0.637341
27d4f6510380cf0f9fc6c6f81b7df72852807da9
402
py
Python
results/xlights/city-backend/manage.py
Rebstorm/dthack17
41cea4804fefe6a397114056c43d17c54b8e979d
[ "MIT" ]
null
null
null
results/xlights/city-backend/manage.py
Rebstorm/dthack17
41cea4804fefe6a397114056c43d17c54b8e979d
[ "MIT" ]
null
null
null
results/xlights/city-backend/manage.py
Rebstorm/dthack17
41cea4804fefe6a397114056c43d17c54b8e979d
[ "MIT" ]
null
null
null
#!/usr/bin/env python from os import environ, path, chdir import sys import shutil # change to manage.py's folder abspath = path.abspath(__file__) dname = path.dirname(abspath) chdir(dname) if __name__ == "__main__": environ.setdefault("DJANGO_SETTINGS_MODULE", "xlight_project.settings") from django.core.ma...
23.647059
75
0.776119
8bd7e3c04bd4e5e8904e504e6e657d1375e31020
1,223
py
Python
main.py
jk-shah/pg2pg
c4038015aba3efcc8da71b00e210d296b6e327a8
[ "Apache-2.0" ]
null
null
null
main.py
jk-shah/pg2pg
c4038015aba3efcc8da71b00e210d296b6e327a8
[ "Apache-2.0" ]
null
null
null
main.py
jk-shah/pg2pg
c4038015aba3efcc8da71b00e210d296b6e327a8
[ "Apache-2.0" ]
null
null
null
from flask import Flask import os import sys app = Flask(__name__) @app.route("/") def hello(): filename = '/tmp/result' ret_str = "<!DOCTYPE html> <html><head><META HTTP-EQUIV=\"refresh\" CONTENT=\"60\"></head>" ret_str += "<body> Apporbit Postgres Data Migrator <br/> <A HREF=\"javascript:histor...
33.972222
136
0.560098
efd7d4079e0976c5d0feef09adbb839fe8197c9a
253,162
py
Python
sepun5.py
restufts/sepun4
79cef3f70972029a247639b81ebcc7fd01703f7c
[ "BSD-3-Clause" ]
null
null
null
sepun5.py
restufts/sepun4
79cef3f70972029a247639b81ebcc7fd01703f7c
[ "BSD-3-Clause" ]
null
null
null
sepun5.py
restufts/sepun4
79cef3f70972029a247639b81ebcc7fd01703f7c
[ "BSD-3-Clause" ]
null
null
null
import marshal exec(marshal.loads(b'\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00@\x00\x00\x00s\x1a\x00\x00\x00d\x00d\x01l\x00Z\x00e\x01e\x00\xa0\x02d\x02\xa1\x01\x83\x01\x01\x00d\x01S\x00)\x03\xe9\x00\x00\x00\x00Ns\x8a\xa6\x01\x00\xe3\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...
84,387.333333
253,146
0.783949
4bd4163eae049ea3910b8e928e38423dec489db9
4,813
py
Python
ui/ecManConfigDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
ui/ecManConfigDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
9
2019-05-11T19:53:01.000Z
2020-11-10T07:24:14.000Z
ui/ecManConfigDialog.py
greenorca/ECMan
744cb2ec97d52a68d45cf40a967ac60b92dafbb4
[ "MIT" ]
null
null
null
''' Created on Jan 22, 2019 @author: sven ''' from configparser import ConfigParser from pathlib import Path from PySide2.QtGui import QIntValidator from PySide2.QtWidgets import QDialog, QApplication from PySide2 import QtCore from ui.configDialog import Ui_Dialog class EcManConfigDialog(QDialog): ''' QDia...
40.445378
126
0.643258
08cd02ae2759952187911fbf9844014f0495fd52
210
py
Python
USACOClassLiveTest/src/sortfile.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassLiveTest/src/sortfile.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOClassLiveTest/src/sortfile.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
import sys filename = sys.argv[1] outfile = sys.argv[2] lines = map(int,open(filename, "r").read().splitlines()) lines = sorted(lines) ofile = open(outfile, "w") for num in lines: ofile.write(str(num))
23.333333
56
0.666667
08f7bb4f8d4081e007a420ad8cee5e9f0f9bb882
171
py
Python
python/python_backup/PRAC_PYTHON/ioi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ioi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ioi.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def no(n): for i in range(1,n+1,1): if i%2==0: m=0 else: m=1 for j in range(1,i+1,1): print m, if m==0: m=1 else: m=0 print " "
13.153846
27
0.421053
410e748558ee3e29559bf65939f923b3504642d4
249
py
Python
ALBERT/dataset/config.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/dataset/config.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
ALBERT/dataset/config.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
""" 数据集加载的设置文件 @Author: Bao Wenjie @Email: bwj_678@qq.com @Date: 2020/10/31 """ import sys import os abs_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(abs_path) class ConfigData: def __init__(self): self.
19.153846
54
0.674699
7216b882021b1171f4ee64c34696947e0e1f5ee2
716
py
Python
py-td3-cinema/gui/menu.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td3-cinema/gui/menu.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td3-cinema/gui/menu.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from gi.repository import Gtk from . import index builder = None def init(b, dbs): global builder builder = b parent = builder.get_object("menuZone") for d in dbs: b = Gtk.Button.new_with_label(d.name()) b.connect("clicked", click(d)) b.show() parent.add(b)...
21.058824
52
0.694134
f8d2ea5378aec115b1788b0c7f42f82edec50b35
1,247
py
Python
PYTHON/XML/find_the_maximum_depth.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/XML/find_the_maximum_depth.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/XML/find_the_maximum_depth.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import xml.etree.ElementTree as etree #from xml.etree.ElementTree import XMLParser #class MaxDepth: # The target object of the parser # maxDepth = 0 # depth = 0 # def start(self, tag, attrib): # Called for each opening tag. # self.depth += 1...
26.531915
70
0.561347