hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6922c9f5f58bcc2458ccc430c20fbd3d35a3615f | 2,475 | py | Python | burin/dxftypes.py | matthewSorensen/plotterstuff | 5e694c21d3cc49690f8b20cc9c06b3365612ee12 | [
"BSD-2-Clause"
] | 1 | 2020-10-15T04:59:16.000Z | 2020-10-15T04:59:16.000Z | burin/dxftypes.py | matthewSorensen/plotterstuff | 5e694c21d3cc49690f8b20cc9c06b3365612ee12 | [
"BSD-2-Clause"
] | null | null | null | burin/dxftypes.py | matthewSorensen/plotterstuff | 5e694c21d3cc49690f8b20cc9c06b3365612ee12 | [
"BSD-2-Clause"
] | null | null | null | from geomdl import BSpline
import numpy as np
import math
import ezdxf
import burin.types
| 27.197802 | 84 | 0.606869 |
692480274c65e40eecef76118c129488a11778d0 | 161 | py | Python | backend/microservices/audio-generator/config/routes/authentication.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | 3 | 2021-04-26T00:17:14.000Z | 2021-07-04T15:30:09.000Z | backend/microservices/audio-generator/config/routes/authentication.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | null | null | null | backend/microservices/audio-generator/config/routes/authentication.py | MuhamedAbdalla/Automatic-Audio-Book-Based-On-Emotion-Detection | 72130ad037b900461af5be6d80b27ab29c81de5e | [
"MIT"
] | null | null | null | API_ROOT = 'http://localhost:6000' #'https://bookbeat.herokuapp.com'
TOKEN_VALIDATION_ABS_ENDPOINT = API_ROOT + '/validate-token'
REQ_USER_ID_KEY_NAME = 'id' | 40.25 | 69 | 0.757764 |
6924fcbecc439543091a0747fd24dab3169d855c | 238 | py | Python | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/date/schema_instance/nistschema_sv_iv_list_date_min_length_3_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.date.schema_instance.nistschema_sv_iv_list_date_min_length_3_xsd.nistschema_sv_iv_list_date_min_length_3 import NistschemaSvIvListDateMinLength3
__all__ = [
"NistschemaSvIvListDateMinLength3",
]
| 39.666667 | 182 | 0.886555 |
6925a6eef582f0d830aa78315162927b6a168d1b | 2,717 | py | Python | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | face_follow/src/follower.py | andrewtron3000/hacdc-ros-pkg | f3178ebc5a71889066db102e3b57beb0dcc1a204 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/env python
#*********************************************************************
# Software License Agreement (BSD License)
#
# Copyright (c) 2011 andrewtron3000
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the ... | 45.283333 | 90 | 0.703717 |
69279b7254cd9d2ee23d0e66b83b60fdbe51cae2 | 4,359 | py | Python | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | fangyu.py | gaogaotiantian/tybuild | f97a1fc5e15c35dd887dbcd8a5018e424ee79e78 | [
"MIT"
] | null | null | null | # coding:utf-8
import matplotlib.pyplot as plt
import matplotlib as mpl
# Def
# HP
# CriDef
# CriDec
# Dodge
# Yuling
if __name__ == "__main__":
print mpl.matplotlib_fname()
DEF_CONST = 120
HP_CONST = 432
CRI_DEF_CONST = 54
DODGE_CONST = 54
YULING_CONST = 54
fig = plt.figure()
ax1 =... | 34.054688 | 96 | 0.620096 |
692850aadfd57c9c530354c065381240dc631282 | 759 | py | Python | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | 2 | 2021-05-04T20:52:56.000Z | 2021-05-05T12:50:05.000Z | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | null | null | null | portfolio_app/migrations/0005_auto_20210309_1606.py | ashraffaris42/faris-Personal-Portfolio | ea2a84cdefbefeb703037dd2eb80299ca24c42f4 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-09 16:06
from django.db import migrations, models
import djrichtextfield.models
| 25.3 | 65 | 0.59025 |
6928610238b2e0cae526f79687ff41ce7a474164 | 4,882 | py | Python | Competing_Algorithm/demo.py | ZhiQiu976/project-Indian-Buffet-Process | a4817550f2ca1778333066fa03ec6bb5b9cb4240 | [
"MIT"
] | null | null | null | Competing_Algorithm/demo.py | ZhiQiu976/project-Indian-Buffet-Process | a4817550f2ca1778333066fa03ec6bb5b9cb4240 | [
"MIT"
] | null | null | null | Competing_Algorithm/demo.py | ZhiQiu976/project-Indian-Buffet-Process | a4817550f2ca1778333066fa03ec6bb5b9cb4240 | [
"MIT"
] | 1 | 2020-04-30T17:26:26.000Z | 2020-04-30T17:26:26.000Z | """Demo for latent factor model"""
from __future__ import division
import numpy as np
import numpy.random as nr
import matplotlib.pyplot as plt
from IBPFM import IBPFM
from utils.tracePlot import trace
from utils.scaledimage import scaledimage
N = 100
chain = 1000
K_finite = 6
# # read the keyboard input for the num... | 30.135802 | 88 | 0.599549 |
6928d12a9070c21f90e40630002456e946b09b39 | 1,391 | py | Python | ex3_1_dnn_mnist_cl.py | yoongon/keraspp | 4950e2e78bfd19095b88fd3a1ca74ffedba819a5 | [
"MIT"
] | null | null | null | ex3_1_dnn_mnist_cl.py | yoongon/keraspp | 4950e2e78bfd19095b88fd3a1ca74ffedba819a5 | [
"MIT"
] | null | null | null | ex3_1_dnn_mnist_cl.py | yoongon/keraspp | 4950e2e78bfd19095b88fd3a1ca74ffedba819a5 | [
"MIT"
] | null | null | null | # #########################
Nin = 784
Nh_l = [100, 50]
number_of_class = 10
Nout = number_of_class
# DNN ########################
from keras import layers, models
# ##############################
import numpy as np
from keras import datasets
from keras.utils import np_utils
(X_train... | 33.119048 | 95 | 0.608914 |
6929df2927459d70fbbc2605690e202e9fada472 | 649 | py | Python | MLGame/mlgame/crosslang/exceptions.py | Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING | f4a58d0d9f5832a77a4a86352e084065dc7bae50 | [
"MIT"
] | null | null | null | MLGame/mlgame/crosslang/exceptions.py | Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING | f4a58d0d9f5832a77a4a86352e084065dc7bae50 | [
"MIT"
] | null | null | null | MLGame/mlgame/crosslang/exceptions.py | Liuian/1092_INTRODUCTION-TO-MACHINE-LEARNING-AND-ITS-APPLICATION-TO-GAMING | f4a58d0d9f5832a77a4a86352e084065dc7bae50 | [
"MIT"
] | null | null | null | """
The exceptions for the crosslang module
"""
| 23.178571 | 78 | 0.624037 |
692aef8917d87dca4ac44be30bc2c59f6597251b | 663 | py | Python | meirin/db/metapolicy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/db/metapolicy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | meirin/db/metapolicy.py | sinsong/Meirin | ac536b3905d258dbdf5e1013d56d2f906efce58e | [
"BSD-2-Clause"
] | null | null | null | from sqlalchemy import Column, Sequence
from sqlalchemy import Integer, String, Text
from meirin.db.base_class import Base
| 27.625 | 112 | 0.714932 |
692bcf4ca6a37b28d7cd78b37196366ac2f21606 | 115 | py | Python | lib/extensions/inplace_abn_1/__init__.py | shampooma/openseg.pytorch | d1da408a1e870d52c058c359583bc098f7f3d9e2 | [
"MIT"
] | 2,671 | 2019-04-09T16:20:16.000Z | 2022-03-31T19:21:29.000Z | lib/extensions/inplace_abn_1/__init__.py | shampooma/openseg.pytorch | d1da408a1e870d52c058c359583bc098f7f3d9e2 | [
"MIT"
] | 245 | 2019-05-02T05:10:55.000Z | 2022-03-31T07:14:44.000Z | lib/extensions/inplace_abn_1/__init__.py | shampooma/openseg.pytorch | d1da408a1e870d52c058c359583bc098f7f3d9e2 | [
"MIT"
] | 730 | 2019-04-16T14:45:56.000Z | 2022-03-31T08:59:22.000Z | from .bn import ABN, InPlaceABN, InPlaceABNSync
from .functions import ACT_RELU, ACT_LEAKY_RELU, ACT_ELU, ACT_NONE
| 38.333333 | 66 | 0.826087 |
692ec0bb7422b9bf134882c71709eab791047862 | 779 | py | Python | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 5 | 2019-02-26T20:11:43.000Z | 2021-03-10T08:45:38.000Z | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 11 | 2017-11-15T19:20:23.000Z | 2021-09-14T18:17:47.000Z | infinisdk/core/utils/environment.py | Infinidat/infinisdk | a5a3fbe1e6c649bca85b8a3fc3bd28fb820a90e4 | [
"BSD-3-Clause"
] | 2 | 2017-11-16T11:59:05.000Z | 2019-02-25T20:44:23.000Z | import os
import pkg_resources
from mitba import cached_function
| 25.966667 | 94 | 0.703466 |
69301dd6f35763c4b558452e2a75490a7e95b5cb | 1,176 | py | Python | ChestnutPatcher/inject-lib.py | chestnut-sandbox/Chestnut | b42b9eb902e0928e8b549339788f83bb009290c1 | [
"Zlib"
] | 7 | 2020-12-08T02:00:14.000Z | 2021-05-10T13:12:35.000Z | ChestnutPatcher/inject-lib.py | cc0x1f/Chestnut | b42b9eb902e0928e8b549339788f83bb009290c1 | [
"Zlib"
] | 2 | 2022-01-03T13:51:48.000Z | 2022-01-26T15:42:44.000Z | ChestnutPatcher/inject-lib.py | cc0x1f/Chestnut | b42b9eb902e0928e8b549339788f83bb009290c1 | [
"Zlib"
] | 2 | 2021-05-15T03:06:07.000Z | 2021-08-06T18:11:35.000Z | import sys
import lief
import json
import struct
import os
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: %s <binary>" % sys.argv[0])
else:
main(sys.argv[1])
| 25.021277 | 64 | 0.590986 |
69331d5c6bc354bd17e9f9d5696da9f4cbff069b | 5,826 | py | Python | scoff/parsers/generic.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | null | null | null | scoff/parsers/generic.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | 1 | 2020-03-20T13:57:52.000Z | 2021-03-11T17:25:25.000Z | scoff/parsers/generic.py | brunosmmm/scoff | e1a0b5f98dd9e60f41f3f7cfcda9038ffd80e138 | [
"MIT"
] | null | null | null | """Generic regex-based parser."""
import re
from collections import deque
from typing import Union, Any, List, Deque, Tuple, Dict, Callable
from scoff.parsers.linematch import MatcherError, LineMatcher
EMPTY_LINE = re.compile(b"\s*$")
def _state_change_handler(self, old_state, new_state):
"""State chan... | 31.15508 | 76 | 0.583934 |
6933f6dc14a4268b062d6716b8b6fce13e8b8ff9 | 34,279 | py | Python | cfg/model/CfgModel.py | sdnellen/ordt-config-tool | 30cc7342c5bc0f574b2a4a8d207230e1fa527615 | [
"Apache-2.0"
] | 1 | 2019-12-06T19:11:28.000Z | 2019-12-06T19:11:28.000Z | utils/cfgtool/cfg/model/CfgModel.py | mytoys/open-register-design-tool | 5d6dea268f77546a9a786a16603f50e974d87050 | [
"Apache-2.0"
] | null | null | null | utils/cfgtool/cfg/model/CfgModel.py | mytoys/open-register-design-tool | 5d6dea268f77546a9a786a16603f50e974d87050 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
'''
@author: snellenbach
Config sequence model
'''
from enum import Enum, unique
import re
from cfg.model.RegModelWrapper import RegModelWrapper
from cfg.model.Utils import MsgUtils
from cfg.output.OutBuilder import OutBuilder as ob
# ------- config model node classes
def resolvePaths(self):
... | 47.675939 | 210 | 0.632603 |
693467a0acaed0c7690c50885524596a1996895e | 922 | py | Python | TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | null | null | null | TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | 1 | 2020-11-25T15:47:38.000Z | 2020-11-25T15:47:38.000Z | TERCEIRO MUNDO - THIRD WORLD/Um print especial - 97.py | MatheusKlebson/Python-Course | c1c5404095601733057bd91a96b5b4c45f0b5b9a | [
"MIT"
] | null | null | null | # Exerccio Python 097: Faa um programa que tenha uma funo chamada escreva(),
# que receba um texto qualquer como parmetro e mostre uma mensagem com tamanho adaptvel.
# Ex:
# escreva(Ol, Mundo!) Sada: ... | 61.466667 | 167 | 0.273319 |
69357d4b61dce4eb42c2cf196abf2f132d27de5f | 2,061 | py | Python | tests/test_dict_qtable.py | fgka/reinforcement-learning-py | e4c582d192b36a270efce5e1512596b72466c8f7 | [
"MIT"
] | null | null | null | tests/test_dict_qtable.py | fgka/reinforcement-learning-py | e4c582d192b36a270efce5e1512596b72466c8f7 | [
"MIT"
] | null | null | null | tests/test_dict_qtable.py | fgka/reinforcement-learning-py | e4c582d192b36a270efce5e1512596b72466c8f7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# vim: ai:sw=4:ts=4:sta:et:fo=croql
# coding=utf-8
import pytest
# Uncomment to run test in debug mode
# import pudb; pudb.set_trace()
from reinforcement_learning.dict_qtable import DictQTable
from test_qaction import QActionTest
from test_qstate import QStateTest
"""
DictQTable
"""
| 33.786885 | 73 | 0.654051 |
693580d8911168f775041c87c4274d3d07d8d2de | 2,851 | py | Python | handlers/acceptmember.py | micjerry/groupservice | 807e5d53533897ac36d9bf1cce30aee09979ea9f | [
"Apache-2.0"
] | 1 | 2015-12-14T08:31:30.000Z | 2015-12-14T08:31:30.000Z | handlers/acceptmember.py | micjerry/groupservice | 807e5d53533897ac36d9bf1cce30aee09979ea9f | [
"Apache-2.0"
] | null | null | null | handlers/acceptmember.py | micjerry/groupservice | 807e5d53533897ac36d9bf1cce30aee09979ea9f | [
"Apache-2.0"
] | null | null | null | import tornado.web
import tornado.gen
import json
import io
import logging
import motor
from bson.objectid import ObjectId
import mickey.userfetcher
from mickey.basehandler import BaseHandler
| 33.541176 | 105 | 0.54437 |
6938f0e86ee3f8439ad8093f9adb38fd142480f6 | 1,366 | py | Python | ois_api_client/v2_0/dto/AdditionalQueryParams.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | 7 | 2020-10-22T08:15:29.000Z | 2022-01-27T07:59:39.000Z | ois_api_client/v3_0/dto/AdditionalQueryParams.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | ois_api_client/v3_0/dto/AdditionalQueryParams.py | peterkulik/ois_api_client | 51dabcc9f920f89982c4419bb058f5a88193cee0 | [
"MIT"
] | null | null | null | from typing import Optional
from dataclasses import dataclass
from .InvoiceAppearance import InvoiceAppearance
from .InvoiceCategory import InvoiceCategory
from .PaymentMethod import PaymentMethod
from .Source import Source
| 44.064516 | 180 | 0.786237 |
6939aa03ac383f4a97a326eec7719fca0c79b4b8 | 1,213 | py | Python | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | ingestion/testdir/testperf.py | jaysisodiya/relevare | b4e7b547b7372cee132e84bbd5d92cd69cdbdb63 | [
"Apache-2.0"
] | null | null | null | #
# GDELT data will be published to Kafka
# Topics will be created - one topic per country using the Alpha-2 country codes
#
from kafka import KafkaProducer
from datetime import datetime
import pickle
#
# Initialize the producer
#
brokerlist='ec2-54-186-208-110.us-west-2.compute.amazonaws.com:9092,ec2-52-11-172-126.u... | 34.657143 | 233 | 0.746908 |
693a26318273b86a08a21c3e6ee0d27d5cef1837 | 529 | py | Python | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | ope-backend/create_db.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | null | null | null | from src.infra.config import *
from src.infra.db_entities import *
from src.main.utils import hash_password
db_conn = DBConnectionHandler()
engine = db_conn.get_engine()
Base.metadata.create_all(engine)
with DBConnectionHandler() as db:
try:
new_user = Users(name='admin', role=1, email='admin@suzy.com', p... | 27.842105 | 103 | 0.688091 |
693bf1abd077feaa155858e8c51deee32624b50d | 14,767 | py | Python | example/hermes_bot.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | example/hermes_bot.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | example/hermes_bot.py | azalio/python-icq-bot | b5ab8306d2abf8c259da71db1a3195c842d51110 | [
"MIT"
] | null | null | null | import logging.config
import random
import re
from collections import defaultdict
from datetime import datetime
from enum import Enum
import requests
from example.util import log_call
from icq.bot import ICQBot, FileNotFoundException
from icq.constant import TypingStatus
from icq.filter import MessageFilter
from icq.... | 36.825436 | 120 | 0.590709 |
693d787b8fc4cb803c97288d52b6f488a6db0a75 | 2,920 | py | Python | qstat_live.py | romeromig/qstat_live | dde8ceb956dc0689a1c40c06ff20d58990488765 | [
"MIT"
] | null | null | null | qstat_live.py | romeromig/qstat_live | dde8ceb956dc0689a1c40c06ff20d58990488765 | [
"MIT"
] | null | null | null | qstat_live.py | romeromig/qstat_live | dde8ceb956dc0689a1c40c06ff20d58990488765 | [
"MIT"
] | null | null | null | #! /usr/bin/python3
import curses
import sys
import subprocess
if __name__ == "__main__":
main()
| 28.627451 | 90 | 0.564726 |
693fc462e0aaf1cceaf2297cb92e001c5129520c | 2,458 | py | Python | nwbwidgets/utils/plotly.py | NeurodataWithoutBorders/nwb-jupyter-widgets | 0d11e5d7b193c53d744b13c6404186ac84f4a5c1 | [
"BSD-3-Clause-LBNL"
] | 35 | 2019-03-10T23:39:17.000Z | 2021-11-16T11:50:33.000Z | nwbwidgets/utils/plotly.py | catalystneuro/nwb-jupyter-widgets | 0d11e5d7b193c53d744b13c6404186ac84f4a5c1 | [
"BSD-3-Clause-LBNL"
] | 158 | 2019-03-12T21:40:24.000Z | 2022-03-16T14:35:55.000Z | nwbwidgets/utils/plotly.py | catalystneuro/nwb-jupyter-widgets | 0d11e5d7b193c53d744b13c6404186ac84f4a5c1 | [
"BSD-3-Clause-LBNL"
] | 20 | 2019-03-08T14:30:27.000Z | 2021-11-08T16:31:26.000Z | import plotly.graph_objects as go
import numpy as np
def multi_trace(x, y, color, label=None, fig=None, insert_nans=False):
"""Create multiple traces that are associated with a single legend label
Parameters
----------
x: array-like
y: array-like
color: str
label: str, optional
fig: g... | 22.345455 | 87 | 0.513832 |
69417b7d7a3a4bf350d3fdf5bf9bebda6e608488 | 5,997 | py | Python | django_python3_saml/saml_settings.py | IronCountySchoolDistrict/django-python3-saml | 06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8 | [
"BSD-3-Clause"
] | 6 | 2018-04-16T16:38:59.000Z | 2022-02-10T09:02:11.000Z | django_python3_saml/saml_settings.py | IronCountySchoolDistrict/django-python3-saml | 06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8 | [
"BSD-3-Clause"
] | 1 | 2018-10-18T20:59:11.000Z | 2018-10-19T13:42:43.000Z | django_python3_saml/saml_settings.py | IronCountySchoolDistrict/django-python3-saml | 06d6198ed6c2b9ebfbfe4d6782715d91b6a468d8 | [
"BSD-3-Clause"
] | 6 | 2018-04-16T17:06:12.000Z | 2020-05-06T11:32:39.000Z | from django.conf import settings
| 51.698276 | 167 | 0.571786 |
6943f352d6732b6ea4e8c626dd8012e42b34ad09 | 25,972 | py | Python | heat/engine/parser.py | citrix-openstack-build/heat | fa31873529481472e037e3ce157b87f8057fe622 | [
"Apache-2.0"
] | null | null | null | heat/engine/parser.py | citrix-openstack-build/heat | fa31873529481472e037e3ce157b87f8057fe622 | [
"Apache-2.0"
] | null | null | null | heat/engine/parser.py | citrix-openstack-build/heat | fa31873529481472e037e3ce157b87f8057fe622 | [
"Apache-2.0"
] | null | null | null | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# 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... | 37.262554 | 79 | 0.578354 |
69453942628ce1c37639781c43bed0432a313dc3 | 1,547 | py | Python | src/puzzle_1_you_will_all_conform/my/please_conform_squared.py | foryourselfand/mit_6_S095_programming_for_the_puzzled | 88371bd8461709011acbed6066ac4f40c5cde29e | [
"MIT"
] | null | null | null | src/puzzle_1_you_will_all_conform/my/please_conform_squared.py | foryourselfand/mit_6_S095_programming_for_the_puzzled | 88371bd8461709011acbed6066ac4f40c5cde29e | [
"MIT"
] | null | null | null | src/puzzle_1_you_will_all_conform/my/please_conform_squared.py | foryourselfand/mit_6_S095_programming_for_the_puzzled | 88371bd8461709011acbed6066ac4f40c5cde29e | [
"MIT"
] | null | null | null | from typing import List
from please_conform import PleaseConform
from structures import Interval
| 30.333333 | 64 | 0.564318 |
694611c01663b1d27e4ebc26f84bb2603c45ff7c | 5,784 | py | Python | apps/almoxarifado/apps/cont/forms.py | mequetrefe-do-subtroco/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 1 | 2020-06-18T09:03:53.000Z | 2020-06-18T09:03:53.000Z | apps/almoxarifado/apps/cont/forms.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | 33 | 2020-06-16T18:59:33.000Z | 2021-08-12T21:33:17.000Z | apps/almoxarifado/apps/cont/forms.py | gabrielhjs/web_constel | 57b5626fb17b4fefc740cbe1ac95fd4ab90147bc | [
"MIT"
] | null | null | null | from django import forms
from .models import *
| 28.492611 | 115 | 0.602006 |
69469bc9f4f19c9f16e8cc58a6b94958c3abce9d | 1,980 | py | Python | DMD/pyDMD.py | yusovm/GEMSEC | d9abd43d27e05607e7b1ea8c99fcc736abd204fd | [
"MIT"
] | null | null | null | DMD/pyDMD.py | yusovm/GEMSEC | d9abd43d27e05607e7b1ea8c99fcc736abd204fd | [
"MIT"
] | null | null | null | DMD/pyDMD.py | yusovm/GEMSEC | d9abd43d27e05607e7b1ea8c99fcc736abd204fd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 2 16:43:45 2020
@author: micha
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from MD_Analysis import Angle_Calc
from pydmd import DMD
pdb="pdbs/WT_295K_200ns_50ps_0_run.pdb"
#Extract phi, psi angles
A... | 21.758242 | 69 | 0.663636 |
69473144068a69e9d819b7ace65fa14ac4780508 | 2,629 | py | Python | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | litreview/apps/accounts/migrations/0001_initial.py | josayko/litreview | 7bbc08eb635897a763f3882f0f42c76b76a5f127 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.1 on 2022-02-18 10:26
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
| 43.098361 | 164 | 0.613922 |
6948cabfaee34f9d09b3487a9f8788c36f0c90c4 | 24,914 | py | Python | bot.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | bot.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | bot.py | StickBrush/RecommenderBot | a9e9ad5900e016cfeb1cba144cac5faa84607522 | [
"WTFPL"
] | null | null | null | from telegram.ext import Updater, CommandHandler
import re
import os
import logging
from model import Anime
from gateway import *
if __name__ == '__main__':
main()
| 44.017668 | 90 | 0.702537 |
69496f7144482f3f124f969247fa77f335fc5db1 | 695 | py | Python | models/t_compensate_event_definition.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/t_compensate_event_definition.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | models/t_compensate_event_definition.py | THM-MA/XSDATA-waypoint | dd94442f9d6677c525bf3ebb03c15fec52fa1079 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Optional
from xml.etree.ElementTree import QName
from .t_event_definition import TEventDefinition
__NAMESPACE__ = "http://www.omg.org/spec/BPMN/20100524/MODEL"
| 24.821429 | 61 | 0.640288 |
694980cd79dd13058b0c41b67c32eb322a3674e4 | 822 | py | Python | plugins.py | ddfabbro/translatorbot | a14a442ec840d81e3d8bbc6faa15e52f68145655 | [
"Unlicense"
] | null | null | null | plugins.py | ddfabbro/translatorbot | a14a442ec840d81e3d8bbc6faa15e52f68145655 | [
"Unlicense"
] | null | null | null | plugins.py | ddfabbro/translatorbot | a14a442ec840d81e3d8bbc6faa15e52f68145655 | [
"Unlicense"
] | null | null | null | import html
from googletrans import Translator
from slackbot.bot import default_reply, respond_to, listen_to
translator = Translator()
| 24.176471 | 65 | 0.647202 |
6949c8d294973b9c15f0cdaf6df462ee0fe3f120 | 22 | py | Python | utils/db_api/__init__.py | zotov-vs/tg_shop | e640e7cfaeac0af1de33a62fb5e6da28d8843651 | [
"MIT"
] | 1 | 2021-12-16T10:41:16.000Z | 2021-12-16T10:41:16.000Z | utils/db_api/__init__.py | zotov-vs/tg_shop | e640e7cfaeac0af1de33a62fb5e6da28d8843651 | [
"MIT"
] | 6 | 2021-10-11T06:03:48.000Z | 2021-10-17T09:42:05.000Z | App(BE)/main/models/__init__.py | osamhack2021/AI_APP_handylib_devlib | 62cf67e6df280217e3715e2aa425636cefa7dd6f | [
"MIT"
] | null | null | null | from . import database | 22 | 22 | 0.818182 |
694a62087121f0e7a903137a5cded3d86b3d17e4 | 1,324 | py | Python | app.py | muelletm/search | 3087dcfd26861b1386c38575b53cb026cb1045f8 | [
"Apache-2.0"
] | 1 | 2022-03-25T19:14:53.000Z | 2022-03-25T19:14:53.000Z | app.py | muelletm/search | 3087dcfd26861b1386c38575b53cb026cb1045f8 | [
"Apache-2.0"
] | null | null | null | app.py | muelletm/search | 3087dcfd26861b1386c38575b53cb026cb1045f8 | [
"Apache-2.0"
] | 4 | 2022-03-10T18:40:44.000Z | 2022-03-10T19:20:30.000Z | import collections
import os
from pathlib import Path
from typing import List
import streamlit as st
from sentence_transformers import SentenceTransformer
from search.engine import Engine, Result
from search.model import load_minilm_model
from search.utils import get_memory_usage
os.environ["TOKENIZERS_PARALLELISM"]... | 21.354839 | 67 | 0.728852 |
694b3b51b65fa886685be715d3c914e309e0c1fe | 1,596 | py | Python | interface/exemplos1/04.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | interface/exemplos1/04.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | interface/exemplos1/04.py | ell3a/estudos-python | 09808a462aa3e73ad433501acb11f62217548af8 | [
"MIT"
] | null | null | null | from tkinter import *
if __name__=="__main__":
root = Tk()
myapp = EditBoxWindow(root) | 32.571429 | 85 | 0.58396 |
694cb06a76643cd64ded70df62959d8318b7af93 | 426 | py | Python | app/app.py | cagriozkurt/EksiSansur | 071f5e136d58f7fdd5ba32c8387904b2710d04a5 | [
"MIT"
] | null | null | null | app/app.py | cagriozkurt/EksiSansur | 071f5e136d58f7fdd5ba32c8387904b2710d04a5 | [
"MIT"
] | null | null | null | app/app.py | cagriozkurt/EksiSansur | 071f5e136d58f7fdd5ba32c8387904b2710d04a5 | [
"MIT"
] | 1 | 2022-03-22T13:50:41.000Z | 2022-03-22T13:50:41.000Z | import psycopg
from flask import Flask, render_template
from flask_compress import Compress
app = Flask(__name__)
DATABASE_URL = ""
Compress(app)
| 25.058824 | 66 | 0.671362 |
69512ed9252aea21d648e173c9d6e12c14061403 | 1,404 | py | Python | 2020/07/ape.py | notxenonbox/adventofcode | 82cd8fafdf21c988bd7383f2b6d71cec04282e65 | [
"Unlicense"
] | null | null | null | 2020/07/ape.py | notxenonbox/adventofcode | 82cd8fafdf21c988bd7383f2b6d71cec04282e65 | [
"Unlicense"
] | null | null | null | 2020/07/ape.py | notxenonbox/adventofcode | 82cd8fafdf21c988bd7383f2b6d71cec04282e65 | [
"Unlicense"
] | null | null | null | import re
input_lines = []
with open('input.txt') as f:
input_lines = f.readlines()
input_lines = list(filter(None, input_lines))
bags = {}
for i in input_lines:
bag, contents = re.search(r'^((?:[\w]+ ){2})bags contain ([\S\s]+)', i).groups()
if contents.strip() == "no other bags.":
bag = bag.strip()
bags[ba... | 22.285714 | 90 | 0.623219 |
69517bd1fdcbc759ae3114b27d1f3038e73dc9c5 | 3,209 | py | Python | src/drive.py | Matej-Chmel/pydrive-chat | 551504335bcebbeed239f1961b7bffa3f45d220d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/drive.py | Matej-Chmel/pydrive-chat | 551504335bcebbeed239f1961b7bffa3f45d220d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/drive.py | Matej-Chmel/pydrive-chat | 551504335bcebbeed239f1961b7bffa3f45d220d | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | from datetime import datetime, timedelta
from io import BytesIO
from pathlib import Path
from time import altzone, daylight, localtime, timezone
from pydrive.auth import GoogleAuth, AuthenticationRejected
from pydrive.drive import GoogleDrive as Drive, GoogleDriveFile as File
from requests import patch
from .auth impor... | 26.966387 | 113 | 0.727641 |
69550175d4982933c72091480c87edac34bffafc | 1,967 | py | Python | tests/test_yaml_files.py | graeme-winter/data | 6e359b169c35d1a6569fd316f7b7ab19fa5812b8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_yaml_files.py | graeme-winter/data | 6e359b169c35d1a6569fd316f7b7ab19fa5812b8 | [
"BSD-3-Clause"
] | null | null | null | tests/test_yaml_files.py | graeme-winter/data | 6e359b169c35d1a6569fd316f7b7ab19fa5812b8 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import pkg_resources
import pytest
import string
import yaml
definition_yamls = {
fn
for fn in pkg_resources.resource_listdir("dials_data", "definitions")
if fn.endswith(".yml")
}
hashinfo_yamls = {
fn
for fn... | 31.222222 | 86 | 0.68785 |
695579af900de69250d3b0d15ec3f825c2990c7f | 18,839 | py | Python | PacELF_Phase3/scripts/csvColumnToXMLFile.py | pacelf/pacelf | cd9f3608843eaf7d9dff6e20e06ee4bf773467e3 | [
"MIT"
] | null | null | null | PacELF_Phase3/scripts/csvColumnToXMLFile.py | pacelf/pacelf | cd9f3608843eaf7d9dff6e20e06ee4bf773467e3 | [
"MIT"
] | 2 | 2021-10-06T01:58:48.000Z | 2022-02-18T04:52:34.000Z | PacELF_Phase3/scripts/csvColumnToXMLFile.py | pacelf/pacelf | cd9f3608843eaf7d9dff6e20e06ee4bf773467e3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This program is designed to create XML sidecar files for harvesting metadata into Mediaflux.
#
# Author: Jay van Schyndel
# Date: 02 May 2017.
#
# Significant modifications done by: Daniel Baird
# Date: 2018 and early 2019
#
# Scenario. Metadata is stored in an MS Excel file in various colu... | 37.157791 | 197 | 0.49578 |
69566d12c06529c48fecd538d7a1ad6d03fffd43 | 1,147 | py | Python | authenticationCwProject/authenticationCwApp/views.py | cs-fullstack-2019-spring/django-authentication-cw-bettyjware11 | 0afa675b0b6602a89ecfff9ee29a62c95f677de6 | [
"Apache-2.0"
] | null | null | null | authenticationCwProject/authenticationCwApp/views.py | cs-fullstack-2019-spring/django-authentication-cw-bettyjware11 | 0afa675b0b6602a89ecfff9ee29a62c95f677de6 | [
"Apache-2.0"
] | null | null | null | authenticationCwProject/authenticationCwApp/views.py | cs-fullstack-2019-spring/django-authentication-cw-bettyjware11 | 0afa675b0b6602a89ecfff9ee29a62c95f677de6 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import HttpResponse
from .forms import FoodFitnessForm
from django.contrib.auth.models import User
# function to test with
# function to create new user
# function to confirm new user
| 28.675 | 107 | 0.70619 |
695785b2963244eb85ab885b374aa8c222d96191 | 98 | py | Python | ex.047.mostraNumerosPares.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | ex.047.mostraNumerosPares.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | ex.047.mostraNumerosPares.py | romulorm/cev-python | b5c6844956c131a9e4e02355459c218739ebf8c5 | [
"MIT"
] | null | null | null | # Conta somente nmeros pares
for c in range(2, 51, 2):
print(c, end=' ')
print("Acabou!")
| 14 | 30 | 0.602041 |
695934996d2e79a5c72ef6834b5be0584eb22c99 | 4,763 | py | Python | csv-manipulation/csv-merge.py | bohnacker/data-manipulation | a46cdfdeca8d242038b118509c20b1eb39ea5b36 | [
"MIT"
] | 2 | 2020-06-05T15:57:50.000Z | 2020-06-30T12:59:00.000Z | csv-manipulation/csv-merge.py | bohnacker/data-manipulation | a46cdfdeca8d242038b118509c20b1eb39ea5b36 | [
"MIT"
] | null | null | null | csv-manipulation/csv-merge.py | bohnacker/data-manipulation | a46cdfdeca8d242038b118509c20b1eb39ea5b36 | [
"MIT"
] | null | null | null | from __future__ import print_function
# A script to help you with manipulating CSV-files. This is especially necessary when dealing with
# CSVs that have more than 65536 lines because those can not (yet) be opened in Excel or Numbers.
# This script works with two files from ourworldindata.org:
# https://ourworldindat... | 33.780142 | 131 | 0.618728 |
695982e3be224fdcb410f0b1f9e5e2d7fef87d2d | 1,713 | py | Python | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | null | null | null | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | 1 | 2021-06-30T07:28:21.000Z | 2021-06-30T07:28:21.000Z | crawler/configs.py | debasishbai/Tender-Crawler | b721f197236bee4a69e0f403101a159af5924dda | [
"MIT"
] | null | null | null | go_to_tender_page = "Live Tenders"
search_bar = "#sr_buyer_chzn > a > span"
all_dept_names = "#sr_buyer_chzn > div > ul > li:nth-of-type(n+1)"
search_button = '#frm_sr > div.actionBtn > input[type="button"]:nth-child(1)'
type_name = '#sr_buyer_chzn > div > div > input[type="text"]'
scroll_down = "window.scrollTo(0, doc... | 50.382353 | 150 | 0.683596 |
695a580d9dfe172ab929a611ecc5c4b39192aa4c | 2,590 | py | Python | authors/apps/profiles/serializers.py | andela/ah-jumanji- | a304718929936dd4a759d737fb3570d6cc25fb76 | [
"BSD-3-Clause"
] | 1 | 2018-12-23T15:31:54.000Z | 2018-12-23T15:31:54.000Z | authors/apps/profiles/serializers.py | andela/ah-jumanji- | a304718929936dd4a759d737fb3570d6cc25fb76 | [
"BSD-3-Clause"
] | 26 | 2018-11-27T09:13:15.000Z | 2021-06-10T20:58:57.000Z | authors/apps/profiles/serializers.py | andela/ah-jumanji- | a304718929936dd4a759d737fb3570d6cc25fb76 | [
"BSD-3-Clause"
] | 2 | 2019-01-10T22:14:28.000Z | 2019-11-04T07:33:43.000Z | """
Module serializes `Profile` model
:generates JSON from fields in `Profile` model
"""
import logging
from rest_framework import serializers
from authors.apps.authentication.serializers import UserSerializer
from authors.apps.profiles.models import Profile, Following
logger = logging.getLogger(__name__)
... | 24.903846 | 71 | 0.62471 |
695aa8899e70c364dd37a9eae8fc436359e8c4b2 | 1,849 | py | Python | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 308 | 2015-01-04T20:05:10.000Z | 2022-03-09T17:15:52.000Z | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 10 | 2016-01-02T20:29:03.000Z | 2020-06-05T16:45:20.000Z | users/forms.py | hrbhat/twissandra | e2c16eac29b3c77065555da269b7974898e9f80e | [
"Apache-2.0"
] | 109 | 2015-02-01T11:25:24.000Z | 2022-03-18T12:18:13.000Z | from django import forms
import cass
| 35.557692 | 83 | 0.663602 |
695b6b62546eaa04ce79f4261d88a6eb1b8a86ea | 16,047 | py | Python | script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py | HealthML/faatpipe | 8292df4f34c99f035756a1acbd2c79055f652958 | [
"Apache-2.0"
] | 2 | 2021-12-06T09:00:52.000Z | 2022-03-03T15:03:51.000Z | script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py | HealthML/faatpipe | 8292df4f34c99f035756a1acbd2c79055f652958 | [
"Apache-2.0"
] | null | null | null | script/python/assoc_sclrt_kernels_spliceai_eval_top_hits.py | HealthML/faatpipe | 8292df4f34c99f035756a1acbd2c79055f652958 | [
"Apache-2.0"
] | null | null | null | import os
# os.environ["OMP_NUM_THREADS"] = "16"
import logging
logging.basicConfig(filename=snakemake.log[0], level=logging.INFO)
import pandas as pd
import numpy as np
# seak imports
from seak.data_loaders import intersect_ids, EnsemblVEPLoader, VariantLoaderSnpReader, CovariatesLoaderCSV
from seak.scoretest impo... | 42.228947 | 271 | 0.645541 |
695bd5a3034969d8612674c32efea1218548dce0 | 4,741 | py | Python | animations/dafP1.py | TristanCacqueray/demo-render | 4c8403e684165e5e75c046ee023c1f794a6650a8 | [
"Apache-2.0"
] | 9 | 2018-02-19T14:17:12.000Z | 2021-03-27T14:46:28.000Z | animations/dafP1.py | TristanCacqueray/demo-render | 4c8403e684165e5e75c046ee023c1f794a6650a8 | [
"Apache-2.0"
] | null | null | null | animations/dafP1.py | TristanCacqueray/demo-render | 4c8403e684165e5e75c046ee023c1f794a6650a8 | [
"Apache-2.0"
] | null | null | null | #!/bin/env python
# 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, software
# d... | 34.605839 | 75 | 0.607467 |
695c9b1e7ed238ec8d68378d50cb9434b9b47feb | 2,240 | py | Python | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | null | null | null | design-pattern/factory_method.py | twotwo/tools-python | b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4 | [
"MIT"
] | 1 | 2016-10-21T07:51:24.000Z | 2016-10-21T07:51:24.000Z | from abc import ABC, abstractmethod
# This time, PizzaStore is abstract
nyPizzaStore = NYPizzaStore()
chPizzaStore = ChicagoPizzaStore()
nyPizzaStore.orderPizza('Greek')
print("\n")
chPizzaStore.orderPizza('Cheese')
| 23.092784 | 84 | 0.638839 |
695cb03fad71e52d66b52655147eb22d30993c0d | 366 | py | Python | backup/server/__init__.py | TheSithPadawan/CSE222A-CourseProject | ded7232fa76a8c57e2355a6559573f71e6e63871 | [
"MIT"
] | 1 | 2019-02-17T06:41:59.000Z | 2019-02-17T06:41:59.000Z | backup/server/__init__.py | TheSithPadawan/CSE222A-CourseProject | ded7232fa76a8c57e2355a6559573f71e6e63871 | [
"MIT"
] | 1 | 2019-02-21T05:19:31.000Z | 2019-03-02T06:38:33.000Z | backup/server/__init__.py | TheSithPadawan/CSE222A-CourseProject | ded7232fa76a8c57e2355a6559573f71e6e63871 | [
"MIT"
] | 1 | 2022-02-12T05:18:49.000Z | 2022-02-12T05:18:49.000Z | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
db_url = 'postgresql://postgres:postgres@localhost:5432/postgres'
db = SQLAlchemy()
| 22.875 | 65 | 0.743169 |
695d8b7488bd393e88af11f9dfa6cf05fcd29803 | 2,677 | py | Python | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | ics2csv.py | wikier/apachecon-tac-scripts | 8b58eb910990910ed113996c2662e2601bee0176 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf8 -*-
# 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 i... | 30.078652 | 109 | 0.637281 |
695e5925518853dabd7c44e5771ea4c0dcb5f954 | 1,925 | py | Python | ctci/p3_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | ctci/p3_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | ctci/p3_1.py | camirmas/ctci | d90ab6c296a18cba5eb1204e0569aff2c6795422 | [
"MIT"
] | null | null | null | """Describe how you could use a single array to implement three stacks."""
| 25 | 74 | 0.404156 |
695eb2e49aac8f15bf80012509cf307d5b4f61f7 | 5,434 | py | Python | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | src/main/resources/basic.py | feng345fengcool/hellojava | efb1db4997d5e35572d69221b955e89f4ad84301 | [
"Apache-2.0"
] | null | null | null | __author__ = 'chenshuai'
cast = ["Cleese", "Plain", "Jones", "Idle"]
print cast
print len(cast)
print cast[1]
cast.append("Gilliam")
print cast
cast.pop()
print cast
cast.extend(["Gilliam", "Chapman"])
print cast
cast.remove("Chapman")
print cast
cast.insert(0, "Chapman")
print cast
movies = ["The Holy Grail", "The L... | 24.367713 | 99 | 0.602503 |
695ec52440fba379a30f79fa614d663b2b26c725 | 110 | py | Python | MiddleKit/Design/SQLitePythonGenerator.py | PeaceWorksTechnologySolutions/w4py | 74f5a03a63f1a93563502b908474aefaae2abda2 | [
"MIT"
] | 18 | 2016-08-01T20:15:59.000Z | 2019-12-24T16:00:03.000Z | MiddleKit/Design/SQLitePythonGenerator.py | WebwareForPython/w4py | bba08f5974d49f5da7e88abe3eeda1037d0824a3 | [
"MIT"
] | 6 | 2016-09-13T05:48:45.000Z | 2020-01-09T18:29:12.000Z | MiddleKit/Design/SQLitePythonGenerator.py | WebwareForPython/w4py | bba08f5974d49f5da7e88abe3eeda1037d0824a3 | [
"MIT"
] | 6 | 2016-09-16T14:32:29.000Z | 2020-01-03T18:52:16.000Z | from SQLPythonGenerator import SQLPythonGenerator
| 18.333333 | 49 | 0.854545 |
69606e8d600007b6ed1a1fe06f495e08cc77f964 | 994 | py | Python | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-04-26T08:03:56.000Z | 2021-04-26T08:03:56.000Z | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 2 | 2021-06-11T05:55:01.000Z | 2021-08-03T23:41:02.000Z | Spell Compendium/scr/Spell1108 - Dirge.py | Sagenlicht/ToEE_Mods | a4b07f300df6067f834e09fcbc4c788f1f4e417b | [
"MIT"
] | 1 | 2021-05-17T15:37:58.000Z | 2021-05-17T15:37:58.000Z | from toee import * | 30.121212 | 87 | 0.740443 |
6961424e888d8e63d731e6c1e71ebfa8b2d27d7f | 468 | py | Python | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | 9 | 2021-02-14T19:47:18.000Z | 2022-03-25T14:03:04.000Z | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | 2 | 2022-03-09T15:45:05.000Z | 2022-03-25T11:02:46.000Z | OMIEData/Downloaders/marginal_price_downloader.py | acruzgarcia/OMIEData | e4f8d8b8d7b5a8351a65c32e86f1a798f968cc6c | [
"MIT"
] | null | null | null |
from OMIEData.Downloaders.general_omie_downloader import GeneralOMIEDownloader
| 29.25 | 89 | 0.762821 |
6962fbbf3e083926d0de2767052362c19acba0b1 | 5,556 | py | Python | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | 14 | 2020-09-01T03:43:48.000Z | 2021-09-10T15:43:33.000Z | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | null | null | null | 054-asong/code.py | Life4gal/adworld.xctf-REVERSE | 5e552de6cf1f5fccdcba40d26ecf7060f5e782da | [
"MIT"
] | 3 | 2021-03-04T12:22:46.000Z | 2021-07-30T03:25:44.000Z | from struct import unpack
from os.path import getsize
# out
def un_sub_400CC0() -> tuple:
"""
:return: , out
"""
# out
outFilePath = "./out"
outLength = getsize(outFilePath)
with open(outFilePath, 'rb') as outFile:
# B = unsigned char
return unpack(''.join(['B' * ou... | 28.639175 | 95 | 0.415767 |
69652dfb803516a28321ac437986a8a9c6bc0aa9 | 1,345 | py | Python | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | textblob.py | usmanhaider1995/TextBlob | d609fe58b1e581bc8055d61bbefc7d20ef5ce388 | [
"BSD-3-Clause"
] | null | null | null | from textblob import TextBlob
from textblob import Word
import nltk
nltk.download('punkt')
nltk.download('wordnet')
#getting correct sentences
words = ['Machin','Learnin','corect']
corrected_words = []
for i in words:
corrected_words.append(TextBlob(i))
print('worng words :', words)
print('Corrected words :')
for... | 23.596491 | 97 | 0.719703 |
696b0fe7fb16a5ee74d9c65d62711192a825d49b | 942 | py | Python | loop_fix_sample_rate.py | Crystalwarrior/AO2-Scripts | acbabc64706374362bd93662d9ce1e2cf8eb35fb | [
"MIT"
] | 1 | 2020-11-21T14:27:27.000Z | 2020-11-21T14:27:27.000Z | loop_fix_sample_rate.py | Crystalwarrior/AO2-Scripts | acbabc64706374362bd93662d9ce1e2cf8eb35fb | [
"MIT"
] | null | null | null | loop_fix_sample_rate.py | Crystalwarrior/AO2-Scripts | acbabc64706374362bd93662d9ce1e2cf8eb35fb | [
"MIT"
] | 1 | 2020-08-14T02:44:46.000Z | 2020-08-14T02:44:46.000Z | import os
from os import path
old_sample_rate = float(input("What was the original sample rate? "))
new_sample_rate = float(input("What is the new sample rate? "))
for file in os.listdir(os.getcwd()):
name = file.rsplit(".",1)[0]
if file.rsplit(".",1)[-1] == "opus" and path.exists(name + ".opus.txt"):
... | 36.230769 | 76 | 0.549894 |
696b8fef41b6b27dc44ddf7473367dc19aba29de | 2,221 | py | Python | reviewboard/extensions/templatetags/rb_extensions.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | 1 | 2015-09-11T15:50:17.000Z | 2015-09-11T15:50:17.000Z | reviewboard/extensions/templatetags/rb_extensions.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | null | null | null | reviewboard/extensions/templatetags/rb_extensions.py | Khan/reviewboard | 51ec4261e67b8bf4e2cfa9a0894a97b16509ad33 | [
"MIT"
] | null | null | null | from django import template
from django.conf import settings
from django.template.loader import render_to_string
from djblets.util.decorators import basictag
from reviewboard.extensions.hooks import DiffViewerActionHook, \
NavigationBarHook, \
... | 30.847222 | 78 | 0.641603 |
696c68c8ad6875cf4824c538720ffa0e9657eb27 | 8,671 | py | Python | opengnn/models/model.py | CoderPat/OpenGNN | bc54328ad4aa034098073c72153eed361b4266ce | [
"MIT"
] | 32 | 2019-01-28T13:38:21.000Z | 2022-03-29T08:39:00.000Z | opengnn/models/model.py | CoderPat/OpenGNN | bc54328ad4aa034098073c72153eed361b4266ce | [
"MIT"
] | 1 | 2020-01-16T03:09:18.000Z | 2020-01-16T03:44:20.000Z | opengnn/models/model.py | CoderPat/OpenGNN | bc54328ad4aa034098073c72153eed361b4266ce | [
"MIT"
] | 7 | 2019-03-07T14:13:15.000Z | 2022-03-15T10:40:41.000Z | from abc import ABC, abstractmethod
from typing import Dict, Any
import tensorflow as tf
import numpy as np
from opengnn.utils.data import diverse_batch, batch_and_bucket_by_size
from opengnn.utils.data import filter_examples_by_size, truncate_examples_by_size
| 39.958525 | 93 | 0.587937 |
696cdcbe00ab21ab20807832ccc7573329262037 | 894 | py | Python | pyopendds/dev/itl2py/Output.py | jwillemsen/pyopendds | fd025416a02433dd42eeaf1ae449b6c1e19d177e | [
"MIT"
] | 19 | 2020-03-10T22:23:00.000Z | 2022-03-30T01:18:56.000Z | pyopendds/dev/itl2py/Output.py | jwillemsen/pyopendds | fd025416a02433dd42eeaf1ae449b6c1e19d177e | [
"MIT"
] | 28 | 2020-02-15T18:07:08.000Z | 2022-03-31T18:38:57.000Z | pyopendds/dev/itl2py/Output.py | jwillemsen/pyopendds | fd025416a02433dd42eeaf1ae449b6c1e19d177e | [
"MIT"
] | 6 | 2021-04-29T07:39:11.000Z | 2022-01-21T13:38:13.000Z | from pathlib import Path
from .ast import NodeVisitor
| 33.111111 | 85 | 0.530201 |
696d1b5afd422299951b5f3ee0a8a3483cf6d75d | 2,449 | py | Python | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 132 | 2016-10-19T12:34:44.000Z | 2022-03-16T09:00:39.000Z | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 3,152 | 2016-09-21T23:05:58.000Z | 2022-03-31T23:29:08.000Z | ansible/plugins/connection/multi_passwd_ssh.py | shubav/sonic-mgmt | 0ff71b907a55489bb4ed7d17b1682380fd459bf2 | [
"Apache-2.0"
] | 563 | 2016-09-20T01:00:15.000Z | 2022-03-31T22:43:54.000Z | import imp
import os
from functools import wraps
from ansible.errors import AnsibleAuthenticationFailure
from ansible.plugins import connection
# HACK: workaround to import the SSH connection plugin
_ssh_mod = os.path.join(os.path.dirname(connection.__file__), "ssh.py")
_ssh = imp.load_source("_ssh", _ssh_mod)
# Us... | 34.985714 | 113 | 0.660269 |
696db1e4a92f0d0e222cee7bcee91e0fd0798929 | 218 | py | Python | tests/helpers.py | shanedabes/sputils | 396fda1932e2a1ae4a602e9d2bc8238f0f6fecd9 | [
"Apache-2.0"
] | 1 | 2019-05-29T23:49:38.000Z | 2019-05-29T23:49:38.000Z | tests/helpers.py | shanedabes/sputils | 396fda1932e2a1ae4a602e9d2bc8238f0f6fecd9 | [
"Apache-2.0"
] | 33 | 2019-06-04T15:14:10.000Z | 2021-11-15T17:48:40.000Z | tests/helpers.py | shanedabes/sputils | 396fda1932e2a1ae4a602e9d2bc8238f0f6fecd9 | [
"Apache-2.0"
] | null | null | null | import os
import json
| 16.769231 | 58 | 0.669725 |
696f6073b8eafcb697b67113138ad0cec4dabea2 | 3,423 | py | Python | Lab7/Q3.py | fancent/PHY407 | 38ce8badb9537060becc255ec64e6de2968ca73c | [
"MIT"
] | 1 | 2020-12-20T17:30:06.000Z | 2020-12-20T17:30:06.000Z | Lab7/Q3.py | fancent/PHY407 | 38ce8badb9537060becc255ec64e6de2968ca73c | [
"MIT"
] | null | null | null | Lab7/Q3.py | fancent/PHY407 | 38ce8badb9537060becc255ec64e6de2968ca73c | [
"MIT"
] | 1 | 2021-06-12T14:21:13.000Z | 2021-06-12T14:21:13.000Z | """
This file aims to simulate the BelousovZhabotinsky reaction,
is a chemical mixture which, when heated, undergoes a series
of reactions that cause the chemical concentrations in the
mixture to oscillate between two extremes (x, y).
"""
import numpy as np
import matplotlib.pyplot as plt
## Constants
a = 1
b = 3
x... | 31.990654 | 101 | 0.532282 |
69708664ff337e44ffae2d3817c35e032d51bec6 | 2,747 | py | Python | tests/solr_tests/tests/management_commands.py | kmgroup/django-haystack-1.2.x-for-d1.8 | b9368f169eec06e78131e81d6968cc6580d6ddee | [
"BSD-3-Clause"
] | 1 | 2016-02-24T19:40:05.000Z | 2016-02-24T19:40:05.000Z | tests/solr_tests/tests/management_commands.py | kmgroup/django-haystack-1.2.x-for-d1.8 | b9368f169eec06e78131e81d6968cc6580d6ddee | [
"BSD-3-Clause"
] | null | null | null | tests/solr_tests/tests/management_commands.py | kmgroup/django-haystack-1.2.x-for-d1.8 | b9368f169eec06e78131e81d6968cc6580d6ddee | [
"BSD-3-Clause"
] | null | null | null | import pysolr
from django.conf import settings
from django.core.management import call_command
from django.test import TestCase
from haystack import indexes
from haystack.sites import SearchSite
from core.models import MockModel
| 36.626667 | 73 | 0.650528 |
6971294bf9fe140162bcbb44e819402a23fefea8 | 15,633 | py | Python | cons3rt/models/user.py | cons3rt/cons3rt-python-sdk | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | [
"RSA-MD"
] | null | null | null | cons3rt/models/user.py | cons3rt/cons3rt-python-sdk | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | [
"RSA-MD"
] | null | null | null | cons3rt/models/user.py | cons3rt/cons3rt-python-sdk | f0bcb295735ac55bbe47448fcbd95d2c7beb3ec0 | [
"RSA-MD"
] | null | null | null | """
Copyright 2020 Jackpine Technologies Corporation
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 ... | 27.966011 | 382 | 0.602827 |
69716928cf6a5af476069ffd69aec9842674f683 | 1,703 | py | Python | Topics/6_Compute/files/lambda_keepsecret.py | nsvijay04b1/AWS_Certified_Solutions_Architect_Professional | f141b9a64b652ffa9496ff47d527e7eaf4df006d | [
"Apache-2.0"
] | 1 | 2022-03-10T18:38:54.000Z | 2022-03-10T18:38:54.000Z | Topics/6_Compute/files/lambda_keepsecret.py | nsvijay04b1/AWS_Certified_Solutions_Architect_Professional | f141b9a64b652ffa9496ff47d527e7eaf4df006d | [
"Apache-2.0"
] | null | null | null | Topics/6_Compute/files/lambda_keepsecret.py | nsvijay04b1/AWS_Certified_Solutions_Architect_Professional | f141b9a64b652ffa9496ff47d527e7eaf4df006d | [
"Apache-2.0"
] | 1 | 2022-03-10T18:38:56.000Z | 2022-03-10T18:38:56.000Z | from __future__ import print_function
import json
import boto3
print('Loading function')
s3 = boto3.client('s3')
bucket_of_interest = "secretcatpics"
# For a PutObjectAcl API Event, gets the bucket and key name from the event
# If the object is not private, then it makes the object private by making a
# PutObjectA... | 32.132075 | 84 | 0.704052 |
15c48e2d345be8eb45daabb4d97935eaab12b990 | 17,156 | py | Python | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 41 | 2018-05-08T11:54:37.000Z | 2022-02-09T21:19:17.000Z | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 139 | 2018-06-07T13:45:21.000Z | 2021-04-30T20:44:06.000Z | tests/commons/big_query/copy_job_async/copy_job/test_copy_job_service.py | Morgenz/bbq | f0fd3f626841c610aee80ad08a61123b7cccb775 | [
"Apache-2.0"
] | 5 | 2019-09-11T12:28:24.000Z | 2022-02-04T21:38:29.000Z | import unittest
from apiclient.errors import HttpError
from google.appengine.ext import testbed, ndb
from mock import patch, Mock
from src.commons.big_query.copy_job_async.copy_job.copy_job_request \
import CopyJobRequest
from src.commons.big_query.copy_job_async.copy_job.copy_job_service \
import CopyJobServ... | 42.152334 | 124 | 0.570354 |
15c53f273bb229773a9dd501a2ed7fb628ef13eb | 399 | py | Python | solutions/dog_muffin.py | attawesome/Computer-Vision-with-OpenCV | 1198bfee8683f6b5c415e07e085fa528e00ecd0a | [
"MIT"
] | 6 | 2020-04-30T21:46:13.000Z | 2021-02-15T21:32:50.000Z | solutions/dog_muffin.py | attawesome/Computer-Vision-with-OpenCV | 1198bfee8683f6b5c415e07e085fa528e00ecd0a | [
"MIT"
] | null | null | null | solutions/dog_muffin.py | attawesome/Computer-Vision-with-OpenCV | 1198bfee8683f6b5c415e07e085fa528e00ecd0a | [
"MIT"
] | 6 | 2020-04-27T17:59:50.000Z | 2020-12-13T16:10:09.000Z | import cv2
import numpy as np
import matplotlib.pyplot as plt
image = np.flip(cv2.imread('../img/dog_muffin.jpg'), axis=2)
mask = np.zeros(image.shape[:2], dtype="uint8")
cv2.rectangle(mask, (90, 120), (160, 190), 255, -1)
masked = cv2.bitwise_and(image, image, mask=mask)
plt.figure(figsize=(20, 10))
plt.imshow(np.fl... | 30.692308 | 60 | 0.691729 |
15c8d860e73304bf40bd4b99e9d98b1c9921b456 | 2,676 | py | Python | jetavator/schema_registry/VaultObject.py | jetavator/jetavator | 6edc7b57532809f9903735c333544658631252b5 | [
"Apache-2.0"
] | null | null | null | jetavator/schema_registry/VaultObject.py | jetavator/jetavator | 6edc7b57532809f9903735c333544658631252b5 | [
"Apache-2.0"
] | 86 | 2020-04-11T18:03:32.000Z | 2021-06-15T14:48:45.000Z | jetavator/schema_registry/VaultObject.py | jetavator/jetavator | 6edc7b57532809f9903735c333544658631252b5 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from typing import Any, Dict, List
from abc import ABC, abstractmethod
from datetime import datetime
from collections import namedtuple
from lazy_property import LazyProperty
from .sqlalchemy_tables import ObjectDefinition
import wysdom
from jetavator.services import ComputeServ... | 26.49505 | 72 | 0.65284 |
15caae15c5cee5107dd04fd63976ca50c1febedb | 79 | py | Python | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | 1 | 2022-01-13T13:18:41.000Z | 2022-01-13T13:18:41.000Z | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | null | null | null | braandket/kernel/__init__.py | ZhengKeli/BraAndKet | f47cdbdb4c5040dd071815378138ac376c205f14 | [
"MIT"
] | 2 | 2020-11-06T20:16:13.000Z | 2020-12-01T12:56:03.000Z | from .abstract import Kernel
from .auto import AutoKernel
from .numpy import *
| 19.75 | 28 | 0.797468 |
15cdcd4087b753790bc8fb71c6e5d7a167674399 | 1,500 | py | Python | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | CourseOnline/MainProject/forms.py | smygt/DjangoSchoolSystem. | 6ddbef118ed7a2bb77192f96fc888a36ad4831ed | [
"MIT"
] | null | null | null | from django import forms
from .models import Announcement
# from .models import Role
from .models import Assignment
from .models import CourseMaterial
from .models import Grade
from .models import StudentUploadFile
from .models import Syllabus
from .models import Assistant
from django.forms import ClearableFileInput
#... | 22.38806 | 76 | 0.685333 |
15ced209f13f0b2a1de3e15ddd92542a87b54d79 | 29,172 | py | Python | ginga/canvas/types/plots.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2015-01-05T14:46:14.000Z | 2022-03-23T04:10:54.000Z | ginga/canvas/types/plots.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 858 | 2015-01-17T01:55:12.000Z | 2022-03-08T20:20:31.000Z | ginga/canvas/types/plots.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 60 | 2015-01-14T21:59:07.000Z | 2022-02-13T03:38:49.000Z | #
# plots.py -- classes for plots added to Ginga canvases.
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import sys
import numpy as np
from ginga.canvas.CanvasObject import (CanvasObjectBase, _color,
register_canva... | 35.189385 | 80 | 0.547614 |
15d0460d3097f204a84b42c16fe07a92ea6eb177 | 8,305 | py | Python | process_disqualified_directors_data.py | Global-Witness/uk-companies-house-parsers-public | e33a3a7791d6565638e2f3c0fd1233a909d983f2 | [
"MIT"
] | 2 | 2019-08-03T16:58:43.000Z | 2022-01-23T16:57:52.000Z | process_disqualified_directors_data.py | Global-Witness/uk-companies-house-parsers-public | e33a3a7791d6565638e2f3c0fd1233a909d983f2 | [
"MIT"
] | 1 | 2019-06-18T10:10:20.000Z | 2019-06-18T10:10:20.000Z | process_disqualified_directors_data.py | Global-Witness/uk-companies-house-parsers-public | e33a3a7791d6565638e2f3c0fd1233a909d983f2 | [
"MIT"
] | 1 | 2020-11-01T10:21:03.000Z | 2020-11-01T10:21:03.000Z | import csv
import os
import sys
from collections import defaultdict
PERSONS_OUTPUT_FILENAME_TEMPLATE = "persons_data_%s.csv"
DISQUALIFICATIONS_FILENAME_TEMPLATE = "disqualifications_data_%s.csv"
EXEMPTIONS_FILENAME_TEMPLATE = 'exemptions_data_%s.csv'
SNAPSHOT_HEADER_IDENTIFIER = "DISQUALS"
TRAILER_RECORD_IDENTIFIER = ... | 41.318408 | 162 | 0.706562 |
15d05a5b381b6c77c32c1817ba56017e005be78f | 2,875 | py | Python | myPackage/tools.py | marcgonzmont/ML_Challenge | ed9767689064a941c2db7642fc499828d0ad1326 | [
"CC0-1.0"
] | null | null | null | myPackage/tools.py | marcgonzmont/ML_Challenge | ed9767689064a941c2db7642fc499828d0ad1326 | [
"CC0-1.0"
] | null | null | null | myPackage/tools.py | marcgonzmont/ML_Challenge | ed9767689064a941c2db7642fc499828d0ad1326 | [
"CC0-1.0"
] | null | null | null | from os import makedirs, errno
from os.path import exists, join
import numpy as np
from matplotlib import pyplot as plt
import itertools
from sklearn import preprocessing
def makeDir(path):
'''
To create output path if doesn't exist
see: https://stackoverflow.com/questions/273192/how-can-i-create... | 31.593407 | 102 | 0.619826 |
15d0b4957b2e9a69a93ba4e15d527f629984be60 | 9,802 | py | Python | maskrcnn_benchmark/data/datasets/kitti.py | pwllr/IDA-3D | f5c8acbcf90a7c351499249a24754ad311da375e | [
"MIT"
] | 78 | 2020-03-02T12:00:57.000Z | 2022-02-21T09:48:08.000Z | maskrcnn_benchmark/data/datasets/kitti.py | pwllr/IDA-3D | f5c8acbcf90a7c351499249a24754ad311da375e | [
"MIT"
] | 19 | 2020-03-02T12:07:18.000Z | 2022-03-30T08:04:06.000Z | maskrcnn_benchmark/data/datasets/kitti.py | pwllr/IDA-3D | f5c8acbcf90a7c351499249a24754ad311da375e | [
"MIT"
] | 14 | 2020-06-14T03:29:47.000Z | 2021-07-21T06:30:08.000Z | import os
import torch
import torch.utils.data
from PIL import Image
import sys
import numpy as np
if sys.version_info[0] == 2:
import xml.etree.cElementTree as ET
else:
import xml.etree.ElementTree as ET
from maskrcnn_benchmark.structures.bounding_box import BoxList
from maskrcnn_benchmark.structures.bound... | 36.169742 | 89 | 0.576515 |
15d22cd4619c04c4fa2d8d4c420166060bc9ee2a | 25,744 | py | Python | escriptcore/py_src/faultsystems.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | escriptcore/py_src/faultsystems.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | escriptcore/py_src/faultsystems.py | markendr/esys-escript.github.io | 0023eab09cd71f830ab098cb3a468e6139191e8d | [
"Apache-2.0"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2003-2020 by The University of Queensland
# http://www.uq.edu.au
#
# Primary Business: Queensland, Australia
# Licensed under the Apache License, version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Development unti... | 37.803231 | 305 | 0.595284 |
15d2546aeaf271239203d19ad3ebcd6e67edaf83 | 9,680 | py | Python | acs/acs/Core/FileParsingManager.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | null | null | null | acs/acs/Core/FileParsingManager.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | null | null | null | acs/acs/Core/FileParsingManager.py | wangji1/test-framework-and-suites-for-android | 59564f826f205fe7fab64f45b88b1a6dde6900af | [
"Apache-2.0"
] | null | null | null | """
:copyright: (c)Copyright 2013, Intel Corporation All Rights Reserved.
The source code contained or described here in and all documents related
to the source code ("Material") are owned by Intel Corporation or its
suppliers or licensors. Title to the Material remains with Intel Corporation
or its suppliers and lic... | 36.946565 | 119 | 0.630785 |
15d53e64696bdcd31c356310ca351fd13adec82e | 2,256 | py | Python | Chapter 16/excel_to_csv.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 4 | 2021-06-14T10:37:58.000Z | 2021-12-30T17:49:17.000Z | Chapter 16/excel_to_csv.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | null | null | null | Chapter 16/excel_to_csv.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 1 | 2021-07-29T15:26:54.000Z | 2021-07-29T15:26:54.000Z | '''
Austin Richards 4/14/21
excel_to_csv.py automates the conversion of many xlsx
files into csv files. This program names the csv file
in the format <filename>_<sheetname>.csv
'''
import logging
import os, csv, openpyxl
from pathlib import Path
from openpyxl.utils import get_column_letter
logging.basicConfig(level=... | 35.25 | 98 | 0.649379 |
15d571532daed68e7ee3f7aca094467594fa8bdd | 2,041 | py | Python | kg/diff/templates/real_abs_rel_template.py | kevinsogo/compgen | c765fdb3008d41f409836a45ad5a506db6a99e74 | [
"MIT"
] | 6 | 2019-11-30T17:03:13.000Z | 2021-09-30T05:08:31.000Z | kg/diff/templates/real_abs_rel_template.py | kevinsogo/compgen | c765fdb3008d41f409836a45ad5a506db6a99e74 | [
"MIT"
] | 1 | 2020-01-20T12:13:03.000Z | 2020-01-20T12:13:03.000Z | kg/diff/templates/real_abs_rel_template.py | kevinsogo/compgen | c765fdb3008d41f409836a45ad5a506db6a99e74 | [
"MIT"
] | null | null | null | # Checks for an XXX error ### @replace "XXX", ('absolute/relative' if has_rel else 'absolute')
# with an error of at most 1e-XXX ### @replace "XXX", prec
# Don't edit this file. Edit real_abs_rel_template.py instead, and then run _real_check_gen.py
# Oh, actually, you're editing the correct file. Go on. ... | 52.333333 | 123 | 0.588437 |
15d5daf61123ba5cf4f2cb454d6eaf622ef68705 | 1,099 | py | Python | osspeak/recognition/actions/library/process.py | OSSpeak/OSSpeak | 327c38a37684165f87bf8d76ab2ca135b43b8ab7 | [
"MIT"
] | 1 | 2020-03-17T10:24:41.000Z | 2020-03-17T10:24:41.000Z | osspeak/recognition/actions/library/process.py | OSSpeak/OSSpeak | 327c38a37684165f87bf8d76ab2ca135b43b8ab7 | [
"MIT"
] | 12 | 2016-09-28T05:16:00.000Z | 2020-11-27T22:32:40.000Z | osspeak/recognition/actions/library/process.py | OSSpeak/OSSpeak | 327c38a37684165f87bf8d76ab2ca135b43b8ab7 | [
"MIT"
] | null | null | null | import time
import os
import subprocess
import threading | 28.179487 | 78 | 0.626934 |
15d6695d5c93e5916f4ed45db19a2876ea82e9ee | 977 | py | Python | setup.py | haaspt/whatsnew | 0524ad2b6132593282946073f2d647ea0ce960e8 | [
"MIT"
] | 2 | 2015-09-02T21:14:26.000Z | 2015-09-02T22:23:04.000Z | setup.py | haaspt/whatsnew | 0524ad2b6132593282946073f2d647ea0ce960e8 | [
"MIT"
] | 2 | 2018-01-02T00:54:49.000Z | 2018-01-02T00:56:01.000Z | setup.py | haaspt/whatsnew | 0524ad2b6132593282946073f2d647ea0ce960e8 | [
"MIT"
] | null | null | null | import os
from setuptools import setup
readme = open('README.md').read()
requirements = ['click', 'feedparser', 'beautifulsoup4']
setup(
name = "whatsnew",
version = "0.13",
author = "Patrick Tyler Haas",
author_email = "patrick.tyler.haas@gmail.com",
description = ("A lightweight, convenient too... | 29.606061 | 125 | 0.602866 |
15da0373b1191b0c411cc06fa6774cfb3700fb3a | 2,880 | py | Python | Flask-Server/timeswitch/server.py | weichweich/pi-timeswitch | c4428783fbf8b2294f7a6f55c312beeabae94d6f | [
"MIT"
] | 4 | 2015-10-12T19:13:22.000Z | 2018-07-18T17:55:48.000Z | Flask-Server/timeswitch/server.py | weichweich/pi-timeswitch | c4428783fbf8b2294f7a6f55c312beeabae94d6f | [
"MIT"
] | null | null | null | Flask-Server/timeswitch/server.py | weichweich/pi-timeswitch | c4428783fbf8b2294f7a6f55c312beeabae94d6f | [
"MIT"
] | 2 | 2017-04-25T16:19:09.000Z | 2022-01-24T08:15:12.000Z | import argparse
import logging
import sys
from timeswitch.switch.manager import SwitchManager
from timeswitch.app import setup_app
from timeswitch.api import setup_api
from timeswitch.model import setup_model
# ######################################
# # parsing commandline args
# #####################################... | 32 | 94 | 0.601389 |
15db2920ca4b3d1d42695dca0b6816fa94b0f30d | 12,055 | py | Python | utils/videoloader.py | mie-lab/traffic4cast | aea6f90e8884c01689c84255c99e96d2b58dc470 | [
"Apache-2.0"
] | 8 | 2020-07-26T20:54:58.000Z | 2022-03-01T14:36:13.000Z | utils/videoloader.py | mie-lab/traffic4cast | aea6f90e8884c01689c84255c99e96d2b58dc470 | [
"Apache-2.0"
] | null | null | null | utils/videoloader.py | mie-lab/traffic4cast | aea6f90e8884c01689c84255c99e96d2b58dc470 | [
"Apache-2.0"
] | 5 | 2019-11-05T09:46:01.000Z | 2021-01-24T04:42:53.000Z | import sys, os, time
from pathlib import Path
import pickle
import datetime as dt
import glob
import h5py
import numpy as np
from matplotlib import pyplot as plt
from multiprocessing import Pool
from functools import partial
import torch
from torchvision import datasets, transforms
def _get_tstamp_string(tstamp_... | 34.942029 | 132 | 0.555454 |
15dd1eeb2fac5589a59d8aeda6e5e6d37752563e | 2,369 | py | Python | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-01-04T06:30:24.000Z | 2016-01-04T06:30:24.000Z | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 36 | 2015-11-27T14:17:34.000Z | 2016-07-14T10:23:52.000Z | foundation/correspondence/views/letter.py | pilnujemy/foundation-manager | 1f1d6afcbb408c87a171bcbe3f9e58570eb478b6 | [
"BSD-3-Clause"
] | 1 | 2016-05-14T01:11:28.000Z | 2016-05-14T01:11:28.000Z | from django.views.generic import DeleteView, DetailView, UpdateView, CreateView
from django.forms.models import BaseInlineFormSet
from django.forms.models import inlineformset_factory
from braces.views import LoginRequiredMixin, UserFormKwargsMixin, SelectRelatedMixin
from ..models import Letter, Attachment
from ..form... | 34.333333 | 95 | 0.765724 |
15de738d2ebcbbe25e92a2d8f2d43e4cb6af3d82 | 1,760 | py | Python | pychunkedgraph/ingest/ingestion_utils.py | perlman/PyChunkedGraph | 2c582f46a8292010e8f9f54c94c63af0b172bdad | [
"MIT"
] | null | null | null | pychunkedgraph/ingest/ingestion_utils.py | perlman/PyChunkedGraph | 2c582f46a8292010e8f9f54c94c63af0b172bdad | [
"MIT"
] | null | null | null | pychunkedgraph/ingest/ingestion_utils.py | perlman/PyChunkedGraph | 2c582f46a8292010e8f9f54c94c63af0b172bdad | [
"MIT"
] | null | null | null | import numpy as np
from pychunkedgraph.backend import chunkedgraph, chunkedgraph_utils
import cloudvolume
def initialize_chunkedgraph(cg_table_id, ws_cv_path, chunk_size, cg_mesh_dir,
fan_out=2, instance_id=None, project_id=None):
""" Initalizes a chunkedgraph on BigTable
:param ... | 30.877193 | 84 | 0.64375 |
15dec2f55095e3b6ec802c41f0cedadb58146312 | 2,691 | py | Python | brew_gui.py | mburgess00/brew_controller | 913e3b37b9421759db5186e5f0e44cf8f4fd7f6a | [
"Apache-2.0"
] | null | null | null | brew_gui.py | mburgess00/brew_controller | 913e3b37b9421759db5186e5f0e44cf8f4fd7f6a | [
"Apache-2.0"
] | null | null | null | brew_gui.py | mburgess00/brew_controller | 913e3b37b9421759db5186e5f0e44cf8f4fd7f6a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
from guizero import App, Text, Slider, Combo, PushButton, Box, Picture
pause = True
app = App(title="Brew GUI", width=1280, height=768, layout="grid")
vertPad = Picture(app, image="blank_vert.gif", grid=[0,0])
hltBox = Box(app, layout="grid", grid=[1,0])
hltPad = Picture(hltBox, image="blank.g... | 37.901408 | 91 | 0.670011 |
15e018d003308b6e32514ff4f0cb219f8f099c3b | 2,498 | py | Python | tests/integration/test_integration.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | 1 | 2021-11-30T06:47:24.000Z | 2021-11-30T06:47:24.000Z | tests/integration/test_integration.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | 1 | 2021-04-08T12:56:39.000Z | 2021-04-08T12:56:39.000Z | tests/integration/test_integration.py | nuvolos-cloud/resolos | 0918066cab7b11ef04ae005f3e052b14a65ded68 | [
"MIT"
] | null | null | null | from click.testing import CliRunner
from resolos.interface import (
res_remote_add,
res_remote_remove,
res_init,
res_sync,
res
)
from resolos.remote import read_remote_db, list_remote_ids, delete_remote
from tests.common import verify_result
import logging
from pathlib import Path
import os
log... | 43.068966 | 219 | 0.601281 |
15e034a0325db7cea2ebf82178c6ea8ad80d5cda | 946 | py | Python | test/test_add_group.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | test/test_add_group.py | romanovaes/python_training | 5df3a9b716e7659fb8f61e0b55e5217cc6a1a89e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from builtins import *
from model.group import Group
import pytest
import allure
#@pytest.mark.parametrize("group", testdata, ids=[repr(x) for x in testdata])
| 35.037037 | 153 | 0.689218 |
15e04aa4840a7e7977d248d10cc55f54658702cd | 753 | py | Python | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 4 | 2019-08-20T03:06:43.000Z | 2021-11-09T18:18:31.000Z | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 1 | 2020-01-28T11:26:32.000Z | 2020-03-09T11:06:26.000Z | examples/Genius/Python/GeniusCancel/GeniusCancel/GeniusCancel.py | sfmwright/developer-docs | 160c7c9d8b1f75964ed2615373516361564cac82 | [
"Apache-2.0"
] | 8 | 2019-04-20T00:16:26.000Z | 2020-12-29T20:48:14.000Z | import urllib3
import lxml.etree as etree
import lxml.objectify as objectify
# Declare IP Address
ip_address = "192.168.0.123"
# Generate XML and XSD Validation
genius_schema = etree.XMLSchema(file='Genius.xsd')
xml_parser = objectify.makeparser(schema=genius_schema)
# Send Status Request
genius_comm = urllib3.PoolMan... | 39.631579 | 82 | 0.802125 |
15e0c5cedcaca764ffdaedc7f69b8b05a55711fa | 6,270 | py | Python | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | null | null | null | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 1 | 2015-07-22T15:53:11.000Z | 2015-07-22T16:49:54.000Z | editNames.py | harmsm/phylo_tools | 470873a6decd8c9ca6f66308eeb53f7f6627115b | [
"Unlicense"
] | 3 | 2015-07-01T22:39:55.000Z | 2019-08-13T21:23:20.000Z | #!/usr/bin/env python
__description__ =\
"""
editNames.py
Goes through a file looking for a set of strings, replacing each one with a
specific counterpart. The strings are defined in a delimited text file
with columns naemd "key" and "value".
"""
__author__ = "Michael J. Harms"
__date__ = "091205"
__usage__ = "editT... | 32.319588 | 82 | 0.612919 |
15e3d38045eea34ae5ee1b0e2ce54a0a8b72223a | 3,988 | py | Python | test/test_docx_context.py | ieric2/docx2python | 4a1266811f9bd71f5eea5e0d458a391fd9eb4f73 | [
"MIT"
] | 52 | 2019-07-08T19:37:45.000Z | 2022-03-30T11:36:08.000Z | test/test_docx_context.py | ieric2/docx2python | 4a1266811f9bd71f5eea5e0d458a391fd9eb4f73 | [
"MIT"
] | 29 | 2019-08-29T09:48:24.000Z | 2022-03-13T13:58:58.000Z | test/test_docx_context.py | ieric2/docx2python | 4a1266811f9bd71f5eea5e0d458a391fd9eb4f73 | [
"MIT"
] | 23 | 2019-08-29T11:33:13.000Z | 2022-03-03T17:22:35.000Z | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
"""Test docx2python.docx_context.py
author: Shay Hill
created: 6/26/2019
"""
import os
import shutil
import zipfile
from collections import defaultdict
from typing import Any, Dict
import pytest
from docx2python.docx_context import (
collect_docProps,
collect_nu... | 33.79661 | 87 | 0.658977 |
15e42de122c93447226408dd404b3ccbe892d9e6 | 1,022 | py | Python | src/transporters/approximator/transporter.py | mucharafal/optics_generator_python | c14d4e5f19f921f4dc0a98129bca9d31754b72ad | [
"MIT"
] | null | null | null | src/transporters/approximator/transporter.py | mucharafal/optics_generator_python | c14d4e5f19f921f4dc0a98129bca9d31754b72ad | [
"MIT"
] | null | null | null | src/transporters/approximator/transporter.py | mucharafal/optics_generator_python | c14d4e5f19f921f4dc0a98129bca9d31754b72ad | [
"MIT"
] | null | null | null | import transporters.approximator.runner as ra
from data.parameters_names import ParametersNames as Parameters
def transport(approximator, particles):
"""matrix in format returned by data.particles_generator functions"""
segments = dict()
segments["start"] = particles
matrix_for_transporter = partic... | 28.388889 | 113 | 0.683953 |
15e6039e8fc572eeaac3ad290d2bd1f836aa300b | 183 | py | Python | vega/modules/tensformers/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 724 | 2020-06-22T12:05:30.000Z | 2022-03-31T07:10:54.000Z | vega/modules/tensformers/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 147 | 2020-06-30T13:34:46.000Z | 2022-03-29T11:30:17.000Z | vega/modules/tensformers/__init__.py | jie311/vega | 1bba6100ead802697e691403b951e6652a99ccae | [
"MIT"
] | 160 | 2020-06-29T18:27:58.000Z | 2022-03-23T08:42:21.000Z | from .embeddings import BertEmbeddings
from .encoder import BertEncoder
from .pooler import Pooler
from .pertrained_hooks import pretrained_bert_hook, pretrained_bert_classifier_hook
| 36.6 | 83 | 0.879781 |
15e6149aa17b64d559de3c4f55ed8ff3fa679352 | 666 | py | Python | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 11 | 2020-08-20T11:16:02.000Z | 2022-03-12T23:25:04.000Z | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 71 | 2019-11-18T10:11:22.000Z | 2022-03-27T16:12:57.000Z | postgresqleu/confsponsor/migrations/0008_class_params_json.py | bradfordboyle/pgeu-system | bbe70e7a94092c10f11a0f74fda23079532bb018 | [
"MIT"
] | 18 | 2019-11-18T09:56:31.000Z | 2022-01-08T03:16:43.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-06-26 20:22
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations
| 28.956522 | 119 | 0.686186 |
15e6a04a8da0e44c61254eaa10ce768020d0ae51 | 186 | py | Python | example_problem/dialogue/dialogue_functions.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | example_problem/dialogue/dialogue_functions.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | example_problem/dialogue/dialogue_functions.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | import example_problem.analyst.dialogue_functions as analyst
import example_problem.engineer.dialogue_functions as engineer
import example_problem.critic.dialogue_functions as critic
| 26.571429 | 62 | 0.887097 |
15e96ef0984aad80cae6e556037214dc416821d1 | 9,077 | py | Python | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | 29 | 2021-10-16T06:01:53.000Z | 2022-03-31T02:37:30.000Z | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | null | null | null | hack/make-rules/generate-notice.py | dingfeng/galaxykube | f5ea5cf40c957358e2bc5b14eabc9dea2ec93ad2 | [
"Apache-2.0"
] | 11 | 2021-10-18T02:26:32.000Z | 2022-01-11T12:06:03.000Z | #!/usr/bin/env python3
# Copyright 2021 Alibaba Group Holding Limited.
#
# 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... | 46.311224 | 755 | 0.736036 |
15f0c68253b44fcf807be3d2c13c0296e0b8bc18 | 47 | py | Python | python/graph/__init__.py | advaithm582/algorithms | 9a5261b69ea7bc84afb9f8561c1d497a799733f9 | [
"MIT"
] | 2 | 2021-11-17T07:48:34.000Z | 2021-12-10T03:09:00.000Z | python/graph/__init__.py | advaithm582/algorithms | 9a5261b69ea7bc84afb9f8561c1d497a799733f9 | [
"MIT"
] | null | null | null | python/graph/__init__.py | advaithm582/algorithms | 9a5261b69ea7bc84afb9f8561c1d497a799733f9 | [
"MIT"
] | null | null | null | import graph.bfs as bfs
import graph.dfs as dfs | 23.5 | 23 | 0.808511 |