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
e8bb66c0df9eb630344036ec495b573039f06cba
1,292
py
Python
development/mail/dockerfile/web/mailman-web/urls.py
Yikun/infrastructure
ee8b1273b47e650de5fc96650eeead6c206d8459
[ "Apache-2.0" ]
174
2017-03-30T03:20:20.000Z
2022-03-15T10:01:59.000Z
development/mail/dockerfile/web/mailman-web/urls.py
Yikun/infrastructure
ee8b1273b47e650de5fc96650eeead6c206d8459
[ "Apache-2.0" ]
332
2017-04-05T20:31:27.000Z
2022-03-31T23:46:26.000Z
development/mail/dockerfile/web/mailman-web/urls.py
Yikun/infrastructure
ee8b1273b47e650de5fc96650eeead6c206d8459
[ "Apache-2.0" ]
96
2017-06-02T09:04:58.000Z
2022-03-20T15:25:03.000Z
# -*- coding: utf-8 -*- # Copyright (C) 1998-2016 by the Free Software Foundation, Inc. # # This file is part of Postorius. # # Postorius 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...
35.888889
78
0.719814
fa386d403578f02260b6550fd55bd988f57ae9ee
304
py
Python
Kapitel 1/Temperatur.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Temperatur.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 1/Temperatur.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
temp = float(input("Geben Sie eine Temperatur in Fahrenheit ein: ")) conv_temp = (5 * (temp - 32)) / 9 print("{}°F sind {:.1f}°C".format(temp, conv_temp)) temp = float(input("Geben Sie eine Temperatur in Celsius ein: ")) conv_temp = 9 * temp / 5 + 32 print("{}°C sind {:.1f}°F".format(temp, conv_temp))
38
68
0.648026
ad0df587a9d7fc1cfcad76a280136e327a85ea8b
155
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/112_docStrings-documentacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/112_docStrings-documentacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/112_docStrings-documentacao/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
import uma_linha import varias_linhas import funcaos import classes import typehits import doc_strings help(uma_linha) help(varias_linhas) help(funcaos)
12.916667
20
0.851613
ad9d287e0154c1546cdb442c431fc282ef9eba02
464
py
Python
Algorithms/Implementation/ACM_ICPC.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/ACM_ICPC.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/ACM_ICPC.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 N, M = map(int, raw_input().split()) array = [raw_input() for _ in xrange(N)] maximum = 0 teamnum = 0 for i in xrange(N): bin1 = int(array[i], 2) for j in xrange(i+1, N): bin2 = int(array[j], 2) topic_num = bin(bin1|bin2)[2:].count('1') if topic_num > maximum: ...
20.173913
49
0.543103
ad9f72e37eb1fc279cc08881ad3d20623acbfd24
404
py
Python
components/amp-utility/python/uarray.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/amp-utility/python/uarray.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/amp-utility/python/uarray.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# * coding: UTF8 * """ 该模块实现相应CPython模块的子集,如下所示 """ class array(object): """ 使用给定类型的元素创建数组。数组的初始内容由 iterable 给定。若未给定内容,则创建一个空数组 """ def __init__(self,typecode,iterable=None): pass def append(self,val): """ 将新元素添加到数组末尾,并不断增加 """ pass def extend(se...
13.931034
54
0.537129
d144b3b32a184a5b702ada1f995b60bddf521b9c
965
py
Python
etl/core/tests.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/core/tests.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/core/tests.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
from etl.core.task import Task from etl.core.plan import Plan from etl.core.engine import Engine from inspect import signature import logging import asyncio, uvloop import os TEST_LOG_FMT = '%(asctime)s|%(funcName)s|%(process)s-%(thread)s|%(levelname)s|%(message)s' logging.basicConfig(level=logging.INFO, format=TEST_LO...
21.931818
90
0.691192
7e2dcaf673d8cb9808c819fc376e83807d94b235
287
py
Python
hm/__init__.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hm/__init__.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
hm/__init__.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
from .room import Room from .device import Device from .state import State from .baseList import BaseList from .roomList import RoomList from .stateList import StateList from .deviceList import DeviceList from .valueType import ValueSubType, ValueType from .deviceType import DeviceType
28.7
46
0.836237
0e5b2aea009b4398941d68bd7138d71ba75761fb
451
py
Python
models/hr_employee_aptitude.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_aptitude.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_aptitude.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrEmployeeAptitude(models.Model): _name = "hr.employee.aptitude" _description = "Aptitudes d'un employe" name = fields.Many2one(comodel_name='aptitude.type', string='Aptitude') niveau = fields.Char( string='Niveau'...
30.066667
79
0.707317
bc002384c7e10099aa635c1608f2041a34fd5609
8,209
py
Python
tests/test_angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_angebotsteil.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from decimal import Decimal import pytest # type:ignore[import] from bo4e.bo.marktlokation import Marktlokation from bo4e.com.adresse import Adresse from bo4e.com.angebotsposition import Angebotsposition from bo4e.com.angebotsteil import Angebotsteil, AngebotsteilSchema from b...
43.205263
115
0.477525
70f42274294a26461762305d5cab03198f64e883
1,016
py
Python
Text_Based_Adventure_Game/player (1).py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
null
null
null
Text_Based_Adventure_Game/player (1).py
fuse999/Python_Sandbox
83d9c33a9c9e6e5cff40bbc6be525c9e604e9e41
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Intro-Python-II/examples/ex_game/player.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
from item import Food, Egg # Write a class to hold player information, e.g. what room they are in # currently. class Player: def __init__(self, name, current_room): self.name = name self.current_room = current_room self.items = [] self.strength = 100 def travel(self, direction):...
32.774194
91
0.615157
cb54dd396a425fecf248202c5d46cfe6213e3a45
709
py
Python
python/image_processing/mat2_draw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/mat2_draw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/mat2_draw.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import numpy as np import cv2 img = np.zeros((512,512,3), np.uint8) cv2.circle(img,(256,256),25,(0,0,255),1) cv2.circle(img,(206,256),25,(0,255,255),-1) cv2.circle(img,(306,256),25,(255,0,0),-1) cv2.circle(img,(256,206),25,(255,0,255),-1) cv2.circle(img,(256,306),25,(255,255,255),-1) cv2.rectangle(img,(183,183),(333,...
23.633333
79
0.643159
382366bf9f9707520b88c6f2c4bc9aae8a425c70
1,946
py
Python
utest/boolean_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/boolean_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/boolean_test.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest import zencad from functools import cmp_to_key import evalcache import zencad.util def rounded_list(a): return [round(f, 5) for f in a] def lexsort(a): a = evalcache.unlazy_if_need(a) def comparator(a, b): return 1 if a > b else -1 a = [zencad.util.point3(round(f.x, 4), rou...
28.202899
73
0.578109
38e07c566c433418cd9b2df5850a04b7e2e0c3d9
1,839
py
Python
tests/onegov/swissvotes/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/swissvotes/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/swissvotes/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from datetime import datetime from decimal import Decimal from freezegun import freeze_time from onegov.swissvotes.collections import SwissVoteCollection from pytz import utc def test_app(swissvotes_app): assert swissvotes_app.principal assert swissvotes_app.static_content_pages == {...
29.66129
61
0.624252
2a82c98bda5e414cdee984753112f35e3405e63e
2,438
py
Python
nicehash/nicehash.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
nicehash/nicehash.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
nicehash/nicehash.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
import urllib.request,json,threading, locale addr='1GFy862aHtKtGafoKYh7ARBEaxkT9FLzTn'; currency='GBP'; stats = 'https://api.nicehash.com/api?method=stats.provider.ex&addr='+addr price = 'http://api.coindesk.com/v1/bpi/currentprice/'+currency+'.json' reqStats = urllib.request.Request(stats) stop_event = threading.E...
39.967213
203
0.651354
631f0a7b38a15e41231f5e8af3df006dbe3fb153
225
py
Python
PyLabs/reallab1.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
PyLabs/reallab1.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
PyLabs/reallab1.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
from math import * x = float(input()) a = float(input()) G = -(10*18*(a**2)+11*a*x-24*(x**2))/(-(a**2)+a*x+6*x**2) F = (cos(21*(a**2)-(34*a*x)+9*(x**2))) Y = log(3*(a**2)-25*a*x+8*(x**2)+1)/log(10) print(G) print(F) print(Y)
22.5
57
0.493333
2d874db2f0b924ebb2bacfecbad7048f882472e6
3,156
py
Python
Packs/RiskSense/Scripts/RiskSenseGetRansomewareCVEScript/RiskSenseGetRansomewareCVEScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/RiskSense/Scripts/RiskSenseGetRansomewareCVEScript/RiskSenseGetRansomewareCVEScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/RiskSense/Scripts/RiskSenseGetRansomewareCVEScript/RiskSenseGetRansomewareCVEScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
EXPECTED_RANSOMWARE_CVES = [ { "Cve": "CVE-0000-0000", "CVSS": 7.5, "VRR": 5.67, "ThreatCount": 1, "Trending": "false", "VulnLastTrendingOn": "2018-05-01", "Description": "remote code execution", "Threats": [{ "Title": "Hunter Exploit Kit",...
32.204082
88
0.58872
9361b3ebb3b5d7c9beee5c51c1eff9aecbf82c28
29
py
Python
Chapter9_Packages/2_HTML_Doc/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter9_Packages/2_HTML_Doc/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter9_Packages/2_HTML_Doc/fastvector/__init__.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
from .vector import Vector2D
14.5
28
0.827586
ea475bd020b0e55690ef5a25401bbeefc8160aea
2,834
py
Python
tests/test_tarifpreis.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_tarifpreis.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_tarifpreis.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.tarifpreis import Tarifpreis, TarifpreisSchema from bo4e.enum.mengeneinheit import Mengeneinheit from bo4e.enum.preisstatus import Preisstatus from bo4e.enum.preistyp import Preistyp from bo4e.enum.waehrungseinheit import Waehrungseinheit ...
35.425
120
0.697601
ea74a5242721535fa2978688d9a59a4e7d2ade3b
7,552
py
Python
socker-master/socker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
socker-master/socker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
socker-master/socker.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 -*- import socket import threading import time import sys # from random import * import struct import argparse import re from urllib.request import Request, urlopen # Python 3 import queue as Queue __author__ = "TheSpeedX" __version__ = "2.0" banner = """ ███████╗ ██████╗ ███...
30.82449
145
0.53072
a4e595a7313a8a3b89e187eb58d5dc086949e192
6,209
py
Python
Create a Chat Application/client.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-05T14:30:34.000Z
2021-07-05T14:30:34.000Z
Create a Chat Application/client.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:36:02.000Z
2021-07-02T15:37:25.000Z
Create a Chat Application/client.py
Akshu-on-github/MLH-INIT-2022
cf3fbbc8abd3eae3b958d3d482ed1fa1467f559e
[ "MIT" ]
1
2021-07-02T15:15:17.000Z
2021-07-02T15:15:17.000Z
#coding:utf-8 ''' file:client.py.py date:2017/9/11 11:01 author:lockey email:lockey@123.com platform:win7.x86_64 pycharm python3 desc:p2p communication clientside ''' from socket import * import threading,sys,json,re HOST = '192.168.1.7' ## PORT=8022 BUFSIZE = 1024 ##缓冲区大小 1K ADDR = (HOST,PORT) myre = r"^[_a-zA-Z]\...
30.586207
99
0.505073
52ca254db41b4174fd2329045970cdd08a7cc24d
355
py
Python
Packs/Microsoft365Defender/Scripts/MS365DefenderUserListToTable/MS365DefenderUserListToTable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Microsoft365Defender/Scripts/MS365DefenderUserListToTable/MS365DefenderUserListToTable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Microsoft365Defender/Scripts/MS365DefenderUserListToTable/MS365DefenderUserListToTable.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def count_dict(value): if not isinstance(value, str): return value users = value.split(',') return [{'User': user for user in users}] if __name__ in ('__main__', '__builtin__', 'builtins'): return_res...
23.666667
55
0.673239
5e35b57f29f11341ce38d64b7093127e7de0db64
5,937
py
Python
20-fs-ias-lec/groups/01-dev2dev/Code/application/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/application/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/01-dev2dev/Code/application/impexp.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 """Import/Export module This module contains the function definitions use for: - importing the peers Inventory (list of all the logs the peer has) and their Payload(all the peers logs relevant for us) as well as - exporting our own Inventory and Payload information during the excha...
30.290816
121
0.6222
f4ac2df57061eb28fda90ba371d1cc2ec33f302d
985
py
Python
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/iter_lists.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/iter_lists.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/FUND_OF_COMP_RICE/FUND_OF_COMPUTING_RICE2/week1/iter_lists.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def square_list1(numbers): """Returns a list of the squares of the numbers in the input.""" result = [] for n in numbers: result.append(n ** 2) return result def square_list2(numbers): """Returns a list of the squares of the numbers in the input.""" return [n ** 2 for n in numbers] pri...
28.142857
80
0.633503
f4ebfc45b4a00221371b6cae12c33d3f81eb3c53
177
py
Python
lib/python/qmk/cli/json/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/json/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/json/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""QMK CLI JSON Subcommands We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup. """ from . import keymap
29.5
122
0.785311
76265c247bca47724b67abec2d8c9ce1f012e5f6
4,661
py
Python
sensors/test_sensor_bme280.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
sensors/test_sensor_bme280.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
sensors/test_sensor_bme280.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 import pytest import smbus2 import bme280 import paho.mqtt.publish as mqtt_publish from tentacle.sensors import sensor_bme280 from tentacle.mock import mock_oserror, mock_filenotfounderror, mock_none class Mock_Data: ''' mock object of the return value of bme280.sample ''' def __init__(self,...
35.045113
94
0.720661
5ec41cc0eebeb305a269a23874afb005d93e95fb
803
py
Python
monitor modules (to be imported)/thread_monitor/__init__.py
m-a-rahal/monitor-sync-python
4ef5a777bd22c7aa9b3b47a98609b173bbb81830
[ "MIT" ]
1
2020-12-11T01:23:28.000Z
2020-12-11T01:23:28.000Z
monitor modules (to be imported)/thread_monitor/__init__.py
m-a-rahal/monitor-sync-python
4ef5a777bd22c7aa9b3b47a98609b173bbb81830
[ "MIT" ]
1
2020-12-11T14:45:03.000Z
2020-12-13T13:00:06.000Z
monitor modules (to be imported)/thread_monitor/__init__.py
m-a-rahal/monitor-sync-python
4ef5a777bd22c7aa9b3b47a98609b173bbb81830
[ "MIT" ]
null
null
null
import threading class Monitor(object): ''' Monitor class for thread sychronization, protected with a threading.Lock() by default when you inherit from this class: . in you __init__, you should set up the monitor's _lock like this: - self._init_lock() #auto generated lock or with you...
28.678571
74
0.641345
800348e5a56e4bab27e4caa79ae8b6407ce9dc92
5,127
py
Python
tests/onegov/user/test_ldap_kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/user/test_ldap_kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/user/test_ldap_kerberos.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import kerberos import morepath import pytest from hashlib import sha256 from onegov.core import Framework from onegov.core.security import Public, Private, Secret from onegov.core.utils import scan_morepath_modules, module_path from onegov.user import Auth, UserApp from tests.shared.glauth import GLAuth from unittes...
27.271277
78
0.583187
6367bb6a38a1adc75c9cc4c036e7d8278d5662ca
148
py
Python
test.py
andrewsio/andrewsio-blog.github.io
008e349a3aeb8ba3e162b5cf72e15093ee63eea2
[ "MIT" ]
2
2021-10-02T23:32:37.000Z
2022-01-03T21:57:43.000Z
test.py
andrewsio/andrewsio-blog.github.io
008e349a3aeb8ba3e162b5cf72e15093ee63eea2
[ "MIT" ]
null
null
null
test.py
andrewsio/andrewsio-blog.github.io
008e349a3aeb8ba3e162b5cf72e15093ee63eea2
[ "MIT" ]
1
2020-01-02T19:15:55.000Z
2020-01-02T19:15:55.000Z
#!/usr/bin/env python import glob post_dir = '_posts/' filenames = glob.glob(post_dir + '*md') for filename in filenames: print(filesnames)
13.454545
39
0.695946
63c5cf4fe564287a634b0c97fe68ab4e0b3fd164
309
py
Python
vorl3ueb4modul.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3ueb4modul.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl3ueb4modul.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# 3. Vorlesung 09.10.2020 # Aufgabe 4 aus Skript Python 2 (05_Python_02.pdf): # Hier die zu ladende Moduldatei... import math def kreisFlaeche(radius): flaeche = math.pi * (math.pow(float(radius),2)) return flaeche def kreisUmfang(radius): umfang = 2 *math.pi * float(radius) return umfang
22.071429
51
0.695793
987dbd4a38c584306f057b37822d130842bc9de4
844
py
Python
src/text_generator/prompt_generator.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/text_generator/prompt_generator.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/text_generator/prompt_generator.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os from src.constants import * def generate_prompt_list(dest_path, demographics, trigger="", file_name=""): os.makedirs(dest_path, exist_ok=True) if isinstance(demographics, list): demos = [VARIABLE_DICT[demo] for demo in demographics] else: demos = [VARIABLE_DICT[demographics]] ...
33.76
81
0.587678
614b2027e43ef6eb9ee196945983e57328192100
767
py
Python
main.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
main.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
main.py
dralv/ExtratorURLPython
3c013cc7313fede1b8a389d99cd7e7971df1b3ba
[ "MIT" ]
null
null
null
#url = "bytebank.com/cambio?quantidade=100&moedaDestino=dolar&moedaOrigem=real" url = " " #Sanitização da URL url = url.strip() #Validação da URL if url == "": raise ValueError("A URL está vazia") # separa a base e os parametros indice_interrogacao = url.find('?') url_base = url[:indice_interrogacao] url_parame...
26.448276
79
0.765319
614f28aa2114c7a544e0854eb7fa622359b22f4d
399
py
Python
ReversedLinkedList.py
brysonSaclausa/CS
61ca7fdfc56c2fc5d3334648eb1bdba43909f81f
[ "MIT" ]
null
null
null
ReversedLinkedList.py
brysonSaclausa/CS
61ca7fdfc56c2fc5d3334648eb1bdba43909f81f
[ "MIT" ]
null
null
null
ReversedLinkedList.py
brysonSaclausa/CS
61ca7fdfc56c2fc5d3334648eb1bdba43909f81f
[ "MIT" ]
null
null
null
print("hello") # Definition for singly-linked list. # class ListNode(object): # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution(object): def reverseList(self, head): prev = None while head: temp = head head = hea...
23.470588
43
0.538847
619e61d2e228808686f1f2fd4201816ae740692e
3,390
py
Python
tests/addons/reqs2reqs/test_filter.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/addons/reqs2reqs/test_filter.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/addons/reqs2reqs/test_filter.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import pytest from owlmixin.util import load_yaml from jumeaux.addons.reqs2reqs.filter import Executor from jumeaux.models import Reqs2ReqsAddOnPayload AND = ( "And filter", """ when: ('ok' in path) and ('OK' in name) """, [ {"name": "It's OK",...
28.25
97
0.394985
9ca77847c06f9b702dc269b0bd53c41d093b3fb0
27,073
py
Python
verto/tests/PanelTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/PanelTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/PanelTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from unittest.mock import Mock from verto.VertoExtension import VertoExtension from verto.processors.PanelBlockProcessor import PanelBlockProcessor from verto.errors.TagNotMatchedError import TagNotMatchedError from verto.errors.ArgumentMissingError import ArgumentMissingError from verto.errors.Argumen...
54.692929
225
0.721531
9ce1d3656bd398789275f0d1270f04480997280a
225
py
Python
IVTp/2014/SOBOLEV_M_V/task_6_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_6_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_6_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
import random loshadi = ['Гнедая','Рыжая','Серая','Вороная'] otvet = input('') otvet = otvet.lower() otvet = otvet.capitalize() if otvet == random.choice(loshadi): print('Верно!') elif: print('Попробуйте еще раз!') input()
20.454545
46
0.68
1464e85395a1c6c0cc68258044ed8b73c31443ad
5,719
py
Python
generate.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
5
2015-07-28T17:45:21.000Z
2019-11-24T15:47:01.000Z
generate.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
1
2020-05-22T15:21:36.000Z
2020-05-22T15:38:48.000Z
generate.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
1
2020-05-09T21:23:59.000Z
2020-05-09T21:23:59.000Z
#!/usr/bin/python #Copyright (c) 2014 Gary Furnish #Licensed under the MIT License (MIT) import platform, json, os from utilities import printing_chdir, printing_mkdir, do_cmake def generate_linux(): with open("settings.json") as settings_file: settings_json = json.loads(settings_file.read()) curr...
48.466102
191
0.743661
b4e87fcd795b1063e29463130923d5da8da6985b
1,768
py
Python
Bewerbungen/csv/check-names-subjects.py
HSZemi/wahlskripte
c5251befce64c8bb7a8c0c82f0ad60ea42796e67
[ "MIT" ]
null
null
null
Bewerbungen/csv/check-names-subjects.py
HSZemi/wahlskripte
c5251befce64c8bb7a8c0c82f0ad60ea42796e67
[ "MIT" ]
null
null
null
Bewerbungen/csv/check-names-subjects.py
HSZemi/wahlskripte
c5251befce64c8bb7a8c0c82f0ad60ea42796e67
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import csv lists = {} with open("kandidatenliste_aus_sos_20162.csv", "r") as f: skipped = True liste = "" nr = "" for line in f: if(line.strip() == ""): skipped = True else: items = line.split("\t") if(items[1] == ""): liste = items[0] lists[liste] = {} ...
28.063492
141
0.566742
2c1f59fb11ed0fc933fdf33bba0adba31bd2b411
717
py
Python
sandbox/schedule/calendarevent.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
sandbox/schedule/calendarevent.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
1
2022-03-22T23:50:32.000Z
2022-03-22T23:50:32.000Z
sandbox/schedule/calendarevent.py
gergelyszaz/SandboxVN
b6855d1c952df66296e8fb3af42c2f8b46908a07
[ "MIT" ]
null
null
null
import string from sandbox.action.action import Action from sandbox.action.gotolocationaction import GotoLocationAction from sandbox.character.character import Character from sandbox.schedule.timeframe import TimeFrame from sandbox.target.locationselector import LocationSelector class CalendarEvent: name: string...
29.875
75
0.775453
25e8a56ca33695e76cd2793b6faf98a209079b9f
526
py
Python
books/PythonAutomate/google_spreadsheets/download_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/download_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/google_spreadsheets/download_spreadsheets.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""download_spreadsheets.py 구글 스프레드시트 문서 다운로드 """ import os import ezsheets sheet_id = "1FIk-KAb9Ddi03XE2c179-K6Vnnu_wJ2BZLyYOj5G_L4" ss = ezsheets.Spreadsheet(sheet_id) os.makedirs('down', exist_ok=True) ss.downloadAsExcel('down/data.xlsx') # 엑셀 파일로 다운로드 ss.downloadAsODS('down/data.ods') # OpenOffice 파일로 다운로드 ss.do...
32.875
60
0.756654
d30016bb16d3ab489012c72e2eda30b395e01679
943
py
Python
app/datafile_functions.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
app/datafile_functions.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
app/datafile_functions.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
from app import db from flask import json from app.models import Data from time import time def get_data(filename: str): ''' return dict of data from file or empty formatted dict in case of error in file ''' try: with open(filename, 'r') as f: categories = json.load(f) except F...
26.942857
82
0.625663
9f09ba20c21b404cf1880e40ede535065bfa3631
93
py
Python
app/username/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
app/username/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/username/__init__.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
from flask import Blueprint username = Blueprint('username', __name__) from . import views
15.5
42
0.774194
2c452dff0ef3c8eb17dbabbaa93e5323af36f505
2,491
py
Python
jocker/parser.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
3
2017-10-18T08:11:58.000Z
2019-07-31T23:53:37.000Z
jocker/parser.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
null
null
null
jocker/parser.py
omab/jocker
44a79d4c12bb4df9c3333da75eb34964de64ad20
[ "BSD-2-Clause" ]
null
null
null
""" Jockerfile file format parser """ import re from .commands import COMMANDS, CommandEnv, CommandName, CommandEntrypoint # Join lines split by \ LINE_SPLITS = re.compile(r'\\\n') def clean_lines(content): """ Take a Jockerfile content and clean each lines. """ return LINE_SPLITS.sub( '', ...
27.373626
79
0.619831
2cc86107d753ecf5d1445516320c7c05b1caad85
33
py
Python
tests/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
tests/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
tests/__init__.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
1
2022-01-29T12:01:47.000Z
2022-01-29T12:01:47.000Z
"""Unit test package for wgt."""
16.5
32
0.636364
e2fbd2bf3efdb39069135182ae07bf968c68cf8b
3,228
py
Python
V27 ZeemanEffekt/plots/calc.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2019-11-27T07:01:08.000Z
2019-11-27T07:01:08.000Z
V27 ZeemanEffekt/plots/calc.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
null
null
null
V27 ZeemanEffekt/plots/calc.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2022-02-20T09:24:16.000Z
2022-02-20T09:24:16.000Z
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from scipy.optimize import curve_fit import uncertainties.unumpy as unp from uncertainties import ufloat from uncertainties.unumpy import nominal_values as noms from uncertainties.unumpy import std_devs as sdevs s1_rot, s2_rot = np.genfromtxt(...
41.384615
111
0.710967
03c43db162ffa62a81bed111b3674f4730b23b18
217
py
Python
models/hr_task_categ.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_task_categ.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_task_categ.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrTaskCateg(models.Model): _name = 'hr.task.categ' _description = "Category" name = fields.Char (string='Category')
19.727273
54
0.663594
20ed927f32dc2c20270279dec14510b338463d43
2,516
py
Python
test/test_npu/test_network_ops/test_set.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_set.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_set.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
39.3125
80
0.665342
a609e88c06b8560d89bccd3ba4ec7ed7579d5b62
1,094
py
Python
__main__.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
1
2021-08-15T03:30:07.000Z
2021-08-15T03:30:07.000Z
__main__.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
null
null
null
__main__.py
plageon/Mailbox
7f975dbffe880c466647cdd58819602c2bc8c0f2
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QPushButton from ReceiveWidget import ReceiveWidget from SendWidget import SendWidget class MainWidget(QMainWindow): def __init__(self): super(MainWidget, self).__init__() self.resize(800, 600) self.setWindowTitle("MailBox") ...
30.388889
83
0.683729
a622498044d8c6a43313b84d7999ac662125df70
2,259
py
Python
profiles/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
profiles/migrations/0001_initial.py
Thames1990/BadBatBets
8dffb69561668b8991bf4103919e4b254d4ca56a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-06 19:36 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', ...
38.948276
156
0.609562
a6da67ff5cca480e7c5058e5802bb539416a3ea8
3,818
py
Python
fspke/cwhash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
fspke/cwhash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
fspke/cwhash.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017, Joseph deBlaquiere <jadeblaquiere@yahoo.com> # All rights reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this ...
39.770833
80
0.595862
f35dcb5c383ac2c920779254b061dd347310f1c8
396
py
Python
docs/tutorials/multinode/noiseless3.py
cognigami/qsim
e18c2f4dc3d1fd7edda696c78ed39708942b47e7
[ "Apache-2.0" ]
280
2020-03-04T18:30:16.000Z
2022-03-24T15:30:50.000Z
docs/tutorials/multinode/noiseless3.py
cognigami/qsim
e18c2f4dc3d1fd7edda696c78ed39708942b47e7
[ "Apache-2.0" ]
274
2020-03-07T21:10:52.000Z
2022-03-30T19:45:48.000Z
docs/tutorials/multinode/noiseless3.py
cognigami/qsim
e18c2f4dc3d1fd7edda696c78ed39708942b47e7
[ "Apache-2.0" ]
91
2020-03-06T18:58:55.000Z
2022-03-23T13:32:14.000Z
import cirq, qsimcirq # Create a Bell state, |00) + |11) q0, q1 = cirq.LineQubit.range(2) circuit = cirq.Circuit(cirq.H(q0), cirq.CNOT(q0, q1), cirq.measure(q0, q1, key="m")) sim = qsimcirq.QSimSimulator() result = sim.run(circuit, repetitions=1000) # Outputs a histogram dict of result:count pairs. # Expected result ...
33
84
0.709596
34099ae8c690550c062e8ad12db350b9c13e84b9
385
py
Python
exercises/es/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/es/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/es/exc_03_16_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("es_core_news_sm") text = ( "Chick-fil-A es una cadena de restaurantes de comida rápida " "americana con sede en la ciudad de College Park, Georgia, " "especializada en sándwiches de pollo." ) # Deshabilita el parser with ____.____(____): # Procesa el texto doc = ____...
24.0625
65
0.696104
347333a4dfd1cd66057875a62bd69e016c53625a
1,629
py
Python
REWORK/src/py/mainLogic.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
REWORK/src/py/mainLogic.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
REWORK/src/py/mainLogic.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
# ┌─────────────────────────────────────────────────────────────────────────┐ # │ Instagram Automated Commenting 2.0 │ # ├─────────────────────────────────────────────────────────────────────────┤ # │ DO NOT indicate used program sections as your own. │ # │ DO N...
52.548387
132
0.47698
8498862d3130423394d7e4315dd8d06cc15681e5
334
py
Python
python/python_new/Python 3/fibonacci.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/fibonacci.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/fibonacci.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
nterms=10 #A = int(input("How many terms? ")) n1=0 n2=1 count=0 if nterms <= 0: print("Enter a positive integer") elif nterms == 1: print("Fibonacci sequence upto",nterms,":") print(n1) else: print("Fibonacci sequence upto",nterms,":") while count < nterms: print (n1,end=' , ') n3=n1+n2 #update values n1=n2 n2...
16.7
44
0.658683
f3ef8c6fc4bdebe2ec20f827c1b0e6560454a0eb
476
py
Python
guess_the_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
guess_the_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
guess_the_num.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
import random def get_random_int(): return random.randint(1,101) if __name__ == "__main__": num_to_guess = get_random_int() print(num_to_guess) while True: user_input = int(input("Reading input: ")) if(user_input == num_to_guess): print("Output: YAY") break ...
26.444444
50
0.592437
fcc105b67e117690dae4547eee617dab169c2f77
736
py
Python
Packs/HealthCheck/Scripts/HealthCheckReadTemeletryLog/HealthCheckReadTemeletryLog.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/HealthCheck/Scripts/HealthCheckReadTemeletryLog/HealthCheckReadTemeletryLog.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/HealthCheck/Scripts/HealthCheckReadTemeletryLog/HealthCheckReadTemeletryLog.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 res = demisto.executeCommand('getFilePath', {'id': demisto.args().get('entryID')}) if res[0]['Type'] == entryTypes['error']: demisto.executeCommand("setIncident", {'xsoartelemetrystatus': 'Not Enabled'}) demisto.results...
36.8
94
0.642663
a22656a1e15e9a9ac5bd44134bfb367367625185
2,232
py
Python
source/simplelistpagegenerator.py
marctrommen/bloggenerator
5b4fed4cd12a899829261d492328dfc39a78153d
[ "MIT" ]
null
null
null
source/simplelistpagegenerator.py
marctrommen/bloggenerator
5b4fed4cd12a899829261d492328dfc39a78153d
[ "MIT" ]
null
null
null
source/simplelistpagegenerator.py
marctrommen/bloggenerator
5b4fed4cd12a899829261d492328dfc39a78153d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime import locale PARAMETER_BLOGTITLE = "blogtitle" PARAMETER_BLOGCREATED = "blogcreated" PARAMETER_BLOGCHANGED = "blogchanged" PARAMETER_BLOGKEYWORDS = "blogkeywords" PARAMETER_BLOGFILENAME = "blogfilename" SNIPPET_SEPERATOR = ", " class SimpleListpageGen...
28.253165
81
0.719086
bf5d259370021d929c4dd2390c071ad67160f574
191
py
Python
scripts/ci_test.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/ci_test.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/ci_test.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import sys fail = False for i in range(len(sys.argv)): if sys.argv[i].startswith("--fail"): fail = True if fail: print("Sorry man") assert(0) else: print("Yeah man")
15.916667
40
0.591623
155daad2d68e5040e9d3abdcd1e01ac6847fa42d
2,753
py
Python
ProyectoTEO V3/lexer_class.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/lexer_class.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
ProyectoTEO V3/lexer_class.py
danielorozco14/proyecto-teo
1b5c38acef77d2bb495a5acb2e223ba987495805
[ "MIT" ]
null
null
null
import ply.lex as lex reserved = { 'if' : 'IF', 'else' : 'ELSE', 'while': 'WHILE', 'do': 'DO', 'for': 'FOR', 'int': 'INT', 'float': 'FLOAT', 'char': 'CHAR', 'void': 'VOID', 'return': 'RETURN', 'include': 'INCLUDE', 'define': 'DEFINE', } tokens = [ ...
20.699248
70
0.483109
ec618a0314c7121092b8203af6993f7062c8638d
10,354
py
Python
santet-online-master/santet.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
santet-online-master/santet.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
santet-online-master/santet.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
## santet-online 08-03-2018 (12:12) # -*- coding: utf-8 -*- # BlackHole Security ## import telethon import os, sys, time, socket, random, requests from telethon import TelegramClient, sync, utils netcatrat_banner = """ __ __ __ _____ _____| |_ ____ _____| |_ ____ _____|...
36.329825
299
0.573402
01b5c170be1c921d3f10b476c17f860abc7643ee
304
py
Python
Game.AI/core.py
Golfyrs/ML.Experiments
362d94357c2ca84a6a4cb127aec6d00c8b1756d4
[ "Apache-2.0" ]
null
null
null
Game.AI/core.py
Golfyrs/ML.Experiments
362d94357c2ca84a6a4cb127aec6d00c8b1756d4
[ "Apache-2.0" ]
null
null
null
Game.AI/core.py
Golfyrs/ML.Experiments
362d94357c2ca84a6a4cb127aec6d00c8b1756d4
[ "Apache-2.0" ]
null
null
null
from time import time def measured(name): def inner(func): def body(*args, **kwargs): print(name) now = time() result = func(*args, **kwargs) print(f'Took: {time() - now} sec.') return result return body return inner
20.266667
47
0.496711
bf1e967bdbcc5d701b2fa43c8587245c31c16284
667
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/accounts_settings/test_accounts_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/accounts_settings/test_accounts_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/accounts_settings/test_accounts_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import unittest import frappe class TestAccountsSettings(unittest.TestCase): def tearDown(self): # Just in case `save` method succeeds, we need to take things back to default so that other tests # don't break cur_settings = frappe.get_doc('Accounts Settings', 'Accounts Settings') cur_settings.allow_stale = ...
29
99
0.776612
171a381ef3b747f43c43b3994a046e41387e15a8
336
py
Python
robolib/images/pgmtools.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
robolib/images/pgmtools.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
robolib/images/pgmtools.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import cv2 import numpy as np import os RAW_IMAGE_EXTENSION = '.pgm' def read_pgm(filename): assert os.path.exists(filename), "File '{0}' wasn't found".format(filename) arr = cv2.imread(filename, 0) assert arr is not None, "File '{0}' couldn't be decoded".format(filename) arr = np.swapaxes(arr, 0, 1)...
24
79
0.681548
17451175b2d9e091df4c935075f24b995f6c31fb
561
py
Python
web2/schiene-test.py
sarafischer/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
1
2020-01-10T10:34:40.000Z
2020-01-10T10:34:40.000Z
web2/schiene-test.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
web2/schiene-test.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
import schiene connections = [] connections.append(('Stuttgart Universität', 'Stuttgart Hbf')) connections.append(('Stuttgart Hbf', 'Mannheim Hbf')) # connections.append(('Mannheim Friedrichsfeld-Süd', 'Mannheim Hbf')) # connections.append(('Mannheim Hbf', 'Stuttgart Hbf')) s = schiene.Schiene() for c in connections:...
31.166667
69
0.623886
e5b232d38b20bbd72009215cb6400319d11d72f4
417
py
Python
exercises/es/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/es/test_01_03_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/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 == "Me gustan las panteras negras y los leones." ), "¿Procesaste el texto correctamente?" assert ( panteras_negras == doc[3:5] ), "¿Seleccionaste el span correcto para 'panteras_negras'?" assert ( panteras_negras_y_leones == doc[3:8] ), "¿Sel...
34.75
73
0.645084
f90aec21b7b64da1471240e771df434c975ba29f
1,803
py
Python
tf/clasificador2/clasificador_dir2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/clasificador_dir2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
tf/clasificador2/clasificador_dir2.py
alffore/lokroids-python
ac3bbc328140e53ab181034d2e3d5d5d17dc9203
[ "MIT" ]
null
null
null
# coding=UTF-8 import cv2 import sys import os import tensorflow as tf import filetype import json # DATADIR = '/Volumes/COMPARTIDA/devel/Tensorflow/imagenesLokro/imagenes/' # MacOS casa DATADIR = '/home/pi/lokros2/imagenes/' # Raspberry CATEGORIAS = ['dormido', 'despierto', 'otro'] if len(sys.argv)<4: print("u...
26.514706
88
0.648918
00d0b7210704d3ef1e50a4c408087d877e34b964
1,486
py
Python
Algorithms/eating_cookies/eating_cookies.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
null
null
null
Algorithms/eating_cookies/eating_cookies.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/02_algorithms/Algorithms/eating_cookies/eating_cookies.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Algorithms :: Practice - eating cookies Cookie Monster can eat either 0, 1, 2, or 3 cookies at a time. If he were given a jar of cookies with `n` cookies inside of it, how many ways could he eat all `n` cookies in the cookie jar? Implement a function `eating_cookies` that counts the number of possible ways Cookie ...
26.535714
69
0.580754
c1ccfd085be1bb6c865da196211d2cf8539ad44a
9,601
py
Python
Packs/FeedElasticsearch/Integrations/FeedElasticsearch/FeedElasticsearch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FeedElasticsearch/Integrations/FeedElasticsearch/FeedElasticsearch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FeedElasticsearch/Integrations/FeedElasticsearch/FeedElasticsearch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
class MockHit: def __init__(self, hit_val): self._hit_val = hit_val def to_dict(self): return self._hit_val """MOCKED RESPONSES""" CUSTOM_VAL_KEY = 'indicatorValue' CUSTOM_TYPE_KEY = 'indicatorType' CUSTOM_HIT = { CUSTOM_VAL_KEY: '5.5.5.5', CUSTOM_TYPE_KEY: 'IP' } PARSED_CUSTOM_HI...
35.559259
118
0.640767
a9cee49c5de03be4ad07c86c8f499e87fb9fb0c6
370
py
Python
pacman-arch/test/pacman/tests/sync1004.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/sync1004.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/sync1004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Induced removal would break dependency (2)" sp1 = pmpkg("pkg1") sp1.conflicts = [ "depend" ] self.addpkg2db("sync", sp1) sp2 = pmpkg("pkg2") sp2.depends = ["depend"] self.addpkg2db("sync", sp2) lp = pmpkg("depend") self.addpkg2db("local", lp) self.args = "-S pkg1 pkg2 --ask=4" self.addrule("PAC...
19.473684
63
0.686486
ec21af553afc6307fac41ea91df0319f230f87b4
2,739
py
Python
part_2_Advanced/model.py
felixdittrich92/fastapi_parts
cce39b619a217bb5cad675bbde73942f9ec30a27
[ "Apache-2.0" ]
2
2021-05-19T06:36:34.000Z
2022-03-02T07:16:40.000Z
other/model.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
other/model.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: test.json # timestamp: 2021-07-25T13:00:30+00:00 from __future__ import annotations from typing import Any, List, Optional from pydantic import BaseModel class OrderDetails(BaseModel): order_id: str order_datetime: str order_shipping_price_gross: Any ...
20.75
59
0.723987
ec452f2e4d07f0b54de98330a2eca8fe3e6f7187
2,357
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/metrics/msrvtt_metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/metrics/msrvtt_metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/metrics/msrvtt_metric.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
# 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 applic...
36.828125
84
0.6521
6b9b05b3ec08fe49bc3a78a3986a9acc21144807
1,875
py
Python
src/test/tests/simulation/species.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/species.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/simulation/species.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: species.py # # Tests: libsim - connecting to simulation and retrieving data from it. # # Programmer: Kathleen Biagas # Date: July 9, 2014 # # Modifications: # # ----------------------------...
22.590361
78
0.601067
d8dcb8b0b7043fcc551b16180ce9793c6e183f24
924
py
Python
Interview Preparation Kits/Interview Preparation Kit/Greedy Algorithms/Luck Balance/luck_balance.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Greedy Algorithms/Luck Balance/luck_balance.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Greedy Algorithms/Luck Balance/luck_balance.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the luckBalance function below. def luckBalance(k, contests): importants = [] unimportants = [] for i in range(len(contests)): if contests[i][1] == 1: importants.append(contests[i][0]) else: ...
19.659574
65
0.582251
85bcb685e99fd7db854646537218a9cc431d7d87
2,745
py
Python
cbm/get/parcel_info.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/get/parcel_info.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/get/parcel_info.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import os import json from os.path import join, normpath, ...
30.5
78
0.599636
778d8f307c5b44efeeaed6f281dcee6040422aaa
673
py
Python
src/training/pytorch/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
src/training/pytorch/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
src/training/pytorch/symbol_detector_tests.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import cv2 import torch from torchvision.io import read_image from torchvision.io.image import ImageReadMode from symbol_detector_model import SymbolDetector print("Finished imports...") image = read_image("./image.png", mode=ImageReadMode.GRAY) image = image.unsqueeze(0) image = image / 255.0 model = SymbolDetector...
24.035714
71
0.734027
24e59fe56bdb5131c983339a3637db04b6752d0b
2,448
py
Python
tests/test_error_handler.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/test_error_handler.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/test_error_handler.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from http import HTTPStatus from typing import TypedDict, cast from spangle.api import Api from spangle.error_handler import ErrorHandler from spangle.exceptions import NotFoundError, SpangleError from spangle.handler_protocols import RequestHandlerProtocol, use_params from ward import fixture, raises, test, using @...
24.727273
75
0.663399
701592a32eb07f6a46301321ea4743668b3e22e1
5,299
py
Python
Packs/RSTCloud/Integrations/RSTCloudThreatFeedAPI/RSTCloudThreatFeedAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/RSTCloud/Integrations/RSTCloudThreatFeedAPI/RSTCloudThreatFeedAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/RSTCloud/Integrations/RSTCloudThreatFeedAPI/RSTCloudThreatFeedAPI_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""RST Cloud Threat Feed API Integration for Cortex XSOAR - Unit Tests file Test Execution -------------- Unit tests can be checked in 3 ways: - Using the command `lint` of demisto-sdk. The command will build a dedicated docker instance for your integration locally and use the docker instance to execute your tests ...
37.316901
117
0.739007
706e3d22dcd6dbd1808b03895a1a2a07a12351aa
8,102
py
Python
spangle/_internal/dispatcher.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
spangle/_internal/dispatcher.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
spangle/_internal/dispatcher.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from __future__ import annotations from http import HTTPStatus from typing import Any, TypeVar, cast from starlette.responses import Response as StarletteResponse from starlette.types import ASGIApp, Receive, Scope, Send from ..component import use_api from ..exceptions import MethodNotAllowedError, NotFoundError, S...
31.161538
88
0.651938
8ec031aee0e6e19cbfc03ba3fb2cfb337b7b56f9
527
py
Python
exercises/es/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "token_text = token.text" in __solution__ ), "¿Estás obteniendo el texto del token correctamente?" assert ( "token_pos = token.pos_" in __solution__ ), "¿Estás obteniendo el part-of-speech tag del token correctamente? Recuerda usar el atributo con el guión bajo." ...
43.916667
118
0.686907
3092209030530887d07a759193abafdc7f25ba46
3,476
py
Python
BruteForce/FTPBruteForce.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
BruteForce/FTPBruteForce.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
BruteForce/FTPBruteForce.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# uncompyle6 version 2.11.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.18 (default, Apr 20 2020, 20:30:41) # [GCC 9.3.0] # Embedded file name: BruteForce\FTPBruteForce.py import requests import re import socket import ftplib import threading import time Headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubun...
34.078431
151
0.514384
ebadebdce9cb939a7951971d1f5d4e040fe27b23
1,131
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex02_flip_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex02_flip_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/purearrays/ex02_flip_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import numpy as np from ch06_arrays.solutions.ex02_flip import flip_horizontally, flip_vertically, flip_horizontally_v2 from ch06_arrays.intro.intro import print_array def main(): print("working on Num PY purearrays") h...
19.5
100
0.534925
d67aa4fa1d696cc8a34f71a84b4fbd3ec1772a39
480
py
Python
examples/06 inline keyboard/InlineBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2020-01-16T08:40:00.000Z
2020-01-16T08:40:00.000Z
examples/06 inline keyboard/InlineBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
examples/06 inline keyboard/InlineBot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2019-10-16T08:11:51.000Z
2019-10-16T08:11:51.000Z
import asyncio from samt import Bot, Answer, Context, Mode marv = Bot() @marv.answer("/Query") def test(): def callback(msg): a = Answer("Interessiert mich nicht " + msg) a.mark_as_answer = False return a q = Answer("<b>W</b><i>ill</i>ste?", choices=["Ja" "Nein", "Vielleicht", "Mö...
19.2
117
0.59375
d6f907e9ac184a44f4c87ce3f06dc40c18730a77
55
py
Python
view/pipeline.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
1
2020-11-17T09:08:24.000Z
2020-11-17T09:08:24.000Z
view/pipeline.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
null
null
null
view/pipeline.py
half2me/gst-web
1418d4fa3c11aab91296ce28a17dabcdd29b76c1
[ "MIT" ]
1
2020-11-17T09:08:26.000Z
2020-11-17T09:08:26.000Z
from aiohttp import web from aiohttp.web import Request
27.5
31
0.854545
034a1c6fad1eb80165c6675eb8622737d2d753b6
295
py
Python
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/examples/example_bulk_conversion.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import os import odml.tools as oto wdir = "/home/msonntag/Chaos/work/x_odml/file_dump/conv" folder_v1_1 = os.path.join(wdir, "out") # Conversion of v1.0 to v1.1 files # Will overwrite existing files fc = oto.format_converter.FormatConverter() fc.convert_dir(wdir, folder_v1_1, False, "v1_1")
24.583333
56
0.759322
0644d6afe37ee736838b734b94816b910efa7164
610
py
Python
main.py
SaschaKaden/Geojson-Generator
8b889f0e73c70e1dd16dd1da64cc9c5269709965
[ "Apache-2.0" ]
null
null
null
main.py
SaschaKaden/Geojson-Generator
8b889f0e73c70e1dd16dd1da64cc9c5269709965
[ "Apache-2.0" ]
null
null
null
main.py
SaschaKaden/Geojson-Generator
8b889f0e73c70e1dd16dd1da64cc9c5269709965
[ "Apache-2.0" ]
null
null
null
import sys from src import util from src import feature import easygui if __name__ == '__main__': features = util.load_csv() if not features: print("Laden schlug fehl, Programm wird beendet!") sys.exit() msg = "Sollen die Features zu einer existierenden Datei hinzugefügt werden?" choi...
24.4
80
0.672131
06478ca30777cdac678fc6b1bb51718fc53e8405
120
py
Python
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P05_BirthdayParty.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P05_BirthdayParty.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L01_FirstStepsInCoding/Exercises/Solutions/P05_BirthdayParty.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
rent = int(input()) cake = rent * 0.20 drinks = cake * 0.55 guy = rent / 3 cost = rent + cake + drinks + guy print(cost)
20
33
0.616667
06a2b795f1b139b267d0dbafb32db9eb0854d303
210
py
Python
PYTHON/Sets/introduction_to_sets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/introduction_to_sets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/introduction_to_sets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys if __name__ == '__main__': N = int(input()) array = input().split() res = set() for a in array: res.add(int(a)) print(sum(res) / float(len(res)))
17.5
37
0.552381
06a9405e6ee103eba8420315d2e69b57dd00413b
1,887
py
Python
PlaidCTF/2021/crypto/Fake_Medallion/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2021/crypto/Fake_Medallion/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2021/crypto/Fake_Medallion/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import hashcash import json import os import socket import threading from carnival import Carnival HOST = '0.0.0.0' PORT = 15213 def to_json(dat): return json.dumps(dat).encode() + b'\n' class Server(object): def __init__(self, host, port): self.host = host self.port =...
29.952381
90
0.54372
00031453a2776ffc2b9fbc565bac5502c1769fe1
378
py
Python
quark_core_api/context/context_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/context_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/context/context_factory.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
from quark_core_api.context import CoreContext class CoreContextFactory(object): def __init__(self): self._types = {} for ct in CoreContext.__subclasses__(): self._types[ct.__name__] = ct def create(self, context_type): if context_type in self._types: context...
23.625
47
0.642857
00075b27d6466bc664051f24b401f9d9b354dab2
1,162
py
Python
robolib/util/averager.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
robolib/util/averager.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
robolib/util/averager.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import numpy as np class Averager: def add_value(self, value: float): pass def get_average(self) -> float: pass class ArithmeticAverager(Averager): def __init__(self): self.sum = 0 self.amount = 0 def __add__(self, other: float): self.add_value(other) ...
23.24
76
0.611015
0020e478483db7c7113623b308e29316f2eb17c5
211
py
Python
Packs/Axonius/Integrations/Axonius/Axonius_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Axonius/Integrations/Axonius/Axonius_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Axonius/Integrations/Axonius/Axonius_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""Axonius Integration for Cortex XSOAR - Unit Tests file.""" import inspect import axonius_api_client as axonapi def test_client_exists(): """Pass.""" assert inspect.isclass(axonapi.connect.Connect)
21.1
61
0.744076
aeb2ae6dd970f01c3eaed2d94b1cf6a2e16c970e
386
py
Python
PlaidCTF/2020/misc/BonziScheme/app/config.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2020/misc/BonziScheme/app/config.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2020/misc/BonziScheme/app/config.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os class Config(object): SECRET_KEY = os.environ.get("SECRET_KEY") FLAG = os.environ.get("FLAG") UPLOAD_FOLDER = os.environ.get("UPLOAD_FOLDER") if not os.path.exists(UPLOAD_FOLDER): os.makedirs(UPLOAD_FOLDER) RECAPTCHA_PUBLIC_KEY = os.environ.get("RECAPTCHA_PUBLIC_KEY") ...
38.6
68
0.709845
0603867d3d8d1fd3f53e9d785672ca703df2f5b2
3,251
py
Python
research/cv/dem/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/dem/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/dem/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.168675
86
0.656721
ee3024aeeaf4236eac660299e5b6a2323fd96484
1,223
py
Python
research/cv/stgcn/src/model/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/stgcn/src/model/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/stgcn/src/model/metric.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...
33.972222
78
0.644317
c98c15bafb3c78e81643e1e14f4fe0a8008b1377
350
py
Python
python/generator_tricks_for_systemprogrammer/realtime404.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/realtime404.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/realtime404.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# realtime404.py # # Print all 404 requests as they happen in the log from apachelog import apache_log from follow import follow logfile = open("run/foo/access-log") loglines = follow(logfile) log = apache_log(loglines) r404 = (r for r in log if r["status"] == 404) for r in r404: print(r["host"], ...
21.875
51
0.668571
a00804518b53fe7a39e653d13057278652e355eb
465
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/rename_time_sheet_doctype.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/rename_time_sheet_doctype.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/rename_time_sheet_doctype.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.table_exists("Time Sheet") and not frappe.db.table_exists("Timesheet"): frappe.rename_doc("DocType", "Time Sheet", "Timesheet") frappe.rename_doc("DocType", "Time Sheet Detail", "Timesheet Detail") for doctype in ['Time Sheet', 'Time Sheet Detail']: frappe.delete_...
33.214286
85
0.711828
119f55c3efd089fab0e129dd634fd673dcd47b65
346
py
Python
exercises/pt/solution_02_05_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_02_05_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/solution_02_05_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("pt") # Importe a classe Doc from spacy.tokens import Doc # Texto desejado: "spaCy é bem legal!" words = ["spaCy", "é", "bem","legal","!"] spaces = [True, True, True, False, False] # Crie um Doc a partir das palavras words e o espaçamento spaces doc = Doc(nlp.vocab, words=words, space...
23.066667
64
0.693642
11cae06b71f782414ac4111c2a255d0c4fd49256
4,522
py
Python
Check-Number-main/phone.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Check-Number-main/phone.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Check-Number-main/phone.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# ENCYPT BY ALDI # YOUTUBE MR.1557 # mau ngapai hayo heheheh # subscribe dulu oy exec((lambda _ : (__import__('base64').b85decode(_)))(b'X>D+Ca&#baWpQ<7b98eoYIARHEN^oxb9r+tbZKp63JP@~Js>AsFf%h-IW=u33SuBVASYZfGc#K`G;JpeXdpcxCtNTyGg~<_Z6^wAAUz-_Tre{;TRAgrCkkyKJs>AsFf%h-IWcV~3PnytLm)jMCtNTyGg~liCkk*NJs>AsFf%h-IX7)53PnOpMI...
753.666667
4,439
0.754312
11e4de47c11713990ae67a093b7a1b8c7b09471d
105
py
Python
fanpy/__init__.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
1
2021-04-23T19:47:51.000Z
2021-04-23T19:47:51.000Z
fanpy/__init__.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
fanpy/__init__.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
from fanpy.io import read_climate_file from fanpy.run_formind import Formind from fanpy.graphics import *
35
38
0.857143
eeb4d06a1c174116bba9379bf6e3ac80c0245b2b
2,650
py
Python
src/rqt_bt/btdata.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
src/rqt_bt/btdata.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
src/rqt_bt/btdata.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import networkx as nx import pygraphviz import rospy from cyborg_msgs.msg import BehaviorTree, BehaviorTreeNodes from networkx.utils.misc import make_str _attrs = dict(id='id', children='children') def tree_graph(data, attrs=_attrs): """Return graph from tree data format. P...
28.191489
84
0.616981
011dda7f61a66d5c4c9c72f1336f940b47ddc668
282
py
Python
05.Greedy/SY/b1817_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
05.Greedy/SY/b1817_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
05.Greedy/SY/b1817_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# b1817 import sys n, m = map(int, sys.stdin.readline().split()) books = list(map(int, sys.stdin.readline().split())) box = 0 if n != 0 : box = 1 weigt = 0 for b in books : weigt += b if weigt > m : box += 1 weigt = b print(box)
17.625
52
0.496454