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
cebddeea41719793fedf526294f0169bd905a76c
9,751
py
Python
mltrain-nips-2017/rose_yu/reader.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
mltrain-nips-2017/rose_yu/reader.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
mltrain-nips-2017/rose_yu/reader.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
"""Functions for downloading and reading time series data.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from six.moves import xrange # pylint: disable=redefined-builtin from tensorflow.contrib.learn.python.learn.datasets import ba...
36.114815
132
0.594093
0ba55ee8d418abd57bb119f0dc3f444704c8d117
11,022
py
Python
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/JavaScriptCore/inspector/scripts/codegen/generate_objc_protocol_types_implementation.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
#!/usr/bin/env python # # Copyright (c) 2014, 2016 Apple Inc. All rights reserved. # Copyright (c) 2014 University of Washington. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributio...
49.205357
155
0.6683
33519e3fcc5a173b421b08b587adf217da037f2f
1,822
py
Python
examples/text_classification/pretrained_models/deploy/serving/export_servable_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_classification/pretrained_models/deploy/serving/export_servable_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/text_classification/pretrained_models/deploy/serving/export_servable_model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 required by appli...
37.958333
74
0.653677
9bd504a4a60b65536f88c11852da91cece2972a3
215
py
Python
apps/process/urls.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/process/urls.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/process/urls.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.urls import path from apps.process import views app_name = 'process' urlpatterns = [ path('analysis/', views.analysis, name='analysis'), path('', views.from_dashboard, name='from_dashboard'), ]
23.888889
58
0.716279
ac9cf64044ad1e7ef855768b60c5f0b89e838699
961
py
Python
assets/udk/python/samples/biblioaccess.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
5
2019-10-14T23:00:48.000Z
2021-11-06T22:21:06.000Z
assets/udk/python/samples/biblioaccess.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
31
2020-11-14T09:27:16.000Z
2022-03-08T17:09:15.000Z
assets/udk/python/samples/biblioaccess.py
brnnnfx/openoffice-org
8b1023c59fd9c7a58d108bb0b01dd1f8884c9163
[ "Apache-2.0" ]
15
2020-11-10T17:04:25.000Z
2022-01-31T12:12:48.000Z
import uno from com.sun.star.sdb.CommandType import COMMAND def main(): connectionString = "socket,host=localhost,port=2002" url = "uno:"+connectionString + ";urp;StarOffice.ComponentContext" localCtx = uno.getComponentContext() localSmgr = localCtx.ServiceManager resolver = localSmgr.c...
26.694444
80
0.689906
acd022df0fc3330e713394ab8b9563d05fa5dc6e
86
py
Python
Python-BlueEdTech-main/projeto-exemplo/casa.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
3
2021-05-30T20:01:06.000Z
2021-07-07T00:46:37.000Z
Python-BlueEdTech-main/projeto-exemplo/casa.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
Python-BlueEdTech-main/projeto-exemplo/casa.py
Gitdu-edu/TrabalhoFinalBlue
9152264b79b3dfdf01253706e437ee7713f6c3e7
[ "MIT" ]
null
null
null
class Casa: def __init__(self): self.remedios = 1 self.comida = 5
17.2
25
0.55814
c5f4cf863ed6f2a4fa0e9a415ec3f8812a0acfa4
377
py
Python
Online-Judges/DimikOJ/Python/16-word-crash.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/16-word-crash.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/16-word-crash.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for _ in range(int(input())): full_sentence = list(map(str, input().split())) reversed_sentence = [] for i in range(len(full_sentence)): temp_str = "" j = len(full_sentence[i]) - 1 while j >= 0: temp_str += full_sentence[i][j] j -= 1 reversed_sentence...
29
51
0.562334
a85ef6b898de6c5adc91384a24daa5f3c4aecd97
1,363
py
Python
python/encoding.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/encoding.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/encoding.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
N = 0 # character never appears in text A = 1 # character appears in plain ASCII text I = 2 # character appears in ISO-8859 text X = 3 # character appears in non-ISO extended ASCII (Mac, IBM PC) text_chars = [ # BEL BS HT LF VT FF CR N, N, N, N, N, N, N, A, A, A, A, A, A, A, N, N, # ...
45.433333
81
0.413793
7670e7708c6e48c737f2119e92f31da3186410ff
513
py
Python
pacman-termux/test/pacman/tests/ignore007.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/ignore007.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/ignore007.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sync group with ignored packages" pkg1 = pmpkg("package1") pkg1.groups = ["grp"] self.addpkg2db("sync", pkg1) pkg2 = pmpkg("package2") pkg2.groups = ["grp"] self.addpkg2db("sync", pkg2) pkg3 = pmpkg("package3") pkg3.groups = ["grp"] self.addpkg2db("sync", pkg3) self.option["IgnorePkg"] = ["packa...
23.318182
53
0.68616
8b42ec2b2f18240f39c351b7023334905309096f
5,112
py
Python
venv/Lib/site-packages/pynance/tst/unit/data/test_feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/tst/unit/data/test_feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/tst/unit/data/test_feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" Copyright (c) 2014 Marshall Farrier license http://opensource.org/licenses/MIT @author: Marshall Farrier @contact: marshalldfarrier@gmail.com @since: 2014-11-02 @summary: Unit tests for data module """ from functools import partial import unittest import numpy as np import pandas as pd import pynance as pn cla...
43.322034
108
0.58705
50ae1d4f7a676b1290b6266d5db674c34cd29763
2,708
py
Python
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/worker_algorithm_dir/hetero_worker.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/worker_algorithm_dir/hetero_worker.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/worker_algorithm_dir/hetero_worker.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
import time import os import argparse from multiprocessing import Process import sys from ray.rllib.env.policy_client import PolicyClient SERVER_ADDRESS = os.environ.get('VC_LEARNER_HOSTS', "127.0.0.1") # "127.0.0.1" SERVER_PORT = 9999 parser = argparse.ArgumentParser() parser.add_argument("--inference-...
33.85
97
0.605613
50c1a58acce50780e50ef71ce0425474e450abe4
971
pyde
Python
sketches/mandelbrot2/mandelbrot2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/mandelbrot2/mandelbrot2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/mandelbrot2/mandelbrot2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Das Mandelbrot-Set als Pixel-Array nach Daniel Shiffman maxlimit = 4.0 maxiter = 100 def setup(): size(600, 600) colorMode(HSB, 255, 100, 100) noLoop() def draw(): background("#ffffff") w = 3.0 h = (w*height/width) xmin = -w/2.0 - 0.75 ymin = -h/2.0 loadPixels() xmax = xmin ...
23.682927
69
0.435633
50ca813eab28d9c0d7b09ba4d81f1bd9f8957dfb
281
py
Python
Curso-Em-Video-Python/2Exercicios/077_Contando_vogais_em_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/077_Contando_vogais_em_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/077_Contando_vogais_em_Tupla.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
palavras = ('Agua', 'Cruzeiro', 'Rap', 'Know', 'Lapis', 'Naruto', 'Itachi', 'Jiraia', 'Python', 'Programar', 'Futuro') for n in palavras: print(f'\nNa palavra {n.upper()} temos ', end='') for letra in n: if letra.upper() in 'AEIOU': print(letra, end='')
46.833333
118
0.562278
0fc7e9e5047b2ca82e43d600bc3d4933d6de25fe
27,472
py
Python
skripte/python/edit_tools/abgleich_neueintraege.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/abgleich_neueintraege.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/abgleich_neueintraege.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2014 Günter Milde. # Released without warranty under the terms of the # GNU General Public License (v. 2 or later) # :Id: $Id: $ # Versuche Trennstellen neuer Wörter aus vorhandenen zu ermitteln # =============================...
26.801951
83
0.402665
fa5bd4a7fc958d25f5030b9fecef2c588523e2f5
3,701
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/ie/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/ie/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/ie/vat.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# vat.py - functions for handling Irish VAT numbers # # Copyright (C) 2012-2016 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (a...
33.954128
77
0.683869
ad927b8f897ec0f69ff23e59178db6ccc5c2c115
1,736
py
Python
Imaginary/2021/rev/Ay_Yi_Yi/iii.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/rev/Ay_Yi_Yi/iii.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/rev/Ay_Yi_Yi/iii.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from icicle import * from PIL import Image def iii_to_png(fname): assert fname[-4:] == ".iii" iii = open(fname, 'rb').read() assert iii[:4] == b"\x7fIiI" iii = iii[4:] w = bytes_to_long(iii[:2]) h = bytes_to_long(iii[2:4]) iii = iii[4:] assert len(iii)%3 == 0 ...
26.707692
85
0.540899
d1510e3edfecac504da16dbe97c28483bac09ed2
1,315
py
Python
RDS/circle1_adapters_and_ports/port_zenodo/src/api/project/files.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle1_adapters_and_ports/port_zenodo/src/api/project/files.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle1_adapters_and_ports/port_zenodo/src/api/project/files.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import logging import os from lib.upload_zenodo import Zenodo from lib.Util import require_api_key from flask import jsonify, request, g logger = logging.getLogger() # FIXME: all endpoints need server tests, but POST cannot currently be tested through pactman, because it only supports json as content type @require_a...
24.811321
140
0.736882
d15ddd39e36687f1b4022941e037c1dc0c9a24ec
95,432
py
Python
kgf1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
kgf1.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
kgf1.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/python # coding=utf-8 try: import os,sys,time,datetime,random,hashlib,re,threading,json,getpass,urllib,cookielib,requests from multiprocessing.pool import ThreadPool except ImportError: os.system("pip2 install requests") os.system("pip2 install mechanize") os.system("python2 kgf1....
51.640693
480
0.49847
66f96b8cc0ba80718993850f238b3f27106c2f2a
1,428
py
Python
solutions/QA_System/QA-search-server/app.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/QA_System/QA-search-server/app.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/QA_System/QA-search-server/app.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import os import os.path as path import logging from flask_cors import CORS from flask import Flask, request, send_file, jsonify from flask_restful import reqparse from werkzeug.utils import secure_filename import numpy as np from bert_serving.client import BertClient import shutil import urllib import os import tim...
23.8
69
0.686275
0f53047fc781d6e89f0765036d4d65ed6d9adf63
3,539
py
Python
examples/information_extraction/waybill_ie/model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/waybill_ie/model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/information_extraction/waybill_ie/model.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 required by appli...
37.648936
75
0.621927
7d0167d4e9d5ef52d75a604fdd99a2ba6fa41daa
120
py
Python
Algorithms/Implementation/repeated-string.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/repeated-string.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Algorithms/Implementation/repeated-string.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
import sys s = input().strip() n = int(input().strip()) print(s.count('a') * (n // len(s)) + s[:n % len(s)].count('a'))
24
63
0.525
adf7f758ec510c7822af0e3eb3169484d907ed27
49,227
py
Python
BFF.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
BFF.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
BFF.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# coding=utf-8 # coding by Romi Afrizal # Note : jangan di ubah lagi! nanti error, script udah enak Hj = '\x1b[1;92m' Mt = '\x1b[0m' ingfo = ( """%s • Info script : - author : Yumasaa - facebook : https://www.facebook.com/profile.php?id=100071694021818 - fanspage : - - whatsap : +...
72.606195
5,615
0.634591
38089d61aba6621a67819c282996c75560a1cdcb
86
py
Python
python/python_backup/PRAC_PYTHON/iu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/iu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/iu.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for i in range(1,6,1): for j in range(1,10,1): j=j+2 i=i-1 print i, print
14.333333
25
0.534884
69ddd60633360de45a326129c84ae0d916f24dd1
443
py
Python
exercises/fr/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/test_01_08_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert "for ent in doc.ents" in __solution__, "Itères-tu sur les entités ?" assert ( "print(ent.text, ent.label_)" in __solution__ ), "Affiches-tu le texte et le label ?" __msg__.good( "Excellent travail ! Jusqu'à présent, le modèle a été juste à chaque fois. " "Dans...
36.916667
84
0.641084
0e044e2a45b19f01adbb0d0ccb3ff38084f2c75d
708
py
Python
mdproc.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
2
2020-03-05T16:01:17.000Z
2020-09-25T11:28:27.000Z
mdproc.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
null
null
null
mdproc.py
persquare/ZK2
5c00d0a5a59123931848259286bb13bb86c5396b
[ "MIT" ]
null
null
null
import subprocess import shlex try: from config import md_cmd except: md_cmd = '' def render(text): r = Renderer() return r.process(text) class Renderer(object): """docstring for Renderer""" def __init__(self): self.cmd = shlex.split(md_cmd.strip()) def process(self, text): ...
23.6
91
0.668079
2accf002b1ff1247b74da4f7d4a6e11437b0bd36
2,489
py
Python
Hackergame_2020/超精巧的数字论证器/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2020/超精巧的数字论证器/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2020/超精巧的数字论证器/index.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
from multiprocessing import Process segs = {} res = {} def raw_set(seg, exp, val): if val in res[seg]: if len(exp) >= len(res[seg][val]): return res[seg][val] = exp def set(seg, exp): val = int(eval(exp)) # print(exp, val) raw_set(seg, exp, val) def set_ans(seg, exp): ...
24.165049
78
0.387304
2af3142810c8deb1c37d1fcdf7073532c8b90490
1,300
py
Python
Python/plotCmAlpha.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
1
2019-02-11T00:45:37.000Z
2019-02-11T00:45:37.000Z
Python/plotCmAlpha.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
Python/plotCmAlpha.py
guillaumetousignant/euler3D
7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae
[ "MIT" ]
null
null
null
import numpy as np import math import string import matplotlib import matplotlib.pyplot as plt class plotCmAlpha(object): #Plot Cm vs Alpha graph def __init__(self, npAngleOfAttack, npAerodynamicCmx, npAerodynamicCmy, npAerodynamicCmz): print("plotCmAlpha..........................................
41.935484
95
0.559231
2d7c7b27455f38acc575c1d8a6954559aca1f8fd
11,184
py
Python
kts/core/backend/run_manager.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/core/backend/run_manager.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/core/backend/run_manager.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import os import time from collections import defaultdict from copy import copy from typing import Optional, Dict, Union, Tuple, Any, List import pandas as pd import ray from ray._raylet import ObjectID from ray.exceptions import RayError import kts.core.backend.signal as rs from kts.core.backend.address_manager impo...
37.28
133
0.590308
87bd61afd8e1c70d786b22d63372c88c728f380c
1,727
py
Python
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/data/pipeline_trigger_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/data/pipeline_trigger_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/data/pipeline_trigger_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends from watchmen_auth import PrincipalService from watchmen_meta.common import ask_snowflake_generator from watchmen_model.admin import UserRole from watchmen_model.pipeline_kernel import PipelineTriggerData, PipelineTriggerResult from watchmen_pipeline_kernel.pipeline import try_to...
55.709677
119
0.85524
57d04f9cf8282fa9f32295dd38c5461d180f0c3e
4,138
py
Python
FileExport/FileDialog.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
FileExport/FileDialog.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
FileExport/FileDialog.py
Robsen01/Brain_Interface
2525dc5e90bc5ac6b67f8f596fdf26a9ae6b391e
[ "Apache-2.0" ]
null
null
null
import sys from PySide2.QtGui import QValidator sys.path.append('../../Brain_Interface') from matplotlib.figure import Figure from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg, NavigationToolbar2QT as NavigationToolbar from PySide2.QtWidgets import QMainWindow, QSizePolicy, QVBoxLayout, QHBoxLayout, QWi...
31.587786
176
0.666506
aa02abb625674313b4281a8a013dda4a2075b186
1,271
py
Python
order/migrations/0001_initial.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0001_initial.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0001_initial.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-10-28 09:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Order', fields=[ ('id', mo...
37.382353
115
0.552321
10be497a09a4e1f5145b097f72922e5db85f6aae
1,183
py
Python
Project4/test_main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project4/test_main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
Project4/test_main.py
veronikadim99/Wissenschaftliches-Rechnen
3b7c86e9488bf434f3ad1d590f5b9bb9b4cdf218
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase import numpy as np import os import unittest from scipy import interpolate from lib import plot_function, plot_function_interpolations, plot_spline, animate, linear_animation, cubic_animation, \ runge_function, pad_coefficients from main import natural_cubic_interpolation class Test(...
36.96875
119
0.625528
524932e90758897a8ebe0480f45df3fb2b8b91ce
4,434
py
Python
03 Python/Einparkhilfe/loesung/src/myapp/utils/observable.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/utils/observable.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/utils/observable.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import queue, threading class Observable: """ Basisklasse für Objekte, die mit dem Observer-Pattern überwacht werden könnnen. Kann entweder von einer Klasse geerbt werden, damit diese das Observer-Pattern realisiert oder als eigenständiges Objekt verwendet werden, um einen zentralen Event-Broker zu...
37.260504
89
0.610059
0df7bf03ac45b001cb0627b2fbd2afeb97bfd9db
4,106
py
Python
python/data_sutram/pypath/PyPath/get_bus_from_stoppages/routes/route_coord.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/pypath/PyPath/get_bus_from_stoppages/routes/route_coord.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/pypath/PyPath/get_bus_from_stoppages/routes/route_coord.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" Note: Needs db.sqlite in the same folder!!!! This program takes a route ID and returns all the coorinates present in the route, i.e., the coordinates in a list of tuple [(lat,lon),(lat,lon),...,(lat,lon)] This takes the route short name, start stop name and end stop name as Input. """ import json from pypath im...
39.104762
137
0.723088
21760f55c6c2e31d07c844be2420bbe0e84b4a4f
4,786
py
Python
python/odml/examples/example_create_1.3.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_create_1.3.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_create_1.3.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import odml import os from distutils.version import LooseVersion as CheckVer if not CheckVer(odml.__version__) < CheckVer('1.4.0'): print("odml version 1.3 or lesser required") quit() wdir = "/home/msonntag/Chaos/work/x_odml/tmp" fn_base = "1.3.3_example.%s" doc = odml.Document(author="author", date="2018-0...
50.378947
119
0.664647
218df51db2bf1a3cf5c878e061bfcb23d4ecc32d
9,177
py
Python
frappe-bench/apps/erpnext/erpnext/regional/india/setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/india/setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/regional/india/setup.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, os, json from frappe.custom.doctype.custom_field.custom_field import create_custom_fields from frappe.permissions import add_permission ...
43.909091
179
0.7339
df414735518aa23c040a0fd5aed92f4c2525c7d2
351
py
Python
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P06_Salary.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P06_Salary.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L04_ForLoop/Exercises/Solutions/P06_Salary.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
tabs = int(input()) salary = int(input()) for each in range(tabs): website = input() if website == "Facebook": salary -= 150 if website == "Instagram": salary -= 100 if website == "Reddit": salary -= 50 else: continue if salary <= 0: print('You have lost your sa...
19.5
39
0.552707
10e784d9c9f5d2064d6f7ccb41c55e821864ec70
423
py
Python
configurations/models.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
1
2019-07-22T14:03:11.000Z
2019-07-22T14:03:11.000Z
configurations/models.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
configurations/models.py
silver-whale-enterprises-llc/amzproduzer
25e63f64b0ef09241475c72af9a710dcb7d9e926
[ "Apache-2.0" ]
null
null
null
from django.db import models from abstracts.models import TimeStamp class CategorySalesRank(TimeStamp): name = models.CharField(max_length=255, default='') max_allowed = models.IntegerField(null=False, blank=False, default=200000) preferred = models.IntegerField(null=False, blank=False, default=100000) ...
32.538462
79
0.739953
33b081dcc31a67092a4b956bcfc104bdf8ce97d4
567
py
Python
listings/chapter03/guess.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter03/guess.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter03/guess.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
print("Denk dir eine Zahl zwischen 1 und 100, die ich erraten werde.") # Anfangs-Ratewert: 50 guess = 50 # Endlosschleife, bis erraten oder Fehler while True: print(f"{guess}. 1) korrekt, 2) zu groß, 3) zu klein, 4) Ende?") # Endlosschleife, bis 1-3 eingeben. while True: choice = input('> ') ...
25.772727
70
0.530864
1d3bf9c7d13dbd3967004cb10a72546a90e3f6d3
404
py
Python
DataStructures/LinkedList/Delete.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/Delete.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/Delete.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def Delete(head, position): count = 0 prev = None cur = head while cur is not None and count < position: count += 1 prev = cur cur = cur.next #make sure input is valid if count != position: return 0 else: if prev is None: ...
19.238095
47
0.507426
d55dee4ca2c54adba304160d0d091e12901c69d1
374
py
Python
src/autograph/services/autograph/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/autograph/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
src/autograph/services/autograph/__init__.py
RobetSlovev39/AutoGraph
c8bdb358b95143ab0d8c6f7c475a6c21f7a76b95
[ "MIT" ]
null
null
null
from .session import Session import os # from django.conf import settings autograph_session = Session( api=os.environ['AG_SERVER'], # settings.AG_SERVER login=os.environ['AG_LOGIN'], # settings.AG_LOGIN password=os.environ['AG_PASSWORD'], # settings.AG_PASSWORD time_difference=120 # settings.TIME_...
31.166667
63
0.745989
63c7dbfb0c2f5eca66725b1a9c66c27424b7b471
4,224
py
Python
src/onegov/feriennet/models/volunteer_cart.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/volunteer_cart.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/volunteer_cart.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from itertools import groupby from onegov.activity import OccasionNeed from onegov.core.orm.sql import as_selectable_from_path from onegov.core.utils import module_path from onegov.feriennet import _ from sedate import overlaps from sqlalchemy import select class VolunteerCart(object): """ Stores items of the vol...
30.832117
77
0.579782
89a0763c5788f06c4a586e0552a3a6653a75eb16
242
py
Python
WeChatTools/Utils/time_utils.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/time_utils.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
WeChatTools/Utils/time_utils.py
TitusWongCN/WeChatRelativeTools
9307bae8c15e47b5bbf169a95a50be0d107a5bb1
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- # python35 import time def get_short_timestamp(): return time.strftime('%Y%m%d', time.localtime(time.time())) def get_long_timestamp(): return time.strftime('%Y/%m/%d %H:%M:%S', time.localtime(time.time()))
20.166667
74
0.652893
89bc834d7139dd8654fad53259a49710b2a02c61
7,835
py
Python
pvtool/routes/_users.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-10-31T13:34:12.000Z
2019-10-31T13:34:12.000Z
pvtool/routes/_users.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
1
2019-05-27T13:03:25.000Z
2019-05-27T13:03:25.000Z
pvtool/routes/_users.py
schmocker/pv-FHNW
5066e0bc7ce76be5d1a930b50034c746b232a9f8
[ "MIT" ]
null
null
null
"""Implements login function and links users to measurement""" from flask import Blueprint, flash, render_template, redirect, url_for, request, abort, send_file, session from sqlalchemy.exc import IntegrityError from flask_login import LoginManager, login_user, logout_user, UserMixin, current_user from ..db import db, ...
34.977679
121
0.662285
7f4babd0e065a5fb2e36230ed4ca91fe36e1a057
2,902
py
Python
source/pkgsrc/inputmethod/fcitx5-mozc/patches/patch-build__mozc.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/inputmethod/fcitx5-mozc/patches/patch-build__mozc.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/inputmethod/fcitx5-mozc/patches/patch-build__mozc.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-build__mozc.py,v 1.1 2021/02/17 15:29:51 ryoon Exp $ * NetBSD support --- build_mozc.py.orig 2021-02-15 03:48:53.000000000 +0000 +++ build_mozc.py @@ -55,6 +55,7 @@ from build_tools.util import CopyFile from build_tools.util import GetNumberOfProcessors from build_tools.util import IsLinux from buil...
39.216216
82
0.657133
7fb5790434991b66cf56591f25b76e66de31eae4
12,325
py
Python
brick/brick.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/brick.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/brick.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-21 @author: Xsank ''' import os import time import itertools import functools import mimetypes from json import dumps from urlparse import urljoin from traceback import format_exc from types import StringType from config import HTTP_CODES,DEBUG from http import Request,Response from exception i...
38.515625
95
0.587667
c3e756bde0707a04a54885a8cdb6dc93a4d033dc
1,713
py
Python
S7/CS431-CDL/pgm-13/first.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S7/CS431-CDL/pgm-13/first.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S7/CS431-CDL/pgm-13/first.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
import re from pprint import pprint def get_if_nt(handle, prods): """Loops over the passed production""" temp = [] for sub_seq in prods[handle]: if sub_seq[0] in terminals: temp.append(sub_seq[0]) else: if handle == sub_seq[0]: prods[handle].remove(s...
31.722222
84
0.557501
616b5424d568eaa4657a1f25cec3fe22cb7effbe
2,346
py
Python
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/gen_proc_table.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/gen_proc_table.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
null
null
null
3rdparty/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/gen_proc_table.py
mchiasson/PhaserNative
f867454602c395484bf730a7c43b9c586c102ac2
[ "MIT" ]
1
2019-01-25T13:55:25.000Z
2019-01-25T13:55:25.000Z
#!/usr/bin/python # Copyright 2017 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # gen_proc_table.py: # Code generation for entry point loading tables. # TODO(jmadill): Should be part of entry point generation. ...
30.076923
114
0.723785
f64bba9b941466c5b0fec5c89047ce05b3a837a8
1,195
py
Python
checker/responsivesecurity/proxy.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/proxy.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
checker/responsivesecurity/proxy.py
fausecteam/faustctf-2019-responsivesecurity
65b4e02bdc9de278166c38697ab992638977d511
[ "0BSD" ]
null
null
null
from browsermobproxy import Server import threading import random import atexit from . import resources import logging _server = None _lock = threading.RLock() def get_server(): global _server with _lock: options = dict(port = random.randrange(2**15, 2**16)) if _server is None: fo...
22.980769
88
0.60251
210b8611a0a605fd8b936eaeafb965e1e2231cf6
89
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/ls8.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/ls8.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/73a1/ls8/ls8.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
"""Main.""" import sys from cpu import * cpu_now = CPU() cpu_now.load() cpu_now.run()
8.9
17
0.640449
2efcf0869e1195be237ec233e8fd970eca97e0fe
9,571
py
Python
venv/Lib/site-packages/pynance/tech/movave.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/tech/movave.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/tech/movave.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" .. Copyright (c) 2014- Marshall Farrier license http://opensource.org/licenses/MIT Technical analysis - moving averages (:mod:`pynance.tech.movave`) ================================================================== .. currentmodule:: pynance.tech.movave """ from __future__ import absolute_import import nump...
36.811538
118
0.654059
2c56fbbaaec9d23203771944c13df10bf8cfd0e9
765
py
Python
datenfinder/gui/views.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
2
2021-05-12T21:52:48.000Z
2021-10-30T13:01:03.000Z
datenfinder/gui/views.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
null
null
null
datenfinder/gui/views.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from .forms import CitizenDateForm from .models import CitizenDate DATE_TYPES = { 'telephone': 'Telefonnummer', 'e-mail': 'E-Mail-Adresse', 'zipcode': 'Postleitzahl', } def index(request): context = {} if request.method == "POST": cdf = CitizenDateForm( ...
29.423077
72
0.633987
2cb192c59af8b69063ef2f3684941c4d8fed1c73
5,335
py
Python
research/cv/Auto-DeepLab/build_mindrecord.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/Auto-DeepLab/build_mindrecord.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/Auto-DeepLab/build_mindrecord.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...
38.65942
103
0.639738
e2d65ccb6620ac326245c217f74e68aaeb8cf7fd
3,012
py
Python
SBTK_League_Helper/user_interfaces/__DEPRECATED/console_ui/ui.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/user_interfaces/__DEPRECATED/console_ui/ui.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/user_interfaces/__DEPRECATED/console_ui/ui.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
""" Box creating characters ░▒▓█▄▀ ┌─┬┐╔═╦╗ │ ││║ ║║ ├─┼┤╠═╬╣ └─┴┘╚═╩╝ """ from functools import reduce import array from getpass import getpass from src.security import check_valid_password from src.tools.exceptions import UserError console_width = 80 min_width_display = 30 class UserInterface(object): ...
26.421053
138
0.566069
b3e8937a3499ab03899740d985f3ef395109c871
4,233
py
Python
7-assets/past-student-repos/Hash-Tables-Notes-master/arrays.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Hash-Tables-Notes-master/arrays.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Hash-Tables-Notes-master/arrays.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Do not use any of the built in array functions for this exercise class array: def __init__(self, capacity): # We need to set the capacity self.capacity = capacity # Maximum size the array can become # We also need the actual current size self.count = 0 # Current size being used ...
28.795918
117
0.66643
b61380ab9d9ab8a9c31bdce3a7d8bfcf42a49191
176
py
Python
Algorithms/Dynamic_Programming/fibonacci_modified.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Dynamic_Programming/fibonacci_modified.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Dynamic_Programming/fibonacci_modified.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 t1 ,t2, n = list(map(int, input().strip().split())) n -= 2 # t1, t2 already have res = 0 for i in range(n): t1, t2 = t2, t1 + (t2 ** 2) print(t2)
17.6
51
0.551136
3797ff441daf2bbae69e64ba0b9a531b6a4f67db
485
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_10/fix_jv_total_amount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_10/fix_jv_total_amount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_10/fix_jv_total_amount.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe # patch all for-print field (total amount) in Journal Entry in 2015 def execute(): for je in frappe.get_all("Journal Entry", filters={"creation": (">", "2015-01-01")}): je = frappe.get_doc("Journal Entry", je.name) original = je.total_amount je.set_print_format_fields() if je.total_amount != o...
34.642857
86
0.740206
80f23260368eebf3ee54c3203be9e62103200768
2,595
py
Python
7-assets/past-student-repos/Hash-Tables-Notes-master/basic_hashtables.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Hash-Tables-Notes-master/basic_hashtables.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Hash-Tables-Notes-master/basic_hashtables.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# ''' # Basic hash table key/value pair # ''' class Pair: def __init__(self, key, value): self.key = key self.value = value # ''' # Basic hash table # Fill this in. All storage values should be initialized to None # ''' class BasicHashTable: def __init__(self, capacity): self.capacity...
24.481132
124
0.622736
206b67fe687b966b98206b46963785f676a5775c
696
py
Python
pyventskalender/tag14_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag14_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag14_loesung.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Setzt Datei pyventskalender/galgenmannbilder.py voraus. try: from pyventskalender.galgenmannbilder import HANGMANPICS except ImportError: from galgenmannbilder import HANGMANPICS def galgenmannbild(anzahl_fehler: int) -> str: return HANGMANPICS[anzahl_fehler] VERLOREN_BEI_SO_VIELEN_FEHLERN = len(HANG...
31.636364
89
0.798851
456d8f873f1284b1a8aebad64e56220263a5972b
786
py
Python
cleansys/setting_templates/__init__.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
cleansys/setting_templates/__init__.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
cleansys/setting_templates/__init__.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
# Copy settings_templates/ directory and paste it into the same parent directory under the name 'settings'. # The folder 'settings' is already mentioned in .gitignore # This procedure prevents updates from screwing up your settings! # # /root-directory # /cleansys # /settings_templates # /__init__.py ...
32.75
107
0.675573
b36e6f58f1a504bf02a83a9a2c3528136e8dad53
3,791
py
Python
website/apps/uploader/api.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/uploader/api.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/uploader/api.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
import base64 import os import mimetypes # from django.core.files.uploadedfile import SimpleUploadedFile # from tastypie.resources import ModelResource, ALL_WITH_RELATIONS # from tastypie.fields import FileField # from tastypie.authorization import Authorization # from uploader.models import File # class Base64FileFi...
35.429907
79
0.552097
ff468e2be2b15d6e3cbc6ec808eeca182bdf9d93
262
py
Python
python/atexit/atexit_unregister_not_registered.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/atexit/atexit_unregister_not_registered.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/atexit/atexit_unregister_not_registered.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import atexit def my_cleanup(name): print('my_cleanup({})'.format(name)) if False: atexit.register(my_cleanup, 'never registered') # Removing a callback that was not previously registered is not considered an error atexit.unregister(my_cleanup)
20.153846
83
0.744275
44089c34283dfa639acbe805a619fb17658cf1d9
1,715
py
Python
app/patients/migrations/0001_initial.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/patients/migrations/0001_initial.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
app/patients/migrations/0001_initial.py
fxavier/abt-epts
021a8140db32afba106a7a9e122b98452d88c225
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-26 14:06 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Confidente', fields=[ ...
42.875
144
0.598251
921e750e86f6fe87eb88f0d9c75235492bc8161a
36
py
Python
Curso_Python/Criando_projeto_VSCODE/app.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Criando_projeto_VSCODE/app.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Criando_projeto_VSCODE/app.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
print('Hello Word') print('iasdjf')
12
19
0.694444
a65eca3edf18888fb31f9d85c1de4d8690851e8e
319
py
Python
showcase1/com/aaron/classmehodexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/classmehodexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/classmehodexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- codiing:utf-8 -*- """os example""" __author__="aaron.qiu" class A(object): """"classmethod showcase""" bar=1 def fun1(self): print("fun1") @classmethod def fun2(cls): print("fun2") print(cls.bar) cls().fun1() if __name__=="__main__": a = A() a.fun2()
16.789474
31
0.520376
a669911bd49fc6ddacb80c52083184c3d2205011
2,792
py
Python
src/onegov/gis/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import requests from purl import URL from onegov.gis import Coordinates class MapboxRequests(): host = 'https://api.mapbox.com' endpoints = ('directions', 'geocoding') geocode_profiles = ('places', ) directions_profiles = ('driving-traffic', 'driving', 'walking', 'cycling') def __init__( ...
28.489796
79
0.570559
a686744163452be8894e828a58457b0effe16f2c
205
py
Python
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task3_solution_with_for.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task3_solution_with_for.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/sequenceDataTypes/Tasks_and_HW/task3_solution_with_for.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
# in the beginning the sum is 0: sum = 0 # add each number to the current sum: for i in range(1000, 1201): # you can skip next line, if you add step 2 as range if i % 2 == 0: sum += i print(sum)
20.5
53
0.629268
5b9e402ee79572348bfdcd43c2edcb7977d59065
25,201
py
Python
Packs/PICUS/Integrations/PICUS/PICUS.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PICUS/Integrations/PICUS/PICUS.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PICUS/Integrations/PICUS/PICUS.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import os import traceback import demistomock as demisto # noqa: F401 import requests from CommonServerPython import * # noqa: F401 # disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBAL VARIABLES''' VERIFY_SSL = not demisto.params().get('insecure', False) DATE_FORMAT = '%...
29.337602
122
0.58458
5be57a848df2d7d9f98179e5775c2af2ffd3363f
252
py
Python
frds/data/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/data/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/data/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
import os USER_DIRECTORY = os.path.expanduser("~") DATA_DIRECTORY = os.path.join(USER_DIRECTORY, "frds") if not os.path.exists(DATA_DIRECTORY): os.makedirs(DATA_DIRECTORY) CREDENTIALS_FILE_PATH = os.path.join(DATA_DIRECTORY, "credentials.json")
25.2
72
0.77381
3450b453ffb7cc9a90be9884579428ed59629ff1
1,596
py
Python
Packs/ExtraHop/Scripts/ExtraHopTrackIncidents/ExtraHopTrackIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ExtraHop/Scripts/ExtraHopTrackIncidents/ExtraHopTrackIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ExtraHop/Scripts/ExtraHopTrackIncidents/ExtraHopTrackIncidents.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * dArgs = demisto.args() incidents = demisto.incidents() if incidents: incident = incidents[0] # Only track the incident if it's an ExtraHop Detection if incident.get('type') == 'ExtraHop Detection': if incident.get('id') or incident.get...
37.116279
90
0.557644
1b4f24fd399c27142bc212391b02490a9c58778d
359
py
Python
exercises/pt/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("pt_core_news_sm") text = ( "Chick-fil-A é um restaurante fast-food com sede na cidade de College Park, " "estado da Georgia, especializado em sanduíches com carne de frango. " ) # Desabilitar o lematizador with ____.____(____): # Processar o texto doc = ____ # Imprim...
23.933333
81
0.699164
6d1e23dc390230291fce14ae1f4769b976a338cf
1,650
py
Python
10 beautifulsoup practice, server, pandas plotting/DAPHNESCRAPER.py
barjacks/pythonrecherche
c926f087ea7b1fa953b0ac2c4dc255ed9d793262
[ "MIT" ]
7
2017-09-04T16:36:57.000Z
2021-10-08T01:30:39.000Z
10 beautifulsoup practice, server, pandas plotting/DAPHNESCRAPER.py
barjacks/pythonrecherche
c926f087ea7b1fa953b0ac2c4dc255ed9d793262
[ "MIT" ]
null
null
null
10 beautifulsoup practice, server, pandas plotting/DAPHNESCRAPER.py
barjacks/pythonrecherche
c926f087ea7b1fa953b0ac2c4dc255ed9d793262
[ "MIT" ]
12
2017-09-04T18:33:06.000Z
2018-07-05T19:51:28.000Z
# coding: utf-8 from bs4 import BeautifulSoup import requests import pandas as pd import time import progressbar bar = progressbar.ProgressBar() new_lst = [] # showcase for the first 9 pages / to get all pages change to range(1,1443) for elem,i in zip(range(1,1443), bar((range(1,1443)))): page = "https://daphn...
27.04918
75
0.567879
6d4eba11037309edcfcb1ebf7acef82ee3e34a80
1,796
py
Python
Packs/CommonWidgets/Scripts/FeedIntegrationErrorWidget/FeedIntegrationErrorWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonWidgets/Scripts/FeedIntegrationErrorWidget/FeedIntegrationErrorWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonWidgets/Scripts/FeedIntegrationErrorWidget/FeedIntegrationErrorWidget.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from dateparser import parse import demistomock as demisto from CommonServerPython import * def get_feed_integration_errors() -> TableOrListWidget: integration_search_res = demisto.internalHttpRequest( 'POST', '/settings/integration/search', '{}', ) table = TableOrListWidget() ...
36.653061
115
0.60245
edda8a111ec4934e8175b8cf337e75f113e75d80
218
py
Python
___Python/Carsten/p09_isbn/m0_genauigkeit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p09_isbn/m0_genauigkeit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p09_isbn/m0_genauigkeit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import fractions import math potenz = 2**4096 print(potenz) a = fractions.Fraction(3, 4) b = fractions.Fraction(1, 8) c = a + b c = c ** 4 print (c) print(float(c)) c = math.sin(c) print(c)
10.380952
29
0.573394
6126a397b33f5c51cd2bcfad265e313e7fa84657
796
py
Python
mobile/tools/quantification/tune_n_fold.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/quantification/tune_n_fold.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/tools/quantification/tune_n_fold.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
# -*- coding: utf-8 -* import os import sys import math import subprocess import numpy as np import paddle.fluid as fluid def sh(command): pipe = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) return pipe.stdout.read().decode("utf-8") for fold in range(100, 1001, 100)...
31.84
98
0.677136
787ec28ea60850a705807b50e2d58ae80f13108c
1,864
py
Python
TestCodeArchive/PythonCode/AufDemRaspberry/patternUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/AufDemRaspberry/patternUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
TestCodeArchive/PythonCode/AufDemRaspberry/patternUI.py
tobiasdossinger/percy
c2ca6f21fcd6830ffd6d3879f7bcaaa5b87335e5
[ "MIT" ]
null
null
null
from tkinter import * import socket import sys HOST = '192.168.178.' + str(sys.argv[1]) # The server's hostname or IP address PORT = 80 # The port used by the server print('Connecting to ' + HOST + ':' + str(PORT)) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((HOST, PORT)) print('Con...
33.285714
98
0.704399
bf2154141991c406dad1690f455857b0104da52f
2,949
py
Python
car/car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
from Mymqtt import Mymqtt from receive import * import pygame # 屏幕刷新 flash = 0 # 背景图以及移动小车图 car_image_name = "car.png" pygame.init() # 生成窗口以及窗口标题 screen_show = pygame.display.set_mode((1000, 600), 0, 32) pygame.display.set_caption("Little Case") # 加载并转换图片 car0 = pygame.image.load(car_image_name).convert_alpha() car1 =...
33.134831
86
0.723296
171b6f552c7117e3e81a0b0bd5c98b2a21ff3edf
7,376
py
Python
utils.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
1
2022-03-08T15:23:26.000Z
2022-03-08T15:23:26.000Z
utils.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
null
null
null
utils.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
null
null
null
import os.path as osp import numpy as np import scipy.sparse as sp import torch from torch_geometric.transforms import NormalizeFeatures from torch_geometric.datasets import Planetoid, TUDataset from torch_geometric.utils import to_dense_adj, to_undirected import torch.nn.functional as F from sbm_dataset import...
39.026455
115
0.624729
bd642bac4a89481f0682e694eda7d8244ef34bcf
2,355
py
Python
research/cv/ibnnet/src/modules.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ibnnet/src/modules.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ibnnet/src/modules.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...
32.260274
80
0.599575
16f1274155dfbae878d36580ab15d72b0ad0dc3f
3,719
py
Python
official/cv/vgg16/ascend310_quant_infer/post_quant.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/vgg16/ascend310_quant_infer/post_quant.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/vgg16/ascend310_quant_infer/post_quant.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...
40.868132
116
0.726271
00a29816a6ff8da7a3db9ae9b749e59d9536721c
542
py
Python
solution/disjoint_set/10775/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/disjoint_set/10775/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/disjoint_set/10775/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# Authored by : chj3748 # Co-authored by : - # Link : http://boj.kr/30c745d5f3c547c28e95b5c9a76647c1 import sys def input(): return sys.stdin.readline().rstrip() G = int(input()) P = int(input()) gates = list(range(G + 1)) def find_max(x): if gates[x] != x: gates[x] = find_max(gates[x]) return ga...
19.357143
55
0.601476
00d44e6e021c5fd341fde9e5f9b1840447099317
780
py
Python
darkCON/2021/crypto/DisguisedWordlets/func_.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
darkCON/2021/crypto/DisguisedWordlets/func_.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
darkCON/2021/crypto/DisguisedWordlets/func_.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
def encrypt(text, key): return ''.join([ chr((( key[0]*(ord(t) - ord('A')) + key[1] ) % 26) + ord('A')) for t in text.upper().replace(' ', '') ]) def compress(uncompressed): _size = 256 dictionary = dict((chr(i), chr(i)) for i in range(_size)) w = "" result = [] for c in un...
21.081081
124
0.479487
dadf61042197d0106e5e2f48041a40bd4d827ead
747
py
Python
leetcode/061-Rotate-List/RotList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/061-Rotate-List/RotList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/061-Rotate-List/RotList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode} head # @param {integer} k # @return {ListNode} def rotateRight(self, head, k): if head == None or head.next == None or k == 0...
20.189189
55
0.433735
9745f5088e8c57005e7278283a4d678adc44e3f2
1,581
py
Python
interface/tournament_thread.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
1
2021-01-20T18:33:01.000Z
2021-01-20T18:33:01.000Z
interface/tournament_thread.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
null
null
null
interface/tournament_thread.py
jorgeparavicini/FourWins
1c5e8a23b4464ef6b71d70c9ff040aa004b9ca83
[ "MIT" ]
2
2019-09-04T08:27:14.000Z
2019-09-06T20:32:30.000Z
from PyQt5.QtCore import QThread from PyQt5.QtCore import pyqtSignal from bots import BaseBot from tournamentmasters.tournament_master import TournamentMaster class TournamentThread(QThread): def __init__(self, bot_1: BaseBot, bot_2: BaseBot, grid_width: int, grid_height: int, time: float): super().__ini...
29.277778
103
0.681847
c16fc70a91743d72bf0d38015a6ec3713e133e44
7,829
py
Python
source/pkgsrc/audio/mixxx/patches/patch-build_depends.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/audio/mixxx/patches/patch-build_depends.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/audio/mixxx/patches/patch-build_depends.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-build_depends.py,v 1.1 2019/07/08 16:46:32 nia Exp $ - Search in LOCALBASE. - Use pkg-config on BSD where possible. - Disable PortMIDI dependency. --- build/depends.py.orig 2019-04-22 07:50:04.000000000 +0000 +++ build/depends.py @@ -12,7 +12,7 @@ class PortAudio(Dependence): if not conf.Check...
49.238994
123
0.561374
a9dfe16e814c5594e2824417e53786757033c647
1,742
py
Python
Assembler/tests/test_trim.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
1
2019-01-28T01:53:20.000Z
2019-01-28T01:53:20.000Z
Assembler/tests/test_trim.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
Assembler/tests/test_trim.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
import test import trim def test_all(): test_cut_whitespace_lines() test_cut_comments() test_cut_labels() test_trim_before_label_module() test_trim_word_gap() def test_cut_comments(): test.assertEquals(trim.cut_comments(['hallo #sdfe']),['hallo ']) test.assertEquals(trim.cut_comments(['hal...
44.666667
115
0.690586
a9f3aa2e1666950da72a046d9164c5066075b9fd
95
py
Python
django/ToDoApp/manageToDo/apps.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django/ToDoApp/manageToDo/apps.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
django/ToDoApp/manageToDo/apps.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ManagetodoConfig(AppConfig): name = 'manageToDo'
15.833333
34
0.768421
41c688e10736cbb94122e7f30d2c72d62dcfff13
629
py
Python
i2c_test.py
bseilhan/TestStandDisplay
eee84828d1015fcfa02e36279db84c7cb884a510
[ "MIT" ]
null
null
null
i2c_test.py
bseilhan/TestStandDisplay
eee84828d1015fcfa02e36279db84c7cb884a510
[ "MIT" ]
null
null
null
i2c_test.py
bseilhan/TestStandDisplay
eee84828d1015fcfa02e36279db84c7cb884a510
[ "MIT" ]
null
null
null
from smbus import SMBus import time import struct bus = SMBus(1) # This is the address we setup in the Arduino Program SLAVE_ADDRESS = 0x04 def get_data(): return bus.read_i2c_block_data(SLAVE_ADDRESS,0,4) def get_float(data, index=0): bytes = bytearray(data[4*index:(index+1)*4]) print(data) return...
19.060606
53
0.683625
6bcafd5f58951101daa05e6d81a4891f9aa2e031
217
py
Python
Pythonjunior2020/Woche2/Aufgabe_2_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche2/Aufgabe_2_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 2.1.3, Woche 2, Block 1, Aufgabe 3 # Import from daten import max_anzahl, belegt # IF-Statement if max_anzahl - belegt > 0 : print("Ich gehe in das Zimmer") else: print("Schade, das Zimmer ist schon voll")
21.7
46
0.686636
d464f197f4cf46f805901017650cdb754860f33d
512
py
Python
Tutorial-YT-main/enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Tutorial-YT-main/enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Tutorial-YT-main/enc.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# modul import os,sys,time import marshal # input file = input("nama File : ") # baca isi file baca = open(file,'r').read() # compile file yg sudah di baca com = compile(baca, "","exec") # encypt file yg sudah di compile menggunakan marshal encypt = marshal.dumps(com) # membuat file baru baru = open("enc_"+str(fi...
16.516129
53
0.681641
2b547522313b6a8dcb6ad9d6fee7d0b134784961
466
py
Python
examples/myqueryset/delete_/migrations/0003_auto_20210401_1359.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/myqueryset/delete_/migrations/0003_auto_20210401_1359.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/myqueryset/delete_/migrations/0003_auto_20210401_1359.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
# Generated by Django 3.1.7 on 2021-04-01 05:59 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('delete_', '0002_product_date_changed'), ] operations = [ migrations.AlterField( model_name='product', ...
23.3
105
0.641631
514cdec2653faefd3b32485fbda586b12a0d9a02
24,339
py
Python
scripts/fit_function_gen.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/fit_function_gen.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/fit_function_gen.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This module defines functions to generate the fit function for the volume dependence of the NSPT calculations of the PCM model. """ #------------------------------------------------------------------------------- # Testing sympy expansions and stuff #---------...
31.084291
82
0.54275
8f1979b7bae4c119d5028e07376d3d9bbab2c0dd
2,827
py
Python
Versuch3/task2.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch3/task2.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch3/task2.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import matplotlib.pyplot as plt import numpy as np # Array um die einzelnen .csv Dateien einzulesen des kleinen Lautsprechers klein = ["klein100", "klein200", "klein300", "klein400", "klein500", "klein700", "klein850", "klein1000", "klein1200", "klein1500", "klein1700", "klein2000", "klein3000", "klein4000", ...
46.344262
105
0.680226
56f5b0495558d66a7af929786d2c0235174e6d8c
85,725
py
Python
mlJob.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
mlJob.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
mlJob.py
dfdean/mlLib
3ea535c6b032f61e91f2d16ff75bf2796ef1a27f
[ "MIT" ]
null
null
null
##################################################################################### # # Copyright (c) 2020 Dawson Dean # # 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 restrictio...
35.263266
145
0.568481
711fafad00300c3ce0dc28581a6aa83c849cf90c
4,574
py
Python
prototype/examples/user_support/lab_orchestrator_prototype/routes.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/routes.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
null
null
null
prototype/examples/user_support/lab_orchestrator_prototype/routes.py
LernmodulController/LernmodulController-LernmodulControllerDocumentation
4d0cb3dcac01676f6a97df8f558095a27a4296af
[ "MIT" ]
1
2021-09-26T12:09:52.000Z
2021-09-26T12:09:52.000Z
from flask import request, g, abort from lab_orchestrator_prototype.app import app, CC, auth @app.route("/lab_instance", methods=['GET']) @auth.login_required def get_lab_instances(): r = CC.get().lab_instance_ctrl.get_list_of_user(g.user) return CC.get().lab_instance_ctrl.make_response(r) @app.route("/lab...
34.134328
129
0.726935
85bb48ada72e87d9fc01c8f8988aa3d46b449e8d
164
py
Python
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSScript/RiskIQPassiveTotalPDNSScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSScript/RiskIQPassiveTotalPDNSScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PassiveTotal/Scripts/RiskIQPassiveTotalPDNSScript/RiskIQPassiveTotalPDNSScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * result = demisto.executeCommand('pt-get-pdns-details', {'query': demisto.args().get('indicator_value')}) demisto.results(result)
27.333333
104
0.762195
a46e775d331cf6e2e185ceecf03ad02daee449c6
553
py
Python
py-basics/src/lectures/control-flow/find-digits.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/control-flow/find-digits.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
null
null
null
py-basics/src/lectures/control-flow/find-digits.py
AndrasTarlos/s4f
bfe2d631a9a2715953d8ac5ddc8ef97d3cefb426
[ "CC0-1.0" ]
4
2021-12-13T15:52:00.000Z
2022-03-28T13:54:53.000Z
# 7kyu | Find the nth Digit of a Number # https://www.codewars.com/kata/577b9960df78c19bca00007e/python def find_digit(num, nth): if nth <= 0: return -1 txt = str(abs(num)) pos = len(txt) - nth if pos < 0: return 0 return int(txt[pos]) print(find_digit(5673, 4)) # returns 5 prin...
25.136364
63
0.638336
f10315008949e647ca423c46f4814d6aff7a3ce4
327
py
Python
MAIN/STM32F405_C/NORMAL/history/V18/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V18/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/history/V18/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import system import machine import sys import system import userControl if __name__ == "__main__": while True: try: #userControl.REDLed(True) system.loop() #userControl.REDLed(False) except: #machine.reset() pass else: #sys.exit() ...
16.35
38
0.559633
74aee51352edaf653d02adc319e3fd2857a8747b
2,459
py
Python
src/aijack/defense/setoria/setoria_client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/defense/setoria/setoria_client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/defense/setoria/setoria_client.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
import torch from ...collaborative import FedAvgClient class SetoriaFedAvgClient(FedAvgClient): def __init__( self, model, input_layer, perturbed_layer, user_id=0, lr=0.1, epsilon=0.2 ): super().__init__(model, user_id=user_id, lr=lr) self.input_layer = input_layer self.pertur...
30.358025
81
0.57381
74ef50a61fca7887d471ae7dd46b0aa138dfd104
90
py
Python
src/sft/qsft/definition.py
huykingsofm/FileTransmitter
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
1
2020-08-28T19:06:13.000Z
2020-08-28T19:06:13.000Z
src/sft/qsft/definition.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
src/sft/qsft/definition.py
huykingsofm/sft
f0f8cd0d6f941903bb8c42291a81b711055fcb1a
[ "MIT" ]
null
null
null
DEFAULT_IP = "localhost" DEFAULT_PORT = 8888 DEFAULT_ADDRESS = (DEFAULT_IP, DEFAULT_PORT)
22.5
44
0.8