hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
600b9c773caf0219fb4e4f6849908beddf8171b7
1,427
py
Python
api.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
api.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
api.py
maxc0d3r/google-workspace-manager
d2a4e561ae8278455cd5b0c03283a413ebeaff54
[ "MIT" ]
null
null
null
from fastapi import Request, FastAPI import gwm.directory.domains import gwm.directory.users import gwm.directory.groups from gwm.directory.domains import list_domains, add_domain, delete_domain app = FastAPI() @app.get("/") async def index(): return {"message": "Google Workspace Manager v0.0.1"} @app.get("/v1/...
26.425926
73
0.743518
a8bb69d569de0d763f34961a99b77cf04e73a5fd
5,387
py
Python
userbot/modules/time.py
Anirudh0011/jimthebot
a3ef50989e0730c50129b351e865b07237155b1f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/time.py
Anirudh0011/jimthebot
a3ef50989e0730c50129b351e865b07237155b1f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/time.py
Anirudh0011/jimthebot
a3ef50989e0730c50129b351e865b07237155b1f
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-01-14T13:40:36.000Z
2020-01-14T13:40:36.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """ Userbot module for getting the date and time of any country or the userbot server. """ from datetime import d...
29.277174
83
0.559124
3657c1cb66664c19e288a34fc1d17a89eb085bce
2,238
py
Python
geokey/users/managers.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
geokey/users/managers.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
geokey/users/managers.py
universityofsussex/geokey
25e161dbc81841c57c148053dbe99facc81e84b8
[ "Apache-2.0" ]
null
null
null
"""Managers for users.""" from django.contrib.auth.models import BaseUserManager from django.utils import timezone class UserManager(BaseUserManager): """ Custom manger for geokey.user.models.User """ def create_user(self, email, display_name, password=None, is_active=True, **extr...
26.963855
79
0.55496
e9e6acdca2b7069284641e4ee26ddce965b3b424
407
py
Python
core/migrations/0011_province_image.py
openbudgetnepal/open-budget-portal
22b6fc67153a42e80db2a10b9ecbc9a963c34167
[ "MIT" ]
null
null
null
core/migrations/0011_province_image.py
openbudgetnepal/open-budget-portal
22b6fc67153a42e80db2a10b9ecbc9a963c34167
[ "MIT" ]
null
null
null
core/migrations/0011_province_image.py
openbudgetnepal/open-budget-portal
22b6fc67153a42e80db2a10b9ecbc9a963c34167
[ "MIT" ]
1
2022-01-12T02:35:07.000Z
2022-01-12T02:35:07.000Z
# Generated by Django 3.1 on 2020-09-03 15:01 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0010_auto_20200903_1423'), ] operations = [ migrations.AddField( model_name='province', name='image', ...
21.421053
77
0.601966
213f7bf231b87d26d1e3590b095fd64986087741
1,475
py
Python
ipamanager/alerting/__init__.py
jan-cipa/freeipa-manager
c8cc9d11e4a32d770ee6d7474d3506cef373cfe9
[ "BSD-3-Clause" ]
4
2020-11-04T19:47:31.000Z
2021-11-24T09:37:46.000Z
ipamanager/alerting/__init__.py
jan-cipa/freeipa-manager
c8cc9d11e4a32d770ee6d7474d3506cef373cfe9
[ "BSD-3-Clause" ]
37
2019-04-30T10:18:25.000Z
2022-03-31T13:10:58.000Z
ipamanager/alerting/__init__.py
jan-cipa/freeipa-manager
c8cc9d11e4a32d770ee6d7474d3506cef373cfe9
[ "BSD-3-Clause" ]
8
2019-04-30T10:15:37.000Z
2022-03-31T12:58:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-3-Clause # Copyright © 2017-2019, GoodData Corporation. All rights reserved. """ FreeIPA Manager - Alerting base class module Base class serving for inherits by actual alerting plugin implementations. """ import abc import logging from ipam...
27.830189
78
0.665763
92164cbca6fcd49ced757031bb45ee282c38192b
73,134
py
Python
eval_scripts/robustness.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
null
null
null
eval_scripts/robustness.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
null
null
null
eval_scripts/robustness.py
kapikantzari/MultiBench
44ab6ea028682040a0c04de68239ce5cdf15123f
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.ticker import FormatStrFormatter import numpy as np def relative_robustness(robustness_result, task): """Compute the relative robustenss metric given the performance of the method on the task.""" return get_robustness_metric(robustness_result, task, 'relative') ...
80.721854
250
0.622734
a8badfd0fccac72b37103743d976a045ddd5b129
576
py
Python
user_profile/migrations/0002_auto_20210406_0742.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
null
null
null
user_profile/migrations/0002_auto_20210406_0742.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
null
null
null
user_profile/migrations/0002_auto_20210406_0742.py
CodeSmitty/django-menu-planner
63d1b8ef36ffe855198b35d9b831febb313a1741
[ "MIT" ]
1
2022-01-18T16:38:57.000Z
2022-01-18T16:38:57.000Z
# Generated by Django 3.1.7 on 2021-04-06 11:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('user_profile', '0001_ini...
26.181818
110
0.675347
661048624e51143c64104a6647258bfb6fd5761d
2,701
py
Python
soccer/gameplay/tactics/stopped/circle_on_center.py
justbuchanan/robocup-software
1055fac355c93e30a29ac0563dfe80cc3e602fd3
[ "Apache-2.0" ]
1
2018-09-25T20:28:58.000Z
2018-09-25T20:28:58.000Z
soccer/gameplay/tactics/stopped/circle_on_center.py
justbuchanan/robocup-software
1055fac355c93e30a29ac0563dfe80cc3e602fd3
[ "Apache-2.0" ]
null
null
null
soccer/gameplay/tactics/stopped/circle_on_center.py
justbuchanan/robocup-software
1055fac355c93e30a29ac0563dfe80cc3e602fd3
[ "Apache-2.0" ]
null
null
null
import composite_behavior import behavior import skills.move import constants import math import role_assignment import robocup import main ## Robots position themselves along a portion of the circle centered at the ball class CircleOnCenter(composite_behavior.CompositeBehavior): def __init__(self): super...
35.077922
80
0.591262
b67cca26a73f81dbfa87c94981ac89667eb242b4
1,704
py
Python
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
null
null
null
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
null
null
null
Src/Morse.py
DragonixAlpha/Kal
2ca941ae91ffc459c821ac1b9139dd96abfec6e2
[ "MIT" ]
1
2021-05-16T15:32:56.000Z
2021-05-16T15:32:56.000Z
MORSE_CODE_DICT = { 'A':'.-', 'B':'-...', 'C':'-.-.', 'D':'-..', 'E':'.', 'F':'..-.', 'G':'--.', 'H':'....', 'I':'..', 'J':'.---', 'K':'-.-', 'L':'.-..', 'M':'--', 'N':'-.', 'O':'---', 'P':'.--.', 'Q':'--.-', ...
36.255319
63
0.311033
5d968f456f9d4681fb50704efbc44730508a7044
31,952
py
Python
dshield.py
chalvorson/python-dshield
3cbef8e579f8da065723374e48573701e1426ff2
[ "BSD-3-Clause" ]
null
null
null
dshield.py
chalvorson/python-dshield
3cbef8e579f8da065723374e48573701e1426ff2
[ "BSD-3-Clause" ]
null
null
null
dshield.py
chalvorson/python-dshield
3cbef8e579f8da065723374e48573701e1426ff2
[ "BSD-3-Clause" ]
null
null
null
"""A Pythonic interface to the Internet Storm Center / DShield API. https://isc.sans.edu/api/ """ import datetime import requests __version__ = "0.3.0" XML = "?xml" JSON = "?json" TEXT = "?text" PHP = "?php" __BASE_URL = "https://dshield.org/api/" class Error(Exception): """Custom exception class.""" def...
31.666997
113
0.626314
11b854985d1f2935bbb9f6ed1a4ae593277d5ec4
880
py
Python
W4/BoundingBox.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
null
null
null
W4/BoundingBox.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
2
2021-03-23T10:34:33.000Z
2021-03-23T18:54:28.000Z
W4/BoundingBox.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
1
2021-03-08T21:13:15.000Z
2021-03-08T21:13:15.000Z
class BoundingBox: def __init__(self, frame, id, label, xtl, ytl, xbr, ybr, confidence = 0): self.frame = frame self.id = id self.label = label self.xtl = xtl self.ytl = ytl self.xbr = xbr self.ybr = ybr self.confidence = confidence @property ...
25.882353
118
0.575
8813796bdf72f2dd16213cd03376e3de47697b1e
345
py
Python
Curso_de_Python_ Curso_em_Video/PythonTeste/dicionariosEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/dicionariosEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
Curso_de_Python_ Curso_em_Video/PythonTeste/dicionariosEx001.py
DanilooSilva/Cursos_de_Python
8f167a4c6e16f01601e23b6f107578aa1454472d
[ "MIT" ]
null
null
null
aluno = dict() aluno['nome'] = str(input('Nome: ')) aluno['media'] = float(input(f'Média de {aluno["nome"]} ')) if aluno['media'] < 6: aluno['situacao'] = 'Reprovado' else: aluno['situacao'] = 'Aprovado' print(f'Nome é igual a {aluno["nome"]}') print(f'Média é igula a {aluno["media"]}') print(f'Situação é igua...
31.363636
59
0.623188
f2c1ce6f9991060c60a335524959673accbba772
54,396
py
Python
qa/rpc-tests/test_framework/mininode.py
ascensioncoin/litecoin
76a3311143b954e61acc638468c7542bf3d82c6a
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/mininode.py
ascensioncoin/litecoin
76a3311143b954e61acc638468c7542bf3d82c6a
[ "MIT" ]
null
null
null
qa/rpc-tests/test_framework/mininode.py
ascensioncoin/litecoin
76a3311143b954e61acc638468c7542bf3d82c6a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2010 ArtForz -- public domain half-a-node # Copyright (c) 2012 Jeff Garzik # Copyright (c) 2010-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # mininode.p...
30.456887
262
0.593886
11c89f55bf7622e4912a502b7fa6dcec13abc5b5
2,431
py
Python
aalh_iit_peopleportraits_003/populate-copyright-columns.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_peopleportraits_003/populate-copyright-columns.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_peopleportraits_003/populate-copyright-columns.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook import re filename = 'aalh_iit_peopleportraits_003.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 506 iterationrow = 7 targetcol = 15 rightsuricol = 26 rightsdesccol = 27 nocruri = 'http://ri...
48.62
150
0.633073
57d7fd7791b2057cedb8832b55bcb4963bba661a
305
py
Python
2016/12/cabinet-exp-20161219/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2016/12/cabinet-exp-20161219/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2016/12/cabinet-exp-20161219/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '11L9Wp_4xPtVV_wC0zHLgLxmaWdAGK4a_9slOppw9rSI' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
21.785714
77
0.819672
ed9655a3550848140b250725433d3fd8a14e4531
935
py
Python
helper.py
engineer-with-no-head/rude_bot
ba49b495bc129aecdb2fbf3f7afcc2af5cbcea88
[ "Apache-2.0" ]
8
2020-11-16T20:25:05.000Z
2021-10-04T17:06:33.000Z
helper.py
engineer-with-no-head/rude_bot
ba49b495bc129aecdb2fbf3f7afcc2af5cbcea88
[ "Apache-2.0" ]
3
2021-04-10T20:31:12.000Z
2021-04-12T12:03:32.000Z
helper.py
engineer-with-no-head/rude_bot
ba49b495bc129aecdb2fbf3f7afcc2af5cbcea88
[ "Apache-2.0" ]
7
2021-03-29T09:42:38.000Z
2022-02-04T12:52:29.000Z
import cachetools.func import random import json import requests import re import urllib.request better_advices: list with open('better.txt', 'r', encoding='utf-8') as f: better_advices = f.readlines() def get_random_cat_image_url(): catapi_url = 'https://api.thecatapi.com/v1/images/search?mime_types=jpg,pn...
26.714286
117
0.678075
fd710c2a3a954e8bb9eba6c27688206a12f3ea88
35,063
py
Python
debugger.py
RTMAAI/CO600-Musical-Analysis
f42cc916e95735b60e7e11a864a455ad0aaf5986
[ "MIT" ]
1
2018-03-30T12:03:43.000Z
2018-03-30T12:03:43.000Z
debugger.py
RTMAAI/CO600-Musical-Analysis
f42cc916e95735b60e7e11a864a455ad0aaf5986
[ "MIT" ]
14
2018-01-12T12:25:39.000Z
2022-02-09T23:32:20.000Z
debugger.py
RTMAAI/CO600-Musical-Analysis
f42cc916e95735b60e7e11a864a455ad0aaf5986
[ "MIT" ]
7
2018-01-12T13:33:10.000Z
2018-03-25T16:24:57.000Z
""" VISUALIZER/DEBUGGER IMPLEMENTATION - This script contains an implementation of our library, to visualize metrics analysed. """ import threading import time from functools import partial import tkinter as tk from scipy.signal import resample from scipy.fftpack import fftfreq from rtmaii import rtmaii # Replac...
43.556522
100
0.589738
dc2534d98da47ecf910b8943da78b77589c857cd
1,948
py
Python
tests/edinet/reader/aspects/test_business.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
tests/edinet/reader/aspects/test_business.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
tests/edinet/reader/aspects/test_business.py
5laps2go/xbrr
4c0824b53bfe971111d60e6c1ff4e36f4f4845a3
[ "MIT" ]
null
null
null
import os import unittest from xbrr.edinet.reader.reader import Reader from xbrr.edinet.reader.aspects.business import Business import tests.edinet.reader.doc as testdoc class TestBusiness(unittest.TestCase): def get_xbrl(self, year=2019): path = os.path.join(os.path.dirname(__file__), ...
38.96
98
0.707906
d93be61e47a630d51170a564c6eb4a1fa03d60c7
4,039
py
Python
pyop2/logger.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
pyop2/logger.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
pyop2/logger.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
# This file is part of PyOP2 # # PyOP2 is Copyright (c) 2012, Imperial College London and # others. Please see the AUTHORS file in the main source directory for # a full list of copyright holders. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
33.106557
86
0.697202
c5f16870441275e440202e0cd2a6eba272f2553f
521
py
Python
Curso_em_Video_Exercicios/ex088.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
Curso_em_Video_Exercicios/ex088.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
Curso_em_Video_Exercicios/ex088.py
Cohuzer/Exercicios-do-Curso-em-Video
879cbb53c54ba226e12d9972bc28eadcd521fc10
[ "MIT" ]
null
null
null
from random import randint senha = [] senhas = [] print('-=' * 20) print(' MEGA SENA') print('-=' * 20) quantidade = int(input('Quantos jogos você deseja? ')) for h in range(quantidade): for i in range(6): senha.append(randint(0, 60)) for i in senha: if senha.count(i) > 1: ...
22.652174
56
0.566219
8ac750d9f4ec969ac9b6cb26aedffbe856726ab2
1,096
py
Python
install.py
bnomis/cygwin-update
f46d60f73f7067746ea35c6ce648b029f0101b42
[ "MIT" ]
3
2015-04-21T04:05:26.000Z
2017-02-09T22:19:23.000Z
install.py
bnomis/cygwin-update
f46d60f73f7067746ea35c6ce648b029f0101b42
[ "MIT" ]
null
null
null
install.py
bnomis/cygwin-update
f46d60f73f7067746ea35c6ce648b029f0101b42
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # cygwin: installs cygwin update # https://github.com/bnomis/cygwin-update # (c) Simon Blanchard from __future__ import print_function import os import os.path import subprocess def launchctl_load(path): argv = ['launchctl', 'load', '-w', path] try: p = s...
24.909091
82
0.613139
75da53e59f6128a3d15deffb0f7498fd6549bd05
1,123
py
Python
setup.py
PhpPlaisio/sp-log
43349da68f7db266b982b4cd85da76132f2be906
[ "MIT" ]
1
2019-08-06T09:11:10.000Z
2019-08-06T09:11:10.000Z
setup.py
PhpPlaisio/sp-log
43349da68f7db266b982b4cd85da76132f2be906
[ "MIT" ]
null
null
null
setup.py
PhpPlaisio/sp-log
43349da68f7db266b982b4cd85da76132f2be906
[ "MIT" ]
null
null
null
from codecs import open from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='MariadbAbcLog', version='2.0.0', description='Stored Routine...
24.955556
70
0.654497
d611f7833c1e3523d79648a53cf3049d3ea4880c
748
py
Python
configs.py
kocams/TG-DM-Bot
6641f230a71902fbb4f3ee09d0975a603698ea93
[ "MIT" ]
null
null
null
configs.py
kocams/TG-DM-Bot
6641f230a71902fbb4f3ee09d0975a603698ea93
[ "MIT" ]
null
null
null
configs.py
kocams/TG-DM-Bot
6641f230a71902fbb4f3ee09d0975a603698ea93
[ "MIT" ]
null
null
null
import os class Config(object): API_ID = int(os.environ.get("API_ID", 12345)) API_HASH = str(os.environ.get("API_HASH", "")) BOT_TOKEN = str(os.environ.get("BOT_TOKEN", "")) OWNER_ID = int(os.environ.get("OWNER_ID", 1428968542)) START = str(os.environ.get("START_TEXT", "Bu botu...
29.92
101
0.649733
4afda7f33ece80d6f85a847688725d5f16187a89
4,740
py
Python
PhysicsTools/Heppy/python/physicsutils/QGLikelihoodCalculator.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
PhysicsTools/Heppy/python/physicsutils/QGLikelihoodCalculator.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
PhysicsTools/Heppy/python/physicsutils/QGLikelihoodCalculator.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import ROOT import math def getBinNumber( bins, value ) : if value<bins[0] or value>bins[len(bins)-1]: return False for i in range(0,len(bins)-1): if value>bins[i] and value<bins[i+1]: return i return -1 class QGLikelihoodCalculator: def __init__(self, filename) : self.pdfs = {} sel...
26.333333
92
0.559283
b52708127de22c63d2486381c082cf6e829987cd
8,937
py
Python
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
2
2020-07-27T10:35:41.000Z
2020-12-14T15:44:18.000Z
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
48
2022-03-08T13:45:00.000Z
2022-03-31T14:32:05.000Z
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
SergeBakharev/content
d66cc274f5bf6f9f0e9ed7e4df1af7b6f305aacf
[ "MIT" ]
2
2021-12-13T13:07:21.000Z
2022-03-05T02:23:34.000Z
from IAMApiModule import * APP_USER_OUTPUT = { "user_id": "mock_id", "user_name": "mock_user_name", "first_name": "mock_first_name", "last_name": "mock_last_name", "active": "true", "email": "testdemisto2@paloaltonetworks.com" } USER_APP_DATA = IAMUserAppData("mock_id", "mock_user_name", is_ac...
36.329268
120
0.696542
0f048c8988a1eb0a1223d5513cfcd22f253fd2e1
12,122
py
Python
app/main_utils.py
caixy6464/test
ab063cdff3abdfa48ac1afb267d673e09adf284f
[ "Apache-2.0" ]
null
null
null
app/main_utils.py
caixy6464/test
ab063cdff3abdfa48ac1afb267d673e09adf284f
[ "Apache-2.0" ]
null
null
null
app/main_utils.py
caixy6464/test
ab063cdff3abdfa48ac1afb267d673e09adf284f
[ "Apache-2.0" ]
null
null
null
""" main_utils.py Define utility variables and functions for apps. """ import jnius from jnius import autoclass, cast import android # FIXME(likayo): subprocess module in Python 2.7 is not thread-safe. Use # subprocess32 instead. import functools import os import shlex import sys import subprocess import time import ...
27.487528
101
0.644861
b305c1a415a4ab6a60a9004ac9325bb2220a58fa
13,298
py
Python
sdk/python/pulumi_azure/mssql/elastic_pool.py
AdminTurnedDevOps/pulumi-azure
affd9eaaee3016f350f0d0469694dbd52850300b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/mssql/elastic_pool.py
AdminTurnedDevOps/pulumi-azure
affd9eaaee3016f350f0d0469694dbd52850300b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/mssql/elastic_pool.py
AdminTurnedDevOps/pulumi-azure
affd9eaaee3016f350f0d0469694dbd52850300b
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class Elasti...
71.494624
478
0.704241
66d78bd329716f5c1cc40640d46a0f97a8eee387
18,281
py
Python
tests/test_memory.py
osvenskan/sysv_ipc
d8b463a63c0864ea6985cd82f45850e26a9d6c6a
[ "BSD-3-Clause" ]
6
2018-11-13T12:55:28.000Z
2021-05-20T15:05:09.000Z
tests/test_memory.py
osvenskan/sysv_ipc
d8b463a63c0864ea6985cd82f45850e26a9d6c6a
[ "BSD-3-Clause" ]
7
2018-02-02T00:11:51.000Z
2022-02-10T03:17:16.000Z
tests/test_memory.py
osvenskan/sysv_ipc
d8b463a63c0864ea6985cd82f45850e26a9d6c6a
[ "BSD-3-Clause" ]
6
2018-03-09T10:30:23.000Z
2022-03-29T22:51:17.000Z
# Python imports import unittest import time import os # Project imports from .base import Base, make_key, sleep_past_granularity import sysv_ipc # Not tested -- # - mode seems to be settable and readable, but ignored by the OS # - address param of attach() # - attempt to write to segment attached with SHM_RDONLY giv...
38.895745
100
0.655106
45bca10e57120a6e3e7b19b4d8290ae649057779
5,117
py
Python
braintree/configuration.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
182
2015-01-09T05:26:46.000Z
2022-03-16T14:10:06.000Z
braintree/configuration.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
95
2015-02-24T23:29:56.000Z
2022-03-13T03:27:58.000Z
braintree/configuration.py
futureironman/braintree_python
26bb8a857bc29322a8bca2e8e0fe6d99cfe6a1ac
[ "MIT" ]
93
2015-02-19T17:59:06.000Z
2022-03-19T17:01:25.000Z
import braintree from braintree.credentials_parser import CredentialsParser from braintree.environment import Environment from braintree.exceptions.configuration_error import ConfigurationError from braintree.util.graphql_client import GraphQLClient class Configuration(object): """ A class representing the co...
36.81295
96
0.668556
4bd577e8d3bab51732b36d4a67e7c5e0c6983194
304
py
Python
util/hash_util.py
jscheizel/j_chain
7b0ba11821f4630d1b0ac96a6f8fb3c3ac9d8829
[ "MIT" ]
null
null
null
util/hash_util.py
jscheizel/j_chain
7b0ba11821f4630d1b0ac96a6f8fb3c3ac9d8829
[ "MIT" ]
null
null
null
util/hash_util.py
jscheizel/j_chain
7b0ba11821f4630d1b0ac96a6f8fb3c3ac9d8829
[ "MIT" ]
null
null
null
import hashlib import json def hash_block(block): hashable_block = block.__dict__.copy() hashable_block["transactions"] = [transaction.to_odered_dict() for transaction in hashable_block["transactions"]] return hashlib.sha256(json.dumps(hashable_block, sort_keys=True).encode()).hexdigest()
33.777778
117
0.773026
0fa49f076c1038360b0bade80850d1c05c8e0a42
4,703
py
Python
fooof/core/modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
55
2017-10-21T08:56:14.000Z
2018-11-02T17:39:22.000Z
fooof/core/modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
78
2017-10-22T22:20:25.000Z
2018-11-02T18:22:16.000Z
fooof/core/modutils.py
voytekresearch/fooof
674c495d19588cfa6c43ef046d566b4f29948d84
[ "Apache-2.0" ]
21
2017-11-27T19:28:26.000Z
2018-10-23T23:16:29.000Z
"""Utility functions & decorators for dealing with FOOOF, as a module.""" from importlib import import_module from functools import wraps ################################################################################################### ################################################################################...
25.699454
99
0.588773
797a95b93b2b4c42bfb123ade1c219a6d90e38ee
1,945
py
Python
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-dms-enterprise/aliyunsdkdms_enterprise/request/v20181101/PauseDataCorrectSQLJobRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) 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 u...
36.018519
103
0.746015
f320abdbbf4e4c018fb3687d73b83dcceba2a4cf
488
py
Python
Hackerrank/Python-Basic/Prime.py
JoshWorld/FastCampus-Python-Django
c0e418f92867fbd21c59aee9282e58cd858f5c3b
[ "MIT" ]
14
2016-05-20T00:16:50.000Z
2020-01-04T15:44:18.000Z
Hackerrank/Python-Basic/Prime.py
JoshWorld/FastCampus-Python-Django
c0e418f92867fbd21c59aee9282e58cd858f5c3b
[ "MIT" ]
null
null
null
Hackerrank/Python-Basic/Prime.py
JoshWorld/FastCampus-Python-Django
c0e418f92867fbd21c59aee9282e58cd858f5c3b
[ "MIT" ]
6
2016-05-21T05:29:39.000Z
2021-04-05T14:42:51.000Z
# M이상 N이하의 소수를 모두 출력하는 프로그램을 작성하시오. # input # 3 16 # # output # 3 # 5 # 7 # 11 # 13 n, m = map(int, input().split()) check = [False] * (m+1) # check[i] == True: i는 지워짐 # check[i] == False: i는 지워지지 않음 primes = [] for i in range(2, m+1): # 지워 졌으면 스킵 if check[i]: continue # 지워지지 않으면서 가장...
14.787879
35
0.508197
813c49256bf5bfdc637c2daf6b7060f23ebe3459
948
py
Python
linkinbio/app/api/views.py
arjunnn/linkinbio
3af91fcd649712c4332500907fd27b25e22d27d9
[ "MIT" ]
null
null
null
linkinbio/app/api/views.py
arjunnn/linkinbio
3af91fcd649712c4332500907fd27b25e22d27d9
[ "MIT" ]
12
2021-07-27T19:33:42.000Z
2021-08-23T11:24:27.000Z
linkinbio/app/api/views.py
arjunnn/linkinbio
3af91fcd649712c4332500907fd27b25e22d27d9
[ "MIT" ]
null
null
null
import json from django.contrib.auth import get_user_model from rest_framework import viewsets, response from .serializers import ( UserSerializer, LinkSerializer, ProfileSerializer, ProfileThemeSerializer, ) from ..links.models import Link, Profile, ProfileTheme, THEME_CHOICES class UserViewSet(vie...
25.621622
71
0.762658
896e978614916b740dd030a7acc75b21afc8282c
1,126
py
Python
dvc/command/unprotect.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
dvc/command/unprotect.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
dvc/command/unprotect.py
bjonnh/dvc
d7788887f05e2d869324ceed9c2464500b4bf96d
[ "Apache-2.0" ]
null
null
null
import argparse import logging from dvc.command.base import CmdBase, append_doc_link from dvc.exceptions import DvcException logger = logging.getLogger(__name__) class CmdUnprotect(CmdBase): def run(self): for target in self.args.targets: try: self.repo.unprotect(target) ...
29.631579
77
0.662522
32dff625d7fe577a871f597dbab3bb37a78896b8
3,220
py
Python
Python3Test/kaiLogistic/logistic_from_mock_circle_kai.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
null
null
null
Python3Test/kaiLogistic/logistic_from_mock_circle_kai.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
15
2019-11-18T06:09:50.000Z
2022-03-02T02:55:54.000Z
Python3Test/kaiLogistic/logistic_from_mock_circle_kai.py
qianhk/FeiPython
c87578d3c04b7345a99fef7390c8ea12c6f2c716
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import numpy as np import tensorflow as tf from sklearn import datasets import kaiLogistic.logistic_from_mock_data_utils as kai random_state = np.random.RandomState(2) data, target = datasets.make_circles(n_samples=100, factor=0.5, noise=0.05, random_state=random_state) target = ...
34.255319
102
0.678882
53c487d258d584e6fe12cf6f97f702dff0646a41
1,592
py
Python
cumulusrdf-integration-tests/src/test/resources/LearningSPARQLExamples/ex363.py
jlavan1/Cassandra-CumulusRDF
8a1359ceec94eb972c8d9710de0e22bc25a15ab4
[ "Apache-2.0" ]
92
2015-01-15T17:12:34.000Z
2017-03-13T03:18:11.000Z
cumulusrdf-integration-tests/src/test/resources/LearningSPARQLExamples/ex363.py
jlavan1/Cassandra-CumulusRDF
8a1359ceec94eb972c8d9710de0e22bc25a15ab4
[ "Apache-2.0" ]
99
2015-01-01T11:32:42.000Z
2017-03-05T09:52:44.000Z
cumulusrdf-integration-tests/src/test/resources/LearningSPARQLExamples/ex363.py
jlavan1/Cassandra-CumulusRDF
8a1359ceec94eb972c8d9710de0e22bc25a15ab4
[ "Apache-2.0" ]
14
2015-03-27T12:36:20.000Z
2016-06-27T15:53:04.000Z
# filename: ex363.py # Query Linked Movie database endpoint about common actors of # two directors and output HTML page with links to Freebase. from SPARQLWrapper import SPARQLWrapper, JSON director1 = "Steven Spielberg" director2 = "Stanley Kubrick" sparql = SPARQLWrapper("http://data.linkedmdb.org/sparq...
26.983051
81
0.638819
32d4465d8f654f5e40f07b3076b9bfa080e96ef7
9,010
py
Python
mayan/apps/documents/tests/test_models.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/documents/tests/test_models.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
mayan/apps/documents/tests/test_models.py
nadwiabd/insight_edms
90a09d7ca77cb111c791e307b55a603e82042dfe
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from datetime import timedelta import time from common.tests import BaseTestCase from django.test import override_settings from ..literals import STUB_EXPIRATION_INTERVAL from ..models import DeletedDocument, Document, DocumentType from .literals import ( TEST_DOCUMENT_TY...
32.527076
78
0.674029
c9203832204fe8531c2d7e196f0834a8d4bab942
2,477
py
Python
shop/form.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
null
null
null
shop/form.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
1
2022-02-28T05:57:25.000Z
2022-02-28T05:57:25.000Z
shop/form.py
yuki5g/furima
9239359f17da0a5520a494910fbff043c26e1eee
[ "BSD-2-Clause" ]
null
null
null
from django import forms from django.contrib.auth import get_user_model from django.contrib.auth.forms import ( UserCreationForm, PasswordChangeForm, PasswordResetForm ) from .models import User,ModelItemList # # 商品情報フォーム # class itemForm(forms.ModelForm): '''商品情報フォーム''' class Meta: model...
25.802083
73
0.524425
c77db59a39412d5056d404fdc63d86402e2fd6c4
697
py
Python
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
22
2020-04-04T17:34:16.000Z
2021-09-25T00:22:23.000Z
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
92
2020-04-04T15:30:34.000Z
2022-03-24T01:43:11.000Z
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
37
2020-04-16T02:47:07.000Z
2021-03-28T23:18:50.000Z
from core.advbase import * class Pecorine(Adv): def prerun(self): self.gourmand_gauge = 0 self.gourmand_mode = ModeManager(group="gourmand", fs=True, s1=True, duration=20, pause=("s", "dragon")) def a1_update(self, gauge): if not self.gourmand_mode.get(): self.gourmand_gau...
31.681818
112
0.621234
21a8ea8fd27c4d15a5e73326f155edf98eaf7637
892
py
Python
src/main/python/trec-run.py
searsia/searsiafedweb
1d7c73c84019650f4c0c71a1b7ef9307ffcc1854
[ "Apache-2.0" ]
null
null
null
src/main/python/trec-run.py
searsia/searsiafedweb
1d7c73c84019650f4c0c71a1b7ef9307ffcc1854
[ "Apache-2.0" ]
null
null
null
src/main/python/trec-run.py
searsia/searsiafedweb
1d7c73c84019650f4c0c71a1b7ef9307ffcc1854
[ "Apache-2.0" ]
null
null
null
import requests import sys import xml.etree.ElementTree URL = 'http://localhost:16842/searsia/search' def trecout(qid, json): tag = json['searsia'].replace('.', 'x') nr = 1 done = dict() for hit in json['hits']: rid = hit['rid'] if (not rid in done): print qid, 'Q0', 'FW1...
28.774194
92
0.577354
15d898d3b95b568eb5316e3d979e8908501ceca9
838
py
Python
topic-modeling-service/backfill.py
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
6
2019-12-25T19:04:54.000Z
2021-06-16T08:43:56.000Z
topic-modeling-service/backfill.py
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
null
null
null
topic-modeling-service/backfill.py
yuchiu/Latest-News
1cdbf9c9cc0738d1b5641f921dc5f8bc59b36456
[ "MIT" ]
7
2019-01-04T13:59:04.000Z
2020-08-15T09:16:34.000Z
import os import sys # import config package in parent directory sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) import mongodb_client # pylint: disable=E0401 import news_topic_modeling_service_client # pylint: disable=E0401 if __name__ == '__main__': db = mongodb_client.get_db() c...
31.037037
76
0.613365
2b630fa942c57a989a46ed0e00f1928016a77358
2,557
py
Python
tronn/analyzevariants_cmd.py
kundajelab/tronn
59654a958f6debb5be150e383e96997f1982359d
[ "MIT" ]
5
2020-10-18T21:17:44.000Z
2021-11-30T06:25:09.000Z
tronn/analyzevariants_cmd.py
kundajelab/tronn
59654a958f6debb5be150e383e96997f1982359d
[ "MIT" ]
1
2021-11-18T13:03:48.000Z
2021-11-18T13:03:48.000Z
tronn/analyzevariants_cmd.py
kundajelab/tronn
59654a958f6debb5be150e383e96997f1982359d
[ "MIT" ]
null
null
null
# description: scan motifs and get motif sets (co-occurring motifs) back import os import h5py import logging from tronn.interpretation.inference import run_inference from tronn.interpretation.variants import get_differential_variants from tronn.interpretation.variants import annotate_variants from tronn.preprocess.v...
31.567901
80
0.68596
8776a5f7c4804c6efd6e929371b7cd3c80901941
4,024
py
Python
validation_scripts/dice_boxplot_I&L.py
lodurality/NFB_skullstripped
ca2fcf78ec10c3f64d28010172b4ad7eb96b386f
[ "MIT" ]
12
2016-10-05T14:24:31.000Z
2021-12-15T14:36:47.000Z
validation_scripts/dice_boxplot_I&L.py
lodurality/NFB_skullstripped
ca2fcf78ec10c3f64d28010172b4ad7eb96b386f
[ "MIT" ]
1
2021-03-02T09:10:27.000Z
2021-03-02T09:10:27.000Z
validation_scripts/dice_boxplot_I&L.py
lodurality/NFB_skullstripped
ca2fcf78ec10c3f64d28010172b4ad7eb96b386f
[ "MIT" ]
3
2016-06-09T14:49:08.000Z
2021-01-25T05:41:28.000Z
#DICE coefficient plot #Ben Puccio #2016-06-08 # # #Load numpy arrays of IBSR & LPBA40 dice coefficients from dice.py #Make boxplot using Matplotlib and Seaborn import numpy as np import matplotlib.pyplot as plt import seaborn as sns import pandas as pd #read each dice numpy array ss = np.load('/home/bpuccio/dice/IB...
32.983607
85
0.747266
d6db90ba38777d37a6f252956c8a167fa5b3fd88
227
py
Python
analyser/urls.py
ripoul/workshop-i2-back
64f1e4146edad1e8e079aefad92f1751266270cf
[ "MIT" ]
null
null
null
analyser/urls.py
ripoul/workshop-i2-back
64f1e4146edad1e8e079aefad92f1751266270cf
[ "MIT" ]
6
2021-04-08T20:49:14.000Z
2022-02-10T10:59:45.000Z
analyser/urls.py
ripoul/workshop-i2-back
64f1e4146edad1e8e079aefad92f1751266270cf
[ "MIT" ]
null
null
null
from . import views from django.urls import include, path urlpatterns = [ path('', views.index, name='index'), path('api/search', views.search, name='search'), path('api/get_all', views.get_all, name='get_all'), ]
25.222222
55
0.665198
24637942e5370edc23ca71d59dc68d5682f3ccb4
2,940
py
Python
games/paintball_gun/game.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
21
2020-11-03T23:41:56.000Z
2022-03-21T04:11:46.000Z
games/paintball_gun/game.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
5
2021-02-11T14:36:03.000Z
2021-07-20T11:45:07.000Z
games/paintball_gun/game.py
bn102/surrortg-sdk
5f51515d0fd83741b3359b9a682c0a9afc38886f
[ "MIT" ]
11
2020-11-13T11:14:33.000Z
2022-03-21T04:11:51.000Z
import asyncio import logging import keyboard from games.paintball_gun.config import ( MAX_TRIGGER_PRESSES, ON_LEVEL_LOW, TRIGGER_PIN, ) from surrortg import Game from surrortg.devices import Relay from surrortg.inputs import Switch class TriggerSwitch(Switch): def __init__(self, pin, max_presses, o...
27.735849
78
0.62517
17da1b587d214819f888e0a35b09133d46fca6ec
594
py
Python
build/lib/ctrlengine/sensors/camera.py
0xJeremy/ctrl.engine
19abba70df149a05edc5722cc95ceacc538448e6
[ "MIT" ]
3
2020-04-18T19:28:15.000Z
2021-02-25T18:48:08.000Z
build/lib/ctrlengine/sensors/camera.py
0xJeremy/ctrl.engine
19abba70df149a05edc5722cc95ceacc538448e6
[ "MIT" ]
null
null
null
build/lib/ctrlengine/sensors/camera.py
0xJeremy/ctrl.engine
19abba70df149a05edc5722cc95ceacc538448e6
[ "MIT" ]
null
null
null
from threading import Thread import cv2 class camera(): RESOLUTION = (640, 480) def __init__(self, cam_src=0, resolution=RESOLUTION): self.cam = cv2.VideoCapture(cam_src) self.cam.set(3, resolution[0]) self.cam.set(4, resolution[1]) self.ret = None self.frame = None self.stopped = False Thread(target=s...
19.8
54
0.685185
eb6315ccbc1d5ae218312a83a12a32bd41a1e6cc
3,283
py
Python
tcd_browser.py
raefko/ghidra-dark
e1bfc3a7e04a3ffad5634be9bb1e312a174dc26b
[ "MIT" ]
null
null
null
tcd_browser.py
raefko/ghidra-dark
e1bfc3a7e04a3ffad5634be9bb1e312a174dc26b
[ "MIT" ]
null
null
null
tcd_browser.py
raefko/ghidra-dark
e1bfc3a7e04a3ffad5634be9bb1e312a174dc26b
[ "MIT" ]
null
null
null
"""Represents _code_browser.tcd""" import sys import xml.etree.ElementTree as ET import xml.dom.minidom as MD from preferences import Wrapped class TCDBrowser: def __init__(self, path: str) -> None: self.path = path tree = ET.parse(path) self.root = tree.getroot() def _indent(self, ele...
40.036585
105
0.503503
31d28c1307985f2e7fc213d64d4bd6a47bce10ec
15,198
py
Python
avod/core/box_4c_encoder.py
AhmedYousriSobhi/avod
04a8c1edd87811139cbb2318796f0eb226e7c039
[ "MIT" ]
null
null
null
avod/core/box_4c_encoder.py
AhmedYousriSobhi/avod
04a8c1edd87811139cbb2318796f0eb226e7c039
[ "MIT" ]
null
null
null
avod/core/box_4c_encoder.py
AhmedYousriSobhi/avod
04a8c1edd87811139cbb2318796f0eb226e7c039
[ "MIT" ]
null
null
null
import numpy as np import tensorflow.compat.v1 as tf from wavedata.tools.core import geometry_utils from avod.core import box_3d_encoder from avod.core import format_checker """Box4c Encoder Converts boxes between the box_3d and box_4c formats. - box_4c format: [x1, x2, x3, x4, z1, z2, z3, z4, h1, h2] - corners are ...
31.336082
79
0.635347
2ce471283870b437771eb001ddf5999479a71363
824
py
Python
setup.py
synw/django-dex
67ac968427209e4b74b57cfa98d38a33337b024f
[ "MIT" ]
4
2017-08-03T00:48:51.000Z
2021-03-03T10:36:52.000Z
setup.py
synw/django-dex
67ac968427209e4b74b57cfa98d38a33337b024f
[ "MIT" ]
1
2017-08-26T18:28:47.000Z
2017-08-26T18:28:47.000Z
setup.py
synw/django-dex
67ac968427209e4b74b57cfa98d38a33337b024f
[ "MIT" ]
1
2019-05-09T00:17:58.000Z
2019-05-09T00:17:58.000Z
from setuptools import setup, find_packages version = __import__('dex').__version__ setup( name='django-dex', packages=find_packages(), include_package_data=True, version=version, description='Database export tools for Django', author='synw', author_email='synwe@yahoo.com', url='https...
27.466667
78
0.633495
947ec86b7caab5050eddb7f6139d0e980ebcc70a
152
py
Python
docs/tutorials/_tutorial_setup.py
jecorona97/bionic
b7cfa946e68a35be38196843a1a4b45a4e6383c6
[ "Apache-2.0" ]
null
null
null
docs/tutorials/_tutorial_setup.py
jecorona97/bionic
b7cfa946e68a35be38196843a1a4b45a4e6383c6
[ "Apache-2.0" ]
null
null
null
docs/tutorials/_tutorial_setup.py
jecorona97/bionic
b7cfa946e68a35be38196843a1a4b45a4e6383c6
[ "Apache-2.0" ]
null
null
null
import sys from pathlib2 import Path project_path = str(Path('../..').resolve()) if project_path not in sys.path: sys.path.insert(0, project_path)
21.714286
43
0.717105
24ff7aadb575ce623beb7f4d65a73641367f4e6a
3,726
py
Python
apps/cms/migrations/0001_squashed_0004_auto_20190409_1905.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/cms/migrations/0001_squashed_0004_auto_20190409_1905.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/cms/migrations/0001_squashed_0004_auto_20190409_1905.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
# Generated by Django 2.1.2 on 2019-04-09 20:11 from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import wagtail.core.blocks import wagtail.core.fields import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): replaces = [...
70.301887
1,128
0.671766
d6bf1844ccd7fbc37600e63b630c519540a465d3
3,073
py
Python
keff_search.py
aethnight/openmc
ec3416c0ab66b5b6eb66ac7530a91f7cedf5fb44
[ "MIT" ]
null
null
null
keff_search.py
aethnight/openmc
ec3416c0ab66b5b6eb66ac7530a91f7cedf5fb44
[ "MIT" ]
null
null
null
keff_search.py
aethnight/openmc
ec3416c0ab66b5b6eb66ac7530a91f7cedf5fb44
[ "MIT" ]
null
null
null
# Initialize third-party libraries and the OpenMC Python API import openmc import openmc.model # Create the model. `ppm_Boron` will be the parametric variable. def build_model(ppm_Boron): # Create the pin materials fuel = openmc.Material(name='1.6% Fuel') fuel.set_density('g/cm3', 10.31341) fuel.add_e...
36.152941
144
0.700944
840e752690667734b5f5a02d9958aae54fc4ddda
1,378
py
Python
sdk/servicebus/azure-servicebus/samples/async_samples/receive_subscription_async.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/servicebus/azure-servicebus/samples/async_samples/receive_subscription_async.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/servicebus/azure-servicebus/samples/async_samples/receive_subscription_async.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
35.333333
109
0.642961
9d1bb09d13a28ab796c683027cbaa9ca2c8e9cc9
964
py
Python
venv/lib/python3.8/site-packages/django/conf/locale/bn/formats.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
venv/lib/python3.8/site-packages/django/conf/locale/bn/formats.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
venv/lib/python3.8/site-packages/django/conf/locale/bn/formats.py
Joshua-Barawa/My-Photos
adcaea48149c6b31e9559b045709d538d0b749bc
[ "PostgreSQL", "Unlicense" ]
4
2022-03-12T10:17:00.000Z
2022-03-26T08:40:43.000Z
# This file is distributed under the same license as the Django package. # # The *_FORMAT strings use the Django date format syntax, # see https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date DATE_FORMAT = "j F, Y" TIME_FORMAT = "g:i A" # DATETIME_FORMAT = YEAR_MONTH_FORMAT = "F Y" MONTH_DAY_FORMAT = "j F...
29.212121
78
0.650415
6279fb23b0c3b74e892b6641b71f880a9dded10c
1,755
py
Python
dizoo/mujoco/config/halfcheetah_ddpg_default_config.py
puyuan1996/DI-engine
da99c01e06589033b7412829dc2f2c339083f219
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
dizoo/mujoco/config/halfcheetah_ddpg_default_config.py
puyuan1996/DI-engine
da99c01e06589033b7412829dc2f2c339083f219
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
dizoo/mujoco/config/halfcheetah_ddpg_default_config.py
puyuan1996/DI-engine
da99c01e06589033b7412829dc2f2c339083f219
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
from easydict import EasyDict halfcheetah_ddpg_default_config = dict( env=dict( env_id='HalfCheetah-v3', norm_obs=dict(use_norm=False, ), norm_reward=dict(use_norm=False, ), collector_env_num=1, evaluator_env_num=8, use_act_scale=True, n_evaluator_episode=8, ...
28.770492
89
0.618803
571040994fd2143fab64efc752780870b6de5c35
3,902
py
Python
Lib/site-packages/SiQt/siqt/dep_resolv.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/SiQt/siqt/dep_resolv.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/SiQt/siqt/dep_resolv.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import six def show_qt_control_element(el): def f(status=False): #el.setDisabled(not status) el.setEnabled(status) return f def sync_gui(lock=[], update=[], ...
28.691176
91
0.542799
54d292085c1074d60c16f9bfcab3021bee3be286
13,004
py
Python
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2006_ownership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2006_ownership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v3/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2006_ownership.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Stocks API For Digital Portals The stocks API features a screener to search for equity instruments based on stock-specific parameters. Parameters for up to three fiscal years might now be used in one request; data is available for the ten most recent completed fiscal years. Estimates are available for the...
50.015385
1,585
0.603814
3d6290cfe8a305d1546c7acdef7edc29e6a5adf7
129
py
Python
lc/diffcali.py
RapidLzj/LightCurve
984627e78fee97872183dcc8d4d4ccf02b44eeb4
[ "MIT" ]
null
null
null
lc/diffcali.py
RapidLzj/LightCurve
984627e78fee97872183dcc8d4d4ccf02b44eeb4
[ "MIT" ]
null
null
null
lc/diffcali.py
RapidLzj/LightCurve
984627e78fee97872183dcc8d4d4ccf02b44eeb4
[ "MIT" ]
null
null
null
""" 201901, Dr. Jie Zheng, Beijing & Xinglong, NAOC Light_Curve """ import numpy as np import astropy.io.fits as fits
12.9
51
0.666667
0705b824519dc92496321217485d220b3db7726a
9,256
py
Python
ansys_corba/omniORB/COS/CosExternalizationContainment_idl.py
pyansys/ansys_corba
91e4e66a48143c827f56cf1113145bb48d5f4d6a
[ "MIT" ]
6
2021-04-26T09:25:48.000Z
2022-03-26T05:09:38.000Z
ansys_corba/omniORB/COS/CosExternalizationContainment_idl.py
pyansys/ansys_corba
91e4e66a48143c827f56cf1113145bb48d5f4d6a
[ "MIT" ]
3
2022-03-14T08:17:21.000Z
2022-03-17T20:07:23.000Z
ansys_corba/omniORB/COS/CosExternalizationContainment_idl.py
pyansys/pymapdl-corba
91e4e66a48143c827f56cf1113145bb48d5f4d6a
[ "MIT" ]
1
2020-11-11T11:10:19.000Z
2020-11-11T11:10:19.000Z
# Python stubs generated by omniidl from /tmp/corba/omni/share/idl/omniORB/COS/CosExternalizationContainment.idl # DO NOT EDIT THIS FILE! import omniORB, _omnipy from omniORB import CORBA, PortableServer _0_CORBA = CORBA _omnipy.checkVersion(4,2, __file__, 1) try: property except NameError: def property(*ar...
42.26484
172
0.844317
d3b6b9f48c8bd6d0233c7b5dde2fd655fabdbab4
1,896
py
Python
matflow/database/ServerData.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
matflow/database/ServerData.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
matflow/database/ServerData.py
soerenray/MatFlow
db0c8311262738264f1c525b8266a2bf52a7b7e6
[ "MIT" ]
null
null
null
from matflow.database.DatabaseTable import DatabaseTable from matflow.hardwareadministration.Server import Server from typing import List, Tuple class ServerData: __instance = None databaseTable: DatabaseTable @staticmethod def get_instance(): if ServerData.__instance is None: Ser...
31.081967
101
0.593354
8f0996311cd102bec4335c6a2a3e87058497dc9f
3,042
py
Python
ceilometer/compute/manager.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
1
2021-11-22T11:00:53.000Z
2021-11-22T11:00:53.000Z
ceilometer/compute/manager.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
null
null
null
ceilometer/compute/manager.py
CiscoSystems/ceilometer
a9267fd94e7854afa0720d761fbe75d946e7167d
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2012-2013 eNovance <licensing@enovance.com> # # Author: Julien Danjou <julien@danjou.info> # # 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 # # h...
35.788235
77
0.633136
25b5501152000c8b4c5860282c9096b2295229a7
15,582
py
Python
topi/python/topi/generic/nn.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
4
2018-01-09T07:35:33.000Z
2021-04-20T05:52:50.000Z
topi/python/topi/generic/nn.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
null
null
null
topi/python/topi/generic/nn.py
yongfeng-nv/incubator-tvm
a6cb4b8d3778db5341f991db9adf76ff735b72ea
[ "Apache-2.0" ]
3
2020-12-10T23:21:18.000Z
2020-12-11T01:04:50.000Z
# Licensed to the Apache Software Foundation (ASF) 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 u...
23.935484
71
0.638557
f000325f411173f180d9aa63889796fbb97752f8
1,871
py
Python
docs/wcs/examples/programmatic.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
2
2019-12-30T17:59:02.000Z
2019-12-30T17:59:05.000Z
docs/wcs/examples/programmatic.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
10
2017-03-15T16:14:43.000Z
2018-11-22T14:40:54.000Z
docs/wcs/examples/programmatic.py
jayvdb/astropy
bc6d8f106dd5b60bf57a8e6e29c4e2ae2178991f
[ "BSD-3-Clause" ]
1
2020-01-23T00:41:10.000Z
2020-01-23T00:41:10.000Z
# Set the WCS information manually by setting properties of the WCS # object. import numpy as np from astropy import wcs from astropy.io import fits # Create a new WCS object. The number of axes must be set # from the start w = wcs.WCS(naxis=2) # Set up an "Airy's zenithal" projection # Vector properties may be set...
31.711864
76
0.71566
18564f02c4ea6c18d7116e36527c1ed5b7920a49
34,042
py
Python
sympy/holonomic/tests/test_holonomic.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
8,323
2015-01-02T15:51:43.000Z
2022-03-31T13:13:19.000Z
sympy/holonomic/tests/test_holonomic.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
15,102
2015-01-01T01:33:17.000Z
2022-03-31T22:53:13.000Z
sympy/holonomic/tests/test_holonomic.py
shilpiprd/sympy
556e9c61b31d0d5f101cd56b43e843fbf3bcf121
[ "BSD-3-Clause" ]
4,490
2015-01-01T17:48:07.000Z
2022-03-31T17:24:05.000Z
from sympy.holonomic import (DifferentialOperator, HolonomicFunction, DifferentialOperators, from_hyper, from_meijerg, expr_to_holonomic) from sympy.holonomic.recurrence import RecurrenceOperators, HolonomicSequence from sympy import (symbols, hyper, S, sqrt, pi...
41.718137
153
0.521297
85a1516f2ad665e0677e81879b77e678933e9173
3,306
py
Python
lib/pymedphys/cli/experimental/pinnacle.py
ayalalazaro/pymedphys
be980e9f92232d612865107b63a15012e6afeca1
[ "Apache-2.0" ]
null
null
null
lib/pymedphys/cli/experimental/pinnacle.py
ayalalazaro/pymedphys
be980e9f92232d612865107b63a15012e6afeca1
[ "Apache-2.0" ]
null
null
null
lib/pymedphys/cli/experimental/pinnacle.py
ayalalazaro/pymedphys
be980e9f92232d612865107b63a15012e6afeca1
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 South Western Sydney Local Health District, # University of New South Wales # 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...
27.098361
100
0.602238
ac49da26023a0c907996a1bd985e4c1321356096
438
py
Python
config.py
Sinahag/Portfolio
c414ac83dc47e6c34ca9dd395207b2e100bbe063
[ "Apache-2.0" ]
null
null
null
config.py
Sinahag/Portfolio
c414ac83dc47e6c34ca9dd395207b2e100bbe063
[ "Apache-2.0" ]
1
2022-03-18T03:00:48.000Z
2022-03-18T03:00:48.000Z
config.py
Sinahag/Portfolio
c414ac83dc47e6c34ca9dd395207b2e100bbe063
[ "Apache-2.0" ]
null
null
null
import os BASE_DIR = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or "0GcTBsB7OMjwUUvrr6XWU5us3NLYon5j" CSRF_ENABLED = True CSRF_SESSION_KEY = "secret" MONGODB_SETTINGS = { 'db' : 'portfolio' , 'host' : 'mongodb+srv://portfolio.vrd4...
36.5
153
0.728311
e5b5c8ad4b4ee5189460cd3bf0c0178de47dbf8b
11,808
py
Python
core/dbt/parser/models.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/models.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
core/dbt/parser/models.py
jankytara2/dbt
3f4069ab6d4d5b3fc34f8fe785761b5617357b0f
[ "Apache-2.0" ]
null
null
null
from copy import deepcopy from dbt.context.context_config import ContextConfig from dbt.contracts.graph.parsed import ParsedModelNode import dbt.flags as flags from dbt.logger import GLOBAL_LOGGER as logger from dbt.node_types import NodeType from dbt.parser.base import SimpleSQLParser from dbt.parser.search import Fil...
40.300341
99
0.632791
164e67b8aa48a078e938ed4314778b2faa79e69f
1,383
py
Python
QLearning/keras_helpers.py
selenecodes/MLWorkshop-Answers
c2b6b56f5b5a5c2b289eefb397692a7aa971e816
[ "MIT" ]
null
null
null
QLearning/keras_helpers.py
selenecodes/MLWorkshop-Answers
c2b6b56f5b5a5c2b289eefb397692a7aa971e816
[ "MIT" ]
2
2020-09-25T21:48:43.000Z
2022-02-10T01:46:30.000Z
QLearning/keras_helpers.py
selenecodes/MLWorkshop-Answers
c2b6b56f5b5a5c2b289eefb397692a7aa971e816
[ "MIT" ]
null
null
null
import tensorflow as tf from packaging import version def importantText(text, color='red', underline=True): """ Function used to make print statements more legible """ if color == 'green': colorANSI = 92 if color == 'red': colorANSI = 91 if underline: effectsANSI = '1;4;' ...
32.928571
101
0.663051
dd99b81fb6764e9c8fccc8ff459dad34107e3e0a
33,562
py
Python
pandas/tests/dtypes/test_dtypes.py
rkbk2000/pandas
e95ac5c4fd49acf63bb671f81e97ddeb4a1460f0
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-04-06T16:50:48.000Z
2020-04-06T16:50:48.000Z
pandas/tests/dtypes/test_dtypes.py
Cardosaum/pandas
8f9266a9dac8b041193bf85156d0df1660a660b1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/dtypes/test_dtypes.py
Cardosaum/pandas
8f9266a9dac8b041193bf85156d0df1660a660b1
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import re import numpy as np import pytest import pytz from pandas.core.dtypes.common import ( is_bool_dtype, is_categorical, is_categorical_dtype, is_datetime64_any_dtype, is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, is_dtype_equal, is_interval_dtype, is...
35.106695
88
0.628687
81f877fec2f8309631c3d6d526e1c79d07e4d7fe
1,317
py
Python
jumpgate/cmd_main.py
wpf710/app-proxy
3340cdb90fea8da26fc82211a1e14c5e43beeae0
[ "MIT" ]
10
2015-01-19T14:21:32.000Z
2018-12-01T17:17:30.000Z
jumpgate/cmd_main.py
wpf710/app-proxy
3340cdb90fea8da26fc82211a1e14c5e43beeae0
[ "MIT" ]
6
2015-01-19T14:29:43.000Z
2015-07-02T11:09:32.000Z
jumpgate/cmd_main.py
wpf710/app-proxy
3340cdb90fea8da26fc82211a1e14c5e43beeae0
[ "MIT" ]
7
2015-02-18T01:57:04.000Z
2018-12-01T17:17:31.000Z
from __future__ import print_function import argparse import os from wsgiref import simple_server from jumpgate import wsgi def main(): description = 'Start a single-threaded instance of jumpgate.' parser = argparse.ArgumentParser(description=description) parser.add_argument('--config', ...
35.594595
73
0.591496
1c5c4754b228bfb40507a6469e1c5c17c9eeca0d
1,798
py
Python
setup.py
15five/drift-api
8d302d06c0064b2ae46b30df40faa62338ffcec8
[ "MIT" ]
6
2018-03-27T13:42:40.000Z
2020-07-25T17:04:47.000Z
setup.py
15five/drift-api
8d302d06c0064b2ae46b30df40faa62338ffcec8
[ "MIT" ]
9
2018-05-29T20:57:19.000Z
2018-05-29T21:12:44.000Z
setup.py
15five/drift-api
8d302d06c0064b2ae46b30df40faa62338ffcec8
[ "MIT" ]
2
2018-09-06T03:54:17.000Z
2019-12-30T18:37:28.000Z
#!/usr/bin/env python from setuptools import setup import os BASE_DIR = os.path.dirname(os.path.abspath(__file__)) def get_version(): path = os.path.join(BASE_DIR, 'drift_api', '__init__.py') version_line = None with open(path) as fp: for line in fp: if line.startswith('__version__'...
28.539683
74
0.614016
99267c432935c0f6e6769c84add6f882ffaf2799
31,857
py
Python
generate-figures-and-tables.py
mattwala/gigaqbx-ts-paper-code
6a8315bfd68da1cc6fd82bc204777f8e3dfaa9b2
[ "MIT" ]
null
null
null
generate-figures-and-tables.py
mattwala/gigaqbx-ts-paper-code
6a8315bfd68da1cc6fd82bc204777f8e3dfaa9b2
[ "MIT" ]
null
null
null
generate-figures-and-tables.py
mattwala/gigaqbx-ts-paper-code
6a8315bfd68da1cc6fd82bc204777f8e3dfaa9b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Generate figures from experimental data""" import matplotlib import numpy as np # noqa import os import io import json import utils import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) # Whether to generate a PDF file. If False, will generate pgf. G...
29.040109
113
0.60329
dce2b4cde92260e188e553b6d0b4635768b67b4a
9,536
py
Python
python3_cron_scripts/libs3/InfobloxDNSManager.py
bhumikaSinghal/Marinus
d64cf6217e422bb0be8b19f50b9a63e01d7b0783
[ "Apache-2.0" ]
null
null
null
python3_cron_scripts/libs3/InfobloxDNSManager.py
bhumikaSinghal/Marinus
d64cf6217e422bb0be8b19f50b9a63e01d7b0783
[ "Apache-2.0" ]
null
null
null
python3_cron_scripts/libs3/InfobloxDNSManager.py
bhumikaSinghal/Marinus
d64cf6217e422bb0be8b19f50b9a63e01d7b0783
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2018 Adobe. All rights reserved. # This file is licensed to you 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 requir...
40.578723
104
0.640101
10a5932731e3b6652587deaad5ef15191df6cf38
56,909
py
Python
pandas/core/algorithms.py
tyvich/pandas
22de58e63f9271d4ddb2bf49d008c5a9550c5cc4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
pandas/core/algorithms.py
tyvich/pandas
22de58e63f9271d4ddb2bf49d008c5a9550c5cc4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
pandas/core/algorithms.py
tyvich/pandas
22de58e63f9271d4ddb2bf49d008c5a9550c5cc4
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
""" Generic data algorithms. This module is experimental at the moment and not intended for public consumption """ from __future__ import annotations import operator from textwrap import dedent from typing import ( TYPE_CHECKING, Literal, Union, cast, final, ) from warnings import warn import nump...
30.828277
88
0.608656
6da548c52197f092385d022609dc86e219a9b45b
3,551
py
Python
similarity/fuzzy.py
Babylonpartners/fuzzymax
5cebe52bbf76d9ab25ca0cc095b555693999ec7d
[ "Apache-2.0", "BSD-3-Clause" ]
25
2019-01-11T11:49:10.000Z
2019-10-16T13:43:10.000Z
similarity/fuzzy.py
babylonhealth/fuzzymax
5cebe52bbf76d9ab25ca0cc095b555693999ec7d
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
similarity/fuzzy.py
babylonhealth/fuzzymax
5cebe52bbf76d9ab25ca0cc095b555693999ec7d
[ "Apache-2.0", "BSD-3-Clause" ]
1
2020-04-07T12:59:03.000Z
2020-04-07T12:59:03.000Z
# Copyright 2018 Babylon Partners. 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 applicable la...
30.878261
80
0.652211
9d8b763c275fa97ac04b01698d78bdab5fed4472
65,169
py
Python
tests/helpers/test_template.py
pszafer/core
ab6fb5cb7705a7f2e3a4f310b5d42047c3372bd2
[ "Apache-2.0" ]
3
2019-07-06T08:00:22.000Z
2021-11-12T23:01:59.000Z
tests/helpers/test_template.py
pszafer/core
ab6fb5cb7705a7f2e3a4f310b5d42047c3372bd2
[ "Apache-2.0" ]
44
2020-08-03T07:31:07.000Z
2022-03-31T06:02:04.000Z
tests/helpers/test_template.py
titilambert/home-assistant
a2651845f379992231fd7b9c8458828036296ee0
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Test Home Assistant template helper methods.""" from datetime import datetime import math import random import pytest import pytz from homeassistant.components import group from homeassistant.const import ( LENGTH_METERS, MASS_GRAMS, MATCH_ALL, PRESSURE_PA, TEMP_CELSIUS, VOLUME_LITERS, ) fr...
28.874169
116
0.5798
b2c4570c053c3b967a09bf841046a0f787ae9093
185
py
Python
sdk/python/gust/core/__init__.py
CookiesCo/OpenCannabis
a7bb1f71200c6b8f56c509df47039198f0c3bd4c
[ "MIT" ]
2
2020-08-27T00:45:49.000Z
2021-06-19T08:01:13.000Z
sdk/python/gust/core/__init__.py
CookiesCo/OpenCannabis
a7bb1f71200c6b8f56c509df47039198f0c3bd4c
[ "MIT" ]
67
2020-08-27T03:16:33.000Z
2022-03-26T14:33:38.000Z
sdk/python/gust/core/__init__.py
CookiesCo/OpenCannabis
a7bb1f71200c6b8f56c509df47039198f0c3bd4c
[ "MIT" ]
1
2020-11-12T04:26:43.000Z
2020-11-12T04:26:43.000Z
# ~*~ coding: utf-8 ~*~ __doc__ = """ `gust.core` --------------------------- Core declaration and binding objects. """ # `gust.core` from . import datamodel_pb2 as datamodel
14.230769
40
0.535135
52f079ef328b3c999e440647ec7c846093952c13
59,734
py
Python
anyway/flask_app.py
assafdayan/anyway
44f5233b8648735d0700fc3fde4d57416e97aab2
[ "MIT" ]
null
null
null
anyway/flask_app.py
assafdayan/anyway
44f5233b8648735d0700fc3fde4d57416e97aab2
[ "MIT" ]
null
null
null
anyway/flask_app.py
assafdayan/anyway
44f5233b8648735d0700fc3fde4d57416e97aab2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=no-member import base64 import csv import datetime import json import logging from io import StringIO import os import time import flask_admin as admin import flask_login as login import jinja2 import pandas as pd from flask import make_response, render_template, Response, jso...
34.231519
146
0.645043
a43ea376faa64edd6fa1367c9ab69212016a329b
289
py
Python
moderate/urls.py
sandnima/blog-with-Django
77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7
[ "MIT" ]
null
null
null
moderate/urls.py
sandnima/blog-with-Django
77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7
[ "MIT" ]
null
null
null
moderate/urls.py
sandnima/blog-with-Django
77cb90f4e3aa70efa8d5190146f6acb4cd22d9a7
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( moderate, article_list ) app_name = 'moderate' urlpatterns = [ path('', moderate, name='index'), path('blog/', article_list, name='article_list_index'), path('blog/p-<int:page>/', article_list, name='article_list'), ]
22.230769
66
0.66782
415d9e36dd93e8b313e6ebad6adc0a36c470ddad
964
py
Python
emoji/data/ProjectFlexduino_NIrJMGHKlA/files/flexduino_servo_control_1480981271977413.py
lejh1/data_visuals
bd4c24495271ef47c7357c5ea4e74d99181e2111
[ "Apache-2.0" ]
1
2020-07-30T19:26:59.000Z
2020-07-30T19:26:59.000Z
emoji/data/ProjectFlexduino_NIrJMGHKlA/files/flexduino_servo_control_1480981271977413.py
lejh1/data_visuals
bd4c24495271ef47c7357c5ea4e74d99181e2111
[ "Apache-2.0" ]
null
null
null
emoji/data/ProjectFlexduino_NIrJMGHKlA/files/flexduino_servo_control_1480981271977413.py
lejh1/data_visuals
bd4c24495271ef47c7357c5ea4e74d99181e2111
[ "Apache-2.0" ]
null
null
null
import bluetooth from tkinter import * from flexduino_coordinates import * # Search for bluetooth device print("Searching for devices...\n") # Create an array with discovered devices nearby_devices = bluetooth.discover_devices() if not len(nearby_devices): print("No Devices Found") print("Select your device ...
31.096774
81
0.717842
9cac7425f9c3b44e8e65702bb270ca4ae275fd66
278
py
Python
bitmovin_api_sdk/encoding/encodings/live/__init__.py
bitmovin/bitmovin-api-sdk-python
5a85147669c84b8ca411cf2d4dbdddc92d85bbe7
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/encoding/encodings/live/__init__.py
bitmovin/bitmovin-api-sdk-python
5a85147669c84b8ca411cf2d4dbdddc92d85bbe7
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/encoding/encodings/live/__init__.py
bitmovin/bitmovin-api-sdk-python
5a85147669c84b8ca411cf2d4dbdddc92d85bbe7
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
from bitmovin_api_sdk.encoding.encodings.live.live_api import LiveApi from bitmovin_api_sdk.encoding.encodings.live.insertable_content.insertable_content_api import InsertableContentApi from bitmovin_api_sdk.encoding.encodings.live.scte35_cue.scte35_cue_api import Scte35CueApi
69.5
115
0.906475
7cfe59cc8030e11d5cd26df7ccfa8a7df61598ec
2,414
py
Python
tests/test_wfdb_loader.py
nickzhuang0613/pyECG
803f39088a504796357346dc3fd526c4b641bb5c
[ "MIT" ]
1
2021-03-13T04:30:13.000Z
2021-03-13T04:30:13.000Z
tests/test_wfdb_loader.py
nickzhuang0613/pyECG
803f39088a504796357346dc3fd526c4b641bb5c
[ "MIT" ]
null
null
null
tests/test_wfdb_loader.py
nickzhuang0613/pyECG
803f39088a504796357346dc3fd526c4b641bb5c
[ "MIT" ]
null
null
null
import pytest from pyecg import ECGRecord @pytest.mark.parametrize("hea_path", ["tests/wfdb/nonexistent", "tests/wfdb/nonexistent.hea"]) def test_file_notfound(hea_path): with pytest.raises(FileNotFoundError): ECGRecord.from_wfdb(hea_path) @pytest.mark.parametrize("hea_path", ["tests/wfdb/100", "tests/...
37.138462
120
0.589478
38d3da44dcc0b8272572d18153f9877992dd4ed9
13,297
py
Python
core/domain/feedback_domain.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
null
null
null
core/domain/feedback_domain.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
null
null
null
core/domain/feedback_domain.py
lheureuxe13/oppia
7110e3e5d5a53527c31d7b33e14d25e8d5b981f9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Oppia 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 applicable ...
38.994135
80
0.660074
fe54f38ebb13905126fbeff0e6cec415cfd3aa58
14,565
py
Python
graph_asset_inventory_api/inventory/__init__.py
adevinta/graph-asset-inventory-api
507a55604b95be1b388acec8fa911cd1465e64ca
[ "MIT" ]
1
2021-12-02T07:25:00.000Z
2021-12-02T07:25:00.000Z
graph_asset_inventory_api/inventory/__init__.py
adevinta/graph-asset-inventory-api
507a55604b95be1b388acec8fa911cd1465e64ca
[ "MIT" ]
null
null
null
graph_asset_inventory_api/inventory/__init__.py
adevinta/graph-asset-inventory-api
507a55604b95be1b388acec8fa911cd1465e64ca
[ "MIT" ]
2
2021-08-09T15:19:09.000Z
2021-11-14T19:13:27.000Z
"""Provides primitives to interact with an asset inventory.""" from datetime import ( datetime, timezone, ) from gremlin_python.process.traversal import ( T, Direction, ) from graph_asset_inventory_api.inventory.universe import ( Universe, UniverseVersion, ) CURRENT_UNIVERSE_VERSION = "0.0....
31.732026
79
0.62815
8d05a95c14887987f85c70209e4fec6bf38487f0
764
py
Python
cryptoconditions/exceptions.py
Chuseuiti/cryptoconditions
9cee492d4a792205b29824399224861841a785b0
[ "MIT" ]
null
null
null
cryptoconditions/exceptions.py
Chuseuiti/cryptoconditions
9cee492d4a792205b29824399224861841a785b0
[ "MIT" ]
null
null
null
cryptoconditions/exceptions.py
Chuseuiti/cryptoconditions
9cee492d4a792205b29824399224861841a785b0
[ "MIT" ]
null
null
null
"""Custom exceptions used in the `cryptoconditions` package. """ class ParsingError(Exception): """Raised when a URI cannot be parsed""" class PrefixError(Exception): """Raised when a URI's prefix is incorrect.""" class UnsupportedTypeError(Exception): """Raised when a unregistered type is used""" c...
21.828571
63
0.717277
42115fb22390f5bd48383e17ff6710899eb196ca
116,459
py
Python
RobotRaconteurPython/RobotRaconteurPythonUtil.py
robotraconteur/robotraconteur_pyodide
e2a529c75b1603ae9471091095c9c6b10652dbbb
[ "Apache-2.0" ]
null
null
null
RobotRaconteurPython/RobotRaconteurPythonUtil.py
robotraconteur/robotraconteur_pyodide
e2a529c75b1603ae9471091095c9c6b10652dbbb
[ "Apache-2.0" ]
null
null
null
RobotRaconteurPython/RobotRaconteurPythonUtil.py
robotraconteur/robotraconteur_pyodide
e2a529c75b1603ae9471091095c9c6b10652dbbb
[ "Apache-2.0" ]
1
2021-03-05T16:20:48.000Z
2021-03-05T16:20:48.000Z
# Copyright 2011-2020 Wason Technology, LLC # # 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 ...
39.611905
201
0.658008
579b636cb060001320a3a1c5ba174c9fe1f42456
30,809
py
Python
Lib/objc/CoreData.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
701
2018-10-22T11:54:09.000Z
2022-03-31T14:39:30.000Z
Lib/objc/CoreData.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
229
2018-10-24T09:15:31.000Z
2021-12-24T16:51:37.000Z
Lib/objc/CoreData.py
snazari/Pyto
bcea7bbef35cab21ce73087b1a0c00a07d07ec72
[ "MIT" ]
131
2018-11-25T18:33:03.000Z
2022-03-24T03:18:07.000Z
""" Classes from the 'CoreData' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None PFUbiquityContainerMonitor = _Class("PFUbiquityContainerMon...
55.411871
87
0.867149
e23df9a537142b2d98f641e4fc3d1b652b959e0e
1,242
py
Python
app/main/forms.py
LawiOtieno/lawi-blog
c224e36e63c18fb169c2f57c426f4c6c7c28d505
[ "MIT" ]
1
2022-02-18T06:51:49.000Z
2022-02-18T06:51:49.000Z
app/main/forms.py
LawiOtieno/lawi-blog
c224e36e63c18fb169c2f57c426f4c6c7c28d505
[ "MIT" ]
null
null
null
app/main/forms.py
LawiOtieno/lawi-blog
c224e36e63c18fb169c2f57c426f4c6c7c28d505
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField,FileAllowed from wtforms import StringField,TextAreaField, SubmitField,ValidationError from wtforms.validators import Required,Email from flask_login import current_user from ..models import User class UpdateProfile(FlaskForm): username = StringFie...
44.357143
81
0.751208
4c23e65fbf9efa190c6f8e87e86a507f92b3af8e
19,942
py
Python
tools/python/transform/base_converter.py
Yi-Kai-Chen/mace
aec8421951390ee1dfec4db5c118805908776330
[ "Apache-2.0" ]
1
2020-07-22T08:12:24.000Z
2020-07-22T08:12:24.000Z
tools/python/transform/base_converter.py
deadzq/mace
aec8421951390ee1dfec4db5c118805908776330
[ "Apache-2.0" ]
null
null
null
tools/python/transform/base_converter.py
deadzq/mace
aec8421951390ee1dfec4db5c118805908776330
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The MACE 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 applicable la...
29.631501
92
0.63795
878368db49b3c19a4dd8f1010659eb81738870a8
3,882
py
Python
catalyst/dl/meters/ppv_tpr_f1_meter.py
gazay/catalyst
6a7cb9911694dd30b4f6ca636d6e3b11faccc8b1
[ "Apache-2.0" ]
1
2020-04-18T03:09:20.000Z
2020-04-18T03:09:20.000Z
catalyst/dl/meters/ppv_tpr_f1_meter.py
gazay/catalyst
6a7cb9911694dd30b4f6ca636d6e3b11faccc8b1
[ "Apache-2.0" ]
null
null
null
catalyst/dl/meters/ppv_tpr_f1_meter.py
gazay/catalyst
6a7cb9911694dd30b4f6ca636d6e3b11faccc8b1
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import numbers import numpy as np import torch from . import meter def f1score(precision_value, recall_value, eps=1e-5): """ Calculating F1-score from precision and recall to reduce computation redundancy. Args: precision_value: precision (0-1) re...
32.082645
79
0.609995
60be8c408d19c99aaf7eedbd8600db6728ed1030
35,754
py
Python
discord/ext/commands/converter.py
BluePhoenixGame/discord.py-fork
d30fea5b0dcba9cd130026b56ec01e78bd788aff
[ "MIT" ]
1
2021-06-18T11:03:21.000Z
2021-06-18T11:03:21.000Z
discord/ext/commands/converter.py
BluePhoenixGame/discord.py-fork
d30fea5b0dcba9cd130026b56ec01e78bd788aff
[ "MIT" ]
null
null
null
discord/ext/commands/converter.py
BluePhoenixGame/discord.py-fork
d30fea5b0dcba9cd130026b56ec01e78bd788aff
[ "MIT" ]
1
2021-06-11T04:02:11.000Z
2021-06-11T04:02:11.000Z
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz 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, modify, merg...
33.197772
160
0.633132
82da82c3d9f792ec83ccc3e426866facf988d30d
11,429
py
Python
util/visualizer.py
Haoyuelll/facial_expression_translation
3b6f8d52bb4a767efc55dbcf5ce4f836e2a12126
[ "BSD-3-Clause" ]
null
null
null
util/visualizer.py
Haoyuelll/facial_expression_translation
3b6f8d52bb4a767efc55dbcf5ce4f836e2a12126
[ "BSD-3-Clause" ]
null
null
null
util/visualizer.py
Haoyuelll/facial_expression_translation
3b6f8d52bb4a767efc55dbcf5ce4f836e2a12126
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import os import sys import ntpath import time from . import util, html from subprocess import Popen, PIPE if sys.version_info[0] == 2: VisdomExceptionBase = Exception else: VisdomExceptionBase = ConnectionError def save_images(webpage, visuals, image_path, aspect_ratio=1.0, ...
47.032922
140
0.549654
21c23ff40569b78e569198d850884ace375cd891
2,571
py
Python
sensor_stick/scripts/features.py
Mahmoud-Selim/RoboND-Perception-Project
3a9f23b8fdd627a28ce3b0a07b12ccb34ddd3ef4
[ "MIT" ]
null
null
null
sensor_stick/scripts/features.py
Mahmoud-Selim/RoboND-Perception-Project
3a9f23b8fdd627a28ce3b0a07b12ccb34ddd3ef4
[ "MIT" ]
null
null
null
sensor_stick/scripts/features.py
Mahmoud-Selim/RoboND-Perception-Project
3a9f23b8fdd627a28ce3b0a07b12ccb34ddd3ef4
[ "MIT" ]
null
null
null
import matplotlib.colors import matplotlib.pyplot as plt import numpy as np from pcl_helper import * def rgb_to_hsv(rgb_list): rgb_normalized = [1.0 * rgb_list[0] / 255, 1.0 * rgb_list[1] / 255, 1.0 * rgb_list[2] / 255] hsv_normalized = matplotlib.colors.rgb_to_hsv([[rgb_normalized]])[0][0] return hsv_nor...
34.743243
112
0.684559
e1fddcc978a089df1d307750e22204fc2441cde1
2,183
py
Python
python_modules/dagster/dagster/config/source.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/config/source.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/config/source.py
ericct/dagster
dd2c9f05751e1bae212a30dbc54381167a14f6c5
[ "Apache-2.0" ]
null
null
null
import os from dagster import check from .config_type import ScalarUnion from .errors import PostProcessingError from .field_utils import Selector VALID_STRING_SOURCE_TYPES = (str, dict) def _ensure_env_variable(var): check.str_param(var, "var") value = os.getenv(var) if value is None: raise Po...
29.90411
97
0.61475
5ab739af3c5f51e2378168015326b6f3287243cf
3,062
py
Python
jtnn/molvae/pretrain.py
fiskio/icml18-jtnn
9c6fb6c9d8170640923b830f85af7f84ac006d57
[ "MIT" ]
null
null
null
jtnn/molvae/pretrain.py
fiskio/icml18-jtnn
9c6fb6c9d8170640923b830f85af7f84ac006d57
[ "MIT" ]
null
null
null
jtnn/molvae/pretrain.py
fiskio/icml18-jtnn
9c6fb6c9d8170640923b830f85af7f84ac006d57
[ "MIT" ]
1
2018-11-11T14:51:28.000Z
2018-11-11T14:51:28.000Z
import os import torch import torch.nn as nn import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler from torch.utils.data import DataLoader import sys from optparse import OptionParser from jtnn.jtnn import * import rdkit lg = rdkit.RDLogger.logger() lg.setLevel(rdkit.RDLogger.CRITICAL) parser...
31.56701
158
0.650555
cf731cd53a996cac7b3b9463e90224374c0e9b8a
1,914
py
Python
build/android/gyp/jar.py
iplo/Chain
8bc8943d66285d5258fffc41bed7c840516c4422
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
build/android/gyp/jar.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2015-08-31T06:39:59.000Z
2021-12-04T14:53:28.000Z
build/android/gyp/jar.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
#!/usr/bin/env python # # Copyright 2013 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. import fnmatch import optparse import os import sys from util import build_utils from util import md5_check def DoJar(options): ...
30.380952
79
0.729885
7e29a3489908defe785e794ac5cf5cfcf211f6a4
1,919
py
Python
perfkitbenchmarker/linux_packages/nvidia_docker.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/linux_packages/nvidia_docker.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
1
2021-09-09T07:43:25.000Z
2021-09-09T10:47:56.000Z
perfkitbenchmarker/linux_packages/nvidia_docker.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2019 PerfKitBenchmarker 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 appli...
40.829787
79
0.683689
489a5e6c33eb3da1b5d64fed8f7ae2698cb55509
2,280
py
Python
migrations/versions/0e3164980a77_initial.py
wilbrone/blog-post
d02893ad1a79a01b73ccb1506a3e297f55c0cf39
[ "MIT" ]
null
null
null
migrations/versions/0e3164980a77_initial.py
wilbrone/blog-post
d02893ad1a79a01b73ccb1506a3e297f55c0cf39
[ "MIT" ]
2
2019-12-01T09:10:26.000Z
2019-12-01T09:10:26.000Z
migrations/versions/0e3164980a77_initial.py
wilbrone/blog-post
d02893ad1a79a01b73ccb1506a3e297f55c0cf39
[ "MIT" ]
null
null
null
"""initial Revision ID: 0e3164980a77 Revises: Create Date: 2019-12-02 21:45:38.403388 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0e3164980a77' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto generated ...
34.545455
84
0.664035
ca0cfe484ba33c3f3887491e29267b0bf4f062cf
1,243
py
Python
tests/tests_loss.py
agr17/pytorch-msssim
69aec4113ccceafa5568d1191e98c1db525c0c0f
[ "MIT" ]
null
null
null
tests/tests_loss.py
agr17/pytorch-msssim
69aec4113ccceafa5568d1191e98c1db525c0c0f
[ "MIT" ]
null
null
null
tests/tests_loss.py
agr17/pytorch-msssim
69aec4113ccceafa5568d1191e98c1db525c0c0f
[ "MIT" ]
null
null
null
# Adapted from https://github.com/Po-Hsun-Su/pytorch-ssim/blob/master/max_ssim.py import torch from torch.autograd import Variable from torch import optim from PIL import Image import numpy as np import sys, os import torch.nn.functional as F sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))...
28.906977
88
0.730491