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
b9e01858b105fdac329d8866fe7276da05d5cfe6
1,448
py
Python
2_Iterables/Lists/lists.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
2_Iterables/Lists/lists.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
2_Iterables/Lists/lists.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# basic features for lists: https://docs.python.org/3/tutorial/datastructures.html # List: mutable def main(): my_list = list() my_list = [1, 2, 3] print("----------Hinzufügen----------") # Option 1: Single Value my_list.append(-10) print(my_list) # Option 2: List Concatenation (Verkettu...
20.985507
82
0.560083
e00b645841cf57d5da57ccbf53f47615349870c7
28,552
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/network/routing.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/contributed/sumopy/coremodules/network/routing.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/contributed/sumopy/coremodules/network/routing.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
40.614509
189
0.504973
16141fc7912eff2630ee2716a0513f817bff7308
2,480
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/lldp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/lldp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/net_tools/lldp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright: Ansible Project # 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': ['preview'],...
29.176471
92
0.592339
161b3b9572ae019879eb06a9654e3af95be5891d
197
py
Python
hello-world/hello/hello.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
hello-world/hello/hello.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
hello-world/hello/hello.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
def hello(): return "Hello, pobby!" def main(): s = hello() print(s) """hahahahahah sdjfkadsjflksdjfkldsajfklsda fjdaslkfjdsakl""" if __name__ == '__main__': main()
13.133333
32
0.598985
1697cbbada3ad4216b2abe9509ecca194c6b89b3
389
py
Python
exercises/fr/exc_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_01_09.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.load("fr_core_news_sm") text = "Apple : le nouveau modèle X Pro attendu pour l'été." # Traite le texte doc = ____ # Itère sur les entités for ____ in ____.____: # Affiche le texte de l'entité et son label print(____.____, ____.____) # Obtiens la portion pour "X Pro" x_pro = ____ #...
19.45
60
0.706941
bc457aa6f2c9f86fd48baf479a195ae9e64bc729
5,559
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/report/budget_variance_report/budget_variance_report.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/budget_variance_report/budget_variance_report.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/report/budget_variance_report/budget_variance_report.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt from frappe.utils import formatdate from erpnext.controllers.trends import get_period_da...
38.337931
130
0.715956
bce44273fbafba0c45a7f5fb57bd3ef037cbf29d
77
py
Python
multimeter/globvar.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/globvar.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/globvar.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
''' Created on 15.02.2017 @author: emillokal ''' measure0=0 measure1=0
11
22
0.649351
4c0c6a9313e6ab7e161fe3bd6fedac7c6ff23a0a
558
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_maintenance_module_in_doctype.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_0/update_maintenance_module_in_doctype.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/update_maintenance_module_in_doctype.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors from __future__ import unicode_literals import frappe def execute(): frappe.db.set_value("DocType", "Maintenance Schedule", "module", "Maintenance") frappe.db.set_value("DocType", "Maintenance Schedule Detail", "module", "Maintenance") frappe.db....
50.727273
87
0.756272
4c37765fce61d94d70c7d552470b1e8946d11cdd
1,682
py
Python
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/data structures/datastructures-stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from singly_linked_list import LinkedList """ What is the difference between using an array vs. a linked list when implementing a Stack? Major difference is, arrays are index-based data structure and each element of the array is associated with an index. With a linked list, it re...
28.508475
74
0.595719
d5f08c2dd826a82b3823ae489dd2c6241b800607
7,234
py
Python
scriptsForPreprocessing/remove_bad_mask_manual.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
scriptsForPreprocessing/remove_bad_mask_manual.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
scriptsForPreprocessing/remove_bad_mask_manual.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import os, json import random import cv2 import numpy as np from PIL import Image, ImageDraw def resize_image_if_big(image): h, w, _ = image.shape scale_X = 1 scale_Y = 1 if w > 1024 or h > 768: scale_X = 1024 / w scale_Y = 768 / h image = cv2.resize(dst, (int(w * scale_X), int...
39.530055
117
0.581836
9104ecc2d4835f85068234be7d3cfbc689345b0c
42,358
py
Python
tests/onegov/election_day/screen_widgets/test_election_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/screen_widgets/test_election_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/screen_widgets/test_election_widgets.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from chameleon import PageTemplate from datetime import date from lxml import etree from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.ballot import ProporzElection from onegov.core.widgets import inject_variables from onegov.core.widgets import transform_structure from onegov.ele...
39.075646
79
0.502975
fc0323df9c1a2e11a21d12dbb890a153f48fbb4f
9,849
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/slxos_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/slxos_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/slxos_linkagg.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # (c) 2018 Extreme Networks Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any late...
30.211656
114
0.602396
4ac9d9ac70f42f3b68a1cf98efa1dbd5ceae6ffb
453
py
Python
backend/apps/ineedstudent/converters.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/ineedstudent/converters.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/ineedstudent/converters.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
class DecimalPointFloatConverter: """ Custom Django converter for URLs. Parses floats with a decimal point (not with a comma!) Allows for integers too, parses values in this or similar form: - 100.0 - 100 Will NOT work for these forms: - 100.000.000 - 100,0 """ regex = "[0...
20.590909
67
0.604857
ab4f0603128a12657e6585224797995588ba699c
298
py
Python
exercises/zh/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/solution_03_16_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("zh_core_web_sm") text = ( "在300多年的风雨历程中,历代同仁堂人始终恪守“炮制虽繁必不敢省人工,品味虽贵必不敢减物力”的古训," "树立“修合无人见,存心有天知”的自律意识,造就了制药过程中兢兢小心、精益求精的严细精神。" ) # 关闭tagger和parser with nlp.disable_pipes("tagger", "parser"): # 处理文本 doc = nlp(text) # 打印doc中的实体 print(doc.ents)
19.866667
56
0.691275
dbd781c4e49b976114458433160e622316423e66
854
py
Python
src/onegov/town6/views/payment.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/payment.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/payment.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.form import merge_forms from onegov.org.views.payment import view_payments, export_payments from onegov.town6 import TownApp from onegov.org.forms import DateRangeForm, ExportForm from onegov.pay import PaymentCollection from onegov.town6.layout import PaymentCollec...
30.5
79
0.784543
91641db7bc9e5c42bb376cf870acf52357d1a86c
461
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/22_operadores_logicos/22_operadores_logicos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Operadores logicos - aula 4 and, or not in e not in """ # (verdadeiro e False) = Falso #comparação1 and comparação #verdadeiro OU Verdadeiro #comp1 or comp2 #Not inverter uma expressão #Comando in muito utilllll nome = 'Pedro' if 'Ped' in nome: #todo: Muito util print('Existe o texto.') else: print('N...
16.464286
43
0.672451
919f3e4a49cc077319825dfa2692abc557e4abed
5,915
py
Python
demo.py
SevenDaysDA/MetaScience_Datenaufbereitung
a7a68c59dc96fa0b56c85a29505f8cb4fc06ccb1
[ "Apache-2.0" ]
null
null
null
demo.py
SevenDaysDA/MetaScience_Datenaufbereitung
a7a68c59dc96fa0b56c85a29505f8cb4fc06ccb1
[ "Apache-2.0" ]
null
null
null
demo.py
SevenDaysDA/MetaScience_Datenaufbereitung
a7a68c59dc96fa0b56c85a29505f8cb4fc06ccb1
[ "Apache-2.0" ]
null
null
null
import pandas as pd from mosestokenizer import MosesDetokenizer from scipy.stats import pearsonr def pearson(preds, labels): pearson_corr = pearsonr(preds, labels)[0] return '{0:.{1}f}'.format(pearson_corr, 3) reference_list = dict({ "cs-en": 'testset_cs-en.tsv', "de-en": 'testset_de-en.tsv'...
38.914474
347
0.651057
71df670ac770124d07e65111cce0fed66536bf5f
509
py
Python
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/058_validação_de_dados.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """058 - Validação de Dados Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1ZTluph36T-5jWIn1AJP2JN1XKyqGAYep """ sexo = '' while sexo != 'M' and sexo != 'F': sexo = str(input('DIgite o sexo [M/F]: ')).upper() if sexo !=...
25.45
77
0.626719
1cb9dc6f2b7d7ce39dd3da6ba05cdb37926b58ec
1,468
py
Python
setup.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
15
2021-11-01T09:02:19.000Z
2022-03-19T10:59:41.000Z
setup.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
62
2021-09-20T14:09:59.000Z
2022-03-30T19:03:22.000Z
setup.py
ardunn/matbench
7d11a2d63766339ec00e610e2255be29b81544d3
[ "MIT" ]
4
2021-03-22T10:37:42.000Z
2021-07-20T14:11:28.000Z
import os from setuptools import setup, find_packages MODULE_DIR = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(MODULE_DIR, "requirements.txt"), "r") as f: requirements = f.read().replace(" ", "").split("\n") # source of version is in the constants file VERSION_FILE = os.path.join(MODULE_DIR,...
34.139535
79
0.626703
1cd881f9de0a9712cd0134bcbb0c0a721c25ff49
1,872
py
Python
app/views_main.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
app/views_main.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
app/views_main.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
from app import app from flask import render_template, jsonify, request, url_for, redirect, flash from app.forms import loginForm from app.datafile_functions import get_data from flask_login import login_user, logout_user, current_user from app.models import User from werkzeug.urls import url_parse @app.route('/index...
31.2
84
0.672009
c77b4c2e0d65297eaf953b88d80b336b66f02824
508
py
Python
fastapi/tutorial-1-8-middleware/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-8-middleware/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
fastapi/tutorial-1-8-middleware/main.py
pisitj/practice-python-web-framework
5f7f60737b1cf9618e73ad8047b6c4f556d1feb0
[ "MIT" ]
null
null
null
# https://fastapi.tiangolo.com/tutorial/middleware/ from fastapi import FastAPI, Request import time app = FastAPI() @app.middleware("http") async def add_process_time_header(request: Request, call_next): # request start_time = time.time() # next response = await call_next(request) # response ...
22.086957
63
0.692913
c78cbb26046e24b3aadb9f6323af0b191a22ab0e
5,894
py
Python
FuncionesGraficas.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
FuncionesGraficas.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
FuncionesGraficas.py
Miguel-331/Proyecto-SUN
104afd03e05616a297fbda976d377f49a1f905ec
[ "Unlicense" ]
null
null
null
def Menu(): print("Bienvenido, seleccione la operacion que desea realizar") print("1.) Añadir") print("2.) Asignar||Adicionar||Cancelar Materias") print("3.) Modificar") print("4.) Eliminar usuario") print("5.) Mostrar bases de datos") print("6.) Calificar") print("7.) Buscar") print...
29.61809
245
0.470478
1bffa6f7b76480c09b698387a0a15acb09b67803
17,767
py
Python
tensorflow/basic-rl/tutorial5/tests/dqn-deer-keras-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/tutorial5/tests/dqn-deer-keras-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/tutorial5/tests/dqn-deer-keras-cartpole.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
''' Deep Q-learning approach to the cartpole problem using OpenAI's gym environment. As part of the basic series on reinforcement learning @ https://github.com/vmayoral/basic_reinforcement_learning Inspired by https://github.com/VinF/deer @author: Victor Mayoral Vilches <victor@erlerobotics.com> ''' import ...
32.659926
268
0.592784
90fff11e633c824332314f01e6d26dbe6e15cd96
949
py
Python
voltmeter.py
rickroty/SL1
bfa319561ed3ecc64277874be16e028c3a717693
[ "MIT" ]
null
null
null
voltmeter.py
rickroty/SL1
bfa319561ed3ecc64277874be16e028c3a717693
[ "MIT" ]
null
null
null
voltmeter.py
rickroty/SL1
bfa319561ed3ecc64277874be16e028c3a717693
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time from time import sleep import datetime import socket clientsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) SWITCH = 18 VOLTMETER = 15 GPIO.setmode(GPIO.BOARD) GPIO.setup(SWITCH, GPIO.IN) GPIO.setup(VOLTMETER, GPIO.OUT) GPIO.output(VOLTMETER, GPIO.HIGH) print 'VOLT M...
21.088889
64
0.596417
293887025869f6804f2b6143c74fef1c04eb5ea7
1,821
py
Python
solutions/graph_based_recommend/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/graph_based_recommend/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/graph_based_recommend/webserver/src/service/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import logging as log from common.config import MILVUS_TABLE, OUT_PATH, OUT_DATA from indexer.index import milvus_client, search_vectors, get_vector_by_ids from indexer.tools import connect_mysql, search_by_milvus_id import numpy as np import torch import pickle import dgl import json import random def get_list_info(...
29.370968
75
0.641955
468f77f5a138358b08e4913613f99c872a484350
7,475
py
Python
research/cv/retinanet_resnet152/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/retinanet_resnet152/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/retinanet_resnet152/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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...
48.225806
118
0.676789
4696144662db2061d9a17792e84dcf6ecbd65e72
195
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 28/28.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
50-Python-Exercises/Exercises/Exercise 28/28.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
50-Python-Exercises/Exercises/Exercise 28/28.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Why is the error and how to fix it? #A: A TypeError menas you are using the wrong type to make an operation. Change print(a+b) to return a+b def foo(a, b): print(a + b) x = foo(2, 3) * 10
24.375
104
0.65641
73196498306bcb2ab659c3ad51073f4f5a735e8a
3,363
py
Python
HPOTerms/diseaseToHPO.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
HPOTerms/diseaseToHPO.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
HPOTerms/diseaseToHPO.py
ecarl-glitch/LeukoDB
57c39d431430fae9def5109b4d6aa457ef1a25cf
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Input files for this script are hpoTermDef.obo (downloaded from HPO, flat file of HPO term defs), # OMIM_NumList.csv (list of OMIM Nums generated by OMIMdisease scripts, and phenotype_annotation.tab, # a file downloaded from the online HPO, that maps HPO terms onto OMIM disea...
35.03125
121
0.688373
b458199336d3b740b224d4d5647915a21729ba73
739
py
Python
musterloesungen/6.3/durchschnitt.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6.3/durchschnitt.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
musterloesungen/6.3/durchschnitt.py
giu/appe6-uzh-hs2018
204dea36be1e53594124b606cdfa044368e54726
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Kurs: Python: Grundlagen der Programmierung für Nicht-Informatiker # Semester: Herbstsemester 2018 # Homepage: http://accaputo.ch/kurs/python-uzh-hs-2018/ # Author: Giuseppe Accaputo # Aufgabe: 6.3 def durchschnitt(zahlen): # Um den Durchschnitt zu berechnen, be...
29.56
76
0.675237
c31120c6fcaece42c81e57b6c3655c16b4a9ddb2
3,798
py
Python
test/test_tag16.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag16.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag16.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from io import StringIO import re try: from pyventskalender import tag16_loesung as heute except ImportError: from pyventskalender import tag16 as heute class RepliesExhausted(Exception): pass def make_fake_input(replies, prompts): """ ...
39.154639
114
0.609005
6f608aeed71d46c0547b6891bd3f34718d57f747
5,466
py
Python
research/cv/advanced_east/src/vgg.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/advanced_east/src/vgg.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/advanced_east/src/vgg.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...
37.183673
120
0.579949
48eb12ff8ba6f2eee2f82f947c0207b7d4128bc2
942
py
Python
extract/extract.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
extract/extract.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
extract/extract.py
AlexTibet/ETL
9291712943d0c0f33b288c9fa39be20975f17e72
[ "MIT" ]
null
null
null
import os from extract.readers import CSVReader, JSONReader, XLSReader, Reader from typing import Type class Extractor: path: str data: list _readers: dict[str, Type[Reader]] default_path = os.path.join(os.getcwd(), 'input_files') def __init__(self, path: str = default_path): self.path = ...
25.459459
68
0.604034
48f326fde4b047140b545bb8a9ea086e015c86fc
2,043
py
Python
src/week3.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/week3.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
src/week3.py
animucki/2mmn40
c54c0e4e9c801d63f048fbb5d9abd8fe9432cfdc
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # ============================================================================= # 2mmn40 week 3 report # version 2017-12-03 afternoon # BA # # # for BA: Make sure to run in directory # C:\Users\20165263\Dropbox\tue\2mmn40\src # # ==============================================================...
25.860759
88
0.600587
d297ad1765b3c02fc47ba37eb3641c25075edb08
2,611
py
Python
custom_user/models.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
custom_user/models.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
custom_user/models.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin from flexdb.utils import get_config, PermissionExeption class CustomUserManager(BaseUserManager): def create_user(self, username=None, email=None, password=None): if not username: ...
35.767123
117
0.692455
c4f147071f47883e5f9814913f96b77f96c62d94
392
py
Python
INBa/2015/Semyenov_A_N/task_1_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_1_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Semyenov_A_N/task_1_24.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 24 #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Джон Гриффит Лондон. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Semyenov A.N. #09.02.2016 print("Джон Гриффит Лондон более известена, как американск...
56
211
0.816327
6fa2d874e51c88d510e932a00cb5d4888d15dbff
16,743
py
Python
src/onegov/org/views/resource.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/resource.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/resource.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import icalendar import morepath import sedate from collections import OrderedDict, namedtuple from datetime import datetime, timedelta from isodate import parse_date, ISO8601Error from itertools import groupby from morepath.request import Response from onegov.core.security import Public, Private from onegov.core.util...
30.834254
79
0.64851
96483dee2a97b0169a6bd756558ad5e63ab945a5
183
py
Python
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/CountingSort1.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 from collections import Counter n = int(raw_input()) counter = Counter(raw_input().split()) print ' '.join(map(str, [counter.get(str(i), '0') for i in xrange(100)]))
20.333333
73
0.677596
73d61d32567e2c06ecf3c3780d4a761526c69bbf
5,767
py
Python
Python/Sonstige_Uebungen/huffman_codierung.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/huffman_codierung.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/huffman_codierung.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- #### # File: huffman_codierung_v2.py # Project: Sonstige_Uebungen #----- # Created Date: Friday 01.11.2019, 12:25 # Author: Apop85 #----- # Last Modified: Wed Nov 06 2019 #----- # Copyright (c) 2019 Apop85 # This software is published under the MIT license. # Check http://...
35.164634
137
0.583492
fb535c44c618c72e411e3a0a86c74ce26ece5d4b
610
py
Python
Algorithms/2_Implementation/56.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/56.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/56.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/flatland-space-stations/problem #!/bin/python3 import math import os import random import re import sys # Complete the flatlandSpaceStations function below. def flatlandSpaceStations(n, c): return max(c[0], n-c[-1]-1, *[(c[z+1]-c[z])//2 for z in range(len(c)-1)]) if _...
20.333333
77
0.634426
548e6d981e84074347101289d907692f960e9a8e
5,090
py
Python
Backend/views/ebrake.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/views/ebrake.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/views/ebrake.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import datetime import re from decimal import Decimal from flask import Blueprint, request from sqlalchemy import text from cache import cache, make_cache_key from db import db from timer import timer routes = Blueprint('ebrake', __name__, url_prefix='/federal-emergency-brake') @routes.route('/', methods=['GET']) ...
32.628205
174
0.519843
b77f4a29b782d4d4a5ce786e6de91a54e14ad7b5
78
py
Python
BeautifulData/Admin/admin.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/Admin/admin.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/Admin/admin.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2019/1/2 @Author: Zhang Yafei """
7.090909
23
0.512821
b7fac334c816a9b276870a5d334dcba7b7eee27f
430
py
Python
network engineering course practice/medium term practice/front/sort_urls.py
MU001999/codeex
23e300f9121a8d6bf4f4c9ec103510193808e9ba
[ "MIT" ]
2
2019-01-27T14:16:09.000Z
2019-05-25T10:05:24.000Z
network engineering course practice/medium term practice/front/sort_urls.py
MU001999/codeex
23e300f9121a8d6bf4f4c9ec103510193808e9ba
[ "MIT" ]
null
null
null
network engineering course practice/medium term practice/front/sort_urls.py
MU001999/codeex
23e300f9121a8d6bf4f4c9ec103510193808e9ba
[ "MIT" ]
1
2020-11-05T05:17:28.000Z
2020-11-05T05:17:28.000Z
from model import * from collections import defaultdict def sort_urls(clientip): urlcnt = defaultdict(int) for request in Request.where(clientip=clientip).select(): urlcnt[request.host + request.url] += 1 return zip(sorted(urlcnt.keys(), key=lambda k: urlcnt[k])[::-1], sorted(urlcnt.values())[::...
25.294118
99
0.653488
4db9016a9bafa11c962fbc504f35a58a3909dc06
1,019
py
Python
reindex.py
cyrillk/elastic-reindex
417e41a0d817c2ff30fa95d5ddbf064093d1c86b
[ "MIT" ]
null
null
null
reindex.py
cyrillk/elastic-reindex
417e41a0d817c2ff30fa95d5ddbf064093d1c86b
[ "MIT" ]
null
null
null
reindex.py
cyrillk/elastic-reindex
417e41a0d817c2ff30fa95d5ddbf064093d1c86b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from argparse import ArgumentParser from elasticsearch import Elasticsearch from elasticsearch.helpers import reindex host = 'localhost' source = 'hotels_v4' target = 'hotels_v5' def parse_args(): parser = ArgumentParser(description="ES reindex") parser.add_argument('-a', '--apply', a...
22.644444
66
0.649657
4dfc4be48a08e00d1232b466f9b2a27a83e7aec6
5,509
py
Python
modules/datahelper.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/datahelper.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
modules/datahelper.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
"""Acts as an interface between the various classes that contain data This module provides the primary function to load variable data from a CDF and into Variables class objects. Additionally, it allows for interfacing between data classes of different types. Example Usage: * mmm_vars, cdf_vars, raw_cdf_vars = initi...
35.089172
116
0.747323
12a42b5108ecb95c37d69a4cba2335f0740469dc
2,721
py
Python
official/cv/crnn_seq2seq_ocr/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/crnn_seq2seq_ocr/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/crnn_seq2seq_ocr/preprocess.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...
40.61194
90
0.693128
42320070dbb2e29ff5b3422eced2aa9425c78a23
69,514
py
Python
feedcrawler/web.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
63
2016-03-21T21:35:07.000Z
2021-03-20T22:50:34.000Z
feedcrawler/web.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
200
2016-03-15T21:45:26.000Z
2021-04-03T10:47:45.000Z
feedcrawler/web.py
rix1337/RSScrawler
5a1c067148310c03321329d3fa409a4e4144fce7
[ "MIT" ]
25
2016-03-15T20:44:33.000Z
2020-10-25T09:43:48.000Z
# -*- coding: utf-8 -*- # FeedCrawler # Projekt von https://github.com/rix1337 import ast import json import os import re import sys import time from functools import wraps from flask import Flask, request, redirect, send_from_directory, render_template, jsonify, Response from passlib.hash import pbkdf2_sha256 from r...
42.568279
146
0.455908
c4594ef3399076489d0799c62fa24d5cda8bda18
1,112
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/34_lista_em_python/34_lista_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/34_lista_em_python/34_lista_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/34_lista_em_python/34_lista_em_python.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Lista em Python fatiamento append, insert, pop, del, clear, extend, min, max range """ secreto = 'Perfume' digitadas = [] chances = 3 while True: if chances <= 0: print('Você perdeu!!!') break letra = input('Digite uma letra: ') if len(letra) > 1: print('Ahhh isso não vale, di...
24.173913
78
0.613309
674b1259b96846aafa36af8671130db2c55479f4
1,177
py
Python
python_gui_tkinter/KALU/GARBAGE/mail/pic_Attach_mime.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE/mail/pic_Attach_mime.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE/mail/pic_Attach_mime.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# Import smtplib for the actual sending function import smtplib # And imghdr to find the types of our images import imghdr # Here are the email package modules we'll need from email.message import EmailMessage server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() server.login("", "") # Create the container ...
30.973684
108
0.701784
67f362bd2993cba7662da63dfa96527c3a99c1ef
88
py
Python
apps/tess/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/tess/apps.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/tess/apps.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TessConfig(AppConfig): name = 'apps.tess'
14.666667
33
0.738636
db0a1084d9e1d719af07b4dcdf33550df0abd4c7
759
py
Python
Problems/Depth-First Search/medium/CountSubsIslands/count_sub_islands.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/CountSubsIslands/count_sub_islands.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/CountSubsIslands/count_sub_islands.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def countSubIslands(self, grid1: List[List[int]], grid2: List[List[int]]) -> int: m, n = len(grid1), len(grid1[0]) sub_islands = 0 def dfs(row: int, col: int) -> bool: if row < 0 or row >= m or col < 0 or col >= n: return True if grid2[row][col] != 1: ...
23.71875
81
0.496706
e164ed9f3846de9f349d9e2954c800573eb64bf6
6,124
py
Python
Bowman/.ipynb_checkpoints/Function1_2_3-checkpoint.py
JonathanOnorato/ChemLP
a7b0d2f9a3899531aacda9bc85d89d721f6450c4
[ "MIT" ]
4
2020-04-13T20:49:01.000Z
2021-02-09T01:05:01.000Z
Bowman/.ipynb_checkpoints/Function1_2_3-checkpoint.py
JonathanOnorato/ChemLP
a7b0d2f9a3899531aacda9bc85d89d721f6450c4
[ "MIT" ]
3
2020-04-28T23:16:27.000Z
2020-04-28T23:26:53.000Z
Bowman/Function1_2_3.py
JonathanOnorato/ChemLP
a7b0d2f9a3899531aacda9bc85d89d721f6450c4
[ "MIT" ]
null
null
null
# %% #Function 1 of ChemLibre Texts reading program, takes in a url, path, and browser type and returns the html #Path location should be in the format ex. C:/Users/bowri/Anaconda3/chromedriver #If using Firefox, or not Chrome, simply enter "" for path location, requires having downloaded chromedriver first #See format...
39.006369
119
0.695624
55f2dde3fd2c0543dc44287d45b459f9582e2546
136
py
Python
python/gdal_cookbook/cookbook_geometry/create_point.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_point.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/create_point.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from osgeo import ogr point = ogr.Geometry(ogr.wkbPoint) point.AddPoint(1116651.439379124, 637392.6969887456) print(point.ExportToWkt())
34
52
0.816176
36c3cba9cf0d7ee801e42cd0b3576d3af1e8ad0c
106
py
Python
relay/relay_output.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
relay/relay_output.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
relay/relay_output.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
class RelayOutput: def enable_relay(self, name: str): pass def reset(self): pass
15.142857
38
0.584906
3d0ca19c0269e822729626ef3095d8a86de2b864
579
py
Python
python/coursera_python/WESLEYAN/week4/test/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/test/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/test/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import random def make_same_random(): """ Make a list of 10 random integers that are the same each time """ numlis = [] random.seed(17) # set the seed from which random numbers are made for i in range(0,10): d = random.random() print(d) numlis.append(d) return numlis ...
25.173913
76
0.654577
a10801063b1b47b54932dac4080ed43f9c79a6a5
4,186
py
Python
test/test_npu/test_network_ops/test_bitwise_not.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_bitwise_not.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_bitwise_not.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.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/licenses/BSD-3-Clause # # Unless required by applicable law...
39.866667
91
0.665313
62961bf7a39c3c78999724de35586e607fa1cbd0
873
py
Python
PINp/2015/TITOV_I_V/task_9_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/TITOV_I_V/task_9_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/TITOV_I_V/task_9_20.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 9 # Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен #его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток #узнать, есть ли какая-либо буква в слове, причем программа может отвечать только #"Да" и "Нет". Вслед за тем игрок должен попробовать отгадать сл...
25.676471
83
0.662085
62bb16e1b05c02702d62e2f10d8ac2fdbe874ef6
562
py
Python
code/selfish_proxy/strategy/__init__.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/strategy/__init__.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
null
null
null
code/selfish_proxy/strategy/__init__.py
simonmulser/master-thesis
5ca2ddda377a0eede5a3c50866e0f90292c5448f
[ "CC-BY-4.0" ]
1
2019-06-05T09:10:30.000Z
2019-06-05T09:10:30.000Z
from enum import Enum class Action(Enum): adopt = 'a' override = 'o' match = 'm' wait = 'w' class ForkState(Enum): irrelevant = 0 relevant = 1 active = 2 class BlockOrigin(Enum): private = 0 public = 1 def opposite_origin(block_origin): if block_origin is BlockOrigin.priv...
16.057143
43
0.637011
ad0069b8182e1e872e838f597163cbabe5c2a596
64
py
Python
Online-Judges/CodingBat/Python/String-01/04-make_out_word.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/String-01/04-make_out_word.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/String-01/04-make_out_word.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def make_out_word(out, word): return (out[:2]+word+out[2:])
21.333333
33
0.640625
4927f80e3cf89bb5f439bfba63d80d64f6c1b8de
297
py
Python
python/FizzBuzz.py
campbe13/FizzBuzz
1ac2b964ef65e792e11947e684f3cc3f8bcaf90d
[ "MIT" ]
null
null
null
python/FizzBuzz.py
campbe13/FizzBuzz
1ac2b964ef65e792e11947e684f3cc3f8bcaf90d
[ "MIT" ]
null
null
null
python/FizzBuzz.py
campbe13/FizzBuzz
1ac2b964ef65e792e11947e684f3cc3f8bcaf90d
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Fizz Buzz in python 3 P Campbell February 2018 """ for i in range(1,101): if i % 3 == 0 or i % 5 == 0 : if i % 3 == 0: msg = "Fizz" if i % 5 == 0: msg += "Buzz" print (msg) msg = "" else: print (i)
15.631579
33
0.40404
494935d54029e425636bb895b354d05dfd9bf75e
1,214
py
Python
official/cv/ADNet/src/utils/get_action_history_onehot.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/utils/get_action_history_onehot.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/utils/get_action_history_onehot.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...
46.692308
115
0.700165
49522de2dc5e50522c06dd38764eecf95b0f09d8
136
py
Python
kernel/scripts/generate_interrupts_idt.py
losfair/FlatMk-v0
6e78666e8982e41688c24828093ea6b73b76ea11
[ "MIT" ]
5
2020-01-11T22:38:34.000Z
2021-06-01T13:40:55.000Z
kernel/scripts/generate_interrupts_idt.py
losfair/FlatMk-v0
6e78666e8982e41688c24828093ea6b73b76ea11
[ "MIT" ]
null
null
null
kernel/scripts/generate_interrupts_idt.py
losfair/FlatMk-v0
6e78666e8982e41688c24828093ea6b73b76ea11
[ "MIT" ]
null
null
null
print("{") for i in range(32, 256): print("IDT[{}].set_handler_fn(core::mem::transmute(intr_{} as usize));".format(i, i)) print("}")
34
89
0.617647
499c820479e74acc1b022daad8b71cb4ac591d66
834
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/cash_flow_mapping/test_cash_flow_mapping.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/cash_flow_mapping/test_cash_flow_mapping.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/cash_flow_mapping/test_cash_flow_mapping.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) 2018, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestCashFlowMapping(unittest.TestCase): def setUp(self): if frappe.db.exists("Cash Flow Mapping", "Test Mapping"): frappe.de...
25.272727
68
0.730216
b8ddb322cc829271072a3b60922437e02d72d250
6,043
py
Python
tspdb/tests/test_module.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
43
2019-12-10T00:05:51.000Z
2022-03-31T21:21:20.000Z
tspdb/tests/test_module.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
5
2021-05-09T01:12:31.000Z
2022-03-29T17:34:15.000Z
tspdb/tests/test_module.py
swipswaps/tspdb
9c085cef7164c114bb0952519b9715dcfa072b34
[ "Apache-2.0" ]
14
2020-01-13T21:20:07.000Z
2022-03-31T02:11:26.000Z
import numpy as np from tspdb.src.pindex.predict import get_prediction_range, get_prediction from tspdb.src.pindex.pindex_managment import TSPI from tspdb.src.pindex.pindex_utils import index_ts_mapper import time import timeit import pandas as pd from tspdb.src.hdf_util import read_data from tspdb.src.tsUti...
46.484615
295
0.685256
65dbb5423005f814b64568088c321fdf237d1174
1,717
py
Python
pluginsinterface/PlugAsyncio.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
pluginsinterface/PlugAsyncio.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
1
2020-09-22T02:30:40.000Z
2020-09-22T02:30:40.000Z
pluginsinterface/PlugAsyncio.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from pluginsinterface.EventHandling import StandEven from pluginsinterface.Plugmanagement import async_send_even import asyncio import traceback import threading from helper import getlogger logger = getlogger(__name__) runinfo = { 'run': False, 'threading': None, 'loop': asyncio.ne...
26.828125
70
0.570763
b841ae52d0b58fb7e799ef5523e90cda1f322001
786
py
Python
flogger/blog/forms.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
flogger/blog/forms.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
flogger/blog/forms.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import validators, StringField, TextAreaField, SelectField, FileField from wtforms.ext.sqlalchemy.fields import QuerySelectField from flask_wtf.file import FileAllowed from blog.models import Category def categories(): return Category.query class PostForm(FlaskForm): ...
35.727273
82
0.71883
b2122773da4db94c7c6d624876ec676393c38b82
442
py
Python
6_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
6_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
6_kombinationen/loopRandom/StarrySky.py
Coding-for-the-Arts/drawbot-samples
e37994f3497aca252312431100b53548b4573f15
[ "CC0-1.0" ]
null
null
null
""" Random Starry Sky """ newPage(300, 300) fill(0) rect(0, 0, 300, 300) for i in range (200): dia = random() * 3 fill(random()) oval(random()*300, random()*300, dia, dia) """ Aufgabe: - Platziere ein paar zufällig farbige Planeten am Nachthimmel - Was passiert, wenn du Zeile 13 z...
18.416667
74
0.606335
b2a191d2f033116b1e97f05b8fc94f5305e78ddd
690
py
Python
blog/posts.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2019-01-29T15:57:20.000Z
2019-01-29T15:57:20.000Z
blog/posts.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-05-05T19:43:28.000Z
2018-05-05T19:43:28.000Z
blog/posts.py
Lanseuo/lucas-blog
fd6932952aac3a3055026551700bc86adef279f4
[ "MIT" ]
1
2018-04-24T09:36:57.000Z
2018-04-24T09:36:57.000Z
import re from . import top_level_path from .post import Post class Posts: @staticmethod def get_posts(): posts_path = top_level_path / "posts" posts = [] for filename in posts_path.iterdir(): permalink = re.sub( r"[-_\w/]*\d\d\d\d-\d\d-\d\d-([\w\d_-]*).m...
20.294118
61
0.515942
b2aa3b81ce40646b2b5ced0272d45e40ff05e4ae
518
py
Python
Curso-Em-Video-Python/2Exercicios/009_Tabuada.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/009_Tabuada.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/009_Tabuada.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
x = int(input('Qual tabuada multiplicar: ')) print('-' * 15) print('{} x {:2} = {}'.format(x, 1, (x*1))) print('{} x {:2} = {}'.format(x, 2, (x*2))) print('{} x {:2} = {}'.format(x, 3, (x*3))) print('{} x {:2} = {}'.format(x, 4, (x*4))) print('{} x {:2} = {}'.format(x, 5, (x*5))) print('{} x {:2} = {}'.format(x, 6, (x*...
39.846154
45
0.418919
ac4cdee27c4d9f2d7fb68bae29c170724f60d9c5
442
py
Python
exercises/pt/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( 'spacy.blank("en")' in __solution__ ), "Você inicializou um fluxo de processamento em Inglês vazio?" assert "DocBin(docs=docs)" in __solution__, "Você criou o DocBin corretamente?" assert "doc_bin.to_disk(" in __solution__, "Você utilizou o método to_disk?" assert "train...
44.2
85
0.699095
ac866eb6d77f1235a95b61e1134dad10dcf0549f
2,745
py
Python
.venv/Lib/site-packages/dexpy/simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/dexpy/simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
.venv/Lib/site-packages/dexpy/simplex_lattice.py
AI-Assistant/FEMAG-Python
ff86e8f41485ae9df6034e6b8e810b59f8094c70
[ "MIT" ]
null
null
null
"""Functions for building a simplex lattice design.""" import dexpy.design as design import pandas as pd import numpy as np import itertools from dexpy.model import ModelOrder from dexpy.eval import count_n_choose_k as count_nk def build_simplex_lattice(factor_count, model_order = ModelOrder.quadratic): """Builds...
40.367647
79
0.647723
3bb164ccb18d1eee3a856188b51eefd4ddf62b4b
394
py
Python
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/observers/t_example.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging from quant.observers.basicbot import BasicBot class T_Example(BasicBot): """ python -m quant.cli -mBitfinex_BCH_USD,Liqui_BCC_BTC,Bitfinex_BTC_USD -oT_Example -f=example -d """ def __init__(self): super(T_Example, self).__init__()...
20.736842
99
0.675127
3bc15f298e917a5de0717848eef82a3117a7b210
622
py
Python
HackerP/introduction/Write_a_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/Write_a_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
HackerP/introduction/Write_a_function.py
JKChang2015/hackerrank
5e5bd6892d2e4754e73f73eecfa8f4b9f266c3bd
[ "MIT" ]
null
null
null
# Write_a_function # Created by JKChang # 14/08/2018, 10:58 # Tag: # Description: https://www.hackerrank.com/challenges/write-a-function/problem # In the Gregorian calendar three criteria must be taken into account to identify leap years: # The year can be evenly divided by 4, is a leap year, unless: # The year can be...
27.043478
93
0.692926
0202e5b0c93e940c7eff2e8366514c0c53fc2871
8,668
py
Python
src/visitpy/examples/matexprs.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/examples/matexprs.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/examples/matexprs.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
############################################################################### # # Purpose: Use VisIt CLI to iterate over Curves in a material database and # compute and plot some common difference curves and output the results # to either a curve or image file format. # # Programmer: Mark C. Miller # Date: ...
33.338462
86
0.623327
5a6bc0ea58a494099c0c7001e41e5d0c095d80c1
30,288
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/gitlab.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/gitlab.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/source_control/gitlab/gitlab.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 sys from httmock import response # noqa from httmock import urlmatch # noqa from ansible...
52.130809
137
0.634773
ce568c1609aad2260df4dae064f07fc3a4240da9
9,571
py
Python
official/cv/lenet/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/lenet/modelarts/train_start.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/lenet/modelarts/train_start.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...
43.504545
120
0.680911
ced8d9159b0ab3959cb0dcc3a667cfcf949c66af
1,718
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/flyweight_with_metaclass.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/flyweight_with_metaclass.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/flyweight_with_metaclass.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
import weakref class FlyweightMeta(type): def __new__(mcs, name, parents, dct): """ Set up object pool :param name: class name :param parents: class parents :param dct: dict: includes class attributes, class methods, static methods, etc :return: new class ...
26.84375
69
0.582654
0ba36f10893dd40cea03ed5ad9665d560d7cf57e
938
py
Python
python/PDF/pdfcat.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
python/PDF/pdfcat.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
python/PDF/pdfcat.py
eucalypto/potato
9df3eada95956daf344eb49900d2ed79dc418817
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python from PyPDF2 import PdfFileReader, PdfFileWriter import sys def merge_pdfs(paths, output): """take pdf files defined in array files and concatenate them into one PDF with output name output. """ pdf_writer = PdfFileWriter() for path in paths: pdf_reader = PdfFileRea...
26.8
70
0.675906
6893255b84fb832056a9719346d50581759b4a63
500
py
Python
source/pkgsrc/devel/py-rlp/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/devel/py-rlp/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-rlp/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2021/04/11 16:59:36 wiz Exp $ setuptools-markdown is deprecated for functionality included in setuptools. --- setup.py.orig 2020-11-23 15:09:47.000000000 +0000 +++ setup.py @@ -52,7 +52,7 @@ setup( url='https://github.com/ethereum/pyrlp', packages=find_packages(exclude=["tests"...
31.25
75
0.658
cc09eddcc69d15e1922c5c267f7af3451c63b8d4
839
py
Python
01.DataStructure/Stack&Queue/B1966-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
01.DataStructure/Stack&Queue/B1966-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
01.DataStructure/Stack&Queue/B9012-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
num = 0 num = (int)(input ()) for i in range(num): check = [int(x) for x in input().split()] arr = [int(x) for x in input().split()] checkingP = check[1] popNum = 0 while(True): existPop = False #맨 처음 값의 중요도와 뒤의 중요도 비교 for문 for j in range(len(arr)-1): if(arr[0] >=...
23.971429
45
0.388558
f0ba8955ee9f2620bce3f490df0dc50acbc26f0e
2,219
py
Python
foundation/www/service_providers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
59
2017-03-15T08:14:52.000Z
2021-11-17T14:21:58.000Z
foundation/www/service_providers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
147
2017-01-25T10:44:47.000Z
2020-11-05T04:24:22.000Z
foundation/www/service_providers.py
prafful1234/foundation
6fcb027e76eae8d307c3dd70436a9657ff681f01
[ "MIT" ]
134
2017-03-14T14:04:21.000Z
2022-03-18T08:19:47.000Z
import frappe no_cache = 1 def get_context(context): context.form_dict = frappe.form_dict context.title = 'Service Providers' context.gold_members = [] if frappe.form_dict.country: context.parents = [dict(label='All Service Providers', route='service-providers', title='All Service Providers')] filters = di...
32.15942
92
0.735016
9bd6bc27393e5b225a1876a4cde52b9fb2dda43d
7,569
py
Python
create_auto_mount.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
3
2020-07-19T12:05:13.000Z
2021-04-19T12:38:28.000Z
create_auto_mount.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
2
2019-08-20T19:28:26.000Z
2021-09-30T10:03:51.000Z
create_auto_mount.py
Hofei90/create_automount
6975b1e7b477ac650fd33592bf771e8484357f92
[ "MIT" ]
1
2019-05-24T05:13:30.000Z
2019-05-24T05:13:30.000Z
#!/usr/bin/python3 import getpass import os import platform import shlex import shutil import subprocess import sys import toml SKRIPTPFAD = os.path.abspath(os.path.dirname(__file__)) SPEICHERORT_ZUGANGSDATEN = "/etc/smbcredentials" PFAD_PING_SERVER_SERVICE = "/etc/systemd/system/ping_server.service" PFAD_PING_SERVE...
33.64
120
0.672744
accc0c969f3ac52318b9f4e6d020139f04634baf
5,771
py
Python
pypi_installer/sbtab/sbtab2html.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
pypi_installer/sbtab/sbtab2html.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
pypi_installer/sbtab/sbtab2html.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
""" SBtab2HTML ========== Python script that converts SBtab file/s to HTML. """ #!/usr/bin/env python import re import string import sys from . import misc urns = ["obo.chebi","kegg.compound","kegg.reaction","obo.go","obo.sgd","biomodels.sbo","ec-code","kegg.orthology","uniprot"] def csv2html(sbtab_file,file_name,de...
32.789773
230
0.587073
768a31ddde23314da728b346aa3c4e4f92544ad6
385
py
Python
src/main/python/client/PythonClient.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/main/python/client/PythonClient.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/main/python/client/PythonClient.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
#from clientController import ClientController from client.clientController import ClientController from PyQt5 import QtCore, QtGui, QtWidgets import sys def main(): try: app = QtWidgets.QApplication([]) controller = ClientController() controller.show() app.exec_() except Except...
24.0625
52
0.680519
507dc9b6f7e264d08e2122152493a59a20b17eae
631
py
Python
source/pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/benchmarks/glmark2/patches/patch-waflib_Tools_c__config.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-waflib_Tools_c__config.py,v 1.1 2019/12/22 22:21:58 joerg Exp $ When detecting the C++ compiler, force C++ mode for stdin as the wrappers add -std=c++11 and that breaks for C input. --- waflib/Tools/c_config.py.orig 2019-12-21 22:11:24.000906920 +0000 +++ waflib/Tools/c_config.py @@ -632,7 +632,7 @@ de...
37.117647
78
0.664025
5088d15e9b45d5e4cb16b4bcbc95c013d661734e
4,792
py
Python
Challenge_1/members/martin_game.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
1
2020-05-15T13:43:16.000Z
2020-05-15T13:43:16.000Z
Challenge_1/members/martin_game.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
4
2020-05-15T17:46:52.000Z
2020-07-06T11:48:37.000Z
Challenge_1/members/martin_game.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
null
null
null
# Erstellung eines Spiels mit pygame # pygame ist eine Library, welche die einfache Erstellung von Spielen ermöglicht. # Nachfolgend wird die Erstellung eines einfachen Spiels mit Pygame dargestellt. # Was bringt diese Kenntnis für FH Schüler? Während langweiligen wirtschaftsfächern kann sich die Zeit vertrieben werd...
36.030075
160
0.680509
e8d77a779d54fa02e46590fa4d1f3240b9b5976d
3,510
py
Python
SSH-Honeypot-master/SSH.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
SSH-Honeypot-master/SSH.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SSH-Honeypot-master/SSH.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#Author:D4Vinci #Squnity Developers import socket our_log=open("Attackers_Data.txt","w") #Our text file to save attackers data in it def ssh(msg="",listeners=2): welcome="""Welcome to BackBox Linux 4.5 (GNU/Linux 4.2.0-30-generic i686)\n * Documentation: http://www.backbox.org/\n\n The programs included with th...
43.875
169
0.54359
fa0daac23a28688052634f2fc791ac428b3239ac
445
py
Python
Python/gregorian_leap_year.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/gregorian_leap_year.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/gregorian_leap_year.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
def is_leap(year): if year >= 1900 and year <= pow(10,5): leap = False if year%4 == 0: if year%100 == 0: if year%400 == 0: leap = True else: leap = False else: leap = True return l...
24.722222
42
0.420225
d71d04d38fab7aa45aaa600f680fa91be52afc7b
20,616
py
Python
Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
1
2021-07-13T07:05:29.000Z
2021-07-13T07:05:29.000Z
Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py
TejasPhutane/Eyantra-2021-Vargi-Bots
ab84a1304101850be8c0f69cfe6de70d53c33189
[ "MIT" ]
1
2021-06-05T07:58:03.000Z
2021-06-05T07:58:03.000Z
Vargi_Bots/ros_packages/pkg_task5/scripts/node_t5_ur5_1_package_pick.py
ROBODITYA/Eyantra-2021-Vargi-Bots
f1c6a82c46e6e84486a4832b3fbcd02625849447
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' This node is used for controlling the ur5_1 arm and conveyor belt. ''' import sys import math import datetime from datetime import datetime import yaml import rospy import rospkg import moveit_commander import moveit_msgs.msg import actionlib from std_srvs.srv import Empty from std_msgs.m...
46.537246
136
0.61622
d101cf6bb24a02017604ba63c91029a4ec28843a
2,818
py
Python
reasoner/json2f2.py
shiv-io/blawx
2fef1fbc26f7c4479714e3fa291660964672b612
[ "MIT" ]
1
2020-06-21T02:19:54.000Z
2020-06-21T02:19:54.000Z
reasoner/json2f2.py
shiv-io/blawx
2fef1fbc26f7c4479714e3fa291660964672b612
[ "MIT" ]
null
null
null
reasoner/json2f2.py
shiv-io/blawx
2fef1fbc26f7c4479714e3fa291660964672b612
[ "MIT" ]
null
null
null
# Script to Take a JSON object, convert it into a Python structure, and convert the Python structure into Flora-2 code. # Jason Morris import sys, json, types def json2flora(key,value,parentname="data",root=False): retstr = "" # If this is not a leaf: if isinstance(value, (list,dict,tuple)): # for each of t...
28.18
119
0.562811
d15a656c606653fb0e9991d671e77ed444fc45d5
3,464
py
Python
andinopy/nextion_util.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
andinopy/nextion_util.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
andinopy/nextion_util.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
# _ _ _ # / \ _ __ __| (_)_ __ ___ _ __ _ _ # / _ \ | '_ \ / _` | | '_ \ / _ \| '_ \| | | | # / ___ \| | | | (_| | | | | | (_) | |_) | |_| | # /_/ \_\_| |_|\__,_|_|_| |_|\___/| .__/ \__, | # |_| |___/ # by Jakob Groß import time import ...
33.307692
131
0.555139
3872f64391460d5939a9be87f7c946d907584969
966
py
Python
showcase1/com/aaron/sysexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/sysexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/sysexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #from sys import argv,path,modules,exec_prefix from sys import * def printCommandParam(): """打印命令行参数""" print(type(argv)) for commandParam in argv: print(commandParam) def printModuleSearchPath(): """打印模块搜索路径""" print(type(path)) for subpath in path: pri...
16.655172
46
0.653209
2a1f2249846d8c80a2fb58e9208835cc3b60a427
1,908
py
Python
reports/srp/code/symbol_classifier_test.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/srp/code/symbol_classifier_test.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/srp/code/symbol_classifier_test.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
from os.path import join import cv2 import numpy as np from numpy.random import uniform from sys import exit import tensorflow as tf model_path = join('models', 'symbol_classifier', 'model.h5') model = tf.keras.models.load_model(model_path) path = join('data', 'raw', 'n', '1.jpeg') image_name = "data" drawing = Fal...
27.652174
77
0.651992
2d8207f1fd16138b6a8da26069278c95a052f21c
382
py
Python
aoc2020/day_02/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_02/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_02/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from .part_1 import Solution as Part1Solution class Solution(Part1Solution): expected = 1 @classmethod def check_pw(cls, line: str): policy, pw = line.split(': ', 2) pos, letter = policy.split(' ') pos1, pos2 = pos.split('-') return sum([ pw[int(pos1)-1] == le...
21.222222
45
0.528796
2dcf9585563c0f6c24fe2c6cf9dcadd24e3a9a58
2,722
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/c_form/c_form.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/c_form/c_form.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/c_form/c_form.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import flt from frappe import _ from frappe.model.document import Document class CForm(Document): def validate(self): ...
38.338028
99
0.678913
10a8fceb69749d737ac321e18341213acab74cff
757
py
Python
haas_lib_bundles/python/docs/examples/home_intrusion_alarm/esp32/code/buzzer.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/home_intrusion_alarm/esp32/code/buzzer.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/home_intrusion_alarm/esp32/code/buzzer.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
from driver import PWM class BUZZER(object): def __init__(self, pwmObj,data=None): self.pwmObj = None if not isinstance(pwmObj, PWM): raise ValueError("parameter is not an PWM object") self.pwmObj = pwmObj if data is not None: self.setOptionDuty(data) ...
25.233333
62
0.611625
d8325ac080b537056e230ce0a40a19f3ffd5ccc7
2,196
py
Python
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_line_transfom.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_line_transfom.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Image_Processing/hough_line_transfom.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Apr 4 14:52:34 2019 @author: jone """ #%% import cv2 import numpy as np def nothing(x): pass img = cv2.imread('img/chessboard2.jpg') img = cv2.resize(img, (800, 800)) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) cv2.namedWindow('image') cv2.createTrackbar('threshold'...
25.835294
80
0.598816
dc6a5600b667723f71c4c04ae1ce374f18cebb40
506
py
Python
Uebung3/Uebung3_Aufgabe8_2_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung3/Uebung3_Aufgabe8_2_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung3/Uebung3_Aufgabe8_2_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
n = int(2367363789863971985761) #überprüfen welche länge n = 2367363789863971985761 hat #print(n) i = 1 while n != 1: #solange n noch nicht gleich 1 ist if n%2 == 0: #wenn n durch 2 ganz teilbar ist n = n//2 #print(n) else: #ansonsten n = n*3+1 #print(n) i = i+1 ...
18.071429
81
0.610672
dc7dbf70550ac654806a84fb48a51e926b2303be
974
py
Python
backend/apps/mapview/utils.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/mapview/utils.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/mapview/utils.py
match4healthcare/match4healthcare
acf69e3b781d715f0a947c2a9df6646e94f1ca6b
[ "MIT" ]
null
null
null
import json from math import asin, cos, radians, sin, sqrt from os.path import abspath, dirname, join current_location = dirname(abspath(__file__)) with open(join(current_location, "files/plzs_merged.json")) as f: plzs = json.loads(f.read()) def haversine(lon1, lat1, lon2, lat2): lon1, lat1, lon2, lat2 = ma...
28.647059
71
0.646817
7618678767cd18eead7a1f2453584206b1fceedb
3,639
py
Python
tests/ingestion/transformers/monosi/test_monitors.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
tests/ingestion/transformers/monosi/test_monitors.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
tests/ingestion/transformers/monosi/test_monitors.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import pytest import ingestion.transformers.monosi.monitors as monitors @pytest.fixture def schema(): return { 'columns': ['NAME', 'COL_NAME', 'COL_TYPE', 'COL_DESCRIPTION', 'COL_SORT_ORDER', 'DATABASE', 'SCHEMA', 'DESCRIPTION', 'IS_VIEW'], 'rows': [ { 'NAME': 'name_of...
30.579832
137
0.638637
0d74b4ba6a0f2b3e6686afdb8d25a5cfb67fbe31
82
py
Python
Python/Loops/loops.py
boneskewer69/ifis
926323f60bf8eac55ccc67b6f6e536fe19c6b4c2
[ "MIT" ]
null
null
null
Python/Loops/loops.py
boneskewer69/ifis
926323f60bf8eac55ccc67b6f6e536fe19c6b4c2
[ "MIT" ]
null
null
null
Python/Loops/loops.py
boneskewer69/ifis
926323f60bf8eac55ccc67b6f6e536fe19c6b4c2
[ "MIT" ]
null
null
null
x = 1 while True: x = input("Number:\n> ") if int(x) == 0: break
11.714286
28
0.439024