hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
88ce27e66fd8cabc9b641eb722ccd9fb0ff20501
14,273
py
Python
app.py
Supan14/RPN-Deep-RL
123853c1537d3b9b46d8a976a4cbcd4fb61f7151
[ "MIT" ]
null
null
null
app.py
Supan14/RPN-Deep-RL
123853c1537d3b9b46d8a976a4cbcd4fb61f7151
[ "MIT" ]
null
null
null
app.py
Supan14/RPN-Deep-RL
123853c1537d3b9b46d8a976a4cbcd4fb61f7151
[ "MIT" ]
1
2022-02-14T16:30:21.000Z
2022-02-14T16:30:21.000Z
import streamlit as st import pickle import glob import sys import os import urllib import numpy as np import pandas as pd import requests from io import BytesIO from PIL import Image, ImageFilter from keras.preprocessing import image import xml.etree.ElementTree as ET import numpy as np from numpy import...
28.892713
132
0.695229
e1c46eae9cd9a9d69b0775d5fec24540ee44ddc4
2,631
py
Python
exchanges/bittrex_reader.py
CoolSpot/CoinTaxes
ec1a3c86f3d1384d5052da4aa856b192ca1ef123
[ "MIT" ]
9
2018-04-16T22:26:57.000Z
2022-02-11T22:10:20.000Z
exchanges/bittrex_reader.py
CoolSpot/CoinTaxes
ec1a3c86f3d1384d5052da4aa856b192ca1ef123
[ "MIT" ]
9
2018-04-16T22:33:47.000Z
2021-07-06T06:04:30.000Z
exchanges/bittrex_reader.py
CoolSpot/CoinTaxes
ec1a3c86f3d1384d5052da4aa856b192ca1ef123
[ "MIT" ]
3
2018-10-10T20:49:55.000Z
2021-03-27T21:14:11.000Z
# This will read in bittrex transactions # Note that you must supply the fullOrders.csv file # This only works with BTC transactions!!!! import csv from dateutil import parser as date_parser from exchanges import Exchange class Bittrex(Exchange): client = None order_file = None def __init__(self, config)...
31.321429
83
0.507032
defd739e3f501db066f026c10b1d80093b792235
4,082
py
Python
core/dbt/task/base.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
core/dbt/task/base.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
core/dbt/task/base.py
pushpay/dbt
8b96de893af692bd77fe9eb9a8104317be7b5413
[ "Apache-2.0" ]
null
null
null
from abc import ABCMeta, abstractmethod import os import six from dbt.config import RuntimeConfig, Project from dbt.config.profile import read_profile, PROFILES_DIR from dbt import tracking from dbt.logger import GLOBAL_LOGGER as logger import dbt.exceptions class NoneConfig(object): @classmethod def from_a...
28.950355
77
0.650661
7d4ecb47052e37397fc44099daeb670c7e64f59f
358
py
Python
components/py_engine/example/HaaSEdu/python-apps/driver/oled/main.py
nonamime/alios
fe245233fff352f5a24f6d4cd9905fc8ceff6748
[ "Apache-2.0" ]
1
2021-07-14T09:27:49.000Z
2021-07-14T09:27:49.000Z
components/py_engine/example/HaaSEdu/python-apps/driver/oled/main.py
hexianWeb/AliOS-Things
88feed43461de2ff754e895fad0a6fee5e3febda
[ "Apache-2.0" ]
null
null
null
components/py_engine/example/HaaSEdu/python-apps/driver/oled/main.py
hexianWeb/AliOS-Things
88feed43461de2ff754e895fad0a6fee5e3febda
[ "Apache-2.0" ]
null
null
null
import sh1106 import utime from driver import SPI from driver import GPIO spi0 = SPI() spi0.open("oled_spi") gpio_dc = GPIO() gpio_dc.open("oled_dc") gpio_res = GPIO() gpio_res.open("oled_res") display = sh1106.SH1106_SPI(width=132, height=64, spi=spi0, dc = gpio_dc, res = gpio_res) # display.init_display() display...
18.842105
89
0.740223
d627f3c1dcadc955d70233e088a58b58efb8eba1
817
py
Python
manage.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
manage.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
manage.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "leaguetracker.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensu...
35.521739
83
0.646267
0675d125a9b3c5ef6e9dfc2eee64e120e40c93d2
2,069
py
Python
profiles_api/models.py
clemccormick/profiles-rest-api
9eb40affeced0017ad47ce01aceaacb6c3c8fd83
[ "MIT" ]
null
null
null
profiles_api/models.py
clemccormick/profiles-rest-api
9eb40affeced0017ad47ce01aceaacb6c3c8fd83
[ "MIT" ]
null
null
null
profiles_api/models.py
clemccormick/profiles-rest-api
9eb40affeced0017ad47ce01aceaacb6c3c8fd83
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def c...
29.140845
64
0.678589
a2761811489631e9cda4525f672cae3758b8c2ed
19,259
py
Python
tests/func/test_import.py
meierale/dvc
67b42ebe4f9474d71a2d5b195014046775a08401
[ "Apache-2.0" ]
null
null
null
tests/func/test_import.py
meierale/dvc
67b42ebe4f9474d71a2d5b195014046775a08401
[ "Apache-2.0" ]
null
null
null
tests/func/test_import.py
meierale/dvc
67b42ebe4f9474d71a2d5b195014046775a08401
[ "Apache-2.0" ]
null
null
null
import filecmp import os from unittest.mock import patch import pytest from funcy import first from dvc.config import NoRemoteError from dvc.dvcfile import Dvcfile from dvc.exceptions import DownloadError, PathMissingError from dvc.objects.db import ODBManager from dvc.stage.exceptions import StagePathNotFoundError f...
31.991694
79
0.633782
440b2731524bff09d8d0381053bd369ba3796900
4,125
py
Python
src/fbsrankings/infrastructure/memory/write/game.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
src/fbsrankings/infrastructure/memory/write/game.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
src/fbsrankings/infrastructure/memory/write/game.py
mikee385/fbsrankings
2b50e26a302b53c21cd8f5c965943d6fbf0680a1
[ "MIT" ]
null
null
null
from typing import List from typing import Optional from fbsrankings.common import Event from fbsrankings.common import EventBus from fbsrankings.domain import Game from fbsrankings.domain import GameID from fbsrankings.domain import GameRepository as BaseRepository from fbsrankings.domain import GameStatus from fbsra...
36.184211
87
0.649697
6eb33db7ff7fe0dc932bdb7bd5dc4b97bca2dc27
561
py
Python
ns-allinone-3.27/util.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
93
2019-04-21T08:22:26.000Z
2022-03-30T04:26:29.000Z
ns-allinone-3.27/util.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
12
2019-04-19T16:39:58.000Z
2021-06-22T13:18:32.000Z
ns-allinone-3.27/util.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
21
2019-05-27T19:36:12.000Z
2021-07-26T02:37:41.000Z
from __future__ import print_function import sys import subprocess def fatal(msg): print(msg, file=sys.stderr) sys.exit(2) class CommandError(Exception): pass def run_command(*args, **kwargs): if len(args): argv = args[0] elif 'args' in kwargs: argv = kwargs['args'] else: ...
21.576923
77
0.606061
b717ec57a1ba202099e8768cde97295059bc014e
120,132
py
Python
src/olympia/addons/tests/test_models.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_models.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
src/olympia/addons/tests/test_models.py
akanksha1612/addons-server
b125ad213a513bcbd97805105d862b400fbf9720
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import os import time from datetime import datetime, timedelta from waffle.testutils import override_switch from django import forms from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core import mail from django.core.files.storage im...
39.156454
79
0.638764
3863e0a6f924d692e261ef8dfae4359d2def4588
20,614
py
Python
IP-Projeto-Gabriel-William-Caio/Projeto IP/jogo.py
Caioviniciusb/Projeto_IP_Gabriel_Caio_William
e43448604693e516ae894837428ebb62f7976a6f
[ "MIT" ]
null
null
null
IP-Projeto-Gabriel-William-Caio/Projeto IP/jogo.py
Caioviniciusb/Projeto_IP_Gabriel_Caio_William
e43448604693e516ae894837428ebb62f7976a6f
[ "MIT" ]
null
null
null
IP-Projeto-Gabriel-William-Caio/Projeto IP/jogo.py
Caioviniciusb/Projeto_IP_Gabriel_Caio_William
e43448604693e516ae894837428ebb62f7976a6f
[ "MIT" ]
null
null
null
import pygame import random from moviepy.editor import * from functions import * pygame.init () pygame.mixer.init() #Configs tela = pygame.display.set_mode(( 1280, 720)) pygame.display.set_caption("Caça ao Tesouro") clock = pygame.time.Clock() #Assets menuintro = VideoFileClip("assets/backgro...
39.264762
244
0.49903
e40451434d3b5bad1990f2f202e1e56d40542c2c
8,015
py
Python
gui/oc_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
7
2020-04-17T16:33:24.000Z
2021-12-28T14:27:53.000Z
gui/oc_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
null
null
null
gui/oc_widget.py
Varnani/pywd2015-qt5
b4865eeb80f659d8d7cf8f45807ee3e27e8555fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'oc_widget.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_OCWidget(object): def setupUi(self, OCWidget): OCWidget.s...
55.659722
110
0.716906
1356a7c33b45fdbf7ef60ab0a12c796ca00ee7e3
474
py
Python
py/test/store.py
mpaulweeks/fgc
2fa77896a59f55be0a68a7dffef76e3dc29f2497
[ "MIT" ]
20
2016-06-30T05:48:30.000Z
2021-06-05T21:42:41.000Z
py/test/store.py
mpaulweeks/fgc
2fa77896a59f55be0a68a7dffef76e3dc29f2497
[ "MIT" ]
null
null
null
py/test/store.py
mpaulweeks/fgc
2fa77896a59f55be0a68a7dffef76e3dc29f2497
[ "MIT" ]
9
2016-07-04T04:44:07.000Z
2019-10-12T21:20:35.000Z
from py.test.tools import ( BaseTestCase, ) from py.test.datagen import ( create_test_player, ) from py.src.store import ( get_subscribed_player_count, ) class StoreTest(BaseTestCase): def test_count_subscribed(self): create_test_player(subscribed=True) create_test_player(subscribed=...
22.571429
58
0.732068
b4fbeb93d0d4f94bd4c3669cba436ffd7d89e636
26,851
py
Python
WMSCapabilities.py
asfixia/DinamicaXYZ
4dc8eaba1187698e8eb2eacaf4851c1c142e80bb
[ "MIT" ]
null
null
null
WMSCapabilities.py
asfixia/DinamicaXYZ
4dc8eaba1187698e8eb2eacaf4851c1c142e80bb
[ "MIT" ]
null
null
null
WMSCapabilities.py
asfixia/DinamicaXYZ
4dc8eaba1187698e8eb2eacaf4851c1c142e80bb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- isDinamica = False try: dinamica.package("os") isDinamica = True except: isDinamica = False if not isDinamica: try: from . import xmltodict from .UTILS import UTILS from qgis.PyQt.QtWidgets import QMessageBox from qgis.core...
50.662264
631
0.619493
e68a7934c2cb5a2002c1f05b67bbb94870747ff3
352
py
Python
supervisor/discovery/services/homematic.py
pnjongang/supervisor
2a006ae76de4b06e3e291b37aa2a4e14dc272445
[ "Apache-2.0" ]
597
2017-04-27T15:10:08.000Z
2019-12-18T16:02:57.000Z
supervisor/discovery/services/homematic.py
pnjongang/supervisor
2a006ae76de4b06e3e291b37aa2a4e14dc272445
[ "Apache-2.0" ]
1,056
2020-01-30T09:59:44.000Z
2022-03-31T10:15:32.000Z
supervisor/discovery/services/homematic.py
pnjongang/supervisor
2a006ae76de4b06e3e291b37aa2a4e14dc272445
[ "Apache-2.0" ]
295
2020-02-03T11:30:42.000Z
2022-03-31T18:53:14.000Z
"""Discovery service for HomeMatic.""" import voluptuous as vol from supervisor.validate import network_port from ..const import ATTR_HOST, ATTR_PORT SCHEMA = vol.Schema( { str: vol.Schema( { vol.Required(ATTR_HOST): str, vol.Required(ATTR_PORT): network_port, ...
19.555556
54
0.579545
f965ca5a32e59a095a229dcee06d0e79a73372f9
39
py
Python
cloudshell/tg/breaking_point/bp_exception.py
QualiSystems/cloudshell-tg-breaking-point
15399c231c0b51df492ddd4a7854f42a5f81a3da
[ "Apache-2.0" ]
null
null
null
cloudshell/tg/breaking_point/bp_exception.py
QualiSystems/cloudshell-tg-breaking-point
15399c231c0b51df492ddd4a7854f42a5f81a3da
[ "Apache-2.0" ]
9
2017-04-25T09:16:43.000Z
2019-07-31T08:55:47.000Z
cloudshell/tg/breaking_point/bp_exception.py
QualiSystems/cloudshell-tg-breaking-point
15399c231c0b51df492ddd4a7854f42a5f81a3da
[ "Apache-2.0" ]
null
null
null
class BPException(Exception): pass
13
29
0.74359
4121148256efcbf3ce053e66a80dc13275fff572
34,038
py
Python
raptgen/models.py
unkosan/raptgen
3777f1712c965aa4af2e7f1d2c508271ac3fa4bf
[ "MIT" ]
5
2021-02-20T02:03:23.000Z
2022-03-27T08:36:29.000Z
raptgen/models.py
unkosan/raptgen
3777f1712c965aa4af2e7f1d2c508271ac3fa4bf
[ "MIT" ]
null
null
null
raptgen/models.py
unkosan/raptgen
3777f1712c965aa4af2e7f1d2c508271ac3fa4bf
[ "MIT" ]
2
2021-03-25T03:29:21.000Z
2021-09-26T06:23:25.000Z
from enum import IntEnum, Enum import math import torch from torch import nn import torch.nn.functional as F from tqdm.auto import tqdm import numpy as np from pathlib import Path import logging logger = logging.getLogger(__name__) class View(nn.Module): def __init__(self, shape): super(View, self).__ini...
36.09544
254
0.576561
afa8b72316c8636099625a325e84693587cb4282
6,083
py
Python
reno/tests/test_semver.py
kpireporter/reno
549650c9262a0feffac763a72ed8a76bc8238246
[ "Apache-2.0" ]
50
2015-09-09T15:56:03.000Z
2021-12-04T18:07:38.000Z
reno/tests/test_semver.py
kpireporter/reno
549650c9262a0feffac763a72ed8a76bc8238246
[ "Apache-2.0" ]
null
null
null
reno/tests/test_semver.py
kpireporter/reno
549650c9262a0feffac763a72ed8a76bc8238246
[ "Apache-2.0" ]
13
2015-10-30T03:48:58.000Z
2021-07-18T00:12:59.000Z
# -*- coding: utf-8 -*- # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
35.782353
75
0.619431
58129c28c0ba1966f62abf8ef3f175fe157eb570
19,796
py
Python
venv/lib/python3.6/site-packages/future/tests/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/future/tests/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
1
2021-06-01T23:32:38.000Z
2021-06-01T23:32:38.000Z
venv/lib/python3.6/site-packages/future/tests/base.py
aitoehigie/britecore_flask
eef1873dbe6b2cc21f770bc6dec783007ae4493b
[ "MIT" ]
null
null
null
from __future__ import print_function, absolute_import import os import tempfile import unittest import sys import re import warnings import io from textwrap import dedent from future.utils import bind_method, PY26, PY3, PY2, PY27 from future.moves.subprocess import check_output, STDOUT, CalledProcessError if PY26: ...
33.609508
88
0.600172
2267a580cf041ca8190d74866bdcb423b9094603
471
py
Python
shop/migrations/0003_alter_product_status.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
shop/migrations/0003_alter_product_status.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
shop/migrations/0003_alter_product_status.py
mohammadanarul/Ecommerce-Django-YT
afecc8f41693925619b81986d979706c64175360
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-03-04 03:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0002_product_status'), ] operations = [ migrations.AlterField( model_name='product', name='status', ...
24.789474
143
0.571125
2b2e995795d7dd5db68681a992a63a067c43a686
1,572
py
Python
myven/lib/python3.8/site-packages/ansible/module_utils/network/f5/iworkflow.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
myven/lib/python3.8/site-packages/ansible/module_utils/network/f5/iworkflow.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
null
null
null
myven/lib/python3.8/site-packages/ansible/module_utils/network/f5/iworkflow.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type import time try: from f5.iworkflow import ManagementRoot from icon...
31.44
108
0.617048
3d7e47ee56b864aed84681864e1070c306e7b927
2,735
py
Python
docs/conf.py
max3-2/itsh5py
6100cb181951202552d60093a9db070c8d824674
[ "MIT" ]
null
null
null
docs/conf.py
max3-2/itsh5py
6100cb181951202552d60093a9db070c8d824674
[ "MIT" ]
null
null
null
docs/conf.py
max3-2/itsh5py
6100cb181951202552d60093a9db070c8d824674
[ "MIT" ]
null
null
null
"""Configuration file for the documentation. """ import sys # system specifics from pathlib import Path # file-system path from unittest.mock import MagicMock # mock imports extensions = [ 'myst_parser', # Accept Markdown as input. 'sphinx.ext.a...
39.071429
78
0.645338
dcaa306b0150e4eb2f7070ec07fb61fa97aa0cb0
2,807
py
Python
tests/test_compress_assets_plugin.py
Lucas-C/sigal
a9b69d3ad672b83fba86dc16e6d0891448e09553
[ "MIT" ]
648
2015-01-09T15:37:45.000Z
2022-03-22T16:36:16.000Z
tests/test_compress_assets_plugin.py
elaOnMars/sigal
246aed53ff2d29d680cc81929e59f19023e463bb
[ "MIT" ]
328
2015-01-03T18:41:58.000Z
2022-03-31T20:13:49.000Z
tests/test_compress_assets_plugin.py
elaOnMars/sigal
246aed53ff2d29d680cc81929e59f19023e463bb
[ "MIT" ]
168
2015-01-11T07:56:21.000Z
2022-03-15T08:15:17.000Z
import os import sys from unittest import mock import pytest from sigal import init_plugins from sigal.gallery import Gallery from sigal.plugins import compress_assets CURRENT_DIR = os.path.dirname(__file__) def make_gallery(settings, tmpdir, method): settings['destination'] = str(tmpdir) # Really speed up...
31.539326
88
0.65301
b89a43e7f1cbcc31170d979cd4e9aee93c1eabb2
52
py
Python
run.py
AprilHare/basicServer
238ec91877caa39d10645acdf8394477a00cdc62
[ "MIT" ]
null
null
null
run.py
AprilHare/basicServer
238ec91877caa39d10645acdf8394477a00cdc62
[ "MIT" ]
null
null
null
run.py
AprilHare/basicServer
238ec91877caa39d10645acdf8394477a00cdc62
[ "MIT" ]
null
null
null
# runs the application from webapp import app
5.777778
22
0.711538
f84ddbb8f345574a39ce3190609cab85da95af34
1,380
py
Python
adventure/migrations/0024_hint_hintanswer.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
22
2016-03-22T07:28:42.000Z
2022-02-12T16:03:17.000Z
adventure/migrations/0024_hint_hintanswer.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
103
2017-04-14T23:19:19.000Z
2022-01-27T03:05:36.000Z
adventure/migrations/0024_hint_hintanswer.py
matthew-macgregor/eamon
e59d14e790fd8e95f5f1a91d1965f549c2b673ba
[ "MIT" ]
7
2019-04-09T16:12:10.000Z
2021-12-15T17:09:32.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-29 06:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('adventure', '0023_auto_20160601_2350'), ] operatio...
38.333333
153
0.600725
222803dca03c8ff546a0b9ebc3bd9093b92d275b
2,302
py
Python
MetCompB/aula7/modeloSIR.py
Artur-UF/MetCompA
1198f861f4e5190f7435314bf476c594471e79fa
[ "MIT" ]
null
null
null
MetCompB/aula7/modeloSIR.py
Artur-UF/MetCompA
1198f861f4e5190f7435314bf476c594471e79fa
[ "MIT" ]
null
null
null
MetCompB/aula7/modeloSIR.py
Artur-UF/MetCompA
1198f861f4e5190f7435314bf476c594471e79fa
[ "MIT" ]
null
null
null
''' Integre numericamente o sistema de equações do modelo SIR usando método de Euler-Cromer. Para simplificar a exploração do modelo use como parâmetros \gamma=0.5 e varie o parâmetro \beta e as condições iniciais como indicado nos ítens abaixo: 1. Use a solução analítica para estimar um valor para \Delta t. Para...
37.129032
139
0.622937
8d7277a447034f68732888c1c5b4495133ad212e
5,234
py
Python
envisage/package_plugin_manager.py
enthought/envisage
ca57225c4e9022d1ed5299a60e13dc2290d7d94e
[ "BSD-3-Clause" ]
51
2015-05-12T01:34:15.000Z
2022-03-20T19:11:22.000Z
envisage/package_plugin_manager.py
enthought/envisage
ca57225c4e9022d1ed5299a60e13dc2290d7d94e
[ "BSD-3-Clause" ]
347
2015-02-27T19:51:09.000Z
2022-03-21T16:03:01.000Z
envisage/package_plugin_manager.py
enthought/envisage
ca57225c4e9022d1ed5299a60e13dc2290d7d94e
[ "BSD-3-Clause" ]
11
2015-02-11T04:32:54.000Z
2021-09-13T10:50:05.000Z
# (C) Copyright 2007-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
34.893333
79
0.608139
a57971946e71845c5f817912a5a3b518dd4cd001
4,869
py
Python
tools/create_internal_jars_pom.py
apjanke/matlab-jump
5da5f7c2cf5a15e9d0984c97637b75e1f00cc832
[ "Apache-2.0" ]
null
null
null
tools/create_internal_jars_pom.py
apjanke/matlab-jump
5da5f7c2cf5a15e9d0984c97637b75e1f00cc832
[ "Apache-2.0" ]
6
2020-04-18T21:39:29.000Z
2020-04-19T21:13:58.000Z
tools/create_internal_jars_pom.py
apjanke/matlab-jump
5da5f7c2cf5a15e9d0984c97637b75e1f00cc832
[ "Apache-2.0" ]
null
null
null
# create_internal_jars_pom.py # # Usage: # python3 tools/create_internal_jars_pom.py <matlab_release> # # This is a tool to create Maven dependency definitions for all the internal # JARs in a Matlab distribution. (The "internal" JARs are those written by # MathWorks as part of Matlab and found in java/jar, as oppos...
32.46
155
0.679195
8be92b2b82e61183cec9beb6bacf4eefc2f03ab0
4,049
py
Python
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
data/LoadingScripts/adapt_tcga.py
Bertinus/causal_cell_embedding
417b55749130fc7b7832fd3ee4c49feff4a04593
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd ######################################################################################################################## # Load data ######################################################################################################################## print("Adapt TCGA: Loadin...
46.011364
120
0.514942
4713cff2d4bb75183ad06e91f6e33ed6e4bb3c8f
2,374
py
Python
app/api/viz.py
DrewRust/Kickstartersuccess
7a481589277ffb366e96cb8f7a86935650e4d8b3
[ "MIT" ]
null
null
null
app/api/viz.py
DrewRust/Kickstartersuccess
7a481589277ffb366e96cb8f7a86935650e4d8b3
[ "MIT" ]
null
null
null
app/api/viz.py
DrewRust/Kickstartersuccess
7a481589277ffb366e96cb8f7a86935650e4d8b3
[ "MIT" ]
null
null
null
from fastapi import APIRouter, HTTPException import pandas as pd router = APIRouter() @router.get('/viz/{statecode}') async def viz(statecode: str): """ ## Disregard this part (this is example code). "GET" is a work in progress. Click "Post" for a working prediction. ### Path Parameter `statecode`:...
43.962963
134
0.595619
2e4cfc858497c6a6863ddb08e6491b61a334900e
2,923
py
Python
prettyqt/gui/pagelayout.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/gui/pagelayout.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/gui/pagelayout.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from typing import Literal from prettyqt import gui from prettyqt.qt import QtGui from prettyqt.utils import InvalidParamError, bidict MODES = bidict( standard=QtGui.QPageLayout.Mode.StandardMode, full_page=QtGui.QPageLayout.Mode.FullPageMode, ) ModeStr = Literal["standar...
24.563025
75
0.62299
7b42adc94e416ca33d5071e2c2107606000a931a
7,541
py
Python
ooobuild/lo/chart2/data/x_database_data_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/chart2/data/x_database_data_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/chart2/data/x_database_data_provider.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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 applicab...
47.427673
307
0.714494
a95380af5d3dff1c954f2377d6038ae4cd777dac
3,555
py
Python
layers/functions/detection.py
anishasc99/ssd-custom-dataset
64703f312a7f03ed42ec9347e0ca8bc2232db9dd
[ "MIT" ]
1
2021-03-01T05:03:08.000Z
2021-03-01T05:03:08.000Z
layers/functions/detection.py
anishasc99/ssd-custom-dataset
64703f312a7f03ed42ec9347e0ca8bc2232db9dd
[ "MIT" ]
null
null
null
layers/functions/detection.py
anishasc99/ssd-custom-dataset
64703f312a7f03ed42ec9347e0ca8bc2232db9dd
[ "MIT" ]
null
null
null
import torch from torch.autograd import Function from ..box_utils import decode, nms from data import voc as cfg class Detect(Function): """At test time, Detect is the final layer of SSD. Decode location preds, apply non-maximum suppression to location predictions based on conf scores and thresh...
43.888889
112
0.577215
5a1efbff4ff866b60beb0554eb66f5d80871fe16
155
py
Python
shorttext/data/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
481
2016-10-07T16:48:40.000Z
2022-03-16T12:44:12.000Z
shorttext/data/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
56
2017-02-02T17:50:14.000Z
2021-12-15T05:14:28.000Z
shorttext/data/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
70
2017-01-28T15:20:46.000Z
2021-09-30T15:08:41.000Z
from .data_retrieval import subjectkeywords, nihreports, inaugural, retrieve_jsondata_as_dict, retrieve_csvdata_as_dict, yield_crossvalidation_classdicts
51.666667
153
0.896774
f893d0ea03664192d7503bd7e3cae6d1cb14ed29
888
py
Python
utc-time-math.py
williamknighting/node-docker
6eb0b9bb39f758c4c389d5cd6b96fbff95984308
[ "MIT" ]
null
null
null
utc-time-math.py
williamknighting/node-docker
6eb0b9bb39f758c4c389d5cd6b96fbff95984308
[ "MIT" ]
null
null
null
utc-time-math.py
williamknighting/node-docker
6eb0b9bb39f758c4c389d5cd6b96fbff95984308
[ "MIT" ]
null
null
null
### Quick UTC time math script that calculates the difference in seconds between two timestamps ### Written by Luke Youngblood, luke@blockscale.net import datetime import sys date_format = "%Y-%m-%dT%H:%M:%SZ" response_timestamp = datetime.datetime.strptime(sys.argv[1], date_format) current_timestamp = datetime.date...
52.235294
189
0.763514
b5615be2c8baad6f809152520ce34b51a73ac640
8,909
py
Python
wdwapp/models.py
fkieber/wdwapp
ff0ee37a5ec0c686e2e2beedbb80d7787385f3fd
[ "MIT" ]
null
null
null
wdwapp/models.py
fkieber/wdwapp
ff0ee37a5ec0c686e2e2beedbb80d7787385f3fd
[ "MIT" ]
null
null
null
wdwapp/models.py
fkieber/wdwapp
ff0ee37a5ec0c686e2e2beedbb80d7787385f3fd
[ "MIT" ]
null
null
null
from pyramid.security import Allow, Everyone from sqlalchemy import ( Column, ForeignKey, Integer, BigInteger, String, DateTime, Numeric, Text, Boolean, CheckConstraint, ) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import ( scoped_session, ...
37.910638
106
0.522056
88b8d8986f74874b6984a94374f2a6bb9c27d2b8
15,749
py
Python
lib/charms/layer/snap.py
barryprice/layer-snap
5c0559e4162039a5d05175f913d7a2563aa17031
[ "Apache-2.0" ]
10
2016-11-08T14:18:34.000Z
2020-08-11T13:50:24.000Z
lib/charms/layer/snap.py
barryprice/layer-snap
5c0559e4162039a5d05175f913d7a2563aa17031
[ "Apache-2.0" ]
22
2017-01-12T22:03:47.000Z
2022-02-08T02:19:38.000Z
lib/charms/layer/snap.py
barryprice/layer-snap
5c0559e4162039a5d05175f913d7a2563aa17031
[ "Apache-2.0" ]
11
2017-01-12T21:59:00.000Z
2022-02-05T12:32:10.000Z
# Copyright 2016-2019 Canonical Ltd. # # This file is part of the Snap layer for Juju. # # 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 # # Unle...
34.537281
115
0.670646
5076f6650205f1cf044d1aa5b4c37264e736ef70
4,825
py
Python
docs/conf.py
elcaceres/cliently
5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8
[ "MIT" ]
null
null
null
docs/conf.py
elcaceres/cliently
5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8
[ "MIT" ]
3
2018-04-04T18:55:16.000Z
2018-04-04T18:57:09.000Z
docs/conf.py
elcaceres/cliently
5bb03f9c4c1dcd59d17c2bcb830a501a7215aca8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # cliently documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # au...
29.420732
77
0.684145
ab74bee8a8c91ddffdcfddb4ea22eeff5a01f250
1,616
py
Python
tools/pnnx/tests/ncnn/test_F_pixel_unshuffle.py
CeasarLee/ncnn
178825d14a16c4059820d9f054a8d857df671027
[ "BSD-3-Clause" ]
null
null
null
tools/pnnx/tests/ncnn/test_F_pixel_unshuffle.py
CeasarLee/ncnn
178825d14a16c4059820d9f054a8d857df671027
[ "BSD-3-Clause" ]
null
null
null
tools/pnnx/tests/ncnn/test_F_pixel_unshuffle.py
CeasarLee/ncnn
178825d14a16c4059820d9f054a8d857df671027
[ "BSD-3-Clause" ]
null
null
null
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy o...
28.857143
92
0.665223
7acfdc8e17daa16b10ddfef6670d418d5f6fd6a6
3,718
py
Python
utils/config.py
WE8RJR/22
98410badc3bfe047ffc96a733ae9c9592aa121bb
[ "MIT" ]
13
2021-03-07T07:46:53.000Z
2021-03-12T04:23:53.000Z
utils/config.py
WE8RJR/22
98410badc3bfe047ffc96a733ae9c9592aa121bb
[ "MIT" ]
null
null
null
utils/config.py
WE8RJR/22
98410badc3bfe047ffc96a733ae9c9592aa121bb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import os from acfun import AcFunCheckIn from baidu_url_submit import BaiduUrlSubmit from bilibili import BiliBiliCheckIn from caiyun import CaiYunCheckIn from cloud189 import Cloud189CheckIn from fmapp import FMAPPCheckIn from iqiyi import IQIYICheckIn from kgqq import KGQQCheckIn ...
29.507937
80
0.658419
cff28cd086dcb8e460321339b204cbd014b68b90
8,241
py
Python
MathTower/Main_MathTower.py
IrvKalb/pygwidgetsExamples
0239edfc8553bf51a95d330107dfec48ff1581c1
[ "BSD-3-Clause" ]
1
2022-01-05T13:35:08.000Z
2022-01-05T13:35:08.000Z
MathTower/Main_MathTower.py
IrvKalb/pygwidgetsExamples
0239edfc8553bf51a95d330107dfec48ff1581c1
[ "BSD-3-Clause" ]
null
null
null
MathTower/Main_MathTower.py
IrvKalb/pygwidgetsExamples
0239edfc8553bf51a95d330107dfec48ff1581c1
[ "BSD-3-Clause" ]
null
null
null
# 2/17 by Irv Kalb # import pygame import random import sys import pygwidgets from pygame.locals import * import time COMPUTER_TURN = USEREVENT + 1 HUMAN_TURN = USEREVENT + 2 WINDOW_WIDTH = 500 WINDOW_HEIGHT = 600 FRAMES_PER_SECOND = 30 BLACK = (0, 0, 0) BACKGROUND_COLOR = (0, 222, 222) MAX_BLOCKS = 16 COMPUTER ...
35.521552
109
0.558791
56b81f766f5965be37619ac6bc25fda6a29f03da
1,686
py
Python
xenny/ctf/crypto/classic/multi/hill.py
X3NNY/xenny
c55238f82f448ec08e4006f9037064c5c28524fd
[ "MIT" ]
12
2018-12-31T09:47:33.000Z
2022-02-19T09:24:33.000Z
build/lib/xenny/ctf/crypto/classic/multi/hill.py
X3NNY/xenny
c55238f82f448ec08e4006f9037064c5c28524fd
[ "MIT" ]
3
2022-01-26T09:14:32.000Z
2022-02-06T11:01:55.000Z
build/lib/xenny/ctf/crypto/classic/multi/hill.py
X3NNY/xenny
c55238f82f448ec08e4006f9037064c5c28524fd
[ "MIT" ]
1
2022-02-06T11:02:06.000Z
2022-02-06T11:02:06.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name : hill Description : Author : x3nny date : 2021/10/29 ------------------------------------------------- Change Activity: 2021/10/29: Init ------------------------------------...
20.814815
61
0.45255
8bdb53d15583eb5c862d9ebd65a9fdf450ed2183
10,480
py
Python
Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/vta/tutorials/resnet.py
mengkai94/training_results_v0.6
43dc3e250f8da47b5f8833197d74cb8cf1004fc9
[ "Apache-2.0" ]
64
2021-05-02T14:42:34.000Z
2021-05-06T01:35:03.000Z
vta/tutorials/resnet.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
23
2019-07-29T05:21:52.000Z
2020-08-31T18:51:42.000Z
vta/tutorials/resnet.py
clhne/tvm
d59320c764bd09474775e1b292f3c05c27743d24
[ "Apache-2.0" ]
51
2019-07-12T05:10:25.000Z
2021-07-28T16:19:06.000Z
""" ResNet Inference Example ======================== **Author**: `Thierry Moreau <https://homes.cs.washington.edu/~moreau/>`_ This tutorial provides an end-to-end demo, on how to run ResNet-18 inference onto the VTA accelerator design to perform ImageNet classification tasks. """ ###################################...
33.164557
107
0.626718
a35f393a261e118938150b2e13479ffc2e233684
1,221
py
Python
sdlf-datalakeLibrary/python/datalake_library/transforms/transform_handler.py
pravinva/aws-serverless-data-lake-framework
6dc422733a5d4add94040b3f3475a70470d5d510
[ "MIT-0" ]
267
2020-10-26T16:21:49.000Z
2022-03-27T21:37:17.000Z
sdlf-datalakeLibrary/python/datalake_library/transforms/transform_handler.py
pravinva/aws-serverless-data-lake-framework
6dc422733a5d4add94040b3f3475a70470d5d510
[ "MIT-0" ]
28
2020-10-28T08:17:14.000Z
2022-01-21T18:47:23.000Z
sdlf-datalakeLibrary/python/datalake_library/transforms/transform_handler.py
pravinva/aws-serverless-data-lake-framework
6dc422733a5d4add94040b3f3475a70470d5d510
[ "MIT-0" ]
101
2020-10-27T15:36:20.000Z
2022-03-23T19:54:52.000Z
from importlib import import_module from datalake_library.commons import init_logger from datalake_library.configuration.resource_configs import DynamoConfiguration from datalake_library.interfaces.dynamo_interface import DynamoInterface logger = init_logger(__name__) class TransformHandler: def __init__(self):...
39.387097
99
0.714988
5e2be0ce5aceb384af85fd86a686232b6b2da975
1,728
py
Python
dp/leetcode72.py
DevRoss/python-offer-code
580b2d7b265b3fa8a598287f42a4ca8d9f834eb1
[ "MIT" ]
1
2019-09-02T07:14:26.000Z
2019-09-02T07:14:26.000Z
dp/leetcode72.py
DevRoss/python-offer-code
580b2d7b265b3fa8a598287f42a4ca8d9f834eb1
[ "MIT" ]
1
2019-09-02T07:14:48.000Z
2019-10-21T14:30:37.000Z
dp/leetcode72.py
DevRoss/python-offer-code
580b2d7b265b3fa8a598287f42a4ca8d9f834eb1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Created by Ross on 2019/7/25 """ 给定两个单词 word1 和 word2,计算出将 word1 转换成 word2 所使用的最少操作数 。 你可以对一个单词进行如下三种操作: 插入一个字符 删除一个字符 替换一个字符 示例 1: 输入: word1 = "horse", word2 = "ros" 输出: 3 解释: horse -> rorse (将 'h' 替换为 'r') rorse -> rose (删除 'r') rose -> ros (删除 'e') 示例 2: 输入: word1 =...
24
84
0.515046
10c8a77a2bbb4244166b266df606c0950a3c0db2
11,545
py
Python
simple_rl/utils/mdp_visualizer.py
KorlaMarch/simple_rl
30086b5cf4fd3e9dee76ddfb5ae4f565593ce191
[ "Apache-2.0" ]
10
2021-11-22T12:29:30.000Z
2022-03-28T10:23:16.000Z
simple_rl/utils/mdp_visualizer.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
null
null
null
simple_rl/utils/mdp_visualizer.py
samlobel/simple_rl_mbrl
ed868916d06dbf68f4af23bea83b0e852e88df6e
[ "Apache-2.0" ]
2
2022-03-19T07:42:56.000Z
2022-03-28T10:36:33.000Z
# Python imports. from __future__ import print_function import sys import time try: import pygame from pygame.locals import * pygame.init() title_font = pygame.font.SysFont("CMU Serif", 48) except ImportError: print("Error: pygame not installed (needed for visuals).") exit() # Other imports. f...
33.856305
129
0.6123
01a48558e846a59362ab2e7120a7dac79278e13c
239
py
Python
setup.py
Fermilab-Quantum-Science/Z2Sim-public
dfbefffd933aa2e39a0cb9f668b424596dfa7d35
[ "MIT" ]
2
2021-11-02T17:28:30.000Z
2021-11-17T17:14:02.000Z
setup.py
Fermilab-Quantum-Science/Z2Sim-public
dfbefffd933aa2e39a0cb9f668b424596dfa7d35
[ "MIT" ]
null
null
null
setup.py
Fermilab-Quantum-Science/Z2Sim-public
dfbefffd933aa2e39a0cb9f668b424596dfa7d35
[ "MIT" ]
1
2022-02-23T16:12:16.000Z
2022-02-23T16:12:16.000Z
from setuptools import find_packages, setup setup( name='z2_sim', version='0.1', description='Lattice simulations of 2+1 Z2 gauge theory', author='Fermilab Quantum Institute', author_email='', packages=find_packages(), )
23.9
60
0.715481
afd6c0cd40ff843bdd327c214abb9740f57eb2a9
112
py
Python
deployment/__init__.py
DengZhuangSouthRd/SatelliteDetector
090ad65f495a665226d00023cc0a1e954d21ead3
[ "Apache-2.0" ]
1
2018-05-28T04:18:42.000Z
2018-05-28T04:18:42.000Z
deployment/__init__.py
DengZhuangSouthRd/SatelliteDetector
090ad65f495a665226d00023cc0a1e954d21ead3
[ "Apache-2.0" ]
null
null
null
deployment/__init__.py
DengZhuangSouthRd/SatelliteDetector
090ad65f495a665226d00023cc0a1e954d21ead3
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @contact: liuguiyang15@mails.ucas.edu.cn @file: __init__.py.py @time: 2018/5/18 01:07 """
16
40
0.678571
9bcaa9ae9db5bfc4afcc390ae1ca25fdd0a21ea7
1,703
py
Python
mayan/apps/rest_api/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
4
2021-09-02T00:16:30.000Z
2021-09-09T22:25:15.000Z
mayan/apps/rest_api/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
86
2021-09-01T23:53:02.000Z
2021-09-20T02:25:10.000Z
mayan/apps/rest_api/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
70
2021-09-01T12:54:51.000Z
2022-02-16T00:53:18.000Z
from django.apps import apps from django.conf import settings from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ from mayan.apps.common.apps import MayanAppConfig from mayan.apps.common.menus import menu_tools from mayan.apps.organizations.settings import sett...
32.75
93
0.675866
5d8dd92595ece49573b5fa4fd01c1c81fffa822c
5,515
py
Python
wemake_python_styleguide/visitors/ast/complexity/function.py
makarchuk/wemake-python-styleguide
f976eed24613fbd6ea29f1cc589d8f863165a7aa
[ "MIT" ]
null
null
null
wemake_python_styleguide/visitors/ast/complexity/function.py
makarchuk/wemake-python-styleguide
f976eed24613fbd6ea29f1cc589d8f863165a7aa
[ "MIT" ]
null
null
null
wemake_python_styleguide/visitors/ast/complexity/function.py
makarchuk/wemake-python-styleguide
f976eed24613fbd6ea29f1cc589d8f863165a7aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import ast from collections import defaultdict from typing import ClassVar, DefaultDict, List from wemake_python_styleguide.constants import UNUSED_VARIABLE from wemake_python_styleguide.logics import functions from wemake_python_styleguide.types import ( AnyFunctionDef, AnyFunctionDef...
32.441176
77
0.656573
a831e4ec75c87c790c6c581aa9094e167e6ac65e
3,540
py
Python
sdk/python/pulumi_aws_native/ec2/get_eip.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/ec2/get_eip.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/ec2/get_eip.py
pulumi/pulumi-aws-native
1ae4a4d9c2256b2a79ca536f8d8497b28d10e4c3
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
33.714286
108
0.663559
712f453278f8824cb2f8dcac8e0a5c13da605829
16,920
py
Python
genesis/utils/pipeline/data/tracking_2d/base.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-18T15:39:06.000Z
2020-07-16T14:44:38.000Z
genesis/utils/pipeline/data/tracking_2d/base.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
2
2019-12-26T11:23:11.000Z
2020-07-22T10:04:45.000Z
genesis/utils/pipeline/data/tracking_2d/base.py
leifdenby/genesis
3e4942eac74fb9c69d9b3feedfce5aa745e3bf9c
[ "BSD-3-Clause" ]
1
2019-12-18T16:48:39.000Z
2019-12-18T16:48:39.000Z
import os import shutil import tempfile import warnings from pathlib import Path import luigi import numpy as np import xarray as xr from .....objects.tracking_2d.family import create_tracking_family_2D_field from ..base import ( NumpyDatetimeParameter, XArrayTarget, _get_dataset_meta_info, get_workdi...
34.320487
87
0.564303
b12a140329d5cdde53b964e23095a7812df235ac
148
py
Python
src/grokcore/component/tests/adapter/modulecontextmultiple_fixture.py
zopefoundation/grokcore.component
ae027df4c0bccf59ab8358b46495456682158837
[ "ZPL-2.1" ]
1
2018-03-19T01:53:45.000Z
2018-03-19T01:53:45.000Z
src/grokcore/component/tests/adapter/modulecontextmultiple_fixture.py
zopefoundation/grokcore.component
ae027df4c0bccf59ab8358b46495456682158837
[ "ZPL-2.1" ]
6
2015-04-21T13:26:52.000Z
2020-11-24T07:03:27.000Z
src/grokcore/component/tests/adapter/modulecontextmultiple_fixture.py
zopefoundation/grokcore.component
ae027df4c0bccf59ab8358b46495456682158837
[ "ZPL-2.1" ]
4
2015-04-03T04:48:13.000Z
2018-01-12T06:50:02.000Z
import grokcore.component as grok class Cave(grok.Context): pass class Club(grok.Context): pass grok.context(Cave) grok.context(Club)
10.571429
33
0.722973
159dc31de7fc97984ee5e2fc1290403993ca77b5
263
py
Python
freeze.py
snirp/flask-blog-tutorial
3944e17a72239549b6bd227d51cb17d9be8d8faf
[ "MIT" ]
null
null
null
freeze.py
snirp/flask-blog-tutorial
3944e17a72239549b6bd227d51cb17d9be8d8faf
[ "MIT" ]
null
null
null
freeze.py
snirp/flask-blog-tutorial
3944e17a72239549b6bd227d51cb17d9be8d8faf
[ "MIT" ]
1
2019-06-27T22:26:59.000Z
2019-06-27T22:26:59.000Z
from flask_frozen import Freezer from app import app freezer = Freezer(app) app.config['FREEZER_DESTINATION'] = 'gh-pages' app.config['FREEZER_DESTINATION_IGNORE'] = ['.git*', 'CNAME', '.gitignore', 'readme.md'] if __name__ == '__main__': freezer.freeze()
23.909091
88
0.714829
d3d691ac592511506691a49f5aaec54a12e9b5c1
2,843
py
Python
calc.py
khiekmann/simcity-buildit-calclulations
b6ea7fbe74ca7d5e2d8bb217e9441504b03c7a32
[ "Apache-2.0" ]
null
null
null
calc.py
khiekmann/simcity-buildit-calclulations
b6ea7fbe74ca7d5e2d8bb217e9441504b03c7a32
[ "Apache-2.0" ]
null
null
null
calc.py
khiekmann/simcity-buildit-calclulations
b6ea7fbe74ca7d5e2d8bb217e9441504b03c7a32
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta class Resource: """A ressource""" name = None neededAmountOfResources = [] duration = timedelta(seconds=0) def __init__(self, name, neededAmountOfResources, duration): self.name = name self.neededAmountOfResources = neededAmountOfResources ...
42.432836
148
0.693633
8817a419c202589241eeab2ad3571161aec28be0
3,589
py
Python
scripts/downloads-page-gen.py
AnimalGenome/go-site
80a12b225b2efe9050d07ec3d3e78d33f26bee27
[ "BSD-3-Clause" ]
null
null
null
scripts/downloads-page-gen.py
AnimalGenome/go-site
80a12b225b2efe9050d07ec3d3e78d33f26bee27
[ "BSD-3-Clause" ]
2
2017-07-13T21:34:19.000Z
2021-02-04T18:41:46.000Z
scripts/downloads-page-gen.py
AnimalGenome/go-site
80a12b225b2efe9050d07ec3d3e78d33f26bee27
[ "BSD-3-Clause" ]
1
2020-12-21T19:22:18.000Z
2020-12-21T19:22:18.000Z
"""Create a downloads page for the current GO release.""" #### #### Create a downloads page for the current GO release. #### #### Example usage to analyze "whatever": #### python3 downloads-page-gen.py --help #### python3 ./scripts/downloads-page-gen.py -v --report /tmp/all_combined.report.json --inject ./scripts/dow...
31.482456
153
0.635274
a99c3b072a4e494f89eba03c9918d762acfbe921
7,496
py
Python
trace_to_best.py
DaveKim3872/nasbench-hpc
bd90a5d623e16bcb003e82f0b6296f8e631ab9b3
[ "Apache-2.0" ]
null
null
null
trace_to_best.py
DaveKim3872/nasbench-hpc
bd90a5d623e16bcb003e82f0b6296f8e631ab9b3
[ "Apache-2.0" ]
null
null
null
trace_to_best.py
DaveKim3872/nasbench-hpc
bd90a5d623e16bcb003e82f0b6296f8e631ab9b3
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from nasbench import api from collections import deque import numpy as np import json import copy NASBENCH_TFRECORD = 'D:/dataset/nasbench/nasbench_only108.tfrecord' best_500_path = 'datas...
35.028037
104
0.603789
6b3b41524f61b09612f91a60563a445f7c4009be
2,144
py
Python
Sketches/MH/TimerMixIn2.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MH/TimerMixIn2.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MH/TimerMixIn2.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python from Axon.Component import component from Axon.ThreadedComponent import threadedcomponent from threading import Timer class TimerMixIn(object): def __init__(self, *argl, **argd): super(TimerMixIn,self).__init__(*argl,**argd) self.timer = None self.timerSuccess = Tr...
28.210526
62
0.556437
bd228da2d64322f713783e0daa7193ec8250f62e
27,449
py
Python
plugins/Misc/plugin.py
joulez/Limnoria
aa89a2dd72ec6f593df4c5c281d915af456d5614
[ "BSD-3-Clause" ]
null
null
null
plugins/Misc/plugin.py
joulez/Limnoria
aa89a2dd72ec6f593df4c5c281d915af456d5614
[ "BSD-3-Clause" ]
null
null
null
plugins/Misc/plugin.py
joulez/Limnoria
aa89a2dd72ec6f593df4c5c281d915af456d5614
[ "BSD-3-Clause" ]
null
null
null
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2009, James McCoy # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyr...
44.201288
95
0.542169
7b80e25fdff1f86e9d9cf94b8a28a0de4f187e7d
27,553
py
Python
qcodes/tests/test_validators.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
null
null
null
qcodes/tests/test_validators.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
null
null
null
qcodes/tests/test_validators.py
GateBuilder/Qcodes
b3729f188847f9a7db77f23f8c1b3a2a635a2ac2
[ "MIT" ]
null
null
null
from unittest import TestCase import math import re import numpy as np from hypothesis import given import hypothesis.strategies as hst import pytest from qcodes.utils.validators import (Validator, Anything, Bool, Strings, Numbers, Ints, PermissiveInts, ...
32.377203
85
0.518238
4b0d5e9d2d8e7a3f2b207c0213e5980940f3dc89
14,267
py
Python
cauldron/environ/response.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
90
2016-09-02T15:11:10.000Z
2022-01-02T11:37:57.000Z
cauldron/environ/response.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
86
2016-09-23T16:52:22.000Z
2022-03-31T21:39:56.000Z
cauldron/environ/response.py
JohnnyPeng18/cauldron
09120c2a4cef65df46f8c0c94f5d79395b3298cd
[ "MIT" ]
261
2016-12-22T05:36:48.000Z
2021-11-26T12:40:42.000Z
import datetime import typing import time import flask from cauldron import cli from cauldron.cli import threads from cauldron.environ import logger from requests import Response as HttpResponse ERROR_KIND = 'ERROR' WARNING_KIND = 'WARNING' class ResponseMessage: """...""" def __init__( self, ...
28.939148
79
0.516507
65374e2349904ad1477aa0bae580d7ce1f135d01
3,149
py
Python
userbot/modules/rgb.py
frozenbey/noxususerbot
10f510a7c958a2a29400ec9247ed9db4be2bef2f
[ "MIT" ]
null
null
null
userbot/modules/rgb.py
frozenbey/noxususerbot
10f510a7c958a2a29400ec9247ed9db4be2bef2f
[ "MIT" ]
null
null
null
userbot/modules/rgb.py
frozenbey/noxususerbot
10f510a7c958a2a29400ec9247ed9db4be2bef2f
[ "MIT" ]
1
2021-12-05T17:46:01.000Z
2021-12-05T17:46:01.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. # # Asena UserBot - Yusuf Usta # @NaytSeyd tarafından portlanmıştır. # import io import os import random import textwr...
29.157407
101
0.677358
0df2b4288f2a1dc77a1e6732d00b311b7c056926
451
py
Python
Examples/Infovis/Python/create_tree.py
garyc618/GitTagBug
0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864
[ "BSD-3-Clause" ]
1
2019-05-31T06:45:40.000Z
2019-05-31T06:45:40.000Z
Examples/Infovis/Python/create_tree.py
garyc618/GitTagBug
0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864
[ "BSD-3-Clause" ]
null
null
null
Examples/Infovis/Python/create_tree.py
garyc618/GitTagBug
0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864
[ "BSD-3-Clause" ]
null
null
null
from vtk import * graph = vtkMutableDirectedGraph() a = graph.AddVertex() b = graph.AddChild(a) c = graph.AddChild(a) d = graph.AddChild(b) e = graph.AddChild(c) f = graph.AddChild(c) tree = vtkTree() tree.CheckedShallowCopy(graph) view = vtkGraphLayoutView() view.AddRepresentationFromInput(tree) window = vtkRender...
18.791667
37
0.758315
affdee9eca4af87b70e70814cf8d53197731c259
444
py
Python
travel_recommand/travel/migrations/0019_hotel_booking_payment.py
nirvasangani/travoyager-travel-recommendation
bb0c041630929276a695343b9a25e4e7f5a9e321
[ "MIT" ]
2
2021-05-13T17:14:50.000Z
2021-05-18T07:59:56.000Z
travel_recommand/travel/migrations/0019_hotel_booking_payment.py
nirvasangani/travoyager-travel-recommendation
bb0c041630929276a695343b9a25e4e7f5a9e321
[ "MIT" ]
null
null
null
travel_recommand/travel/migrations/0019_hotel_booking_payment.py
nirvasangani/travoyager-travel-recommendation
bb0c041630929276a695343b9a25e4e7f5a9e321
[ "MIT" ]
3
2021-05-14T03:24:32.000Z
2021-05-18T08:01:23.000Z
# Generated by Django 3.0.6 on 2021-04-15 17:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('travel', '0018_auto_20210407_1504'), ] operations = [ migrations.AddField( model_name='hotel_booking', name='payment...
22.2
67
0.605856
99bb177a52cfaaf2232b9ee41d798d47249addb7
1,107
py
Python
extras/performance.py
cnorthwood/ternip
9bdca293585d97206ed1d0bc250789582645d885
[ "Apache-2.0" ]
54
2015-01-08T14:45:00.000Z
2021-11-06T03:32:51.000Z
extras/performance.py
cnorthwood/ternip
9bdca293585d97206ed1d0bc250789582645d885
[ "Apache-2.0" ]
4
2015-03-23T00:31:39.000Z
2016-01-27T20:41:32.000Z
extras/performance.py
cnorthwood/ternip
9bdca293585d97206ed1d0bc250789582645d885
[ "Apache-2.0" ]
14
2015-03-23T00:21:28.000Z
2020-01-20T16:45:29.000Z
#!/usr/bin/env python from glob import glob import time import os import sys sys.path.append('..') import ternip.formats ternip_time = time.clock() recogniser = ternip.recogniser() normaliser = ternip.normaliser() for file in glob(os.path.normpath('preprocessed/*.sgm')): with open(file) as fd: doc = tern...
28.384615
86
0.66486
3b411ef781e82adfb83e21eedad71e6b72aa69cc
2,826
py
Python
slackcli/slack.py
tylerneu/slack-cli
d76c92758753096c8d587947a35019668a77207c
[ "MIT" ]
null
null
null
slackcli/slack.py
tylerneu/slack-cli
d76c92758753096c8d587947a35019668a77207c
[ "MIT" ]
null
null
null
slackcli/slack.py
tylerneu/slack-cli
d76c92758753096c8d587947a35019668a77207c
[ "MIT" ]
null
null
null
import json import re import slacker from . import errors from . import token __all__ = ["client", "init", "post_message"] BaseError = slacker.Error class Slacker(slacker.Slacker): INSTANCE = None @classmethod def create_instance(cls, user_token): cls.INSTANCE = cls(user_token) @classme...
25.459459
91
0.636235
802348b6a6fe770f8b93cc57abb80018b4595ba8
897
py
Python
question_bank/palindrome-linked-list/palindrome-linked-list.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
9
2020-08-12T10:01:00.000Z
2022-01-05T04:37:48.000Z
question_bank/palindrome-linked-list/palindrome-linked-list.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
1
2021-02-16T10:19:31.000Z
2021-02-16T10:19:31.000Z
question_bank/palindrome-linked-list/palindrome-linked-list.py
yatengLG/leetcode-python
5d48aecb578c86d69835368fad3d9cc21961c226
[ "Apache-2.0" ]
4
2020-08-12T10:13:31.000Z
2021-11-05T01:26:58.000Z
# -*- coding: utf-8 -*- # @Author : LG # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None """ 执行用时:76 ms, 在所有 Python3 提交中击败了90.65% 的用户 内存消耗:23.2 MB, 在所有 Python3 提交中击败了57.77% 的用户 解题思路: 快慢指针,使用慢指针找链表中心,将后半部分翻转 """ class Solution: ...
23.605263
75
0.54738
3fe70eb3b077738882522a105c6bac85ce7d577f
539
py
Python
api/tests/test_courses_public.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
2
2022-02-24T17:39:27.000Z
2022-02-25T02:14:06.000Z
api/tests/test_courses_public.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
null
null
null
api/tests/test_courses_public.py
ShubhamGG/Anubis
2c538ef258a1edf5463596a33bc66caa2ef7e35b
[ "MIT" ]
null
null
null
from utils import Session def test_courses_public(): s = Session('student') s.get('/public/courses/') courses = s.get('/public/courses/list')['courses'] join_code = courses[0]['join_code'] sn = Session('student', new=True, add_to_os=False) courses = sn.get('/public/courses/list')['courses'] ...
31.705882
57
0.654917
12fa9d90753eb09033d3f331bb3a5916695f7463
4,234
py
Python
idaes/models_extra/power_generation/properties/tests/test_fg_prop.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/models_extra/power_generation/properties/tests/test_fg_prop.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
null
null
null
idaes/models_extra/power_generation/properties/tests/test_fg_prop.py
OOAmusat/idaes-pse
ae7d3bb8e372bc32822dcdcb75e9fd96b78da539
[ "RSA-MD" ]
1
2022-03-17T11:08:43.000Z
2022-03-17T11:08:43.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
34.704918
86
0.559991
92a5b9515ef978247df32ccbc234d56311e580b7
281
py
Python
src/pagnn/utils/stats.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
1
2022-01-16T12:06:13.000Z
2022-01-16T12:06:13.000Z
src/pagnn/utils/stats.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
src/pagnn/utils/stats.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
from typing import Any, Dict import sqlalchemy as sa class StatsBase: _engine: sa.engine.Engine step: int scores: Dict[str, Any] metadata: Dict[str, Any] extended: bool def __init__(self, engine: sa.engine.Engine) -> None: self._engine = engine
18.733333
57
0.66548
c108109775af43fbb1e217d720230e16fa50885e
19,487
py
Python
seqskip_train_GenLog1H_Skip1eH.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
7
2019-02-15T07:46:27.000Z
2021-09-16T06:31:43.000Z
seqskip_train_GenLog1H_Skip1eH.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
1
2021-09-16T03:06:16.000Z
2021-09-17T02:08:02.000Z
seqskip_train_GenLog1H_Skip1eH.py
mimbres/SeqSkip
031add5ba22cad1665d76b2cb21e8f6c1e1357e5
[ "Apache-2.0" ]
1
2019-07-07T22:10:30.000Z
2019-07-07T22:10:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 31 17:44:49 2018 GenLog1H_Skip1eH: predict Skip labels by using que-logs generated with pre-trained seq1H_genlog model. seq1H_genlog: seqeunce learning model 2stack conv enc - q(x), l(x) - non-autoregressive (not feeding predicted labels) - instan...
42.828571
136
0.567609
8bba387f201571d985e87a38fcd864ee39d1719f
3,055
py
Python
CNS/AAT/autokey.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
2
2021-07-02T14:47:20.000Z
2021-09-25T13:43:35.000Z
CNS/AAT/autokey.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
null
null
null
CNS/AAT/autokey.py
shaansubbaiah/CSE-3rd-Year-Labs
a173ef1dbed061471dcb6b2fe2d9db0a5bdbd165
[ "MIT" ]
5
2020-09-23T17:09:34.000Z
2022-01-22T12:02:16.000Z
import detectEnglish charToInt = {} # {'A': 0, 'B': 1, ... 'Z': 25} intToChar = {} # {0: 'A', 1: 'B', ... 25: 'Z'} for i in range(0, 26): index = i letter = chr(index + 65) intToChar[index] = letter charToInt[letter] = index # Generates the key def generate_key(message, key): if len(key) > len(...
24.44
89
0.570867
94ea4cc55e5c08e97c22a794f946100b2f5abf73
702
py
Python
grasp/models/assets/Baxter/baxter/change_num.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2021-11-25T02:14:23.000Z
2021-11-25T02:14:23.000Z
grasp/models/assets/Baxter/baxter/change_num.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
grasp/models/assets/Baxter/baxter/change_num.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
null
null
null
import xml.etree.ElementTree as ET import ipdb path ='half-nut-template.xml' tree = ET.parse(path) root = tree.getroot() cnt =0 for child in root[1][0]: cnt+=1 if cnt ==1: continue size_vec = child.attrib['size'].split(' ') new_size= [float(i)*0.95 for i in size_vec] new_str = [str(i) f...
22.645161
49
0.615385
2bb9e4fd651cf3127d0cc438a15373759c029e5b
21
py
Python
test/tests/break_outside_loop.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/break_outside_loop.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/break_outside_loop.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
# should_error break
7
14
0.809524
1ab4360ee5999d81067a7f74ad424b3eee40bac1
767
py
Python
backend/manage.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/manage.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
backend/manage.py
Cryptorubic/rubic-validator
88fd90d15da1fad538667c375189e2625d045ab0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import sys from os import environ def main(): """Run administrative tasks.""" environ.setdefault( 'DJANGO_SETTINGS_MODULE', 'backend.settings.{}'.format( environ.get('BACKEND_SETTINGS_MODE') ...
26.448276
73
0.646675
6e1602b0a798891c6c70cfc8990721e149dc216b
1,631
py
Python
simple_tracker/views.py
fernandodmp/Presence-Tracker
172de10f467671e82bc85da90744759663cebec2
[ "MIT" ]
1
2018-04-21T18:54:28.000Z
2018-04-21T18:54:28.000Z
simple_tracker/views.py
fernandodmp/Presence-Tracker
172de10f467671e82bc85da90744759663cebec2
[ "MIT" ]
null
null
null
simple_tracker/views.py
fernandodmp/Presence-Tracker
172de10f467671e82bc85da90744759663cebec2
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from simple_tracker.models import Course from simple_tracker.forms import DeleteForm, CourseForm # Create your views here. def index(request): course_list = Course.objects.order_by('misses') course_dict = {'courses':course_list} return render(request, 'simple_t...
31.980392
87
0.632741
74470b56afdf11339b49be703c5345358a63b298
1,027
py
Python
manage.py
hamzasayari/blogRd
3ad89b2b8c28c4ec6e9a451da150b6b3d384efd7
[ "MIT" ]
null
null
null
manage.py
hamzasayari/blogRd
3ad89b2b8c28c4ec6e9a451da150b6b3d384efd7
[ "MIT" ]
null
null
null
manage.py
hamzasayari/blogRd
3ad89b2b8c28c4ec6e9a451da150b6b3d384efd7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
33.129032
77
0.655307
6504999e7ddc7fa19b162e29baeafca6173a6d6d
228
py
Python
lecciones/58/bbdd_2.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
2
2020-08-31T02:17:36.000Z
2022-01-29T15:25:27.000Z
lecciones/58/bbdd_2.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
lecciones/58/bbdd_2.py
ImAlexisSaez/curso-python-desde-0
c4a84dae0804adefe4ee6024b411d8ed288da759
[ "MIT" ]
null
null
null
import sqlite3 mi_conexion = sqlite3.connect("gestion-productos") mi_cursor = mi_conexion.cursor() mi_cursor.execute("INSERT INTO PRODUCTOS VALUES (NULL, 'Pelota', 57, 'Deportes')") mi_conexion.commit() mi_conexion.close()
19
82
0.763158
31120283fbe1390526ce56cbfb094a464aa03548
304
py
Python
Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0006_merge_20180126_1226.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0006_merge_20180126_1226.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
Implementierung/ResearchEnvironment/AuthorizationManagement/migrations/0006_merge_20180126_1226.py
Sashks/PSE
ae2d8133a85563c33583f15b9ba76a3a2bf0c762
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-01-26 11:26 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('AuthorizationManagement', '0004_merge_20180125_1830'), ('AuthorizationManagement', '0005_auto_20180125_1707'), ] operations = [ ]
20.266667
64
0.6875
39db518ede6b4d10a7e56b2fde62af2f6a7b47dd
7,548
py
Python
cloudify_aws/rds/tests/test_option.py
szpotona/cloudify-aws-plugin
52c5240aaa6638816e7973742ad8b6f5d1c59e79
[ "Apache-2.0" ]
null
null
null
cloudify_aws/rds/tests/test_option.py
szpotona/cloudify-aws-plugin
52c5240aaa6638816e7973742ad8b6f5d1c59e79
[ "Apache-2.0" ]
null
null
null
cloudify_aws/rds/tests/test_option.py
szpotona/cloudify-aws-plugin
52c5240aaa6638816e7973742ad8b6f5d1c59e79
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 Cloudify Platform Ltd. 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 ap...
32.119149
75
0.585453
ede1389a597732f2c56b44257a410839f584c715
440
py
Python
broker/broker_settings.py
cassioeskelsen/rabbitmq_pause_continue
cbc984b8883e15edce2c44b91512ef714814d287
[ "CC0-1.0" ]
null
null
null
broker/broker_settings.py
cassioeskelsen/rabbitmq_pause_continue
cbc984b8883e15edce2c44b91512ef714814d287
[ "CC0-1.0" ]
null
null
null
broker/broker_settings.py
cassioeskelsen/rabbitmq_pause_continue
cbc984b8883e15edce2c44b91512ef714814d287
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from abc import ABC, abstractmethod import os class BrokerSettings(ABC): @abstractmethod def __init__(self, host=None, user=None, password=None, port=None): pass @abstractmethod def get_host(self): pass @abstractmethod def get_user(self): pass ...
16.923077
71
0.625
2aaa793629f0e8ef522a0ea519801415d767b2bc
2,332
py
Python
app/permission.py
Stanford-PERTS/neptune
20b945adf7b62e67db60be3cc451ffb16113fe33
[ "CC0-1.0" ]
null
null
null
app/permission.py
Stanford-PERTS/neptune
20b945adf7b62e67db60be3cc451ffb16113fe33
[ "CC0-1.0" ]
null
null
null
app/permission.py
Stanford-PERTS/neptune
20b945adf7b62e67db60be3cc451ffb16113fe33
[ "CC0-1.0" ]
null
null
null
"""What relationships (ownership, association...) do users have to things?""" import logging from model import DatastoreModel def owns(user, id_or_entity): """Does this user own the object in question?""" # Supers own everything. if user.super_admin: return True if owns_program(user, id_or...
34.80597
77
0.685678
276dc6135a1ada3d037923312512e69b860ea8bd
801
py
Python
src/pyams_portal/tests/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
src/pyams_portal/tests/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
src/pyams_portal/tests/__init__.py
Py-AMS/pyams-portal
a19f48079e683711394b8e57c05cf7cd9d20a888
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
26.7
75
0.741573
74470fa9070120f213ab2ffd73027923f77b4ea7
129
py
Python
z copy 9/test_pasted_from_page.py
staguchi0703/prob_boot_camp_difficult
77c2adcac98b6f84049acd66ead62e30dc48fa8b
[ "MIT" ]
null
null
null
z copy 9/test_pasted_from_page.py
staguchi0703/prob_boot_camp_difficult
77c2adcac98b6f84049acd66ead62e30dc48fa8b
[ "MIT" ]
null
null
null
z copy 9/test_pasted_from_page.py
staguchi0703/prob_boot_camp_difficult
77c2adcac98b6f84049acd66ead62e30dc48fa8b
[ "MIT" ]
null
null
null
# from resolve import resolve #################################### #################################### # 以下にプラグインの内容をペーストする #
18.428571
36
0.325581
989a54af2627d1898ec32831ad5b9b89dc669575
4,965
py
Python
iris_knn_and_decision_tree/IE517_HW2_treasury_decision_tree/treasury_tree_Classifier.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
iris_knn_and_decision_tree/IE517_HW2_treasury_decision_tree/treasury_tree_Classifier.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
iris_knn_and_decision_tree/IE517_HW2_treasury_decision_tree/treasury_tree_Classifier.py
chinthojuprajwal/IE517_ML_course
4b9a1eae9d5100d3573607c46d0fa37fe35074a9
[ "Unlicense" ]
null
null
null
#Our first machine learning model #Garreta and Moncecchi pp 10-20 #uses Iris database and SGD classifier import pandas as pd import numpy as np #print('The scikit learn version is {}.'.format(sklearn.__version__)) path='D:/UIUC_courses/IE517/IE517_FY21_HW2/IE517_HW2_treasury_decision_tree/Treasury_squeeze_raw_score_da...
31.03125
118
0.691843
581b1fd41b784a6e5dbca6777f0c5f3dbad2ea06
9,925
py
Python
tests/test_fields.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_fields.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
tests/test_fields.py
aubreystarktoller/django-babik-card-primitives
d380342652aeb394a8e7b6d952034465ec5618e4
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase, RequestFactory from django.core.exceptions import ValidationError from testfixtures import LogCapture from babik_card_primitives.two_field_date import TwoFieldDate from babik_card_primitives.fields import ( CARD_NUMBER_MAX_LENGTH, CardNumberField, CardSecurityCodeField, ...
35.320285
86
0.659647
eca2c67749c3cbff77c96d0b9777eb75960ea5f5
17,796
py
Python
src/network-manager/azext_network_manager/vendored_sdks/aio/operations/_admin_rule_collections_operations.py
ravithanneeru/azure-cli-extensions
e0de87f3563ae39525370e9912589aac33e7bded
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/aio/operations/_admin_rule_collections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/aio/operations/_admin_rule_collections_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
51.732558
275
0.680659
5a72d97503d510c44677dcfb25e11354c23b48a1
64,229
py
Python
lingvo/core/recurrent.py
Felanbird/lingvo
e96418c225f77b8ece1d1b5ddacce1fd49cf42ab
[ "Apache-2.0" ]
1
2020-10-19T06:14:06.000Z
2020-10-19T06:14:06.000Z
lingvo/core/recurrent.py
albertsh10/lingvo
5cd8aff375e7f8fc3c6fb065ce3f40854eb6f31a
[ "Apache-2.0" ]
null
null
null
lingvo/core/recurrent.py
albertsh10/lingvo
5cd8aff375e7f8fc3c6fb065ce3f40854eb6f31a
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # 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 ...
39.068735
117
0.679101
34dea7e8f16290ed9d180b0dfa53da795e7fc3a5
7,847
py
Python
conf.py
TingPing/pandora-apidoc
80450050d5148b7d69802ddfb52a4022a5422f9f
[ "WTFPL" ]
1
2015-09-02T21:34:40.000Z
2015-09-02T21:34:40.000Z
conf.py
TingPing/pandora-apidoc
80450050d5148b7d69802ddfb52a4022a5422f9f
[ "WTFPL" ]
null
null
null
conf.py
TingPing/pandora-apidoc
80450050d5148b7d69802ddfb52a4022a5422f9f
[ "WTFPL" ]
null
null
null
# -*- coding: utf-8 -*- # # Pandora API documentation documentation build configuration file, created by # sphinx-quickstart on Mon Jun 30 21:53:24 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogener...
32.292181
86
0.718109
5f87e0edd129826163b542563779e682123981c9
665
py
Python
reviews/models.py
DerrickSee/HopeResource
6992c17521f3fd552ed980e33c8d4aeaa1f4daa4
[ "BSD-3-Clause" ]
null
null
null
reviews/models.py
DerrickSee/HopeResource
6992c17521f3fd552ed980e33c8d4aeaa1f4daa4
[ "BSD-3-Clause" ]
null
null
null
reviews/models.py
DerrickSee/HopeResource
6992c17521f3fd552ed980e33c8d4aeaa1f4daa4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.conf import settings from django.core.validators import MaxValueValidator, MinValueValidator class Review(models.Model): created = models.DateTimeField(auto_now_add=True) modified = models.DateTimeField(auto_now=True) title ...
30.227273
71
0.723308
80fb7cbf621b1610c2a2ff1a2cc0df03ab61a0be
587
py
Python
app/core/management/commands/wait_for_db.py
ifiokeyo/RecipeAPI
8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
ifiokeyo/RecipeAPI
8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974
[ "MIT" ]
null
null
null
app/core/management/commands/wait_for_db.py
ifiokeyo/RecipeAPI
8ec8f8e4ca868a9c9cd97d534dc6f42a4fa14974
[ "MIT" ]
null
null
null
import time from django.core.management.base import BaseCommand from django.db.utils import OperationalError from django.db import connections class Command(BaseCommand): """Django command to pause execution until db is available""" def handle(self, *args, **options): self.stdout.write('Waiting for database...'...
25.521739
70
0.741056
e14db7906da00f236cc16f7c4e4fd31df5af61f8
73,849
py
Python
src/python/grpcio/grpc/__init__.py
jme-tg/grpc
24e1deafda4adcafc90d08a1afc11c687489cf64
[ "Apache-2.0" ]
1
2019-09-05T06:28:48.000Z
2019-09-05T06:28:48.000Z
src/python/grpcio/grpc/__init__.py
jme-tg/grpc
24e1deafda4adcafc90d08a1afc11c687489cf64
[ "Apache-2.0" ]
null
null
null
src/python/grpcio/grpc/__init__.py
jme-tg/grpc
24e1deafda4adcafc90d08a1afc11c687489cf64
[ "Apache-2.0" ]
null
null
null
# Copyright 2015-2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
37.429802
91
0.660131
4a490bd9c10bcb11256a6107d9df66561e87966b
229
py
Python
leetcode962againagain.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
8
2019-05-26T19:24:13.000Z
2021-03-24T17:36:14.000Z
leetcode962againagain.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
null
null
null
leetcode962againagain.py
AmitHasanShuvo/Programming
f47ecc626e518a0bf5f9f749afd15ce67bbe737b
[ "MIT" ]
1
2020-04-19T04:59:54.000Z
2020-04-19T04:59:54.000Z
from collections import Counter class Solution: def repeatedNTimes(self, A: List[int]) -> int: occ = Counter(A) for k, v in occ.items(): if v > 1: return k; return A[-1]
19.083333
50
0.515284
12c24ab944795578cfdb8ab6819e79091df20ac6
1,248
py
Python
Mundo 3/ex084.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
1
2021-03-10T21:53:38.000Z
2021-03-10T21:53:38.000Z
Mundo 3/ex084.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
Mundo 3/ex084.py
RafaelSdm/Curso-de-Python
ae933ba80ee00ad5160bd5d05cf4b21007943fd4
[ "MIT" ]
null
null
null
from time import sleep print("analise dos pesos:") cadastro = list() rascunho = list() nomes = list() nomesP = list() maiorP = menorP =0 contador = 0 cont =0 while True: print("-"*30) rascunho.append(str(input("informe o seu nome:"))) rascunho.append(float(input("Diga o seu peso:"))) print("-"*30) c...
21.152542
84
0.572115
d4d5b471215936fd27631f1bfdc94faca8425020
1,188
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/diff_disk_settings_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/diff_disk_settings_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/diff_disk_settings_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.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 ...
36
80
0.619529
083dd9aedfac8319d19f85f49eac30cf491d3159
5,393
py
Python
biowardrobe_airflow_plugins/utils/analyze.py
mr-c/biowardrobe-airflow-plugins
3ed90c9b3ef7488128e1e5b0fc67ea1f99045cdc
[ "Apache-2.0" ]
null
null
null
biowardrobe_airflow_plugins/utils/analyze.py
mr-c/biowardrobe-airflow-plugins
3ed90c9b3ef7488128e1e5b0fc67ea1f99045cdc
[ "Apache-2.0" ]
2
2018-09-19T16:52:59.000Z
2018-09-20T23:09:36.000Z
biowardrobe_airflow_plugins/utils/analyze.py
mr-c/biowardrobe-airflow-plugins
3ed90c9b3ef7488128e1e5b0fc67ea1f99045cdc
[ "Apache-2.0" ]
1
2020-06-02T16:49:06.000Z
2020-06-02T16:49:06.000Z
#!/usr/bin/env python3 import logging import decimal import os import re from json import dumps, loads from airflow.models import DagRun from airflow.utils.state import State from biowardrobe_airflow_plugins.utils.connect import HookConnect from biowardrobe_airflow_plugins.utils.func import (norm_path, fill_template) f...
47.307018
118
0.547562
65da969c0a3b63b13427a3b9cecee8de27c6e925
4,349
py
Python
restapi/connectors/sqlalchemy/__init__.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
restapi/connectors/sqlalchemy/__init__.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
restapi/connectors/sqlalchemy/__init__.py
fossabot/http-api
57a646884e62fe024f6dd7edcc572c85f2955f16
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Wrapper for the existing Flask-SQLalchemy NOTE: Flask Sqlalchemy needs to have models defined on existing instance; for this reason we create the sql instance where models are defined. For future lazy alchemy: http://flask.pocoo.org/snippets/22/ """ import sqlalchemy from restapi.utiliti...
35.942149
87
0.623362
fbea655547a136eef8ac760a3decdba0f7f97939
28,132
py
Python
lib-python/2.7/test/test_sys.py
jeff5/jython-whinchat
65d8e5268189f8197295ff2d91be3decb1ee0081
[ "CNRI-Jython" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
BitmessageKit/Vendor/static-python/Lib/test/test_sys.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
BitmessageKit/Vendor/static-python/Lib/test/test_sys.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: iso-8859-1 -*- import unittest, test.test_support import sys, os, cStringIO import struct import operator class SysModuleTest(unittest.TestCase): def tearDown(self): test.test_support.reap_children() def test_original_displayhook(self): import __builtin__ savestdout = sy...
36.20592
79
0.586912
132748b8956a73fc360307fb2ec79a575783331b
79
py
Python
pocket/__init__.py
Seth-Park/pocket
42c7da16028bccc846d163ca4b52701a394cce18
[ "BSD-3-Clause" ]
13
2020-12-03T12:12:09.000Z
2022-02-28T06:53:19.000Z
pocket/__init__.py
Seth-Park/pocket
42c7da16028bccc846d163ca4b52701a394cce18
[ "BSD-3-Clause" ]
26
2020-12-08T01:01:47.000Z
2021-10-09T13:00:48.000Z
pocket/__init__.py
DzReal/Pocket
0b9278f3d239a78ecd1855a3c8b7423a685a85b4
[ "BSD-3-Clause" ]
1
2022-03-27T14:13:57.000Z
2022-03-27T14:13:57.000Z
from . import data from . import core from . import utils from . import models
15.8
20
0.746835
a08d75669be724bcfe3e3f5445e7be87e618e7f7
23
py
Python
test/__init__.py
RiteshMaheshwari/naarad
401ae683e38900e94898b15ab64d4410a556956c
[ "Apache-2.0" ]
180
2015-01-05T13:27:16.000Z
2021-02-08T04:11:47.000Z
test/__init__.py
RiteshMaheshwari/naarad
401ae683e38900e94898b15ab64d4410a556956c
[ "Apache-2.0" ]
58
2015-01-07T10:25:17.000Z
2020-11-05T03:40:23.000Z
test/__init__.py
RiteshMaheshwari/naarad
401ae683e38900e94898b15ab64d4410a556956c
[ "Apache-2.0" ]
60
2015-01-06T09:23:33.000Z
2021-02-11T04:29:33.000Z
__author__ = 'sgandhi'
11.5
22
0.73913