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
764ebe1dba1c3d5d058b7d1c28c331f231366b28
517
py
Python
src/lcdoc/mkdocs/lp/plugs/chart/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
src/lcdoc/mkdocs/lp/plugs/chart/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
src/lcdoc/mkdocs/lp/plugs/chart/__init__.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
""" ### `lightbox` """ from lcdoc.tools import app page_assets = {'header': '//cdn.jsdelivr.net/npm/chart.js'} C = '''<div> <canvas id="%(id)s"></canvas> </div>''' S = ''' <script> %(body)s var myChart = new Chart( document.getElementById('%(id)s'), config ); </script> ''' def run(cmd, kw): if i...
14.771429
59
0.524178
76a7035368ea08f329e8aec2ef27f68a4dd3f315
307
py
Python
Algorithms/Implementation/migratory_birds.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/migratory_birds.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/migratory_birds.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import Counter def migratoryBirds(n, ar): cnt = Counter() for a in ar: cnt[a] += 1 return cnt.most_common(1)[0][0] n = int(input().strip()) ar = list(map(int, input().strip().split(' '))) result = migratoryBirds(n, ar) print(result)
19.1875
47
0.631922
4f8fbb6b61f39a4452e4e65253a5237755125d0d
535
py
Python
src/onegov/quill/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/integration.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from more.webassets import WebassetsApp class QuillApp(WebassetsApp): """ Provides quill rich editor integration :class:`onegov.core.framework.Framework` based applications. """ pass @QuillApp.webasset_path() def get_js_path(): return 'assets/js' @QuillApp.webasset_path() def get_css_path(): ...
18.448276
64
0.704673
4f9c61baa57237d9664e398637852025006f139c
656
py
Python
autojail/extract/constants_device_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/extract/constants_device_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/extract/constants_device_tree.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
IRQ_TYPE_NONE = 0x00000000 IRQ_TYPE_EDGE_RISING = 0x00000001 IRQ_TYPE_EDGE_FALLING = 0x00000002 IRQ_TYPE_EDGE_BOTH = IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING IRQ_TYPE_LEVEL_HIGH = 0x00000004 IRQ_TYPE_LEVEL_LOW = 0x00000008 IRQ_TYPE_LEVEL_MASK = IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH IRQ_TYPE_SENSE_MASK = 0x000000...
27.333333
65
0.794207
5089a871f2cfb3452c65b6466dd98d2fba028c82
490
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/90. return whether a date is a valid date.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/90. return whether a date is a valid date.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_7_Datetime_Module/90. return whether a date is a valid date.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Given the parameters day, month and year, return whether that date is a valid date. input_date = date (30, 2, 2021) Expected output = False """ def check_date(year, month, day): day_count_for_month = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] if year%4 == 0 and (year%100 != 0 or year%40...
28.823529
83
0.595918
d15098e25e271a043c41cec10297b91d3fd87588
4,146
py
Python
webapp/flask_jwt_tutorial/resources.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/flask_jwt_tutorial/resources.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
webapp/flask_jwt_tutorial/resources.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse from models import UserModel, RevokedTokenModel from flask_jwt_extended import ( create_access_token, create_refresh_token, jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt ) import pdb # provide simple and uniform access to a...
27.276316
79
0.61095
0f6e6dbfac98bb56e8fb7866f39db5605d585ae7
2,572
py
Python
rasa/shared/nlu/training_data/schemas/data_schema.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2021-01-04T23:27:04.000Z
2021-01-04T23:27:04.000Z
rasa/shared/nlu/training_data/schemas/data_schema.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
rasa/shared/nlu/training_data/schemas/data_schema.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2021-01-27T04:51:17.000Z
2021-01-27T04:51:17.000Z
from typing import Dict, Text, Any def entity_dict_schema() -> Dict[Text, Any]: """Returns: schema for defining entities in Markdown format.""" return { "type": "object", "properties": _common_entity_properties(), "required": ["entity"], } def _common_entity_properties() -> Dict[...
29.906977
87
0.429627
0f7fb6c1e1af28fcece9f260e4aed06a59da4460
350
py
Python
Language Proficiency/Python/Basic Data Types/Lists/eval_list.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Basic Data Types/Lists/eval_list.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Basic Data Types/Lists/eval_list.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == '__main__': n = int(input()) elements = [] for _ in range(n): string = input().split() cmd = string[0] args = string[1:] if cmd == "print": print(elements) else: cmd += "(" + ",".join(args) + ")" ...
19.444444
45
0.437143
0e8d78a8d77917ad1bf8454ae7e918fb5d298e7a
6,549
py
Python
reports/sep/code/old/yolo.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/sep/code/old/yolo.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/sep/code/old/yolo.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf from os import path from datetime import datetime feature_description = { 'image': tf.io.FixedLenFeature([], tf.string), } for idx in range(7): feature_description['box' + str(idx)] = tf.io.FixedLenFeature( [5], tf.int64, defa...
32.420792
90
0.615972
add941124532e7f7aa258669f041b512ab1ef4cc
729
py
Python
core/tests/test_models.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
core/tests/test_models.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
core/tests/test_models.py
attachemd/moviedb
c2e3b7bc3c1537c64834c2ee94492122dafdfcd4
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from faker import Faker from watchlist_app.tests.factories import WatchListFactory faker = Faker() class ModelTests(TestCase): def test_new_superuser(self): """Test creating a new superuser""" user = get_user_model...
26.035714
59
0.681756
70d4a2a3e0155748abe91814cfc495914175c08a
2,165
py
Python
process_photo.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
process_photo.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
process_photo.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
import cv2 import numpy as np import os from matplotlib import pyplot as plt import pandas as pd from tinydb import TinyDB, Query import shutil def add_photo(filename, description, location=None): sift = cv2.xfeatures2d.SIFT_create() image = cv2.imread(filename) image = cv2.resize(image, (0, 0), fx=0.2, f...
30.492958
90
0.581986
2ae95cad14af5717653b556e6fa63b65d72dbb8f
747
py
Python
tests/preprocess/test__with_transform.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
11
2021-04-17T18:51:45.000Z
2021-06-25T19:42:25.000Z
tests/preprocess/test__with_transform.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
3
2021-04-29T19:24:15.000Z
2021-05-21T04:30:54.000Z
tests/preprocess/test__with_transform.py
emptymalei/haferml
ba193ce1c022c89fb4e88924b7bb7a05b676929a
[ "MIT" ]
2
2021-06-10T00:55:43.000Z
2021-12-30T07:37:07.000Z
from haferml.preprocess.ingredients import attributes from haferml.preprocess.ingredients import with_transforms from loguru import logger class AGoodClass: def __init__(self): pass @attributes(rank=1) def first_good_member(self, new): return f"{new} - appended first good member" @at...
24.9
75
0.665328
2d75f29c60bae8384f4a605136c840e05956185e
214
py
Python
lang/matlang.py
hslu-students/ad-exercises
92cfef8014b6395f56768be90325aabe1ea59941
[ "Apache-2.0" ]
null
null
null
lang/matlang.py
hslu-students/ad-exercises
92cfef8014b6395f56768be90325aabe1ea59941
[ "Apache-2.0" ]
null
null
null
lang/matlang.py
hslu-students/ad-exercises
92cfef8014b6395f56768be90325aabe1ea59941
[ "Apache-2.0" ]
null
null
null
from lark import Lark def parse(): test = "1 + 1 + 2" math_grammer = open("matlang.lark", "r").read() parse = Lark(math_grammer).parse print(parse(test)) if __name__ == "__main__": parse()
15.285714
51
0.598131
87d6362ef79d55427d238568104c1e21d71236aa
758
py
Python
message/Text.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
message/Text.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
message/Text.py
francisar/wechat
8932feb4aacc6df27a472e3278780fcdd41bc47c
[ "MIT" ]
null
null
null
#coding=utf-8 from base.function import switch class Texthandler(object): __iplist = ('ldap.francis.com',) __command = '' __args = '' __result = None def __init__(self,text_msg): self.__text_msg=text_msg self.__check_command() def __check_command(self): split_temp=sel...
24.451613
47
0.57124
ea1836ffbfca9a842f6a7a5335f0351402935beb
466
py
Python
Beginner/03. Python/prefix_sum.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2021-10-06T13:55:02.000Z
2021-10-06T13:55:02.000Z
Beginner/03. Python/prefix_sum.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/prefix_sum.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
#Python code to demonstrate prefix sum algorithm. def prefix_sum(arr): pref = [0]*(len(arr)+1) #Create a prefix sum array of length (n+1) pref[0] = arr[0] #initialise its first element with that of the given array's first element for i in range(1, len(arr)): pref[i] = pref[i-1] + arr[i] #ke...
38.833333
107
0.675966
575dc82023c2b28a3fc2a1f0c1b63da887c40d3a
572
py
Python
setup.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
setup.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
setup.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-22 @author: Xsank ''' from distutils.core import setup from brick import version setup(name=version.__framework_name__, version=version.__version__, author=version.__author__, maintainer=version.__author__, maintainer_email=version.__email__, license=version.__lic...
24.869565
42
0.729021
57e5763218bb40a42f7392b7e2c5e404ae9570a0
5,850
py
Python
project/views/admin_unit.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/admin_unit.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/admin_unit.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from flask import flash, redirect, render_template, request, url_for from flask_babelex import gettext from flask_security import auth_required, current_user from sqlalchemy.exc import SQLAlchemyError from project import app, db from project.access import ( can_create_admin_unit, get_admin_unit_for_manage_or_4...
33.050847
142
0.704274
aa3f42d43a3b476558da7451e23e2fc521e87d40
3,532
py
Python
olimpiadas/competicao.py
Starkfielld/DMS
6992d25981a7523ea6842ac416b874ac84771a06
[ "MIT" ]
1
2022-03-27T03:55:57.000Z
2022-03-27T03:55:57.000Z
olimpiadas/competicao.py
Starkfielld/DMS
6992d25981a7523ea6842ac416b874ac84771a06
[ "MIT" ]
null
null
null
olimpiadas/competicao.py
Starkfielld/DMS
6992d25981a7523ea6842ac416b874ac84771a06
[ "MIT" ]
null
null
null
def competicao(competidor,campeonato): atl = competidor nome = input("Digite o nome da competição: ") local = input("Digite o local da competição: ") dia = int(input("Digite o dia da competição: ")) mes = int(input('Digite o mês da competição: ')) ano = int(input('Digite o ano da competição: ')...
38.391304
92
0.608154
a4bc6abeadd7477cf2947e0954482966d8a7be66
6,981
py
Python
tests/onegov/election_day/forms/test_election_compound_form.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/forms/test_election_compound_form.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/forms/test_election_compound_form.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.ballot import ProporzElection from onegov.election_day.forms import ElectionCompoundForm from tests.onegov.election_day.common import DummyPostData from tests.onegov.election_day.common import DummyReques...
32.774648
69
0.642601
a4c65d2736ac095036ef62be6ef23a967e8c2609
138
py
Python
Code/HelloWorld/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/HelloWorld/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/HelloWorld/main.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Task: make this program fail by change the code a bit! What kind of errors do # you find? print("Hello World")
19.714286
79
0.702899
353e7c5baccf2e94054e4ed52f9c98a05d96389d
1,630
py
Python
external/argh/helpers.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
1
2017-11-04T15:08:42.000Z
2017-11-04T15:08:42.000Z
pythonlib/argh/helpers.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2018-11-05T17:28:58.000Z
2018-11-05T18:20:00.000Z
external/argh/helpers.py
richardseifert/Hydra_pipeline
a31d782219359bae7fa82fa9b081fb72bef69fce
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright © 2010—2014 Andrey Mikhaylenko and contributors # # This file is part of Argh. # # Argh is free software under terms of the GNU Lesser # General Public License version 3 (LGPLv3) as published by the Free # Software Foundation. See the file README.rst for copying conditions. # """ Help...
30.185185
77
0.701227
52e86e4915fc38dcc880901ded996a8c0b495811
6,711
py
Python
geol/feature_extraction/pois_sequences.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
8
2018-03-09T16:44:38.000Z
2021-04-07T11:33:30.000Z
geol/feature_extraction/pois_sequences.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
4
2020-03-24T15:34:54.000Z
2021-06-01T21:54:33.000Z
geol/feature_extraction/pois_sequences.py
PyGeoL/GeoL
67a5bd2f63091e19041094c14d419055fa5ce6f0
[ "MIT" ]
1
2020-05-13T14:30:55.000Z
2020-05-13T14:30:55.000Z
""" File description """ # Authors: Gianni Barlacchi <gianni.barlacchi@gmail.com> import pandas as pd from geol.utils import constants, utils from geol.geol_logger.geol_logger import logger import pysal import geopandas as gpd from shapely.ops import nearest_points from shapely.geometry import Point from geol.geometr...
37.077348
149
0.599911
d83cd20b5b49c6de302f142ac2e23791e5d63fe9
46
py
Python
lib/python/qmk/cli/list/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
lib/python/qmk/cli/list/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/list/__init__.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
from . import keyboards from . import keymaps
15.333333
23
0.782609
0d7d7f9be4044edce40f43aba3b75b8660ea702c
2,831
py
Python
todomanager/views.py
neoinal/ToDoManager
c9832f52e021799ec2b793458a81ef34968f4688
[ "MIT" ]
null
null
null
todomanager/views.py
neoinal/ToDoManager
c9832f52e021799ec2b793458a81ef34968f4688
[ "MIT" ]
null
null
null
todomanager/views.py
neoinal/ToDoManager
c9832f52e021799ec2b793458a81ef34968f4688
[ "MIT" ]
null
null
null
from pyramid.response import Response from pyramid.session import check_csrf_token from pyramid.view import view_config from todomanager.models import Task, DBSession class TaskView(object): def __init__(self, request): self.request = request @view_config(route_name='home', renderer='templates/base....
32.54023
73
0.491346
0db7a0936730975d4aa531b1c15baa9b160774e8
2,427
py
Python
utilities/utilities.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
1
2020-06-04T13:20:45.000Z
2020-06-04T13:20:45.000Z
utilities/utilities.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
6
2020-06-03T18:45:11.000Z
2022-02-10T01:51:03.000Z
utilities/utilities.py
florianfricke/Bachelor_Thesis_Sentiment_Analyse
aa1fa95cfbc13115ee60baaf79eab0d1940998ab
[ "MIT" ]
null
null
null
""" Created by Florian Fricke. """ from os import listdir from os.path import isfile, join import html import pickle import itertools import numpy as np import matplotlib.pyplot as plt import random def get_filenames_from_directory(path): files = [f for f in listdir(path) if isfile(join(path, f))] return file...
28.892857
74
0.5822
0df0d7d39e4a25ee22691d6866fa5f969c7e6f06
648
py
Python
server.py
Flurry58/Catgalatic
b47396dd479c9d16d5bf0ea4b283b461a9d210e5
[ "MIT" ]
null
null
null
server.py
Flurry58/Catgalatic
b47396dd479c9d16d5bf0ea4b283b461a9d210e5
[ "MIT" ]
null
null
null
server.py
Flurry58/Catgalatic
b47396dd479c9d16d5bf0ea4b283b461a9d210e5
[ "MIT" ]
null
null
null
from flask import Flask, redirect, url_for, render_template from threading import Thread app = Flask(__name__) result = "" @app.route('/') def main(): return render_template('index.html') @app.route('/query-example') def query_example(): # if key doesn't exist, returns None language = request.args.get('lang...
23.142857
60
0.685185
21bfff29fb995a34d1fbf3ca39aa1a27900a2395
1,965
py
Python
src/test/tests/databases/Velodyne.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/Velodyne.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/Velodyne.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: Velodyne.py # # Tests: mesh - 3D unstructured # # Programmer: Brad Whitlock # Date: Wed Feb 10 14:51:33 PDT 2010 # # Modifications: # # ------------------------------------------------...
24.873418
78
0.598982
df14f60a81871ba01446a435ffe618ed197ab56d
102
py
Python
option/__init__.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
null
null
null
option/__init__.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
null
null
null
option/__init__.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
1
2021-04-11T07:18:55.000Z
2021-04-11T07:18:55.000Z
# Python program to backtest options strategies import math import numpy as np from . import option
14.571429
47
0.794118
33830fb03bde65892e7ed1727dde481079686dff
108
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/random_number_generator.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/random_number_generator.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/random_number_generator.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import random for i in range(100): j=random.randint(0,9) for k in range(j): print("*",end='') print('')
18
22
0.62037
1d228792e14439c71b401b7bb87e7d58c4e7ba58
879
py
Python
Algorithms/2_Implementation/45.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/45.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/45.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/organizing-containers-of-balls/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'organizingContainers' function below. # # The function is expected to return a STRING. # The function accepts 2D_INTEGER_ARRAY container as paramete...
23.131579
123
0.664391
d5245bd3ca2138ca968495d8ee4bd0c379fd83aa
502
py
Python
python/main.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
python/main.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
5
2021-08-24T11:09:54.000Z
2021-08-24T21:14:15.000Z
python/main.py
Greakz/mdh-cmake-cubevis
6c64ec0e14dcdd07e69fa1f018aa7954eeeaf173
[ "MIT" ]
null
null
null
import json from Data import Data from GenVariablesFile import VariablesFileGenerator from GenExpressionsFile import ExpressionFileGenerator from GenSimulatorFile import SimulatorFileGenerator decoder = json.JSONDecoder() cj_file = open("./configs/config_21-11-25.json", "r") config_json = decoder.decode(cj_file.read()...
26.421053
54
0.832669
636794a99bb5336e73738ff6beb4d3c58269fa5e
2,107
py
Python
writing prompts/summer-camp.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-08T17:34:24.000Z
2021-06-08T17:34:24.000Z
writing prompts/summer-camp.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
2
2021-06-23T07:58:38.000Z
2021-06-28T18:00:18.000Z
writing prompts/summer-camp.py
graylion-wa/world-anvil-generators
f9718517b95997b6dfbc9ab6370d03ab87e40601
[ "MIT" ]
1
2021-06-19T10:03:06.000Z
2021-06-19T10:03:06.000Z
import csv import json import os if __name__ == '__main__': with open('summer-camp-version.csv', 'r') as source: source_data = csv.reader(source) source_dict = dict() for item in source_data: source_dict[item[0]] = { 'name': item[1], 'link': ite...
36.327586
132
0.493118
63a648bc328fae462053eb985d83e5258950ebf4
561
py
Python
Packs/Ironscales/Scripts/IronscalesEmailFieldTrigger/IronscalesEmailFieldTrigger.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Ironscales/Scripts/IronscalesEmailFieldTrigger/IronscalesEmailFieldTrigger.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Ironscales/Scripts/IronscalesEmailFieldTrigger/IronscalesEmailFieldTrigger.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 * def main(): try: args = demisto.args() res = args.get("user").get("email") cmd_res = demisto.executeCommand(command="setIncident", args={"ironscalesresolveremailaddress": res}) return_results(cmd_res) except Excepti...
28.05
109
0.664884
f6bd06fe8b451e389c1b7c7c0a5d6a00bb61b830
4,487
py
Python
Warrior/warrior.py
MrainFly/WarIV
fc43ee7248ad3691920b66a638ff89aaaf283c53
[ "Apache-2.0" ]
null
null
null
Warrior/warrior.py
MrainFly/WarIV
fc43ee7248ad3691920b66a638ff89aaaf283c53
[ "Apache-2.0" ]
null
null
null
Warrior/warrior.py
MrainFly/WarIV
fc43ee7248ad3691920b66a638ff89aaaf283c53
[ "Apache-2.0" ]
null
null
null
dragon_ph = 0 dragon_atk = 0 renzhe_ph = 0 renzhe_atk = 0 iceman_ph = 0 iceman_atk = 0 lion_ph = 0 lion_atk = 0 wolf_ph = 0 wolf_atk = 0 def warrior_init_ph(*ph): global dragon_ph, renzhe_ph, iceman_ph, lion_ph, wolf_ph dragon_ph = ph[0] renzhe_ph = ph[1] iceman_ph = ph[2] lion_ph = ph[3] ...
21.887805
65
0.545576
61485d4dc1c8110be8c930de3430e493ce1e568c
4,796
py
Python
crm/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
crm/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
crm/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
from django.db import models from phonenumber_field.modelfields import PhoneNumberField from django.contrib.auth.models import User # Create your models here. class Mitarbeiter(models.Model): """ Eine Klasse zur Repräsentation eines Mitarbeiters ... Attributes ---------- ...
29.423313
90
0.612177
14644438045562271c2a3e31cd751f13915bd8e1
575
py
Python
lib/python/qmk/cli/pyformat.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
2
2021-04-16T23:29:01.000Z
2021-04-17T02:26:22.000Z
lib/python/qmk/cli/pyformat.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/pyformat.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Format python code according to QMK's style. """ from milc import cli import subprocess @cli.subcommand("Format python code according to QMK's style.", hidden=False if cli.config.user.developer else True) def pyformat(cli): """Format python code according to QMK's style. """ try: subprocess.ru...
31.944444
116
0.683478
14736eb811bb8186ec7c7a9f571052b01d5d852d
6,060
py
Python
cs/lambda_cs/06_graphs/projects/social/social.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/projects/social/social.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/projects/social/social.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Graphs :: Day 3 - Social network graph """ import os import random import sys sys.path.append(os.path.abspath("../graph")) from util import Stack, Queue class User: def __init__(self, name): self.name = name class SocialGraph: def __init__(self): self.last_id = 0 self.users = {...
33.480663
86
0.615017
0d374a7121781d6e14e0f1e824366d71e360d654
2,577
py
Python
tests/test_vertragskonditionen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_vertragskonditionen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_vertragskonditionen.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from decimal import Decimal from bo4e.com.vertragskonditionen import Vertragskonditionen, VertragskonditionenSchema from bo4e.com.zeitraum import Zeitraum from bo4e.enum.zeiteinheit import Zeiteinheit example_vertragskonditionen = Vertragskonditionen( beschreibung="Foobar",...
42.95
119
0.745052
e23669b0f236619c3b1e3bbf763151c79a1cf204
1,003
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/convert_timelogbatch_to_timesheet.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/convert_timelogbatch_to_timesheet.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/convert_timelogbatch_to_timesheet.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe from frappe.utils import cint from erpnext.manufacturing.doctype.work_order.work_order import add_timesheet_detail from erpnext.patches.v7_0.convert_timelog_to_timesheet import get_timelog_data def execute(): for tlb in frappe.get_all('Time Log Batch', fields=["*"], filters = [["docstatus", "<", "2"]...
38.576923
87
0.755733
1a6c734bd5e2e532883d305e5582f3001a5e8238
604
py
Python
python/coursera_python/MICHIGAN/WEB/week5/ass/ass_f1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/WEB/week5/ass/ass_f1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/WEB/week5/ass/ass_f1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
serviceurl = 'http://maps.googleapis.com/maps/api/geocode/xml?' tree = ET.fromstring(data) lst = tree.findall('comments/comment') print("count = ",len(lst)) s = 0 for item in lst: count = int(item.find('count').text) s = s + count print("Sum : ",s) while True: address = input('Enter location: ') if l...
19.483871
67
0.639073
1a6d6b662639ac707b2bbdc236ac222ba0072d8e
1,258
py
Python
projects/models/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/models/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
projects/models/operators.py
Matheus158257/projects
26a6148046533476e625a872a2950c383aa975a8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Operator model.""" from datetime import datetime from sqlalchemy import Column, DateTime, JSON, String, ForeignKey from sqlalchemy.orm import relationship from .dependencies import Dependency from ..database import Base from ..utils import to_camel_case class Operator(Base): __tablena...
38.121212
100
0.705882
46da5f3b2eb4c73278a4d7ef2053a95cf70c318d
2,114
py
Python
lbry/lbry/extras/daemon/Component.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
lbry/lbry/extras/daemon/Component.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/lbry/extras/daemon/Component.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
import asyncio import logging from lbry.conf import Config from lbry.extras.daemon.ComponentManager import ComponentManager log = logging.getLogger(__name__) class ComponentType(type): def __new__(mcs, name, bases, newattrs): klass = type.__new__(mcs, name, bases, newattrs) if name != "Component"...
27.815789
115
0.646168
64c811f55f2c96392330e95cdd9d595f1c9f1b12
8,388
py
Python
Cat/drf_project/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
Cat/drf_project/views.py
qq453388937/drf
63ef7c5f89cf8f597fd09828f8ce94ce809ce287
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from django.shortcuts import render # Create your views here. from django.views.generic.base import View from django.views.generic import ListView from .models import * # 引入当前目录运用点号 from django.http import HttpResponse, JsonResponse import json from rest_framework_jwt.authentication import ...
34.518519
102
0.67227
64daeb8167b6f37a6bb2fa3d28b13dac9012597d
369
py
Python
src/nfz_module/model/Event.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/Event.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/model/Event.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
from datetime import datetime __author__ = 'Hans-Werner Roitzsch' class Event: def __init__( self, timestamp=datetime.now(), transmitter_id, transmitter_type_id, longitude, latitude ): self.timestamp = timestamp self.transmitter_id = transmitter_id self.longitude = longitude self.latitude = lat...
18.45
42
0.761518
b3a1a0a4018d9a5a64f2b0af16e656f5e1fb2af0
2,763
py
Python
easyp2p/platforms/dofinance.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
easyp2p/platforms/dofinance.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
easyp2p/platforms/dofinance.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """ Download and parse DoFinance statement. """ from easyp2p.p2p_parser import P2PParser from easyp2p.p2p_session import P2PSession from easyp2p.platforms.base_platform import BasePlatform class DoFinance(BasePlatform): """ Contains met...
32.505882
80
0.636627
ff8e31d30f14e8089373e151718a2d6bd7cec3f7
403
py
Python
PySpider/people.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
1
2021-11-05T02:54:39.000Z
2021-11-05T02:54:39.000Z
PySpider/people.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
17
2020-07-16T23:44:52.000Z
2022-03-02T03:58:57.000Z
PySpider/people.py
RajeshJs/Learning
0e72bd8641d916d214f09dd68b5d11d837eacc00
[ "MIT" ]
1
2021-11-22T04:42:18.000Z
2021-11-22T04:42:18.000Z
class People: ''' People 基类 ''' # 实例属性 name = '' age = 0 # 私有属性 __weight = 0 def __init__(self, name: str, age: int): """初始化 :param name:名字 :param age:年龄 """ self.name = name self.age = age self.__weight = 30 def s...
14.925926
51
0.424318
92b1a2ce2a5c1eaf938ffc7f4c3163f0d915cb58
3,659
py
Python
geotagger/moves.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
26
2017-03-14T01:20:12.000Z
2021-11-30T20:37:10.000Z
geotagger/geotagger/moves.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2017-06-25T22:08:04.000Z
2018-05-26T20:10:06.000Z
geotagger/moves.py
jakubroztocil/geotagger
fa79945e88facafadc29090a991abe95f57e7ad5
[ "MIT" ]
10
2017-04-18T13:18:15.000Z
2020-04-27T11:50:26.000Z
""" https://dev.moves-app.com/docs """ import logging import datetime try: from urllib.parse import urlencode except ImportError: from urllib import urlencode import requests from geotagger.utils import parse_date log = logging.getLogger(__name__) class MovesClient: AUTH_ROOT = 'https://api.moves-app...
28.585938
79
0.60235
a6155cfd69fed1c9cbef3915d41b5f0656a927a6
4,541
py
Python
bot/constants.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/constants.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/constants.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
import re from os import getenv import yaml env_regex = re.compile(r"\${(\w+)}") def env_var_constructor(loader, node): value = loader.construct_scalar(node) key = str(value) key = env_regex.search(key) return getenv(key.group(1)) yaml.SafeLoader.add_constructor("!ENV", env_var_constructor) yaml....
24.026455
104
0.599648
a653a731be78cdde4d0f86764e8c41009f4df47c
1,305
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_shell.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_shell.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_shell.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import test_fasta import test_fastq import os import subprocess import screed from screed.DBConstants import fileExtension class Test_fa_shell(test_fasta.Test_fasta): """ Tests the functionality of the script 'fadbm' in creating a screed database correctly from the shell """ def setup(self): ...
32.625
63
0.642912
a6955e05f80700afe01d460afd82f980965ece31
2,092
py
Python
methods/transformers/tests/test_pipelines_translation.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/tests/test_pipelines_translation.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/tests/test_pipelines_translation.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
import unittest import pytest from transformers import pipeline from transformers.testing_utils import is_pipeline_test, require_torch, slow from .test_pipelines_common import MonoInputPipelineCommonMixin class TranslationEnToDePipelineTests(MonoInputPipelineCommonMixin, unittest.TestCase): pipeline...
38.036364
116
0.722275
5bfb4cd0e6a860c9683517cc4c301616359a399a
111
py
Python
webst.py
kenncheung/kenncheung.github.io
b1f6a133e3d3e5379dc2c27e8a1f1986716538a2
[ "MIT" ]
null
null
null
webst.py
kenncheung/kenncheung.github.io
b1f6a133e3d3e5379dc2c27e8a1f1986716538a2
[ "MIT" ]
1
2018-11-19T09:33:33.000Z
2018-11-19T09:33:42.000Z
webst.py
kenncheung/kenncheung.github.io
b1f6a133e3d3e5379dc2c27e8a1f1986716538a2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 print("some stupid text to fool you") print("some more") print("\n") print() print("what")
13.875
37
0.666667
f3480900e13e21a1c4feeee2aedd86768929945e
171
py
Python
scripts/Hello World.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/Hello World.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/Hello World.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
#Lang Python2 #env Interactive as well as script #aut Anshu Musaddi #github https://github.com/anshucollege print "Hello World" print "Kevin was here to Say Hello World!"
24.428571
42
0.777778
34098f2de43e66d3857fe0cae1bc76118bfcd442
775
py
Python
listings/chapter09/pipe.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter09/pipe.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter09/pipe.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
import os, sys reader, writer = os.pipe() pid = os.fork() if pid == 0: # Child schreibt nur; lesende Seite schließen os.close(reader) # Schreibende Seite tatsächlich zum Schreiben öffnen writer = os.fdopen(writer, 'w') for i in range(1, 101): print(f" Child ist bei: {i}") writer...
27.678571
60
0.602581
347e298793850862613e02797613a98b2b9c1cda
551
py
Python
configs/celeba_no_pretraining.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
1
2020-08-28T05:06:36.000Z
2020-08-28T05:06:36.000Z
configs/celeba_no_pretraining.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
configs/celeba_no_pretraining.py
AmanDaVinci/DiSENN
ca84a8d646ad8e5e3675ffd19165c20933b81ef7
[ "MIT" ]
null
null
null
from .master_config import CONFIG config = { "exp_name": 'celeba_no_pretraining', "epochs": 1, "data": 'celeba', "target": 'Male', "conceptizer": 'VaeConceptizer', "num_concepts": 10, "beta": 4, "parameterizer": 'ConvParameterizer', "num_classes": 2, "robustness_reg": 1e-4, ...
23.956522
48
0.627949
1ba6fb69c933222e995a0992e0811de9a12de939
1,475
py
Python
main.py
TheBlackApple/advents-pi
ec71e8c433b8a93566446219a78e42741bae37b9
[ "CC0-1.0" ]
null
null
null
main.py
TheBlackApple/advents-pi
ec71e8c433b8a93566446219a78e42741bae37b9
[ "CC0-1.0" ]
1
2021-11-19T15:12:00.000Z
2021-11-19T15:12:00.000Z
main.py
TheBlackApple/advents-pi
ec71e8c433b8a93566446219a78e42741bae37b9
[ "CC0-1.0" ]
8
2021-11-19T14:26:43.000Z
2021-12-03T13:05:46.000Z
"""Advent pi main script.""" import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) # pin for sensor MOVEMENT_PIN = 24 RELAIS_PIN = 15 # configure pin as input pin GPIO.setup(MOVEMENT_PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP) # configure pin as input pin to be sure relais will not react GPIO.setup(RELAIS_PIN, GPIO...
24.583333
75
0.621017
948137a8003aeea04d62373470f86edca89d3338
572
py
Python
tarefas-poo/lista-01/calculos/view/paineis/painel_media3.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_media3.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_media3.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício calculos # -------------------------- # Classe responsável por descobrir a média de 3 números inteiros. from view.paineis.painel_abstrato import PainelAbstrato from model.calculos import media_de_tres_numeros class PainelMedia3(PainelAbstrato): ...
31.777778
67
0.622378
9483a86fc63b41bd3a722b69e480dd82101bfa1b
6,681
py
Python
research/hpc/pfnn/src/pfnnmodel.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pfnn/src/pfnnmodel.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pfnn/src/pfnnmodel.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...
39.767857
112
0.59093
84a628d51bd322e47139ce36cc64e4dbe2892e3d
7,002
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/gcp/test_auth.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/gcp/test_auth.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/module_utils/gcp/test_auth.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # (c) 2016, Tom Melendez (@supertom) <tom@supertom.com> # # 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 ...
40.709302
149
0.652813
1706a618759edf60f68a0d16679f2fbddcbb9a44
1,163
py
Python
django_project/apps/news/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
django_project/apps/news/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
django_project/apps/news/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.db import models class NewsCategory(models.Model): name = models.CharField(max_length=100) # Create your models here. class News(models.Model): title = models.CharField(max_length=200) desc = models.CharField(max_length=200) thumbnail = models.URLField() content = models.TextField() ...
31.432432
85
0.716251
8e3ddcc3514999047b0be4d165e792635c55fb2d
8,100
py
Python
src/ztc/check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/check.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python # pylint: disable=W0221,W0702,W0201 """ ZTCCheck class - wrapper for ztc checks provides logging, output formatting and error handling abilities This file is part of ZTC Copyright (c) 2011 Denis Seleznyov [https://bitbucket.org/xy2/] Copyright (c) 2011-2012 Vladimir Rusinov <vladimir@greenmice.i...
36
79
0.588642
7849716f0b263eefd1ca60083e3c76d55def7158
349
py
Python
slugify.py
datamade/abstention
21dbda8fee34adc0dd4ab5fb663974b810ca0359
[ "MIT" ]
null
null
null
slugify.py
datamade/abstention
21dbda8fee34adc0dd4ab5fb663974b810ca0359
[ "MIT" ]
null
null
null
slugify.py
datamade/abstention
21dbda8fee34adc0dd4ab5fb663974b810ca0359
[ "MIT" ]
null
null
null
from django.utils.text import slugify import sys import csv reader = csv.DictReader(sys.stdin) writer = csv.DictWriter(sys.stdout, reader.fieldnames + ['url']) writer.writeheader() for row in reader : row['url'] = 'https://nyc.councilmatic.org/legislation/' + slugify(row['identifier']) writer.writerow(row) ...
24.928571
89
0.664756
ecae1a61b49aaf54be39ecc1cd04fc6866f06531
6,423
py
Python
Hackathons_19_20/Brainwaves 2019/complaint status tracking/tag_nnnn_rec_dl.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/tag_nnnn_rec_dl.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/tag_nnnn_rec_dl.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 6 12:10:29 2019 @author: avi """ import keras import numpy as np from keras.preprocessing.text import Tokenizer import numpy as np import pandas as pd from keras.models import Sequential from keras.layers import Dense from keras.preprocessing.sequence imp...
29.736111
131
0.686128
1737f8283757337771f400eb63e8518ee21da343
2,184
py
Python
opencv_tutorial/opencv_python_tutorials/Core_Operations/arithmetic_operations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Core_Operations/arithmetic_operations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Core_Operations/arithmetic_operations.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 27 18:50:57 2019 @author: jone """ #%% Image Addition import cv2 img1 = cv2.imread('img/flower1.jpg') img2 = cv2.imread('img/flower2.jpg') cv2.imshow('img', img1) cv2.waitKey(0) cv2.imshow('img', img2) cv2.waitKey(0) # cv2.add() - Saturation 연산 img = cv2.add(img1, img2...
21.411765
77
0.694597
bd6b7a7ee6ec7ca1ae07dd10f8e27cb42a92d4fd
487
py
Python
visitor_counter/application.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
visitor_counter/application.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
visitor_counter/application.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate db = SQLAlchemy() def create_app(**config_overrides): app = Flask(__name__) # Load config app.config.from_pyfile('settings.py') # apply overrides for tests app.config.update(config_overrides) ...
20.291667
41
0.726899
da8673da637c36fc9e3e4d94fa1028464e1229cd
21,567
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/prt/results_mpl.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/plugins/prt/results_mpl.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/plugins/prt/results_mpl.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 ...
47.296053
167
0.547828
00b705dd1963a80cfd0f1893f50b2763dec8aa42
6,411
py
Python
GPS-location-master/GPS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
GPS-location-master/GPS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
GPS-location-master/GPS.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import time import json import requests import subprocess as subp R = '\033[1;31m' # red G = '\033[1;32m' # green C = '\033[36m' # cyan W = '\033[0m' # white swdstring = os.path.realpath(__file__) swdlist = [i f...
30.098592
154
0.508657
00d5742254e8551c1985b0458d5c60ef6f7538b3
448
py
Python
src/visitpy/visit_utils/src/qplot/__init__.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_utils/src/qplot/__init__.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_utils/src/qplot/__init__.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: __init__.py author: Cyrus Harrison <cyrush@llnl.gov> description: Init file for '...
29.866667
73
0.745536
97553e699d88c309c1f09fad10e3cb1544226217
3,691
py
Python
frappe-bench/apps/erpnext/erpnext/manufacturing/report/work_order_stock_report/work_order_stock_report.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/manufacturing/report/work_order_stock_report/work_order_stock_report.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/manufacturing/report/work_order_stock_report/work_order_stock_report.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Velometro Mobility Inc and contributors # For license information, please see license.txt from __future__ import unicode_literals from frappe.utils import cint import frappe def execute(filters=None): wo_list = get_work_orders() data = get_item_list(wo_list, filters) columns = get_columns() ...
24.606667
93
0.637226
a9eb7aaade00decf5e3948d44c29e66e86befe07
748
py
Python
python/avlesingbkk.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/avlesingbkk.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/avlesingbkk.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import sys,requests """Small script that takes two arguments <consumptionMeterId> and <consumptionReading> and posts to BKK, a norwegian power company""" if len(sys.argv) < 3: sys.exit('Arguments required <consumptionMeterId> and <consumptionReading>') if len(sys.argv[1]) != 8: sys.exit('<consumptionMeterId> m...
53.428571
151
0.72861
416a53e74ac5c93029ec07c956eed3d72b282501
3,847
py
Python
nimmAuf.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
nimmAuf.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
nimmAuf.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
from pypylon import pylon from datetime import datetime import cv2 import os import smbus2 import time druckwert = 0 i = 0 beginn = 0 FAKTOR = 40.96 directoryname = '' zeitoffset = 0 class ImageHandler(pylon.ImageEventHandler): """ Event Handler: immer wenn ein Bild "ankommt", wird Funktion OnImageGrabbed au...
33.745614
136
0.68131
4194ea1ea3f7c9d0dd7ce45ba4160c1c83336c35
183
py
Python
Online-Judges/CodingBat/Python/Warmup-01/02-monkey_trouble.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/Warmup-01/02-monkey_trouble.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/Warmup-01/02-monkey_trouble.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def monkey_trouble(a_smile, b_smile): if a_smile == True and b_smile == True: return True elif a_smile == False and b_smile == False: return True else: return False
22.875
45
0.677596
2e2d034ba438408673e8a672c78834169e66dbad
1,960
py
Python
cs/lambda_cs/06_graphs/notes/islands/islands_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/notes/islands/islands_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/notes/islands/islands_brian.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
class Stack(): def __init__(self): self.stack = [] def push(self, value): self.stack.append(value) def pop(self): if self.size() > 0: return self.stack.pop() else: return None def size(self): return len(self.stack) def get_neighbors(x, y,...
31.612903
329
0.47602
2e434de4d102d7d4e4280c4735c3ca9c53591af4
4,205
py
Python
vorabutil.py
MStrecke/vorabpauschale
20ca6a9eba6b224477478257b900b20361ad5134
[ "MIT" ]
null
null
null
vorabutil.py
MStrecke/vorabpauschale
20ca6a9eba6b224477478257b900b20361ad5134
[ "MIT" ]
null
null
null
vorabutil.py
MStrecke/vorabpauschale
20ca6a9eba6b224477478257b900b20361ad5134
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ABRECHNUNGSJAHR = 'abrechnungsjahr' KAUFDATUM = 'kaufdatum' KAUFKURS = 'kaufkurs' VERKAUFSDATUM = 'verkaufsdatum' VERKAUFSKURS = 'verkaufskurs' ANZAHL = 'anzahl' FREISTELLUNGSSATZ = 'freistellungssatz' KURS_JAHRESANFANG = 'kurs_jahresanfang' KURS_JAHRESENDE = 'kurs_jahres...
35.635593
104
0.682996
2e815710722fc264df479925c174b0983191d628
723
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_1/set_delivery_date_in_so_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_1/set_delivery_date_in_so_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_1/set_delivery_date_in_so_item.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doctype("Sales Order") frappe.reload_doctype("Sales Order Item") if "final_delivery_date" in frappe.db.get_table_columns("Sales Order"): frappe.db.sql(""" update `tabSales Order` set delivery_date = final_delivery_date where (delivery_date is null or delivery_d...
34.428571
78
0.724758
d872a48dfa0afbc994e4734027d7da82c375940a
35
py
Python
packages/watchmen-cli/src/watchmen_cli/service/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
3
2022-03-05T13:33:14.000Z
2022-03-19T09:13:58.000Z
packages/watchmen-cli/src/watchmen_cli/service/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-cli/src/watchmen_cli/service/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
1
2022-03-05T13:33:38.000Z
2022-03-05T13:33:38.000Z
from .deployment import Deployment
17.5
34
0.857143
d8cc1d518d9b1d54f72a6cd5deb0bbaf76de7b69
886
py
Python
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_Image.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_Image.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-imaging/patches/patch-PIL_Image.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-PIL_Image.py,v 1.1 2014/05/15 06:23:06 spz Exp $ patch for CVE-2014-1932 and CVE-2014-1933 taken from https://github.com/python-imaging/Pillow/commit/4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7 --- PIL/Image.py.orig 2009-11-15 15:51:25.000000000 +0000 +++ PIL/Image.py @@ -482,14 +482,17 @@ class Image: ...
30.551724
88
0.565463
d8ee24c235df14b1e5eb83ee15b67bbf44dd9a47
1,290
py
Python
PMIa/2014/KUCHERYAVENKO_A_I/task_7_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_7_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2014/KUCHERYAVENKO_A_I/task_7_38.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 7. Вариант 38. #Создайте игру, в которой компьютер загадывает имя одной из #девяти муз в древнегреческой мифологии, а игрок должен его угадать. # Kucheryavenko A. I. # 14.04.2016 import random print("Программа случайным образом загадывает имя одной из девяти муз в древнегреческой мифологии, а игрок должен е...
23.035714
195
0.607752
515f9aaded4f59c13b31cfba48efe37d15a64406
750
py
Python
Packs/AbuseDB/Scripts/AbuseIPDBPopulateIndicators/AbuseIPDBPopulateIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AbuseDB/Scripts/AbuseIPDBPopulateIndicators/AbuseIPDBPopulateIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AbuseDB/Scripts/AbuseIPDBPopulateIndicators/AbuseIPDBPopulateIndicators.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 BLACKLISTED = "Bad" res = demisto.executeCommand("abuseipdb-get-blacklist", { "days": demisto.args().get("days"), "limit": demisto.args().get("limit"), "confidence": demisto.args().get("confidence") }) ips = res[0][...
27.777778
69
0.656
5162a1df79ac9beb3fb084003be7a1ba3c63156c
5,188
py
Python
roben-main/roben.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
roben-main/roben.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
roben-main/roben.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python3 import requests from sys import argv, exit from bs4 import BeautifulSoup import argparse import validators script, url = argv #variables area __author__ = "@nickvourd" __version__ = "1.0.2" __license__ = "GPLv3" __team__ = "@twelvesec" __thanks__ = [ '@maldevel', 'servo' ] bannerL = "========[...
30.880952
192
0.538165
5a96a834ba834d6031d59237a9c47c13cc0f88c9
281
py
Python
backend/apps/iamstudent/migrations/0005_merge_20200330_0221.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/iamstudent/migrations/0005_merge_20200330_0221.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/iamstudent/migrations/0005_merge_20200330_0221.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-30 02:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('iamstudent', '0004_merge_20200330_0124'), ('iamstudent', '0004_merge_20200330_0152'), ] operations = [ ]
18.733333
51
0.658363
5ca70f93cfdd01d0eeb4643d95deed2ca3ac3d4b
290
py
Python
Talentbox.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
Talentbox.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
Talentbox.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 19 18:14:28 2017 @author: Lennart """ class Talentbox(object): def __init__(self): self.na = '' self.pw = 0 self.vo = '' self.re = '' self.wd = '' self.ko = '' self.pc = -1
17.058824
35
0.444828
5cc9006756744b43d295591411944594d4dad94b
1,130
py
Python
Python/EstruturaSequencial/Exercicios/Exercicio15.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio15.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio15.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Faça um Programa que pergunte quanto você ganha por hora e o número de horas trabalhadas no mês. # Calcule e mostre o total do seu salário no referido mês. # sabendo-se que são descontados 11% para o Imposto de Renda, 8% para o INSS e 5% para o sindicato # faça um programa que nos dê: #salário bruto. #quanto pagou a...
33.235294
98
0.69823
5cd3a21b4858f316d8b59ed4030b486a2f5a26d8
412
py
Python
Sketche/test2018.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/test2018.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/test2018.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
import p5 def setup(): p5.size(640, 360) p5.no_stroke() p5.background(204) def draw(): if mouse_is_pressed: p5.fill(p5.random_uniform(255), p5.random_uniform(127), p5.random_uniform(51), 127) else: p5.fill(255, 15) circle_size = p5.random_uniform(low=10, high=80) p5.circl...
19.619048
91
0.652913
8f07988ff8db59808015278b4ee6d330e835c089
162
py
Python
examples/00 echo/Echo.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2020-01-16T08:40:00.000Z
2020-01-16T08:40:00.000Z
examples/00 echo/Echo.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
null
null
null
examples/00 echo/Echo.py
Killerhaschen/marvin-telegram-bot
c65e890a00450ed6ed4312d93e259db0c080ef6d
[ "MIT" ]
1
2019-10-16T08:11:51.000Z
2019-10-16T08:11:51.000Z
from samt import Bot, Context bot = Bot() @bot.default_answer def echo(): return Context.get('message').text if __name__ == "__main__": bot.listen()
12.461538
38
0.666667
8f41ecfa5193c317456c7c17dee3c59e9b79a5fb
505
py
Python
deep-learning-from-scratch/ch04/cross_entropy_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
deep-learning-from-scratch/ch04/cross_entropy_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
deep-learning-from-scratch/ch04/cross_entropy_error.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import numpy as np def cross_entropy_error(y, t): delta = 1e-7 return -np.sum(t * np.log(y + delta)) if __name__ == "__main__": t = [0, 0, 1, 0, 0, 0, 0, 0, 0, 0] y = [0.1, 0.05, 0.6, 0.0, 0.05, 0.1, 0.0, 0.1, 0.0, 0.0] r1 = cross_entropy_error(np.array(y), np.array(t)) print(f'r1:{r1}') # ...
29.705882
60
0.544554
74f6e382bc4ec9426e999056697f748b13da7e23
2,870
py
Python
digits.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
1
2021-05-03T09:31:12.000Z
2021-05-03T09:31:12.000Z
digits.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
digits.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
import sys import PIL import numpy as np from PIL import Image from sklearn.datasets import load_digits from annb.layers import * from annb.actfunc import * from annb.optimizer import * from annb.n_manager import NManager # Der Datensatz digits = load_digits() def show_img(img: [[float, ], ], scaling: int = 10) -...
35.875
116
0.645296
7af6a4d645b5048621cdb8c156a2ddca751adb22
186
py
Python
python/deep_learning/exp/banner1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/deep_learning/exp/banner1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/deep_learning/exp/banner1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class c: a = '\033[95m' b = '\033[94m' c = '\033[92m' d = '\033[93m' e = '\033[91m' f = '\033[0m' g = '\033[1m' h = '\033[4m' print c.a + "a" + c.a
10.941176
21
0.370968
bb21ad4f67812f8260525bd191485daf4b40e50c
177
py
Python
pacman-termux/test/pacman/tests/pacman005.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/pacman005.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/pacman005.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Test invalid combination of command line options (-Qy)" p = pmpkg("foobar") self.addpkg2db("local", p) self.args = "-Qy" self.addrule("PACMAN_RETCODE=1")
19.666667
75
0.711864
bb3713870423cc5b23a6773ce8b0116417aefa82
35,094
py
Python
rbac/server/api/users.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/server/api/users.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/server/api/users.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
32.921201
117
0.639027
249e6b7ecd66973c9bb054792c212e1b3dc4b207
28
py
Python
Modulos/Quimica/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Modulos/Quimica/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
Modulos/Quimica/__init__.py
Jonatan966/SODA
046d8c1e7b9bac3a555526c9fe2f365c2b338aca
[ "MIT" ]
null
null
null
from .Squi_Analise import *
14
27
0.785714
7027f96d2691319d3e0b617a481395bf4c7a6ec0
894
py
Python
python/DeepLearning/public/generate_data.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/DeepLearning/public/generate_data.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/DeepLearning/public/generate_data.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import math import random # 获得正常数据(Y的非负概率基本为0.5) # num = 需要的样本数量 # X_shape = X的特征数 def get_normal_data(num, X_shape=5): X = [] for index in range(X_shape): X.append([]) Y = [] i = 0 for i in range(num): temp = 0 for index in range(X_shape): elem = random.randint...
19.866667
54
0.514541
70612c21485925c1f6c8933378e4dc8ade402e78
843
py
Python
migrations/versions/b1c05324cc13_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/b1c05324cc13_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/b1c05324cc13_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: b1c05324cc13 Revises: cce1284874fa Create Date: 2020-07-26 16:08:39.066127 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "b1c05324cc13" down_revision = "cce1284874fa" branch_lab...
25.545455
69
0.716489
5c4a81d01a1060bc60ebc5a9887197c70cf9d8fa
5,565
py
Python
flows/human_analyzers/hand/rhd/res50_rhd3d_256x256.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
flows/human_analyzers/hand/rhd/res50_rhd3d_256x256.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
flows/human_analyzers/hand/rhd/res50_rhd3d_256x256.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
_base_ = ['../../_base_/datasets/rhd2d.py'] log_level = 'INFO' load_from = None resume_from = None dist_params = dict(backend='nccl') workflow = [('train', 1)] checkpoint_config = dict(interval=50) evaluation = dict( interval=50, metric=['MRRPE', 'MPJPE', 'Handedness_acc'], save_best='MPJPE_all') optimizer ...
30.244565
108
0.598742
309ae153aa4cdcf8c6002bbb04e96d658eeebc10
1,670
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/01_dictionarys.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/01_dictionarys.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/01_dictionarys.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Verwenden und Ausgabe von Dictionarys mycat={'size' : 'normal', 'color' : 'schwarzes', 'eyes' : 'grün'} mycat2={'size' : 'normal', 'eyes' : 'grün', 'color' : 'schwarzes'} print('Meine Katze ist', mycat['size'], 'gross hat', mycat['color'], 'Fell und ihre Augen sind', mycat['eyes'] + '.') if mycat == mycat2: pr...
28.305085
133
0.639521
eb605f833f220863caafebd147b7b09aa2cd0f1c
542
py
Python
scripts/python_helpers.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/python_helpers.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/python_helpers.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
def open_utf8(fpath, flags): import sys if sys.version_info[0] < 3: return open(fpath, flags) else: return open(fpath, flags, encoding="utf8") def normalize_path(path): import os def normalize(p): return os.path.sep.join(p.split('/')) if isinstance(path, list):...
23.565217
69
0.597786
c61c842b9ce55d8659f6b48e9fc325df705fc72f
1,812
py
Python
SECCON/2020/Quals/pincette/src/server/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
3
2020-11-02T06:53:39.000Z
2021-12-10T00:59:01.000Z
sandbox/pincette/build/pincette/src/server/server.py
SECCON/SECCON2020_online_CTF
dd639d140ad61ea0fbfadb7827157ca53f7b88b2
[ "Apache-2.0" ]
null
null
null
sandbox/pincette/build/pincette/src/server/server.py
SECCON/SECCON2020_online_CTF
dd639d140ad61ea0fbfadb7827157ca53f7b88b2
[ "Apache-2.0" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import subprocess import tempfile import sys import shutil import base64 import os import pwd import grp import signal ORIGINAL_LIBC = '/lib/x86_64-linux-musl/libc.so' PIN_PATH = '/opt/pin/pin' PINCETTE_DIR = '/opt/pincette' DIRNAME_PREFIX = 'lib_' IBT_PATH = '/opt/pincette/ibt.so' def drop_pri...
31.789474
98
0.646799
2463d5edf8516ce31aef09900f578c2a7ec95269
1,016
py
Python
src/main/java/ch/hslu/AD/SW11/Wordproblem/regex_7.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
2
2018-02-24T08:13:32.000Z
2019-02-19T11:59:41.000Z
src/main/java/ch/hslu/AD/SW11/Wordproblem/regex_7.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
null
null
null
src/main/java/ch/hslu/AD/SW11/Wordproblem/regex_7.py
hslu-students/AD-Exercise
d39836e703dadfba61016f0ab5a3991ae250ae15
[ "MIT" ]
1
2017-05-06T08:48:38.000Z
2017-05-06T08:48:38.000Z
""" Parse words according to: Alle Wörter von L beginnen mit einer einzelnen Null. Anschliessend können Einer und Nullen abwechselnd folgen. Eine Null steht immer alleine; Einer stehen immer in einer Gruppe, deren Anzahl Einer ungerade ist. Am Ende steht immer eine einzelne Null. """ import re import...
19.921569
76
0.607283
0343599aa77f8d764551e470a6611c90aec020ad
5,893
py
Python
tablesreader.py
RefugioRyhope/alonerpg
83ac06fcca825d85c18a57ae2f5c039388dc95d2
[ "CC0-1.0" ]
2
2021-02-19T10:20:50.000Z
2021-02-19T10:20:55.000Z
tablesreader.py
RefugioRyhope/alonerpg
83ac06fcca825d85c18a57ae2f5c039388dc95d2
[ "CC0-1.0" ]
null
null
null
tablesreader.py
RefugioRyhope/alonerpg
83ac06fcca825d85c18a57ae2f5c039388dc95d2
[ "CC0-1.0" ]
null
null
null
#! python # -*- coding: utf-8 -*- import random import re import os from dice import roll, DiceException import sys import inspect tables_path = "Tablas" class Response: def __init__(self, message="", data=None): self.message = message self.data = data class Table: def __init__(self, index, s...
31.179894
272
0.644663
069deac72f7dfbe7b4e0c3c55911845432aa2c56
1,955
py
Python
Uebung2/Uebung2_Aufgabe4_1_alteversion.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung2/Uebung2_Aufgabe4_1_alteversion.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung2/Uebung2_Aufgabe4_1_alteversion.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
import math #gesucht alle Primzahlpaare zwischen 10101 und 10901 #Array aller Primzahlen (hier werden neue Primzahlen abgespeichert) initialsiert mit 2 primzahlen = [2] #Array aller Primzahlpaare primzahlpaare = [] # überrüfen welche zahlen primzahlen sind durch teilen der zahlen 2 bis p durch alle primzahlen # im ...
29.179104
95
0.684399
2305c4c6a9590cf7e76f63e3f531c90b0af7265c
434
py
Python
Crashkurs Python/14_Conditional Operator.py
slogslog/Kurzgeschichten-in-CSharp
3918c4174220e558cdeeada0edac941811418b93
[ "Unlicense" ]
2
2019-03-15T20:48:34.000Z
2019-04-22T15:24:09.000Z
Crashkurs Python/14_Conditional Operator.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/14_Conditional Operator.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# Console.Write("Gib eine Zahl ein: "); # double number = double.Parse(Console.ReadLine()); # # string output = number > 0 // Bedingter Operator ?: # ? "Die Zahl ist positiv." # : "Die Zahl ist 0 oder negativ"; # # Console.WriteLine(output); number = float(input("Gib eine Zahl ein: ")) output = "Die Zahl ist ...
27.125
53
0.642857