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
74267335c0e0a78d0c879ee4efc953197d75ce4f
965
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/intro/intro_directions_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/intro/intro_directions_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch06_arrays/intro/intro_directions_example.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from enum import Enum from random import randrange, randint class Direction(Enum): N = (0, -1) NE = (1, -1) E = (1, 0) SE = (1, 1) S = (0, 1) SW = (-1, 1) W = (-1, 0) NW = (-1, -1) def to_dx_d...
20.531915
54
0.619689
7000a12fc8c0bfb4dd9ddfcef38f359d34d08628
487
py
Python
pacman-arch/test/pacman/tests/upgrade052.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/upgrade052.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/upgrade052.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade to a package that provides less than before" lp1 = pmpkg("pkg1") lp1.depends = ["imaginary"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.provides = ["imaginary", "real"] self.addpkg2db("local", lp2) p = pmpkg("pkg2", "1.0-2") p.provides = ["real"] self.addpkg(p) self.args = "-U ...
23.190476
72
0.694045
3b5a7d95eb18986cc0cab4455738c8f8221b76b7
1,291
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_1/rename_quality_inspection_field.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/v7_1/rename_quality_inspection_field.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/rename_quality_inspection_field.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import * def execute(): for doctype in ("Purchase Receipt Item", "Delivery Note Item"): frappe.reload_doctype(doctype) table_columns = frappe.db.get_table_columns(doctype) if "qa_no" in table_columns: rename_field(doc...
33.102564
90
0.759876
796adad91f96c16720743be497fe5735aa7aadd5
2,760
py
Python
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
check_file.py
Bensuperpc/CheckFile
425f6aa77578c758892f9b8ab84b4fef46ddf976
[ "MIT" ]
null
null
null
from multiprocessing.dummy import Pool as ThreadPool import time import multiprocessing as mp from pathlib import Path import pathlib import sys import time import os import sys import hashlib import json update = False if len(sys.argv) >= 2: if sys.argv[1] == '-update' or sys.argv[1] == '-u': update = ...
24.864865
80
0.626812
8dd8dc1796ef81dedec347d09b60453a9fe9d720
3,308
py
Python
verto/processors/InteractiveTagBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/InteractiveTagBlockProcessor.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/InteractiveTagBlockProcessor.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.processors.GenericTagBlockProcessor import GenericTagBlockProcessor import re DEFAULT_THUMBNAIL = 'default' CUSTOM_THUMBNAIL = 'custom' class InteractiveTagBlockProcessor(GenericTagBlockProcessor): '''Searches a Document for interactive tags: e.g. {interactive slug='example' type='in-page'} ...
40.341463
99
0.6448
5c1c15b21162678bf220be7bfb053530c84a0f5c
1,901
py
Python
service/api/events.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2021-07-20T06:56:38.000Z
2021-07-20T06:56:38.000Z
service/api/events.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
1
2018-01-23T22:36:49.000Z
2018-01-24T18:52:27.000Z
service/api/events.py
netzbegruenung/schaufenster
c0860570cf6b46dc0fade9cef7562edd2fa7f3a0
[ "Apache-2.0" ]
2
2018-01-23T21:25:57.000Z
2018-01-24T21:46:41.000Z
# -*- coding: utf-8 -*- import requests import icalendar from datetime import datetime from datetime import date from datetime import timedelta class Client(object): def __init__(self, url, charset=None): self.url = url self.charset = charset self.events = [] self.timeout = 60 ...
29.246154
77
0.54445
5c313126b623dc7188519376e5cea4c3d0f53b56
1,159
py
Python
pandas_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
pandas_test.py
lixianyu/DL
4cf08b2cc8a5478af38c1b00d765548efe396392
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_csv('calls.csv') # CSV 代表逗号分隔值,但这些值实际可用不同的字符、制表符、空格等分隔 df = pd.read_csv('student_scores.csv', sep=':') # 指定文件的哪一行作为标题 df = pd.read_csv('student_scores.csv', header=2) #如果文件中不包括列标签,可以使用 header=None 防止数据的第一行被误当做列标签。 df = pd.read_csv('student_scores.csv', header=None) #还可...
35.121212
97
0.64711
eb81eaad9d5f46cc3fa2a0ccf3ab227cdc0c3b9c
3,368
py
Python
model/fid.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/fid.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
model/fid.py
isadrtdinov/StarGAN
bdb33310817854802ebc6356b28303616f23060a
[ "MIT" ]
null
null
null
import torch import numpy as np from scipy import linalg from torch import nn import torch.nn.functional as F import torchvision.transforms as T from torchvision.models import inception_v3 from utils import permute_labels class FrechetInceptionDistance(object): """ Calculates Frechet Inception Distance (a...
38.712644
103
0.647862
d675e107708eb7e2b7906d964969c06c134e7b37
35,478
py
Python
module/app.py
MakiseVon/LabelDcm
f220ec182cae4cd64167399e28ebe7d9442f28b2
[ "MIT" ]
null
null
null
module/app.py
MakiseVon/LabelDcm
f220ec182cae4cd64167399e28ebe7d9442f28b2
[ "MIT" ]
null
null
null
module/app.py
MakiseVon/LabelDcm
f220ec182cae4cd64167399e28ebe7d9442f28b2
[ "MIT" ]
2
2021-02-03T04:34:26.000Z
2021-02-03T06:32:48.000Z
from model import test from module import utils from module.config import config from module.mode import LabelMode from ui.form import Ui_form from PyQt5.QtCore import pyqtBoundSignal, QCoreApplication, QEvent, QObject, QPoint, QPointF, QRectF, QSize, Qt from PyQt5.QtGui import QColor, QCursor, QFont, QIcon, QMouseEven...
41.787986
118
0.604713
d6a8be3216e62ba120486b6495e742ae80e85f74
1,039
py
Python
elements/python/12/5/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/12/5/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/12/5/solution.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def find_upper_bound(x): """ find_upper_bound returns an integer n with n >= len(x), without using the len() function. The complexity is O(log(len(x)). """ n = 1 while True: try: v = x[n] except IndexError: return n n *= 2 def binary_search(x, ta...
17.913793
77
0.497594
ba611dc9f4ae25a644466820c4c0c0d9a9531273
797
py
Python
Webpage/arbeitsstunden/management/commands/utils/data.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/management/commands/utils/data.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/management/commands/utils/data.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
class Nutzer: Nachname: str Vorname: str Eintrittsdatum: str Status: str E_Mail: str class user: id: str member_id: str email: str password: str role: str class member: id: str user_id: user first_name: str last_name: str class project: id: str nam...
15.326923
33
0.628607
0315ae72a7d10add3d961f3793bc297a7ded986e
438
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v10_0/fichier_des_ecritures_comptables_for_france.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/v10_0/fichier_des_ecritures_comptables_for_france.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/fichier_des_ecritures_comptables_for_france.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2018, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from erpnext.setup.doctype.company.company import install_country_fixtures def execute(): frappe.reload_doc('regional', 'report', 'fichier_des_ecritures_compta...
36.5
82
0.789954
ccd5771376af124f37ed718e73b670f1da644359
3,601
py
Python
EveryoneCounts.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
EveryoneCounts.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
EveryoneCounts.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit Inc. # # 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 applicabl...
33.342593
147
0.695362
d1dcb72ee867e8689991ccfd8739bfa76feae559
1,797
py
Python
spider/master_test.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/master_test.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/master_test.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
import re import json import fire from tqdm import tqdm from datetime import datetime,timedelta from Config import get_config _,db,r = get_config() location_group_by_char_5 = db.event_metadata.find_one({'name':'location_group_by_char_5'})['data'] type_group_by_char_5 = db.event_metadata.find_one({'name':'type_group_b...
31.526316
118
0.660545
c9a63fd1f2ac47d08526ada241f7433869084143
384
py
Python
books/SystemProgramming/ch3_introduction/connection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/connection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/connection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from settings import MANAGEMENT_SERVER, SERVER1, SERVER2 print("어떤 파이썬 서버에 연결하시겠습니까?") select = input("연결하고자 하는 파이썬 서버를 선택하세요(m, 1, 2) : ") if select == "m": os.system(f"ssh jone@{MANAGEMENT_SERVER}") elif select == "1": os.system(f"ssh jone@{SERVER1}") elif select == "2": ...
22.588235
56
0.658854
1184a3f19559b5d0559c705fa454b73102811aa1
3,282
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmsg.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmsg.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/mActionGTOmsg.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import absolute_import from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * class run(QObject): def __init__(self, id, gtotool, config, debug): super(run, self).__init__() try: iface = gtotool.iface...
40.518519
113
0.609385
6de5110939a5b2e467374e5006df0ecef9385f01
596
py
Python
tests/test_data.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
tests/test_data.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
4
2020-05-12T07:26:52.000Z
2020-05-23T12:21:49.000Z
tests/test_data.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import unittest from luechenbresse import data class TestData(unittest.TestCase): def test_reads_feed_list(self): feeds = data.json("feeds.json") self.assertTrue(isinstance(feeds, dict)) self.assertTrue("zdf-heute" in feeds) self.assertTrue("...
23.84
59
0.644295
09cbfa3c27fe076305c0b09d42943e4c2ab89836
3,394
py
Python
reports/ReportDataBalance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportDataBalance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportDataBalance.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys import pandas as pd from reports.AbstractReport import AbstractReport # Add modules to system path, needed when starting the script from the shell # Furter details see: https://stackoverflow.com/questions/16981921/relative-imports-in-python-3 PACKAGE_PARENT = '../' SCRIPT_DIR = os.path.dirname(os....
35.726316
103
0.637301
3a1e7339bfc9ca290b864ffc2be9529d43583c90
3,340
py
Python
gdp1/common/input_helpers.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/common/input_helpers.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/common/input_helpers.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
def int_input(prompt="", minmax=None, min=None, max=None): """Uses `input(prompt)` to request an int value from the user, retrying if the user does not enter a valid value. @param str prompt: The prompt to display. @param tuple minmax: A tuple of the form (min, max) specifying the inclusive range the numbe...
37.954545
118
0.588623
3a1eb66b2a594b0c9e0874e42020d6868c75be79
328
py
Python
docs/examples/4-schedules/export_rich_html.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
4
2021-05-21T13:26:10.000Z
2021-11-15T17:17:01.000Z
docs/examples/4-schedules/export_rich_html.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
docs/examples/4-schedules/export_rich_html.py
scuervo91/dcapy
46c9277e607baff437e5707167476d5f7e2cf80c
[ "MIT" ]
null
null
null
from dcapy.schedule import WellsGroup import yaml from rich.console import Console console = Console(record=True) with open('YML_example1.yml','r') as file: case_dict = yaml.load(file) case = WellsGroup(**case_dict) console.print(case.tree()) console.print(case.wells['well-2'].layout()) console.save_html('test_export...
27.333333
44
0.768293
28da73c4baad2b3d327d08618b1e93aa36352835
2,819
py
Python
src/onegov/town6/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/newsletter.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Public, Private from onegov.newsletter import Newsletter from onegov.newsletter import NewsletterCollection from onegov.newsletter import RecipientCollection from onegov.org.views.newsletter import handle_newsletters, view_newsletter, \ view_subscribers, handle_new_newsletter, get_n...
38.094595
78
0.766229
28fe4230f4e0786342d5a152858301145d937303
6,210
py
Python
verto/processors/utils.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/processors/utils.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/processors/utils.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import re from markdown.util import etree # noqa: F401 from collections import OrderedDict, defaultdict from verto.errors.ArgumentDefinitionError import ArgumentDefinitionError from verto.errors.ArgumentMissingError import ArgumentMissingError from verto.errors.ArgumentValueError import ArgumentValueError def parse_...
39.056604
116
0.663768
e919079be3cc92eddc83334272ff5666ca1c2bd2
5,233
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_scripts.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_scripts.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_scripts.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import pybedtools from .tfuncs import setup, teardown from pybedtools.scripts import annotate, venn_mpl, venn_gchart from nose.tools import assert_raises, assert_equal from nose.plugins.attrib import attr from nose.plugins.skip import SkipTest import os import sys def test_annotate_main(): # exits after printing ...
36.594406
112
0.631569
c95e0a31d792dd7e77b083a04e1c2d8d743af6f6
18,196
py
Python
main.py
LDiek-/ai
3e9350df12dd7f414242a6e63563a6bec0fea4a6
[ "MIT" ]
null
null
null
main.py
LDiek-/ai
3e9350df12dd7f414242a6e63563a6bec0fea4a6
[ "MIT" ]
null
null
null
main.py
LDiek-/ai
3e9350df12dd7f414242a6e63563a6bec0fea4a6
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- import json # Neuronales Netz zum erlernen von Nomen-Regelung __autor__ = "Luca Diekgraefe" __version__ = 1.0 class Connection(): def __init__(self, name, connector, connected, weight): self.name = name self.mode = "off" self.weight = float(...
34.925144
115
0.60843
a35093688319420bc031a8a32c5bde013204284b
3,813
py
Python
src/utils/db/dao.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/db/dao.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/utils/db/dao.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import List from sqlalchemy import func from sqlalchemy.orm import sessionmaker from log import logger from settings import engine from utils.db.table import Station, Meteorology __all__ = ["MeteorologyDao", "StationDao"] class MeteorologyDao(object): def __init__(sel...
30.023622
98
0.597954
6eae94d9a055d350de9712c78daff512e0ca38b8
929
py
Python
python/p005.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
4
2018-11-14T12:03:05.000Z
2019-09-03T14:33:28.000Z
python/p005.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
null
null
null
python/p005.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
1
2018-11-17T14:39:22.000Z
2018-11-17T14:39:22.000Z
#!/usr/bin/python3 #-*- coding:utf-8 -*- # author :mathm # email: tlming16@fudan.edu.cn import sys class solution : def __init__(self,n:int): self.n=n def prime(self,n:int): isprime=[True]*(n+1) isprime[0]=False isprime[1]=False for i in range(2,n): ...
21.604651
40
0.480086
42e2963d7ca55e2202910c3ae1d59e84a5f47f75
290
py
Python
src/python3_learn_video/module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/module.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
""" 什么是模块? 容器:数据的封装 函数:语句的封装 类:方法和属性的封装 模块:模块就是程序 命名空间: import hello hello.hi() 导入模块: 1. import 模块名 import TemperatureConversion 2. from 模块名 import 函数名 from TemperatureConversion import c2f,f2c 3. import 模块名 as 新名字 """
14.5
49
0.57931
42f93288f4e48c8481334c467896cf87bf130c44
366
py
Python
IVTp/2014/SOBOLEV_M_V/task_4_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_4_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/SOBOLEV_M_V/task_4_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
print("Ефим Алексеевич - русский промышленный инженер") rod = "Россия, Нижний Тагил"; print("Место рождения: "+live) godz = 1774 smert =1842 print("Годы жизни: "+godz+'-'+smert) age = smert-godz print("Возраст: "+age) interesy = "Инженерия" print("Область интересов: "+interes) letsmomentsmert = 2016 - smert print('Лет...
26.142857
56
0.724044
95e499f435be44fb2cce8d9ad1e3db7129a47ce0
123
py
Python
Pythonjunior2020/Woche1/Aufgabe_1_2_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_2_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche1/Aufgabe_1_2_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 1.2.3, Woche 1, Block 2, Aufgabe 3 # Ausgabe print("Viel", "Spaß im", "Sommercamp") # print("Viel Spaß im Sommercamp")
20.5
39
0.650407
c28743070f9d9df40a5b51830e4c6c0859b99957
216
py
Python
exercises/de/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_01_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
# Importiere die Klasse English from spacy.lang.en import English # Erstelle das nlp-Objekt nlp = English() # Verarbeite einen Text doc = nlp("This is a sentence.") # Drucke den Text des Dokuments print(doc.text)
18
33
0.74537
c2c4aaa452280a571690b1beba57533ac703a555
1,236
py
Python
xlutils/tests/test_docs.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
1
2020-10-22T22:15:24.000Z
2020-10-22T22:15:24.000Z
xlutils/tests/test_docs.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
1
2020-10-09T12:42:02.000Z
2020-10-09T12:42:02.000Z
xlutils/tests/test_docs.py
drmelectronic/MIT
e28a82cd02dcc52ac233b89b43f29ede00993d11
[ "MIT" ]
2
2020-07-14T07:45:31.000Z
2020-12-29T00:22:41.000Z
# Copyright (c) 2008-2012 Simplistix Ltd # # This Software is released under the MIT License: # http://www.opensource.org/licenses/mit-license.html # See license.txt for more details. import os,unittest from fixtures import test_files from testfixtures import LogCapture,TempDirectory from doctest import DocFileSuite, ...
37.454545
93
0.737864
06f886584be5f48f59e286911891c52f434debfe
670
py
Python
tests/books/abstracttestbooks.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
tests/books/abstracttestbooks.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
5
2019-03-19T22:21:28.000Z
2020-09-16T03:08:56.000Z
tests/books/abstracttestbooks.py
showhue/adzuki
23dff5b01905ba3622b4846708c6fd9d2fdd7385
[ "BSD-3-Clause" ]
null
null
null
from google.cloud import datastore import configparser, os, unittest class AbstractTestBook(unittest.TestCase): def __init__(self, *args, **kwargs): super(AbstractTestBook, self).__init__(*args, **kwargs) source_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../') self._config = con...
47.857143
85
0.723881
b055fb1426707efe5bec3aa5a03337fa71e4e02b
415
py
Python
INBa/2015/Mitin_D_S/task_2_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Mitin_D_S/task_2_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Mitin_D_S/task_2_15.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 15. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Аркадий Петрович Голиков. # После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Mitin D.S. # 03.03.2016, 17:36. print("Два основных достояния человеческо...
51.875
122
0.780723
bb8d307d4ca992085e1712910cb21d514bd262df
1,019
py
Python
Practice-2019-05-11/scripts/baseline_random.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
3
2019-11-25T09:56:48.000Z
2021-01-18T13:18:17.000Z
Practice-2019-05-11/scripts/baseline_random.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
null
null
null
Practice-2019-05-11/scripts/baseline_random.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
2
2020-05-17T17:22:14.000Z
2020-09-23T08:31:46.000Z
# ============== SemEval-2015 Task 1 ============== # Paraphrase and Semantic Similarity in Twitter # =================================================== # # Author: Wei Xu (UPenn xwe@cis.upenn.edu) # # a baseline system that completely use random outputs # import random if __name__ == "__main__": testfilenam...
27.540541
70
0.51423
a5c0144ecfad920cbcae091522bdf993623c4148
50
py
Python
home-assistant/custom_components/lunching/__init__.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
136
2019-06-27T08:11:47.000Z
2022-03-11T12:26:53.000Z
home-assistant/custom_components/lunching/__init__.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
5
2020-05-30T00:19:22.000Z
2022-03-25T18:49:47.000Z
home-assistant/custom_components/lunching/__init__.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
63
2019-07-15T21:11:58.000Z
2022-03-13T09:43:24.000Z
"""Lunching.pl Tracker.""" __version__ = '1.0.0'
12.5
26
0.62
3c97f2c57ed32d862f1931e9c30e68faf7a4cb22
3,727
py
Python
python_experiments/paper_figures/tkde/data_legacy/static_data_loader.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/data_legacy/static_data_loader.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/data_legacy/static_data_loader.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import json from exec_utilities.exec_utils import get_logger vldbj_dlp_tag = 'dlp' vldbj_sling_tag = 'sling' vldbj_reasd_tag = 'reads-d' vldbj_readrq_tag = 'reads-rq' vldbj_probesim_tag = 'ProbeSim' icde_inc_sr_tag = 'Inc-SR' tkde_pdlp_tag = 'pdlp' vldbj_indexing_time_tag = 'indexing time' vldbj_index_size_tag = 'ind...
35.495238
94
0.665146
3cf9fed9768f67a9c9ed0fb9acfeb15040a42324
1,686
py
Python
py-test1/py-test3.py
isdev0/sel-9-test1
82469a87aa3804efc4881e9a37878da912d5fc3f
[ "Apache-2.0" ]
null
null
null
py-test1/py-test3.py
isdev0/sel-9-test1
82469a87aa3804efc4881e9a37878da912d5fc3f
[ "Apache-2.0" ]
null
null
null
py-test1/py-test3.py
isdev0/sel-9-test1
82469a87aa3804efc4881e9a37878da912d5fc3f
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.support.wait import WebDriverWait @pytest.fixture(scope='module') def driver(request): wd = webdriver.Chrome() request.addfinalizer(wd.quit) return wd def test_adm_login(driver): driver.get('http://rubberducks.com:8880/litecart/admin...
35.87234
106
0.717082
ab65e7c4b124f2371cbcbd8b06adb63d26d75cc5
1,820
py
Python
k8s/the-project/wx-fn-stats/wx-stats.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
1
2019-04-18T09:52:48.000Z
2019-04-18T09:52:48.000Z
k8s/the-project/wx-fn-stats/wx-stats.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
k8s/the-project/wx-fn-stats/wx-stats.py
cjimti/mk
b303e147da77776baf5fee337e356ebeccbe2c01
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Wx Stats from Elasticsearch Local testing: kubectl port-forward service/elasticsearch 9200:9200 -n the-project HOST=localhost:9200 python ./wx-stats.py """ __author__ = "Craig Johnston" __version__ = "0.0.1" __license__ = "MIT" import os from elasticsearch import Elasticsearch from ...
22.195122
74
0.530769
aba1fc8afb25aec62edcd1c87d8bfdfa9da825ec
6,221
py
Python
train_scripts/segmentation/train.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
train_scripts/segmentation/train.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
train_scripts/segmentation/train.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import sys #Change path specificly to your directories sys.path.insert(1, '/home/codahead/Fishial/FishialReaserch') import os from utils import run_eval_checkpoints from utils import get_current_date_in_format from utils import get_dataset_dicts from utils import remove_tmp_files from utils import save_json from modu...
42.609589
148
0.559074
abf3ac39e03b2999c7148398d06089f2be9e4229
2,218
py
Python
pkg/suggestion/v1beta1/nas/enas/AlgorithmSettings.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
17
2018-04-04T08:44:06.000Z
2018-04-19T18:02:05.000Z
pkg/suggestion/v1beta1/nas/enas/AlgorithmSettings.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
58
2018-04-03T19:05:50.000Z
2018-04-19T16:14:04.000Z
pkg/suggestion/v1beta1/nas/enas/AlgorithmSettings.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
10
2018-04-04T02:06:20.000Z
2018-04-19T08:53:04.000Z
# Copyright 2022 The Kubeflow Authors. # # 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 in ...
38.912281
109
0.653291
f9f56892f213bf095cc619549a1ecce520565f1f
3,368
py
Python
CLI Tools/extractGeoDataFromFolder.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
null
null
null
CLI Tools/extractGeoDataFromFolder.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
38
2018-10-24T08:51:58.000Z
2021-12-13T19:54:39.000Z
CLI Tools/extractGeoDataFromFolder.py
Geosoft2/Geosoftware-II-AALLH
bdb61d9a1111b9082ec2b9f309998c5f2166975e
[ "MIT" ]
12
2018-10-24T08:20:13.000Z
2019-08-12T08:10:14.000Z
""" @Author Henry Fock """ import sys import os # add local modules folder # file_path = os.path.join('..', 'Python_Modules') # sys.path.append(file_path) import getBoundingBox as box import getTimeExtent as timeEx import threading from os import listdir from os.path import isfile, join from osgeo import ogr import c...
30.618182
145
0.5769
e63bce2c3d41f23a79a149a5a1b6581c36eedbc0
243
py
Python
pacman-termux/test/pacman/tests/sign001.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/sign001.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/sign001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Add a bogus signature to a package DB" self.require_capability("gpg") sp = pmpkg("pkg1") sp.pgpsig = "asdfasdfsdfasdfsdafasdfsdfasd" self.addpkg2db("sync+Optional", sp) self.args = "-Ss" self.addrule("PACMAN_RETCODE=0")
22.090909
58
0.744856
05579e300938345ea0a0381179cab05f9559a61c
2,732
py
Python
cs/lambda_cs/03_data_structures/notes/lru_cache_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/03_data_structures/notes/lru_cache_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/03_data_structures/notes/lru_cache_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Data Structures :: LRU Cache """ from doubly_linked_list import DoublyLinkedList class LRUCache: def __init__(self, limit=10): """The LRUCache class keeps track of the max number of nodes it can hold, the current number of nodes it is holding, a doubly- linked list that holds the key-...
30.355556
71
0.59041
056f51a75d1cb58d6be7c45e18e714c9ee77f1e6
456
py
Python
source/blog/migrations/0006_auto_20180902_1856.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0006_auto_20180902_1856.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
source/blog/migrations/0006_auto_20180902_1856.py
JakubGutowski/PersonalBlog
96122b36486f7e874c013e50d939732a43db309f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.5 on 2018-09-02 18:56 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_postcomments_pubdate'), ] operations = [ migrations.AlterField( model_name='postcomments', ...
22.8
98
0.622807
e9870dcc04e0aa4a3128607252d76bd9b345291f
721
py
Python
src/test/tests/databases/scale_mesh.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/scale_mesh.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/databases/scale_mesh.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: scale_mesh.py # # Purpose: Tests whether or not we try to scale a mesh when only one # of its dimensions are out of whack (we shouldn't). # # Programmer: Hank Childs # Date: April...
25.75
78
0.536755
ddbadfa9f60397b5c5190f4c181b5f4feb6b078d
1,590
py
Python
scripts/ssanova/con-checker.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/con-checker.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/ssanova/con-checker.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
# Checks whether # Can easily be extended to any processing task that takes place # in a subject directory and involves outputs of easily identifiable # files. # Usage: python con-checker.py [directory containing all acquisitions/data/etc] # Authors: Matthew Faytak (faytak@ucla.edu) Copyright (c) 2018 # L...
26.5
84
0.677358
b5f71710b10dab5062826fd512a3027429ea1b90
9,554
py
Python
main.py
peterneorr/BeautyRestReminder
70e2046093c0d35132db08237ad7fbd16fa0fb67
[ "MIT" ]
null
null
null
main.py
peterneorr/BeautyRestReminder
70e2046093c0d35132db08237ad7fbd16fa0fb67
[ "MIT" ]
null
null
null
main.py
peterneorr/BeautyRestReminder
70e2046093c0d35132db08237ad7fbd16fa0fb67
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import sys,time from datetime import datetime,timedelta import json GPIO.setwarnings(False) #byte patterns for 7segment led digits 0-F digits = [0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, 0x77, 0x7c, 0x39, 0x5e, 0x79, 0x71 ] #byte pattern for a decimal point D...
25.545455
120
0.57557
2f53c8d167b568d124d1e61403710fddc2da1da9
355
py
Python
hello/hello_itchat.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_itchat.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_itchat.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import itchat @itchat.msg_register(itchat.content.TEXT) def print_content(msg): print(msg) itchat.send('greeting, filehelper!', "filehelper") name = itchat.search_friends(name='谁啊')[0] print(name) name.send("good") itchat.auto_login(hotReload=True) ...
17.75
54
0.684507
23d7a4ebdd1014f6ff09dc84f514321aab7cdc68
1,735
py
Python
presentations/ICPC-Referat/Material/kosaraju.py
keithmannock/LaTeX-examples
6829f6cf9710b314a4bf0b64abdae5bcf6997fd0
[ "MIT" ]
2
2017-11-02T10:09:12.000Z
2017-11-24T22:16:18.000Z
presentations/ICPC-Referat/Material/kosaraju.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
presentations/ICPC-Referat/Material/kosaraju.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ @source: http://codehiker.wordpress.com/2012/04/06/kosarajus-scc/ I made minor changs """ import sys sys.setrecursionlimit(300000) source = 'SCC.txt' N = 875714 #globals visited = {} finish = {} leader = {} def getG(source): """ Read the Graph fro...
19.277778
69
0.498559
f1f18d077162e2391818321c3b8e525281fc8795
8,773
py
Python
fanpy/graphics.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
1
2021-04-23T19:47:51.000Z
2021-04-23T19:47:51.000Z
fanpy/graphics.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
fanpy/graphics.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
# # Created on Mon Nov 23 2020 # # Copyright (c) 2020 Mohit Anand # # For any details contact itsmohitanand@gmail.com # ## The goal of this script is to create plots from the output of forest model with mininum dependencies. import pandas as pd import matplotlib.pylab as plt import numpy as np from typing impor...
33.231061
118
0.643224
c87655c60a7228bde4472b7de08d546d685c59ce
556
py
Python
exercises/pt/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/exc_03_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.language import Language # Defina o componente customizado @Language.component("length_component") def length_component_function(doc): # Calcule o tamanho do doc doc_length = ____ print(f"Este documento tem {doc_length} tokens.") # Retorne o doc ____ # Carregue o fluxo de ...
24.173913
79
0.758993
b51e240b8d0686b66d680a37df76bdbb9409b777
1,969
py
Python
Problems/Depth-First Search/easy/MergeTwoBinaryTree/merge_two_binary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/MergeTwoBinaryTree/merge_two_binary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/MergeTwoBinaryTree/merge_two_binary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # def mergeTrees(root1: Optional[TreeNode], root2: Optional[TreeNode]) -> Optional[TreeNode]: # if not root1 and not root2: # return ...
31.758065
93
0.606399
f59e3d02a819e97c5ee4d59d143c5264e0742b2f
413
py
Python
tests/onegov/fsi/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.fsi.forms.course import InviteCourseForm def test_course_invite_form(): form = InviteCourseForm( data={ 'attendees': '\n'.join(( 'test1@email.com, test2@email.com', 'newline@email.com' )) } ) assert form.get_useful_data() ...
22.944444
52
0.525424
275dcfedfa5aeba93537fc92ac894ce3a8544139
4,382
py
Python
practices/practice_4/task3.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_4/task3.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_4/task3.2.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
from libs.can import CANSocket from libs.myactuator import MyActuator from time import perf_counter import numpy as np # the serial port of device # you may find one by examing /dev/ folder, # this is usually devices ttyACM serial_device = "ttyACM0" # Initiate the can bus socket can_bus = CANSocket(serial_port=serial...
25.32948
117
0.601324
9a452c658b7b301b4519d9ecfc192bd723cfeca4
1,008
py
Python
PythonPro/demo/list.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
PythonPro/demo/list.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
PythonPro/demo/list.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
#coding=utf-8 #列表 / 元组 tup1 = ("all") print (tup1) tup1 = ("all",) print (tup1) # tup = ('physics', 'chemistry', 1997, 2000); # # print (tup); # del tup; # print ("After deleting tup : ") # # 空的元组输出会报错 # print (tup); # tup1 = (12, 34.56); # tup2 = ('abc', 'xyz'); # # # 以下修改元组元素操作是非法的。 # # tup1[0] = 100; # # # 创建一个新...
18.666667
47
0.542659
190d0de0fbd7f74a89226ea92737b87bd453dd73
2,831
py
Python
04-Dijkstra/dijkstra.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
2
2017-11-13T02:51:28.000Z
2017-11-15T02:42:23.000Z
04-Dijkstra/dijkstra.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
null
null
null
04-Dijkstra/dijkstra.py
explodingnuggets/Grafos-UFSCar
d149157a9f7ecfd2f519cc52e1bdfcb910c2ffad
[ "MIT" ]
1
2017-11-13T02:51:32.000Z
2017-11-13T02:51:32.000Z
#!/bin/python import matplotlib.pyplot as plt import networkx as nx import random # Função que implementa o algoritmo de Dijkstra. def dijkstra(graph, sources): # Inicializa a cor dos vértices (white: não visitado, black: visitado) nx.set_node_attributes(graph, 'white', 'color') # Inicializa a lambda (distância mí...
38.780822
102
0.626987
efb7d25f4cb0d5c964629a39d36760fd14e1d350
1,055
py
Python
hyper_param.py
modriczhang/R3S
039dc4766d1405277146b6580b620767079f4435
[ "Apache-2.0" ]
6
2021-04-09T07:40:48.000Z
2022-02-19T13:58:49.000Z
hyper_param.py
xrb92/R3S
bc39fd90bb3f3cec195d69bebce61e7cd91243df
[ "Apache-2.0" ]
1
2021-03-26T10:07:41.000Z
2021-06-11T06:37:59.000Z
hyper_param.py
xrb92/R3S
bc39fd90bb3f3cec195d69bebce61e7cd91243df
[ "Apache-2.0" ]
2
2021-07-01T02:24:18.000Z
2021-07-03T14:50:11.000Z
''' Model Hyper Parameter Dict April 2021 modric10zhang@gmail.com ''' param_dict = { 'feat_dim' : 6, # feature embedding dimension 'user_field_num' : 5, # number of user feature fields 'doc_field_num' : 5, # number of doc feature fi...
43.958333
90
0.452133
4bdd80a50dd8e650ba0447bc08ee5a42574cd655
744
py
Python
handlemoursedata/com/aaron/bean/component_prop.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
handlemoursedata/com/aaron/bean/component_prop.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
handlemoursedata/com/aaron/bean/component_prop.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on 2019-04-20 @FileName: component_prop.py @Description: 处理行业参数数据 @author: 'Aaron.Qiu' @version V1.0.0 ''' class ComponentProp: __prop_name = '' __prop_value = '' def __init__(self,prop_name,prop_value): self.__prop_name = prop_name self.__prop_value = pr...
21.257143
57
0.653226
4be0dab8fd7bb2c0183d05d5a84ea5313d4a80a9
792
py
Python
demos/Multiscale/bonding_curve/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/bonding_curve/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/bonding_curve/model/sys_params.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# Model parameters from .parts.utils import * hatch_raise = 100000 # fiat units hatch_price = .1 #fiat per tokens theta = .5 #share of funds going to funding pool at launch R0 = hatch_raise*(1-theta) # initial reserve S0 = hatch_raise/hatch_price # initial supply kappa = 2 # bonding curvature parameter V0 = invaria...
23.294118
58
0.589646
32b466b1aab179415e89788f5023010f698b793d
2,731
py
Python
packages/watchmen-meta/src/watchmen_meta/auth/auth_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/auth/auth_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-meta/src/watchmen_meta/auth/auth_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from typing import Callable, Optional from watchmen_meta.admin.user_service import USER_ENTITY_NAME, USER_ENTITY_SHAPER from watchmen_meta.common import ask_meta_storage from watchmen_meta.system.pat_service import PAT_ENTITY_NAME, PAT_ENTITY_SHAPER from watchmen_model.admin import User f...
28.154639
106
0.772245
9d475e44c658581dbef94699b0cf2bd2233d8359
2,775
py
Python
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/tea5767.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/tea5767.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/tea5767.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import time class Radio: FREQ_RANGE_US = (87.5, 108.0) FREQ_RANGE_JP = (76.0, 91.0) ADC = (0, 5, 7, 10) ADC_BIT = (0, 1, 2, 3) def __init__(self, i2c, freq=0.0, band='US', stereo=True, soft_mute=True, noise_cancel=True, high_cut=True): self._i2c = i2c sel...
34.6875
109
0.57045
a08e7681d414df144517fc0dbb8dc60768df2564
1,673
py
Python
novel/analysis/hibiscusTools.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
novel/analysis/hibiscusTools.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
novel/analysis/hibiscusTools.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#coding=utf-8 ''' Created on 2016-1-23 @author: kwsy ''' import re import math minLen = 1 maxLen = 4 def getAllChineseCharacters(content): regex = '[\u4e00-\u9fa5]+' res=re.findall(regex, content) return res def getLatentword2(txt,length,width,index): lst = [] for i in range(length): if...
24.246377
97
0.567842
a0b4212ad80704167307839e8ac387997ebe3e12
217
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.7-find-string-into-full-string-using-find-mathod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.7-find-string-into-full-string-using-find-mathod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/pg-8.7-find-string-into-full-string-using-find-mathod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
country = "Bangladesh" find = country.find("Ban") print(find) find = country.find("ang") print(find) find = country.find("Bangla") print(find) find = country.find("Bengla") print(find) find = country.find("desh")
14.466667
29
0.691244
3e8180f5aa7d7ab066c50d181d70e75764ee7d22
5,105
py
Python
kicker_pong_performer.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong_performer.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
kicker_pong_performer.py
GeorgJohn/kicker_pong_git
2263737cab1f74f324772855028f8a4c3b23c4de
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import random import pygame import kicker_pong.Environment_Controller as Env slim = tf.contrib.slim def epsilon_greedy_action(action_distribution, epsilon=1e-1): if random.random() < epsilon: return np.argmax(np.random.random( action_distribution.shap...
40.19685
107
0.686974
e437a51deabdf3c9efeb6686a0c8a098b5c3a61c
9,420
py
Python
x2paddle/project_convertor/pytorch/torch2paddle/ops.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/project_convertor/pytorch/torch2paddle/ops.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/project_convertor/pytorch/torch2paddle/ops.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
25.322581
78
0.597665
e439abe69aab732429c24d8aa05905c964251f63
8,941
py
Python
research/cv/ibnnet/src/resnet_ibn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ibnnet/src/resnet_ibn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ibnnet/src/resnet_ibn.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...
28.935275
104
0.523208
e476b95c459ded4e06ff3431be104491fd36a9ad
1,733
py
Python
tests/test_standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_standorteigenschaftenallgemein.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
import pytest # type:ignore[import] from bo4e.com.standorteigenschaftenallgemein import StandorteigenschaftenAllgemein, StandorteigenschaftenAllgemeinSchema from tests.serialization_helper import assert_serialization_roundtrip # type:ignore[import] example_standorteigenschaften_allgemein = StandorteigenschaftenAllg...
38.511111
120
0.755338
5f9b30afc70da54787010fd5f4b6a3a3d4fd5a3e
2,952
py
Python
03 Python/Smart Home Dashboard/aufgabe/widgets/window.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/aufgabe/widgets/window.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/aufgabe/widgets/window.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
1
2020-10-10T20:24:05.000Z
2020-10-10T20:24:05.000Z
import time, pygame from pygame.locals import * class MainWindow: """ Hauptklasse der Benutzeroberfläche. Diese Klasse erzeugt das Hauptfenster und kümmert sich darum, alle darin enthaltenen Elemente regelmäßig neu zu zeichnen. """ def __init__(self, title, w, h, fps, widgets, update_cb=None):...
35.142857
85
0.601965
399e506cdfc405a37f0b66125cd86393350db044
674
py
Python
3_DeepLearning-CNNs/01_Images-Basics/images.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/01_Images-Basics/images.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
3_DeepLearning-CNNs/01_Images-Basics/images.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt # Schwarz Weiß Bilder (1d) bild = np.array([0,1,1,1,1,1,0,0,0,], dtype=np.uint8) print("\nB/W (1D):\n",bild) plt.imshow(bild.reshape((3, 3)), cmap="gray") plt.show() # Grauwert Bild (2d) bild = np.array([[0,100,100], [255,255,255], ...
26.96
53
0.531157
39e7029526091eda267bab097d41bd829cdc5d69
14,006
py
Python
research/cv/glore_res50/src/glore_resnet50.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/glore_res50/src/glore_resnet50.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/glore_res50/src/glore_resnet50.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.458228
103
0.551692
d9f40cca90da35e723b76323dadd9d34fadfba18
12,346
py
Python
frappe-bench/apps/erpnext/erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/doctype/purchase_receipt/test_purchase_receipt.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import unittest import frappe, erpnext import frappe.defaults from frappe.utils import cint, flt, cstr, today, random_string from erpnext.stock.doctype...
36.311765
113
0.748907
76d729ef5573c1a2b5a8ccd4c8bf636ca193f569
328
py
Python
scripts/figures/figure6/mps_30s/remote_run_data.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
scripts/figures/figure6/mps_30s/remote_run_data.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
scripts/figures/figure6/mps_30s/remote_run_data.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
import os import sys from scripts.common.util import RunDocker def main(): with RunDocker('pipeswitch:mps', 'figure6_mps_30s') as rd: # Start the server: mps rd.run('python PipeSwitch/scripts/run_data.py') # Get and return the data point if __name__ == '__main__': ...
23.428571
63
0.628049
7c340941d15a014fb34d3efb72df6cb73d07bf0c
1,206
py
Python
src/bo4e/enum/artikelid.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/artikelid.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/artikelid.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class ArtikelId(StrEnum): """ Liste von Artikel-IDs, z.B. für standardisierte vom BDEW herausgegebene Artikel, die im Strommarkt die BDEW-Artikelnummer ablösen """ # von allen enums ist das hier wohl das mit den unpa...
50.25
118
0.731343
7c7824e4029e14eb94532fc83e36b9c5d37c3759
501
py
Python
SleekSecurity/layers/plugins/fingerprint/waf/sonicwall.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/waf/sonicwall.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/waf/sonicwall.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt from re import search,I def sonicwall(headers,content): _ = False _ |= search(r"This request is blocked b...
29.470588
77
0.676647
86794e39c7f256640f3150012dd75bd9c9e39592
92
py
Python
2014/06/table-google-yahoo-gender/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/06/table-google-yahoo-gender/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/06/table-google-yahoo-gender/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '10-PORS1V67CmwklCva5okcs3J82P6OyH5YkE9Tel87I'
23
68
0.836957
810ff864c3226ab13ec7825f8edeaca98902378c
337
py
Python
myspiders/ruia/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/ruia/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/ruia/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from .field import AttrField, BaseField, HtmlField, RegexField, TextField, JsonField, Bs4HtmlField, Bs4TextField, Bs4AttrField, Bs4AttrTextField from .item import Item from .middleware import Middleware from .request import Request from .response import Response, PyppeteerResponse from .spider import Spider from .maste...
37.444444
144
0.833828
be18fa530a781c773e1c448c7e07fbb5a1385a43
1,740
py
Python
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
4
2020-01-18T14:35:03.000Z
2021-11-30T00:19:53.000Z
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
1
2020-03-19T12:09:05.000Z
2020-03-19T12:09:05.000Z
Math-Ba-OPTINUM/OPTINUM_2_Vorlesung/programme/euler.py
oakoneric/mathTUD
350d53b18ea2dff9ab2e75c6e21489b20e8a4f39
[ "MIT" ]
3
2020-02-18T20:03:25.000Z
2021-11-30T00:20:26.000Z
#! /usr/bin/env python3 # usage: ./euler.py <λ=1> <h=0.05># # $ apt install python3-matplotlib python3-tk import math import matplotlib.pyplot as plt import sys x0 = 0. h = 0.05 T = 5. λ = 1. y0 = 1. # Right-hand side and initial value # y' = λ y def f(x, y): return λ * y # Analytical solution for comparison de...
20.714286
94
0.536207
ed1d69e80de4496f6bc5f1866205030a0de66453
1,049
py
Python
frappe-bench/apps/erpnext/erpnext/education/setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/setup.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from erpnext.setup.utils import insert_record def setup_education(): if frappe.db.exists('Academic Year', '2015-16'): ...
36.172414
86
0.694948
71ee5158567bf057f53858b053496ad531f3e2ef
1,192
py
Python
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Sixgill-Darkfeed/Scripts/SixgillSearchIndicators/SixgillSearchIndicators.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 * DEFAULT_SIZE = 50 def search_indicators(args): keys = ['id', 'value', 'CustomFields', 'type', 'score', 'firstSeen', 'lastSeen', 'expiration', 'expirationStatus', 'sourceBrands', 'sourceInstances'] query = args.get('query', None) ...
28.380952
98
0.621644
71f1fbf69f0ee16627e78af8127400d4c1c5e7ea
553
py
Python
src/bo4e/enum/rechnungslegung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/rechnungslegung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/rechnungslegung.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Rechnungslegung(StrEnum): """ Aufzählung der Möglichkeiten zur Rechnungslegung in Ausschreibungen. """ MONATSRECHN = "MONATSRECHN" #: monatsscharfe Rechnung ABSCHL_MONATSRECHN = "ABSCHL_MONATSRECHN" #: Abschl...
36.866667
93
0.761302
92ca301ff568f8228c2db1c6c52073c0f47c6ea6
672
py
Python
easy/1/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
1
2019-02-26T16:34:06.000Z
2019-02-26T16:34:06.000Z
easy/1/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
easy/1/python/app.py
carlan/dailyprogrammer
f8448c6a35277c567d0f1ecab781d45b294c8d0f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """app.py: challenge #1""" __author__ = "Carlan Calazans" __copyright__ = "Copyright 2016, Carlan Calazans" __credits__ = ["Carlan Calazans"] __license__ = "MIT" __version__ = "1.0.0" __maintainer__ = "Carlan Calazans" __email__ = "carlancalazans at gmail dot com" __status...
28
101
0.677083
13e08b5909dc7c5f60516d45be35b6cbb15ddb46
528
py
Python
IVTp/2014/Karamyan/Karamyan 6_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 6_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 6_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6, Вариант 8 # Создайте игру, в которой компьютер загадывает имя одного из двух # сооснователей компании Google, а игрок должен его угадать. # Карамян Н.Г. # 23.05.2016 import random name = random.randrange(2) if (name) == 0: name = "Пейдж" elif (name) == 1: name = "Брин" print (...
17.6
70
0.609848
dbe3a252dfa29e998b1e6eccc7b3356526329d91
1,004
py
Python
2021/DEFCON 2021 quals/backend.py
LeKSuS-04/Capture-The-Flag
7cfe5b716566d4d2d58c53d4eedd647bc15a3328
[ "WTFPL" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DEFCON/2021/Quals/crypto/qoo-or-ooo/backend.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DEFCON/2021/Quals/crypto/qoo-or-ooo/backend.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
""" This is a public file """ from qunetsim import Network def setup_game(hacker, zardus, plays): network = Network.get_instance() network.start() network.delay = 0.0 network.add_host(zardus.host) network.add_host(hacker.host) t = zardus.host.run_protocol(zardus.secret_protocol, (hacker, pla...
22.818182
75
0.697211
e05395372b1d3b1f93946cb2dca60d971fa09db9
1,363
py
Python
exercises/en/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(pattern) == 3 ), "The pattern should describe three tokens (three dictionaries)." assert ( isinstance(pattern[0], dict) and isinstance(pattern[1], dict) and isinstance(pattern[2], dict) ), "Each entry in a pattern should be a dictionary." asse...
42.59375
90
0.61482
16b18d8a70d2c9ec9f16d67de0a7d550fc81ff1c
430
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 56/56.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 56/56.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 56/56.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Store the dict to a json file import json d = {"employees":[{"firstName": "John", "lastName": "Doe"}, {"firstName": "Anna", "lastName": "Smith"}, {"firstName": "Peter", "lastName": "Jones"}], "owners":[{"firstName": "Jack", "lastName": "Petter"}, {"firstName": "Jessy", "last...
33.076923
61
0.560465
9117b33ecd1187c5be33915c69bb1539327dc124
928
py
Python
Curso_Python/Secao5-modulos-uteis/127_CSV_Comma_Separated_Values/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/127_CSV_Comma_Separated_Values/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/127_CSV_Comma_Separated_Values/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Comma Separated Values - CSV (Valores separados por vírgula) É um formato de dados muito usado em tabelas (Excel, Google Sheets), bases de dados, clientes de e-mail, etc... """ import csv with open('clientes.csv', 'r') as file: dice = [x for x in csv.DictReader(file)] # # dice = csv.reader(file) # for...
21.581395
77
0.487069
914d6be54f710a29a0392ead0badb088296d8d25
406
py
Python
python/python_backup/PRAC_PYTHON/ho.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ho.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ho.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class palindrome: def __init__(self): self.a="" def input(self,k1): self.a=k1 def calculate(self): f=0 j=len(k1)-1 while i<len(k1)/2: if k1[i]!=k1[j]: f=1 break i=i+1 j=j-1 if f==0: print "self.a is palindrome" else: print "self.a is ...
18.454545
38
0.529557
fc33510fe34fa01c78a0d08ad1a5acbb640632e8
5,205
py
Python
research/cv/AttGAN/src/attgan.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttGAN/src/attgan.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttGAN/src/attgan.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.272059
113
0.552546
fc9a52f8a7467e2e6e545272a8e870a07f3a6690
57
py
Python
R3/clean.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
R3/clean.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
R3/clean.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
#!/usr/bin/python import RPi.GPIO as GPIO GPIO.cleanup()
14.25
23
0.736842
5dddbc53e10317c1dbb86734b3353374759fa520
615
py
Python
pacman-arch/test/pacman/tests/clean002.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/clean002.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/clean002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "CleanMethod = KeepCurrent" sp = pmpkg("dummy", "2.0-1") self.addpkg2db("sync", sp) sp = pmpkg("bar", "2.0-1") self.addpkg2db("sync", sp) sp = pmpkg("baz", "2.0-1") self.addpkg2db("sync", sp) lp = pmpkg("dummy", "1.0-1") self.addpkg2db("local", lp) lp = pmpkg("bar", "2.0-1") self.addpkg2db("loca...
22.777778
46
0.673171
5d7432d4d51395691d32bb422079fe39887d4607
4,347
py
Python
src/de/simocracy/postwriter/plugins/flpwr-v-check.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
src/de/simocracy/postwriter/plugins/flpwr-v-check.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
src/de/simocracy/postwriter/plugins/flpwr-v-check.py
Simocracy/PostWriter
279d8b33c1ce4f3474b73dcfe7e16dc5047b05c1
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- import urllib, re, urllib2, cookielib """ Skript zur Auslese der aktuellen Postwriterversion 12-05-02 Fluggs Input: py_wikiusername, py_wikipassword Output: py_loginError -- 0 bei erfolgreichem Wikilogin, Errorstring bei Fehler py_pwrVersion -- Postwriter-Versionsstring aus dem Versionsk...
37.153846
112
0.661146
538d1033cd27a1a7552a54e6f74cc24ee4bf7357
569
py
Python
pacman-arch/test/pacman/tests/replace103.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/replace103.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/replace103.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sysupgrade with a replace on a provider" sp1 = pmpkg("util-linux", "2.19.1-2") sp1.provides = ["util-linux-ng=2.19.1"] sp1.conflicts = ["util-linux-ng"] sp1.replaces = ["util-linux-ng"] self.addpkg2db("sync", sp1) sp2 = pmpkg("util-linux-git", "20110811-1") sp2.replaces = ["util-linux-ng"] sp2.con...
28.45
60
0.690685
54d7ec5ed07ca49c7c244aa934194cae1fb6fd66
1,974
py
Python
tests/engine/scheduler_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2020-12-18T02:42:23.000Z
2020-12-18T02:42:23.000Z
tests/engine/scheduler_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
tests/engine/scheduler_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
null
null
null
from torch import nn, optim from torch.utils import data from pytorch_lightning import Trainer from asteroid.engine.system import System from asteroid.utils.test_utils import DummyDataset from asteroid.engine.schedulers import NoamScheduler, DPTNetScheduler def common_setup(): model = nn.Sequential(nn.Linear(10...
27.802817
95
0.676798
071930d3cf40649582cf2f2bb438c7dfe43b4de2
4,702
py
Python
practices/practice_2/task3.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_2/task3.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_2/task3.1.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
from libs.can import CANSocket from libs.myactuator import MyActuator from time import perf_counter import numpy as np import matplotlib.pyplot as plt serial_device = "ttyACM1" # Initiate the can bus socket can_bus = CANSocket(serial_port=serial_device) # Initiate motor motor = MyActuator(can_bus=can_bus) # Set th...
24.747368
184
0.573373
072d4644edbae58f70d929b7e42994a07985f738
286
py
Python
Curso-Em-Video-Python/2Exercicios/016_Quebrando_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/016_Quebrando_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/016_Quebrando_um_numero.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
'''from math import floor numero = float(input('Digite um numero: ')) print('O valor digitado foi {}, e o seu valor inteiro é {}'.format(numero, floor(numero)))''' numero = float(input('Digite um numero: ')) print('O valor {}, e o seu numero inteiro é {}'.format(numero, int(numero)))
40.857143
93
0.674825
4af0401fbe1d58968b9a09c18e1b93e92da68396
4,117
py
Python
web-brutator-master/lib/core/Requester.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
web-brutator-master/lib/core/Requester.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
web-brutator-master/lib/core/Requester.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import enum import requests import requests_ntlm from bs4 import BeautifulSoup from urllib.parse import urljoin from lib.core.ArgumentsParser import * from lib.core.Config import * from lib.core.Exceptions import RequestException import lib.core.Globals as Globals class...
30.954887
87
0.553558
37df3caaef807219ce2c45ebe8315ba895926ddb
761
py
Python
exercises/fr/exc_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_03_11.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.tokens import Span nlp = spacy.load("fr_core_news_sm") def get_wikipedia_url(span): # Retourne une URL Wikipédia si le span possède un des libellés if ____ in ("PER", "ORG", "GPE", "LOCATION"): entity_text = span.text.replace(" ", "_") return "https://fr.wikipedia.org/...
30.44
77
0.70565
5346a127b15600c00419ebb1e955613eab847307
4,330
py
Python
tools/coronaVaccinationPoller.py
FloEdelmann/vaterstetten-in-zahlen
4c76170d5123eaa091a8d01a51d746659bed7203
[ "MIT" ]
null
null
null
tools/coronaVaccinationPoller.py
FloEdelmann/vaterstetten-in-zahlen
4c76170d5123eaa091a8d01a51d746659bed7203
[ "MIT" ]
null
null
null
tools/coronaVaccinationPoller.py
FloEdelmann/vaterstetten-in-zahlen
4c76170d5123eaa091a8d01a51d746659bed7203
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bs4 import BeautifulSoup import csv from datetime import date import os import re import requests import sys import traceback def parse_website() -> dict: req = requests.get('https://lra-ebe.de/aktuelles/informationen-zum-corona-virus/impfzentrum/') if req.status_code != 200: rais...
30.70922
184
0.692841
72595d62158cd7b0f6001aaea3f73df4155385ea
12,535
py
Python
official/nlp/cpm/src/attention.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/cpm/src/attention.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/cpm/src/attention.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...
44.137324
114
0.633506
72d400946a51bcbaada12d360dc3f773fe9c5466
814
py
Python
beispielanwendungen/packaging/src/helloworld/mainwindow.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/packaging/src/helloworld/mainwindow.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/packaging/src/helloworld/mainwindow.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
# -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui from ui.ui_helloworld import Ui_MainWindow class MyMainWindow(QtGui.QMainWindow): def __init__(self, *args): QtGui.QMainWindow.__init__(self, *args) self.ui = Ui_MainWindow() self.ui.setupUi(self) self.createConnec...
32.56
82
0.659705