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
5a2202d5bc419191ed475f08ccef430db655aede
7,140
py
Python
package/stbx.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
package/stbx.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
package/stbx.py
paintdog/stbx
8e3b5355f261e72364e2cd2e6106e5e748266d62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime def get_daten_fuers_kursheft(startdatum, enddatum, kurstage): wochentage = ["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"] datum = startdatum while datum <= enddatum: ...
32.454545
134
0.564286
5a41b3179f13b1bfe550d5c2d35151c81118ad7f
603
py
Python
python/coursera_python/MICHIGAN/DATABASES/SCRAP/testdb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/DATABASES/SCRAP/testdb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/DATABASES/SCRAP/testdb.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import sqlite3 conn = sqlite3.connect('test.sqlite') cur = conn.cursor() # some commands cur.execute(''' CREATE TABLE IF NOT EXISTS Text ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, name TEXT UNIQUE ); ''') hand = open('a.txt') #list_=[] #sum=0 for line in hand: line = line.rstrip() ...
18.272727
71
0.595357
654cb9c144bdcd765d98bea5ef0700567c536d2d
5,341
py
Python
migrations/versions/a83799f95d33_.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
migrations/versions/a83799f95d33_.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
migrations/versions/a83799f95d33_.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
"""empty message Revision ID: a83799f95d33 Revises: Create Date: 2017-02-10 15:56:24.418000 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'a83799f95d33' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
43.072581
95
0.671223
336898a2ac1194e1b752096cf77317142755cfdf
4,651
py
Python
device/startstopbutton/src/app.py
Phape/smart-security
d6a931fa01bc60d9c0c39029a41d609fbab19bf5
[ "CC-BY-4.0" ]
null
null
null
device/startstopbutton/src/app.py
Phape/smart-security
d6a931fa01bc60d9c0c39029a41d609fbab19bf5
[ "CC-BY-4.0" ]
9
2021-06-25T13:19:17.000Z
2021-07-04T14:06:38.000Z
device/startstopbutton/src/app.py
Phape/smart-security
d6a931fa01bc60d9c0c39029a41d609fbab19bf5
[ "CC-BY-4.0" ]
null
null
null
#! /bin/env python import redis, RPi.GPIO as GPIO import configparser, logging, os, time, sys REDIS_ALERT_SYSTEM_ACTIVE = "system:active" REDIS_ALERT_ENABLED = "alert:enabled" class App: """ Hilfsprogramm, das einen am Raspberry Pi angeschlossenen Button überwacht, mit dem die periodischen Messungen ausg...
34.451852
115
0.614492
f0875ab0426ac49afde8be199551e2207b691cd4
6,999
py
Python
official/cv/yolov5/src/yolov5_backbone.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/yolov5/src/yolov5_backbone.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/yolov5/src/yolov5_backbone.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
# 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...
34.648515
119
0.576368
f0a622146bd70fef436f6b13701d3ecc1def8039
3,499
py
Python
pycsw/pycsw/core/log.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
118
2015-01-07T00:24:09.000Z
2022-03-19T15:35:43.000Z
pycsw/pycsw/core/log.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
319
2015-01-06T23:51:46.000Z
2022-03-20T11:22:57.000Z
pycsw/pycsw/core/log.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
113
2015-01-07T00:42:23.000Z
2022-02-19T18:05:08.000Z
# -*- coding: utf-8 -*- # ================================================================= # # Authors: Tom Kralidis <tomkralidis@gmail.com> # # Copyright (c) 2015 Tom Kralidis # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the ...
34.643564
68
0.635039
6803e75ff79f3080a3e599473eafbd0a4898a486
1,324
py
Python
extender/detours/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
extender/detours/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
extender/detours/conanfile.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import os import glob import shutil from conans import ConanFile, CMake, MSBuild, tools # To add this to the local cache: # conan export . detours/4.0.1@microsoft/stable class DetoursConanfile(ConanFile): settings = "os", "compiler", "build_type", "arch" build_requires = "cmake/3.22.0" exports_sources = "...
32.292683
98
0.620846
681b06d5c3f417d43593e13e02767c3c3b8eff24
1,499
py
Python
backend/apps/iamstudent/migrations/0003_auto_20200330_0020.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/iamstudent/migrations/0003_auto_20200330_0020.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/iamstudent/migrations/0003_auto_20200330_0020.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-30 00:20 import datetime from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('ineedstudent', '0001_initial'), ('iamstudent', '0002_auto_20200329_1618'), ] op...
42.828571
206
0.625751
763a45b14f903511f24a7c1af9711e54739a737c
8,554
py
Python
research/cv/PSPNet/src/model/pspnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/PSPNet/src/model/pspnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/PSPNet/src/model/pspnet.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.941176
116
0.581365
4f6d532e7a31185655a1cfbdbaeca50d62ac5b62
5,728
py
Python
Fortgeschrittenenpraktikum/Protokolle/V21_Optisches_Pumpen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V21_Optisches_Pumpen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V21_Optisches_Pumpen/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import numpy as np from scipy.stats import sem import scipy.constants as const from uncertainties import ufloat import uncertainties.unumpy as unp from uncertainties.unumpy import (nominal_values as noms, std_devs as stds) import matplotlib.pyplot as plt from scipy.optimize import curve_fit import scipy.misc from pint ...
36.954839
155
0.6875
96db0dc6143c60bcb89e83c486bc47d76d128c0c
1,911
py
Python
Fortgeschrittenenpraktikum/Protokolle/V60_Diodenlaser/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2019-03-07T08:55:36.000Z
2019-04-22T18:13:03.000Z
Fortgeschrittenenpraktikum/Protokolle/V60_Diodenlaser/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
null
null
null
Fortgeschrittenenpraktikum/Protokolle/V60_Diodenlaser/Python/auswertung.py
smjhnits/Praktikum
92c9df3ee7dfa2417f464036d18ac33b70765fdd
[ "MIT" ]
2
2017-10-27T13:26:43.000Z
2018-01-13T09:12:24.000Z
import pandas as pd import matplotlib.pyplot as plt import numpy as np # Data threshold_lase = 3.34 # V threshold_no_lase = 3.32 # V R = 100 # Ohm I_lase = threshold_lase / R I_no_lase = threshold_no_lase / R print(f'Threshold lase = {I_lase}\n\nThreshold no lase = {I_no_lase}\n') # Rb spectrum df_1 = pd.read_cs...
27.695652
102
0.695971
8c5243354c85ffe1df06471f5c4273df45e92a04
608
py
Python
SchoolSampleProject/SchoolApp/models.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/models.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
SchoolSampleProject/SchoolApp/models.py
ittigorn-tra/school-sample-project
80c13d3cf63c12c38ab0de12dd9665147c8e0976
[ "MIT" ]
null
null
null
from django.core.validators import MinValueValidator from django.db import models class Schools(models.Model): school_id = models.AutoField(primary_key=True) school_name = models.CharField(max_length=20) max_student = models.IntegerField( default=50, validators=[ MinValueValida...
28.952381
68
0.723684
8c83343d2e0a5bf9f53dcf0da384e9c2a57ece47
26,567
py
Python
tests/test_executor.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/test_executor.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/test_executor.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 -*- # pylint: disable=no-self-use,duplicate-code import datetime import os import shutil from datetime import timezone, timedelta from typing import Optional, Dict from unittest.mock import MagicMock from unittest.mock import patch import freezegun import pytest from owlmixin ...
34.324289
98
0.398013
8c8cbea6fb53d4e7f09732fc0fbdca96ee91f6c8
416
py
Python
essensplan/wochenausgabe.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
essensplan/wochenausgabe.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
essensplan/wochenausgabe.py
jkopka/Essensplan
a7abb2f1c4892f89aa19b002dd334cdd619fb43a
[ "MIT" ]
null
null
null
from datetime import date from datetime import time from datetime import datetime from datetime import timedelta # Monday = 0 # Tuesday = 1 # Wednesday = 2 # Thursday = 3 # Friday = 4 # Saturday = 5 # Sunday = 6 def getMonday (): today = date.today().weekday() dateMonday = date.today()-timedelta(days=today) ...
17.333333
51
0.680288
5073abd4dea41603bb69258b9a646b42d0166947
1,431
py
Python
backend/python/django/rest/blog/handlers.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:07:54.000Z
2021-02-08T17:07:54.000Z
backend/python/django/rest/blog/handlers.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
null
null
null
backend/python/django/rest/blog/handlers.py
Untanky/bachelor-thesis
01b3c00765006ab6b140607e426533a7eed1508b
[ "MIT" ]
1
2021-02-08T17:08:01.000Z
2021-02-08T17:08:01.000Z
from rest_framework.response import Response from serializer import PostSerializer class PostController: def __init__(self, postDAO): self.postDAO = postDAO def fetchAllPosts(self, request): posts = self.postDAO.findAll() serializer = PostSerializer(posts, many=True) return Res...
32.522727
62
0.59399
50edc4be2c011738218749a70df504aafbd78941
4,558
py
Python
src/socket_.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
src/socket_.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
src/socket_.py
yunyuyuan/wuziqi-back
448632e4eee81f411564e2e9199fb603029e8008
[ "MIT" ]
null
null
null
import time from flask import session from flask_socketio import SocketIO, join_room, emit, leave_room, close_room from src import app, tables, find_table, check_data, is_player, is_winner, lock, dedicate_game_end socket_io = SocketIO(app, cors_allowed_origins='*') socket_io.background_started = False @socket_io.o...
30.18543
98
0.539052
0fdec54f41baee6ddfb96d54c7097f26fe91687d
1,095
py
Python
python/unittest/mock/medium/03_speccing/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/03_speccing/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/unittest/mock/medium/03_speccing/test_worker.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from unittest import TestCase, expectedFailure, mock from worker import Helper, Worker class TestWorker(TestCase): def test_patching_class(self): # this test will give a false positive # there is not `get_path` method but we've mocked it with mock.patch("worker.Helper") as MockHe...
42.115385
72
0.652055
ba0272dbc34b406c21477d51691933627efa5487
22,878
py
Python
src/apps/FLASHDeconvViewer.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-26T16:16:14.000Z
2020-05-26T16:16:14.000Z
src/apps/FLASHDeconvViewer.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
null
null
null
src/apps/FLASHDeconvViewer.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-16T20:09:17.000Z
2020-05-16T20:09:17.000Z
import sys import os from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, \ QHBoxLayout, QWidget, QMessageBox, QPushButton, \ QLabel, QAction, QFileDialog, QTableView, QSplitter, \ QDialog, QToolButton, QLineEdit, QRadioButton, QGroupBox,\ QFormLayout, QDialogButtonBox fro...
36.84058
124
0.626147
d71d47f525d9faff65e250d3f5997424d8b099df
3,345
py
Python
rbac/server/db/relationships_query.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/server/db/relationships_query.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/server/db/relationships_query.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
33.45
80
0.642152
ad12ba90b2d71c233961c6795bae9750330decdd
2,893
py
Python
src/test/tests/operators/displace.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/displace.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/operators/displace.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: displace.py # # Tests: mesh - 2D/3D rectilinear, single domain. # 3D unstructured, single domain. # 2D/3D curvilinear, single domain. # ...
22.426357
78
0.667128
a8ef512c1bf38eaa1f8aa66dadfca477965d72a4
1,516
py
Python
insomniac/action_runners/actions_runners_manager.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
533
2020-06-01T10:40:11.000Z
2022-03-29T17:05:50.000Z
insomniac/action_runners/actions_runners_manager.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
399
2020-06-01T22:01:55.000Z
2022-03-29T20:39:29.000Z
insomniac/action_runners/actions_runners_manager.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
166
2020-06-01T21:51:52.000Z
2022-03-12T14:14:44.000Z
from abc import ABC from insomniac.action_runners import * from insomniac.utils import * class ActionRunnersManager(ABC): def __init__(self): self.action_runners = {} def get_actions_args(self): actions_args = {} for key, action_runner in self.action_runners.items(): for...
30.938776
118
0.653694
0f16e218a61bbc4acb8fad2e464ab5729dfac231
4,633
py
Python
official/cv/yolov5/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/yolov5/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/yolov5/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.939655
116
0.68746
0f557076d90b0bda4869f65d862b02ef10f0258a
483
py
Python
___Python/Jonas/Python/p03_lambda/m05_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p03_lambda/m05_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Jonas/Python/p03_lambda/m05_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
celsius = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3,] #Durchschinttstemperatur in Bielefed nach Monaten in C def mindestens15(temperatur): return temperatur >= 15 def zwischen5und10 (temperatur): return 5 <= temperatur and temperatur <= 10 print(list(filter(lambda temperatur:...
37.153846
132
0.693582
0e6698076f432b849d874463b1a7a133dd8628e2
1,542
py
Python
api.py
Tarek1337/Dashboard-api
4feb4c0c55b8a1cd60eab5acd0a4f52d93fb7961
[ "MIT" ]
null
null
null
api.py
Tarek1337/Dashboard-api
4feb4c0c55b8a1cd60eab5acd0a4f52d93fb7961
[ "MIT" ]
null
null
null
api.py
Tarek1337/Dashboard-api
4feb4c0c55b8a1cd60eab5acd0a4f52d93fb7961
[ "MIT" ]
null
null
null
import json from datetime import timedelta from aiohttp import client from fastapi import FastAPI from starlette.middleware.cors import CORSMiddleware from starlette.middleware.sessions import SessionMiddleware from starlette.middleware.trustedhost import TrustedHostMiddleware from Utils import Configuration, Redis ...
36.714286
120
0.774319
7ec2d6c45cea45434083fd08f176d08270b47b21
7,552
py
Python
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
JOB_TEMPLATE_LAUNCH_RES = { "id": 1, "type": "job", "url": "/api/example", "created": "2020-12-29T14:38:47.792496Z", "modified": "2020-12-29T14:38:47.889460Z", "name": "job example", "description": "", "job_type": "run", "inventory": 1, "project": 4, "playbook": "example.yml"...
28.284644
72
0.478814
70b09dd99fa2a93544645a08a4437b024a8fb7ba
4,603
py
Python
src/server/db/ProjecttypeMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/ProjecttypeMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/db/ProjecttypeMapper.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
from server.bo.Projecttype import Projecttype from server.db.Mapper import Mapper class ProjecttypeMapper(Mapper): """Mapper class that maps projecttype objects to a relational database. database. For this a set of methods is made available, with methods, which can be used to search for, create, modify an...
31.312925
131
0.618944
cb35c621621e048a947ff4279b61527afa5fe579
3,074
py
Python
main.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
main.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
main.py
KrypticSilver/maths-calculator
d830d28ab07ee8a8a7f30d19d2f1561345e45310
[ "MIT" ]
null
null
null
from time import sleep line_break = "\n" + ("=" * 51) + "\n" class Matrix: def __init__(self): self.rows = 0 self.columns = 0 def get_rows(self): print(line_break) while True: rows = input("How many rows would you like your matrix to have?: ") rows_co...
28.462963
114
0.569616
fae980daad0a3159a11fbe3f90e59e2019771c9f
8,304
py
Python
user_sync/connector/directory_csv.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
3
2017-03-15T16:34:25.000Z
2017-04-07T12:10:22.000Z
user_sync/connector/directory_csv.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
78
2019-04-18T17:20:32.000Z
2022-02-23T14:19:54.000Z
user_sync/connector/directory_csv.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
18
2019-07-01T19:39:34.000Z
2021-06-06T10:56:41.000Z
# Copyright (c) 2016-2017 Adobe Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
40.705882
108
0.650289
ea1e4432cee4fa8aac725a49cc56a3ba0048f2cb
461
py
Python
project/dbtypes.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/dbtypes.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/dbtypes.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from sqlalchemy import Integer from sqlalchemy.types import TypeDecorator class IntegerEnum(TypeDecorator): impl = Integer def __init__(self, enumtype, *args, **kwargs): super().__init__(*args, **kwargs) self._enumtype = enumtype def process_bind_param(self, value, dialect): retu...
24.263158
51
0.672451
a4c5e0af749b43085d163343dc73c63b296a989c
8,738
py
Python
python/GenAppearance.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
python/GenAppearance.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
5
2021-08-24T11:09:54.000Z
2021-08-24T21:14:15.000Z
python/GenAppearance.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
from Whitespace import ws from Expression import Expression import re class AppearanceGenerator: @staticmethod def generate_build_appearance(data): result = "" bg = AppearanceGenerator.gen_color(data, data.appearance["background"]) result += ws(2) + "background = " + bg + ";\n" ...
51.4
126
0.556649
a4de714b9ffffe3c3b3a4033e41b9b62389d65ae
929
py
Python
api/endpoints/geo.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
api/endpoints/geo.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
api/endpoints/geo.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # Geo-Endpoint # © 2020 Tobias Höpp # Include dependencies from flask import request, jsonify # Include modules from main import api from models.districts import districts from utils.coloring import colors import json # Endpoint definition @api.route("/data/geo/lk", methods=...
29.03125
122
0.588805
1034dd59181730e22f9400aeea0f88f794c9fecf
543
py
Python
apps/multivers/migrations/0007_auto_20170203_1408.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/multivers/migrations/0007_auto_20170203_1408.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/multivers/migrations/0007_auto_20170203_1408.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-03 13:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('multivers', '0006_auto_20170203_1408'), ] operations = [ migrations.AlterFi...
25.857143
133
0.624309
107d58a4748b60a62c6ef483ed0e9b62ab2220ee
188
py
Python
packages/watchmen-utilities/src/watchmen_utilities/json_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-utilities/src/watchmen_utilities/json_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-utilities/src/watchmen_utilities/json_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from json import dumps from typing import Any from watchmen_utilities.datetime_helper import DateTimeEncoder def serialize_to_json(o: Any) -> str: return dumps(o, cls=DateTimeEncoder)
20.888889
62
0.81383
5e3bd61f41bb684e82eefa8d77dabd705a9ee557
1,182
py
Python
rasa/nlu/tokenizers/lm_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2021-01-04T23:27:04.000Z
2021-01-04T23:27:04.000Z
rasa/nlu/tokenizers/lm_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/nlu/tokenizers/lm_tokenizer.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2020-11-21T01:26:43.000Z
2020-11-21T01:26:43.000Z
from typing import Text, List, Any, Dict, Type from rasa.nlu.tokenizers.tokenizer import Token, Tokenizer from rasa.nlu.components import Component from rasa.nlu.utils.hugging_face.hf_transformers import HFTransformersNLP from rasa.shared.nlu.training_data.message import Message from rasa.nlu.constants import LANGUAG...
32.833333
76
0.728426
dc1c510af508f33a77c149a35b456de8c810b9a4
941
py
Python
Produkte/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Produkte/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Produkte/urls.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
from django.conf.urls import url, include from . import views, models from django.views.generic import TemplateView, ListView from Grundgeruest.views import TemplateMitMenue app_name = 'Produkte' urlpatterns = [ url('^$', TemplateMitMenue.as_view(template_name='Produkte/warenkorb.html'), ...
37.64
76
0.660999
dca86da7e20f9325bfbf9fdda5ad5b167760e5a5
466
py
Python
admin-tutorial/AdminDateHierarchy/simple_relate/migrations/0003_articlemodel_slug.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
admin-tutorial/AdminDateHierarchy/simple_relate/migrations/0003_articlemodel_slug.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
admin-tutorial/AdminDateHierarchy/simple_relate/migrations/0003_articlemodel_slug.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
# Generated by Django 3.1.7 on 2021-03-22 23:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('simple_relate', '0002_auto_20210323_0755'), ] operations = [ migrations.AddField( model_name='articlemodel', name='s...
23.3
86
0.620172
7609280dec47378f5ccce2328922d65090c24cf5
8,835
py
Python
deprecated/examples/dam/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/dam/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/dam/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
# Copyright (c) 2020 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 app...
38.246753
95
0.565025
8033469217c9eef750adac24cc3e2d95323df289
7,232
py
Python
graph_network/util/graph_network_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
6
2019-03-20T03:25:25.000Z
2019-08-22T07:14:31.000Z
graph_network/util/graph_network_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
1
2018-04-23T17:39:36.000Z
2019-03-01T06:13:48.000Z
graph_network/util/graph_network_util.py
stevezheng23/graph_network_tf
b48a43453c2731f253bfe5a61e0b6339f4fc9f99
[ "Apache-2.0" ]
1
2019-03-26T07:56:26.000Z
2019-03-26T07:56:26.000Z
import numpy as np import tensorflow as tf from util.default_util import * __all__ = ["create_variable_initializer", "create_weight_regularizer", "create_activation_function", "softmax_with_mask", "generate_masked_data", "generate_onehot_label", "generate_multinomial", "align_sequence", "reverse...
41.803468
113
0.661366
9857415dd35779f326c4a6ef26c8d6b9df5fef9a
1,084
py
Python
euler-43.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-43.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-43.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
from itertools import permutations delitelji = {0:2,1:3,2:5,3:7,4:11,5:13,6:17} def euler_43(): stevila = [] l = list(permutations(range(0, 10))) p = [] for x in l: stevilo = 0 i = 1000000000 for y in x: stevilo += y * i i //= 10 p.ap...
24.088889
45
0.371771
12352c6e32b5640fe7a5e845790dfde25a4d450e
572
py
Python
tests/test_001_admin.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/tests/test_001_admin.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/tests/test_001_admin.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 class TestAdmin(MyTestCase): """ Setup and Teardown functions are specified in MyTestCase """ # Tests def test_login_superuser(self): """ This is a "positive" Systemtest as Blac...
23.833333
98
0.603147
c3ec5243de717d8110f1d10bb88bda30e7f60bbd
11,892
py
Python
CharakterRuestungen.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
CharakterRuestungen.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
CharakterRuestungen.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'CharakterRuestungen.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import ...
56.09434
144
0.718298
c3f28010e1dd0ad8198589bf42c63abec8bb9b0e
15,824
py
Python
research/cv/SE_ResNeXt50/src/senet_ms.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/SE_ResNeXt50/src/senet_ms.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/SE_ResNeXt50/src/senet_ms.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
38.31477
115
0.593908
9c8ed95735e0f8a7d81202eee68248bbb614fbff
800
py
Python
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MicrosoftGraphDeviceManagement/Integrations/MicrosoftGraphDeviceManagement/MicrosoftGraphDeviceManagement_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import json from CommonServerPython import DemistoException from MicrosoftGraphDeviceManagement import build_device_object, try_parse_integer with open('test_data/raw_device.json', 'r') as json_file: data: dict = json.load(json_file) raw_device = data.get('value') with open('test_data/device_hr....
30.769231
81
0.74
d332450a03896097bac365fdfec4965b9ceff13a
559
py
Python
src/speech_utils.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
null
null
null
src/speech_utils.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
2
2021-05-08T03:57:45.000Z
2021-09-01T00:50:03.000Z
src/speech_utils.py
muhammedtiftikci/Proje-B
50af3462d90492e1d50141691bb4a11bd10967ce
[ "MIT" ]
1
2020-10-24T16:12:46.000Z
2020-10-24T16:12:46.000Z
# -*- coding: utf-8 -*- # pip install speechrecognition # pip install pocketsphinx # pip install pyaudio import speech_recognition as sr def listen(): r = sr.Recognizer() with sr.Microphone(device_index=2) as mic: print("Dinleniyor...") audio = r.listen(mic) print("Dinleme işlemi t...
20.703704
74
0.610018
6ca3def4166b0548c8ccbe00f88d48ca90505c1b
23,837
py
Python
examples/XML/XML_W3C_SPECParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/XML/XML_W3C_SPECParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/XML/XML_W3C_SPECParser.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 ####################################################################### # # SYMBOLS SECTION - Can be edited. Changes will be preserved. # ####################################################################### import collections from functools import partial import os import sys try: scri...
37.129283
409
0.60964
9fba149720190f9f9e1e2d4c88fb25516e383d40
1,541
py
Python
740/Fcat_740_dp.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
740/Fcat_740_dp.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
740/Fcat_740_dp.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def deleteAndEarn(self, nums: List[int]) -> int: int_count = defaultdict(int) for num in nums: int_count[num] += 1 dp = [] num_keys = sorted(int_count.keys()) if len(num_keys) == 1: ...
40.552632
102
0.512654
2c51db4cc35da1cde1279287bb27abeb60a9f4fa
1,188
py
Python
build/pandoc-svg2pdf.py
phiresky/masters-thesis
3c0b9b3e46a7f1a90a4d212f23f9742038bab044
[ "CC-BY-4.0" ]
2
2021-09-06T11:19:28.000Z
2021-09-06T12:38:21.000Z
build/pandoc-svg2pdf.py
phiresky/masters-thesis
3c0b9b3e46a7f1a90a4d212f23f9742038bab044
[ "CC-BY-4.0" ]
null
null
null
build/pandoc-svg2pdf.py
phiresky/masters-thesis
3c0b9b3e46a7f1a90a4d212f23f9742038bab044
[ "CC-BY-4.0" ]
2
2021-10-18T18:52:14.000Z
2021-10-30T13:20:52.000Z
#! /usr/bin/env python """ Pandoc filter to convert svg files to pdf as suggested at: https://github.com/jgm/pandoc/issues/265#issuecomment-27317316 """ import subprocess import os import sys from pandocfilters import toJSONFilter, Image from pathlib import Path from urllib.parse import unquote def svg_to_any(key, va...
36
111
0.61532
e2db8d362a26ad36b5c2c48b280ed4ee952ad6f6
2,708
py
Python
zugdaten-lambda.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
zugdaten-lambda.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
zugdaten-lambda.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
""" This script aggregates zugdata on a daily basis and uploads it in /live/aggdata """ import os import re import pandas as pd from datetime import datetime # compatibility with ipython os.chdir(os.path.dirname(__file__)) import json import boto3 from pathlib import Path import geopandas.tools from shapely.geometry im...
35.168831
124
0.710487
b378f662bc2f3a6d4a5fc0211c5be10e40a101b2
1,056
py
Python
tests/test_access.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/test_access.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/test_access.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_has_admin_unit_member_role(client, app, db, seeder): owner_id, admin_unit_id, member_id = seeder.setup_base_event_verifier() with app.app_context(): from project.access import has_admin_unit_member_role from project.models import AdminUnitMember member = AdminUnitMember.query....
36.413793
83
0.706439
45946864166e8a96842245f4c320f37f769ed1cc
761
py
Python
bike_lock_spinner.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
2
2015-09-16T18:37:41.000Z
2015-09-24T18:14:05.000Z
bike_lock_spinner.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
null
null
null
bike_lock_spinner.py
kilbyjmichael/BikeLock
ecb32ee622d2cafaa6b4cd81634541f373f6d66f
[ "MIT" ]
null
null
null
#!/usr/bin/python '''Shows what the spinner looks like when a certain word is shown''' bike_lock_c1 = ['d', 'm', 'r', 'f', 'b', 'l', 'p', 'w', 's', 't'] bike_lock_c2 = ['a', 'i', 'o', 'l', 'e', 'h', 'w', 'r', 'y', 'u'] bike_lock_c3 = ['n', 's', 'k', 'o', 'a', 'l', 'e', 'r', 'm', 't'] bike_lock_c4 = ['g', 'k', ...
28.185185
76
0.542707
2fda83b90774e14e9973460602444573aa9a1c85
3,105
py
Python
src/lecture2/test_softmax/main.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture2/test_softmax/main.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture2/test_softmax/main.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
import os import configparser import argparse # local dep import train_softmax exp_name_list = ["set_number","batch_size","lr","weight_decay","line_search","one_frame",""] def set_config(): #read config file config = configparser.ConfigParser() config.readfp(open('config.ini')) ipath = con...
37.409639
93
0.6438
2ff3089a3433ef646551dd10fc62d8c9a06f3912
126
py
Python
python/python_backup/PRAC_PYTHON/10_append.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/10_append.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/10_append.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def fib2(n): result =[] a,b=0,1 while a<n: result.append(a) a,b=b,a+b return result f100=fib2(100) print(f100)
14
19
0.595238
4429e825a87802e748efa6b427e299eb0f8bc2f3
19,177
py
Python
year_2/prog_base_sem1_cw/app/models.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/prog_base_sem1_cw/app/models.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/prog_base_sem1_cw/app/models.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
import os from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import current_app, url_for from flask_login import UserMixin, AnonymousUserMixin from . import db, login_manager from .exce...
33.063793
100
0.607081
928dc4c963616301b57687204c708197f174e667
694
py
Python
exercises/fr/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_12_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( len(doc1.ents) == 2 and len(doc2.ents) == 2 and len(doc3.ents) == 2 ), "Attendu deux entités pour tous les exemples" assert any( e.label_ == "PER" and e.text == "PewDiePie" for e in doc2.ents ), "As-tu utilisé le label pour PER correctement ?" assert any(...
43.375
77
0.619597
2bb89110cae3dffb0fbc9deb90f9a650d9a30341
2,013
py
Python
engine/Collection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Collection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Collection.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
from engine.Pool import Pool from engine.Loader import Loader class Collection: def __init__(self, path = ""): self.pools = [] self.debug = False if path != "": self.load(path) def append(self, p=Pool()): self.pools.append(p) def parse(self, lines=[]): ...
29.602941
72
0.459016
a60df6e851f27f00ee8ef400dbfb4af8c6d9774f
1,586
py
Python
数据结构/NowCode/14_MergeLinkList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/14_MergeLinkList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/14_MergeLinkList.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 合并两个链表 # 输入两个单调递增的链表,输出两个链表合成后的链表,当然我们需要合成后的链表满足单调不减规则。 # 链表结构 class ListNode: def __init__(self, x): self.val = x self.next = None # 打印链表 def printChain(head): node = head while node: print(node.val) node = node.next class Solution: # 返回合并后列表 def Merge(self, pHe...
22.027778
63
0.534048
5b522ba395d00c53507454cd694ab705007397fd
278
py
Python
Algorithms/Implementation/fair_rations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/fair_rations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/fair_rations.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys N = int(input().strip()) B = list(map(int, input().strip().split(' '))) if sum(B) % 2 == 1: print('NO') sys.exit(1) cnt = 0 for i in range(N): if B[i] % 2 == 1: B[i] += 1 B[i + 1] += 1 cnt += 2 print(cnt)
15.444444
46
0.464029
5babe81e82fdd9d548ba2098ef4aa445110ebbbb
597
py
Python
Interview Preparation/HackerRank-Interview Preparation Kit/Warm-up Challenges/Sock Merchant/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Interview Preparation/HackerRank-Interview Preparation Kit/Warm-up Challenges/Sock Merchant/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Interview Preparation/HackerRank-Interview Preparation Kit/Warm-up Challenges/Sock Merchant/solution.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
#!/bin/python3 import math import os import random import re import sys # Complete the sockMerchant function below. def sockMerchant(n, ar): d = dict() for i in ar: if d.get(i) is None: d[i] = 1 else: d[i] = d.get(i) + 1 c = 0 for i in d: if d[i]>1: ...
17.558824
49
0.525963
5bcca5e64d132dbc4a3eb29b047d2af9c713d07a
2,647
py
Python
Rechnernetze/Python/POP3/pop3-client.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
2
2020-09-24T12:11:16.000Z
2022-03-31T04:47:24.000Z
Rechnernetze/Python/POP3/pop3-client.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-27T15:06:27.000Z
2021-03-01T16:32:48.000Z
Rechnernetze/Python/POP3/pop3-client.py
jneug/schule-projekte
4f1d56d6bb74a47ca019cf96d2d6cc89779803c9
[ "MIT" ]
1
2021-02-24T05:12:35.000Z
2021-02-24T05:12:35.000Z
# -*- coding: utf-8 -*- ##!! Behebt das Import-Problem in Mu-Editor import os os.chdir(os.path.dirname(__file__)) ## Importieren der Connection-Klasse from connection import Connection ## Konfiguration der Verbindung POP3_SERVER = "pop3.neugebauer.cc" POP3_PORT = 110 POP3_USER = "informatik@neugebauer.cc" POP3_PAS...
24.971698
79
0.644125
f34fbc33aa8c387e39dc769ee3e3014d65d6f65b
160
py
Python
LeetCode_problems/Defanging an IP Address/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
LeetCode_problems/Defanging an IP Address/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
LeetCode_problems/Defanging an IP Address/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
class Solution: def defangIPaddr(self, address: str) -> str: # replace all occurrences of "." with "[.]" return address.replace('.', '[.]')
32
51
0.575
346384613734b915b9721bdce31858116a0351b5
415
py
Python
Licence 2/I33/TP 6/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 6/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 6/ex_5.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def multbyalpha(b, f): resultat = b << 1 taille = len(bin(f)) - 3 if ((resultat & (1 << taille)) != 0): resultat ^= f return resultat def table_alpha(P): m = len(bin(P)) - 3 length = 1 << m lisst, a, index = [0] * (length-1), 1, 0 while index < length - 1: lisst[index] ...
19.761905
44
0.508434
cac7d64b78dfb839bac65529c5db7b12baa7ab5e
13,952
py
Python
SVM/src/SVM.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
SVM/src/SVM.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
SVM/src/SVM.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2019-03-03T02:55:48.000Z
2021-01-21T04:50:46.000Z
# Conventional Machine Learning Algorithms # Class of "SVC". # Author: Qixun Qu # Create on: 2018/03/23 # Modify on: 2018/04/13 # References: # [1] Sequential Minimal Optimization: # A Fast Algorithm for Training Support Vector Machines. # John C. Platt, 1998. See the pseudo-code in Section 2.5. # [2] Implemen...
29.127349
74
0.485808
b6be3b0d4fdbc9c6d1b652c096d5393f95f3aaf3
1,586
py
Python
Bibliothek/migrations/0005_auto_20171001_1105.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Bibliothek/migrations/0005_auto_20171001_1105.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Bibliothek/migrations/0005_auto_20171001_1105.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2017-10-01 11:05 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Bibliothek', '0004_altes_buch'), ] operations = [ migrations.AddField( ...
28.321429
66
0.550441
b6879ed159c03fc5e257d4841f8435526368dd6a
19
py
Python
library/AppVersion.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
1
2017-08-09T23:15:15.000Z
2017-08-09T23:15:15.000Z
library/AppVersion.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
library/AppVersion.py
ptphp/PtServer
d590360f853a64e989ba52591548b8a67390f27c
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Amy'
9.5
18
0.684211
fcc3f1553f32eef6a0622fe5d217e9a4b6a790fc
86
py
Python
main.py
iepsenn/stack_machine
194d355db95fc3f7e3d0a8d7c972b7113167d3ad
[ "Apache-2.0" ]
null
null
null
main.py
iepsenn/stack_machine
194d355db95fc3f7e3d0a8d7c972b7113167d3ad
[ "Apache-2.0" ]
null
null
null
main.py
iepsenn/stack_machine
194d355db95fc3f7e3d0a8d7c972b7113167d3ad
[ "Apache-2.0" ]
null
null
null
from machine import Machine input_file = "code.txt" m = Machine(input_file) m.run()
12.285714
27
0.732558
bf636aa4438f5986cc8a5e3b04c25c5b6cfe32c9
16,781
py
Python
Fastir_Collector/main.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/main.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/main.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import ConfigParser import argparse from datetime import datetime import glob import inspect import logging import multiprocessing import os import platform import re import sys import traceback import yaml from utils.utils import mount_share, unmount_sha...
39.392019
120
0.610631
ec60e82198fdb83c8bbe7d3baa111c3932c4ea5a
766
py
Python
tokenize.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
null
null
null
tokenize.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
null
null
null
tokenize.py
SDNixalo/ChechenULMFiT
4df21c48d47d11838991160dec0d8bc6c2209f05
[ "MIT" ]
1
2018-11-16T21:33:00.000Z
2018-11-16T21:33:00.000Z
from pathlib import Path import sentencepiece as spm from time import time # text_path = 'data/wikimedia/20181116/wiki.ce.txt' text_path = Path('data/wikimedia') # get latest wikimedia dump dates = [d for d in list(text_path.iterdir()) if d.is_dir() and d.name.isnumeric()] latest_date = str(max(map(lambda x: int(x.na...
38.3
155
0.723238
e5507108249b54153b11712f9274bc962d464cf9
2,306
py
Python
sqlalchemy/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
sqlalchemy/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
sqlalchemy/simple/simple.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import sqlalchemy def connect(user, password, db, host='localhost', port=5432): '''Returns a connection and a metadata object''' # We connect with the help of the PostgreSQL URL # postgresql://federer:grandestslam@localhost:5432/tennis url = 'postgresql://{}:{}@{}:{}/{}' u...
29.564103
78
0.563747
e56f4075aa996968c58506492704c3a75293e0ee
744
py
Python
tests/test_util.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
tests/test_util.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
tests/test_util.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- import logya.util site_root = 'tests/fixtures/site/' site_paths = logya.util.paths(site_root) def test_encode_content(): text = logya.util.encode_content({}, '') assert 2 == text.count('---\n') def test_slugify(): for value, expected in [ ('ac/dc', 'ac-dc'), ('A...
24.8
63
0.548387
41b51d9782063caef06414dc7fb03116b53ebf79
8,122
py
Python
app.py
lukexyz/iris
7290525d15f5283dfdfb6bb9c53c5de479bf30cb
[ "MIT" ]
1
2021-01-04T18:13:28.000Z
2021-01-04T18:13:28.000Z
app.py
lukexyz/iris
7290525d15f5283dfdfb6bb9c53c5de479bf30cb
[ "MIT" ]
null
null
null
app.py
lukexyz/iris
7290525d15f5283dfdfb6bb9c53c5de479bf30cb
[ "MIT" ]
1
2021-11-08T14:39:57.000Z
2021-11-08T14:39:57.000Z
from pathlib import Path import urllib.request from typing import List, Union import queue import threading import time import cv2 import numpy as np import streamlit as st from aiortc.contrib.media import MediaPlayer import av from streamlit_webrtc import ( ClientSettings, VideoTransformerBase, WebRtcMod...
34.561702
151
0.5836
2e79491b4cfdd4a4b07426d33ec539e60a37a2d8
2,643
py
Python
Sorting/src/recursive_sorting/notes/merge_sort_brian.py
tobias-fyi/02_algorithms
ab1a8a07c3560ad66712992e3af906e8fd316fe2
[ "MIT" ]
null
null
null
Sorting/src/recursive_sorting/notes/merge_sort_brian.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/Sorting/src/recursive_sorting/notes/merge_sort_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
# [ 5 9 3 7 2 8 1 6] # [ 5 9 3 7] [2 8 1 6] # [ 5 9 ] [3 7] [2 8] [ 1 6 ] # [5] [9] [3] [7] [2] [8] [1] [6] [4] [] # these individually are all sorted # i # [9] # [5 9] # [5] # j # i # [3] # [7] # j # [5 9] [3 7] [ 2 8] [1 6] # these subarrays are individually sorted # i # [5 9] # [3 5 7 9] # [3 ...
19.014388
84
0.491109
999fa88f61c62556d77fe73ac6516f4705a583eb
501
py
Python
examples/pcf8591.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-11T23:39:23.000Z
2020-08-11T23:39:23.000Z
examples/pcf8591.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
null
null
null
examples/pcf8591.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-05T18:30:45.000Z
2020-08-05T18:30:45.000Z
#!/usr/bin/python # -*- coding:utf-8 -*- # www.elecrow.com import smbus import time # NOTE: the PCF8591 script can be used both with photoresistance example and flame sensor example # please follow up the instructions on the PCF8591 schematic to connect the right sensors in the right way. address = 0x48 A0 = 0x40 A...
20.04
107
0.706587
41daa0e8cec2d9a61686c6b1665870a8b7a026a8
1,473
pyde
Python
sketches/randrect2/randrect2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/randrect2/randrect2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/randrect2/randrect2.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# random rectangles from random import choice, randint WITH = 920 HEIGHT = 640 NO_RECT = 40 FPS = 60 # Farben WHITE = "#ffffff" GREY = "#444444" ORANGE = "#ff9213" colors = [WHITE, GREY, ORANGE] rects = [] color_list = [] def setup(): global counter, switch size(WITH, HEIGHT) this.surface.setTitle("R...
28.326923
93
0.591989
5cb1c7b79ddca8143015eaf96d125df9ca5d8dc1
5,954
py
Python
main.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
main.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
main.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import time import cv import cv2 from PIL import Image from src.NoFilter import NoFilter # preprocessing from src.preprocessing.BackgroundFilter import BackgroundFilter from src.preprocessing.RectsFilter import RectsFilter from src.preprocessing.OverlayFilter import OverlayFi...
31.839572
83
0.632348
5cce7d0ddc698fac2b2f4c2f1e9a9e119d4a96c3
856
py
Python
destroy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
destroy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
destroy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
"""take down a catcobralizard instance""" import requests from utils.droplets import get_droplet_id from utils.requests import headers from utils.cache import retrieve_token def destroy_droplet(token): """destroy a droplet""" droplet_id = get_droplet_id() params = { 'id': droplet_id } pr...
28.533333
83
0.703271
5cde13255401ae929022f6cc0658ae893f62b580
1,031
py
Python
UAS/UAS 3.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 3.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
UAS/UAS 3.py
Archedar/UAS
3237d9304026340acc93c8f36b358578dc0ae66f
[ "BSD-Source-Code" ]
null
null
null
#Alpro uas no 3 data = list() jumlah = int(input('Jumlah kalimat: ')) for i in range(jumlah): data.append(input(f'Masukan kalimat ke-{i + 1}: ')) while True: print(''' Menu 1. Tampilkan semua data kalimat 2. Cari 3. Hapus semua data kalimat dan mengisi ulang data kalimat 4. Keluar program ''') ...
25.146341
70
0.615907
7a72c724d8ab3b7fa2a232cda96b91b1cfd50582
1,811
py
Python
Termin 6/Aufgabe2.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/Aufgabe2.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Termin 6/Aufgabe2.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
3
2019-11-17T01:33:07.000Z
2020-03-26T10:13:39.000Z
""" Aufgabe 6.2 """ from keras.models import Sequential from keras.layers import Dense from keras.utils import np_utils from keras.optimizers import SGD from tensorflow import random import numpy as np # make results reproducible np.random.seed(123) random.set_seed(123) def change_labels(label): ''' A functi...
23.519481
69
0.660961
8f58703b030b5f937be72d9035dbc2e325acb5e3
1,954
py
Python
frds/mktstructure/cmd_compute.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
1
2022-03-06T20:36:06.000Z
2022-03-06T20:36:06.000Z
mktstructure/cmd_compute.py
mgao6767/mktstructure
5432c1bed163f838209d34b74c09629bea620ba8
[ "MIT" ]
null
null
null
mktstructure/cmd_compute.py
mgao6767/mktstructure
5432c1bed163f838209d34b74c09629bea620ba8
[ "MIT" ]
null
null
null
import argparse import os from datetime import datetime as dt import pandas as pd from . import measures def format_result(date, ric, measure_name, result): return ",".join([date.strftime("%Y-%m-%d"), ric, measure_name, str(result)]) def cmd_compute(args: argparse.Namespace): if args.out: fout = ...
31.015873
86
0.551689
a42be1d9db30f0a888d0d4387d33891a6578660b
575
py
Python
tarefas-poo/lista-01/calculos/view/paineis/painel_primo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_primo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_primo.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício calculos # -------------------------- # Classe responsável por determinar se um número é primo. from view.paineis.painel_abstrato import PainelAbstrato from model.calculos import primo class PainelPrimo(PainelAbstrato): def __init__(self): ...
27.380952
57
0.565217
74be57430049712599c2ded692b18bcc60863e72
3,816
py
Python
Marlin/src/lcd/extui/ftdi_eve_touch_ui/ftdi_eve_lib/scripts/img2cpp.py
tom-2273/Tronxy_SKR_mini_E3_V20
bc4a8dc2c6c627e4bd7aa423794246f5b051448d
[ "CC0-1.0" ]
null
null
null
Marlin/src/lcd/extui/ftdi_eve_touch_ui/ftdi_eve_lib/scripts/img2cpp.py
tom-2273/Tronxy_SKR_mini_E3_V20
bc4a8dc2c6c627e4bd7aa423794246f5b051448d
[ "CC0-1.0" ]
null
null
null
Marlin/src/lcd/extui/ftdi_eve_touch_ui/ftdi_eve_lib/scripts/img2cpp.py
tom-2273/Tronxy_SKR_mini_E3_V20
bc4a8dc2c6c627e4bd7aa423794246f5b051448d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python # Written By Marcio Teixeira 2021 - SynDaver Labs, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
33.473684
112
0.651992
777fbf19c3eaac1d2d1580a26e5da422cac7887b
4,624
py
Python
src/server/db/AccountMapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
src/server/db/AccountMapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
src/server/db/AccountMapper.py
ralfstefanbender/Studifix2
281c0a89ce56796437fe054068058c0f01a7df02
[ "RSA-MD" ]
null
null
null
from server.bo.Account import Account from server.db.Mapper import Mapper class AccountMapper (Mapper): """Mapper-Klasse, die Account-Objekte auf eine relationale Datenbank abbildet. Hierzu wird eine Reihe von Methoden zur Verfügung gestellt, mit deren Hilfe z.B. Objekte gesucht, erzeugt, modifiziert und ...
30.826667
94
0.615484
3b97e94d955b7074052f0259e0e54736abcf8cd3
1,688
py
Python
python/asyncio/example_7.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_7.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/example_7.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
""" example_7.py Just a short example demonstrating a simple state machine in Python This version is doing actual work, downloading the contents of URL's it gets from a work_queue. This version uses the Twisted framework to provide the concurrency """ from twisted.internet import defer from twisted.web.client import ...
25.575758
84
0.627962
8e84cdb92c00b671d2c2639121878bc2cb578160
1,984
py
Python
examples/presentation.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
examples/presentation.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
examples/presentation.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from fbtor.FBoolectorTypes import FPType, RMode, WIDTH from fbtor.FBoolector import FBoolector from pyboolector import BTOR_OPT_MODEL_GEN if __name__ == "__main__": fptype = FPType.single rmode = RMode.to_zero # setup FBoolector, variables etc fbtor = FBoolector(fptype,rmode) ...
25.435897
79
0.543347
8dc59f469e2aa6562eae716bbe9329bf27de5ab9
371
py
Python
backend/app/schemas/extractor.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/schemas/extractor.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/schemas/extractor.py
jinnn-dev/learning-by-annotations
7369973c905d64e09c24e4bcfd7589fbbe9a898e
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from typing import List from pydantic import BaseModel from app.schemas.polygon_data import Point class ImageDimension(BaseModel): height: float width: float class GrayGroup(BaseModel): gray_value: int annotations: List[List[Point]] class ExtractionResult(BaseModel): image:...
17.666667
43
0.716981
30a0177e18b903645af45925616151bf86ac992d
2,835
py
Python
10.3389/fgene.2020.567262/local/scripts/calc_exons_length.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/calc_exons_length.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/calc_exons_length.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import os import sys import re import argparse # # ptyhon $this --gffa camara/genome.modified.gff --gffr crivularis/genome.modified.gff --output camara.gene.length # def proc_main(gff_file): idptn = re.compile("ID=(CARHR[0-9]+)\..+") gene_length = {} with open(gff_file, 'r') as gfffh: fo...
34.573171
120
0.610229
30bcda96b6ec7da7ab97236661e3d044a4904cc8
846
py
Python
python/odml/test_scripts/dtype_tests.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/dtype_tests.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/dtype_tests.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import odml import datetime as dt # basic types prop_i = odml.Property(name="int", value=[1, 2, 3]) prop_f = odml.Property(name="float", value=[1.0, 2.0, 3.0]) prop_b = odml.Property(name="bool", value=[True, False, False]) # check fails odml.dtypes.get("bla", prop_i.dtype) odml.dtypes.get("bla", prop_f.dtype) odml.d...
32.538462
87
0.695035
eb4bd43cdf338fefcda5aa616972168ef6d166e2
696
py
Python
Produkte/migrations/0005_auto_20170508_1834.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Produkte/migrations/0005_auto_20170508_1834.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Produkte/migrations/0005_auto_20170508_1834.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2017-05-08 16:34 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Produkte', '0004_auto_20170508_1018'), ] operations = [ migrations.RemoveField( ...
22.451613
48
0.564655
690d67eff3244168d6720192646c1ae4e6188b76
821
py
Python
src/bo4e/enum/zaehlertyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/zaehlertyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/zaehlertyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint:disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Zaehlertyp(StrEnum): """ Bei diesem Enum handelt es sich um die Abbildung von Zählertypen der Sparten Strom und Gas. """ DREHSTROMZAEHLER = "DREHSTROMZAEHLER" #: Drehstromzähler BALGENGASZAEHLER = "BALGENGASZA...
41.05
95
0.760049
d6e7215963952831726b23c1ec796ea144cf8430
801
py
Python
elements/python/12/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/12/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/12/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def bsearch(n, pred): """ Given a boolean function pred that takes index arguments in [0, n). Assume the boolean function pred returns all False and then all True for values. Return the index of the first True, or n if that does not exist. """ # invariant: last False lies in [l, r) and pred(l) i...
20.538462
76
0.534332
242cc2496276d6d0b52f345cfbb933bbfe767944
2,301
py
Python
Python/itertools/maximize_it.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/itertools/maximize_it.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/itertools/maximize_it.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/maximize-it/problem from itertools import product as pd k, m = [3, 1000] ki = [2,3,5] v = [[5,4],[7,8,9],[5,7,8,9,10],[1,2,3,4,5,6,7],[346,345,524,464,2445,2345],[753,2034798,14364273,10234987,443578,3408714],[1023478,4359,13983,23870934,34084,1239823,14287]] n = list(pd(*v)) ...
24.478723
173
0.654063
0310e92fa31d0526a67862187790dd0011399656
216
py
Python
src/diagrams/icons/__init__.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/__init__.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
src/diagrams/icons/__init__.py
kkaruso/niv
67ba82c93279db4dae503d4dceec7ba5e9931c0a
[ "MIT" ]
null
null
null
""" GCP provides a set of services for Google Cloud Platform provider. """ from src.diagrams import Node class _ICONS(Node): _provider = "icons" _icon_dir = "../resources/icons" fontcolor = "#2d3436"
16.615385
66
0.680556
035719d1c35ff3a3379660430e0d85d7fd64cf4e
508
py
Python
multimeter/waehlen.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/waehlen.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/waehlen.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
def auswahl(): print("1. Stromstaerke") print("2. Spannung") print("3. Widerstand") print("4. Temperatur") print("5. Entfernung") print("6. Leistung") ## print("7. pH-Wert") Auswahl = int(input("Waehlen sie aus, was sie messen moechten:")) return Auswahl def anzahlwdh(): wdh=int(input("geben sie ...
28.222222
87
0.690945
30112b2896794fa26201ac4b3defe7e2d1b4c70e
875
py
Python
src/create_mask.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/create_mask.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/create_mask.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
import json import glob import cv2 import numpy annotation_path = "../mask/mask-ann/*.json" output_path = "../mask/unet-mask/" annotations = glob.glob(annotation_path) for i in range(len(annotations)): data = json.load(open(annotations[i])) # The set of boundary points points = data["objects"][0]["points"]["exte...
29.166667
95
0.705143
88cd2ffa3b544f26382fce0fd0d606065bc3aefd
1,951
py
Python
official/recommend/deepfm/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/deepfm/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/deepfm/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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...
37.519231
96
0.743721
cc6e120540e8d49eb668e1570cae26edb4750a2b
97
py
Python
myProject/employeeapi/apps.py
parth-singh71/PostgreSQLBasics
84ef8733faef0d62ca3e8fd8ca9bf25517ed6c6d
[ "MIT" ]
null
null
null
myProject/employeeapi/apps.py
parth-singh71/PostgreSQLBasics
84ef8733faef0d62ca3e8fd8ca9bf25517ed6c6d
[ "MIT" ]
null
null
null
myProject/employeeapi/apps.py
parth-singh71/PostgreSQLBasics
84ef8733faef0d62ca3e8fd8ca9bf25517ed6c6d
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EmployeeapiConfig(AppConfig): name = 'employeeapi'
16.166667
35
0.773196
9d79fb5c1dd3d8554301c27a44c76fcb4a9f889e
457
py
Python
watchlist_app/views.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
watchlist_app/views.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
watchlist_app/views.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
from django.http import JsonResponse from core.models import WatchListModel def movie_list(request): movies = WatchListModel.objects.all() data = { 'movies': list(movies.values()) } return JsonResponse(data) def movie_details(request, pk): movie = WatchListModel.objects.get(pk=pk) d...
20.772727
45
0.649891
ae2a5b6538a38fb3f193cc8e71ed88fcf1dfd60d
924
py
Python
python/watchdog/handler.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/watchdog/handler.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/watchdog/handler.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys import time from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler class MyHandler(FileSystemEventHandler): def on_any_event(self, event): print(f"{event.event_type} {event.src_path}") def on_created(self, event): print(f"on_created {event.src_pa...
24.972973
58
0.664502
a011c2af4d9e143e606f5c6699eea6f906d8e192
356
py
Python
python/image_processing/performance1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/performance1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/performance1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# To blur image and to find the time taken to do the required operations import numpy as np import cv2 img1 = cv2.imread('cadillac.jpg') e1 = cv2.getTickCount() for i in range(5,49,2): img1 = cv2.medianBlur(img1,i) e2 = cv2.getTickCount() t = (e2 - e1)/cv2.getTickFrequency() print(t) cv2.imshow('res',img1) cv2....
18.736842
72
0.710674
eec8f4af49fac685d078556d5a6eaffc64d6a002
1,037
py
Python
Imaginary/2021/web/Build-A-Website/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/web/Build-A-Website/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/web/Build-A-Website/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, render_template_string, request, redirect, url_for from base64 import b64encode, b64decode app = Flask(__name__) @app.route('/') def index(): # i dont remember how to return a string in flask so # here goes nothing :rooNervous: return render_template_string(open(...
34.566667
117
0.701061
eef02889069c423ef148fabb6a2d605ca9e2bc93
746
py
Python
measure/system/MemorySystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
measure/system/MemorySystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
measure/system/MemorySystemMeter.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys import tracemalloc sys.path.append(os.path.dirname(__file__)) from measure.system.AbstractSystemMeter import AbstractSystemMeter class MemorySystemMeter(AbstractSystemMeter): def __init__(self): AbstractSystemMeter.__init__(self, "Memory") self.snapshot = None def _sta...
24.064516
66
0.646113