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
0c25d2a43b8668bc87f26d7416f1d359f1054e3b
3,463
py
Python
test/test_tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag22.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import MagicMock try: from pyventskalender import tag22_loesung as heute except ImportError: from pyventskalender import tag22 as heute try: import arcade except ImportError: print("Fehler beim importieren von 'arcade'. Bitte installiere arcade und akt...
50.188406
136
0.668207
a76fcc0a09aa75b6f8c14452919faa9d0d705a25
318
py
Python
py/jpy/pysobug/setup.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/pysobug/setup.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/pysobug/setup.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
#!/usr/bin/env python3 from distutils.core import setup from distutils.extension import Extension # This one works #extension = Extension('mypymod', sources=['mypymod.c'], libraries=['python3.4m']) # This one not extension = Extension('mypymod', sources=['mypymod.c']) setup(name='mypymod', ext_modules=[extension])
28.909091
82
0.745283
ac359cdcb7e59435442b1be25da73f16fc1d1726
13,001
py
Python
admin/gen_schedule.py
rhit-csse490-netsec/netsec-public
5f3d0e7aef4d77b0e9555f0e19e2ffd168e83c35
[ "MIT" ]
null
null
null
admin/gen_schedule.py
rhit-csse490-netsec/netsec-public
5f3d0e7aef4d77b0e9555f0e19e2ffd168e83c35
[ "MIT" ]
null
null
null
admin/gen_schedule.py
rhit-csse490-netsec/netsec-public
5f3d0e7aef4d77b0e9555f0e19e2ffd168e83c35
[ "MIT" ]
null
null
null
# %% import yaml import pprint as pp import csv import logging import os from datetime import datetime as dt # %% def find_sources_root(tree_root='csse332'): """ Find the root directory containing the sources for the website. :return: Returns the real path of the sources root. :rtype: str """ ...
34.669333
129
0.559111
ce41987065186863ae533150f299f2100d782e67
5,634
py
Python
RDS/circle1_adapters_and_ports/port_zenodo/src/lib/Util.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/lib/Util.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/lib/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from functools import wraps from lib.upload_zenodo import Zenodo from flask import request, g, current_app, abort import os import requests import logging from pyld import jsonld import json from RDS import Util logger = logging.getLogger() def require_api_key(api_method): @wraps(api_method) def check_api_ke...
28.17
85
0.586439
5a001efc5c0b6f4cc3524a180d32cfec0323d57e
7,258
py
Python
Packs/GsuiteAuditor/Integrations/GsuiteAuditor/GsuiteAuditor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GsuiteAuditor/Integrations/GsuiteAuditor/GsuiteAuditor.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GsuiteAuditor/Integrations/GsuiteAuditor/GsuiteAuditor.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 * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa from GSuiteApiModule import * # noqa: E402 ''' IMPORTS ''' import urllib3 from typing import List, Dict, Any # Disable insecure warnings urllib3.disable_war...
32.990909
125
0.646184
0b3db6d7a3c0ae0a9a5ed590c07b012b82dfeb20
19,272
py
Python
ingress/ambassador/ambassador/ambassador_diag/diagd.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
ingress/ambassador/ambassador/ambassador_diag/diagd.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
ingress/ambassador/ambassador/ambassador_diag/diagd.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
#!python # Copyright 2018 Datawire. 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 applicable ...
32.12
111
0.611613
0b69e32c2255633fb912805e439bfd7c59138f2a
3,781
py
Python
home-assistant/custom_components/mmpk/sensor.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
136
2019-06-27T08:11:47.000Z
2022-03-11T12:26:53.000Z
home-assistant/custom_components/mmpk/sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
5
2020-05-30T00:19:22.000Z
2022-03-25T18:49:47.000Z
home-assistant/custom_components/mmpk/sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
63
2019-07-15T21:11:58.000Z
2022-03-13T09:43:24.000Z
""" Fetch information from busix instance """ import voluptuous as vol import logging import homeassistant.helpers.config_validation as cv import async_timeout import aiohttp import asyncio import json import homeassistant.util as util from dateutil.parser import parse from aiohttp.hdrs import AUTHORIZATION from date...
29.084615
149
0.708278
0b7fe4d6b5f8f2eada574dad752a467876af0478
3,256
py
Python
python_version/ciphermamager.py
Hermethus/hernethus.github.io
d2577b71cedb8f60d4d9052f979f8a139d69536d
[ "Apache-2.0" ]
null
null
null
python_version/ciphermamager.py
Hermethus/hernethus.github.io
d2577b71cedb8f60d4d9052f979f8a139d69536d
[ "Apache-2.0" ]
null
null
null
python_version/ciphermamager.py
Hermethus/hernethus.github.io
d2577b71cedb8f60d4d9052f979f8a139d69536d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from Crypto.Cipher import AES import hashlib class CipherManager: def __init__(self, password, file_path=None, new=True): self.set_password(password) self.code_dict = dict() if new: if file_path: self.code_dict = r...
25.637795
106
0.543612
e7f21f31a338c53ebdad51d14ecb8ea8b1dbd37d
1,231
py
Python
edit_message_handler.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
edit_message_handler.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
edit_message_handler.py
BigBoss1964/discord-rules
02257a84450388ceffbad5b6bb9e28175734403f
[ "MIT" ]
null
null
null
import discord from database import ServerData, db async def handle_editmessage(message: discord.Message, client: discord.Client, server_data: ServerData): channel: discord.TextChannel = message.channel author: discord.Member = message.author await channel.send( embed=discord.Embed( ...
36.205882
105
0.661251
f021a3312ac8390c1aa7f8f97cce0791d688631c
525
py
Python
mod/models/eat.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/models/eat.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/models/eat.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2015-05-28 from sqlalchemy import Column, String, Integer from sqlalchemy.ext.declarative import declarative_base from db import engine Base = declarative_base() class Eat(Base): __tablename__ = 'eat' day = Column(String(50), nullable=True,primary_key=True) ...
21.875
61
0.668571
b2e53dec1d9d1a45164f01c52387cbdb95c9999d
3,071
py
Python
Cat/drf_project/serializer.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/serializer.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/serializer.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from rest_framework import serializers from .models import Goods, GoodsCategory # class GoodsSerializer(serializers.Serializer): # """ 要序列化的字段自己申明号 """ # name = serializers.CharField(required=True, max_length=20) # category = serializers.CharField(required=True, max_length=20) # ...
30.71
105
0.678932
683b99c5a8deedf65933d48982d1a4e8be80be62
1,270
py
Python
tests/test_005_mitgliedEntfernen.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/tests/test_005_mitgliedEntfernen.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/tests/test_005_mitgliedEntfernen.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from tests.MyTestCase import MyTestCase from tests.MyFuncLogin import loginAsLukasAdmin from tests.MyFuncMitglieder import addMitglied class TestMitgliedEntfernen(MyTestCase): """ Setup and Teardown functions are specified in MyTestCase """ # Tests def test_1MitgliedEntfernen_AsSuperu...
28.222222
84
0.598425
686329560a3d229a0de4f211cb61343e692d49b5
2,721
py
Python
isp/plot.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
isp/plot.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
isp/plot.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' plot ==== CHANGELOG ========= 0.1.0 / 2021-01-16 ------------------ - First Release ''' __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeite...
21.768
209
0.572216
d79a175029741b7759b9a726d3de66943fed803c
84
py
Python
1-projects/Intro-Python-II-master/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Intro-Python-II-master/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Intro-Python-II-master/src/player.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Write a class to hold player information, e.g. what room they are in # currently.
28
70
0.738095
c598114d5f525510e7ce735f00d60581c6a6a7be
190
py
Python
tests/data/test_wrangling.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
11
2021-04-17T18:51:45.000Z
2021-06-25T19:42:25.000Z
tests/data/test_wrangling.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
3
2021-04-29T19:24:15.000Z
2021-05-21T04:30:54.000Z
tests/data/test_wrangling.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
2
2021-06-10T00:55:43.000Z
2021-12-30T07:37:07.000Z
from nose import tools as _tools from haferml.data.wrangle.misc import convert_str_repr_to_list def test_convert_to_list(): _tools.eq_(convert_str_repr_to_list("[1,2,3]"), [1, 2, 3])
23.75
62
0.763158
a8b0e927499345ca965b8d7929f25e450b427b18
461
py
Python
python/sbs.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/sbs.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/sbs.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
"""Surveillance Broadcast system""" SBS_HEADERS = ['MESSAGE_TYPE', 'TRANSMISSION_TYPE', 'SESSION_ID', 'AIRCRAFT_ID', 'HEX_IDENT', 'FLIGHT_ID', 'GENERATED_DATE', 'GENERATED_TIME', 'LOGGED_DATE', 'LOGGED_TIME', 'CALLSIGN', 'ALTITUDE', 'GROUND_SPEED', 'TRACK', 'LAT',...
92.2
157
0.527115
8c6c3d3382d97fec2b16fa5919460cc9e2999b0e
7,444
py
Python
src/video_transcoding/transcoding.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
null
null
null
src/video_transcoding/transcoding.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
null
null
null
src/video_transcoding/transcoding.py
serzh-unknown/django-video-transcoding
a9048a83ff71e214a215f271d8809f98c1db44b0
[ "MIT" ]
null
null
null
import math from dataclasses import dataclass from pprint import pformat from typing import Optional, Dict, Any, Tuple, cast import pymediainfo from fffw.encoding import codecs from fffw.graph.meta import VideoMeta, AudioMeta, AUDIO, VIDEO, from_media_info from fffw.encoding.inputs import input_file, Stream from fffw....
31.409283
79
0.632456
2cd01857f1bbc32a1f43dc20738da311735df949
885
py
Python
tp1/source/Map.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/Map.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/Map.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Trabalho Pratico 1: Inteligência Artificial Autor: Hugo Araujo de Sousa (2013007463) Map.py: 2D map with blocked and free cells. ''' import numpy as np class Map(): def __init__(self, input_file): ''' Initialize a map. @input_file: (string) Name of the input file to read map d...
20.113636
70
0.668927
fa35274372e867ccaa075c7912da5e1c1626b48a
415
py
Python
PINp/2015/DENISENKO_A_N/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DENISENKO_A_N/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5. Вариант 27. # Напишите программу, которая бы при запуске случайным образом отображала # название одного из двенадцати месяцев. # Denisenko A. N. # 02.06.2016 import random month = ("Январь", "Февраль","Март", "Апрель", "Май", "Июнь","Июль", "Август", "Сентябрь", "Октябрь","Ноябрь", "Дек...
25.9375
73
0.681928
cb80c453cb3928bede00b4afc633927dfd8be648
429
py
Python
chillow/model/direction.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/model/direction.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/model/direction.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from enum import Enum import random class Direction(Enum): """Enum to represent all possible directions in which a player can be directed to in a game.""" left, right, up, down = range(4) @staticmethod def get_random_direction(): """Randomly chooses one of the defined directions in this enum....
25.235294
99
0.652681
69ec8dd90e166e2d32f055d2000bb43d3a67287f
156
py
Python
timerecorder/apps.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
timerecorder/apps.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
timerecorder/apps.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TimerecorderConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'timerecorder'
22.285714
56
0.775641
0e1507c30a53f42d0e469437829f70613ef76ec2
5,418
py
Python
code (OLD)/database OLD.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
1
2022-02-02T18:08:10.000Z
2022-02-02T18:08:10.000Z
code (OLD)/database OLD.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
null
null
null
code (OLD)/database OLD.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
null
null
null
import sqlite3 import json from datetime import datetime import mmap import sys from tqdm import tqdm from settings import * # print(sys.argv[1:]) timeframe = sys.argv[1:][0] if sys.argv[1:] else "RC_2008-01.json" sql_transaction = [] connection = sqlite3.connect(f"{data_drive_letter}:/REDDIT_DATA/reddit_database.db"...
23.153846
98
0.639719
38c9614bac6c7f5446f6dfd2b07b666e1f4ee777
2,602
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/check-zplane.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/check-zplane.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/check-zplane.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python DEBUG = 0 import os import sys import glob import eval_manager import mar_collection import subprocess import pipes def single_file_zplane(filename): cmd = "/Users/gperciva/aufTAKT/bin/aufTAKTTestCL %s " % ( pipes.quote(filename)) results = subprocess.check_output(cmd, shell=T...
25.509804
75
0.638355
2a7a7ac25d47ad2618763f0af43a7d378ad4f96e
376
py
Python
pacman-termux/test/pacman/tests/epoch012.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/epoch012.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/epoch012.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "usbutils case study: maintainer screws up and removes force" sp = pmpkg("usbutils", "003-1") self.addpkg2db("sync", sp) lp = pmpkg("usbutils", "1:002-1") self.addpkg2db("local", lp) self.args = "-Su" self.addrule("PACMAN_RETCODE=0") # remember, this is how we have to handle this- 003 will not be...
26.857143
80
0.718085
aa7ceb0d59c0ed436922bbe3eb5744a370187a52
585
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/Constants.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/Constants.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/rackmanager/Constants.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
21.666667
68
0.752137
aaa762425f758081684af8ce43984c5deacfb57b
2,843
py
Python
tests/integration/scalar_fields/test_xyz_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
tests/integration/scalar_fields/test_xyz_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
tests/integration/scalar_fields/test_xyz_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import pytest import numpy as np @pytest.mark.usefixtures("plane_pyntcloud") def test_plane_fit_max_dist(plane_pyntcloud): with np.errstate(divide='ignore', invalid='ignore'): plane_pyntcloud.add_scalar_field( "plane_fit") assert sum(plane_pyntcloud.points["is_plane"]) == 4 with np.e...
39.486111
93
0.722125
2ad1bec0b19bc0ea000c28c837cd9928de5e06ed
258
py
Python
05.Greedy/SY/b14916_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
05.Greedy/SY/b14916_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
05.Greedy/SY/b14916_SY.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# b14916 n = int(input()) coin = n // 5 if n % 5 == 0 : print(coin) else : if n % 5 % 2 == 0 : coin += n % 5 // 2 print(coin) elif coin == 0 : print(-1) else : coin += (n % 5 + 5) // 2 - 1 print(coin)
18.428571
36
0.379845
6307794224346c7df7aa611fa3a9c47952c96b14
20,344
py
Python
app/aria.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
app/aria.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
app/aria.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Aria Database connetion and querys for pyGqa """ __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten an der TU-Dortmund / FH-Dortmund" __cred...
38.898662
209
0.529689
87b744676d107cd546ffa7fb7e0cb1cc24628c5d
4,115
py
Python
apps/training_tf_simple_m/simple.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/training_tf_simple_m/simple.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/training_tf_simple_m/simple.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
import tensorflow as tf from random import randint import matplot def generate_inputs(): data = [ 0.0, 0.0, 0.0, 0.0 ] label = randint(0, 1) if label == 0: data[0] = 1.0 data[1] = 1.0 elif label == 1: data[0] = 1.0 data[2] = 1.0 return data, la...
30.036496
104
0.646173
355ca74fc3d8839ed4c56c0b3f5024629a4fd62f
348
py
Python
python/image_processing/openCV.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/openCV.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/openCV.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 # Load an color image in grayscale img = cv2.imread('cadillac.jpg',0) # 0 for grayscale # 1 for color excluding alpha and transparency # -1 for alpha channel too print(img) # to show the image cv2.imshow('image',img) cv2.waitKey(0) # to save the image cv2.imwrite('image1.png',img) c...
12.888889
46
0.721264
35771edd9f6f3a6dfbb721b8359022cf3c2f70be
605
py
Python
doc/plot_duty_cycle.py
gonium/EVSE-Car-Simulator
16e10f521eee962967f66a43f7e356b7e21f1a08
[ "MIT" ]
32
2017-09-19T15:32:02.000Z
2022-03-19T20:47:54.000Z
doc/plot_duty_cycle.py
alekseyvm/EVSE-Car-Simulator
16e10f521eee962967f66a43f7e356b7e21f1a08
[ "MIT" ]
4
2017-10-22T09:40:33.000Z
2018-05-08T13:47:52.000Z
doc/plot_duty_cycle.py
alekseyvm/EVSE-Car-Simulator
16e10f521eee962967f66a43f7e356b7e21f1a08
[ "MIT" ]
7
2018-01-01T13:53:34.000Z
2022-03-10T09:21:06.000Z
import matplotlib.pyplot as plt import numpy as np lowamps=np.linspace(6, 50.9, 100) highamps=np.linspace(51, 80, 100) lowdc = lowamps / 0.6 highdc = highamps / 2.5 + 64 fig= plt.figure(figsize=(8, 4.5)) ax = plt.axes() ax.plot(lowamps, lowdc, "r-", label="6-51 A") ax.plot(highamps, highdc, "g-", label="51-80 A") pl...
26.304348
55
0.677686
ea3b54d8467bc4c46119482fbe804402a6c67dd9
941
py
Python
elements/python/7/8/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/7/8/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/7/8/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def split_parts(s, pred, num): """ split_parts is a general function that splits s into num substrings that satisfy pred. """ n = len(s) if n == 0: return [] if num == 1: return [[s]] if pred(s) else [] results = [] for p in xrange(1, n+1): prefix = s[:p] ...
20.456522
76
0.555792
ea46794b4deeb233bc1cbd5d4cae6e7e56959b41
9,651
py
Python
backend/app.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
39
2021-05-01T03:36:44.000Z
2021-11-16T13:29:21.000Z
backend/app.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
50
2021-04-28T10:57:07.000Z
2021-08-19T05:13:07.000Z
backend/app.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
19
2021-05-02T04:25:02.000Z
2021-07-11T04:34:16.000Z
from flask import ( Flask, render_template, json, wrappers, request, jsonify, make_response, ) from flask_cors import CORS import argparse import redis, csv, sys, os from typing import TypedDict, Tuple, Dict, Callable, List, Any, Optional from enum import Enum import requests from bs4 impo...
33.394464
125
0.639416
ea56d200d12430dc80fbec9af5fc6c3aeaec3a45
172
py
Python
python/pathlib/origin/change_dir.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/change_dir.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pathlib/origin/change_dir.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from pathlib import Path from os import chdir path = Path('..') print(f'현재 작업 디렉터리: {path.cwd()}') # 디렉터리 이동 chdir(path) print(f'현재 작업 디렉터리: {path.cwd()}') chdir('..')
13.230769
34
0.627907
dcb0481ff1f3b5dd2e452ae17e3cce0a94e56245
276
py
Python
zencad/examples/3.Animation/base.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/examples/3.Animation/base.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/examples/3.Animation/base.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 from zencad import * import time s = box(10, center=True) controller = disp(s) nulltime = time.time() def animate(widget): trans = rotateZ(time.time() - nulltime) * right(30) controller.relocate(trans) show(animate=animate)
16.235294
55
0.692029
1d78bbcca5a5353bb2b0deeb6bb9a22643151b48
1,657
py
Python
insomniac/validations.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
533
2020-06-01T10:40:11.000Z
2022-03-29T17:05:50.000Z
insomniac/validations.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
399
2020-06-01T22:01:55.000Z
2022-03-29T20:39:29.000Z
insomniac/validations.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
166
2020-06-01T21:51:52.000Z
2022-03-12T14:14:44.000Z
import json from urllib.parse import urlparse from insomniac import network, HTTP_OK from insomniac.utils import * PROFILE_VALIDATION_SERVICE_URL = 'https://emailsverified.herokuapp.com/checkinstagram/?username={0}' PROFILE_STATUS_FIELD = 'status' PROFILE_TAKEN = 'taken' PROFILE_AVAILABLE = 'available' should_valid...
36.021739
133
0.695232
d5709737beb9113d9187d23189c9cfd66ca97366
2,265
py
Python
research/hpc/pinns/src/Schrodinger/export_sch.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pinns/src/Schrodinger/export_sch.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pinns/src/Schrodinger/export_sch.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...
42.735849
84
0.679912
987d39f68f620cd71d9f2f090d622fc9d0f74eaf
433
py
Python
tools/pythonpkg/tests/fast/pandas/test_stride.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/pandas/test_stride.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/pandas/test_stride.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import pandas as pd import duckdb import numpy as np class TestPandasStride(object): def test_stride(self, duckdb_cursor): expected_df = pd.DataFrame(np.arange(20).reshape(5, 4), columns=["a", "b", "c", "d"]) con = duckdb.connect() con.register('df_view', expected_df) output_df = ...
33.307692
93
0.665127
7f543b955efc37962fb2f2216015dfe30c3bf1ea
1,991
py
Python
research/cv/AttentionCluster/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttentionCluster/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttentionCluster/src/utils/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
53.810811
120
0.67554
7f6beb82b17af7e4941063056c83e3a927818ea0
2,367
py
Python
src/features/syllable_counter.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/features/syllable_counter.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/features/syllable_counter.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from os import walk, path, stat from extras import Logger # The syllable counter class class SyllableCounter: # Constructor for the syllable counter class def __init__(self, in_dir, out_file, dict_file): ...
29.222222
79
0.604563
f6c1e55940105ee9832126369a88d54e1c2bca62
1,235
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/14_check_boxes.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/14_check_boxes.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/14_check_boxes.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' Checkboxes, also known as tickboxes or tick boxes or check boxes, are widgets that permit the user to make multiple selections from a number of different options. This is different to a radio button, where the user can make only one choice. Usually, checkboxes are shown on the screen as square boxes that can conta...
58.809524
278
0.767611
121556cde2790e81ed8945f298554cf15ede6c99
12,122
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/import/visum/visum_convertRoutes.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/import/visum/visum_convertRoutes.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/import/visum/visum_convertRoutes.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
36.512048
116
0.524996
7f231a8ebbb0722d76644fd7cdd09717b000de76
1,951
py
Python
app.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
app.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
app.py
ArielBM/Sesion9
6bf1835e6dc8187f45cd910ff4997dded180e96e
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request, jsonify from Usuario import Usuario from flask_cors import CORS from CRUD_Pokemon import CRUD_Pokemon from CRUD_Usuarios import CRUD_Usuario mis_pokemon = CRUD_Pokemon() mis_usuarios = CRUD_Usuario() mis_usuarios.crear('Ariel Bautista Méndez', 'foto.png', 'arielbm', 'mypass') app =...
21.206522
94
0.602255
61c8973d2b03f801da73735812dae1a58372b4e2
6,991
py
Python
model/building_convnet.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/building_convnet.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/building_convnet.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
""" This script executes the task of estimating the building type, based solely on the geometry for that building. The data for this script can be found at http://hdl.handle.net/10411/GYPPBR. """ import os import socket import sys from datetime import datetime, timedelta from pathlib import Path from time import time ...
38.624309
115
0.727364
dcfa42acf4f4524dedac36c2e3feada859ce826f
337
py
Python
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Exercises/Solutions/P05TimePlus15Minutes.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Exercises/Solutions/P05TimePlus15Minutes.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L02_ConditionalStatements/Exercises/Solutions/P05TimePlus15Minutes.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
hours = int(input()) minutes = int(input()) new_hours = 0 minutes_new = minutes + 15 if minutes_new >= 60: minutes_new = minutes_new % 60 new_hours = hours + 1 else: new_hours = hours if minutes_new <= 9: minutes_new = '0' + str(minutes_new) if new_hours == 24: new_hours = 0 print(f'{new_hours}...
16.85
40
0.649852
2ed4d0dd3705380d48bc66f15b0c10313dbccabf
4,664
py
Python
Osint.py
nolla123/char_utf8
35984f6a0504dd85b6aa9d706db965290a42e8ed
[ "MIT" ]
null
null
null
Osint.py
nolla123/char_utf8
35984f6a0504dd85b6aa9d706db965290a42e8ed
[ "MIT" ]
null
null
null
Osint.py
nolla123/char_utf8
35984f6a0504dd85b6aa9d706db965290a42e8ed
[ "MIT" ]
null
null
null
import re, operator, csv class osint_utf8: busPol = dict() politicsPol= dict() entPol = dict() confPol = dict() confCount = dict() entCount = dict() busCount = dict() busCount['total'] = 0 confCount['total'] = 0 entCount['total'] = 0 wcount=dict() wcount['total'] = 0 pcount=dict() pcount['total'] = 0...
25.911111
115
0.66488
e2b51952bab9d38dc8024711845f80e20e9d0824
1,431
py
Python
research/cv/midas/midas_export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/midas/midas_export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/midas/midas_export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.775
94
0.703704
e2ea3784acdafc91bc67f87b765067f9091ca493
10,820
py
Python
Python/pyside2/start_hu_application.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pyside2/start_hu_application.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/pyside2/start_hu_application.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
from PySide2 import QtWidgets import sys import os from DLTAnalyzer.HU.testcases import coredump_check from DLTAnalyzer.UI.HU_mainWidget_Designer import Ui_frm_main import DLTAnalyzer.HU.config.path_handler as ph import DLTAnalyzer.Utilities.File_Converter as converter from DLTAnalyzer.UI.Gui_Logger import GuiLogger...
40.984848
140
0.662754
1a712ad44dbdc70c3744d83336ac24139e7d1d8f
9,045
py
Python
python/DeepLearning/lesson2/week1/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/lesson2/week1/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/lesson2/week1/my_main.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import numpy as np import numpy.random import matplotlib.pyplot as plt import acivate_fun as act from generate_data import get_normal_data, get_simple_data from numpy import seterr import init_utils # 第一部分,初始化 seterr(all='raise') # 设置常量 # 激活函数的标识字符串 SIGMOID_NAME = 'sigmoid' TANH_NAME = 'tanh' RELU_NAME = 'ReLU' # ...
27
99
0.54063
2000eb8edf1f9e427428805f6c9c8be363232d70
1,918
py
Python
NeuralNet/Oli/libs/ImageLoader.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Oli/libs/ImageLoader.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Oli/libs/ImageLoader.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
from collections import Iterable from pathlib import Path class ImageLoader: """ Manages loading of all data """ _img_base_dir: Path = None _font_names = [] _img_count_per_font = [] _img_count_global = 0 def __init__(self, img_dir_path: str): self._img_base_dir = Path(img_dir...
33.068966
83
0.641814
205719a53eb2aa9e4772d82783a78015a2a34c09
5,469
py
Python
20-fs-ias-lec/groups/Demo_D/guiSneakernet.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/Demo_D/guiSneakernet.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/Demo_D/guiSneakernet.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import PySimpleGUI as sg # import sys # insert at 1, 0 is the script path (or '' in REPL) # sys.path.insert(1, '/home/leonhard/PycharmProjects/BACnet/groups/13-sneakernet/code') import sneakernet_functions import webbrowser import os # This will be the main file for the active gui for the sneakernet. running = False ...
49.27027
120
0.513622
b3f779045aab7bedb726f01736f5c8c5a08f6db9
4,471
py
Python
src/water.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/water.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/water.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # 2mmn40 code # Water molecule simulation # version 2018-01-16 # BA # # # for BA: Make sure to run in directory # C:\Users\20165263\Dropbox\tue\2mmn40\src # # =====================================================...
28.297468
79
0.518676
b6050e76560ca53292445f9849f34941860b0532
7,891
py
Python
image_segmentation/model.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/model.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/model.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
2
2019-05-16T05:48:26.000Z
2021-01-27T01:26:22.000Z
# For building the model_2 import tensorflow as tf import keras as keras from keras.models import Model, load_model from tensorflow.python.keras import backend as K from sklearn.model_selection import train_test_split from keras.layers import Input, concatenate, Conv2D, MaxPooling2D, Conv2DTranspose from keras.layer...
47.251497
172
0.69066
379340fb9bbc1cf1d3bc437d0df39cb79998f562
2,131
py
Python
src/onegov/feriennet/exports/booking.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/exports/booking.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/exports/booking.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity import Activity, Attendee, Booking, Occasion from onegov.core.security import Secret from onegov.feriennet import FeriennetApp, _ from onegov.feriennet.forms import PeriodExportForm from onegov.feriennet.exports.base import FeriennetExport from onegov.user import User from sqlalchemy.orm import con...
31.80597
79
0.650399
8096932d1f13273b4d756ee4aa9c2feef180f024
3,105
py
Python
resources/mechanics_lib/api/graphs/example.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/api/graphs/example.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/api/graphs/example.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
import graph import shapes ### Build a Face object for an equilateral triangle with side length 1 t = shapes.RegularNGon("triangle", 3, 1) ### Build a Face object for a square with side length 1 s = shapes.Square("square", 1) ### Build the graph for a tetrahedron by assembling 4 different triangle faces ### Faces ar...
44.357143
98
0.656361
20d386fc2112668ab14a38057c79b5b6439bcb31
414
py
Python
exercises/es/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/es/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/es/solution_01_03_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Importa spaCy y crea el objeto nlp para procesar español import spacy nlp = spacy.blank("es") # Procesa el texto doc = nlp("Me gustan las panteras negras y los leones.") # Un slice del Doc para "panteras negras" panteras_negras = doc[3:5] print(panteras_negras.text) # Un slice del Doc para "panteras negras y los ...
25.875
67
0.751208
2be3a878562a8f78de080aee9f157d0cb7c44dab
2,834
py
Python
helperREADME.py
yoyoyoju/TIL
83c5e594caf86c4ad3bb6e4347ca5a4de85db390
[ "MIT" ]
null
null
null
helperREADME.py
yoyoyoju/TIL
83c5e594caf86c4ad3bb6e4347ca5a4de85db390
[ "MIT" ]
2
2018-09-24T09:43:24.000Z
2018-09-25T17:17:20.000Z
helperREADME.py
yoyoyoju/TIL
83c5e594caf86c4ad3bb6e4347ca5a4de85db390
[ "MIT" ]
null
null
null
import os ### helper functions for generateREADME.py def sorted_dir(folder): '''(str) -> list of str Return a list of files in folder sorted based on the time since epoch oldest to newest. ''' def getmtime(name): path = os.path.join(folder, name) return os.path.getmtime(path) ...
25.531532
82
0.574453
753c14b1ba4ede98e33c6804312098a3876c869e
2,821
py
Python
modules/fmongodb/fClient.py
Bym24v/FAS
efbcf606c49dd591857e0e537bc5b9f082c13405
[ "MIT" ]
3
2018-02-11T11:34:30.000Z
2020-05-06T12:11:03.000Z
modules/fmongodb/fClient.py
Bym24v/FAS
efbcf606c49dd591857e0e537bc5b9f082c13405
[ "MIT" ]
null
null
null
modules/fmongodb/fClient.py
Bym24v/FAS
efbcf606c49dd591857e0e537bc5b9f082c13405
[ "MIT" ]
null
null
null
from pymongo import MongoClient from datetime import datetime import hashlib client = MongoClient() #"mongodb://localhost:27017" db = client.FAS class FASClient: # Register def FasRegister(self, name, password): if name == "" and password == "": return False else: p...
22.75
93
0.459766
45e87dd5421c574d550d2c24fbcffb6af046259e
1,089
py
Python
LockMotor.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
1
2020-10-16T14:52:49.000Z
2020-10-16T14:52:49.000Z
LockMotor.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
null
null
null
LockMotor.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
null
null
null
""" Author: Sam Badger Date Created: March 27, 2019 Description: Simple servo controller credits to https://tutorials-raspberrypi.com/raspberry-pi-servo-motor-control/ for showing how to use a servo motor """ import RPi.GPIO as GPIO import time class LockMotor(): def __init__(self, servoPin): ...
32.029412
115
0.62259
cafc5a99af90fba1293756c3f386e3f6c3bb71a4
874
py
Python
setup.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
setup.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
setup.py
simonhodder/spark
1062e3092996f82f7bc2c852d6444c2be2a1e296
[ "MIT" ]
null
null
null
''' spark ---- Python Small Plugin Sytem ''' from setuptools import setup, find_packages setup( name='spark', version='0.1', url='https://github.com/simonhodder/spark', license='GNU V3', author='Simon Hodder', author_email='hodder.simon@gmail.com', description='Python Small Plugin System...
19.422222
62
0.564073
1b3fbffc80d7333c688951622507b63dcc29d558
437
py
Python
Python/Crawler/HTML_Crawler/bin/get_prices.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/Crawler/HTML_Crawler/bin/get_prices.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/Crawler/HTML_Crawler/bin/get_prices.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup r = requests.get("https://www.cdkeys.com/de_de/cyberpunk-2077-gog-pc") doc = BeautifulSoup(r.text, "html.parser") d = doc.find(id="product-price-3419") print(d) r = requests.get("https://www.amazon.de/dp/B07TY2KB7R/ref=cm_sw_r_wa_apa_fabc_RUj7FbND7795W?_encoding=UTF8&p...
19
114
0.736842
ca969b75505b40cbf308f60ae851bfd966f030bd
642
py
Python
tools/pythonpkg/tests/fast/pandas/test_issue_1767.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/pandas/test_issue_1767.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/pandas/test_issue_1767.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import duckdb import pandas as pd import numpy # Join from pandas not matching identical strings #1767 class TestIssue1767(object): def test_unicode_join_pandas(self, duckdb_cursor): A = pd.DataFrame({"key": ["a", "п"]}) B = pd.DataFrame({"key": ["a", ...
27.913043
91
0.570093
edb7e832aaf675325ffb3dd9f0c6aeb614c24cd4
601
py
Python
live-coding-sessions/6.2/liste.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
live-coding-sessions/6.2/liste.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
live-coding-sessions/6.2/liste.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker # Semester: Herbstsemester 2018 # Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/ # Author: Giuseppe Accaputo # Session: 6.2 # Wir beginnen mit einer leeren Liste liste = [] element = input("N...
27.318182
76
0.655574
b61bdaeb9965f7d66d07c0dc2299e04024d9f5b6
570
py
Python
src/wind-barbs/windbarbs.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/wind-barbs/windbarbs.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/wind-barbs/windbarbs.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# wind barbs import matplotlib.pyplot as plt import numpy as np x = np.linspace(-5, 5, 5) X, Y = np.meshgrid(x, x) U, V = 12 * X, 12 * Y data = [(-1.5, .5, -6, -6), (1, -1, -46, 46), (-3, -1, 11, -11), (1, 1.5, 80, 80), (0.5, 0.25, 25, 15), (-1.5, -0.5, -5, 40)] data = np.arr...
24.782609
67
0.482456
fcaad309451811147e0ea6d5e0914a858e2d7273
325
py
Python
guidelight/app/__init__.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
guidelight/app/__init__.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
guidelight/app/__init__.py
prototypefund/guidelight-website
6496baeb33675aadcd401acd00d6922f909484a4
[ "MIT" ]
null
null
null
# based on the tutorial by Miguel Grinberg # https://blog.miguelgrinberg.com/ from flask import Flask from flask_pymongo import PyMongo from .config import Config app = Flask(__name__) # TODO: is this the way to use local config files!? unsecure? app.config.from_object(Config) mongo = PyMongo(app) from app import ro...
23.214286
61
0.778462
fcc60884504c7dba34c4c652b884e6d0d4ead399
1,485
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_10_Debugging/02_errors_in_log_ausgeben/34_errors_in_log_ausgeben.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_10_Debugging/02_errors_in_log_ausgeben/34_errors_in_log_ausgeben.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_10_Debugging/02_errors_in_log_ausgeben/34_errors_in_log_ausgeben.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 34_errors_in_log_ausgeben.py # Um eine Fehlermeldung in ein log schreiben zu lassen kann man das Modul traceback importieren import traceback, re, os os.chdir(os.path.dirname(__file__)) maxl, dv= 50, 15 def output(string): print(''.center(maxl, '█')) string+=' '*(maxl) suchmuster=re.compile(r'.{'+str(max...
37.125
133
0.619529
94c5e1d5e3933986a5a2d5c3f8d55dbb2c777b96
228
py
Python
vorl1-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl1-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
vorl1-ueb2.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
# Übung/Aufgabe 2: Erstelle eine 3x3 Matrix matrix3x3 = [["x","o","x"],["o","x","o"],["x","o","x"]] for arr in matrix3x3: outputStr = "" for item in arr: outputStr = outputStr + item print (outputStr)
20.727273
55
0.552632
a205233cef39dc77db012bee52822b3d9146ba36
2,406
py
Python
Computerorietierte_Mathematik/U7/run_7_3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
Computerorietierte_Mathematik/U7/run_7_3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
Computerorietierte_Mathematik/U7/run_7_3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
__author__ = "Qianli Wang und Nazar Sopiha" __copyright__ = "Copyright (c) 2019 qiaw99" # https://github.com/qiaw99/WS2019-20/blob/master/LICENSE import os import sys import numpy as np import math class Logger(object): def __init__(self, filename="daten.txt"): self.terminal = sys.stdout self.log...
21.675676
92
0.529094
7814e20256ccdae3d6ab103f3f6775754bf8a833
2,106
py
Python
backend/hunters_log/migrations/0001_initial.py
Liannaccone/hunters-log
d8dc4656ad9231a346601c876dfb281a00261867
[ "MIT" ]
null
null
null
backend/hunters_log/migrations/0001_initial.py
Liannaccone/hunters-log
d8dc4656ad9231a346601c876dfb281a00261867
[ "MIT" ]
null
null
null
backend/hunters_log/migrations/0001_initial.py
Liannaccone/hunters-log
d8dc4656ad9231a346601c876dfb281a00261867
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2018-06-02 23:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
42.979592
137
0.58452
01f661e969e436e20a15ea379b77262a10a00458
1,048
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_random_value.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_random_value.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_random_value.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import random import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformRandomValue(unittest.TestCase): def setUp(self): self.data = { "test1": "2.5", "test2": "2.4.6.2.5", "test3": "values|array|{random.s...
25.560976
86
0.427481
17776cd9a0088ce3a28b3fdde693488d06eb201b
8,389
py
Python
tests/onegov/election_day/collections/test_searchable_archived_result_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/collections/test_searchable_archived_result_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/collections/test_searchable_archived_result_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.ballot import Vote from onegov.election_day.collections import SearchableArchivedResultCollection from onegov.election_day.models import ArchivedResult from pytest import fixture from tests.onegov.electio...
34.240816
78
0.690905
17a2f857480838b6dc1d4f0cda125c3e59330885
3,383
py
Python
tests/test_compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_compile.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """test_compile.py - unit tests for the compile-module of DHParser Author: Eckhart Arnold <arnold@badw.de> Copyright 2017 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License...
31.036697
79
0.6577
da0b9b108336637c242a916f0073f4c6c1b0f75b
5,018
py
Python
spo/spo/doctype/beratungsslot/beratungsslot.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/spo/doctype/beratungsslot/beratungsslot.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/doctype/beratungsslot/beratungsslot.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from spo.utils.payrexx import get_payment_status, create_payment from frappe.utils import get_url f...
38.015152
119
0.584496
da5d04d4c9210d47c2c60eed766c38557f933860
105
py
Python
basics/hello,name.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/hello,name.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/hello,name.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
def print_full_name(a, b): print("Hello " + str(a) + " " + str(b) + "! You just delved into python.")
52.5
78
0.580952
e5d6d12791a188375de554547baa7c5cdaa1404f
8,826
py
Python
apps/calc/tess_module/tess/helpers.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/calc/tess_module/tess/helpers.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/calc/tess_module/tess/helpers.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
''' Created on 16.11.2017 @author: stoll ''' import numpy from numpy import NaN as NaN from apps.calc.tess_module.tess import detect_peaks def findFreeSpace(FFTdata, Fdata, Finterval, level): if Finterval[0] < Fdata[0]: Finterval[0] = Fdata[0] if Finterval[1] > Fdata[-1]: Finterval[1] = Fdat...
38.373913
211
0.586449
008b3458ab64dd2c49b950f5202b0461d9db1896
5,192
py
Python
pandemie/tester/strategies/marvin2.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/strategies/marvin2.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/tester/strategies/marvin2.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
1
2020-03-28T00:02:41.000Z
2020-03-28T00:02:41.000Z
""" One of the early strategy attempts. This is outdated and not maintained. """ from pandemie.tester import AbstractStrategy from pandemie.util import operations class Marvin2(AbstractStrategy): def __init__(self, silent=False, visualize=False): super().__init__(silent=silent, visualize=visualize) ...
36.307692
110
0.525616
00c75ca933a376cc0b081b22fde1c37de44f4ceb
1,568
py
Python
extract-text.py
chris-mueller/musik-schulbuecher
6fbd23fd2b04af49fa3c865ef9626c05b48ba055
[ "MIT" ]
null
null
null
extract-text.py
chris-mueller/musik-schulbuecher
6fbd23fd2b04af49fa3c865ef9626c05b48ba055
[ "MIT" ]
null
null
null
extract-text.py
chris-mueller/musik-schulbuecher
6fbd23fd2b04af49fa3c865ef9626c05b48ba055
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse from subprocess import check_output import os import re import tempfile import textwrap tmp_dir = tempfile.mkdtemp() output_file = open('export.txt', 'w') parser = argparse.ArgumentParser() parser.add_argument("file", help="A PDF file containing text") args = parser.parse_arg...
22.4
83
0.659439
00eb063805f2974c85ced95593175e74c1220837
654
py
Python
app/gpio.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/gpio.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
app/gpio.py
openbikebox/websocket-client
50b61a70ffcff1acdc13ba69c017e671bd3f983f
[ "MIT" ]
null
null
null
# encoding: utf-8 """ openbikebox websocket-client Copyright (c) 2021, binary butterfly GmbH Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. """ import RPi.GPIO as GPIO from .config import Config class Gpio: def __init__(self): GPIO.setmode(GPIO.BCM) ...
21.8
98
0.685015
97ae968a2c6ef8ca9729753f183b6c7565cd53cb
743
py
Python
SoSe-21/Code-Vorlesungen/Wiederholung/2/Wiederholung-in.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/Wiederholung/2/Wiederholung-in.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/Wiederholung/2/Wiederholung-in.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
warenlager = {"Schrauben": 500, "Nieten": 150, "2m Stahlträger": 250 } print(warenlager) warenlager.update({"Muttern": 50}) # Hinzufügen eines neuen Elements zum Dictionary print(warenlager) warenlager.update({"Schrauben": 310}) # Ändern der Anzahl eines Elements print(warenl...
28.576923
88
0.717362
e731f5f687f806da74125d84dcb19a1e69ab728d
1,311
py
Python
catch_up.py
ramgl325/arsenz
b2c794680f4202c4fb20848ea7c6cdb06dc3d6ec
[ "Apache-2.0" ]
null
null
null
catch_up.py
ramgl325/arsenz
b2c794680f4202c4fb20848ea7c6cdb06dc3d6ec
[ "Apache-2.0" ]
null
null
null
catch_up.py
ramgl325/arsenz
b2c794680f4202c4fb20848ea7c6cdb06dc3d6ec
[ "Apache-2.0" ]
null
null
null
from pygame import * clock = time.Clock() FPS = 120 #создай окно игры window = display.set_mode((700, 500)) display.set_caption("Догонялки") background = transform.scale(image.load("background.png"),(700, 500)) window.blit(background,(0, 0)) x1 = 450 y1 = 320 x2 = 200 y2 = 100 speed = 15 game = True while game: ...
23.836364
69
0.614798
e78e2c3519987b211053ecd01b9ffa99264999ed
176
py
Python
Python/115-Linear-Algebra.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
5
2019-03-09T22:44:01.000Z
2021-09-14T00:11:38.000Z
Python/115-Linear-Algebra.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
4
2018-08-16T09:39:47.000Z
2018-09-14T17:37:07.000Z
Python/115-Linear-Algebra.py
sadikkuzu/HackerRank
2b1ed2cf41f6a5404c5b9293186f301b646b5d33
[ "Apache-2.0" ]
1
2020-06-01T23:38:35.000Z
2020-06-01T23:38:35.000Z
import numpy N = input() arr = list() for i in range(int(N)): arr.append(list(map(lambda x: float(x), input().split(' ')))) print(round(numpy.linalg.det(arr),2))
19.555556
66
0.602273
822ba4ab67793242a08175c39db30df93e1fb630
1,283
py
Python
cs/python/python_general/misc_functions/imessage_extractor.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/python/python_general/misc_functions/imessage_extractor.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/python/python_general/misc_functions/imessage_extractor.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
"""Extract messages from iMessage / the Apple Messages app.""" # %% imports import sqlite3 import pandas as pd # %% Connect to messages database # conn = sqlite3.connect("/Users/Tobias/Library/Messages/chat.db") # Above gives this error -> OperationalError: unable to open database file # Copied chat.db onto my deskto...
32.897436
128
0.727981
cf3fcbb1dfa5b004b5247bace98c77d78c068bfa
9,172
py
Python
tests/onegov/org/test_views_pages.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_pages.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_views_pages.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from freezegun import freeze_time from tests.onegov.org.common import edit_bar_links from tests.shared.utils import get_meta, create_image, open_in_browser from webtest import Upload def check_breadcrumbs(page, excluded): # check the breadcrumbs breadcrumbs = page.pyquery('ul.breadcrumbs a') for b in brea...
32.295775
80
0.665068
5179de4c51364e4d81df0c3bd8bcbab5510cfef1
22,001
pyde
Python
School/G11/ShockBlast/ShockBlast.pyde
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
School/G11/ShockBlast/ShockBlast.pyde
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
School/G11/ShockBlast/ShockBlast.pyde
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
# ShockBlast - An ICS3U Summative # Took me a few weeks to get this done! # It's a top down shooter where you need to fight against a horde of zombies. # Waves, weapon selection, sound effects, and more! # Made by Makan D # --------------------------------------------------------------------------- # Audio library add...
36.668333
156
0.55302
5c99bd31deadef0ec88895225182e5c65eff2bcc
2,121
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/LocalCommand.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/LocalCommand.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/LocalCommand.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import logging from subprocess import Popen, PIPE from time import sleep from mongodb_consistent_backup.Errors import Error, OperationError class LocalCommand: def __init__(self, command, command_flags=None, verbose=False): if command_flags is None: command_flags = [] self.command ...
33.140625
113
0.558227
5cd11884cc858c134debeaaaa164de99b7fd2e91
5,840
py
Python
src/pfun/list.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/list.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/list.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
import builtins from functools import reduce from typing import Callable, Iterable, Optional, Tuple, TypeVar, cast from .functions import curry from .monad import Monad, filter_m_, map_m_, sequence_ A = TypeVar('A') B = TypeVar('B') class List(Monad, Tuple[A, ...]): def __repr__(self): return f"List({s...
25.614035
71
0.51387
7ab4c8791c59958100fb115bd3c2218270c79481
653
py
Python
conf.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
conf.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
conf.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
USER = '~pi' # USER = '~hhoegl' PLATFORM = 'rpi' # PLATFORM = 'pc' # 'pc', 'rpi' import os homedir = os.path.expanduser(USER) IPC_FLAG = True NCOURTS = 7 TSGRAIN_LOGGER = "TSGRain-Logger" # manual rain duration if PLATFORM == 'pc': SEC_PER_MIN = 1 # for testing on pc else: SEC_PER_MIN = 60 # for regu...
20.40625
74
0.69219
8f9ebec2abf3045a780bb5eaccf18853c6d0d31a
246
py
Python
Algorithms/Sorting/InsertionSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/InsertionSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/InsertionSort3.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 N = int(raw_input()) a = map(int, raw_input().split()) count = 0 for i in xrange(1, N): x = a[i] j = i while j > 0 and a[j-1] > x: a[j] = a[j-1] j -= 1 count += 1 a[j] = x print count
13.666667
33
0.443089
8909274e6bcaa027aa52bd8a66a9f100ce4052e0
1,016
py
Python
preproces.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
preproces.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
preproces.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
import csv from collections import Counter # 整理数据 fo = open('data.csv','r',encoding='utf8') reader = csv.reader(fo) data = [] i=1 while True: try: line = next(reader) usr = line[0] items = next(reader) actions = next(reader) targets = next(reader) acti...
26.051282
86
0.567913
8f3bb400aba6308e6b582d415a7ca706a77b20ab
601
py
Python
10.3389/fgene.2020.567262/local/scripts/create_gene_chr_list.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/create_gene_chr_list.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/create_gene_chr_list.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import os import sys import re import argparse # # ptyhon $this --gff camara/genome.modified.gff # def proc_main(gff_path): gene2chr = {} with open(gff_path, 'r') as fh: for buf in fh: r = buf.split('\t') if r[2] == 'gene': gene2chr[r[8][3:14]] = r[0] ...
21.464286
73
0.562396
a4205867815510835f68cd21c47ba9bc72745396
2,353
py
Python
scriptsForPreprocessing/convert_dataset_to_coco_format.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
scriptsForPreprocessing/convert_dataset_to_coco_format.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
scriptsForPreprocessing/convert_dataset_to_coco_format.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import json import numpy as np from pycocotools import mask from skimage import measure import os, json import cv2 import torch, torchvision path_new_dataset = r'path/to/dataset' os.makedirs(path_new_dataset, exist_ok=True) for folder_check, count_img in zip(['val', 'train'], (30, 200)): current_folder_new = os.p...
34.101449
107
0.569911
f12bd22c52d903e52d8d9f808ca8893e6ce72d72
1,105
py
Python
SchoolSampleProject/SchoolApp/migrations/0001_initial.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/migrations/0001_initial.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/migrations/0001_initial.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-07 09:15 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Schools'...
32.5
123
0.599095
f16003f4f43f61a73a4047d63543ab6aaafacfa2
1,920
py
Python
telegrambot/src/corona_assistent_bot/bot.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
1
2020-03-20T22:05:14.000Z
2020-03-20T22:05:14.000Z
telegrambot/src/corona_assistent_bot/bot.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
6
2020-03-21T12:22:36.000Z
2022-02-27T01:33:33.000Z
telegrambot/src/corona_assistent_bot/bot.py
LittleKita/CoronaAssistent
1e0862d94bdc509aa468921ee7b056ec59e6f472
[ "MIT" ]
null
null
null
import logging import os from sqlalchemy import create_engine, delete from sqlalchemy.orm import sessionmaker from telegram.ext import CommandHandler, Filters, MessageHandler, Updater from .model import ReceivedMessage, SubscribedChat, TableBase logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(...
27.826087
82
0.706771
7418936e64a5093d1eaffcaf92e3aef1179a77f9
44
py
Python
crawlab/constants/file.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
crawlab/constants/file.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
crawlab/constants/file.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
class FileType: FILE = 1 FOLDER = 2
11
15
0.568182
24df486baa478a0aaa6fc4dde5627d6338f91646
826
py
Python
tshark_windows.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
tshark_windows.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
tshark_windows.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
#!/usr/bin/python # example: tshark -R (gsm_map.dialogue.destinationReference) -w 124.cap -r \\10.9.29.108\FSRoot\dp10_data\GuangDongYD\GsmMap_GsmCap_E1\xili_data\124.cap import os # windows filter = 's1ap' src_dir = '\\\\10.9.29.100\\FSroot\\DX80\\dp10_data\\sc_lte\\ip_pure' dst_dir = '\\\\10.9.29.100\...
28.482759
153
0.638015
3b925c016a6d46c7146eedd5ac242a409a610e7d
39,285
py
Python
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AtlassianConfluenceCloud/Integrations/AtlassianConfluenceCloud/AtlassianConfluenceCloud_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io import pytest from CommonServerPython import * from AtlassianConfluenceCloud import Client, URL_SUFFIX, MESSAGES from test_data import input_data BASE_URL = "https://dummy.atlassian.com" client = Client(BASE_URL, True, False, headers={"Accept": "application/json"}, auth=("user", "user123")) def util_load...
40.168712
122
0.718799
8e9ab06b9b8c78a6c9c5ae3189377f0a8a062861
492
py
Python
pacman-arch/test/pacman/tests/depconflict120.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/depconflict120.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/depconflict120.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "target vs db conflict will disappear after upgrade" sp1 = pmpkg("pkg1") sp1.conflicts = ["imaginary"] self.addpkg2db("sync", sp1); sp2 = pmpkg("pkg2", "1.0-2") self.addpkg2db("sync", sp2) lp = pmpkg("pkg2", "1.0-1") lp.provides = ["imaginary"] self.addpkg2db("local", lp) self.args = "-S %s" % " ...
24.6
71
0.676829
8eb45c48e7ea7f2a300e5f920149c4979088f42a
614
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/update_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doc('crm', 'doctype', 'opportunity') frappe.reload_doc('crm', 'doctype', 'opportunity_item') # all exist...
40.933333
94
0.767101
5c2ccc724ab1e953370e6e0190246168203e96f1
295
py
Python
python/encoding/utils.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/utils.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/encoding/utils.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from math import ceil, log def n_possible_values(nbits: int) -> int: return 2 ** nbits def n_bits_required(nvalues: int) -> int: return ceil(log(nvalues) / log(2)) if __name__ == "__main__": print(n_bits_required(128)) # 7 print(n_possible_values(7)) # 128
19.666667
42
0.633898
30b7283efb420add9e21bc862f3f9b49f1f06f38
1,520
py
Python
Assembler/registers.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
1
2019-01-28T01:53:20.000Z
2019-01-28T01:53:20.000Z
Assembler/registers.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
Assembler/registers.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
import re import exceptions as error def set_registers_in_binary_string(command, binary_string): registernumbers_binary = get_registers_binary_strings(command) i = 0 for x in range(5, 5 + len(registernumbers_binary) * 6, 6): binary_string = binary_string[:x] + registernumbers_binary[i] + binary_str...
46.060606
137
0.717763