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
708320e542bee2ace3fdde1cfc9cc2bc01ab8c11
7,071
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_mte_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_mte_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_mte_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. import os ...
27.729412
151
0.542639
8eaaed721fb3d6687b22bb2da655a45bb5ec6ec6
1,312
py
Python
python/en/archive/topics/command_line_arguments/tutorialspoint.com/test.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/tutorialspoint.com/test.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/command_line_arguments/tutorialspoint.com/test.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' aimldl > python3 > topics > command_line_arguments > tutorialspoint.com > test.py Rev.2: 2019-11-07 (Thu) Rev.1: 2019-03-01 (Fri) Draft: 2018-11-08 (Thu) Source: Python - Command Line Arguments https://www.tutorialspoint.com/python/python_command_line_argume...
24.296296
81
0.609756
7989a779a97d51462ef43c93da26103007a81a57
6,291
py
Python
Versuch3/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch3/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch3/task2.2.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import matplotlib.pyplot as plt import numpy as np # Array um die einzelnen .csv Dateien einzulesen des kleinen Lautsprechers klein = ["klein100", "klein200", "klein300", "klein400", "klein500", "klein700", "klein850", "klein1000", "klein1200", "klein1500", "klein1700", "klein2000", "klein3000", "klein4000", ...
43.993007
112
0.728183
79a3d7ce49c885063d8aea0127ca1380d9a3e1db
465
py
Python
polls/models.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
polls/models.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
polls/models.py
Murphy-KS/MyTimeMashine
a1cd5b17b239a556b1d234aace9b333f71ec2045
[ "MIT" ]
null
null
null
from django.db import models class Poll(models.Model): name = models.CharField(max_length=256) slug = models.SlugField() def __str__(self): return self.name class Choice(models.Model): poll = models.ForeignKey(to='Poll', on_delete=models.CASCADE) name = models.CharField(max_length=256) ...
22.142857
65
0.690323
79b6e6a8fa2376f22fec9dcfd810f7ee05be6047
640
py
Python
test/unit/level_test.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
test/unit/level_test.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
test/unit/level_test.py
hdkai/Raw-IO
f0fa928d7ef59a363c6f4c876d642af6dede6ae4
[ "Apache-2.0" ]
null
null
null
# # RawIO # Copyright (c) 2021 Yusuf Olokoba. # from PIL import Image from pytest import fixture, mark from rawio.align import align_level IMAGE_PATHS = [ "test/media/level/3.jpg", "test/media/level/9.jpg", "test/media/level/16.jpg", "test/media/level/53.jpg", "test/media/level/69.jpg", ...
23.703704
52
0.679688
79ceb92746ad52c5e263b8b5868a3411ec1561e4
540
py
Python
task_manager/task_manager/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
task_manager/task_manager/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
task_manager/task_manager/tasks/models.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.db import models class Task(models.Model): OPEN = 'Open' IN_PROGRESS = 'In progress' COMPLETE = 'Complete' STATUSES = [(x, x) for x in (OPEN, IN_PROGRESS, COMPLETE)] title = models.CharField( max_length=30, verbose_name='Task', ) description = models.CharFiel...
19.285714
62
0.596296
5c08492240a64ab83064427e80afaefdaee2e122
2,851
py
Python
save_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
save_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
save_anomalies.py
JoelHaubold/NzmLabeling
363c027ce6584899025f79ea4758e1808b2aa96a
[ "MIT" ]
null
null
null
import pandas as pd from pathlib import Path import os import numpy as np def calculate_voltage_steps(df_phases): result_df = pd.DataFrame() phase_counter = 1 for df_p in df_phases: steps_up = list(np.where(df_p.Value.diff() > 1)[0]) steps_down = list(np.where(df_p.Value.diff() < -1)[0]) ...
37.513158
100
0.670642
eb8709055f55f0ed43f465e44b3fc8f5fa405f23
2,288
py
Python
DataStructures/Heap/Median.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Heap/Median.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Heap/Median.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 import heapq as heapq_min #大小顶堆,0.55s #如果都是正值,可以用小顶堆保存负值来实现大顶堆 class Heapq_max(object): def heappush(self, heap, item): i = len(heap) heap.append(None) while i > 0 and heap[(i-1)/2] < item: heap[i] = heap[(i-1)/2] i = (i-1)/2 heap[i] = i...
22.88
59
0.480332
d66941d2852714bf2ee5b50894c8f0f4c1bd9475
357
py
Python
foundation/www/conf/2017/volunteers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
59
2017-03-15T08:14:52.000Z
2021-11-17T14:21:58.000Z
foundation/www/conf/2017/volunteers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
147
2017-01-25T10:44:47.000Z
2020-11-05T04:24:22.000Z
foundation/www/conf/2017/volunteers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
134
2017-03-14T14:04:21.000Z
2022-03-18T08:19:47.000Z
def get_context(context): context.volunteers = [ dict( name='Manas Solanki', title='Conference Manager', contact='manas@erpnext.com' ), dict( name='Prakash Hodage', title='Tickets and Registration', contact='prakash@erpnext.com' ), dict( name='Ameya Shenoy', title='Guest Relations', ...
18.789474
36
0.655462
031cbadd0239267615d2ad3a904ea30c96d1a5e6
161
py
Python
models.py
EGoesche/temperature-api
7dfe8f67bfd14cab0bf376ac20b101c4ce8ad79a
[ "MIT" ]
null
null
null
models.py
EGoesche/temperature-api
7dfe8f67bfd14cab0bf376ac20b101c4ce8ad79a
[ "MIT" ]
null
null
null
models.py
EGoesche/temperature-api
7dfe8f67bfd14cab0bf376ac20b101c4ce8ad79a
[ "MIT" ]
null
null
null
from app import db class Temperature(db.Model): id = db.Column(db.Integer, primary_key=True) date = db.Column(db.Text) degrees = db.Column(db.Float)
26.833333
48
0.695652
03461dee1f6e44f355ec6335cb01384917827497
1,028
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_doctypes_and_reports.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_doctypes_and_reports.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/remove_doctypes_and_reports.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.table_exists("Time Log"): frappe.db.sql("""delete from `tabDocType` where name in('Time Log Batch', 'Time Log Batch Detail', 'Time Log')""") frappe.db.sql("""delete from `tabDocField` where parent in ('Time Log', 'Time Log Batch')""") frappe.db.sql("""update `tabCusto...
38.074074
116
0.683852
035dca4599e4d238037e55eea712342da20905ba
1,267
py
Python
savageml/utility/activation_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/utility/activation_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/utility/activation_functions.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
from typing import Union import numpy as np def sigmoid_der(y: Union[int, float, np.array]) -> Union[int, float, np.array]: return np.multiply(np.subtract(1.0, y), y) def tanh_derivative(y: Union[int, float, np.array]) -> Union[int, float, np.array]: return np.subtract(1.0, np.square(y)) def sigmoid(x: Un...
25.34
87
0.624309
06ace6489a962bd446210eb830c40dbc720c7529
594
py
Python
listings/chapter10/logistic-regression-sklearn-digits.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter10/logistic-regression-sklearn-digits.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter10/logistic-regression-sklearn-digits.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
from sklearn.datasets import load_digits from sklearn.linear_model import LogisticRegression from sklearn.model_selection import train_test_split # Handschriftenerkennung laden X, y = load_digits(return_X_y=True) # In Trainings- und Testdaten unterteilen, dabei mischen X_train, X_test, y_train, y_test = train_test_sp...
31.263158
61
0.809764
002e2ad0caee271a66fd3ed62d06440eaf052a2b
2,088
py
Python
gopup-example/example1/com/aaron/baidu_index_example.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
gopup-example/example1/com/aaron/baidu_index_example.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
gopup-example/example1/com/aaron/baidu_index_example.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
import pprint import gopup as gp """百度指数示例""" def weibo_index(word): df_index = gp.weibo_index(word=word, time_type="3month") print(df_index) def baidu_search_index(): cookie = "BIDUPSID=76F08CC764C192F0FE44661C9F9DC82B; PSTM=1593486980; " \ "BAIDUID=1BBB90B478E9BC12B46561D8BFF6D0E0:FG=1;...
46.4
110
0.706897
4e12c79f5dbbe12fe5c162994da5dd35bc1b6b58
20
py
Python
extractTool/extractTool/__init__.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
null
null
null
extractTool/extractTool/__init__.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
47
2018-11-13T13:55:01.000Z
2019-09-16T13:38:11.000Z
extractTool/extractTool/__init__.py
corneliazy/Geosoftware2
8604c79c58a61b84c602f16b5f1e74e30dfcbd0e
[ "MIT" ]
4
2018-11-27T12:36:51.000Z
2020-10-14T18:07:04.000Z
name = "extractTool"
20
20
0.75
9d7bf0eabfaeaad46bfb60c36276ffb4e8f7c477
74
py
Python
kollektiv5gui/__main__.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/__main__.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/__main__.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import kollektiv5gui if __name__ == '__main__': kollektiv5gui.main()
14.8
26
0.72973
ae48ce19b68143f5e19860d6a925a3766dba1034
237
py
Python
nz_crawl_demo/day4/ajax/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day4/ajax/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day4/ajax/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from selenium import webdriver #导入驱动器 dirver_path = r"C:\chromedriver_win32\chromedriver.exe" #指明驱动器位置 driver = webdriver.Chrome(executable_path=dirver_path) driver.get("https://www.baidu.com") #请求url print(driver.page_source) #获取网页源代码
39.5
64
0.805907
090119a23d4261794b0aef3cfc5f7229ba9cb702
15,360
py
Python
src/onegov/swissvotes/views/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/views/vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.core.crypto import random_token from onegov.core.security import Private from onegov.core.security import Public from onegov.core.static import StaticFile from onegov.core.utils import normalize_for_url from onegov.file.integration import render_depot_file from onegov.file.util...
30.536779
76
0.612891
1180d6f58afe6cf3721fcaff1b42ebd46cef9d31
10,529
py
Python
chillow/controller/ai_evaluation_controller.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/controller/ai_evaluation_controller.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/controller/ai_evaluation_controller.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from contextlib import closing from datetime import datetime, timedelta, timezone from random import randint import sqlite3 from typing import List from chillow.controller import OfflineController from chillow.model.cell import Cell from chillow.model.direction import Direction from chillow.model.game import Game from...
48.74537
117
0.592269
11932d49bdfe0c50a8e1d4b800b601dc21c11bc5
546
py
Python
utest/reflection.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
utest/reflection.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
utest/reflection.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
import unittest import zencad class ReflectionProbber(unittest.TestCase): def setUp(self): zencad.lazy.encache = False zencad.lazy.decache = False zencad.lazy.fastdo = True def test_types_probe(self): m = zencad.box(10, 10, 10) self.assertEqual(m.faces()[0].shapetype(...
30.333333
69
0.631868
c909aa08ffce90088282f02d6c23c1b813775ccf
471
py
Python
pacman-arch/test/pacman/tests/upgrade045.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/upgrade045.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/upgrade045.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "FS#9235, backup file is broken symlink" lp = pmpkg("foo") lp.files = ["etc/foo.cfg -> etc/foo.cfg"] lp.backup = ["etc/foo.cfg"] self.addpkg2db("local", lp) p1 = pmpkg("foo", "1.0-2") p1.files = ["etc/foo.cfg*"] p1.backup = ["etc/foo.cfg"] self.addpkg(p1) self.args = "-U %s" % p1.filename() self....
24.789474
59
0.670913
a38a2551e9d62aa60c2ed070af844694a4321a6a
5,592
py
Python
tests/test_historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
tests/test_historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
tests/test_historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2021 | KingKevin23 (@kingkevin023) from unittest import TestCase from datetime import date, datetime from json import loads from agspiel.api.historic_ag import HistorischeAg class TestHistorischeAg(TestCase): def setUp(self): f = open("testhistoricag.json", "r") api_data = loads(...
27.278049
87
0.656474
42cdbca8539de27d1c437e74c9cd1452da4d9a89
7,854
py
Python
backend/apps/accounts/models.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/accounts/models.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/accounts/models.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
from datetime import datetime import logging import uuid from django.conf import settings from django.contrib.auth.models import AbstractUser from django.core.mail import EmailMessage from django.db import models from django.utils.translation import gettext_lazy as _ import numpy as np from .email_utils import send_m...
34.447368
108
0.653298
953ac33e3e4aa149323f0b5a5ce21d6d725d39e2
630
py
Python
Chapter7_CodingGuidelines/PEP8/test_isort.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter7_CodingGuidelines/PEP8/test_isort.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
Chapter7_CodingGuidelines/PEP8/test_isort.py
tomex74/UdemyPythonPro
b4b83483fa2d3337a2860d53ff38e68eb38b3ac4
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import sys import numpy as np from my_lib import Object from my_lib import Object2 from my_lib import Object3 from third_party import lib1 from third_party import lib2 from third_party import lib3 from third_party import lib4 from third_party import lib5 from third_pa...
21
38
0.842857
dd34446a28e13b1f941d0bf38a7062ed90873ff5
786
py
Python
urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
urls.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^multivers/', include('apps.multivers.urls', namespace='multivers')), url(r'^grolsch/', include('app...
35.727273
79
0.683206
6611ebd18e2bfdcc70010d2522b981222261adcb
9,541
py
Python
gemtown/modelphotos/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/modelphotos/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/modelphotos/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.permissions import BasePermission, AllowAny, IsAdminUser, IsAuthenticated from . import models, serializers from gemtown.users import models as user_models from gemtown.modelers im...
34.948718
93
0.581071
b03ee334a720411e775789d686f56d105e49105d
1,586
py
Python
Bangsat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Bangsat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Bangsat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/python #coding=utf-8 import os import sys import time import json import requests bacot = ('''\033[1;91m \n@@@@@@@ @@@@@@ @@@ @@@ @@@@@@@@ @@@ @@@ \n@@@@@@@ @@@@@@@@ @@@ @@@ @@@@@@@@ @@@@ @@@ \n @@! @@! @@@ @@! !@@ @@! @@!@!@@@ \n !@! !@! @!@...
46.647059
625
0.424968
c6dbdc9a90d7bb07858aae381a109f0be269dc58
1,739
py
Python
python_playground/data/cvx_simrank.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/cvx_simrank.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/cvx_simrank.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
# convex optimization for SimRank import math import matplotlib.pyplot as plt import numpy as np from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter from sklearn import preprocessing from simrank import adj_mat G = [ (1, 2), (2, 1) ] A = adj_mat(G) A = A.toarray() P = p...
21.469136
71
0.580794
05b3a1d48ba292ddd3c16dc82f69b34ce62be0fb
810
py
Python
challenges/differentRightmostBit/python3/differentRightmostBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/differentRightmostBit/python3/differentRightmostBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/differentRightmostBit/python3/differentRightmostBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
from math import log2 def differentRightmostBit(n, m): return 2**log2((n^m)&-(n^m)) if __name__ == '__main__': input0 = [11, 7, 1, 64, 1073741823, 42] input1 = [13, 23, 0, 65, 1071513599, 22] expectedOutput = [2, 16, 1, 1, 131072, 4] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutput = {}...
57.857143
136
0.682716
afc9821135986409de94cd4acfb1c6781a4889eb
435
py
Python
source/pkgsrc/ham/chirp/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/ham/chirp/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/ham/chirp/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.2 2020/08/25 13:45:53 gdt Exp $ This software contains darwin specific tweaks which do not apply to pkgsrc --- setup.py.orig 2020-07-03 15:51:11.931206711 +1000 +++ setup.py 2020-07-03 15:51:24.114023817 +1000 @@ -150,9 +150,7 @@ f.close() -if sys.platform == "darwin": - macos_...
24.166667
74
0.657471
bbdc316e785973b1d07c2b84280d7fa56fbf2bc2
16,106
py
Python
code/sensors/camera/camera.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/sensors/camera/camera.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
code/sensors/camera/camera.py
dieterpl/iDogstra
62ee246763e107335b9caf0a4f96239fa0953234
[ "MIT" ]
null
null
null
import logging import sys import time import sklearn.cluster import cv2 import numpy as np import itertools import random from threading import Thread from config.config import * from sensors.pipeline import Pipeline from utils.functions import overrides, get_class_name, current_time_millis, deprecated from scipy.int...
34.711207
104
0.574568
bbe9cb376b1992eb91099aa4534b24ee0352b7ab
25,487
py
Python
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/http_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
SEND_UPLOADED_FILE_TO_SENDBOX_ANALYSIS_HTTP_RESPONSE = { "errors": [], "meta": { "powered_by": "falconx-api", "query_time": 0.163158146, "quota": { "in_progress": 3, "total": 100, "used": 36 }, "trace_id": "trace_id" }, "resourc...
37.702663
114
0.320163
a55abbf018083e58b4ec41cd27f458f010520d00
867
py
Python
build_test.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
5
2015-07-28T17:45:21.000Z
2019-11-24T15:47:01.000Z
build_test.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
1
2020-05-22T15:21:36.000Z
2020-05-22T15:38:48.000Z
build_test.py
DanGrayson/cgc1
b9d2de234694aa454248d9bc10ccb22ab92792cd
[ "MIT" ]
1
2020-05-09T21:24:10.000Z
2020-05-09T21:24:10.000Z
#!/usr/bin/python #Copyright (c) 2014 Gary Furnish #Licensed under the MIT License (MIT) import platform, json, os from utilities import printing_chdir, printing_mkdir, do_cmake, printing_system import multiprocessing num_cores=multiprocessing.cpu_count() from multiprocessing import Pool with open("settings.json") as...
30.964286
126
0.771626
3c7ce459a56ba67f90317b206ee70af6ecbc0670
5,787
py
Python
test/test_npu/test_network_ops/test_random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_random.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
40.468531
121
0.531882
3c8e62aa4aae455b342b3a921d82bf90e6a49ffe
2,649
py
Python
PeAnalyser/pe_analyser.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
PeAnalyser/pe_analyser.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
PeAnalyser/pe_analyser.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- # Author : Unam3dd try: from panalyse import * except ImportError: print("\033[38;5;196m[!] ImportError : panalyse not found !\033[00m") banner = ''' \033[38;5;82m ___ ____ ____ _ _ ____ _ _ _ ____ ____ ____ |__] |___ |__| |\ | |__| | \_/ [__ |___...
37.309859
108
0.397886
a73608d92ea681755adcae9240a3ddabe26adb50
1,370
py
Python
theCave.py
wukids/sandbox
8df917785ea866cd362f95fe444378cf82979328
[ "Unlicense" ]
1
2017-03-20T08:06:22.000Z
2017-03-20T08:06:22.000Z
theCave.py
wukids/sandbox
8df917785ea866cd362f95fe444378cf82979328
[ "Unlicense" ]
null
null
null
theCave.py
wukids/sandbox
8df917785ea866cd362f95fe444378cf82979328
[ "Unlicense" ]
null
null
null
import time import random def printIntro(): print("you are in a land full of dragons." "in front of you, you see two caves." "in one cave, the dragon is friendly and" "will share his treasure with you. the other" "dragon is greedy and hungry and will eat you." "") ...
26.346154
74
0.59562
5980c5b6fe6adb700d2f938c56ab7dd66e50d63a
8,074
py
Python
src/pos_probe.py
ZiningZhu/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
1
2021-02-06T01:52:00.000Z
2021-02-06T01:52:00.000Z
src/pos_probe.py
SPOClab-ca/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
null
null
null
src/pos_probe.py
SPOClab-ca/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
null
null
null
import argparse from collections import OrderedDict import copy import flair import logging import numpy as np import os, sys, time import pandas as pd import tempfile from tqdm import tqdm import torch import torch.nn as nn import transformers from dataloader import DataLoader from constants import spacy_pos_dict ...
36.86758
125
0.61246
759a897d8f3eed443e75c7702cb38978e0b0a037
341
py
Python
hello/hello_redis.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
hello/hello_redis.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
hello/hello_redis.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 redis print((redis.__file__)) # 连接,可选不同数据库 redis = redis.Redis(host='localhost', port=6379, db=0) info = redis.info() print(info) keys = redis.keys("*") print(keys) keys = redis.hkeys("keys") print(keys) print((len(keys))) key__value = redis.hget("key", 'hashkey...
16.238095
54
0.671554
ddb8ba42e21115f8ad40a0b633264cc83fb22df7
2,495
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/intro/decorators.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/intro/decorators.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/intro/decorators.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import time from functools import wraps def check_argument_is_positive_integer(unary_func): def helper(n): if type(n) == int and n > 0: return unary_func(n) else: raise ValueError("n mu...
21.885965
80
0.648497
34a3fa5825e2cd393be3e4116ed44524212777f2
247
py
Python
leetcode/058-Length-of-Last-Word/LenLastWord_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/058-Length-of-Last-Word/LenLastWord_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/058-Length-of-Last-Word/LenLastWord_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {string} s # @return {integer} def lengthOfLastWord(self, s): s = s.strip() ss = s.split() if len(ss) == 0: return 0 res = ss[len(ss) - 1] return len(res)
17.642857
34
0.465587
55136726785c3329e71c870977483c9632f6dc2e
197
py
Python
nz_crawl_demo/day11/djano_celery_Demo/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day11/djano_celery_Demo/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day11/djano_celery_Demo/news/urls.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.conf.urls import url from . import views app_name = 'tasks' urlpatterns = [ url('do_task1/',views.do_task1,name='do_task1'), url('do_task2/',views.do_task2,name='do_task2'), ]
21.888889
52
0.700508
1fd19a5cb68b05f7f7c263f8a6e5fa413b445568
782
py
Python
Hackerrank_problems/Find_a_String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Find_a_String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Find_a_String/Solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# -*- coding: utf-8 -*- """ Created on Mon Oct 12 12:45:34 2020 @author: Incognito """ def count_substring(string, sub_string): end=len(sub_string) c=0 for i in range(len(string)): #if starting character of substring is found in i-th position of string if(string[i]==sub_string[0]): ...
30.076923
80
0.627877
9b20ded3140dacb0be798d82201c8eb0a16299d8
49
py
Python
src/db/db_commands.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/db/db_commands.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
src/db/db_commands.py
MBogert/ReminderCory
a687c70a12f49a807d9fb023d45f799292a37f26
[ "MIT" ]
null
null
null
from enum import Enum class DbCommands(Enum):
9.8
23
0.755102
f1ab4cc0bca849abe83295ff7baa304e35577497
1,303
py
Python
app/main/wubble.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
1
2020-12-07T13:30:59.000Z
2020-12-07T13:30:59.000Z
app/main/wubble.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
app/main/wubble.py
marwanad/music_bot
c7a9c704f510d455fc6d1d7c057d5cfa31dcd7cf
[ "MIT" ]
null
null
null
from kik.messages.keyboard_message import KeyboardMessage from kik.messages.attributable_message import AttributableMessage class WubbleMessage(KeyboardMessage, AttributableMessage): def __init__(self, to=None, chat_id=None, url=None, no_forward=None, kik_js_data=None, keyboards=None, attribut...
36.194444
119
0.603991
7b176cd409294920fa11836dbe1866b6fe61b288
2,641
py
Python
twitoff/app.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
null
null
null
twitoff/app.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
1
2021-06-02T00:47:17.000Z
2021-06-02T00:47:17.000Z
twitoff/app.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
null
null
null
"""Build app factor and do routes and configurations""" from decouple import config from dotenv import load_dotenv from flask import Flask, render_template, request from .models import DB, Tweet, User from .twitter import add_or_update_user from .predict import predict_user load_dotenv() #Now we make the app factory ...
36.680556
85
0.620977
9ebb778065fa454ca55d89843cbc062a12756011
2,688
py
Python
doc/for_dev/scikit-image/bench_util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/for_dev/scikit-image/bench_util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/for_dev/scikit-image/bench_util.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from subprocess import getoutput from pathlib import Path from transonic.util import timeit statements = { ("cmorph", "_dilate"): "_dilate(image, selem, out, shift_x, shift_y)", ( "_greyreconstruct", "reconstruction_loop", ): "reconstruction_loop(ranks, prev, next_, strides, current_idx, i...
29.866667
85
0.658854
7bb022381c00e42674308429c10c59539c12f42f
1,673
py
Python
svm/svm.py
yugengde/ml_algorithm
4967ba1afbfd0cbbf259fab69bc23b43da416617
[ "Apache-2.0" ]
null
null
null
svm/svm.py
yugengde/ml_algorithm
4967ba1afbfd0cbbf259fab69bc23b43da416617
[ "Apache-2.0" ]
null
null
null
svm/svm.py
yugengde/ml_algorithm
4967ba1afbfd0cbbf259fab69bc23b43da416617
[ "Apache-2.0" ]
null
null
null
from sklearn import svm import numpy as np import pylab as pl def loadData(filename): dataMat = [] labelMat = [] with open(filename) as f: for line in f.readlines(): # import pdb;pdb.set_trace() dataMat.append(list(map(float, line.split()))[0:-1]) labelMat.appen...
26.140625
82
0.551704
c886a840052f5f1c328478e14bab041ca444ae13
1,749
py
Python
doc/precursers/2019_09-Sneakernet/Sneakernet/_old/sn.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/_old/sn.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
doc/precursers/2019_09-Sneakernet/Sneakernet/_old/sn.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
#!/usr/bin/env python3 # sn/sn.py import binascii import json import logging import os import lib.gg as event import lib.pcap as log import lib.crypto as crypto # ---------------------------------------------------------------------- if __name__ == '__main__': # create feed ID keypair = crypto.ED2551...
25.720588
72
0.467696
c8af37639179c28e4f3ddc2678d913851943676b
1,789
py
Python
src/balldetection/HandTracking.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/balldetection/HandTracking.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/balldetection/HandTracking.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
class Hand(object): """A hand of the juggler""" def __init__(self, position): # unpack position self.x, self.y = position # rememeber past positions self.positions = [] def update(self, newPosition): self.last = (self.x, self.y) self.x, self.y = newPosition...
31.385965
81
0.575741
74041d2ac8820878bc6b618e350926833d2a74a4
1,601
py
Python
MazeSolving/Solver/MazeBuilder.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
MazeSolving/Solver/MazeBuilder.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
MazeSolving/Solver/MazeBuilder.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
from networkx import nx from Cell import * class MazeBuilder: @staticmethod def build_maze(cell_table): #Initialize maze as directed graph maze = nx.Graph() #flatten cell table by one level and map to Cell object cell_reference_table = {} #Add all possible cells to graph and update reference table #...
19.765432
67
0.657714
8d500bfe99ab2c9f56caf9f3d7085491521804e6
1,930
py
Python
_search/server/index-sites.py
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
16
2020-08-03T20:08:00.000Z
2022-03-02T15:50:47.000Z
_search/server/index-sites.py
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
196
2015-09-14T19:15:07.000Z
2022-03-31T02:22:39.000Z
_search/server/index-sites.py
NicoKiaru/imagej.github.io
e334937e361f1aa0ad45cf46ba5c8fadfc32be28
[ "CC-BY-3.0" ]
60
2020-06-04T14:18:37.000Z
2022-03-30T23:10:55.000Z
#!/bin/env python import logging, os, sys import jekyll, ijsite, tsutil logger = logging.getLogger('indexer') def load_site(siteroot): if jekyll.is_jekyll_site(siteroot): return jekyll.load_jekyll_site(siteroot) if ijsite.is_imagej_website(siteroot): return ijsite.load_site(siteroot) re...
28.80597
119
0.641451
f585a16940daf5ddb02154a4f5e12f72962fe73b
4,561
py
Python
03 Python/Einparkhilfe/loesung/src/myapp/hardware/led_beeper.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/hardware/led_beeper.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Einparkhilfe/loesung/src/myapp/hardware/led_beeper.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 RPi.GPIO as GPIO import queue, threading class LedBeeper: """ Handler-Klasse für die LED und den Piepser. Empfängt die Messwerte vom Ultraschallsensor und lässt die LED und den Piepser immer schneller blinken und tönen, je geringer der Abstand ist. Regaiert auf folgende Ereignisse: ...
36.782258
99
0.636045
f59c118a50cc5e7458c42dcc7a8564faa67f4fa9
1,751
py
Python
research/hpc/pfnn/data/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pfnn/data/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pfnn/data/dataset.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...
27.359375
78
0.637921
272620893bf3d021313b6a1c5a9e50f918a589b2
1,672
py
Python
gemtown/modelers/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/modelers/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/modelers/migrations/0002_auto_20190420_1510.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
# Generated by Django 2.0.13 on 2019-04-20 06:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('modelers', '0001_initial'), migrations.swappable_dependency(se...
38
157
0.659689
27a1f37475e5287b18fbead74705037d90ea0331
673
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_fasta_recover.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/screed-0.7.1-py2.7.egg/screed/tests/test_fasta_recover.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/screed-0.7.1-py2.7.egg/screed/tests/test_fasta_recover.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import test_fasta import os import screed from screed.DBConstants import fileExtension class test_fa_recover(test_fasta.Test_fasta): def setup(self): self._fileName = os.path.join(os.path.dirname(__file__), 'fastaRecovery') self._testfa = os.path.join(os.path.dirname(__file__), 'test.fa') s...
35.421053
81
0.71471
e3691d02620e280b8b9e0c4cc19a8342530bc997
780
py
Python
leetcode/143-Reorder-List/ReorderList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/143-Reorder-List/ReorderList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/143-Reorder-List/ReorderList_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param {ListNode} head # @return {void} Do not return anything, modify head in-place instead. def reorderList(self, head): a = [] b = [] ...
23.636364
74
0.410256
8b5cf0560854412a0ce947b6d1866bd24a3b5f8c
2,391
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/addSchema.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/addSchema.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/addSchema.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2010-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
42.696429
119
0.664575
ef6a0971ebae9bf7e67395ed892d59ef7e5e95bc
2,004
py
Python
nlp2go/main.py
voidful/nlp2go
c83cd96a5618ef3f95f6c5174071cba711003761
[ "Apache-2.0" ]
25
2020-02-20T14:25:58.000Z
2022-01-05T03:32:37.000Z
nlp2go/main.py
voidful/nlp2go
c83cd96a5618ef3f95f6c5174071cba711003761
[ "Apache-2.0" ]
3
2020-10-21T15:03:39.000Z
2020-10-21T15:03:48.000Z
nlp2go/main.py
voidful/nlp2go
c83cd96a5618ef3f95f6c5174071cba711003761
[ "Apache-2.0" ]
1
2020-09-15T15:22:49.000Z
2020-09-15T15:22:49.000Z
import argparse from collections import defaultdict import json from nlp2go.cli import Cli from nlp2go.model import Model from nlp2go.server import Server import os os.environ["PYTHONIOENCODING"] = "utf-8" def parse_args(args): parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group(...
33.966102
109
0.658683
720ea4753f6b168e7a68a0399c7b0ecf3c84eb81
342
py
Python
1046-last-stone-weight/1046-last-stone-weight.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1046-last-stone-weight/1046-last-stone-weight.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1046-last-stone-weight/1046-last-stone-weight.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def lastStoneWeight(self, stones: List[int]) -> int: while(len(stones)>1): sorted_stones = sorted(stones) diff = sorted_stones[-1]-sorted_stones[-2] stones = sorted_stones[:-2] if diff!=0: stones.append(diff) return ston...
38
56
0.561404
a0caaca51fa6fc0994833c3276e849a1784a3f40
441
py
Python
storage/emulated/0/qpython/lib/python3.2/site-packages/aip/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/lib/python3.2/site-packages/aip/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/lib/python3.2/site-packages/aip/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ aip public """ from .ocr import AipOcr from .nlp import AipNlp from .face import AipFace from .imagecensor import AipImageCensor from .imagecensor import AipImageCensor as AipContentCensor from .kg import AipKg from .speech import AipSpeech from .imageclassify import AipImag...
27.5625
60
0.773243
3e5650400c3a2581cbc0539e43760b79a0eec1c7
2,525
py
Python
Reporter.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
1
2019-12-21T02:32:07.000Z
2019-12-21T02:32:07.000Z
Reporter.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
null
null
null
Reporter.py
sdimitro/zfas
4116072225f71415105b70e12aa461fc7466617a
[ "MIT" ]
null
null
null
import datetime import math import matplotlib.pyplot as plt class Reporter(object): def __init__(self, name): self.name = name self.plots = [] def flushes_per_txg(self, x_txgs, y): fig, ax = plt.subplots() ax.set_ylabel('# of flushes', color='r') ax.set_ylim(0, max(y) +...
35.069444
94
0.581386
3e9000620f24a94fea81f3f0f1fd2e8be7e68d09
1,909
py
Python
Datastructures/weig_graph.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/weig_graph.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/weig_graph.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
class Wgraph: def __init__(self, edges): self.weight_edges = {} self.km_distance = {} for start, end, km in edges: self.km_distance[(start, end)] = km self.weight_edges.setdefault(start, []).append(end) @property def getEdges(self): return self.weight...
33.491228
108
0.545312
e4c900fc4f32add82716f7324118ea38a246bbc6
257
py
Python
packages/watchmen-dqc/src/watchmen_dqc/common/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/common/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/common/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .exception import DqcException from .settings import ask_daily_monitor_job_trigger_time, ask_monitor_job_trigger, ask_monitor_jobs_enabled, \ ask_monitor_result_pipeline_async, ask_monthly_monitor_job_trigger_time, ask_weekly_monitor_job_trigger_time
64.25
110
0.910506
e4eb359e9b4136a64cf3ccceab26f1fc2de162f1
42
py
Python
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
7_funktionen/1_drawBotFunktionen.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" DrawBot-Funktionen Keine Lösung """
6
18
0.666667
e4eda88b3d744abebfad5afa632b7bae8b2debcd
40,211
py
Python
JMBF.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
JMBF.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
JMBF.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/python2 # coding=utf-8 #RECOMULU BANGKEE LUU #RECODE BOLEH AJA SIH TAPI SERTAKAN AUTHOR DONK ANJENKK ######################### # ################JEECK X BRUTALL ####### ######################### # ################### ###### # ####### # ...
42.96047
1,991
0.488722
395dbdd7f70bd7a3eae3a22e06b05408369929d4
8,399
py
Python
src/model.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
src/model.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
src/model.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
from typing import Tuple import torch import pytorch_lightning as pl class UserEncoder(torch.nn.Module): def __init__(self, num_users: int, user_embedding_dim: int, num_ages: int, user_age_embedding_dim: int, num_genders: int, ...
40.970732
115
0.573878
84122a2cc0b681840c8269004946159c48522678
3,915
py
Python
session5/ibox.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session5/ibox.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session5/ibox.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
import tkinter as tk import tkinter.scrolledtext as st import json import os selectedItem = [] project = [['new item', "description", ['tags'], 'white', 'more information']] selectedIndex = 0 bg = '#C5C5C5' def loadProject(filename='data.json'): if not os.path.exists(filename): json.dump(project, open...
29.659091
93
0.695275
8455fb075213103b6998aac1077ea74315480c7d
8,469
py
Python
Utils/py/GoPro/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/GoPro/main.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- ''' Using the 'GoPro API for Python' to communicate with the GoPro: https://github.com/KonradIT/gopro-py-api ''' import re import sys import os import tempfile import argparse import threading import time import importlib import importlib.util from utils import Lo...
47.578652
257
0.637738
ffcc3e07542928b4d0590071197f3902651faaf7
108
py
Python
scripts/hello_world_sarthak268.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_sarthak268.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_sarthak268.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
// LANGUAGE: Python // AUTHOR: Sarthak Bhagat // GITHUB: https://github.com/sarthak268 print "Hello World"
18
40
0.722222
f2b0fa26ed63837dec1974fabecab322f65bd7cf
20,830
py
Python
forge/lib/tiler.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
31
2015-07-13T15:36:50.000Z
2022-02-07T21:37:51.000Z
forge/lib/tiler.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
109
2015-04-24T10:03:24.000Z
2019-04-12T13:34:01.000Z
forge/lib/tiler.py
Pandinosaurus/3d-forge
d631e14a9351911c3e5612c73c1608d97ed547d2
[ "BSD-3-Clause" ]
16
2015-10-03T06:03:22.000Z
2022-03-31T08:24:37.000Z
# -*- coding: utf-8 -*- import os import time import datetime import ConfigParser import multiprocessing from sqlalchemy.sql import and_ from sqlalchemy.orm.exc import NoResultFound from geoalchemy2 import WKBElement from geoalchemy2.shape import to_shape from quantized_mesh_tile import encode from gatilegrid import g...
36.416084
93
0.501632
299bfae13fde409222e135f019d8c132d2304e81
355
py
Python
INBa/2015/Ruditch_A_C/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ruditch_A_C/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ruditch_A_C/task_5_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 5. Вариант 22 #Напишите программу, которая бы при запуске случайным образом отображала имя одного из двух сооснователей компании Google. #Rudich A.C. #28.03.2016 print("Программа выводит на экран имя одного из двух сооснователей компании Google.") import random a = random.choice(['Сергей', 'Ларри']) print (a) ...
35.5
122
0.774648
0a29793f226fced10661072b50f49964830593e7
928
py
Python
ciphey/basemods/Decoders/leet.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
1
2020-10-05T11:25:18.000Z
2020-10-05T11:25:18.000Z
ciphey/basemods/Decoders/leet.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
1
2021-04-21T06:02:32.000Z
2021-04-21T06:02:32.000Z
ciphey/basemods/Decoders/leet.py
joesitton/Ciphey
862555f13e3915428a2f4ada5538fdf0be77ffcd
[ "MIT" ]
null
null
null
from typing import Optional, Dict, Any import ciphey from ciphey.iface import registry, Translation, ParamSpec @registry.register class Leet(ciphey.iface.Decoder[str, str]): def decode(self, text: str) -> Optional[str]: for src, dst in self.translate.items(): text = text.replace(src, dst) ...
26.514286
81
0.600216
0a3a2cdc4bcb4ee349ce61a3b363c4a1a3072878
3,339
py
Python
Contrib-Inspur/openbmc/poky/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Inspur/openbmc/poky/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Inspur/openbmc/poky/meta-yocto-bsp/lib/oeqa/selftest/cases/systemd_boot.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
import os from oeqa.selftest.case import OESelftestTestCase from oeqa.core.decorator.depends import OETestDepends from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu class Systemdboot(OESelftestTestCase): def test_efi_systemdboot_images_can_be_built(self): """ Summary: Check ...
47.028169
112
0.633124
6ad075730ce3d478fb256f84aaecaaf7d1df9bfd
544
py
Python
1_Datentypen/05_sets/sets.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/05_sets/sets.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/05_sets/sets.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# Verhalten sich wie 'Mengen' aus der Mathematik # Werte müssen einmalig sein # Kann verwendet werden um Daten aus einer Liste mit doppelungen einmalig zu machen # Wird oft für das Nachschlagen von Werten verwendet, da sets schneller arbeiten als Listen # sets können bei bedarf wachsen und schrumpfen # leere Instanz e...
20.148148
91
0.78125
0a9ecaae20377d0ca747d085e1927aa00417bfb7
2,424
py
Python
medaliony1.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
medaliony1.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
medaliony1.py
vvizzo/wqwtf
c3138a59891c25d3fada5960c09fa94ac6199b4b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Create medalions in JPEG format with faces from image. Accepts one and only one file name as argument. """ import sys import os import dlib from PIL import Image, ImageDraw DETECTOR = dlib.get_frontal_face_detector() def create_meds(img): """ Real face processing, we get clipped face a...
24.734694
71
0.643564
7c84e4a669a594928179a1236b63cfd1d2e45184
896
py
Python
rvk/reduceMarcxml.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
7
2015-10-02T15:43:56.000Z
2021-12-07T11:20:46.000Z
rvk/reduceMarcxml.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
22
2015-11-06T14:33:55.000Z
2022-03-31T11:48:11.000Z
rvk/reduceMarcxml.py
DennisTobola/jskos-data
d32837447b01498fc4c05c49c534d4ab4faae35f
[ "CC0-1.0" ]
4
2018-10-17T13:06:57.000Z
2022-03-14T08:46:35.000Z
#!/usr/bin/env python3 # Bash-Aufruf: $ python3 xx.py < rvko_2019_1.xml > rvko_reduced.xml import pymarc import sys idfile = sys.argv[1] ids = set() # read line-by-line with open(idfile) as f: lines = f.readlines() lines = [x.strip() for x in lines] for element in lines: ids.add(element) # Standard input, fo...
24.888889
67
0.676339
7c9f59b89a0d45754cac00d9c8796429ff932f8b
4,870
py
Python
research/cv/efficientnet-b0/src/models/effnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/efficientnet-b0/src/models/effnet.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/efficientnet-b0/src/models/effnet.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.346457
110
0.598152
7c9feadfb95cc4f69a88b920bc8011bd5a3f0b59
493
py
Python
python/decorator/decorating_externals_functions.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/decorating_externals_functions.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/decorating_externals_functions.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import time import numpy as np def time_it(func): def wrapper(*args, **kwargs): start = time.time() ret = func(*args, **kwargs) end = time.time() print(f'Function took {end-start}s') return ret return wrapper rng = np.random.RandomState(0) # Create a lot of numbers...
20.541667
49
0.667343
7cc83882a1b1d2c6ed69beda526bfc833f62ffcf
8,725
py
Python
apps/multivers/defaults.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/multivers/defaults.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/multivers/defaults.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from datetime import datetime from .models import Product, Customer, Settings months = [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ] class OrderLine(dict): def __init__(self, line_da...
32.077206
152
0.586476
86271dc35aa5deb344ab9d9f1dca7d73a78a91f2
254
py
Python
src/bike_module/model/ProcessedCameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/bike_module/model/ProcessedCameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/bike_module/model/ProcessedCameraData.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
from model.ProcessedSensorData import ProcessedSensorData __author__ = 'Hans-Werner Roitzsch' class ProcessedCameraData(ProcessedSensorData): def __init__(self, probability=100.0, result=True): self.probability = probability self.result = result
25.4
57
0.811024
86ad85d2d221cb56c865c7e5d20daf6b520bf307
6,441
py
Python
20-hs-redez-sem/groups/05-decentGames/src/logStore/database/database_handler.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/logStore/database/database_handler.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/logStore/database/database_handler.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from .cbor_handler import ByteArrayHandler, InvalidSequenceNumber from .event_handler import EventHandler, InvalidApplicationError from ..funcs.log import create_logger from ..funcs.event import Event from ..funcs.EventCreationTool import EventFactory logger = create_logger('DatabaseHandler') """The database handler a...
42.94
134
0.684055
813e5fb1b5ac1c6b25e9e426b8431663b9da8d28
405
py
Python
___Python/Torsten/Python-Kurs/p03_lambda/m02_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m02_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m02_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
temperaturenGC = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] #Durchschnittstemp. in Bielefeld print("Temperaturen in °C:", temperaturenGC) def filtern (liste, kriterium): gefiltert = [] for item in liste: if item >= kriterium: gefiltert.append(item) ret...
28.928571
116
0.632099
078897a355ca8601efe56c176883c7f28f1933bf
1,879
py
Python
tarefas-poo/lista-03/relogio/view/paineis/painel_cria_relogio.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/relogio/view/paineis/painel_cria_relogio.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/relogio/view/paineis/painel_cria_relogio.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício do Relógio # -------------------------- # Classe que permite a criação de relógio # from model.relogio import Relogio class PainelCriaRelogio: def crie(self, tipo, iu): print('--- Criar Relógio ---') if tipo == 'h': ...
37.58
72
0.528473
07b11819b801befe52f5e962ab43c5465768c4c2
8,146
py
Python
chord_rec/models/lit_transformer.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/lit_transformer.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/models/lit_transformer.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
""" Simple Baseline Model for AV-Sync. Organinzed in PyTorch Lightning Flatten both audio and video features; concat them and feed into sequential linear layers. """ import numpy as np import torch import torch.nn as nn import pytorch_lightning as pl class PrintSize(nn.Module): def __init__(self): super(P...
36.693694
107
0.616744
ed14e518ddea58cdc7a3fc3b587b3abb45798909
4,867
py
Python
official/recommend/naml/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/naml/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/naml/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...
42.692982
114
0.656256
1351fee6084200f0900c2e970d2db654dee480ee
3,441
py
Python
Invent Your Own Computer Games with Python/ch19_collision_detection/collision_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch19_collision_detection/collision_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch19_collision_detection/collision_detection.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pygame, sys, random from pygame.locals import * # Set up pygame. pygame.init() mainClock = pygame.time.Clock() # Set up the window. WINDOWWIDTH = 400 WINDOWHEIGHT = 400 windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32) pygame.display.set_caption('Collision Detection') # Set up the co...
31.281818
140
0.594304
1366edd586f4dc326be130568fa8e7274bc2be47
16,117
py
Python
Paddle_Industry_Practice_Sample_Library/Multi-Class_Vehicle_Tracking/mcmot_metrics.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-19T09:58:37.000Z
2022-03-19T09:58:37.000Z
Paddle_Industry_Practice_Sample_Library/Multi-Class_Vehicle_Tracking/mcmot_metrics.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/Multi-Class_Vehicle_Tracking/mcmot_metrics.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
34.218684
101
0.596265
13ca811693f6fa04ea9658a57f0b66639c33f2a2
1,388
py
Python
SoSe-21/Code-Vorlesungen/VL-5/Einstieg-Funktionen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-5/Einstieg-Funktionen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-5/Einstieg-Funktionen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Definieren (def) einer Funktion mit dem Namen "trenner" def trenner(anzahl_sterne): for _ in range(anzahl_sterne): print("*", end="") print() # Definieren (def) einer Funktion mit dem Namen "abschluss" die den Abschluss des Programms darstellt def abschluss(): print("Ich bin fertig.") # Definie...
43.375
136
0.736311
b959e071b673e09b209cefb110740bba1d3719d4
478
py
Python
Produkte/migrations/0006_auto_20170921_1652.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Produkte/migrations/0006_auto_20170921_1652.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Produkte/migrations/0006_auto_20170921_1652.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-09-21 16:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Produkte', '0005_auto_20170508_1834'), ] operations = [ migrations.AlterFie...
22.761905
70
0.631799
6a40117f69380e6c0af580df65e37f4c900625b4
2,600
py
Python
src/density-plots/densityplots.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/density-plots/densityplots.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/density-plots/densityplots.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
# Density (KDE) plots import pandas as pd import numpy as np import matplotlib.cm as cmp import matplotlib.colors as cl import matplotlib.pyplot as plt import plotly.express as px import plotly.graph_objects as go #matplotlib #- don't use. Its extremely hard to visualise these plots accurately with most data. # Ho...
28.26087
130
0.701154
e00ed97b970a892c9642a59a4a17b00f6b5d590b
790
py
Python
src/smoother/laplace_smoother.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
6
2018-12-20T06:50:52.000Z
2021-12-16T13:08:38.000Z
src/smoother/laplace_smoother.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2020-06-29T07:00:51.000Z
2020-06-29T07:00:51.000Z
src/smoother/laplace_smoother.py
katsugeneration/schuss
30e2303aa0646f0a4424cbc4b5422acc58a06218
[ "Apache-2.0" ]
1
2022-03-04T07:29:55.000Z
2022-03-04T07:29:55.000Z
class LaplaceSmoother(object): ''' Add delta smoothing algorithme module ''' def __init__(self, delta=1): self.delta = delta def smooth(self, counter, words): ''' return P(w_n | w_1, w_2, ... w_n-1) = C(w_n | w_1, w_2, ... w_n-1) + delta / C(w_1, w_2, ... w_n-1) + |V| * del...
30.384615
122
0.506329
16c28c4f99d645928d987b58e424d76fbd6a5c99
888
py
Python
Communication/client.py
vincentscode/Praktikum-Hochschule-Trier
c2802364644c889e021726a7e6babaacd8978f47
[ "MIT" ]
null
null
null
Communication/client.py
vincentscode/Praktikum-Hochschule-Trier
c2802364644c889e021726a7e6babaacd8978f47
[ "MIT" ]
null
null
null
Communication/client.py
vincentscode/Praktikum-Hochschule-Trier
c2802364644c889e021726a7e6babaacd8978f47
[ "MIT" ]
null
null
null
import socket import threading # SETTINGS HOST = '127.0.0.1' PORT = 1234 BUFFER_SIZE = 1024 # SOCKET sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((HOST, PORT)) # MAIN while True: a = input("") if a.strip() != "": unsendable = False while len(bytes(a, "utf8")) > BUFFER...
26.909091
68
0.495495
bcbecaab4193c26edc9edf449193109461c47584
1,157
pyde
Python
sketches/barchart01/barchart01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/barchart01/barchart01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/barchart01/barchart01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
countries = [u"Afghan", u"Mali", u"Kosovo", u"Türkei", u"Irak", u"Liban", u"Lybien", u"Dschib", u"Sudan", u"Somal", u"Sahara"] numSoldiers = [971, 950, 532, 275, 147, 126, 104, 33, 23, 9, 4] # Zahlen von hier: https://de.statista.com/infografik/8394/einsatzgebiete-bundeswehr/ pale...
36.15625
85
0.570441
bccedfac4f25b63791a7e282a9fb7bb8e2166f64
1,714
py
Python
src/java/regeneratejava.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/java/regeneratejava.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/java/regeneratejava.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
#!/usr/local/apps/bin/python import sys, os # # Get the output of a command as a tuple of strings. # def GetFilenames(command): p = os.popen(command) files = p.readlines() p.close() return files # # Execute a command. It's wrapped for debugging. # def systemCommand(command): print(command) re...
25.58209
79
0.591015
91045bfd8669cdb846ae2cd03d5216e6de0e3b0a
1,578
py
Python
tests/test_dircheck.py
shaneoc/dircheck
4fd5d3943feb5e052f3b2beb0842b8e9f2c6fc7e
[ "MIT" ]
1
2020-07-30T19:33:10.000Z
2020-07-30T19:33:10.000Z
tests/test_dircheck.py
shaneoc/dircheck
4fd5d3943feb5e052f3b2beb0842b8e9f2c6fc7e
[ "MIT" ]
null
null
null
tests/test_dircheck.py
shaneoc/dircheck
4fd5d3943feb5e052f3b2beb0842b8e9f2c6fc7e
[ "MIT" ]
null
null
null
from dircheck import dircheck import sys import os import unittest import tempfile import shutil test_dir = 'test-dir-123123' class TestDircheck(unittest.TestCase): def runDircheck(self, *args): sys.argv = ['dircheck'] + list(args) dircheck.Main() def assertSysExits(self, *args): ...
27.206897
70
0.595691
fc7fdaed28261f95abf99bcdb57fde2da1c6d3ca
384
py
Python
exercises/de/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_03_16_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("de_core_news_sm") text = ( "Chick-fil-A, ein Wortspiel mit der amerikanischen Aussprache von „Filet“, " "ist der Name einer 1946 gegründeten amerikanischen Schnellrestaurantkette, " "die sich auf den Verkauf von Hühnerfleischprodukten spezialisiert hat." ) # Wende nur den To...
29.538462
81
0.747396
538f1629eeefac43f764be70972fe65ddfc7dad2
4,712
py
Python
src/unittest/python/DesktopApp/test_desktopApp.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/DesktopApp/test_desktopApp.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/DesktopApp/test_desktopApp.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
import pytest from pytestqt import qtbot from PyQt5 import QtWidgets, QtCore from PyQt5.QtWidgets import QPushButton from PyQt5.QtCore import Qt from client.clientController import * import requests, json, time @pytest.fixture def setUp(qtbot): #app = QtWidgets.QApplication([]) #app.exec_() url = "http:/...
31.837838
125
0.7309
54d56fe157c743a5a691ac506e0d0044425fbe9b
762
py
Python
exercises/de/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import Matcher nlp = spacy.load("de_core_news_sm") matcher = Matcher(nlp.vocab) doc = nlp( "Zu den Features der App gehören ein wunderschönes farbenfrohes Design, " "intelligente Suche, automatisierte Labels und Sprachsteuerung." ) # Schreibe ein Pattern für ein Adjektiv, ein ...
33.130435
78
0.740157
074ea0c4426c909caafbe501378edca69673a932
2,726
py
Python
Invent Your Own Computer Games with Python/ch18_animating_graphics/animation.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch18_animating_graphics/animation.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
Invent Your Own Computer Games with Python/ch18_animating_graphics/animation.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import pygame, sys, time from pygame.locals import * # Set up pygame. pygame.init() # Set up the window. WINDOWWIDTH = 400 WINDOWHEIGHT = 400 windowSurface = pygame.display.set_mode((WINDOWWIDTH, WINDOWHEIGHT), 0, 32) pygame.display.set_caption('Animation') # Set up direction variable DOWNLEFT = 'downleft' DOWNRIGHT...
30.288889
75
0.528613
ab2241480f6164339fd2eb4d5082eed52eee1d8f
1,123
py
Python
models/hr_job_qualification.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_job_qualification.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_job_qualification.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- ############################################################################### # License, author and contributors information in: # # __openerp__.py file at the root folder of this module. # ########################################################...
30.351351
86
0.579697