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
4e15706f4a20f000dbde4cef576b8962fdfad9d3
113
py
Python
rasa/core/training/converters/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/core/training/converters/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/core/training/converters/__init__.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
from rasa.core.training.converters.story_markdown_to_yaml_converter import ( StoryMarkdownToYamlConverter, )
28.25
76
0.849558
ee3d5c500c3ceffae36f82424036f01909047b13
799
py
Python
flask/microblog-db/app/__init__.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
flask/microblog-db/app/__init__.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
flask/microblog-login/app/__init__.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
from flask import Flask from config import config from flask_sqlalchemy import SQLAlchemy # app.config['SECRET_KEY'] = '666666' # ... add more variables here as needed # app.config.from_object('config') # 载入配置文件 # app.config.from_object(config[config_name]) # config[config_name].init_app(app) db = SQLAlchemy() def ...
26.633333
66
0.743429
ee84a98b10d262f7fd66759d611baf9d0f1cf5d0
512
py
Python
python/argparse/power.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/argparse/power.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/argparse/power.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser() parser.add_argument('x', type=int, help='the base') parser.add_argument('y', type=int, help='the exponent') # action='count'를 통해 -v 옵션의 갯수를 리턴 받을 수 있다. # ex) -vv -> 2, -v -> 1, 기본값은 0으로 설정(default=0) parser.add_argument('-v', '--verbosity', action='count', default=0) a...
36.571429
67
0.660156
c9d5727ae103d1267d3ee7871bd00a41ee83b324
389
py
Python
utils/mixins.py
TheKiddos/StaRat
33807d73276563f636b430e1bbfcb65b645869f7
[ "MIT" ]
1
2021-05-18T16:33:10.000Z
2021-05-18T16:33:10.000Z
utils/mixins.py
TheKiddos/StaRat
33807d73276563f636b430e1bbfcb65b645869f7
[ "MIT" ]
3
2021-05-18T16:02:32.000Z
2021-05-21T15:20:12.000Z
utils/mixins.py
TheKiddos/StaRat
33807d73276563f636b430e1bbfcb65b645869f7
[ "MIT" ]
1
2021-09-12T22:56:09.000Z
2021-09-12T22:56:09.000Z
from rest_framework.permissions import AllowAny class PublicListRetrieveViewSetMixin: """Allow anyone to use list and retrieve actions, return default permissions and auth otherwise""" allowed_actions = ['list', 'retrieve'] def get_permissions(self): if self.action in self.allowed_actions: ...
32.416667
102
0.714653
4eb8602e6c346eacd4ef6e909b75e4dba74d5b64
48
py
Python
src/main/python/gps/__init__.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/gps/__init__.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/gps/__init__.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
from .gps import GPS from .gpsmap import GPSMap
16
26
0.791667
eeff0777cb915dbd2f27d26dfc851f53b6fd0775
7,039
py
Python
start.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
1
2021-04-21T09:01:26.000Z
2021-04-21T09:01:26.000Z
start.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
start.py
DestinyofYeet/antonstechbot
b01372431a3a2b51fb83180cf8caa1a168e294ad
[ "MIT" ]
null
null
null
from consolemenu import * from consolemenu.items import * import os import sys import subprocess import webbrowser import time import requests import json from colorama import * import mysql.connector VERSION = subprocess.check_output(["git", "describe", "--tags", "--always"]).decode('ascii').strip() def browser(): ...
36.471503
298
0.641568
e11e4871477974dc938efcc467ec95e8585f0631
25,317
py
Python
src/Sephrasto/UI/CharakterInfo.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/UI/CharakterInfo.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/UI/CharakterInfo.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'CharakterInfo.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore...
60.566986
490
0.727258
0163df4b94688e25551d1e8cbc3582f32d6b4f39
21,716
py
Python
Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Ansible_Powered_Integrations/Integrations/Linux/Linux.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import traceback from typing import Dict, cast import ansible_runner import demistomock as demisto # noqa: F401 import ssh_agent_setup from CommonServerPython import * # noqa: F401 # Dict to Markdown Converter adapted from https://github.com/PolBaladas/torsimany/ def dict2md(json_block, depth=0): m...
49.020316
107
0.615399
6d95bfbe3fdec9c2f5c5a4abe98999bc24baaa26
2,571
py
Python
isj_proj04.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj04.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj04.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Vrátí vstupní položku item, pokud tato může být prvkem množiny v Pythonu, v opačném případě frozenset(item) #""" Pomocí kontroly datových typů se program větví na 2 části return item a retun frozenset(item) """ def can_be_a_set_member_or_frozenset(item): """ Pomocí kontroly datových typů se...
48.509434
308
0.657332
6daaf1ed74ecda43692f9d1ac51d1867c61bbbb3
1,977
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_terms_template/test_payment_terms_template.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/accounts/doctype/payment_terms_template/test_payment_terms_template.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_terms_template/test_payment_terms_template.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import unittest import frappe class TestPaymentTermsTemplate(unittest.TestCase): def tearDown(self): frappe.delete_doc('Payment Terms Template', '_Test Payment Ter...
27.082192
95
0.684876
e927e0e39d4cf38d69e685057632d7dde672ee04
12,024
py
Python
layouts/community/ergodox/algernon/tools/log-to-heatmap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2019-05-13T05:19:02.000Z
2021-11-29T09:07:43.000Z
layouts/community/ergodox/algernon/tools/log-to-heatmap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
layouts/community/ergodox/algernon/tools/log-to-heatmap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import json import os import sys import re import argparse import time from math import floor from os.path import dirname from subprocess import Popen, PIPE, STDOUT from blessings import Terminal class Heatmap(object): coords = [ [ # Row 0 [ 4, 0], [ 4, 2]...
34.852174
140
0.435213
3a6f2d5646fb0a5ff9edfc84c3466099d4ce9a92
1,208
py
Python
src/_abc247.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
src/_abc247.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
src/_abc247.py
nullputra/nlptr-lib
618c2c74c3d3033bae04de9ba9a253bb6eb31a6c
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 # region abc247 A. # ''' # verification-helper: PROBLEM https://atcoder.jp/contests/abc247/tasks/abc247_a import sys n = int(input()) a = list(map(int, input().split())) print(*a) # ''' # endregion # region abc247 B. ''' # verification-helper: PROBLEM https://atcoder.jp/contests/abc247/tasks/abc247...
18.029851
80
0.671358
c9650e519bb85b460822b72024b2f67c193c1505
3,651
py
Python
Course_1/Week_02/2_ClosestPairs.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_02/2_ClosestPairs.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_02/2_ClosestPairs.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
"""Merge Sort""" def merge(array_left, array_right): i, j = 0, 0 merged_array = [] while (i < len(array_left)) and (j < len(array_right)): if array_left[i] < array_right[j]: merged_array.append(array_left[i]) i +=1 else: merged_array.append(array_right[j]) j +=1 if i < len(array_left): merged_ar...
24.019737
89
0.654889
a39740778fe6a56d808c94b9017a9ee68a2d916e
2,450
py
Python
python/coursera_python/MICHIGAN/web/2/dict_fin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/web/2/dict_fin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/web/2/dict_fin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import urllib.request, urllib.parse, urllib.error # http://www.py4e.com/code3/bs4.zip # and unzip it in the same directory as this file from urllib.request import urlopen import re from bs4 import BeautifulSoup import ssl import sqlite3 conn = sqlite3.connect('wiki2.sqlite') cur = conn.cursor() cur.executescript(...
25.520833
196
0.600816
6e29068ed65ac299fd2f3be4dbe36b67f90ed76a
777
py
Python
Python/Exercícios_Python/036_analisando_triângulo.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/036_analisando_triângulo.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/036_analisando_triângulo.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """036 - Analisando Triângulo Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1oQmCX-HLeaqxWxaz9zsjj-5Na35XtNXM """ print('*' * 54) print('------- Condição de existência de um triângulo -------'.upper()) print('*' * 54) r1 = fl...
31.08
77
0.65251
6c207a740fe5051fe7eeec344f04e986def3816d
875
py
Python
listings/chapter04/month_calendar.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter04/month_calendar.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter04/month_calendar.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
from datetime import date from sys import argv if len(argv) > 2: year = int(argv[1]) month = int(argv[2]) if len(argv) > 3: day = int(argv[3]) else: day = 1 else: today = date.today() day = today.day month = today.month year = today.year first_of_month = date(year, mont...
24.305556
64
0.536
6c515bcc0378b767f2ca3dc2a2f5830efe8fce57
11,500
py
Python
src/using_tips/using_tips_2.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/using_tips/using_tips_2.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/using_tips/using_tips_2.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ 50个话题 9章 1.课程简介 2.数据结构相关话题 3.迭代器与生成器相关话题 4.字符串处理相关话题 5.文件I/O操作相关话题 6.数据编码与处理相关话题 7.类与对象相关话题 8.多线程与多进程相关话题 9.装饰器相关话题 """ """ 第1章 课程简介 1-1 课程简介 1-2 在线编码工具WebIDE使用指南 第2章 数据结构与算法进阶训练 2-1 如何在列表, 字典, 集合中根据条件筛选数据 2-2 如何为元组中的每个元素命名, 提高程序可读性 2-3 如何统计序列中元...
22.460938
137
0.646174
b09674c3e57bc227eba73f4fa3feb2352cd398e8
9,032
py
Python
tests/test_server_utils.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_server_utils.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_server_utils.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """test_server_utils.py - tests for utility-functions in the, server-module of DHParse. Author: Eckhart Arnold <arnold@badw.de> Copyright 2020 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
46.317949
146
0.618357
b04fd2b86635d1f4f03caa3bd7e3f16ba0f1405e
2,000
py
Python
Python2/Modulo_3_exe_pratico.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python2/Modulo_3_exe_pratico.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python2/Modulo_3_exe_pratico.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
""" 1. Crie uma base de dados chamada sistema_escolar_soul_on 2. Crie uma tabela alunos com os campos id, nome, matricula, turma. 3. Alimente a tabela com os seguintes dados: """ import mysql.connector db = mysql.connector.connect( host = "localhost", user = "root", password = "", database = "sistema_e...
33.333333
138
0.698
e948b3f1a84db7afd6220136835cc456ab27e70d
1,492
py
Python
xls_worker.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
xls_worker.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
xls_worker.py
VNCompany/PyDafm
9634f5428b9f3739dbf7c159daad34856b372165
[ "Unlicense" ]
null
null
null
import xlrd import xlwt import os class XlsReader: def __init__(self, file: str): self.file_path = file def read_data(self, n:int = 0): try: wb = xlrd.open_workbook(self.file_path) sheet = wb.sheet_by_index(0) result_list = [] for nr in range(n,...
27.127273
64
0.505362
e99c451a3b49e72a4447a8051fe7eeedbb0cc2c8
2,203
py
Python
IdeaProjects/MachineLearning/DecisionTree.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
IdeaProjects/MachineLearning/DecisionTree.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
IdeaProjects/MachineLearning/DecisionTree.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: miko """ from sklearn.feature_extraction import DictVectorizer import csv from sklearn import tree from sklearn import preprocessing from sklearn.externals.six import StringIO import numpy as np np.set_printoptions(threshold = 1e6)#设置打印数量的阈值 # Read in the csv file and put feat...
22.947917
135
0.702678
e9c1a85292219c121131945e11ba2a6e28e0dafd
2,834
py
Python
model/topoml_util/test_Tokenizer.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/test_Tokenizer.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/test_Tokenizer.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
import unittest import pandas from Tokenizer import Tokenize TOPOLOGY_TRAINING_CSV = 'test_files/example.csv' source_data = pandas.read_csv(TOPOLOGY_TRAINING_CSV) raw_training_set = source_data['brt_wkt'] + ' ' + source_data['osm_wkt'] raw_target_set = source_data['intersection_wkt'] class TestUtil(unittest.TestCase...
42.939394
115
0.577629
fd570050f48eac83a8faa8670acf80bffd4d583d
3,084
py
Python
research/cv/ProtoNet/src/IterDatasetGenerator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ProtoNet/src/IterDatasetGenerator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ProtoNet/src/IterDatasetGenerator.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.074074
106
0.624514
c095e0406851668f536f037523c078b508b0b407
6,004
py
Python
public/chart/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
public/chart/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/Single_Event_Overlay.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the charts in html page from ..fusioncharts import FusionCharts from ..fusioncharts import FusionTable from ..fusioncharts import TimeSeries import requests # Loading Dat...
56.11215
179
0.340273
23d67731e693aa173ae0a92b5d6d9fd1362a3e6c
3,880
py
Python
tests/views/test_oauth2_client.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_oauth2_client.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_oauth2_client.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest def test_read(client, seeder, utils): user_id, admin_unit_id = seeder.setup_base(True) oauth2_client_id = seeder.insert_default_oauth2_client(user_id) url = utils.get_url("oauth2_client", id=oauth2_client_id) utils.get_ok(url) def test_read_notOwner(client, seeder, utils): user_id...
27.714286
82
0.682732
f1c743338a1ac1f386344474508b8fe9622e0d4b
12,514
py
Python
Apps/Vorverarbeitung/create_subject_annotation_classes.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Vorverarbeitung/create_subject_annotation_classes.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Vorverarbeitung/create_subject_annotation_classes.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # import python libs import re import json import argparse import json import random from os import listdir from os.path import isfile, join from pprint import pprint as pp from collections import deque # import project libs import create_annotated_corpus # defining g...
40.762215
126
0.661179
f1d1599f26e449d04856a7475216653f3eebd62d
290
py
Python
packages/watchmen-model/src/watchmen_model/gui/favorite.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/gui/favorite.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/gui/favorite.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from pydantic import BaseModel from watchmen_model.common import ConnectedSpaceId, DashboardId, LastVisit, UserBasedTuple class Favorite(UserBasedTuple, LastVisit, BaseModel): connectedSpaceIds: List[ConnectedSpaceId] = [] dashboardIds: List[DashboardId] = []
26.363636
90
0.813793
f1d9c9b6a9e0cdba7c384b29d07173cd6aac3663
9,769
py
Python
lib/widgets/wizard.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/wizard.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/widgets/wizard.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import (QPushButton, QLabel, QFileDialog, QComboBox, QWizard, QWizardPage, QLineEdit, QVBoxLayout, QApplication, QHBoxLayout) from ..services.actions import Call from ..func import get_pattern from ..statics import NODECNAMES, EDGECNAMES #...
38.011673
99
0.636708
9e402ec0c81a78ec15ba15355351ab2d4dbbc70a
728
py
Python
DataStructures/Tree/InorderTraversal.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/InorderTraversal.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Tree/InorderTraversal.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 def inOrder(root): if root: inOrder(root.left) print root.data, inOrder(root.right) def inOrder_stupid(root): stack = [root] while stack: node = stack.pop() if node.left: stack.append(node) stack.append(node.left) ...
20.222222
36
0.51511
9e928952d13965ae6933a184402058f74bf8046f
613
py
Python
py-td3-cinema/gui/new.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td3-cinema/gui/new.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
py-td3-cinema/gui/new.py
HuguesGuilleus/istyPOO
f460665799be2b2f34a1ebaa9878e06bb028a410
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from gi.repository import Gtk from . import edit db = None builder = None initialize = False def init(b, d): "Prépare la création d'un nouvel objet." global db, builder, initialize builder = b db = d builder.get_object("indexList").hide() builder.get_object("newZ...
19.774194
56
0.694943
cde0959f52bb4074c331bb3d2dd0e16c9ecc2855
962
py
Python
algorithms/ar-bsrt/python3/bubble_sort_exe.py
NuclearCactus/FOSSALGO
eb66f3bdcd6c42c66e8fc7110a32ac021596ca66
[ "MIT" ]
59
2018-09-11T17:40:25.000Z
2022-03-03T14:40:39.000Z
algorithms/ar-bsrt/python3/bubble_sort_exe.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
468
2018-08-28T17:04:29.000Z
2021-12-03T15:16:34.000Z
algorithms/ar-bsrt/python3/bubble_sort_exe.py
RitvikDayal/FOSSALGO
ae225a5fffbd78d0dff83fd7b178ba47bfd7a769
[ "MIT" ]
253
2018-08-28T17:08:51.000Z
2021-11-01T12:30:39.000Z
# This is function for sorting the array using bubble sort def bubble_sort(length, array): # It takes two arguments -> Length of the array and the array itself. for i in range(length): j = 0 for j in range(0, length-i-1): if array[j] > array[j+1]: array[j], array[j+1] = a...
45.809524
111
0.634096
cdff1dcac24122449b1b75eeb430fbb61d6f8c80
1,267
py
Python
exercises/de/test_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/test_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/test_04_11_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( len(TRAINING_DATA) == 3 ), "Irgendetwas scheint mit deinen Daten nicht zu stimmen. Erwartet werden 3 Beispiele." assert all( len(entry) == 2 and isinstance(entry[1], dict) for entry in TRAINING_DATA ), "Die Trainingsdaten haben nicht das richtige Format. Erwartet wir...
45.25
158
0.650355
93ff5227a48408e109f4148250f0bc3fa8839969
39
py
Python
src/server/__init__.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/__init__.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
src/server/__init__.py
muenstermannmarius/ElectionSystem
a6e60d9147423787e869587b808def4771f89cb7
[ "RSA-MD" ]
null
null
null
print("server package initializes ...")
39
39
0.74359
274cf06283a0a2bd1e52541c05a4b38428b8f0f7
879
py
Python
intro-vietstack/tools/tagcloud.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
1
2016-11-29T09:35:50.000Z
2016-11-29T09:35:50.000Z
intro-vietstack/tools/tagcloud.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
8
2016-09-23T01:25:12.000Z
2016-11-14T04:02:16.000Z
intro-vietstack/tools/tagcloud.py
vietstack/vietstack.github.io
6571001dc72751ee89115d9ed520c2b9ca2f2b86
[ "MIT" ]
14
2016-09-22T01:46:57.000Z
2019-09-05T05:42:11.000Z
#!/usr/bin/python import os import sys import argparse import askbot def parse_args(): p = argparse.ArgumentParser() p.add_argument('--endpoint', '-e', default='https://ask.openstack.org/en/api/v1') p.add_argument('--limit', '-l', default=1000, typ...
20.928571
71
0.518771
fda26313fad19e7f4d8018c00129a2d68c331683
1,744
py
Python
src/test/tests/databases/h5part.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/h5part.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/h5part.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: h5part.py # # Programmer: Gunther Weber # Date: January, 2009 # # Modifications: # Mark C. Miller, Wed Jan 21 09:36:13 PST 2009 # Took Gunther's original code and integrated it with test ...
27.25
78
0.693807
d0233f635149000801c897af99a3c62d23a51a3b
6,372
py
Python
src/preprocessing_classification.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
2
2018-03-13T06:49:32.000Z
2018-03-16T16:04:06.000Z
src/preprocessing_classification.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
null
null
null
src/preprocessing_classification.py
B1T0/DeUs
392f3bd3a97190cc2bc5dda9385b9728252cb975
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf alphabet = "abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{}\n" def get_batched_one_hot(char_seqs_indices, labels, start_index, end_index, nn="cnn"): x_batch = char_seqs_indices[start_index:end_index] y_batch = labels[start_index:end_index] ...
45.191489
102
0.62806
d0580caa50b6671941d52853c4e077901668ddc7
5,277
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/Rsync/Rsync.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/Rsync/Rsync.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/Rsync/Rsync.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import os import logging import re from copy_reg import pickle from multiprocessing import Pool from subprocess import check_output from types import MethodType from RsyncUploadThread import RsyncUploadThread from mongodb_consistent_backup.Common import config_to_string from mongodb_consistent_backup.Errors import O...
35.897959
139
0.600341
3ec18b017cefbc6f8d7136d75fbbe02aae206e4f
747
py
Python
vkapp/bot/dao/moneyDAO.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
1
2017-11-23T13:33:13.000Z
2017-11-23T13:33:13.000Z
vkapp/bot/dao/moneyDAO.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
vkapp/bot/dao/moneyDAO.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
from vkapp.bot.models import Income, Payment, Blogger, News from .usersDAO import get_or_create_blogger def new_income_proposal(amount, news): income = Income(amount=amount, news=news, type=Income.PROPOSAL) blogger = news.blogger blogger.balance += amount blogger.save() income.save() def re_count_...
24.096774
87
0.721553
de1697c853b523656c534204afe853ba808d1454
257
py
Python
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.8-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# 13.8 Lambda Random # Using Lambda expressions, write a function # List<Integer> getRandomSubset(List<Integer> list) # that returns a random subset of arbitrary size. # All subsets, including the empty set, should be equally likely to be chosen.
42.833333
78
0.747082
de84a1991ceda7b7c74380bf83e67fd25b40d8c7
1,434
py
Python
books/PythonAutomate/webscrap/search.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/search.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/webscrap/search.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""search.py 인자값을 전달한 키워드 기반으로 상위 n개 링크 웹 브라우저 실행""" import sys import requests, webbrowser, bs4 URLS = { 'google': 'https://google.com/search?q=', 'duckduckgo': 'https://duckduckgo.com/?q=' } def parse_args() -> list: if len(sys.argv) < 2: print(f'python {__file__} <search query>') sys....
21.727273
101
0.623431
cd290cf05838f412872c8c6c94ba3cc084824729
50
py
Python
torba/torba/client/errors.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/client/errors.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/client/errors.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
class InsufficientFundsError(Exception): pass
16.666667
40
0.8
f84004d3e63f1c2b996499d2deeb18c3df1165b4
1,266
py
Python
exercises/python/data-types/collections/pilling-up-loop.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/collections/pilling-up-loop.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/collections/pilling-up-loop.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
# Given a number of linear cubes with it's size lengths, # print if you can stack the cubes by grabing the rightmost or leftmost each time # print 'Yes' if you can pile the cubes or 'No' otherwise # Sample Input # 2 # 4 # 4 3 2 4 # 3 # 3 2 1 # Sample Output # Yes # No from collections import deque def grab_a_cub...
21.457627
81
0.583728
39f5aecafae8bf1ee9b03439a6457473f7deef49
754
py
Python
Jahr 1/M/Gleichungen/LineareGleichungen.py
BackInBash/Technikerschule
6e30654417732fae065e36a40789866ccca6aa7e
[ "MIT" ]
2
2021-01-20T16:16:41.000Z
2022-01-12T15:37:53.000Z
Jahr 1/M/Gleichungen/LineareGleichungen.py
BackInBash/Technikerschule
6e30654417732fae065e36a40789866ccca6aa7e
[ "MIT" ]
2
2020-06-17T21:55:24.000Z
2021-09-08T20:40:41.000Z
Jahr 1/M/Gleichungen/LineareGleichungen.py
BackInBash/Technikerschule
6e30654417732fae065e36a40789866ccca6aa7e
[ "MIT" ]
1
2020-12-28T13:03:34.000Z
2020-12-28T13:03:34.000Z
GlowScript 3.0 VPython #setup spielfeld = box(size = vec(100, 50, 5)) tor_l = box(size = vec(10,30,5), pos = vec(-45,0,0), color = color.green) tor_r = box(size = vec(10,30,5), pos = vec(+45,0,0), color = color.green) puck = sphere(radius = 3, color = c...
19.842105
44
0.570292
f2e55fe6dd28c25ce694b3a09198bd3a4ea8a287
388
py
Python
source/pkgsrc/archivers/py-czipfile/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/archivers/py-czipfile/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/archivers/py-czipfile/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2016/07/09 21:13:02 wiz Exp $ Use setuptools for packaging to create nice eggs. --- setup.py.orig 2010-07-28 06:19:12.000000000 +0900 +++ setup.py 2016-07-07 21:11:32.000000000 +0900 @@ -2,6 +2,7 @@ # vim: set expandtab tabstop=4 shiftwidth=4: import os +import setuptools from distu...
25.866667
59
0.724227
299463637c8265dd9b83e9adc974be667b820e5e
1,576
py
Python
HW1/p6.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW1/p6.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW1/p6.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
#Kyle Verdeyen #kverdey1@jhu.edu #Computer Vision EN.601.461 #Assignment 1 #Programming section 2, p6.py #Thresholds an edge image to only return strong edges. #Also performs Hough transform and scales to maxval=255 import cv2 import numpy as np #loosely based on an implementation found here # https://rosettacode.org...
32.163265
78
0.714467
29f95fd8b1fe319e6fba67756fffb13695a133c2
1,927
py
Python
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_menu/test_restaurant_menu.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/restaurant/doctype/restaurant_menu/test_restaurant_menu.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_menu/test_restaurant_menu.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest test_records = [ dict(doctype='Item', item_code='Food Item 1', item_group='Products', is_stock_item=0), dict(doctype='Item', item_cod...
35.685185
99
0.707317
4b254f85ca684200ef8973061a3a39dab730b676
2,632
py
Python
spo/utils/mandat_invoice.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
null
null
null
spo/utils/mandat_invoice.py
libracore/spo
c6617a4624d683e27ee3fde745313c30504f3fd1
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/utils/mandat_invoice.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe @frappe.whitelist() def get_mandat_logs(mandat): mandat = frappe.get_doc("Mandat", mandat) referenz_anfrage = mandat.anfrag...
59.818182
191
0.50228
8a9c790066953dd47a829fdb4114813f539cba83
717
py
Python
pythonProj/FZPython/demo/update_symbol.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/update_symbol.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/update_symbol.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 from pyquant.db_models import * def add_exchange_id(): """ 0开头的添加 exchangeId: SZ 6开头添加 exchangeId: SH """ for symbol in Symbol.get_all( limit=0): # print(symbol) if symbol.ticker.startswith('6'): symbol.exchange_id = 'SH' ...
18.868421
48
0.582985
0a111dfe51310c5dc255496f0991da199ecbe61a
5,927
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_port_cos_rate_setting.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_port_cos_rate_setting.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/pn_port_cos_rate_setting.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright: (c) 2018, Pluribus Networks # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['...
28.63285
111
0.614139
6aaa7c461797333ca76a5b3ef9cd3e7b8a096722
2,471
py
Python
Python/00_little_helper/configured_logger/configured_logger.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/00_little_helper/configured_logger/configured_logger.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/00_little_helper/configured_logger/configured_logger.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
######################################### # author: Thomas Strehler # created: 25.02.2021 ####################################### import logging import os def printit(): print("import geht endlich1!!!") class MyLogger: """ Usage: Import Class My Logger Add optional loglevels for stream and file-Ha...
30.134146
118
0.601781
0ac13c344ecec4e6aa6af8c78c5ca650561fc969
1,033
py
Python
nz_django/day4/method_decorator_demo/article/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day4/method_decorator_demo/article/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day4/method_decorator_demo/article/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render,redirect,reverse from django.http import HttpResponse from django.views.decorators.http import require_http_methods,require_GET,require_POST,require_safe #require_GET 等同于require_http_methods(['GET']) #require_POST 等同于require_http_methods(['POST']) #require_safe get heade 请求 只能查看 不能修改...
36.892857
99
0.734753
0ae8dfe260a788275dde173063b457da4b7d3c27
3,237
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/test_gitlab_runner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Guillaume Martinez (lunik@tiwabbit.fr) # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import import pytest from ansible_collections.community.general.plugins.modules.source_control.gitlab.git...
34.073684
114
0.718876
7c1aa50a6f137de7f86c9cddce8a90d9fb5f4ee0
4,974
py
Python
modeling/model_utils/non_local_parts.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/model_utils/non_local_parts.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/model_utils/non_local_parts.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn.functional as F import torch.nn as nn class multi_head_attention_2d(torch.nn.Module): def __init__(self, in_channel, key_filters, value_filters, output_filters, num_heads, dropout_prob=0.5, layer_type='SAME'): super().__init__() """Multihead scaled-dot-product at...
38.859375
113
0.564335
863c0c02bb99e728169da6f3b2675c093dd3363d
192
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_2/update_attendance_docstatus.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/update_attendance_docstatus.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/update_attendance_docstatus.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doc("education", "doctype", "student_attendance") frappe.db.sql(''' update `tabStudent Attendance` set docstatus=0 where docstatus=1''')
21.333333
64
0.713542
07e8f666efd1b4dde3af6c27c5d9d3646d216262
165
py
Python
Online-Judges/DimikOJ/Python/28-ramdom-array.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/28-ramdom-array.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/28-ramdom-array.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
material = [] for i in range(int(input())): material.append(int(input())) srted = sorted(material) if srted == material: print("YES") else: print("NO")
16.5
33
0.618182
9c51e7500f9f84b7fd9fa0c4efe0760648c1e466
1,539
py
Python
pykasso/abrechnung.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
pykasso/abrechnung.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
pykasso/abrechnung.py
pekh/pykasso
86ece737d62ce28aef00805a19a789714e788453
[ "MIT" ]
null
null
null
from collections import defaultdict from dataclasses import dataclass from datetime import date, datetime from decimal import Decimal from typing import Dict, List @dataclass(eq=True, frozen=True) class Mitglied: name: str vorname: str anrede: str = 'Hallo' strasse: str = '' plz: str = '' ort...
26.084746
92
0.638077
b9b5a2cb650de0028f3b2df5d2a206f43aa1a7d9
800
py
Python
nz_django/day5/orm_homework/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day5/orm_homework/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day5/orm_homework/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.db import models class Student(models.Model): """学生表""" name = models.CharField(max_length=100) gender = models.SmallIntegerField() class Meta: db_table = 'student' class Course(models.Model): """课程表""" name = models.CharField(max_length=100) teacher = models.ForeignKe...
24.242424
78
0.66
6a0485e3b0b3438cfb8e9eb18619f96102aedf38
13,219
py
Python
evo_algorithm/ea_fields/ea_template_field.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
evo_algorithm/ea_fields/ea_template_field.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
evo_algorithm/ea_fields/ea_template_field.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
# -*- coding: utf-8 -*- import requests import os import skimage import random import json import webbrowser import time import pandas as pd import matplotlib.pyplot as plt import os import sys from PIL import Image, ImageDraw global population global api_calls global stop global MUTATION_RATE classList = [] confidenc...
33.130326
145
0.543158
e04c9b24f600b16b94b183fe669b811016df28a5
1,074
py
Python
listings/chapter05/bubblesort_with_counter.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter05/bubblesort_with_counter.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter05/bubblesort_with_counter.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
def bubblesort(unsorted): counter = 0 # Vorerst Endlosschleife while True: # Bis auf Weiteres gilt die Liste als sortiert is_sorted = True # Erstes bis vorletztes Element for i in range(0, len(unsorted) - 1): counter += 1 # Aktuelles Element größer als...
34.645161
75
0.550279
0ec80f64a12322fb90d737e554079b2db6c51bf6
19,444
py
Python
MoPulseGen/data/sim_for_model_4.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
MoPulseGen/data/sim_for_model_4.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
MoPulseGen/data/sim_for_model_4.py
tushar-agarwal2909/MoPulseGen
a0edeaf67f956e7db27e70f07e47d2f992bcb6f3
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Jul 6 15:00:21 2019 @author: agarwal.270a """ # Import Libraries import numpy as np import matplotlib.pyplot as plt from scipy import signal as sig from scipy.signal import windows as win import pandas as pd from scipy import io import pickle from scipy.stats i...
40.848739
148
0.613351
161f91d8b95c7a757527e07d67a4e5ab0740a5bd
566
py
Python
noticias/migrations/0003_auto_20190507_1727.py
miglesias91/dt
6e00f883ebdb581f87750852f18cf9e3058aae2f
[ "MIT" ]
null
null
null
noticias/migrations/0003_auto_20190507_1727.py
miglesias91/dt
6e00f883ebdb581f87750852f18cf9e3058aae2f
[ "MIT" ]
null
null
null
noticias/migrations/0003_auto_20190507_1727.py
miglesias91/dt
6e00f883ebdb581f87750852f18cf9e3058aae2f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-05-07 20:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('noticias', '0002_remove_nota_comentario'), ] operations = [ migrations.AddField( model_name='nota', name='slug', ...
23.583333
64
0.572438
bc94452fb3032b28a2ec41cb2020077af1748c27
22,737
py
Python
python/objectdetector/utils.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/objectdetector/utils.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
null
null
null
python/objectdetector/utils.py
thomas-trendsoft/BeerBot
9ac9bfcede3f37dc8aaa3ee09e06272a1b43a9e9
[ "MIT" ]
1
2020-12-31T01:22:19.000Z
2020-12-31T01:22:19.000Z
#================================================================ # # File name : utils.py # Author : PyLessons # Created date: 2020-09-27 # Website : https://pylessons.com/ # GitHub : https://github.com/pythonlessons/TensorFlow-2.x-YOLOv3 # Description : additional yolov3 and yolov4 functio...
40.747312
201
0.617892
4c3e65c30aa21036d636e7b7b76adc0bd973b0e3
2,964
py
Python
WiSe-2122/Uebung-11/Gruppe-C/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Uebung-11/Gruppe-C/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Uebung-11/Gruppe-C/U11-A2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Entwickeln Sie eine Version von Hangman in Python. Hierbei soll randomisiert aus einer Liste von Ihnen # vorgegebener Wörter eines ausgewählt und dem Nutzer zugewiesen werden. Dieser rät dann einzelne Buchstaben. # Ist der Buchstabe korrekt, wird dieser in der nächsten Ausgabe an der richtigen Stelle angezeigt. Ist e...
38
147
0.654858
54f068388216c6dedb95ce2987ca476a9ac75ee9
686
py
Python
Integrations/test_python/jpy_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
Integrations/test_python/jpy_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
Integrations/test_python/jpy_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
# # Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending # # add JDK to path (otherwise jnius gives DLL load error) import os os.environ['PATH'] = os.environ['PATH'] + ";C:\\Program Files\\Java\jdk1.8.0_72\\jre\\bin\\server" os.environ['PATH'] = os.environ['PATH'] + ";C:\\Program Files\\Java\jdk1.8.0_60\\jre...
24.5
98
0.688047
0708b286f2eede3d619fe161ea6768baef98e1f6
8,518
py
Python
scripts/style/check-header-guards.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
14
2020-10-25T05:48:36.000Z
2021-09-20T02:46:20.000Z
scripts/style/check-header-guards.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
scripts/style/check-header-guards.py
DamieFC/fuchsia
f78a4a1326f4a4bb5834500918756173c01bab4f
[ "BSD-2-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
#!/usr/bin/env python2.7 # Copyright 2016 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Script to check C and C++ file header guards. This script accepts a list of file or directory arguments. If a given path is a fil...
31.783582
81
0.603193
0768cc4ce44f76022f300170aa4906165d6a0726
3,512
py
Python
DataStructure/U11/u76.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
DataStructure/U11/u76.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
DataStructure/U11/u76.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
# nxn chessboard n = 10 # number of dragons on the chessboard dragons = 10 solution = [-1]*n captured = [[0 for i in range(n)] for i in range(n)] number = 0 local_calls = 0 total_calls = 0 def init(): global captured def isCaptured(x, y): global captured return captured[x][y] def capture(...
21.156627
73
0.375854
ab36310e71aab5b7fae4dae1f2ab0fda8f0edcf3
98
py
Python
Python/Aula10/ExerciciosPython/ExerciciosElif/ComparandoNumeros.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/ExerciciosElif/ComparandoNumeros.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/ExerciciosElif/ComparandoNumeros.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Escreva um programa que leia dois números inteiros e compare-os. mostrando na tela uma mensagem:
49
97
0.806122
db4d967f97727f747037a4e8a241667be46b1839
328
py
Python
Object Oriented Programming/Object Oriented Programming dossier/enterprise.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming dossier/enterprise.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/Object Oriented Programming dossier/enterprise.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import main crew_mitglied_1 = main.CrewMitglied() crew_mitglied_1.nachname = "Quirk" print(crew_mitglied_1.nachname) crew_mitglied_4 = main.CrewMitglied() crew_mitglied_4.nachname = "Quirky" print(crew_mitglied_4.nachname) print(main.CrewMitglied) print(id(crew_mitglied_4.nachname)) print(crew_mitglied_4==crew_mitgli...
21.866667
39
0.82622
72d7637395c4e4d053af5e766c0a56c1770c1cec
1,369
py
Python
hardware/chip/rtl872xd/build_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/build_bin.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/build_bin.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
#! /usr/bin/env python import os import platform import argparse import sys import shutil print(sys.argv) parser = argparse.ArgumentParser() parser.add_argument('--target', dest='target', action='store') args = parser.parse_args() mypath = os.path.dirname(sys.argv[0]) os.chdir(mypath) print(os.getcwd()) target = arg...
26.843137
131
0.677867
f42871b4830f3266f76df5525df3b179c5855904
6,556
py
Python
official/cv/alexnet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/alexnet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/alexnet/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.417219
119
0.705003
be74cb5278563e2c0c727d6764696d19f41a4004
657
py
Python
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/13.Types-of-Methods.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/13.Types-of-Methods.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/13.Types-of-Methods.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# There are three type methods # Instance methods # Class methods # Static methods class Student: school = "Telusko" @classmethod def get_school(cls): return cls.school @staticmethod def info(): print("This is Student Class") def __init__(self, m1, m2, m3): self.m1 = ...
16.846154
48
0.585997
fe5dd6ef946e01550dbf96ea873e0e6a94b6223c
2,507
py
Python
huTools/http/engine_httplib2.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/http/engine_httplib2.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/http/engine_httplib2.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ engine_httplib2.py implements httplib2 based queries for huTools.http Created by Maximillian Dornseif on 2010-10-24. Copyright (c) 2010, 2011 HUDORA. All rights reserved. """ from __future__ import unicode_literals from builtins import object import socket import huTools.ht...
37.41791
106
0.66414
fe9ab7da55844d4a1fdd39cf799a850e990bc7bc
216
py
Python
mainwin.py
916958205/HanWei
66cd9d4495cd95145fe72de4cbcce5a0a76b716c
[ "MIT" ]
null
null
null
mainwin.py
916958205/HanWei
66cd9d4495cd95145fe72de4cbcce5a0a76b716c
[ "MIT" ]
null
null
null
mainwin.py
916958205/HanWei
66cd9d4495cd95145fe72de4cbcce5a0a76b716c
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import * app = QApplication(sys.argv) mywidget = QWidget() mywidget.setGeometry(200,200,600,300) mywidget.setWindowTitle("Hello PyQt5") mywidget.show() sys.exit(app.exec_())
21.6
39
0.740741
4a9210e69a5b01e157689bfffe2fe1f0d3533460
54
py
Python
Problems/Dynamic Programming/Easy/DivisorGame/divisor_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Dynamic Programming/Easy/DivisorGame/divisor_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Dynamic Programming/Easy/DivisorGame/divisor_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
def divisorGame(n: int) -> bool: return n % 2 == 0
27
32
0.574074
6072ec4a6cf38366a34046b4f169e8782e764658
997
py
Python
chapter01/postgres_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter01/postgres_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter01/postgres_study.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
# pip install psycopg import psycopg # Connect to database client = psycopg.connect("postgres://username:password@127.0.0.1") cursor = client.cursor() # Create table cursor.execute( """ CREATE TABLE table_name( sku integer, name varchar(255), description text, category varchar(...
23.186047
248
0.698094
71a89e1600d74e6aadd3137ef02d9118ef093d4d
576
py
Python
algorithms/sorting/countingsort2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/sorting/countingsort2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/sorting/countingsort2.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
import sys def print_list(ar): print(' '.join(map(str, ar))) def insertion_sort(ar): if len(ar) == 1: print_list(ar) return (ar) else: for j in range(1, len(ar)): for i in reversed(range(j)): if ar[i + 1] < ar[i]: ar[i], ar[i + 1] =...
19.2
55
0.465278
e08182f902793a6bb25cc908d68f31a715f0aa01
3,432
py
Python
research/cv/PGAN/src/customer_layer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/PGAN/src/customer_layer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/PGAN/src/customer_layer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.647059
108
0.611305
e81f3beaef0460340adf80110f1e58e34051372f
455
py
Python
insomniac/globals.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
533
2020-06-01T10:40:11.000Z
2022-03-29T17:05:50.000Z
insomniac/globals.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
399
2020-06-01T22:01:55.000Z
2022-03-29T20:39:29.000Z
insomniac/globals.py
shifenis/Insomniac
7c9d572b83c29049bc3075073be5549fe821a739
[ "MIT" ]
166
2020-06-01T21:51:52.000Z
2022-03-12T14:14:44.000Z
# These constants can be set by the external UI-layer process, don't change them manually is_ui_process = False execution_id = '' task_id = '' executable_name = 'insomniac' do_location_permission_dialog_checks = True # no need in these checks if location permission is denied beforehand def callback(profile_name): ...
23.947368
114
0.78022
c7e77f8396527723480d65285dbe49196381cf4a
3,480
py
Python
api/scripts/image_requests.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
api/scripts/image_requests.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
api/scripts/image_requests.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Guido Lemoine, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import logging from scripts import backgrou...
31.351351
77
0.656609
40d65ae3d9a535bb7b8d32538ff709d83482fe89
322
py
Python
exercises/pt/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_03_14_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "patterns = list(nlp.pipe(people))" in __solution__ ), "Você está usando nlp.pipe envolvido em uma lista (list)?" __msg__.good( "Bom trabalho! Vamos seguir agora com um exemplo prático que " "usa nlp.pipe para processar documentos com metadados adicionais." ...
32.2
74
0.65528
295b0e2c98328609058fa98007fec71342d1c8a6
967
py
Python
src/nfz_module/writer/ImageFileWriter.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/writer/ImageFileWriter.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/writer/ImageFileWriter.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
import sys import os import cv2 as opencv class ImageFileWriter: def __init__(self): pass def write_images(self, *args): image_directory = '/root/ghisallo_venv/src/opencv_direction_indicator_detection/oop/test_images/' if len(args) % 2 != 0: print('argument error: got not enough names for files to write.')...
31.193548
150
0.716649
2981346c3db0a3b37e7df408634135c10107f128
1,691
py
Python
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_compile_dw_mag.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_compile_dw_mag.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/visit_flow_vpe/examples/flow_vpe_pyocl_compile_dw_mag.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: vpe_flow_npy_ops_example_1.py author: Cyrus Harrison <cyrush@llnl.gov> created: 3/28/2...
30.196429
73
0.655825
461cb689aa037e31bf8e85bbf5e6e6ee9983c93d
598
py
Python
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P07_HotelRoom.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P07_HotelRoom.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P07_HotelRoom.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
month = input() days = int(input()) cost_a = 0 cost_s = 0 if month == "May" or month == "October": cost_a = days * 65 cost_s = days * 50 if 7 < days <= 14: cost_s = cost_s * 0.95 if days > 14: cost_s = cost_s * 0.7 elif month == "June" or month == "September": cost_a = days * 68.70...
22.148148
45
0.548495
d3f0263c1029fc8074ff0ba2ade5f3885f319e79
478
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_1/save_stock_settings.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/save_stock_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_1/save_stock_settings.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 def execute(): stock_settings = frappe.get_doc('Stock Settings') if stock_settings.default_warehouse \ and not frappe.db.exists("Warehouse", stock_settings.default_warehouse): stock_settings.default_warehouse = None if stock_settings.stock_uom and not...
29.875
87
0.797071
3169ea721f11da3ef897e1239e58961393bdb454
2,837
py
Python
Voting.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Voting.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
Voting.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
import random votes = [] stimme = None Rollennummer = 1 # Spieler ID gesamt_spieler = [] # Ort zum Sammeln aller Spielernamen spieler_nummer = {} # Ort zum Sammeln von Spieler ID und zugewiesener Spieler for x in range(0, 4): # 4 Spieler eingeben spielername = input("Was ist ihr Spielername? ") # Spielernam...
31.876404
119
0.662672
31ecabf8f218b507e5f90a6d73407b82a4266e4d
2,322
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/12_kapitel_6_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/12_kapitel_6_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_06_Stringbearbeitung/12_kapitel_6_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
print('1. Was sind Maskierungssequenzen?') input() print('Maskierungszeichen stehen für Zeichen die sonst nur\nschwer in einem Code wiedergeben lassen') print(r'Beispiele: \n für newline \t für tabulator \\ für backslash ... ') print('') input() print('2. Wofür stehen die Maskierungssequenzen \\t und \\n') input() pri...
36.28125
195
0.710594
9ed178365b543bb10c9662617049b7f042a2b479
2,537
py
Python
03 Python/Smart Home Dashboard/loesung/widgets/label.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/widgets/label.py
DennisSchulmeister/dhbwka-wwi-iottech-quellcodes
58f86907af31187f267a9ea476f061cc59098ebd
[ "CC-BY-4.0" ]
null
null
null
03 Python/Smart Home Dashboard/loesung/widgets/label.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 pygame from pygame.locals import * from .widget import Widget class LabelWidget(Widget): """ Ein einfaches Label mit einem statischen Text. """ def __init__(self, x, y, w, h, font, color, label, outline=False): """ Konstruktor. @param x: X-Position ...
32.948052
126
0.592038
731fb0b256aedf6f79e5439087f61efa1a97c3aa
4,258
py
Python
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2020/misc/BonziScheme/app/bonzi/acsparse.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os import struct from tabulate import tabulate import numpy as np import bitstring from PIL import Image SZ_ULONG = 4 SZ_LONG = 4 SZ_USHORT = 2 SZ_SHORT = 2 SZ_BYTE = 1 SZ_WCHAR = 2 class ACSParseException(Exception): def __init__(self, value): super(ACSParseE...
22.892473
85
0.57891
b451487f15ab6120eb0d8548df4f0621080d7fdf
2,936
py
Python
python/coursera_python/MICHIGAN/WEB/week6/json_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/WEB/week6/json_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/WEB/week6/json_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import json data = ''' [ { "name":"Sister", "count":95 }, { "name":"Sidharth", "count":94 }, { "name":"Ilona", "count":93 }, { "name":"Ruairidh", "count":93 }, { "name":"Virginie", "count":92 }, { "name":"Alan...
13.048889
32
0.347752
c3579ddd4e8860bdd726d3ec8789219cad6e4451
938
py
Python
src/shl-deep-learning-prototyping-architectures/fcn.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
1
2021-04-13T20:16:36.000Z
2021-04-13T20:16:36.000Z
src/shl-deep-learning-prototyping-architectures/fcn.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
src/shl-deep-learning-prototyping-architectures/fcn.py
PhilippMatthes/diplom
b51356ec5773b385a308bc8d0d7867f519c390d6
[ "MIT" ]
null
null
null
from tensorflow import keras def make_fcn(input_shape, output_classes): input_layer = keras.layers.Input(input_shape) conv1 = keras.layers.Conv1D(filters=128, kernel_size=8, padding='same')(input_layer) conv1 = keras.layers.BatchNormalization()(conv1) conv1 = keras.layers.Activation(activation='relu'...
36.076923
88
0.738806
c373143c027028354f1a8f5d197f94f7458d7b42
3,201
py
Python
rad/_DeepAE.py
dlegor/rad
7a34bf55ce21adc860ff28a2c9d66943acd6ae6a
[ "BSD-3-Clause" ]
10
2020-10-08T21:57:23.000Z
2022-02-18T04:30:46.000Z
rad/_DeepAE.py
dlegor/rad
7a34bf55ce21adc860ff28a2c9d66943acd6ae6a
[ "BSD-3-Clause" ]
1
2020-07-07T17:27:27.000Z
2020-07-09T12:20:43.000Z
rad/_DeepAE.py
dlegor/rad
7a34bf55ce21adc860ff28a2c9d66943acd6ae6a
[ "BSD-3-Clause" ]
1
2021-01-18T15:46:29.000Z
2021-01-18T15:46:29.000Z
import tensorflow as tf import numpy as np def batches(l, n): """Yield successive n-sized batches from l, the last batch is the left indexes.""" for i in range(0, l, n): yield range(i,min(l,i+n)) class Deep_Autoencoder(object): def __init__(self, sess, input_dim_list=[7,64,64,7],transfer_function...
44.458333
106
0.619494
5eed8fe31f55d4ab61ed6132e152cbbd398cd3b7
595
py
Python
crack/hashing/passwdtest.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
crack/hashing/passwdtest.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
crack/hashing/passwdtest.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import re from passwdformats import FILE_FORMAT # FILE_FORMAT['smbpasswd'] = ['name', 'uid', 'LM_hash', 'NTLM_hash', 'Account Flags', 'Last Change Time'] file = 'target.passwd' file_format = 'custom' userlist = {} pattern = r'(.*)(:)(.*)(:)(.*)(:)(.*)(:)(.*)(:)' f = open(file) for line in f: match = re.match(patt...
29.75
143
0.603361
82657dfefdc6cc6b96d89ad990bde80ff0c4fecb
738
py
Python
ImageData.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
ImageData.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
ImageData.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from OrigPic import OrigPic from WaveletPic import WaveletPic from StationaryWaveletPic import StationaryWaveletPic from FVExtraction import FVExtraction from ScanAssets import ScanAssets from PipelineManager import PipelineManager from LOOCV import LOOCV from EuclideanDistance import EuclideanDistance from kNearestNei...
35.142857
57
0.895664
8185e15a8b6a72ac97cf93c79161000ca6bfa057
247
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/hypotenuese_of_triangle_sqrt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from math import sqrt print("Input the lengths of the shorter sides of the triangle") a=float(input("enter the 1 side of the triangle")) b=float(input("enter the 2 side of the triangle")) c=sqrt(a**2+b**2) print("The length of the triangle = ",c)
35.285714
63
0.724696
81d7541d7d020b438677dddabf2aae1a5a9876c6
37,097
py
Python
src/test/tests/unit/atts_assign.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/unit/atts_assign.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/unit/atts_assign.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: atts_assign.py # # Tests: Behavior of assignment for attribute objects. Ensures good cases # succeed and bad cases fail with specific python exceptions. Tests variety # of types present in members of V...
32.742277
125
0.552848
c4ed2a6ac17eedb94300e52e351a0d35ed7a1ac4
2,376
py
Python
rasa/cli/arguments/interactive.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
30
2020-11-30T12:55:45.000Z
2022-01-20T02:53:03.000Z
rasa/cli/arguments/interactive.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/cli/arguments/interactive.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
10
2021-01-11T02:08:43.000Z
2021-11-19T09:12:46.000Z
import argparse import uuid from rasa.cli.arguments.default_arguments import ( add_domain_param, add_stories_param, add_model_param, add_endpoint_param, ) from rasa.cli.arguments.train import ( add_force_param, add_data_param, add_config_param, add_out_param, add_debug_plots_param, ...
28.626506
94
0.732744
96bf52a9309ccdb253885c7cd0154552247cc74f
11,553
py
Python
ui.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
3
2020-07-31T11:22:04.000Z
2020-07-31T19:59:18.000Z
ui.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
null
null
null
ui.py
wdr-data/1live-plays
68ed22a659ea1540550bc9f5e70fdb83f362fa06
[ "MIT" ]
null
null
null
from enum import Enum import os import pygame import pygame.gfxdraw import pygame.ftfont import pygame.image import pygame.transform import numpy as np import game_logic as game from square_rect import SquareRect from config import config SQUARESIZE = 100 HALF_SQUARE = int(SQUARESIZE / 2) RADIUS = int(HALF_SQUARE - ...
30.243455
92
0.64321
fbde4302833ec88b5839af1a2bdd4789b1c8ae09
478
py
Python
main.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
main.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
main.py
fossabot/superstructure
f4ab5cac269fb3dedfbd3a54c441af23edf3840b
[ "MIT" ]
null
null
null
from redisworks import Root from superstructure.geist import Bewusstsein # TODO find way to pickle objects def main(): root = Root # redis.Redis('localhost') try: weltgeist = root.weltgeist except BaseException: print("Creating new weltgeist") weltgeist = Bewusstsein(name="Weltge...
20.782609
49
0.669456
f7cf7f75169ba1389eb6a8f9cbdc9b4d34034585
813
py
Python
resources/mechanics_lib/Rectangle.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/Rectangle.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/Rectangle.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.component import Component from api.shapes import Rectangle as Rect class Rectangle(Component): def defParameters(self): self.newParameter("l") self.newParameter("w") def defInterfaces(self): self.newInterface("t") self.newInterface("b") self.newInterface("l") self.newInterface("...
23.911765
50
0.648216
7902ce0e0f474b9d52cbbbf288f0fab89b6b4bfe
4,422
py
Python
app.py
skrzypak/soaf
f742d4b090fad72893ed1f509f4abdbb020aa99d
[ "MIT" ]
null
null
null
app.py
skrzypak/soaf
f742d4b090fad72893ed1f509f4abdbb020aa99d
[ "MIT" ]
null
null
null
app.py
skrzypak/soaf
f742d4b090fad72893ed1f509f4abdbb020aa99d
[ "MIT" ]
null
null
null
import glob import shutil import subprocess import os import sys import argparse # Read and save metadata from file def exiftool_metadata(path): metadata = {} exifToolPath = 'exifTool.exe' ''' use Exif tool to get the metadata ''' process = subprocess.Popen( [ exifToolPath, ...
32.755556
130
0.556083