hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | 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 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | 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 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf639a181719d10dfc36d41a7287863edc74aed4 | 418 | py | Python | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | 5 | 2018-03-28T09:14:55.000Z | 2018-04-02T11:54:33.000Z | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | plugin/python/libs/runtime/launcher.py | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | import sys
from subprocess import Popen, PIPE, STDOUT, TimeoutExpired
if __name__ == '__main__':
proc = Popen(sys.argv[1:], stdout=PIPE, stderr=STDOUT)
while True:
try:
for line in iter(proc.stdout.readline, b''):
print(line.decode(sys.stdout.encoding or 'utf-8').rstrip())
... | 29.857143 | 75 | 0.593301 |
bf642152676e936f1e33bce340262b6207d887ce | 746 | py | Python | manage.py | stephen22otieno/oneMinutePitch | 485e5a94b64b87c0967668f7204cd3c702a189e6 | [
"MIT"
] | null | null | null | manage.py | stephen22otieno/oneMinutePitch | 485e5a94b64b87c0967668f7204cd3c702a189e6 | [
"MIT"
] | null | null | null | manage.py | stephen22otieno/oneMinutePitch | 485e5a94b64b87c0967668f7204cd3c702a189e6 | [
"MIT"
] | null | null | null | from flask_script import Manager,Server
from app import create_app,db
from app.models import User,Category,Peptalk,Comments
from flask_migrate import Migrate, MigrateCommand
app = create_app('development')
manager =Manager(app)
migrate = Migrate(app,db)
manager.add_command('server',Server)
manager.add_command('db', ... | 25.724138 | 113 | 0.737265 |
bf645d7debf666b250cc28d7fe102ce03898024c | 2,764 | py | Python | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | 2 | 2019-04-01T20:43:11.000Z | 2019-04-02T10:19:18.000Z | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | null | null | null | winograd.py | yerich/WinoCaptcha | 5abd6335e8fda1d2cf8d2d4c9c3f2324def19275 | [
"Unlicense",
"MIT"
] | null | null | null | import random
import re
from collections import Counter
from operator import itemgetter
if __name__ == '__main__':
w = Winograd("winograd.txt")
w.generate()
print w.question
print w.answer
| 35.435897 | 125 | 0.628075 |
bf654202b335a3ba2dfa9de6adedf93c5fc38356 | 1,668 | py | Python | sitecheck.py | ghostleyjim/DiscordCoronaBotNL | 8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3 | [
"MIT"
] | null | null | null | sitecheck.py | ghostleyjim/DiscordCoronaBotNL | 8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3 | [
"MIT"
] | null | null | null | sitecheck.py | ghostleyjim/DiscordCoronaBotNL | 8ac1e68abcf33d35a473c2b047ddbd5dcc840aa3 | [
"MIT"
] | null | null | null | #testfile to scrape the RIVM website all is copied to bot
import requests
from bs4 import BeautifulSoup
import csv
import time
import ntplib
date_format = "%A %d %B %Y"
f = open('updatetime.txt', 'r')
old_time = f.readline()
old_time = old_time.rstrip('\n')
f.close()
with open('updatetime.txt', "r+")... | 29.263158 | 96 | 0.60012 |
bf65b6b01d6ff04b856a4ec4aff1e18a2ea3bdcb | 1,067 | py | Python | source/engine/detect/step_setup_camera.py | Borrk/DeepLearning-Engine | 54f6cdb8a76e76d9f439f8562652f545e4dbc02e | [
"MIT"
] | null | null | null | source/engine/detect/step_setup_camera.py | Borrk/DeepLearning-Engine | 54f6cdb8a76e76d9f439f8562652f545e4dbc02e | [
"MIT"
] | null | null | null | source/engine/detect/step_setup_camera.py | Borrk/DeepLearning-Engine | 54f6cdb8a76e76d9f439f8562652f545e4dbc02e | [
"MIT"
] | null | null | null | from engine.steps.IStep import IStep
from imutils.video import VideoStream
import imutils | 38.107143 | 117 | 0.63074 |
bf65f199ebe8974254f6145acc0b95d4220672c6 | 1,428 | py | Python | tota11y/middleware.py | hiisi13/django-tota11y | bf91c6a6e8a2997a6e088af41d46ef0830a4df32 | [
"MIT"
] | null | null | null | tota11y/middleware.py | hiisi13/django-tota11y | bf91c6a6e8a2997a6e088af41d46ef0830a4df32 | [
"MIT"
] | null | null | null | tota11y/middleware.py | hiisi13/django-tota11y | bf91c6a6e8a2997a6e088af41d46ef0830a4df32 | [
"MIT"
] | null | null | null | import re
from django.conf import settings
from django.utils.encoding import force_text
from django.template.loader import render_to_string
_HTML_TYPES = ('text/html', 'application/xhtml+xml')
| 38.594595 | 83 | 0.617647 |
bf6617694b418ef663952f93af37250bef039317 | 2,487 | py | Python | cilantro_audit/home_page.py | CapstoneCilantro/CilantroAuditNewFeature | 10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d | [
"MIT"
] | null | null | null | cilantro_audit/home_page.py | CapstoneCilantro/CilantroAuditNewFeature | 10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d | [
"MIT"
] | null | null | null | cilantro_audit/home_page.py | CapstoneCilantro/CilantroAuditNewFeature | 10b4548b4d6178bbbb5ba1d5fd46f5b7c51a527d | [
"MIT"
] | null | null | null | import kivy
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.popup import Popup
from kivy.uix.screenmanager import Screen
from kivy.uix.screenmanager import ScreenManager
from cilantro_audit.admin_page import AdminPage
from cilantro_audit.auditor_page import AuditorPage
from cilantro_audit.create_a... | 33.608108 | 119 | 0.772819 |
bf68c5f9f6dbda4bc4e365b63fe8c8768421ddab | 11,476 | py | Python | appengine/monorail/sitewide/userprofile.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/sitewide/userprofile.py | xswz8015/infra | f956b78ce4c39cc76acdda47601b86794ae0c1ba | [
"BSD-3-Clause"
] | 7 | 2022-02-15T01:11:37.000Z | 2022-03-02T12:46:13.000Z | appengine/monorail/sitewide/userprofile.py | NDevTK/chromium-infra | d38e088e158d81f7f2065a38aa1ea1894f735ec4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Classes for the user profile page ("my page")."""
from __future__ import print_function
from... | 42.191176 | 80 | 0.720634 |
bf69b5f1a359c8b233314f0ea6eac2fff5564fb1 | 404 | py | Python | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | 3 | 2021-05-08T13:11:41.000Z | 2021-05-14T02:43:20.000Z | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | 06 Dictionary/copyfun.py | codewithsandy/Python-Basic-Exp | 4c70ada4a042923a94301453c7bd76e704cd2989 | [
"MIT"
] | null | null | null | d2 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}}
d3 = d2
print(d2.copy())
del d3["Sandy"]
print(d2)
print("\n")
d1 = {"Sandy":"Veg", "Rugita":"Fish", "Eshwari":{"B":"maggi", "L":"Pizza", "D":"cake"}}
d4 = d1.copy() # complete copy using dot
del d4["Sandy"]
... | 22.444444 | 87 | 0.542079 |
bf6b7fa8ef56c8e91159fea3e2c469042648b18d | 12,766 | py | Python | bel/nanopub/pubmed.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 6 | 2018-01-31T21:25:40.000Z | 2020-11-18T16:43:56.000Z | bel/nanopub/pubmed.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 83 | 2018-01-03T17:31:49.000Z | 2021-12-13T19:50:17.000Z | bel/nanopub/pubmed.py | belbio/bel | 14ff8e543a679e7dfff3f38f31c0f91ffd55e4d8 | [
"Apache-2.0"
] | 2 | 2019-04-12T20:42:06.000Z | 2020-07-17T02:49:03.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Pubmed related utilities
Given PMID - collect Pubmed data and Pubtator Bioconcepts used for the BELMgr
or enhancing BEL Nanopubs
"""
# Standard Library
import asyncio
import copy
import datetime
import re
from typing import Any, Mapping, MutableMapping
# Third Party... | 29.550926 | 140 | 0.622121 |
bf6b8de0ee75da5ff25ffe6549e61e5b4e5e66f8 | 921 | py | Python | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null | objectoriented.py | rmcneal40/scripting_practice | 2d5cfbc458fdcb755b030d7d53ca43be3d07f8c2 | [
"MIT"
] | null | null | null |
import re
p1 = Ops("CyberSecurity", 2022)
print(p1.year)
print(p1.name)
p1 = Technology("A", "2022", "D", "3.0", "cyber")
p1.myfunc()
dairyProduct = {
"milk": "dairy",
"brand" : "geat value",
"lactose" : True,
"location" : "A-11"
}
floorplan = {
"bedroom": "right second floor"
"fitness": ... | 21.418605 | 110 | 0.587405 |
bf6c41df7444eeb8c502ae2cb7c1337b9779518c | 1,879 | py | Python | code/_archive/009_userCheckin.py | LadyMiss88/recommendation-engine-using-social-graph | 4ae9978b6251bffdde6793ba394dfa77a7d4a6f4 | [
"MIT"
] | null | null | null | code/_archive/009_userCheckin.py | LadyMiss88/recommendation-engine-using-social-graph | 4ae9978b6251bffdde6793ba394dfa77a7d4a6f4 | [
"MIT"
] | null | null | null | code/_archive/009_userCheckin.py | LadyMiss88/recommendation-engine-using-social-graph | 4ae9978b6251bffdde6793ba394dfa77a7d4a6f4 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import simplejson as json
import config
import pymysql
global database_conn
global database_cursor
database_conn = pymysql.connect(host = config.db_host, user = config.db_user, passwd = config.db_pass, db = config.db_database, use_unicode=True, charset="utf8")
dat... | 34.163636 | 162 | 0.60298 |
bf6c77a4579d9ca212f8e013e1dcddd3b2cbae17 | 2,255 | py | Python | pastebin_mirror/storage.py | imnotjames/pastebin_mirror | 8b90d13c7590e12942045da781a081110e7897c1 | [
"MIT"
] | 5 | 2017-10-22T21:52:47.000Z | 2020-10-24T11:09:25.000Z | pastebin_mirror/storage.py | imnotjames/pastebin_mirror | 8b90d13c7590e12942045da781a081110e7897c1 | [
"MIT"
] | 2 | 2017-07-26T21:24:47.000Z | 2018-05-06T18:05:55.000Z | pastebin_mirror/storage.py | imnotjames/pastebin-mirror | 8b90d13c7590e12942045da781a081110e7897c1 | [
"MIT"
] | 1 | 2017-07-08T00:45:59.000Z | 2017-07-08T00:45:59.000Z | import sqlite3
import logging
logger = logging.getLogger(__name__)
| 26.529412 | 88 | 0.489579 |
bf7021cd6436cdc90fdb123560bbe42e5ab0e529 | 593 | py | Python | httpolice/__init__.py | bmwiedemann/httpolice | 4da2bde3d14a24b0623ee45ae10afd192d6fa771 | [
"MIT"
] | 1 | 2020-09-19T13:50:36.000Z | 2020-09-19T13:50:36.000Z | httpolice/__init__.py | 99/httpolice | 8175020af13708801fbefc8d4f3787b11093c962 | [
"MIT"
] | null | null | null | httpolice/__init__.py | 99/httpolice | 8175020af13708801fbefc8d4f3787b11093c962 | [
"MIT"
] | null | null | null | # -*- coding: utf-8; -*-
from httpolice import helpers
from httpolice.__metadata__ import version as __version__
from httpolice.blackboard import Complaint
from httpolice.exchange import Exchange, check_exchange
from httpolice.notice import Severity
from httpolice.reports.html import html_report
from httpolice.reports... | 24.708333 | 57 | 0.753794 |
bf70319cef859564f4bb5a2c3ddf695891288229 | 75,089 | py | Python | edtslib/pgdata.py | reticenti/edts-clone | fb78ba4efb646bc86d1982dff8a83629f580d9df | [
"BSD-3-Clause"
] | null | null | null | edtslib/pgdata.py | reticenti/edts-clone | fb78ba4efb646bc86d1982dff8a83629f580d9df | [
"BSD-3-Clause"
] | null | null | null | edtslib/pgdata.py | reticenti/edts-clone | fb78ba4efb646bc86d1982dff8a83629f580d9df | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
import collections
import re
from . import sector
from . import vector3
# "Imagine the galaxy is a giant slice of Battenberg
# which for reasons beyond our ken has had small chunks
# of carrot cake pushed into it all over the place..."
# - CMDR Jackie Silver
# This does not valid... | 110.425 | 179 | 0.680286 |
bf71de2744fe5d1242aa731546dcbfd8e15f512b | 3,381 | py | Python | batch/batch/driver/resource_manager.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/driver/resource_manager.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/driver/resource_manager.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | from typing import List, Any, Tuple
import abc
import logging
from hailtop.utils import time_msecs
from .instance import Instance
from ..file_store import FileStore
from ..instance_config import InstanceConfig, QuantifiedResource
log = logging.getLogger('compute_manager')
| 28.897436 | 138 | 0.71192 |
bf722d5a372f87aff15987a7ee497c8e0a060410 | 6,570 | py | Python | lib/URLutils.py | ecartierlipn/neoveille2020 | 6dd91c39f1210dd1829b5f62637c7c6f81e14386 | [
"Apache-2.0"
] | null | null | null | lib/URLutils.py | ecartierlipn/neoveille2020 | 6dd91c39f1210dd1829b5f62637c7c6f81e14386 | [
"Apache-2.0"
] | null | null | null | lib/URLutils.py | ecartierlipn/neoveille2020 | 6dd91c39f1210dd1829b5f62637c7c6f81e14386 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
URL utils
'''
import re,justext, chardet
#import urllib2
#from urllib2 import urlopen, URLError, HTTPError, Request
from bs4 import BeautifulSoup as bs
import unicodedata
import requests, os
#import settings
import logging
log = logging.getLogger(__name__)
### utils
#p... | 36.5 | 300 | 0.633333 |
bf7319f7bbdd5e51be9c062b9af0fbc76ec7aa71 | 855 | py | Python | problems/test_0849.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | 1 | 2017-06-17T23:47:17.000Z | 2017-06-17T23:47:17.000Z | problems/test_0849.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | problems/test_0849.py | chrisxue815/leetcode_python | dec3c160d411a5c19dc8e9d96e7843f0e4c36820 | [
"Unlicense"
] | null | null | null | import unittest
from typing import List
import utils
# O(n) time. O(1) space. Iteration.
if __name__ == '__main__':
unittest.main()
| 21.923077 | 70 | 0.556725 |
bf73761720d08a914d996df2769ba78971749eee | 2,792 | py | Python | Gerador de Amostra/gerador_amostra.py | Paulognunes/Ajuste-de-Parametros-do-modelo-SIR | 99607db943e87658303eea8cb59e1c776073b3e4 | [
"MIT"
] | 1 | 2022-01-14T12:44:14.000Z | 2022-01-14T12:44:14.000Z | Gerador de Amostra/gerador_amostra.py | Paulognunes/Ajuste-de-Parametros-do-modelo-SIR | 99607db943e87658303eea8cb59e1c776073b3e4 | [
"MIT"
] | null | null | null | Gerador de Amostra/gerador_amostra.py | Paulognunes/Ajuste-de-Parametros-do-modelo-SIR | 99607db943e87658303eea8cb59e1c776073b3e4 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
gera_amostra('15/07/2021', '15/09/2021', 'confirmados.txt', 'recuperados.txt', 'obitos.txt', 'datas.txt')
| 28.20202 | 110 | 0.511819 |
bf7570cf463efe1bbbf754068fceecada315ee88 | 5,040 | py | Python | Machine_Learning/use_stocker.py | vhn0912/Finance | 39cf49d4d778d322537531cee4ce3981cc9951f9 | [
"MIT"
] | 441 | 2020-04-22T02:21:19.000Z | 2022-03-29T15:00:24.000Z | Machine_Learning/use_stocker.py | happydasch/Finance | 4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35 | [
"MIT"
] | 5 | 2020-07-06T15:19:58.000Z | 2021-07-23T18:32:29.000Z | Machine_Learning/use_stocker.py | happydasch/Finance | 4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35 | [
"MIT"
] | 111 | 2020-04-21T11:40:39.000Z | 2022-03-20T07:26:17.000Z | from stocker import Stocker
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.style
import matplotlib as mpl
from matplotlib.pylab import rcParams
rcParams['figure.figsize'] = 20, 10
from sklearn.preprocessing import MinMaxScaler
from sklearn.linear_model import LinearRegression
f... | 28 | 125 | 0.721825 |
bf763a4c8d592b78137aeb2e05f05552f4b74818 | 2,415 | py | Python | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | null | null | null | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | null | null | null | squealy/jinjasql_loader.py | zeeshankhan28/squealy | 5dfe9c5830ef74978f5defc872500fb710097408 | [
"MIT"
] | 1 | 2022-03-20T18:24:50.000Z | 2022-03-20T18:24:50.000Z | import datetime
from jinja2 import DictLoader
from jinja2 import Environment
from jinjasql import JinjaSql
from dateutil.relativedelta import relativedelta
from dateutil import rrule
from squealy.exceptions import InvalidDateRangeException
def configure_jinjasql():
"""
Configure the environment and return ji... | 34.014085 | 92 | 0.677433 |
bf77945a989d2be98cc789d1b6b02fc9f2ff8482 | 698 | py | Python | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | planet.py | PAStephenson/Solar-System-Simulation | 619a53335ca0431b6382251a226182d453777793 | [
"MIT"
] | null | null | null | from vector import Vector
| 31.727273 | 63 | 0.666189 |
bf78dd1874f5270c579ee607ac544063c7bfd4b9 | 21,782 | py | Python | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | 1 | 2021-02-11T02:50:11.000Z | 2021-02-11T02:50:11.000Z | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | 1 | 2020-06-18T04:13:53.000Z | 2020-06-20T17:34:59.000Z | assistant/bot.py | jdcarpinelli/dungeons | fb644ba30e2bbd04d019ac279e27fdedfa1b0110 | [
"MIT"
] | null | null | null | ## Dungeons and Dragons Assistant
# Discord bot to handle...
# dice rolling,
# relaying messages,
# roll tracking,
# and (maybe) eventually more!
#
# Copied and modified code from:
# https://realpython.com/how-to-make-a-discord-bot-python/
#
##
# Imports
import sys, os, time, random, datetime
import discord
from dis... | 35.533442 | 229 | 0.622441 |
bf78e11629d9199d5d649ba8cfe17400cd17fd79 | 3,217 | py | Python | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | Custom_Functions/Model_Generator.py | knownstranger03/Human_Pose_Estimation | fad4b171ffc6514918990b5f48e439ca7f5b3184 | [
"MIT"
] | null | null | null | import keras
import tensorflow
from keras.applications.vgg16 import VGG16
from keras.engine.sequential import Sequential
from keras.layers import Flatten, Dense, Dropout, BatchNormalization, InputLayer, Conv2D, MaxPool2D, Activation, Concatenate,add
from keras.models import Model
import warnings
warnings.filterwar... | 45.957143 | 128 | 0.685421 |
bf79ad59a70ac719097fc73bb371a6c0bcb6f953 | 1,719 | py | Python | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | null | null | null | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | 56 | 2021-01-19T10:06:06.000Z | 2021-09-10T15:31:47.000Z | rndt/templatetags/metadata_tags.py | pasing/geonode-rndt | 214a0d17d4b93ae22257550d209c27cad4885692 | [
"BSD-2-Clause"
] | 1 | 2022-03-20T11:18:01.000Z | 2022-03-20T11:18:01.000Z | from django import template
from django.core.validators import URLValidator
from geonode.base.models import Thesaurus, ThesaurusKeyword
from rndt.models import LayerRNDT
register = template.Library()
| 27.285714 | 72 | 0.737056 |
bf7af33b2f34f609cedf99fe7194592e05e7a33f | 3,563 | py | Python | cycada/models/MDAN.py | Luodian/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 150 | 2019-10-29T01:22:31.000Z | 2022-02-16T02:09:31.000Z | cycada/models/MDAN.py | pikachusocute/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 6 | 2020-01-05T16:56:51.000Z | 2021-10-13T03:25:05.000Z | cycada/models/MDAN.py | pikachusocute/MADAN | 7a2918da44f5203b72652bc4cba0e70057482114 | [
"MIT"
] | 23 | 2019-11-04T15:46:29.000Z | 2022-01-16T09:10:01.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
logger = logging.getLogger(__name__)
| 35.277228 | 101 | 0.727196 |
bf7cfb27c97379288c453a445e960427b967978e | 511 | py | Python | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | 1 | 2017-05-26T00:18:26.000Z | 2017-05-26T00:18:26.000Z | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | generator/templates/output/endforeach.py | grbd/GBD.Build.BlackJack | 3e8d027625b7528af3674a373fd9931e3feaaab4 | [
"Apache-2.0"
] | null | null | null | from blackjack.cmake.ScriptBase import ScriptBase
| 22.217391 | 56 | 0.587084 |
bf7f1d14fd8adbed3cf841350eb294961b1fa9c9 | 776 | py | Python | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 542 | 2021-12-17T22:34:31.000Z | 2022-03-31T14:36:23.000Z | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 291 | 2021-12-17T20:07:53.000Z | 2022-03-31T11:07:23.000Z | test/hummingbot/connector/exchange/binance/test_binance_web_utils.py | pecuniafinance/hummingbot | 2cbb19c187a429d3e6000dc938617ca2a1f9f357 | [
"Apache-2.0"
] | 220 | 2021-12-17T12:41:23.000Z | 2022-03-31T23:03:22.000Z | import unittest
import hummingbot.connector.exchange.binance.binance_constants as CONSTANTS
from hummingbot.connector.exchange.binance import binance_web_utils as web_utils
| 38.8 | 99 | 0.755155 |
bf7f857e06dbbdce55ca33b9325e2485fe2d96c5 | 3,551 | py | Python | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | unit_tests/controllers/test_main_window.py | GrzegorzNieuzyla/PasswordManager | f54ebb7f5f86449d3d1f13542402a536bcf264d7 | [
"MIT"
] | null | null | null | from PyQt6.QtWidgets import QApplication
from pytest_mock import MockerFixture
from password_manager.application_context import ApplicationContext
from password_manager.controllers.main_window import MainWindowController
from password_manager.models.record_data import RecordData
| 35.158416 | 114 | 0.727964 |
bf7fc8a8b957b2b7bbdc53ff35693ae32e07145b | 1,915 | py | Python | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 2 | 2019-05-24T20:10:16.000Z | 2020-07-11T06:06:43.000Z | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | null | null | null | stepik/python67/03_04_04.py | ornichola/learning-new | e567218d8887805e38b1361715d5e3bd51a6bcaf | [
"Unlicense"
] | 21 | 2019-03-11T20:25:05.000Z | 2022-02-28T13:53:10.000Z | #[STEPIK]
# Python https://stepik.org/67
# 03_04_04 /
'''
. , :
;__;__;___
, .
, , .
, , , :
. ';' split :
print('First;Second-1 Second-2;Third'.split(';'))
# ['First', 'Second-1 Second-2', 'Third']
Sample Input:
;85;92;78
;100;88;... | 28.58209 | 196 | 0.734726 |
bf8039d9c0032c62c24d6cc59c9dc3793dfda2b5 | 495 | py | Python | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | bot/exceptions.py | christinevandev/KevinMalone | 9bb0f0313611c59676d1ae0f8d9249420e70d436 | [
"MIT"
] | null | null | null | import logging
from discord import commands
logger = logging.getLogger(__name__)
| 22.5 | 58 | 0.688889 |
bf80a6ed202974e61e0995b343b524e3bec0665a | 1,921 | py | Python | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | baselines/PPO/src/model.py | dg10mcdos/mario-bmstew | 5b1806fc59dc88fd326a4e1de9c02284ba35f9f9 | [
"BSD-3-Clause"
] | null | null | null | """
@author: Viet Nguyen <nhviet1009@gmail.com>
"""
import torch.nn as nn
import torch.nn.functional as F
| 42.688889 | 129 | 0.5924 |
bf815a5689f21b9f61269d3af287f2332400836a | 2,423 | py | Python | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | 85 | 2020-07-24T00:04:28.000Z | 2022-02-10T10:35:15.000Z | ufdl-core-app/src/ufdl/core_app/views/mixins/_GetHardwareGenerationViewSet.py | waikato-ufdl/ufdl-backend | 776fc906c61eba6c2f2e6324758e7b8a323e30d7 | [
"Apache-2.0"
] | null | null | null | from typing import List, NoReturn
from rest_framework import routers
from rest_framework.request import Request
from rest_framework.response import Response
from ...exceptions import BadArgumentValue
from ...models.nodes import Hardware
from ...serialisers.nodes import HardwareSerialiser
from ._RoutedViewSet import R... | 35.115942 | 94 | 0.658275 |
bf821f1fba117acb6e32d7d42fd26be0ab419540 | 197 | py | Python | game_generic/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | game_generic/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | game_generic/__init__.py | Holt59/modorganizer-python_plugins | f3404b1c3d9b8f5a6aa2133b47f7fc0218c18dc9 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
# Force load of resources so that Qt can see them:
from .resources import * # noqa
from .generic_game import GenericGame
| 17.909091 | 50 | 0.700508 |
bf82e91afdcb5e0fddbe0747375ddf3b811c5754 | 10,575 | py | Python | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | 2 | 2021-03-10T13:42:12.000Z | 2021-03-10T14:29:53.000Z | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | null | null | null | edflow/util.py | rromb/edflow | 8681cadf1770ca1bc1515535768dc14cb0758b0f | [
"MIT"
] | null | null | null | """Some Utility functions, that make yur life easier but don't fit in any
better catorgory than util."""
import numpy as np
import os
import pickle
def linear_var(step, start, end, start_value, end_value, clip_min=0.0, clip_max=1.0):
r"""Linear from :math:`(a, \alpha)` to :math:`(b, \beta)`, i.e.
:math:`y = ... | 29.212707 | 85 | 0.564728 |
bf8425fbb8a6c4e485f1bc15c4ac7de770febef9 | 5,227 | py | Python | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 2,937 | 2016-02-05T14:26:54.000Z | 2022-03-31T14:53:11.000Z | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 916 | 2016-01-05T23:41:21.000Z | 2022-03-26T17:40:31.000Z | Tools/Wings3DExporter/erlang_ext.py | fegorsch/ogre | 79b0163a25164a27a0b63958467db96530a2b194 | [
"MIT"
] | 976 | 2015-12-30T13:14:27.000Z | 2022-03-31T09:21:07.000Z |
# Python module to read erlang ext (term) format
#
# written by Attila Tajti on 2003, for
#
# TODO: reads compressed data only
import os, sys, struct, zlib, cStringIO
def test():
e = erlang_ext_reader("tank1w.wings")
try:
data = e.read_element()
finally:
f = open("log.txt", "w")
f.write(e.datalog)
f.writ... | 22.242553 | 73 | 0.637842 |
bf84b8c96e2bdd65eb5bb3c0dbead6d4d0544cd5 | 2,459 | py | Python | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 19 | 2021-09-13T21:29:58.000Z | 2022-03-01T13:44:23.000Z | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 44 | 2021-09-13T15:27:46.000Z | 2022-01-18T13:13:09.000Z | src/Examples/Akihabara.Examples.OnRawIO/track.py | Amberarch/Akihabara | 22d3984cb225e199b955e6b13be90f1959978bc6 | [
"MIT"
] | 10 | 2021-09-15T16:15:46.000Z | 2022-01-21T01:14:54.000Z | #!/usr/bin/python
import argparse
import subprocess
parser = argparse.ArgumentParser(
prog='track.py',
description='Pipe a video or image into Mediapipe to track something.',
epilog='Dame da ne, dame yo, dame na no yo...')
parser.add_argument('media',
help='The media to feed into a Medapipe graph.'... | 33.22973 | 125 | 0.646198 |
bf84f72aa546b58d0a0f6e1870efb1ee915c5fc8 | 1,261 | py | Python | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 2 | 2018-02-18T15:23:18.000Z | 2020-02-10T13:40:23.000Z | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 41 | 2017-12-01T01:10:41.000Z | 2021-08-24T14:08:09.000Z | tests/test_backend.py | djeromov/django-grainy | d0820e0c5cdcb5ac6d905fa713dfaf3e9fab5627 | [
"Apache-2.0"
] | 1 | 2021-08-10T17:46:14.000Z | 2021-08-10T17:46:14.000Z | from .util import UserTestCase
from django.db import models
from grainy.const import (
PERM_READ,
PERM_UPDATE,
PERM_CREATE,
PERM_DELETE,
)
from grainy.core import (
PermissionSet,
)
from django_grainy.backends import GrainyBackend
| 28.022222 | 75 | 0.68755 |
bf85e87ae27dbc7518de916f0330cd2331da96f8 | 1,698 | py | Python | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 32 | 2016-08-27T01:31:42.000Z | 2022-03-21T08:59:28.000Z | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 3 | 2016-08-27T00:51:47.000Z | 2019-08-26T13:23:04.000Z | resources/logforms/mdtex_fiction_yml_pdf.py | exposit/pythia-oracle | 60e4e806c9ed1627f2649822ab1901d28933daac | [
"MIT"
] | 10 | 2016-08-28T14:14:41.000Z | 2021-03-18T03:24:22.000Z | #!/usr/bin/env python
#-*- coding: utf-8 -*-
##---------------------------------------------------------------------------------------
#
# Markdown
# fiction: includes only fiction blocks
# yml: uses a yaml Front Matter from config.txt
# pdf: is ready to convert to pdf (or latex) via pandoc
#
##-----------... | 31.444444 | 144 | 0.478799 |
bf8627d375cf895cf89704a8489ab629b2f6cdbb | 249 | py | Python | Credit Risk Prediction - Univ.AI/src/submission.py | mrityu-jha/ML-DL-Challenges | 5ccf1c28d2db631aae577732c9bb6f095322e99c | [
"MIT"
] | null | null | null | Credit Risk Prediction - Univ.AI/src/submission.py | mrityu-jha/ML-DL-Challenges | 5ccf1c28d2db631aae577732c9bb6f095322e99c | [
"MIT"
] | null | null | null | Credit Risk Prediction - Univ.AI/src/submission.py | mrityu-jha/ML-DL-Challenges | 5ccf1c28d2db631aae577732c9bb6f095322e99c | [
"MIT"
] | null | null | null | import urllib.parse
print( "Hello, Please refer to the below link to access my codes/notebooks being used for Credit Risk Prediction Hackathon")
s = urllib.parse.quote( 'github.com/mrityu-jha/Credit-Risk-Prediction-Univ.AI.git')
print('https://'+s)
| 49.8 | 124 | 0.771084 |
bf877aabd253c54022394c18ee4dcdeb052fe7ac | 1,919 | py | Python | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | utils/pycui.py | bboysteed/dzy | ba720fd40b16d3b85e8fc0ef347aeadaf91b2d26 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from os import name
| 24.922078 | 68 | 0.427306 |
bf88ab07873f2b729ba26df40d8be261a47e6d53 | 5,862 | py | Python | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 20 | 2015-06-05T14:02:12.000Z | 2021-11-02T22:19:18.000Z | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2015-10-15T12:58:35.000Z | 2015-10-15T12:58:35.000Z | find-cut-up-regions/find-cut-up-regions.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2021-04-08T23:50:06.000Z | 2021-04-08T23:50:06.000Z | #!/usr/bin/env python
from optparse import OptionParser
import os
import random
import sys
import PIL
from PIL import Image
try:
from tqdm import tqdm
except ImportError:
def cutup(options, image, dirname, prefix='', rotation=None):
"""Returns list of output filenames"""
if rotation is not None:
... | 31.516129 | 81 | 0.594507 |
bf88dee8af3ae2a896f732384f154013a7b47e72 | 1,925 | py | Python | articulation_tutorials/python_service_client/model_selection_client.py | tum-vision/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | 3 | 2017-03-15T16:50:05.000Z | 2021-02-28T05:27:24.000Z | articulation_tutorials/python_service_client/model_selection_client.py | AbdelrahmanElsaid/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | null | null | null | articulation_tutorials/python_service_client/model_selection_client.py | AbdelrahmanElsaid/articulation | 3bb714fcde14b8d47977bd3b3da2c2cd13ebe685 | [
"BSD-2-Clause"
] | 7 | 2015-07-14T14:47:51.000Z | 2018-04-02T16:22:23.000Z | #!/usr/bin/env python
import roslib; roslib.load_manifest('articulation_tutorials')
import rospy
import numpy
from articulation_msgs.msg import *
from articulation_msgs.srv import *
from geometry_msgs.msg import Pose, Point, Quaternion
from sensor_msgs.msg import ChannelFloat32
PRISMATIC = 0
ROTATIONAL = 1
MODELS={... | 27.112676 | 87 | 0.697143 |
bf89b25245266126dba56862b20f23c850ea62d7 | 2,397 | py | Python | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | process.py | Swathisree/d3_Food_facts | cde6c2c02b6a8e38080f8f2fbab9d39864c23cd0 | [
"OML"
] | null | null | null | import pandas as pd
import json
countries = pd.read_csv('tsv/products_countries.tsv', sep='\t')
categories = pd.read_csv('tsv/products_categories_full.tsv', sep='\t')
products = pd.read_csv('tsv/products.tsv', sep='\t')
combined = pd.merge(left = products, right = categories, on='code' )
combined = pd.merge(left=com... | 29.231707 | 122 | 0.622445 |
bf8a442f7555ff5867a989ed32bf9d07c2238f69 | 10,207 | py | Python | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | null | null | null | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | 1 | 2020-11-09T23:29:15.000Z | 2020-11-09T23:29:15.000Z | src/bot.py | jannikbusse/DSA_BOT | 87b3972235e5c7b77ca24c8ab34d6d045b8dfeac | [
"MIT"
] | null | null | null | import discord
import queue
import db
import disc_api
import glob_vars
import time, threading
import dice
import helper
import logging
import re
stats = ["mu","kl","in","ch","ff","ge", "ko", "kk"] #careful: in is int in the db!
logging.basicConfig(level=logging.INFO, filename="log.txt", filem... | 33.13961 | 146 | 0.621828 |
bf8c232211d8a9e8eb6f6025337e301b97fed78a | 12,943 | py | Python | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | acms-pass/t.py | EtoDemerzel0427/Misc-Notes | d885bdb7a5e1caa9db0b9ee70695dff1a17b3d26 | [
"MIT"
] | null | null | null | import argparse
import asyncio
import random
import signal
import sys
import time
import traceback
import yaml
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtNetwork import *
from PyQt5.QtWidgets import *
from b4 import *
b4 = B4()
class BlockView(QPushButton):... | 37.956012 | 118 | 0.565402 |
bf8cd3b23bb4289ca1b26b3b9af9020a678e5fa8 | 13,980 | py | Python | src/utils/log.py | jcyrss/hytest | f3a5e53524fcf2917c95721146eb797ffabe4c11 | [
"Apache-2.0"
] | 8 | 2021-08-08T01:11:09.000Z | 2022-03-07T07:50:08.000Z | src/utils/log.py | Vincentlz/hytest | f3a5e53524fcf2917c95721146eb797ffabe4c11 | [
"Apache-2.0"
] | null | null | null | src/utils/log.py | Vincentlz/hytest | f3a5e53524fcf2917c95721146eb797ffabe4c11 | [
"Apache-2.0"
] | 6 | 2021-09-07T05:38:24.000Z | 2022-03-22T09:52:02.000Z | _f=' case_st_lable'
_e='green'
_d='tag'
_c=' fail'
_b='folder_header'
_a='executetime'
_Z='folder_body'
_Y='%Y%m%d_%H%M%S'
_X=''
_W='log'
_V='info error-info'
_U='%Y-%m-%d %H:%M:%S'
_T='abort'
_S='fail'
_R='pass'
_Q='utf8'
_P='case_count'
_O='case_count_toberun'
_N='label'
_M='Traceback:\n'
_L='suite'
_K='case_teardown... | 80.809249 | 1,374 | 0.721388 |
bf8ee76e1f64b536bad62c4443845e7dcf14d0c8 | 5,872 | py | Python | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 19 | 2018-02-09T21:30:25.000Z | 2022-03-21T23:02:26.000Z | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 30 | 2019-04-16T02:38:24.000Z | 2022-03-19T18:42:58.000Z | blenderneuron/blender/blendernode.py | Helveg/BlenderNEURON | 7297e6aa45722f35908b707d0020b0519a6bc60d | [
"MIT"
] | 5 | 2018-07-23T16:49:59.000Z | 2022-03-02T18:48:07.000Z | import bpy
from blenderneuron.blender.blenderroot import BlenderRoot
from blenderneuron.blender.blenderrootgroup import *
from blenderneuron.commnode import CommNode
| 30.268041 | 81 | 0.56812 |
bf90f187c224578a009a7b143999adefdfe7e863 | 3,383 | py | Python | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | inventory/zero.py | fbartels/zero | 370becc20bc6b89b4453ce71af31c4e5da972372 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
import argparse
import subprocess
try:
import json
except ImportError:
import simplejson as json
# Get the inventory.
ZeroInventory() | 32.219048 | 106 | 0.516406 |
bf9140192eafe23e1e6c3ba78e5132763af92f1c | 1,579 | py | Python | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | null | null | null | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | null | null | null | userbot/plugins/pantele.py | Kirmada7/KirmadaBot | 96d72edb0c04445fa10b2a29c177ff74f371c7da | [
"MIT"
] | 1 | 2020-07-12T06:50:04.000Z | 2020-07-12T06:50:04.000Z | import asyncio
import random
import string
from asyncio import wait
from userbot.events import register
| 35.088889 | 125 | 0.527549 |
bf92e2b796afda65543afc9a1d957b84bd60a4c5 | 4,124 | py | Python | src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 207 | 2017-11-29T06:59:41.000Z | 2022-03-31T10:00:53.000Z | src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 4,061 | 2017-10-27T23:19:56.000Z | 2022-03-31T23:18:30.000Z | src/ad/azext_ad/vendored_sdks/domainservices/models/__init__.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 802 | 2017-10-11T17:36:26.000Z | 2022-03-31T22:24:32.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 37.834862 | 94 | 0.725024 |
bf92f177f7ec59a72d055c6c761cbe15cbc82589 | 1,743 | py | Python | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | 1 | 2022-03-03T21:38:06.000Z | 2022-03-03T21:38:06.000Z | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | null | null | null | bms_fsm.py | dsoto/ASI-ENNOID-dashboard | 8391b4acee770306931c3cf46fd46ec6e96eb4ba | [
"CC-BY-4.0"
] | null | null | null | import board
import busio
import struct
import time
| 37.891304 | 106 | 0.567413 |
bf94ecc0db6e188b273d33a45521f2cb0f748165 | 7,660 | py | Python | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 4 | 2018-11-06T09:54:44.000Z | 2022-01-19T20:23:50.000Z | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 1 | 2018-02-04T18:10:43.000Z | 2018-02-04T18:10:43.000Z | further/pc_algorithm.py | alan-turing-institute/pcit | d8e3b7894d1ecbfed3a3405a31276ff4e9122f67 | [
"MIT"
] | 2 | 2018-12-26T10:06:25.000Z | 2020-03-19T03:37:32.000Z | import itertools
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
from pcit.IndependenceTest import pred_indep
| 37.184466 | 112 | 0.503916 |
bf96f7be55166477d48c62a3607aa35997d0f553 | 15,204 | py | Python | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | tests/unit/controllers/v1/test_executions_rbac.py | cognifloyd/st2-open-rbac | fb3251223743e497267277fe9f5cef91f41ade34 | [
"Apache-2.0"
] | null | null | null | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | 40.43617 | 99 | 0.636938 |
bf97afb110f8b2e8ba3c9d7ed701726cf642cd46 | 2,823 | py | Python | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | train.py | erick-alv/g-hgg | 2cc0de9810ca6823ad6339cf4d1a63e265d1b5ee | [
"MIT"
] | null | null | null | import numpy as np
import time
from common import get_args, experiment_setup
from copy import deepcopy
import pickle
import tensorflow as tf
if __name__=='__main__':
# Getting arguments from command line + defaults
# Set up learning environment including, gym env, ddpg agent, hgg/normal learner, tester
args = get_... | 32.079545 | 93 | 0.735034 |
bf9c418efafede01fd1fe96486cab5628df1217c | 145 | py | Python | CS1410/Mod1_Practice/schoolPractice/Equality.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS1410/Mod1_Practice/schoolPractice/Equality.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS1410/Mod1_Practice/schoolPractice/Equality.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | first = [10,20,30]
second = first
third = list(first)
print(first == second)
print(first == third)
print(first is second)
print(first is third) | 16.111111 | 22 | 0.703448 |
bf9c9f2ad47c2493e56e5746ab85cc6e452ae864 | 1,371 | py | Python | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 19 | 2020-12-04T02:39:04.000Z | 2020-12-04T21:45:09.000Z | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 13 | 2020-12-04T22:20:26.000Z | 2021-04-29T05:39:51.000Z | tests/fast/test_pickle.py | evinism/littlebaker | d4eac27c23999274397aecdb719c465b13306f26 | [
"MIT"
] | 1 | 2021-04-28T06:21:01.000Z | 2021-04-28T06:21:01.000Z | from tinybaker import Transform, InputTag, OutputTag, sequence
import pickle
BaseSeq = sequence([StepOne, sequence([StepTwo, StepThree])])
| 23.637931 | 66 | 0.557257 |
bf9d1c229636cf8e73b8136dc8f76f750b3401fc | 1,711 | py | Python | tests/actors/accessibility/test_accessibility.py | reapler/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-12-24T04:37:02.000Z | 2021-12-24T04:37:02.000Z | tests/actors/accessibility/test_accessibility.py | jpramosi/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-07-23T13:38:36.000Z | 2021-08-07T14:17:54.000Z | tests/actors/accessibility/test_accessibility.py | reapler/geckordp | 29dab2e6e691954a473e054fa95ba40a3ad10e53 | [
"MIT"
] | 1 | 2021-10-31T17:31:35.000Z | 2021-10-31T17:31:35.000Z | # pylint: disable=unused-import
import pytest
import tests.helpers.constants as constants
from tests.helpers.utils import *
from geckordp.rdp_client import RDPClient
from geckordp.actors.root import RootActor
from geckordp.actors.descriptors.tab import TabActor
from geckordp.actors.accessibility.accessibility import Ac... | 26.734375 | 89 | 0.670953 |
bf9e18fe4d55d3bb8920e6325a4acb85be41d552 | 481 | py | Python | youtube_parser.py | d99p/rude_bot | 104e1aee4daa88aa21d80ffc958d8d5445126c1d | [
"Apache-2.0"
] | 8 | 2020-11-16T20:25:05.000Z | 2021-10-04T17:06:33.000Z | youtube_parser.py | d99p/rude_bot | 104e1aee4daa88aa21d80ffc958d8d5445126c1d | [
"Apache-2.0"
] | 3 | 2021-04-10T20:31:12.000Z | 2021-04-12T12:03:32.000Z | youtube_parser.py | d99p/rude_bot | 104e1aee4daa88aa21d80ffc958d8d5445126c1d | [
"Apache-2.0"
] | 7 | 2021-03-29T09:42:38.000Z | 2022-02-04T12:52:29.000Z | import requests
import re
| 25.315789 | 93 | 0.621622 |
bf9fb9031e94da688c160248b371ac9be8f9e4a5 | 17,301 | py | Python | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | 2 | 2020-08-29T22:03:46.000Z | 2020-09-03T11:25:04.000Z | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | null | null | null | DbObjectCreator/DbObjectCreator.py | Haagimus/cautious-rotary-phone | 21c4c7869b8166cdb75e5db4eb35acde28b459f2 | [
"MIT"
] | null | null | null | import mysql.connector
from enum import Enum
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker, Query
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.sql.elements import BinaryExpression
from sshtunnel import SSHTunnelForwarder
import pymysql
import psycopg2
import pymssql
imp... | 40.048611 | 166 | 0.5628 |
bfa007f01f0521a3952080258ba83656a9eeaff7 | 564 | py | Python | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | py/leetcode/DungeonGame.py | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | '''
Leetcode problem No 174 Dungeon Game
Solution written by Xuqiang Fang on 5 July, 2018
'''
| 26.857143 | 62 | 0.547872 |
bfa0480628cbd64765f0e794d146b8b1cadeec58 | 10,288 | py | Python | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | pw_make_radcool_structure.py | parkerwray/tmm | 8c27a56163d33de5955611eee35864c4485d1b2b | [
"MIT"
] | null | null | null | """
Import relevant modules
"""
from __future__ import division, print_function, absolute_import
#from tmm.tmm_core import (coh_tmm, unpolarized_RT, ellips,
# position_resolved, find_in_structure_with_inf)
from wptherml.wptherml.datalib import datalib
import tmm.tmm_core as tmm
from numpy impor... | 39.569231 | 135 | 0.585051 |
bfa068d8a934be3d7b1205fc6ff72b2f92ee4aa5 | 636 | py | Python | covertutils/covertutils/shells/subshells/__init__.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | 2 | 2020-11-23T23:54:32.000Z | 2021-05-25T12:28:05.000Z | covertutils/covertutils/shells/subshells/__init__.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | 1 | 2021-03-20T05:43:02.000Z | 2021-03-20T05:43:02.000Z | covertutils/covertutils/shells/subshells/__init__.py | aidden-laoch/sabre | 0940aa51dfc5074291df9d29db827ddb4010566d | [
"MIT"
] | null | null | null | #
from covertutils.shells.subshells.simplesubshell import SimpleSubShell
#
from covertutils.shells.subshells.shellcodesubshell import ShellcodeSubShell
#
from covertutils.shells.subshells.pythonapisubshell import PythonAPISubShell
#
from covertutils.shells.subshells.controlsubshell import ControlSubShell
#
from covertu... | 37.411765 | 101 | 0.878931 |
bfa0c27f0aad4f5472dc6a2166cb780a75f980c8 | 1,105 | py | Python | tensorflow/contrib/distribute/python/tpu_strategy.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/distribute/python/tpu_strategy.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/contrib/distribute/python/tpu_strategy.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 40.925926 | 83 | 0.718552 |
bfa0c62575bd34e4cba52c7f7400939a06bfae09 | 1,592 | py | Python | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | 1 | 2020-07-08T06:17:54.000Z | 2020-07-08T06:17:54.000Z | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | after/bayes.py | Windsooon/Comments | 47a6077e3bf46743a8da3d59ea8ebcd5601c9fe9 | [
"MIT"
] | null | null | null | import os
import csv
import pickle
import pandas as pd
import numpy as np
import sklearn
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.model_selection import KFold
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score
from sklearn.naive_bayes import Mu... | 31.215686 | 83 | 0.766332 |
bfa123a46e6c48d9f51257a647096c4fc2fe9422 | 818 | py | Python | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | deprecated/printers/bov/tests/test_database.py | nielsdrost/pymt | ae39bf807428827a6904202bf4d3b927daa255ea | [
"MIT"
] | null | null | null | import os
import numpy as np
from pymt.grids import RasterField
from pymt.printers.bov.database import Database
| 24.787879 | 72 | 0.625917 |
bfa18c419b9bddacf91037d88c2cff23c5558bdb | 8,820 | py | Python | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | 2 | 2021-11-17T05:08:01.000Z | 2021-11-28T17:17:08.000Z | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | null | null | null | flowws_keras_geometry/models/PDBInverseCoarseGrain.py | klarh/flowws-keras-geometry | f6768ff20fdbf85deacd234c116919219500ecbe | [
"MIT"
] | null | null | null |
import flowws
from flowws import Argument as Arg
import tensorflow as tf
from tensorflow import keras
from .internal import HUGE_FLOAT, PairwiseVectorDifference, \
PairwiseVectorDifferenceSum, VectorAttention, Vector2VectorAttention
| 41.023256 | 109 | 0.622222 |
bfa221e1979ae3e08b502d632de23a867c0630aa | 3,565 | py | Python | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | DeepLearningExamples/TensorFlow/Recommendation/WideAndDeep/utils/metrics.py | puririshi98/benchmark | 79f554f1e1cf36f62994c78e0e6e5b360f554022 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 38.75 | 87 | 0.722861 |
bfa6e37ce663c12f0fdad157e24b3fc3bb9524e5 | 11,809 | py | Python | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 28 | 2018-02-16T17:21:47.000Z | 2022-02-27T21:42:17.000Z | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 115 | 2017-11-30T17:12:47.000Z | 2022-01-26T07:41:34.000Z | src/compas_fea/structure/material.py | franaudo/fea | e164256bac179116520d19d6fc54c98de0610896 | [
"MIT"
] | 13 | 2018-05-08T13:03:28.000Z | 2022-01-23T13:37:06.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from math import log
# Author(s): Andrew Liew (github.com/andrewliew)
__all__ = [
'Material',
'Concrete',
'ConcreteSmearedCrack',
'ConcreteDamagedPlasticity',
'ElasticIsotropic',
'St... | 26.242222 | 106 | 0.474807 |
bfa749699de26602b2730662f9b8a7ff680aac28 | 365 | py | Python | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | utilities/mongodb/insert.py | sosomasox/adl | 1afc2f385cbae6f1d4fefa5534f194621e4460c4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from pymongo import MongoClient
import json
import ast
client = MongoClient('mongodb://localhost:27017/')
db = client.adl
collection = db.adlmodels
with open('../data/going_out.jsonl', 'r') as fp:
for data in fp.readlines():
data = data.strip()
data_dit = ast.literal_eval(d... | 22.8125 | 50 | 0.690411 |
bfa8558ac1772d42a73ab7a03e7faa0e2989dc76 | 454 | py | Python | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | utils/Distributions/Gamma.py | vd1371/GIAMS | dd6551f344b8d0377131d4496846eb5d03b6189c | [
"MIT"
] | null | null | null | #Loading dependencies
from .BaseDistribution import BaseDistribution | 26.705882 | 107 | 0.757709 |
bfa8cb6c6419a3d2b51a4b0411b2675939d36c2f | 4,087 | py | Python | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | 2 | 2020-06-17T19:54:09.000Z | 2020-06-18T20:10:26.000Z | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | omnibus/code.py | wrmsr/omnibus | 3c4ef5eb17b0fff8593fa6a2284337bf193c18d3 | [
"BSD-3-Clause"
] | null | null | null | import dis
import gc
import opcode
import sys
import textwrap
import types
import typing as ta
from . import lang
Code = types.CodeType
Function = types.FunctionType
Frame = types.FrameType
CODE_ARGS = [
'argcount',
'kwonlyargcount',
'nlocals',
'stacksize',
'flags',
'code',
'consts',
... | 24.473054 | 116 | 0.663567 |
bfa9911aa0052a6c71229ba272f18a078ad0fbf0 | 925 | py | Python | apidoc/libs/args_schema.py | Naisisor/naisi | acda35b9d37c6bacad2192c462c12e64b6277424 | [
"MIT"
] | null | null | null | apidoc/libs/args_schema.py | Naisisor/naisi | acda35b9d37c6bacad2192c462c12e64b6277424 | [
"MIT"
] | null | null | null | apidoc/libs/args_schema.py | Naisisor/naisi | acda35b9d37c6bacad2192c462c12e64b6277424 | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, validate
from apidoc.libs.common import contain_zh
from apidoc.settings import Config
| 38.541667 | 116 | 0.725405 |
bfa9f514b2c99066b32a9c8b4d3db858314b200e | 2,928 | py | Python | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null | 2021/day20.py | tangarts/advent-of-code | 5879fbec1a5377d1288666a357b029f6345d4a5d | [
"MIT"
] | null | null | null |
from advent_of_code.core import parse_input, flatten
raw = """..#.#..#####.#.#.#.###.##.....###.##.#..###.####..#####..#....#..#..##..##
#..######.###...####..#..#####..##..#.#####...##.#.#..#.##..#.#......#.###
.######.###.####...#.##.##..#..#..#####.....#.#....###..#.##......#.....#.
.#..#..##..#...##.######.####.#... | 32.175824 | 117 | 0.470628 |
bfaad62bd9e583e1ea51ba34d2df4f6e9cf1f105 | 777 | py | Python | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | 1 | 2020-07-28T17:10:30.000Z | 2020-07-28T17:10:30.000Z | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | 8 | 2018-01-11T02:09:30.000Z | 2022-01-13T00:49:27.000Z | profiles/migrations/0004_auto_20180220_1915.py | choia/bucket-list-webapp | 3f77c58f6f6c66f3ad1d88ee375a39ce294b9680 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-02-20 19:15
from __future__ import unicode_literals
from django.db import migrations, models
| 25.9 | 63 | 0.590734 |
bfac716a70e1d5acb5b1e13b1f148e9c8bcc5ce8 | 4,406 | py | Python | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 21 | 2016-02-25T18:00:39.000Z | 2021-12-13T02:58:24.000Z | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 18 | 2016-02-18T20:38:47.000Z | 2016-08-25T07:26:14.000Z | pytest_nodev/blacklists.py | nodev-io/pytest-wish | 14c9ef2a3891ac245fe572f6fb8e4649930349cb | [
"MIT"
] | 6 | 2016-02-26T13:45:41.000Z | 2016-08-25T05:45:58.000Z | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Alessandro Amici
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, ... | 27.886076 | 87 | 0.687472 |
bfacebc149bcde45d8b837419f726ea675713269 | 4,574 | py | Python | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 21 | 2015-12-31T00:35:37.000Z | 2019-10-17T08:17:07.000Z | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 5 | 2015-09-28T13:47:44.000Z | 2018-12-12T22:36:09.000Z | streaming_plot_client.py | Sensirion/libsensors-python | dda92824ce073b4b25f8db90150e90f092275a39 | [
"BSD-3-Clause"
] | 15 | 2015-11-10T10:11:35.000Z | 2021-05-20T08:41:18.000Z | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Sample appplication that connects to a mqtt server and plots all sensor data.
It is possible to subscribe to only some sensors or to all of them by modifying
the subscription topic.
To run the script you need to install the paho MQTT library and PyQt as listed
in requir... | 32.671429 | 86 | 0.638828 |
bfadeebda3d888464f736b1d2628712419a57a4c | 4,550 | py | Python | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | 1 | 2022-02-28T02:29:02.000Z | 2022-02-28T02:29:02.000Z | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | null | null | null | services/backend/app/models.py | miguelalb/resume-portal-fastapi | 286f732510925c5ad3760ca2af82098ed78e0dd9 | [
"BSD-3-Clause"
] | null | null | null | import uuid
from datetime import datetime
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Text
from sqlalchemy.dialects.postgresql import UUID
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import relationship
from app.database import Base
#TODO Add Portfolio, and... | 32.042254 | 86 | 0.705934 |
bfaff810f8ad02f15def8943b57bf4630603e431 | 1,597 | py | Python | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | python_src/tbd_audio_common/sound_maker.py | CMU-TBD/tbd_audio_common | 5afdaccbf1e5c8ad038ce849844cd85e846b8927 | [
"MIT-CMU",
"MIT"
] | null | null | null | #!/usr/bin/env python
import rospy
import alloy.ros
import os
import wave
import actionlib
from tbd_ros_msgs.msg import (
playAudioAction,
playAudioGoal
)
| 29.574074 | 123 | 0.644333 |
bfb19827d57787b285507d6f0c699802654b2f05 | 1,474 | py | Python | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | webserver/ProjetoSS.py | jonnyff/Outliers_NASA-Space-Apps | 2713bad7df491e1c32ef2657f4e7e868c3e3777b | [
"Apache-2.0"
] | null | null | null | from flask import Flask, request, render_template
from flask import json
from requests.auth import HTTPBasicAuth
app = Flask(__name__)
if __name__ == "__main__":
#Adicionar o host do servidor que vai rodar e a porta. EXEMPLO: app.run(host='192.168.0.1', port='8080')
app.run(host="noruega.unit.br", port="80")... | 35.095238 | 109 | 0.591588 |
bfb1e55075a8b67cd215ee8a1df39ac77cfeba01 | 2,922 | py | Python | pages/forms.py | Mannuel25/Cheqqit | 8f2b2447fcd00e4951d16580267de2930cc42253 | [
"MIT"
] | 11 | 2022-01-05T11:54:23.000Z | 2022-03-25T08:47:02.000Z | pages/forms.py | Mannuel25/Cheqqit | 8f2b2447fcd00e4951d16580267de2930cc42253 | [
"MIT"
] | null | null | null | pages/forms.py | Mannuel25/Cheqqit | 8f2b2447fcd00e4951d16580267de2930cc42253 | [
"MIT"
] | null | null | null | from django import forms
from .models import UserTasks | 41.15493 | 97 | 0.667009 |
bfb4a6fbb8d580b5d2075aecbe9dbd0aeb08ff0b | 3,232 | py | Python | scripts/vramc/encoder.py | paulscottrobson/6502-basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 3 | 2021-09-30T19:34:11.000Z | 2021-10-31T06:55:50.000Z | scripts/vramc/encoder.py | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | null | null | null | scripts/vramc/encoder.py | paulscottrobson/6502-Basic | d4c360041bfa49427a506465e58bb0ef94beaa44 | [
"MIT"
] | 1 | 2021-12-07T21:58:44.000Z | 2021-12-07T21:58:44.000Z | # *****************************************************************************
# *****************************************************************************
#
# Name: encoder.py
# Author: Paul Robson (paul@robsons.org.uk)
# Date: 27th March 2021
# Purpose: Encode graphics
#
# *********************************... | 28.350877 | 107 | 0.534963 |
bfb5034780b879d1244f12e00e78645edb6abd45 | 2,541 | py | Python | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | null | null | null | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | 1 | 2021-08-31T22:20:32.000Z | 2021-08-31T22:20:32.000Z | torchaudio/__init__.py | micmelesse/audio | e8cc7f9130135e8ab96d58b0225d5120da6a0804 | [
"BSD-2-Clause"
] | null | null | null | from torchaudio._internal import module_utils as _mod_utils # noqa: F401
if _mod_utils.is_module_available('torchaudio._torchaudio'):
# Note this import has two purposes
# 1. Make _torchaudio accessible by the other modules (regular import)
# 2. Register torchaudio's custom ops bound via TorchScript
#... | 35.291667 | 98 | 0.709957 |
bfb6340fbbc7e56129c9bfe9ba48fe36ac1730fd | 900 | py | Python | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | Aprendendo Python/cursopythonudamy/aula24_operadorternario.py | JlucasS777/Aprendendo-Python | a3a960260070f0d604c27fbbc41578a6ab11edb5 | [
"MIT"
] | null | null | null | # Operador Ternrio
'''login_user = False
if login_user : # isso o mesmo que if login_user == True:
msg = 'Usurio logado'
else:
msg = 'Usurio precisa logar'
print(msg)
print(i)'''
''' O cdigo acima o mesmo que :
'''
# login_user = False
# msg ='Usurio logado.'if login_user else ' Usurio precisa logar'
# pri... | 30 | 111 | 0.628889 |
bfb69b8488c9035534337b7d04075f3c5e669cc8 | 471 | py | Python | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 12 | 2016-04-23T23:24:44.000Z | 2018-09-17T04:07:56.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 90 | 2016-04-10T06:12:23.000Z | 2017-07-24T14:15:38.000Z | images_of/entrypoints/bot.py | amici-ursi/ImagesOfNetwork | a8922c24b7e2b0df50282842ebb0998a3cb7d60a | [
"MIT"
] | 9 | 2016-04-24T21:30:21.000Z | 2020-06-15T13:45:12.000Z | import click
from images_of import command, settings, Reddit
from images_of.bot import Bot
if __name__ == '__main__':
main()
| 22.428571 | 71 | 0.615711 |
bfb6e0c1a847c2bc7fe17d92901369d447464178 | 4,740 | py | Python | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 3 | 2020-08-02T07:14:25.000Z | 2021-04-25T12:22:53.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 130 | 2020-07-15T12:09:30.000Z | 2021-05-27T15:02:01.000Z | server/architext/verbs/edit_world.py | JimenaAndrea/architext | fb49624f7301902a357815af0ca5d320cfc6ddb6 | [
"MIT"
] | 1 | 2021-06-10T15:51:49.000Z | 2021-06-10T15:51:49.000Z | from . import verb
import textwrap
from .. import entities
import architext.strings as strings | 41.217391 | 184 | 0.606962 |
bfb7c5fc2640cb5beb6e90cd007956cfc19c4d95 | 569 | py | Python | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null | count_and_say.py | lutianming/leetcode | 848c7470ff5fd23608cc954be23732f60488ed8a | [
"MIT"
] | null | null | null |
s = Solution()
print(s.countAndSay(4))
| 21.884615 | 47 | 0.420035 |
bfb7d3cf4eee3e62630ca9d2b93475cfa95338cc | 2,510 | py | Python | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T07:02:13.000Z | 2022-01-17T07:02:13.000Z | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | null | null | null | src/1-prepare/cmftools/cmf_fldmap_downscale.py | DirkEilander/compound_hotspots | f9d7960633be80e8e24d2f2563df367cc3f060c6 | [
"BSD-3-Clause"
] | 1 | 2022-01-17T02:48:28.000Z | 2022-01-17T02:48:28.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import os
from os.path import join, dirname, realpath, basename
import rasterio
import click
import glob
import subprocess
import xarray as xr
import pandas as pd
from datetime import timedelta
from rasterio.transform import from_origin
if __name__ == "... | 33.918919 | 94 | 0.642231 |
bfb8ead9c6c7c310a5414613dd9bbb4a9dc0c78b | 5,083 | py | Python | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | 2 | 2021-11-01T20:21:23.000Z | 2021-11-26T03:14:25.000Z | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | scaling.py | samsalemi/OpenSim-Python-Simulation | f66bcce7aaaf3b4095d623b3ad2df484d123fa24 | [
"Apache-2.0"
] | null | null | null | # June 7 2018
# Author: Samuel Salemi
# University of Guelph Masters Graduate
# This script determines scaling factors and places them on model Gait2354
| 38.801527 | 89 | 0.69821 |
bfbab397793ac92eea059f9b2857f1026c1521b5 | 1,159 | py | Python | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | Retos/Ordenar Lista/ordenarLista.py | juanpanu/Juan_DS_Path | 24e71616dae692e931e95cd3815ca88fa9b8a46a | [
"MIT"
] | null | null | null | # Ejercicio #2: Ordenamiento en listas.
# Tecnologas sugeridas: Python o Javascript (elegir), Git
# Realizar un programa que dada un lista de nmeros desordenada, retorne una lista con
# todos sus valores ordenados de menor a mayor. No se puede utilizar la funcin sort u
# otras existentes en Javascript para el ordenamie... | 34.088235 | 97 | 0.719586 |
bfbbe34de6cfae26177dec781f0aff1524bf1b1b | 1,666 | py | Python | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 2 | 2019-05-30T00:46:27.000Z | 2019-12-18T11:01:49.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 10 | 2017-09-19T01:24:02.000Z | 2021-04-08T00:35:40.000Z | tirmite/bowtie2_wrappers.py | Adamtaranto/mapmite | e2e85d73fa1df3a1c5d9893f7b35bcb6f6a1558b | [
"MIT"
] | 3 | 2019-12-18T11:01:51.000Z | 2021-09-02T01:26:34.000Z | import os
from shlex import quote
def _bowtie2build_cmd(bt2Path="bowtie2-build",IdxPath="db/GenIdx",genome=None):
'''Construct the bowtie2-build command'''
# Base command
cmd = ' '.join(['mkdir db &&',quote(bt2Path),quote(os.path.abspath(genome)),IdxPath])
return cmd
def _bowtie2_cmd(bt2Path="bowtie2",tirFasta=No... | 47.6 | 178 | 0.676471 |
bfbbe35054b047337e457c136d547a61c6afb53d | 2,716 | py | Python | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | 4 | 2021-01-15T10:49:33.000Z | 2021-12-31T08:11:35.000Z | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | action_blocking_helping_functions.py | netceteragroup/Flatland-Challenge | 4292e8aa778d264d025ad6d32926840864b22a21 | [
"MIT"
] | null | null | null | from envs.flatland.observations.segment_graph import Graph
| 29.846154 | 118 | 0.591679 |
bfbd4529c7fa51f7002af4f36973add53c6da978 | 997 | py | Python | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 4 | 2018-04-19T19:56:53.000Z | 2021-06-28T19:53:41.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 1 | 2020-06-03T13:57:07.000Z | 2020-06-22T10:27:48.000Z | venv/lib/python2.7/site-packages/ebcli/objects/event.py | zwachtel11/fruitful-backend | 45b8994917182e7b684b9e25944cc79c9494c9f3 | [
"MIT"
] | 3 | 2018-07-30T05:34:42.000Z | 2019-04-30T20:02:54.000Z | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.88 | 85 | 0.718154 |
bfbdb2606c7d9fbb6e570e314eadff3809426b49 | 13,493 | py | Python | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/bindings/struct.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | """
Bindings data classes
"""
__author__ = 'VMware, Inc.'
__copyright__ = 'Copyright 2015-2016 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long
import decimal
import json
import six
import sys
from vmware.vapi.bindings.common import raise_core_exception
from vmware.vapi.dat... | 34.955959 | 128 | 0.613207 |
bfc050097243e7b2091975c40a2359b3639deda4 | 78 | py | Python | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | 1 | 2019-08-04T17:31:06.000Z | 2019-08-04T17:31:06.000Z | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | 5 | 2021-03-18T21:18:21.000Z | 2022-03-11T23:32:06.000Z | tests/parameters/secret.py | yehonadav/bunbun | 3703c837859ee27bb87604a236d051601c830c9b | [
"Apache-2.0"
] | null | null | null | hub = 'http://18.216.225.173:4444/wd/hub'
user = 'user'
password = 'password'
| 19.5 | 41 | 0.653846 |
bfc16f3c9732a3bac02cf561d1ad42fdb042389b | 1,005 | py | Python | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 5 | 2015-01-26T20:52:54.000Z | 2019-06-18T06:48:55.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 1 | 2015-01-06T10:54:00.000Z | 2015-01-06T10:54:00.000Z | checks/checkpython.py | h4ck3rm1k3/salt-formulas | 8b0265faa64fa1d2a4149ce9aeb279e3861150fd | [
"CC0-1.0"
] | 4 | 2015-01-19T16:39:48.000Z | 2020-11-04T05:52:02.000Z | import yaml
import sys
from jinja2 import Environment, PackageLoader, Template
import os
# shebangs
#!yaml_jinja
#!yaml_mako
#!mako|yaml
#!jinja|yaml
#!jinja|mako|yaml
#!mako|yaml|stateconf
#!jinja|yaml|stateconf
#!mako|yaml_odict
#!mako|yaml_odict|stateconf
for root, dirs, files in os.walk("./"):
for f... | 20.9375 | 70 | 0.536318 |
bfc30a77b97d4e74224bb01d940181301a27ab6f | 537 | py | Python | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2018-12-10T07:03:02.000Z | 2021-04-12T02:18:30.000Z | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 566 | 2018-09-30T02:54:28.000Z | 2022-03-28T01:20:01.000Z | dthm4kaiako/config/filters/markdown.py | taskmaker1/dthm4kaiako | 681babc10b3223b5ae7fdf19b98c53d2bef4ea1a | [
"MIT"
] | 3 | 2019-04-04T19:53:39.000Z | 2021-05-16T02:04:46.000Z | """Template filter for rendering Markdown to HTML."""
from django import template
from django.utils.safestring import mark_safe
from django.template.defaultfilters import stringfilter
from markdownx.utils import markdownify
register = template.Library()
| 23.347826 | 56 | 0.748603 |
bfc43a6e6874e02847e5dd1f797f3d3037107d33 | 1,572 | py | Python | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | tests/test_tk_file_extention_dialog.py | MaxWeise/Filebackup_Automation | fc4b7480897b34b1b3315f5505c0b96c8714202d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Testsuite for the user text input
Created 15.12.2021
@author Max Weise
"""
import unittest
from unittest import TestCase
from backup_script.tk_file_extention_dialog import TextInputDialog
if __name__ == '__main__':
unittest.main()
| 30.230769 | 97 | 0.681934 |
bfc4c4ec186ec83ad923e2b9cf71b87520c6a873 | 755 | py | Python | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | My_Account/migrations/0006_auto_20200426_1701.py | CHESyrian/Syrians | 8376e9bed6e3a03f536d8aacd523d630f6bc4345 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.3 on 2020-04-26 14:01
from django.db import migrations, models
| 31.458333 | 147 | 0.664901 |
bfc5e0326ff06b4f88532664293de1aca3963505 | 3,993 | py | Python | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | efls-data/xfl/data/local_join/worker.py | finalljx/Elastic-Federated-Learning-Solution | fb588fdc03a2c1598b40b36712b27bdffdd24258 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Alibaba Group Holding Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 46.430233 | 138 | 0.650889 |