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
860d7488a4f7b3befb51088f7ee990401d1faf8c
8,029
py
Python
test_protocol/lfw/pairs_parser.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
test_protocol/lfw/pairs_parser.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
test_protocol/lfw/pairs_parser.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: Jixuan Xu, Jun Wang @date: 20201015 @contact: jun21wangustc@gmail.com """ import scipy.io as scio from abc import ABCMeta, abstractmethod class PairsParser(metaclass=ABCMeta): """Parse the pair list for lfw based protocol. Because the official pair list for different dataset(lfw, cplfw, calfw ....
41.174359
102
0.586997
866146f8e320eae7b03ae152a8a05543adeef958
448
py
Python
Chapter2_Python/ListComprehension.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/ListComprehension.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter2_Python/ListComprehension.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
my_list = [] for i in range(10): my_list.append(i) print(my_list) # List Comprehension # val - iterable my_list2 = [i for i in range(10)] print(my_list2) my_list3 = [i**2 for i in range(10)] print(my_list3) # Multi-dim List # Matrix (3 rows, 2 columns) M = [[1, 2], [3, 4], ...
16.592593
65
0.571429
86eacc20dd251cdc1887f17f4f5c6dff18ed89a7
1,996
py
Python
Testing/test_utilities/check_jacobian_iter.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
Testing/test_utilities/check_jacobian_iter.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
Testing/test_utilities/check_jacobian_iter.py
cianciosa/V3FIT
18b1f4c0d596b47fbbd97508905c60e842801950
[ "MIT" ]
null
null
null
#!/usr/bin/python from optparse import OptionParser import sys def get_num_iter(lines, start, offset): if (start + offset >= len(lines)): return -1 if (len(lines[start+offset].split()) != 6): return -1 return int(lines[start+offset].split()[4]) def check_num_iter(lines, start, offset): test_value = get_num_i...
43.391304
149
0.720441
6af3c72371c6a9505a2d3fd6949f4d67c5a2574e
1,040
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_substitui_primeira_ocorrencia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_substitui_primeira_ocorrencia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_substitui_primeira_ocorrencia.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por substituir a primeira ocorrência de um número por outro número. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import substitui_primeira_ocor...
43.333333
121
0.656731
ed8b48c99c4918806fc0e7a343b559cda753af0c
626
py
Python
scripts/check_doc_requirements.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
2,109
2020-05-02T23:47:18.000Z
2022-03-31T22:16:54.000Z
scripts/check_doc_requirements.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
1,158
2020-04-29T18:07:02.000Z
2022-03-31T21:50:57.000Z
scripts/check_doc_requirements.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
360
2020-04-29T14:44:49.000Z
2022-03-31T09:26:23.000Z
#!/usr/bin/env python3 import sys from configparser import ConfigParser from pathlib import Path def check_reqs(setup_path="setup.cfg", req_path="docs/requirements.txt"): parser = ConfigParser() parser.read(setup_path) setup_content = parser["options.extras_require"]["sphinx"] setup_content = ( ...
27.217391
77
0.683706
165d1d8bd1efb0af6e1c459c7396cc5b14796dcb
244
py
Python
bridges/models/east/lanms/__main__.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
bridges/models/east/lanms/__main__.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
16
2020-01-28T23:04:13.000Z
2022-03-12T00:02:40.000Z
bridges/models/east/lanms/__main__.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
import numpy as np from . import merge_quadrangle_n9 if __name__ == '__main__': # unit square with confidence 1 q = np.array([0, 0, 0, 1, 1, 1, 1, 0, 1], dtype='float32') print(merge_quadrangle_n9(np.array([q, q + 0.1, q + 2])))
24.4
62
0.627049
bc54ff1a49c6d398b6ba01ebe544668d2765074d
3,030
py
Python
mkmk.py
pmkenned/mkmk
d2eb7a73ee3f5416a6973a18097cbd86fdade2db
[ "MIT" ]
null
null
null
mkmk.py
pmkenned/mkmk
d2eb7a73ee3f5416a6973a18097cbd86fdade2db
[ "MIT" ]
null
null
null
mkmk.py
pmkenned/mkmk
d2eb7a73ee3f5416a6973a18097cbd86fdade2db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys # TODO: # OS-specific # SDL, threads, sockets # parse args # run N times # profile # doc # lint # memcheck # cachegrind # install # uninstall # library # asm # disasm # parameters: # SRC_DIR # BUILD_DIR def main(argv): include_run = True if 'run' in argv[1:] el...
26.12069
174
0.612871
bc7970d9171b5761db760aaf6fe941eb5449c637
602
py
Python
src/server/handlers/integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/handlers/integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/handlers/integrations.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from server.models import Integration from .base import CrudResource, ListResource class IntegrationResource(CrudResource): @property def resource(self): return Integration @property def key(self): return "integration" class IntegrationListResource(ListResource): @property de...
19.419355
44
0.634551
4c39d5cec863c53d1daf01afdbfdc214050d016b
1,107
py
Python
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/XMatters/Scripts/CloseTaskSetContext/CloseTaskSetContext.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from typing import Dict, Any import traceback ''' COMMAND FUNCTION ''' def close_task_set_context(args: Dict[str, Any]) -> CommandResults: entry_id_or_tag = args.get('entry_id') context_key = args.get('context_key') comments = args.get('comm...
23.0625
89
0.679313
4c60f015e5fd7b102ed4eb1baa895f408bdfa75c
21,274
py
Python
Python/Sonstige_Uebungen/Deep Learning/recognizeShapesOwnData/bruteForceModel.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/Deep Learning/recognizeShapesOwnData/bruteForceModel.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/Deep Learning/recognizeShapesOwnData/bruteForceModel.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # #### # File: bruteForceModel.py # Project: NN #----- # Created Date: Wednesday 20.01.2021, 19:52 # Author: Apop85 # #----- # Last Modified: Wednesday 20.01.2021, 19:52 #----- # Copyright (c) 2021 Apop85 # # This software is published under the MIT license. # Check htt...
44.599581
216
0.600968
fc8f770668abce97430364fbd672c8d93d41ec6d
217
py
Python
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/Exam 2/ex_1.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
log_table = [] alpha_table = [] def multiplie(x, y, P): if (x == 0) or (y == 0): return 0 m_ = len(bin(P)) - 3 i = log_table[x] j = log_table[y] return alpha_table[(i+j) % ((1 << m_)-1)]
18.083333
45
0.483871
fc9c2171198de7028eaa74942aeaed8729d1bb81
369
py
Python
sketches/castledefender/castle.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/castledefender/castle.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/castledefender/castle.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from bullet import Bullet class Castle(): def __init__(self, img): self.health = 1000 self.max_health = self.health self.fired = False self.img = loadImage(img) self.x = width - 230 self.y = height - 320 self.mid_y = self.y + 120 def sho...
23.0625
39
0.539295
5dbc0f0f0d216f5ccf068f5da89fcbfc664312f5
5,219
py
Python
CodeStatistics/CodeStatistics/views/home.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/CodeStatistics/views/home.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/CodeStatistics/views/home.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2018/12/25 @Author: Zhang Yafei """ import os import uuid import datetime from flask import Blueprint, render_template, redirect, session, url_for, request, Markup import shutil from CodeStatistics.utils.MySQLHelper import fetchone,fetchall,insert index = Blueprint('index',__na...
38.659259
180
0.652424
54e3a60308eecb4dc0c422c152a088cbe46de8d5
718
py
Python
frappe-bench/apps/erpnext/erpnext/crm/report/minutes_to_first_response_for_opportunity/minutes_to_first_response_for_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/minutes_to_first_response_for_opportunity/minutes_to_first_response_for_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/crm/report/minutes_to_first_response_for_opportunity/minutes_to_first_response_for_opportunity.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): columns = [ { 'fieldname': 'creation_date', 'label': 'Date', 'fieldtype': 'Date' }, { 'fieldname': ...
24.758621
94
0.706128
ab4bc6ec5936bb8c128bcd6e5ce82817c338df70
8,419
py
Python
fhirclient/r4models/diagnosticreport.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/diagnosticreport.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/diagnosticreport.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/DiagnosticReport) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class DiagnosticReport(domainresource.DomainResource): """ A Diagnostic report - a com...
42.095
114
0.617532
db917211f50f826030b4df8f47c6a6e63d111716
32,301
py
Python
Packs/AWS-SecurityHub/Integrations/AWS_SecurityHub/AWS_SecurityHub.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/AWS-SecurityHub/Integrations/AWS_SecurityHub/AWS_SecurityHub.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/AWS-SecurityHub/Integrations/AWS_SecurityHub/AWS_SecurityHub.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import urllib3.util from datetime import timezone from dateparser import parse # Disable insecure warnings urllib3.disable_warnings() '''HELPER FUNCTIONS''' def parse_resource_ids(resource_ids: str) -> list: """ Pars...
38.453571
118
0.582768
917d992390b05f00e048c099cde3fcbb020b8358
628
py
Python
Code/Adventure/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Adventure/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Adventure/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
rooms = { "A": { "N": "B", "E": "C", "desc": "a green room", }, "B": { "S": "A", "W": "D", "desc": "here only a dim light is burning", }, "C": { "W": "A", "desc": "a room with a single door", }, "D": { "E": "B", ...
17.942857
55
0.396497
53076f03196179e005c6236454230f452f868423
1,328
py
Python
Assembler/tests/test.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
1
2019-01-28T01:53:20.000Z
2019-01-28T01:53:20.000Z
Assembler/tests/test.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
Assembler/tests/test.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
def assertEquals(func_call, actual_result): if func_call == actual_result: print('test successful') return 1 else: print('Error, result of function: ' + str(func_call) + " and actual result: " + str(actual_result) + " are not equal") return 0 def assert_not_equals(this,that): ...
30.181818
136
0.588855
f44c532656a60c89cf3a3de525cc615ee7a0e814
3,215
py
Python
src/onegov/swissvotes/layouts/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/layouts/votes.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.core.elements import Link from onegov.swissvotes import _ from onegov.swissvotes.layouts.default import DefaultLayout class VotesLayout(DefaultLayout): @cached_property def title(self): return _("Votes") @cached_property def editbar_lin...
27.715517
79
0.502955
beaea552af2bd6b61e51870fc0750a6121f9d7ba
282
py
Python
Python1/aula6_ex1.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python1/aula6_ex1.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python1/aula6_ex1.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
''' 1-Crie uma lista abaixo com a seguinte palavra:“PYTHON” 2-A lista deve conter as letras separadas e em maiúsculas. 3-Crie uma nova lista somente com as três últimas letras da palavra “PYTHON”. ''' lista = ['P', 'Y', 'T', 'H', 'O', 'N'] nova_lista = lista[3:6] print(nova_lista)
31.333333
77
0.691489
beaf25c285e64c0f8c1c81f48ab61f10e3a7f369
5,101
py
Python
test/test_npu/test_network_ops/test_convolution_backward_weight.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_convolution_backward_weight.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_convolution_backward_weight.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...
46.798165
87
0.519114
beb7dc68ced9598b6a443c58c982d7edc20a1b48
330
py
Python
svd_rec_1.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
svd_rec_1.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
svd_rec_1.py
sivadax/NJLabs
0273e363f6b3d1da8dbe51c1e78824b77b12eb8c
[ "MIT" ]
null
null
null
# Reconstruct SVD from numpy import array from numpy import diag from scipy.linalg import svd # define a matrix A = array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) print(A) # Singular-value decomposition U, s, VT = svd(A) # create n x n Sigma matrix Sigma = diag(s) # reconstruct matrix B = U.dot(Sigma.dot(VT)) ...
20.625
45
0.645455
fe8190798e73572528373d91705cc9cbc8827f20
586
py
Python
apps/index/forms.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/index/forms.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/index/forms.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm as auth_AuthenticationForm from apps.register.forms import RegisterForm as real_RegisterForm class AuthenticationForm(auth_AuthenticationForm): def __init__(self, *args, **kwargs): super(AuthenticationForm, self).__init__(*args, **kwargs) se...
45.076923
83
0.745734
fe9bea1b0e84a6001d28dd13f87a26825c7a072d
425
py
Python
showcase1/com/aaron/filereadwriteexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
showcase1/com/aaron/filereadwriteexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
showcase1/com/aaron/filereadwriteexample.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
# -*- codiing:utf-8 -*- """os example""" __author__="aaron.qiu" import logging def readfile(): try: f = open('a.text', 'r') print(f.read()) finally: if f: f.close() def readfile2(): try: with open('ab.text', 'r') as f: print(f.read()) except Exc...
16.346154
39
0.510588
2290bd88b89a179306a97f94377f051b56f455bb
621
py
Python
src/scatter/scatterlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/scatter/scatterlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/scatter/scatterlines.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
#scatterlines import plotly.graph_objects as go import numpy as np t = np.linspace(0, 10, 100) fig = go.Figure() fig.add_trace(go.Scatter( x=t, y=np.sin(t), name='sin', mode='markers', marker_color='rgba(152, 0, 100, .8)', )) fig.add_trace(go.Scatter( x=t, y=np.cos(t), name='cos', mark...
20.032258
80
0.666667
22b687ce42586c1d1f103bfedda1247036d2b994
3,127
py
Python
Packs/Base/Scripts/CheckDockerImageAvailable/CheckDockerImageAvailable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Base/Scripts/CheckDockerImageAvailable/CheckDockerImageAvailable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Base/Scripts/CheckDockerImageAvailable/CheckDockerImageAvailable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CheckDockerImageAvailable import docker_auth, main, docker_min_layer, parse_www_auth import demistomock as demisto import json RETURN_ERROR_TARGET = 'CheckDockerImageAvailable.return_error' def test_auth(): token = docker_auth('demisto/python') assert token is not None def test_parse_www_auth(): r...
35.534091
100
0.681484
434b28c3bc5759ae317c02f9ec19344dcbc1d6af
3,406
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/names/names.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/names/names.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62b1/names/names.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from binary_search_tree import BinarySearchTree import time # MVP: # Navigate into the `names` directory. Here you will find two text files containing 10, 000 names each, along with a program `names.py` that compares the two files and prints out duplicate name entries. # Try running the code with `python3 names.py`. ...
40.070588
202
0.725484
607cd7ab5f03194b13a741d5c50ed09faa8f2326
12,890
py
Python
languages/python/django-oso/tests/test_django_oso.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
null
null
null
languages/python/django-oso/tests/test_django_oso.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
2
2021-03-24T19:24:40.000Z
2021-03-24T19:54:46.000Z
languages/python/django-oso/tests/test_django_oso.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-03-24T19:51:45.000Z
2021-03-24T19:51:45.000Z
from pathlib import Path from django_oso.partial import TRUE_FILTER import pytest from django.core.exceptions import PermissionDenied, EmptyResultSet from django_oso.oso import Oso, reset_oso from django_oso.auth import authorize, authorize_model from polar import Variable, Expression from oso import OsoError from ...
34.557641
102
0.664469
607f7c7b6b7b615107ec378a38c5359242b0f4fe
680
py
Python
server/transform_to_xml.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
server/transform_to_xml.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
server/transform_to_xml.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import os import sys import glob ifn, ofn = sys.argv[1:] from xml.etree.ElementTree import Element, SubElement, tostring for fn in glob.glob(os.path.join(ifn, "**", "*.md"), recursive=True): add = Element('add') top = SubElement(add, 'doc') title = SubElement(top, 'field') title.set('name','title') ...
24.285714
78
0.580882
60823e9bd3f3523c08d958656967767c265722fc
2,979
py
Python
python_experiments/run_vldbj_experiments/run_our_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/run_vldbj_experiments/run_our_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/run_vldbj_experiments/run_our_executables_rand_pairs.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from exec_utilities import time_out_util from exec_utilities.exec_utils import * def run_exp(): our_exec_path = '/homes/ywangby/workspace/yche/new-git-repos-yche/SimRank/LPMC-Profile/build' our_exec_name_lst = ['flpmc-rand-bench-gt', 'bflpmc-rand-bench-gt', 'bprw-rand-bench-gt', ] data_set_lst = ['ca-GrQc...
41.375
112
0.521987
88017981036879f24c16d7be52b126a659247599
219
py
Python
apps/materialize/templatetags/var_dump.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2017-12-17T21:28:22.000Z
2018-02-02T14:44:58.000Z
apps/materialize/templatetags/var_dump.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/materialize/templatetags/var_dump.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.simple_tag(takes_context=False) def var_dump(var): if isinstance(var, dict): return vars(var) else: return vars({'var': var})
21.9
41
0.680365
e0c9fd5727f23cfbfe96d1c95148ad9d2f12b87e
207
py
Python
ImageRecognition/training_textfiles_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
4
2019-03-17T19:55:43.000Z
2019-04-30T15:22:36.000Z
ImageRecognition/training_textfiles_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
ImageRecognition/training_textfiles_creation_script.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
Anfangswert = 57200 Endwert = 87000 f = open("C:\\Users\\ramon\\darknet\\build\\darknet\\x64\\data\\train.txt","w") for i in range(Anfangswert, Endwert): f.write("data/obj/"+str(i)+"_scene.jpg"+"\n")
41.4
80
0.652174
1c380c77e71d65b628ba4fa9d365cec89f06364c
1,234
py
Python
projects/models/experiment.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/models/experiment.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/models/experiment.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Experiment model.""" from datetime import datetime from sqlalchemy import Boolean, Column, DateTime, Integer, String, Text, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.sql import expression from .operators import Operator from ..database import Base from ..utils impor...
37.393939
90
0.709887
c76b02fd9b2b704773a8f7550e8c0afa959852be
11,793
py
Python
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urlparse.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urlparse.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python27/patches/patch-Lib_test_test__urlparse.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_test_test__urlparse.py,v 1.1.2.2 2021/10/13 21:04:01 tm Exp $ Fix CVE-2021-23336: Add `separator` argument to parse_qs; warn with default Via Fedora: https://src.fedoraproject.org/rpms/python2.7/blob/rawhide/f/00359-CVE-2021-23336.patch --- Lib/test/test_urlparse.py.orig 2020-04-19 21:13:39.0000000...
44.334586
90
0.552277
401d0ef3a1fef89e74a81c7b68ee3eeb215035ba
14,131
py
Python
src/test/tests/operators/slice.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/operators/slice.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/operators/slice.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: slice.py # # Tests: mesh - 3D rectilinear, single domain, # 3D unstructured single domain # 3D curvilinear multi-domain # ...
24.155556
79
0.714458
40ea40a7121bfb17cfcac0bb010133b01514a139
2,109
py
Python
_/resultate/live_uploader/uploader/__main__.py
olzimmerberg/olzimmerberg-website
a2e1a500a361a5f380015d052098085451c924d4
[ "MIT" ]
null
null
null
_/resultate/live_uploader/uploader/__main__.py
olzimmerberg/olzimmerberg-website
a2e1a500a361a5f380015d052098085451c924d4
[ "MIT" ]
null
null
null
_/resultate/live_uploader/uploader/__main__.py
olzimmerberg/olzimmerberg-website
a2e1a500a361a5f380015d052098085451c924d4
[ "MIT" ]
null
null
null
import os import sys from . import webui, updater def ask_string(question): print(question) return input() def ask_path(question): while True: print(question) res = input() if os.path.realpath(res): return os.path.realpath(res) else: print(f'No su...
24.523256
76
0.54623
dc09a2e4efd1066b6367b12690af0a9d0294815a
1,621
py
Python
Algorithms/5_Searching/15.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/5_Searching/15.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/5_Searching/15.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/gena/problem #!/bin/python3 import math import os import random import re import sys from collections import deque # # Complete the 'hanoi' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY posts as parameter. # def hanoi(...
22.513889
56
0.500308
909e38de2ef76362511f4747d1430a3da4ea5fd0
844
py
Python
Source/14_PortScanner/app.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
1
2022-02-28T09:49:35.000Z
2022-02-28T09:49:35.000Z
Source/14_PortScanner/app.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
Source/14_PortScanner/app.py
rbiotblbk/WBS_T9_2022
533156db88ff2fe676564b0e5d6e84e888ab0916
[ "MIT" ]
null
null
null
# Local/Own Server Port Scanner # Simple and Slow import socket import sys import os from pathlib import Path import json os.chdir(Path(__file__).parent ) with open("./portscanner.json", mode="r", encoding="UTF-8") as file: content = file.read() app_json = json.loads(content) target_ip = app_json["ta...
22.210526
76
0.64455
90a2ed285d9564f1e74bb5fdab02a87a88d7d2a7
1,516
py
Python
aiohttp_server/simpleClient.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
aiohttp_server/simpleClient.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
aiohttp_server/simpleClient.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
''' https://docs.aiohttp.org/en/stable/client_quickstart.html ''' import aiohttp import asyncio import sys import time class SimpleClient: async def fetchGet(self, session, url): async with session.get(url) as response: return await response.text() async def printGetRequest(self, url): ...
30.32
69
0.635884
d3ff394a4d5cc527c1285204b7dd641615871cb1
122
py
Python
python/coursera_python/WESLEYAN/week1/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week1/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week1/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem1_2(x,y): print(x+y) print(x*y) pass # replace this pass (a do-nothing) statement with your code
17.428571
68
0.647541
7352baa1636808f3cb5ff56e0950a3b715ba226b
487
py
Python
exercises/zh/test_02_05_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/test_02_05_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/test_02_05_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "from spacy.tokens import Doc" in __solution__ ), "你有正确导入Doc类吗?" assert len(words) == 5, "貌似你的词数目不对。" assert len(spaces) == 5, "貌似你的空格数目不对。" assert words == ["Oh", ",", "really", "?", "!"], "再检查下words!" assert all(isinstance(s, bool) for s in spaces), "spaces里面需要是布尔值...
40.583333
73
0.589322
b44e100635c205826e97ea6e06762dc4c3ee1ca2
1,082
py
Python
src/onegov/wtfs/collections/municipalities.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/municipalities.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/collections/municipalities.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.collection import GenericCollection from onegov.core.orm.func import unaccent from onegov.wtfs.models import Municipality from onegov.wtfs.models import PickupDate from sqlalchemy import Integer class MunicipalityCollection(GenericCollection): @property def model_class(self): return ...
31.823529
74
0.639556
b459449799fc5aeff334a2788e579f862501bf45
876
py
Python
Utils/py/WhistleDetector/linearity_test.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/py/WhistleDetector/linearity_test.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/py/WhistleDetector/linearity_test.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
from numpy.fft import rfft, irfft, fft, ifft import numpy as np def test_01(): x = [1, 4, 1] spectrum_x = fft(x) spectrum_y = fft(x) cross_correlation = ifft(spectrum_x * spectrum_y) print("Spectrum X: " + str(spectrum_x)) print("Spectrum Y: " + str(spectrum_y)) print("Correlation: " + s...
23.675676
53
0.554795
c30b7e48842ae60826bb49137ca0046e18897e91
2,636
py
Python
tests/AzureDataHandlerTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/AzureDataHandlerTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/AzureDataHandlerTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import unittest import pandas as pd from libs.azuretextanalytics.AzureDataHandler import AzureDataHandler class AzureDataHandlerTest(unittest.TestCase): def __init__(self, *args, **kwargs): super(AzureDataHandlerTest, self).__init__(*args, **kwargs) self.handler = AzureDataHandler() self....
30.298851
69
0.453338
c37eba87d22a92d94495b4f2bebb0238a061753b
709
py
Python
onewiresensoren-auslesen-und-in-Datenbank-speichern/onewiregrafana.py
jjk4/jjk1-s-Codeschnipsel
5c40870172f1630b7bbc345fa94fc8ac7ae98710
[ "Unlicense" ]
null
null
null
onewiresensoren-auslesen-und-in-Datenbank-speichern/onewiregrafana.py
jjk4/jjk1-s-Codeschnipsel
5c40870172f1630b7bbc345fa94fc8ac7ae98710
[ "Unlicense" ]
null
null
null
onewiresensoren-auslesen-und-in-Datenbank-speichern/onewiregrafana.py
jjk4/jjk1-s-Codeschnipsel
5c40870172f1630b7bbc345fa94fc8ac7ae98710
[ "Unlicense" ]
null
null
null
import subprocess from influxdb import InfluxDBClient client = InfluxDBClient(host='localhost', port=8086) client.switch_database('heizung') prvl = float(subprocess.check_output("cat /sys/bus/w1/devices/28-000000018c1b/temperature", shell=True).decode("utf-8"))/1000 sevl = float(subprocess.check_output("cat /sys/bus/w...
32.227273
125
0.746121
48dbf0576266201c0539d8b3010d6b3feaa1fdfd
3,209
py
Python
downloader.py
thanasisttgr/AutoEq
863436c40c8d4abf6874cc301bc1c7d8e8c5303c
[ "MIT" ]
1
2020-07-17T03:48:21.000Z
2020-07-17T03:48:21.000Z
downloader.py
hyshuma/AutoEq
4c3ad3478d6b74fc794bd7d973b330d38da338b9
[ "MIT" ]
null
null
null
downloader.py
hyshuma/AutoEq
4c3ad3478d6b74fc794bd7d973b330d38da338b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import requests import argparse import json import shutil import warnings class Downloader: def __init__(self): self.image_urls = dict() def read_json(self, file_path, old_file_path=None): """Reads JSON file containing headphone models and image urls.""" ...
38.662651
115
0.608289
5b16fd21452fce328258bccb98449c5dc83f174e
143
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_customer_issue.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_customer_issue.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/rename_customer_issue.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.table_exists("Customer Issue"): frappe.rename_doc("DocType", "Customer Issue", "Warranty Claim")
23.833333
66
0.741259
825dea75c316c2bcba1320e21ea2500c6073e52a
885
py
Python
COMP/W01/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
COMP/W01/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
COMP/W01/utils.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
from random import randrange as r import os def read_quintuple_from_data(file): f = open(file, "r") name = f.readline().replace("\n", "") alphabet = set([symbol for symbol in f.readline().replace("\n", "").split()]) states = set([state for state in f.readline().replace("\n", "").split()]) number_t...
35.4
81
0.618079
4802576b1daed3a4b5f9e9b8f84636224bb55b7b
2,745
py
Python
chord_rec/harmalysis/test/test_class.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/test/test_class.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/test/test_class.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
import harmalysis import itertools import unittest keys_major = ['C', 'D', 'E', 'F', 'G', 'A', 'B'] keys_minor = [k.lower() for k in keys_major] keys_major_minor = keys_major + keys_minor alterations = ['#', '##', 'x', 'b', 'bb', '-', '--'] all_keys = ['{}{}'.format(k, a) for k, a in itertools.product(keys_major_minor...
35.649351
107
0.601821
486011703f4042d8fb745cc761daba7cdae31dbd
18,165
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_service_offering.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_service_offering.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/cs_service_offering.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2017, René Moser <mail@renemoser.net> # 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', ...
31.104452
120
0.672282
487d31ce3f2081e04ff453398093cc6e67a00533
482
py
Python
lib/main.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
lib/main.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
lib/main.py
nsde/CraftServers
3010df6374dc7711f01c0f9c969afec13c9f32e6
[ "MIT" ]
null
null
null
import os import sys import new import install import tkinter win = tkinter.Tk() win.title("CraftServers") def newInstallation(): install.create() def newProject(): new.newProject() tkinter.Label(win, text="CraftServers").pack() tkinter.Button(win, text="Install a new software", command=newInstallation).pack...
24.1
82
0.740664
96acd3fd05db31c764d4bef22613d1852f54df5b
2,097
py
Python
frds/mktstructure/measures/permanent_price_impact.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/mktstructure/measures/permanent_price_impact.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/mktstructure/measures/permanent_price_impact.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd # from .exceptions import * name = "PermanentPriceImpact" description = """ """ vars_needed = {"Price", "Volume", "Mid Point", "Direction"} def estimate(data: pd.DataFrame) -> np.ndarray: if not vars_needed.issubset(data.columns): raise MissingVariableError(name, v...
30.838235
78
0.638054
fb59d6d2e4397092ccd416bb1458ad07be208ee3
3,044
py
Python
Gundlagen IT-Hardware/Aufgabe8.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
2
2021-11-16T22:53:25.000Z
2021-11-17T12:30:49.000Z
Gundlagen IT-Hardware/Aufgabe8.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-02-23T18:56:51.000Z
2022-02-23T19:09:20.000Z
Gundlagen IT-Hardware/Aufgabe8.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-01-24T16:54:10.000Z
2022-01-24T16:54:10.000Z
import time import explorerhat as hat print("""SD_GIT_2122_U08 Ampelschaltung""") def stateToCode(name): # Zustaende wurden geaendert ! if name == "gruen": return [0, 0] if name == "rot": return [0, 1] if name == "gelb": return [1, 0] if name == "rotgelb": retur...
27.672727
91
0.598555
83bef79c6cc13a7e869a667d5cd120feed360c3c
936
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/dates_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/dates_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch3/dates_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Example file for working with date information # from datetime import date from datetime import time from datetime import datetime def main(): ## DATE OBJECTS # Get today's date from the simple today() method from the date class today = date.today() print ("Today's date is ", today) # print out the d...
26.742857
81
0.672009
790dc1f7c437946d2beb40380f654fcc078627c4
742
py
Python
projects/g3h2-algorithm/practice1/4.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-algorithm/practice1/4.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-algorithm/practice1/4.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
def get_the_ith_largest(s1: list, s2: list, i: int): m = len(s1) n = len(s2) if i > m + n: raise IndexError('list index out of range') i -= 1 l1 = 0 r1 = i if m - 1 >= i else m - 1 while l1 <= r1: c1 = (l1 + r1) // 2 c1_f = i - c1 - 1 c1_b = i - c1 i...
25.586207
65
0.467655
e3cb9ba071e89e5a7cc6e8e5e4809a872f7d773d
1,044
py
Python
x/StructOverflow/gen.py
miku/gonotes
5844c101236f7d0be48583ecc05b0fa4580be455
[ "MIT" ]
null
null
null
x/StructOverflow/gen.py
miku/gonotes
5844c101236f7d0be48583ecc05b0fa4580be455
[ "MIT" ]
null
null
null
x/StructOverflow/gen.py
miku/gonotes
5844c101236f7d0be48583ecc05b0fa4580be455
[ "MIT" ]
null
null
null
# package main # # import "fmt" # # func main() { # var a, b struct{} # fmt.Println(&a == &b) // false, but may be true? # } # # vars = ["s{}".format(i) for i in range(20000)] assignments = ["fmt.Println({})".format(v) for v in vars] print(""" package main import "fmt" import "time" import "runtime" func main() {...
21.306122
92
0.60249
3f8470df09ef75160def2f830c1c18d325f2f92e
153
py
Python
src/main/python/floatingpoints/floating_points_model_helper.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_model_helper.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
src/main/python/floatingpoints/floating_points_model_helper.py
mkisser-tgm/floating_points
ef6c93c1d1fa5bbb38615c0d2fc7632b31f06e8e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QMessageBox def openInfoPopup(window, title, text): return QMessageBox.information(window, title, text, QMessageBox.Ok)
30.6
71
0.797386
b76148150a1804a15c7f31595981c388dcbc5a11
357
py
Python
source/pkgsrc/graphics/py-ggplot/patches/patch-ggplot_utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-ggplot/patches/patch-ggplot_utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-ggplot/patches/patch-ggplot_utils.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-ggplot_utils.py,v 1.1 2019/06/17 20:27:16 adam Exp $ Fix for newer Pandas. --- ggplot/utils.py.orig 2019-06-17 20:04:20.000000000 +0000 +++ ggplot/utils.py @@ -78,7 +78,7 @@ def is_iterable(obj): return False date_types = ( - pd.tslib.Timestamp, + pd.Timestamp, pd.DatetimeIndex, ...
22.3125
67
0.644258
b76a19bf44d0dd8cd74da2395477e56b2e80e89b
196
py
Python
python/python_backup/PRAC_PYTHON/po.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/po.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/po.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("enter a number") b=input("enter another number") if a>b: c=a d=b else: c=b d=a for i in range(1,c,1): if (c*i)%d==0: break; print "L.C.M is:",c*i
15.076923
32
0.484694
4d1d5e18fe6dff99639766537f6059b128baca1a
1,185
py
Python
Classes/Screen_codes/Win_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Screen_codes/Win_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Screen_codes/Win_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
from PyQt5.QtWidgets import QDialog from PyQt5.QtCore import pyqtSlot from PyQt5 import uic import http.client import json from PyQt5 import QtCore import requests import ast qtCreatorFile = "Classes/GUI/win.ui" Ui_Dialog, QtBaseClass = uic.loadUiType(qtCreatorFile) class Win(QDialog, Ui_Dialog): show_main_scre...
25.76087
69
0.693671
4dcc13f261831507a89b01dfa5dacaf73d406a96
2,439
py
Python
Nivelamento/projeto(v1).py
VitoriaCamelo/PET
faba2b7d598ca3a735a627614247687a63272c53
[ "MIT" ]
null
null
null
Nivelamento/projeto(v1).py
VitoriaCamelo/PET
faba2b7d598ca3a735a627614247687a63272c53
[ "MIT" ]
null
null
null
Nivelamento/projeto(v1).py
VitoriaCamelo/PET
faba2b7d598ca3a735a627614247687a63272c53
[ "MIT" ]
null
null
null
nomes=[] precos=[] tipos=[] qtdes=[] total=0 def inserir(): qt=int(input("qtde a inserir: ")) global total total+=qt for i in range(qt): nome=input("digite nome do produto: ") nomes.append(nome) preco=float(input("digite preco do produto: ")) precos.append(preco) tipo=input("digite tipo do ...
23.679612
62
0.603116
22749d71efbfb18068421ace73974a7b7446d554
6,347
py
Python
sim/lib/distributions.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/distributions.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/distributions.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
1
2021-07-28T13:52:58.000Z
2021-07-28T13:52:58.000Z
import time import bisect import numpy as np import pandas as pd import networkx as nx import scipy import scipy.optimize import scipy as sp import random as rd import os import math import matplotlib import matplotlib.pyplot as plt class CovidDistributions(object): """ Class to sample from specific distribu...
35.261111
191
0.637309
7fc9129c01f05b07e4140d4581800af69e1212eb
24,311
py
Python
src/compgen2/gov/gov.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
1
2022-02-02T12:41:06.000Z
2022-02-02T12:41:06.000Z
src/compgen2/gov/gov.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
src/compgen2/gov/gov.py
CorrelAid/compgen-ii-cgv
810a044d6bbe1ce058a359115e3e5fc71a358549
[ "MIT" ]
null
null
null
"""This module contains the Gov class that provides an interface to all data in the Gov database. Examples: ```Python # first, initialize the instance properly gov = Gov(data_root) gov.load_data() gov.build_indices() # now you can call any gov method. gov.all_paths() ``` """ import logging import pickle from collecti...
38.527734
194
0.575624
3d1471d912f112801d5a7fac8763b7524e3ba815
2,684
py
Python
python/coursera_python/WESLEYAN/week4/test/ph_3.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/ph_3.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/ph_3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#%% # -phones.py *- coding: utf-8 -*- """ Version 3 -- create phone; delete phone """ phones = [['Jerry Seinfeld', '(212) 344-3784'], ['Cosmo Kramer', '(212) 559-8185']] name_pos = 0 phone_pos = 1 phone_header = [ 'Name', 'Phone Number'] def proper_menu_choice(which): if not which.isdigit(): pr...
24.851852
73
0.555514
1815b661aedcc464e11a35d5953b260d832b8743
91
py
Python
moviemon/apps.py
42bbichero/MovieMon
4fee28e0449429ffcd3e0a284365a7f3e7c64e3d
[ "MIT" ]
null
null
null
moviemon/apps.py
42bbichero/MovieMon
4fee28e0449429ffcd3e0a284365a7f3e7c64e3d
[ "MIT" ]
null
null
null
moviemon/apps.py
42bbichero/MovieMon
4fee28e0449429ffcd3e0a284365a7f3e7c64e3d
[ "MIT" ]
1
2019-01-12T10:42:25.000Z
2019-01-12T10:42:25.000Z
from django.apps import AppConfig class MoviemonConfig(AppConfig): name = 'moviemon'
15.166667
33
0.758242
185c390a76d8213b5cba46e1ce44a98dcaa21cb0
107
py
Python
scripts/hello_world_kaywinnet.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_kaywinnet.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_kaywinnet.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
#Learning how to make a pull request :) #Language: Python #Author: kaywinnet print("Hello World!")
15.285714
40
0.682243
185c482bee33949acd88472f66ecefeb3d5686ad
176
py
Python
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.00-Define-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.00-Define-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.00-Define-Functions.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def add_two_numbers(first, second): return first + second number1 = 10 number2 = 3 result = add_two_numbers(number1, number2) print(f"{number1} + {number2} = {result}")
17.6
42
0.704545
186abbb4f1810890df1db6df918b3d421675f92b
347
py
Python
INBa/2015/CHINKIROV_V_V/task_1_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/CHINKIROV_V_V/task_1_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/CHINKIROV_V_V/task_1_29.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#задача 1. Вариант 29 #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Иво Ливи. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. #Чинкиров В.В #19.02.2016 print("Под псевдонимом Иво Ливи ,скрывается француский певец Ив Монтант...
43.375
200
0.81268
a1382b40d15c9a6b7f8f7a1ab74a0de2ce86dd9f
22,170
py
Python
attach/views.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/views.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/views.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.conf import settings from django.shortcuts import render, get_object_or_404, redirect from .models import * from django.contrib.auth import authenticate, login from django.contrib.auth import get_user_model from attach import myFields from .myFields import DayOfTheWeekFi...
32.507331
180
0.677763
a13e91526ecb32678b02da3c91c0c5ad4b73e592
3,359
py
Python
tests/libs/test_selector.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
null
null
null
tests/libs/test_selector.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-30T21:41:46.000Z
2021-08-30T21:41:46.000Z
tests/libs/test_selector.py
andrenasturas/hausse
58e7cb71d5105cf1d6ec7d294e85668855bf8336
[ "MIT" ]
1
2021-08-31T19:27:32.000Z
2021-08-31T19:27:32.000Z
from pathlib import Path import pytest from hausse.lib.element import Element from hausse.lib.project import Project from hausse.lib.selector import All, Collection, Elements, Extensions, Pattern, Selector from hausse.plugins.elements.collection import BaseCollection class TestSelector: def test_selector_wrapper...
27.308943
88
0.559988
c55461f401cf21070652e392f76b1f131a98e055
192
py
Python
Raspberry-Pi/motion_sensor.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
null
null
null
Raspberry-Pi/motion_sensor.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
1
2021-06-01T21:51:54.000Z
2021-06-01T21:51:54.000Z
Raspberry-Pi/motion_sensor.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time # Setup MOTION_SENSOR = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(MOTION_SENSOR, GPIO.IN) while True: print( GPIO.input(MOTION_SENSOR) ) time.sleep(1)
16
38
0.734375
b19f1d423e9979cd4a8125a86428fbf3c9031c61
3,371
py
Python
src/Loader.py
LukasTinnes/VenturePainter
cb1f24fda2a43d402a9c5a401d713af0c950270b
[ "Unlicense" ]
1
2020-05-29T21:09:33.000Z
2020-05-29T21:09:33.000Z
src/Loader.py
LukasTinnes/VenturePainter
cb1f24fda2a43d402a9c5a401d713af0c950270b
[ "Unlicense" ]
3
2020-06-14T11:33:54.000Z
2022-01-13T03:31:06.000Z
src/Loader.py
LukasTinnes/VenturePainter
cb1f24fda2a43d402a9c5a401d713af0c950270b
[ "Unlicense" ]
null
null
null
import logging import os import xml.etree.ElementTree as ET from typing import List import cv2 import pygame from src.Shape import Shape class Loader: """ The Loader class loads an SVG file and translates it into Shape objects of the Engine """ def __init__(self): """ Initialises th...
33.71
116
0.598339
621eea0f66bb6a5bfe2687b4cdabdbec38206ed4
888
py
Python
python/DeepLearning/lesson1/week3/homework/myHomeWork.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/lesson1/week3/homework/myHomeWork.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/lesson1/week3/homework/myHomeWork.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from testCases import * import sklearn import sklearn.datasets import sklearn.linear_model from planar_utils import plot_decision_boundary, sigmoid, load_planar_dataset, load_extra_datasets np.random.seed(1) X, Y = load_planar_dataset() # plt.scatter(X[0, :], X[1, :],...
32.888889
98
0.684685
b84f52ff35ffe5e6a9dbd4083649335c13ba6197
5,931
py
Python
Packs/GoogleChronicleBackstory/Scripts/ChronicleListDeviceEventsByEventTypeWidgetScript/ChronicleListDeviceEventsByEventTypeWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleListDeviceEventsByEventTypeWidgetScript/ChronicleListDeviceEventsByEventTypeWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleListDeviceEventsByEventTypeWidgetScript/ChronicleListDeviceEventsByEventTypeWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from unittest.mock import patch import demistomock as demisto import ChronicleListDeviceEventsByEventTypeWidgetScript INDICATOR_DATA = {'indicator': {'CustomFields': {'chronicleassetsummary': []}}} def test_main_success(mocker): """ When main function is called, extract_list_of_events_from_indicator sho...
63.774194
114
0.448997
a26a5552edee5a89332771ded2b79f10a14ca286
3,704
py
Python
books/PythonAutomate/excel_spreadsheets/handling_excel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/excel_spreadsheets/handling_excel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/excel_spreadsheets/handling_excel.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""handling_excel.py openpyxl을 이용해 excel 파일 다루기 """ import os import openpyxl # Excel 문서 열기 wb = openpyxl.load_workbook("example.xlsx") print(f"type: {type(wb)}") # <class 'openpyxl.workbook.workbook.Workbook'> # 특정 Sheet 열기 print(f"Sheet Names: {wb.sheetnames}") # ['Sheet1', 'Sheet2', 'Sheet3'] sheet = wb["Sheet...
26.269504
87
0.680076
a28e55033d391abc5169d8f4a24541ecdc9bcb0a
14,086
py
Python
Recreator-Backdoor-master/Recreator-Backdoor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Recreator-Backdoor-master/Recreator-Backdoor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Recreator-Backdoor-master/Recreator-Backdoor.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import base64 recreator_backdoor ="""aW1wb3J0IGJhc2U2NCwgY29kZWNzDQptYWdpYyA9ICdJeUV2ZFhOeUwySnBiaTlsYm5ZZ2NIbDBhRzl1Q2lNZ0xTb3RJR052WkdsdVp6b2dkWFJtTFRnZ0xTb3RDbWx0Y0c5eWRDQm9kSFJ3TG5ObGNuWmxjZ3BtY205dElITjFZbkJ5YjJObGMzTWdhVzF3YjNKMElHTm9aV05yWDI5MWRIQjFkQXBtY205dElIUnBiV1VnYVcxd2IzSjBJSE5zWldWd0NtbHRjRzl5ZENCdmN5QUt...
1,280.545455
14,002
0.997728
a296a0608d682e56bd503953284faa403c5f97c8
9,789
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/utils/multigrid/multigrid.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
883
2020-11-12T11:46:46.000Z
2022-03-31T18:27:10.000Z
paddlevideo/utils/multigrid/multigrid.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
233
2020-12-09T06:04:59.000Z
2022-03-28T08:16:51.000Z
paddlevideo/utils/multigrid/multigrid.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
225
2020-11-13T06:21:55.000Z
2022-03-31T05:36:11.000Z
"""Functions for multigrid training.""" import numpy as np class MultigridSchedule(object): """ This class defines multigrid training schedule and update cfg accordingly. """ def init_multigrid(self, cfg): """ Update cfg based on multigrid settings. Args: cfg (conf...
41.833333
113
0.582286
a791d47fac23f16807f38b1da6bc39f6fbff442d
54
py
Python
text_clf/evaluate.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
2
2018-05-13T13:00:10.000Z
2018-05-13T13:00:12.000Z
text_clf/evaluate.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
null
null
null
text_clf/evaluate.py
kejunxiao/TextClf
aa1c195cb5908c32a3e6ed6891142603cb198d87
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf def evaluate(FLAGS): pass
13.5
23
0.740741
ce324adfd25b7ef5948e80133005b51fca33dd5b
2,501
py
Python
module/classification_package/src/eval.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/src/eval.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/src/eval.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import numpy as np import typing as t import torch import os from torch import nn from torch.utils.data import DataLoader from module.classification_package.src.dataset import FishialDataset from sklearn.metrics import accuracy_score from sklearn.neighbors import KDTree def dump_embeddings(dataloader: DataLoader, mo...
34.736111
100
0.665734
5a5fb2e4281bc73f8b74545f6c1ee136396fa89e
524
py
Python
app/freelancer/urls.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/freelancer/urls.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/freelancer/urls.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
1
2022-03-06T17:44:49.000Z
2022-03-06T17:44:49.000Z
from django.urls import path, include from rest_framework.routers import DefaultRouter from freelancer import views router = DefaultRouter() router.register('myprofile', views.MyProfileViewSet) router.register('editmyprofile', views.EditMyProfileViewSet, basename='editmyprofile') router.register('freelancers', vie...
23.818182
86
0.795802
ce9c30e55805095c36df4d495845623cbda4fd76
7,140
py
Python
parse.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
parse.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
parse.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from bs4 import BeautifulSoup as BS from datetime import datetime import re import os import csv import config ######################## ### DOKUMENTE PARSEN ### ######################## def parse_document(doc, doc_name): soup = BS(doc.decode('utf-8'), "html.parser") table = soup.find('tabl...
43.272727
318
0.621148
0b340dc0147b17c1b39545e76dd30d6d396f588c
1,644
pyde
Python
sketches/basicshapes/basicshapes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/basicshapes/basicshapes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/basicshapes/basicshapes.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
def setup(): size(640, 640) frame.setTitle("Geometrische Grundformen in Processing.py") # noLoop() def draw(): background(255) drawGrid() stroke(0) # Rechtecke with pushStyle(): fill(255,127,36) rect(20, 20, 120, 120) rect(180, 20, 120, 120, 20) rect...
28.344828
67
0.527372
f00f971616e17d73de79792d2722d42eb12f00be
231
py
Python
tarefas-poo/lista-03/enigma/programa.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/enigma/programa.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/enigma/programa.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício Enigma # -------------------------- # programa principal # from view.interface_com_usuario import InterfaceComUsuario iu = InterfaceComUsuario() iu.interaja()
19.25
58
0.580087
f0377dedf0e2d5fef73f96ec2454cf8f40241677
402
py
Python
Coursera/Using Python to Access Web Data/Week-2/Assignment/sumScript.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Using Python to Access Web Data/Week-2/Assignment/sumScript.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Using Python to Access Web Data/Week-2/Assignment/sumScript.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
import re if __name__ == '__main__': file = open('regex_sum_110092.txt') sm = 0 wd = 0 for line in file: temp = line.rstrip() temp = re.findall('[0-9]+', temp) #print(temp) #print('\n') if len(temp) > 0: for w in temp: wd += 1 ...
22.333333
59
0.465174
f0462ef2da228d2b34e14f31d87fdd7efb13243e
2,669
py
Python
hihope_neptune-oh_hid/00_src/v0.1/third_party/LVM2/daemons/lvmdbusd/loader.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/loader.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/third_party/LVM2/daemons/lvmdbusd/loader.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015-2016 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU General Public License # a...
31.034884
75
0.731735
b2f318a25b3b3c40124fd3cc2f8848aa210fcdb9
8,603
py
Python
azext_keyvault/keyvault/custom/http_message_security.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
2
2019-06-12T13:44:34.000Z
2020-06-01T13:24:04.000Z
azext_keyvault/keyvault/custom/http_message_security.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
5
2018-04-26T01:14:29.000Z
2021-01-05T00:45:39.000Z
azext_keyvault/keyvault/custom/http_message_security.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
8
2018-04-24T22:52:48.000Z
2021-11-16T06:29:28.000Z
#--------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #---------------------------------------------------------------------...
44.807292
120
0.654539
d7a4d1a84c5be16e0b6a65cff8863ce9b7a85ba5
1,856
py
Python
samt/bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2020-01-16T08:40:00.000Z
2020-01-16T08:40:00.000Z
samt/bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
samt/bot.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2019-10-16T08:11:51.000Z
2019-10-16T08:11:51.000Z
from typing import Union from requests import Session, Response class LowerBot: BASE_URL = "https://api.telegram.org/bot{}/" def __init__(self, token: str): self.token = token self.url = self.BASE_URL.format(token) self.session = Session() def _make_request(self, method: str, da...
29.460317
71
0.550647
cc1ac7d15a207287a4dff1dac161fe7600079f9a
2,741
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/gb/sedol.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/gb/sedol.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/gb/sedol.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# sedol.py - functions for handling SEDOL numbers # # Copyright (C) 2015 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your ...
31.872093
75
0.706312
5054f09851b783071a145e5fb0cbcaf401f33052
2,957
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/encryptor_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/encryptor_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/encryption/encryptor_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from logging import getLogger from typing import Dict, Optional, Union from watchmen_data_kernel.common import ask_all_date_formats, ask_encrypt_aes_params, DataKernelException from watchmen_model.admin import FactorEncryptMethod from .aes_encryptor import AESEncryptor from .center_masker import CenterMasker from .dat...
38.907895
110
0.819073
acca617541674692e0eeb98d6dd45b20e5f5bd38
736
py
Python
crawlerhttp/httputil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
crawlerhttp/httputil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
crawlerhttp/httputil.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
import requests from logger import crawler_logger from crawlerhttp import http_header_generator from core import crawler_enum def getwebpage(page_url): response = requests.get(page_url, http_header_generator.get_http_header(crawler_enum.CrawlerUserAgent.Microsoft_Edge_69.value)) response.encoding = 'utf-8' ...
38.736842
131
0.730978
c5ab18e712751bedc00a0793f262b37c42b47fff
614
py
Python
imwievaluation/tests/test_semester.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_semester.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_semester.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
from tests.database_test import DatabaseTest from semester import Semester from lecture import Lecture from lecturer import Lecturer # TODO: ugly unused imports class TestSemeser(DatabaseTest): def test_unique_constraint(self): s1 = Semester('WS', 2014) s2 = Semester('WS', 2014) self.sess...
34.111111
84
0.710098
76aa40364e09c54c10c8ca27d2ac7d7cfd088fd7
265
py
Python
tidb/tidb-docker-compose/tispark/tispark-tests/tests/tests.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
271
2018-01-09T01:57:26.000Z
2022-03-19T14:12:37.000Z
tidb/tidb-docker-compose/tispark/tispark-tests/tests/tests.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
73
2018-03-13T12:21:15.000Z
2022-01-19T09:02:32.000Z
tidb/tidb-docker-compose/tispark/tispark-tests/tests/tests.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
138
2018-01-20T05:47:06.000Z
2022-03-29T05:45:13.000Z
from pyspark.sql import SparkSession spark = SparkSession.builder.master("spark://tispark-master:7077").appName("TiSpark tests").getOrCreate() spark.sql("use TPCH_001") count = spark.sql("select count(*) as c from lineitem").first()['c'] assert 60175 == count
26.5
105
0.732075
76ab512a0224f04059bb596f679084e741d81302
1,621
py
Python
fuzzcli/client.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
fuzzcli/client.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
fuzzcli/client.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
import time, socket, sys, traceback from client.config import * from client.helper import Helper from client.rest import Rest from engine.afl import Fuzzer as afl from engine.radamsa import Fuzzer as radamsa engines = { 'afl' : afl, 'radamsa' : radamsa, # 'honggfuzz' : honggfuzz } def main(): helper...
26.57377
71
0.516348
8cb375f1b7137b54a41834f1824c7247a1040f12
1,935
py
Python
research/cv/ntsnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ntsnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ntsnet/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
35.833333
87
0.643411
50febeb5fcaa46f5439ee59c54731a5eee8fb064
1,813
py
Python
src/Classes.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
src/Classes.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
9
2019-07-15T08:49:00.000Z
2019-08-28T15:05:08.000Z
src/Classes.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
import random from enum import Enum class Quotes: def invalid_input(): return ">Your input was invalid" class GenPaths: def path_gen(self): counter = random.randint(1, 3) if counter == 1: print(">There is only one path that leads you out of this room") else: ...
29.241935
125
0.546608
fa15df00ab0c04250057a559c94fbafccb6a6e7c
1,816
py
Python
Graphalgorithmen/Tiefensuche (DFS)/Tiefernsuche.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Graphalgorithmen/Tiefensuche (DFS)/Tiefernsuche.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Graphalgorithmen/Tiefensuche (DFS)/Tiefernsuche.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
from collections import defaultdict # Hier erstellen wir die Klasse Graph class Graph(): # Das ist der Konstruktor der Klasse # Hier erstellen wir ein defaultdict mit einer Liste, # welches genutzt wird um die Knoten und Kanten zu speichern def __init__(self): self.graph = defaultdict(list) ...
27.104478
92
0.65804
fa2e763744c978772c45050b895f2d76f0ef3f3c
28,284
py
Python
tests/onegov/wtfs/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from freezegun import freeze_time from io import StringIO from onegov.user import User from onegov.wtfs.models import DailyListBoxes from onegov.wtfs.models import DailyListBoxesAndForms from onegov.wtfs.models import Invoice from onegov.wtfs.models import Municipality from onegov.wtfs.models ...
33.75179
76
0.574671
ad0feb71a1ea6daf49535019288a3113cc9b5245
202
py
Python
Exercicios/ex09-4d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-4d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-4d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
#conversao de fahrenheit para celsius fahrenheit = float(input('Informe a temperatura em fahrenheit: ')) celsius = (fahrenheit-32)*(5/9) msg = 'Temperatura em Celsius: {}' print(msg.format(celsius))
22.444444
66
0.732673
ad8e6da7133de567ea3b649a4bfc8c069c1c6c5f
4,131
py
Python
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_math.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_math.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_numpy/python_numpy_tutorial/python_numpy_tutorial-numpy_array_math.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ CS231n Convolutional Neural Networks for Visual Recognition http://cs231n.github.io/ Python Numpy Tutorial http://cs231n.github.io/python-numpy-tutorial/ Numpy Reference https://docs.scipy.org/doc/numpy/reference/  ̄ python_numpy_tutorial-numpy_array_math.py 2019-07-0...
21.293814
81
0.543452
7ef7a94ffb33ee34375ce4359556d5ab21f512da
3,416
py
Python
python/sbtab_validator.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/sbtab_validator.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/sbtab_validator.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python """ SBtab Validator commandline wrapper =================================== See specification for further information. """ try: from . import SBtab from . import misc from . import validatorSBtab except: import SBtab import misc import validatorSBtab import argparse cl...
33.821782
142
0.616511