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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce3a314613ced74eaa69ae3cdf828f6c6582b325 | 6,875 | py | Python | scripts/jenkins_console_log_search.py | hrajput89/kv_engine | 33fb1ab2c9787f55555e5f7edea38807b3dbc371 | [
"BSD-3-Clause"
] | 1 | 2019-06-13T07:33:09.000Z | 2019-06-13T07:33:09.000Z | scripts/jenkins_console_log_search.py | paolococchi/kv_engine | 40256dca6bf77fb4bcc18e8ef7d9b8f991bf4e45 | [
"BSD-3-Clause"
] | null | null | null | scripts/jenkins_console_log_search.py | paolococchi/kv_engine | 40256dca6bf77fb4bcc18e8ef7d9b8f991bf4e45 | [
"BSD-3-Clause"
] | 1 | 2020-01-15T16:52:37.000Z | 2020-01-15T16:52:37.000Z | #!/usr/bin/env python3
"""
Copyright 2018 Couchbase, Inc
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 ... | 37.162162 | 86 | 0.6336 |
ce3ac2a462ca934025f075aabb0be44931935eba | 542 | py | Python | geokey/projects/migrations/0004_auto_20150123_1507.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | geokey/projects/migrations/0004_auto_20150123_1507.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | geokey/projects/migrations/0004_auto_20150123_1507.py | universityofsussex/geokey | 25e161dbc81841c57c148053dbe99facc81e84b8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 25.809524 | 139 | 0.608856 |
ce3b5d59730c0d6fb21fce8076ca9f2a4f217a30 | 2,506 | py | Python | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | hr_attendance_ex/models/sql_ser_config.py | alexhong121/odoo_model | 4eff41c672bd03084eaa6eae81c8f3d359c2fb8d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
# import pyodbc
from odoo import models, fields, api, _
from odoo.exceptions import UserError, AccessError, MissingError
_logger = logging.getLogger(__name__)
| 32.973684 | 111 | 0.602554 |
ce3bab3735a9a905747cfb1ff78c996de02c146a | 223 | py | Python | core/templatetags/my_custom_tags.py | SubhanRzayev/E-commerce-Tmart | 239218397f4ee55ab6ae4ef1798fbc83bc7d1159 | [
"MIT"
] | 2 | 2021-08-13T14:23:34.000Z | 2021-09-18T08:48:29.000Z | core/templatetags/my_custom_tags.py | SubhanRzayev/E-commerce-Tmart | 239218397f4ee55ab6ae4ef1798fbc83bc7d1159 | [
"MIT"
] | null | null | null | core/templatetags/my_custom_tags.py | SubhanRzayev/E-commerce-Tmart | 239218397f4ee55ab6ae4ef1798fbc83bc7d1159 | [
"MIT"
] | null | null | null | from blog.models import Category
from django.template import Library
from core.models import *
register = Library()
| 14.866667 | 35 | 0.735426 |
ce3c2d8194ace948fc686ddfcb1f37ff3e1e1403 | 4,476 | py | Python | Object.py | LeenJooken/RFMCollaborationMiner | 5e8b2933bc9977dcc1707474f8163964dc29ea9d | [
"MIT"
] | null | null | null | Object.py | LeenJooken/RFMCollaborationMiner | 5e8b2933bc9977dcc1707474f8163964dc29ea9d | [
"MIT"
] | null | null | null | Object.py | LeenJooken/RFMCollaborationMiner | 5e8b2933bc9977dcc1707474f8163964dc29ea9d | [
"MIT"
] | null | null | null | #Represents an object
| 33.402985 | 107 | 0.629133 |
ce3e44815e1657902dc5c20dbf4073f8b104c4db | 4,336 | py | Python | centraloffice/src/ngconfiginterface/nginterface.py | dmazzer/CogRIoT | a2d71916b0f1bd79d0f5b444865279530eb6b836 | [
"MIT"
] | null | null | null | centraloffice/src/ngconfiginterface/nginterface.py | dmazzer/CogRIoT | a2d71916b0f1bd79d0f5b444865279530eb6b836 | [
"MIT"
] | null | null | null | centraloffice/src/ngconfiginterface/nginterface.py | dmazzer/CogRIoT | a2d71916b0f1bd79d0f5b444865279530eb6b836 | [
"MIT"
] | null | null | null | """
nginterface.py: NovaGenesis Interface
"""
__author__ = "Daniel Mazzer"
__copyright__ = "Copyright 2016, CogRIoT Project"
__credits__ = "Antonio Marcos Alberti"
__license__ = "MIT"
__maintainer__ = "Daniel Mazzer"
__email__ = "dmazzer@gmail.com"
import sys
import zmq
import threading
from bzrlib.plugins.launchpad... | 34.688 | 99 | 0.592943 |
ce3f6405d41b2f32d5fb0b9dca8c2d47c32a7949 | 2,625 | py | Python | tests/test_connect.py | mkniewallner/edgedb-python | 2086b866d3c87c215eecf644b2393ddd857457e0 | [
"Apache-2.0"
] | 214 | 2019-01-19T03:56:10.000Z | 2022-03-31T01:37:33.000Z | tests/test_connect.py | mkniewallner/edgedb-python | 2086b866d3c87c215eecf644b2393ddd857457e0 | [
"Apache-2.0"
] | 120 | 2019-03-19T23:01:52.000Z | 2022-03-14T08:41:27.000Z | tests/test_connect.py | mkniewallner/edgedb-python | 2086b866d3c87c215eecf644b2393ddd857457e0 | [
"Apache-2.0"
] | 24 | 2019-04-29T22:41:10.000Z | 2021-11-15T00:28:01.000Z | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2016-present MagicStack Inc. and the EdgeDB 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... | 32.8125 | 74 | 0.632 |
ce3f92dd86129583471cf90aca5f82b89a2e5147 | 19,947 | py | Python | .venv/Lib/site-packages/pdoc/cli.py | JohanK91/MethodDice | 73a8962c762ff48da331c9212f10676f066ed940 | [
"MIT"
] | null | null | null | .venv/Lib/site-packages/pdoc/cli.py | JohanK91/MethodDice | 73a8962c762ff48da331c9212f10676f066ed940 | [
"MIT"
] | null | null | null | .venv/Lib/site-packages/pdoc/cli.py | JohanK91/MethodDice | 73a8962c762ff48da331c9212f10676f066ed940 | [
"MIT"
] | 1 | 2021-02-22T13:55:32.000Z | 2021-02-22T13:55:32.000Z | #!/usr/bin/env python3
"""pdoc's CLI interface and helper functions."""
import argparse
import ast
import importlib
import inspect
import os
import os.path as path
import json
import re
import sys
import warnings
from contextlib import contextmanager
from functools import lru_cache
from http.server import BaseHTTPRequ... | 33.41206 | 99 | 0.587657 |
ce40a683df91507328100c3fd2d4f4e66c206aad | 4,981 | py | Python | application/helper/connection_check.py | HarshadKavathiya/acciom | 10e4d813c897bcf0078ab350d9432117cb708d1a | [
"MIT"
] | null | null | null | application/helper/connection_check.py | HarshadKavathiya/acciom | 10e4d813c897bcf0078ab350d9432117cb708d1a | [
"MIT"
] | 9 | 2019-07-23T09:55:15.000Z | 2022-02-19T01:45:12.000Z | application/helper/connection_check.py | accionlabs/acciom | 889958c0f8ec1d74db1958d0a6473c4678eaab3f | [
"MIT"
] | 21 | 2019-07-20T04:47:23.000Z | 2020-01-07T06:55:42.000Z | import cx_Oracle
import psycopg2
import pymysql
import pyodbc
from application.common.constants import APIMessages, SupportedDBType, \
GenericStrings
def connection_check(db_type_id, db_hostname, db_username, db_password,
db_name):
"""
Helper method to check the database connectivity... | 43.313043 | 79 | 0.609717 |
ce40f79ba52230bce534975d34f03a0b62be130e | 701 | py | Python | src/db/alembic/tests/add_problems.py | furea2/ProofGame | 787f9be7f616c53eb9ce5a677660aee7cc824a14 | [
"MIT"
] | null | null | null | src/db/alembic/tests/add_problems.py | furea2/ProofGame | 787f9be7f616c53eb9ce5a677660aee7cc824a14 | [
"MIT"
] | null | null | null | src/db/alembic/tests/add_problems.py | furea2/ProofGame | 787f9be7f616c53eb9ce5a677660aee7cc824a14 | [
"MIT"
] | null | null | null | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(engine)
import sys
sys.path.append("D:\\Users\\furea2\\NodejsProjects\\login_sample\\src\\db\\alembic\\app\\models")
from problem import Problem
userList=[
Problem(ti... | 33.380952 | 97 | 0.713267 |
cbe97f3cb389489740f1e42249ec7c347020db47 | 30 | py | Python | otscrape/core/extractor/nested/__init__.py | SSripilaipong/otscrape | 73ad2ea3d20841cf5d81b37180a1f21c48e87480 | [
"MIT"
] | null | null | null | otscrape/core/extractor/nested/__init__.py | SSripilaipong/otscrape | 73ad2ea3d20841cf5d81b37180a1f21c48e87480 | [
"MIT"
] | null | null | null | otscrape/core/extractor/nested/__init__.py | SSripilaipong/otscrape | 73ad2ea3d20841cf5d81b37180a1f21c48e87480 | [
"MIT"
] | null | null | null | from .zip_dict import ZipDict
| 15 | 29 | 0.833333 |
cbea98388f135a070422bda42a79198d77ccf817 | 546 | py | Python | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null | 10_Exceptions_and_Errors/internal.py | MANOJPATRA1991/Python-Beyond-the-Basics | aed7bfd35e33c2b1759b48e1c89314aa149c56d0 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
print(modulus_four(5)) | 20.222222 | 48 | 0.507326 |
cbeae155ad896dc6fd2c6c3e36347da77b95da7e | 17,038 | py | Python | ml_studio/visualate/dashboards/data_explorer.py | john-james-ai/ml-studio | 2230fcd6579d2291c761e559ec93b18ddd7a96e6 | [
"BSD-3-Clause"
] | 1 | 2020-01-30T09:37:00.000Z | 2020-01-30T09:37:00.000Z | ml_studio/visualate/dashboards/data_explorer.py | john-james-ai/ml-studio | 2230fcd6579d2291c761e559ec93b18ddd7a96e6 | [
"BSD-3-Clause"
] | 3 | 2019-12-05T19:37:59.000Z | 2020-03-31T05:49:53.000Z | ml_studio/visualate/dashboards/data_explorer.py | john-james-ai/ml-studio | 2230fcd6579d2291c761e559ec93b18ddd7a96e6 | [
"BSD-3-Clause"
] | null | null | null | # =========================================================================== #
# DATA EXPLORER #
# =========================================================================== #
# =========================================================================== #
... | 37.862222 | 145 | 0.435204 |
cbeb6bdd865a57de9bfabcbd439111e0ae5d40b5 | 1,080 | py | Python | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | 9 | 2021-09-30T06:25:03.000Z | 2022-02-10T05:45:23.000Z | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | null | null | null | bot.py | m2Link/YouTube-Video-Search | 0512ea220af271dc1853925026f31c32990fa4ff | [
"MIT"
] | 7 | 2021-09-30T06:24:56.000Z | 2022-02-10T04:52:10.000Z | from pyrogram import Client ,filters
import os
from py_youtube import Data, Search
from pyrogram.types import *
TOKEN = os.environ.get("TOKEN", "")
APP_ID = int(os.environ.get("APP_ID", ""))
API_HASH = os.environ.get("API_HASH", "")
app = Client( "yt-search",
bot_token = TOKEN, api_id =API_ID , api_hash =... | 22.5 | 78 | 0.609259 |
cbebd1e68288c77af1b90def0eca795dc3029718 | 7,582 | py | Python | steam_review_sentiments/cnn_model.py | joshuamegnauth54/aapor_scholars_2021 | 1848083203714d2c0a205e538e91990983b3320e | [
"MIT"
] | null | null | null | steam_review_sentiments/cnn_model.py | joshuamegnauth54/aapor_scholars_2021 | 1848083203714d2c0a205e538e91990983b3320e | [
"MIT"
] | 1 | 2021-11-03T15:33:31.000Z | 2021-11-03T15:33:31.000Z | steam_review_sentiments/cnn_model.py | joshuamegnauth54/steam_user_reviews | 1848083203714d2c0a205e538e91990983b3320e | [
"MIT"
] | null | null | null | import numpy as np
import keras
import spacy
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.exceptions import NotFittedError
from keras.models import Sequential
from keras.layers import BatchNormalization, Conv1D, Dense, Embedding
from keras.layers.pooling import GlobalMaxPooling1D
from keras.... | 33.254386 | 78 | 0.587048 |
cbec06c90522fab416454e28ed3f8f1ea15d10d0 | 96 | py | Python | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | startup.py | andreagia/WEBNMR | 512a8cc04cf69300796585feae722614501389a9 | [
"Apache-2.0"
] | null | null | null | from paste.deploy import loadapp
app = loadapp("config:/home/webenmr/WebENMR/development.ini")
| 24 | 61 | 0.791667 |
cbef0e085fbba4e6b5fa308476e408eed61f8acc | 2,548 | py | Python | dataset/components.py | mikhailkin/dataset | 7417483fdbe2e3743af4d614cb9036fd5b1375c0 | [
"Apache-2.0"
] | null | null | null | dataset/components.py | mikhailkin/dataset | 7417483fdbe2e3743af4d614cb9036fd5b1375c0 | [
"Apache-2.0"
] | null | null | null | dataset/components.py | mikhailkin/dataset | 7417483fdbe2e3743af4d614cb9036fd5b1375c0 | [
"Apache-2.0"
] | null | null | null | """ Contains classes to handle batch data components """
| 34.432432 | 105 | 0.594192 |
cbefd7cba52260caad3d20e4693a2870bae5c60c | 708 | py | Python | app/models.py | owen-rpx/RainGod | ba20023c1191519edec7f12fb488c942a2e05627 | [
"MIT"
] | 7 | 2019-04-11T09:45:37.000Z | 2019-04-19T01:40:03.000Z | app/models.py | Owenzh/RainGod | ba20023c1191519edec7f12fb488c942a2e05627 | [
"MIT"
] | 5 | 2021-03-18T23:43:45.000Z | 2022-03-11T23:44:29.000Z | app/models.py | owen-rpx/RainGod | ba20023c1191519edec7f12fb488c942a2e05627 | [
"MIT"
] | 2 | 2019-04-11T09:45:39.000Z | 2019-04-19T01:39:02.000Z | #-*- coding:utf-8 -*-
from .apps import db
| 29.5 | 57 | 0.686441 |
cbf1db6303b75bf9bb5a1fdfc15b60807174510e | 834 | py | Python | fingerExercises/fingerExercises-03/03.6-finger.how-many.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | 1 | 2019-10-06T22:58:39.000Z | 2019-10-06T22:58:39.000Z | fingerExercises/fingerExercises-03/03.6-finger.how-many.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | null | null | null | fingerExercises/fingerExercises-03/03.6-finger.how-many.py | sodaPhix/MITx-6.00.1x | 8629e227d250cf6c2d5ca56944668b5796ce78cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 7 03:26:16 2019
@author: sodatab
MITx: 6.00.1x
"""
"""
03.6-Finger How Many
---------------------
Consider the following sequence of expressions:
animals = { 'a': ['aardvark'], 'b': ['baboon'], 'c': ['coati']}
animals['d'] = ['donkey']
animals... | 22.540541 | 118 | 0.631894 |
cbf29fc594fa3d410506fc9b2b10ddf99a2f2899 | 1,569 | py | Python | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 3 | 2019-06-24T18:13:06.000Z | 2020-08-06T03:08:23.000Z | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 109 | 2019-05-22T11:53:05.000Z | 2021-03-15T11:09:18.000Z | test/const.py | DaniFdezAlvarez/shexerp3 | 80c3bdaac856a88d53359f5996477994774d34e2 | [
"Apache-2.0"
] | 2 | 2019-10-23T13:06:31.000Z | 2020-07-31T09:59:15.000Z | BASE_FILES = "C:\\Users\\Dani\\repos-git\\shexerp3\\test\\t_files\\"
BASE_FILES_GENERAL = BASE_FILES + "general\\"
G1 = BASE_FILES + "t_graph_1.ttl"
G1_NT = BASE_FILES + "t_graph_1.nt"
G1_TSVO_SPO = BASE_FILES + "t_graph_1.tsv"
G1_JSON_LD = BASE_FILES + "t_graph_1.json"
G1_XML = BASE_FILES + "t_graph_1.xml"
G1_N3 = B... | 42.405405 | 86 | 0.560867 |
cbf2a3881275e0a82374f52818602abe974fb113 | 23,265 | py | Python | src/lookoutequipment/evaluation.py | dast1/amazon-lookout-for-equipment-python-sdk | 37213819c46b2dd3bcd4844235bececeabca8f12 | [
"Apache-2.0"
] | 3 | 2021-09-28T19:53:53.000Z | 2022-02-14T17:50:59.000Z | src/lookoutequipment/evaluation.py | dast1/amazon-lookout-for-equipment-python-sdk | 37213819c46b2dd3bcd4844235bececeabca8f12 | [
"Apache-2.0"
] | null | null | null | src/lookoutequipment/evaluation.py | dast1/amazon-lookout-for-equipment-python-sdk | 37213819c46b2dd3bcd4844235bececeabca8f12 | [
"Apache-2.0"
] | 1 | 2021-11-11T18:15:14.000Z | 2021-11-11T18:15:14.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unle... | 40.744308 | 105 | 0.571545 |
cbf2dc049f1ccb6bed778490aa18d0ea3f007439 | 793 | py | Python | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 3 | 2019-01-11T06:16:40.000Z | 2021-02-24T23:48:21.000Z | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | null | null | null | src/opserver/plugins/alarm_process_connectivity/setup.py | biswajit-mandal/contrail-controller | 80c4a7e8515f7296b18ba4c21a439bd3daefcc4a | [
"Apache-2.0"
] | 18 | 2017-01-12T09:28:44.000Z | 2019-04-18T20:47:42.000Z | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup, find_packages
setup(
name='alarm_process_connectivity',
version='0.1dev',
packages=find_packages(),
entry_points = {
'contrail.analytics.alarms': [
'ObjectCollectorInfo = alarm_proces... | 34.478261 | 88 | 0.717528 |
cbf3c9c5fb96524cab1cc99ebc8311885fc1db2a | 813 | py | Python | app/tools/dbg_queue_graph.py | samelamin/kylinmonitorbot | 00a38ca9513dceadf23bfdb19b6daab77a368e76 | [
"MIT"
] | null | null | null | app/tools/dbg_queue_graph.py | samelamin/kylinmonitorbot | 00a38ca9513dceadf23bfdb19b6daab77a368e76 | [
"MIT"
] | null | null | null | app/tools/dbg_queue_graph.py | samelamin/kylinmonitorbot | 00a38ca9513dceadf23bfdb19b6daab77a368e76 | [
"MIT"
] | null | null | null | import asyncio
import os
from localization import LocalizationManager
from services.dialog.queue_picture import queue_graph
from services.lib.config import Config
from services.lib.db import DB
from services.lib.depcont import DepContainer
if __name__ == '__main__':
d = DepContainer()
d.loc_man = Localiza... | 22.583333 | 64 | 0.693727 |
cbf41ad432dd52c7fa96aae20328389d8a8a2749 | 8,482 | py | Python | fenpei/job.py | mverleg/fenpei | 2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb | [
"BSD-3-Clause"
] | null | null | null | fenpei/job.py | mverleg/fenpei | 2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb | [
"BSD-3-Clause"
] | 2 | 2016-11-17T12:10:36.000Z | 2017-02-08T09:06:37.000Z | fenpei/job.py | mverleg/fenpei | 2142e4fe4a1e2897d8d8185ef4b86adc7323e1eb | [
"BSD-3-Clause"
] | null | null | null |
"""
Base class for fenpei job; this should be considered abstract.
Your custom job(s) should inherit from this job and extend the relevant methods, such as::
* is_prepared
* is_complete
* prepare
* start
* result
* summary
"""
from re import match
from sys import stdout
from bardeen.system import mkdirp
from time i... | 29.451389 | 157 | 0.67543 |
cbf53d52cd9777aefd5d176bd11a75c4a1b54abc | 303 | py | Python | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | Aula 07/ex6.py | diegorafaelvieira/Programacao-1 | 657a974f1215cec4aed68603e738d9a135131545 | [
"MIT"
] | null | null | null | val = int(input("Valor:"))
soma = val
maior = val
menor = val
for i in range(0,9):
val = int(input("Valor:"))
if val>maior:
maior = val
if val<menor:
menor=val
soma+=val
print("O maior valor :",maior)
print("O menor valor :",menor)
print("A mdia :",(soma/10))
| 16.833333 | 31 | 0.570957 |
cbf5f6dcb21e20b6bc3a2e8d76fc27d3087ec7c4 | 746 | py | Python | waterbutler/providers/github/exceptions.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | 1 | 2019-05-08T02:32:17.000Z | 2019-05-08T02:32:17.000Z | waterbutler/providers/github/exceptions.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | null | null | null | waterbutler/providers/github/exceptions.py | KakeruMizuno/RDM-waterbutler | 58ecd801385a7572d1ed56568a31f701291c4e3e | [
"Apache-2.0"
] | null | null | null | from http import HTTPStatus
from waterbutler.core.exceptions import ProviderError
| 46.625 | 99 | 0.672922 |
cbf60a5f54499551d07c8764354e2a5053355b82 | 899 | py | Python | buildencyclopedia.py | ZhenyuZ/gdc-docs | f024d5d4cd86dfa2c9e7d63850eee94d975b7948 | [
"Apache-2.0"
] | 67 | 2016-06-09T14:11:51.000Z | 2022-03-16T07:54:44.000Z | buildencyclopedia.py | ZhenyuZ/gdc-docs | f024d5d4cd86dfa2c9e7d63850eee94d975b7948 | [
"Apache-2.0"
] | 19 | 2016-06-21T15:51:11.000Z | 2021-06-07T09:22:20.000Z | buildencyclopedia.py | ZhenyuZ/gdc-docs | f024d5d4cd86dfa2c9e7d63850eee94d975b7948 | [
"Apache-2.0"
] | 32 | 2016-07-15T01:24:19.000Z | 2019-03-25T10:42:28.000Z | """updates the encyclopedia section in the mkdocs.yml
should be run whenever a file is removed or added into the directory"""
import os
import yaml
ABSFILEPATH = os.path.dirname(os.path.realpath(__file__))
FILEARRAY = os.listdir(ABSFILEPATH + '/docs/Encyclopedia/pages')
FILEARRAY = sorted(FILEARRAY, key=str.lower)
... | 32.107143 | 114 | 0.670745 |
cbf64e56908db17c3f6f03defc1efa0087875a63 | 3,056 | py | Python | nucypher/tests/config/test_firstula_circumstances.py | kanzeparov/NuCypher | 0d7e349872909d0cacfd66583d018d722587b2e7 | [
"FTL",
"CNRI-Python"
] | null | null | null | nucypher/tests/config/test_firstula_circumstances.py | kanzeparov/NuCypher | 0d7e349872909d0cacfd66583d018d722587b2e7 | [
"FTL",
"CNRI-Python"
] | null | null | null | nucypher/tests/config/test_firstula_circumstances.py | kanzeparov/NuCypher | 0d7e349872909d0cacfd66583d018d722587b2e7 | [
"FTL",
"CNRI-Python"
] | null | null | null | """
This file is part of nucypher.
nucypher is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
nucypher is distributed in the hope that it wil... | 39.688312 | 87 | 0.729058 |
cbf6bbc96905dc1f309f486dc863edc389cd8386 | 1,550 | py | Python | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 401 | 2016-06-16T15:29:48.000Z | 2022-03-24T10:05:16.000Z | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 63 | 2016-06-16T21:10:27.000Z | 2020-07-01T06:57:27.000Z | anchore/anchore-modules/queries/show-familytree.py | berez23/anchore | 594cce23f1d87d666397653054c22c2613247734 | [
"Apache-2.0"
] | 64 | 2016-06-16T13:05:57.000Z | 2021-07-16T10:03:45.000Z | #!/usr/bin/env python
import sys
import os
import re
import json
import traceback
import anchore.anchore_utils
# main routine
try:
config = anchore.anchore_utils.init_query_cmdline(sys.argv, "params: all\nhelp: shows dockerfile lines.")
except Exception as err:
print str(err)
sys.exit(1)
if not config:... | 22.794118 | 132 | 0.645806 |
cbf70c92043ad32d0c5d7dec87ffaf9a8bdb7e8f | 2,258 | py | Python | spikeforest/spikeforestwidgets/templatewidget/templatewidget.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:19.000Z | 2021-09-23T01:07:19.000Z | spikeforest/spikeforestwidgets/templatewidget/templatewidget.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | spikeforest/spikeforestwidgets/templatewidget/templatewidget.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:21.000Z | 2021-09-23T01:07:21.000Z | import uuid
from spikeforest import mdaio
import io
import base64
import vdomr as vd
import os
import numpy as np
import mtlogging
import time
import traceback
source_path = os.path.dirname(os.path.realpath(__file__))
| 30.513514 | 110 | 0.623561 |
cbf7539dbf5f7fc02064b79ad7c95855899a2086 | 5,968 | py | Python | delsmm/smm.py | sisl/delsmm | 6baae49e6f7b31c817af5668972ba6c196b66e9c | [
"MIT"
] | 1 | 2021-09-21T08:08:44.000Z | 2021-09-21T08:08:44.000Z | delsmm/smm.py | albernsrya/delsmm | 11f2750356a7c7d8b196a67af747a9bc5f39b479 | [
"MIT"
] | null | null | null | delsmm/smm.py | albernsrya/delsmm | 11f2750356a7c7d8b196a67af747a9bc5f39b479 | [
"MIT"
] | 1 | 2021-07-02T13:23:32.000Z | 2021-07-02T13:23:32.000Z | import torch
from torch import nn
from torch.autograd import grad
from torch.autograd.functional import jacobian
from scipy.optimize import root
from ceem.dynamics import *
from ceem.nn import LNMLP
from ceem.utils import temp_require_grad
from tqdm import tqdm
from delsmm.lagsys import AbstractLagrangianSystem
import ... | 34.298851 | 88 | 0.630697 |
cbf7a1ce96364e36588a482e13d4799ada06f5db | 16,642 | py | Python | src/speech/deep_model.py | dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture | a072cb940201bbcdb2d0f4d0dfa1dde478fa4464 | [
"MIT"
] | 6 | 2020-08-03T03:13:25.000Z | 2022-02-11T08:32:10.000Z | src/speech/deep_model.py | dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture | a072cb940201bbcdb2d0f4d0dfa1dde478fa4464 | [
"MIT"
] | 1 | 2020-09-08T16:10:38.000Z | 2020-09-08T16:10:38.000Z | src/speech/deep_model.py | dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture | a072cb940201bbcdb2d0f4d0dfa1dde478fa4464 | [
"MIT"
] | 2 | 2020-08-03T21:37:21.000Z | 2021-03-26T02:19:17.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pad_packed_sequence
import pdb
import math
torch.manual_seed(1)
| 42.671795 | 175 | 0.651785 |
cbf8a1ef0f33878d804eb957ddcbefc421928a1b | 40 | py | Python | problem/01000~09999/09498/9498.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/09498/9498.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/09498/9498.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | print(("F"*6+"DCBAA")[int(input())//10]) | 40 | 40 | 0.55 |
cbf9013b2e9891516c04252ba24b05ce5ea2d134 | 2,596 | py | Python | tests/netcdf_engine/test_utils.py | TileDB-Inc/TileDB-CF-Py | 9aab0fe9ba7346a1846c7458a5d08b123dcf90a8 | [
"MIT"
] | 12 | 2021-06-07T16:51:32.000Z | 2022-03-10T12:48:00.000Z | tests/netcdf_engine/test_utils.py | TileDB-Inc/TileDB-CF-Py | 9aab0fe9ba7346a1846c7458a5d08b123dcf90a8 | [
"MIT"
] | 72 | 2021-04-28T21:49:41.000Z | 2022-02-24T13:58:11.000Z | tests/netcdf_engine/test_utils.py | TileDB-Inc/TileDB-CF-Py | 9aab0fe9ba7346a1846c7458a5d08b123dcf90a8 | [
"MIT"
] | 3 | 2021-08-11T16:33:37.000Z | 2021-12-01T20:31:12.000Z | # Copyright 2021 TileDB Inc.
# Licensed under the MIT License.
import numpy as np
import pytest
from tiledb.cf.netcdf_engine._utils import get_netcdf_metadata, get_unpacked_dtype
netCDF4 = pytest.importorskip("netCDF4")
def test_unpacked_dtype_unsupported_dtype_error():
"""Tests attempting to unpack a NetCDF v... | 38.176471 | 87 | 0.678737 |
cbf916118eb5c3081ccd1fe9c5e35846ce4dd6b9 | 9,091 | py | Python | bib2mp3.py | ewquon/bib2mp3 | 6917f5223de7d2ae1ed9857c445015a05e64936c | [
"MIT"
] | null | null | null | bib2mp3.py | ewquon/bib2mp3 | 6917f5223de7d2ae1ed9857c445015a05e64936c | [
"MIT"
] | null | null | null | bib2mp3.py | ewquon/bib2mp3 | 6917f5223de7d2ae1ed9857c445015a05e64936c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import numpy as np
import html
from bs4 import BeautifulSoup
import bibtexparser
from bibtexparser.bparser import BibTexParser
from bibtexparser.customization import convert_to_unicode
import eyed3
from tokenizer import MyTokenizer
# acronyms to spell out
acronyms = [
'LES',
... | 36.657258 | 84 | 0.527995 |
cbf92713179f71318935e2ab443c7a93e35ceec1 | 529 | py | Python | build/create_tag_body.py | Nexusforge/Nexus.Extensions.RpcDataSource | e379243a1aca38c03e882759964d8bc008a7c8bd | [
"MIT"
] | null | null | null | build/create_tag_body.py | Nexusforge/Nexus.Extensions.RpcDataSource | e379243a1aca38c03e882759964d8bc008a7c8bd | [
"MIT"
] | null | null | null | build/create_tag_body.py | Nexusforge/Nexus.Extensions.RpcDataSource | e379243a1aca38c03e882759964d8bc008a7c8bd | [
"MIT"
] | null | null | null | import os
import re
import subprocess
tag = os.getenv('GITHUB_REF_NAME')
if tag is None:
raise Exception("GITHUB_REF_NAME is not defined")
with open("tag_body.txt", "w") as file:
output = subprocess.check_output(["git", "tag", "-l", "--format='%(contents)'", tag], stdin=None, stderr=None, shell=False)
m... | 24.045455 | 127 | 0.655955 |
cbf954558d8ce8ef179a3032c8e9bbe1051befb6 | 3,456 | py | Python | amos/django_orchestrator/api/views.py | amosproj/2020ws02-computer-vision-for-sights | 66641de397af77f16ee36aa9e860ca7249982cb1 | [
"MIT"
] | 2 | 2021-02-03T23:25:14.000Z | 2021-03-18T15:03:12.000Z | amos/django_orchestrator/api/views.py | amosproj/2020ws02-computer-vision-for-sights | 66641de397af77f16ee36aa9e860ca7249982cb1 | [
"MIT"
] | 2 | 2021-02-03T22:35:12.000Z | 2021-02-12T14:09:31.000Z | amos/django_orchestrator/api/views.py | amosproj/2020ws02-computer-vision-for-sights | 66641de397af77f16ee36aa9e860ca7249982cb1 | [
"MIT"
] | 1 | 2021-03-18T15:03:14.000Z | 2021-03-18T15:03:14.000Z | """This module contains the views exposed to the user."""
from django.http import HttpResponse
from rest_framework.decorators import api_view
from rest_framework.request import Request
from api.view_handlers import (
handle_get_trained_city_model,
handle_persist_sight_image,
handle_add_new_city,
handle_... | 25.984962 | 79 | 0.664063 |
cbf9db657ca3437e042cc26606350dba666d7720 | 1,154 | py | Python | samples/verify.py | ssmbct-netops/CyberSaucier | 58e965e7b37ad74563319cd6b2b5c68da2dbd6c3 | [
"MIT"
] | 17 | 2019-02-01T06:46:52.000Z | 2021-12-28T06:33:07.000Z | samples/verify.py | Melon-Tropics/CyberSaucier | 780fb3df8518a41ed2d14b9a4b33f5ae520c15d4 | [
"MIT"
] | 9 | 2020-05-01T00:36:24.000Z | 2022-03-29T17:04:21.000Z | samples/verify.py | Melon-Tropics/CyberSaucier | 780fb3df8518a41ed2d14b9a4b33f5ae520c15d4 | [
"MIT"
] | 4 | 2019-10-20T03:22:34.000Z | 2022-02-07T18:27:04.000Z | import requests, json, argparse, os
from termcolor import colored
parser = argparse.ArgumentParser(description="Verify the recipes by running them through CyberSaucier")
parser.add_argument('--rulefolder', help='Folder containing the json recipes')
parser.add_argument("--url", help="URL to CyberSaucier", default="http... | 42.740741 | 120 | 0.57279 |
cbfa1107b8b7c29048f818cde663861f0e4ac256 | 761 | py | Python | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 8 | 2021-08-08T06:06:39.000Z | 2022-02-04T18:30:38.000Z | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 1 | 2022-01-04T02:01:36.000Z | 2022-01-04T02:01:36.000Z | tests/test_binary_tree.py | avere001/dsplot | 89948c2f1b16e00bb3a240f73d0cb100b3eac847 | [
"MIT"
] | 2 | 2021-08-18T12:28:40.000Z | 2022-01-03T23:56:41.000Z | import os
import pytest
from dsplot.errors import InputException
from dsplot.tree import BinaryTree
| 29.269231 | 79 | 0.628121 |
cbfb410cacd5080693f012f125e877edd266870a | 172 | py | Python | features/environment.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 6 | 2021-05-12T08:40:36.000Z | 2022-01-25T08:31:06.000Z | features/environment.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 14 | 2021-05-12T09:03:08.000Z | 2021-06-10T13:18:52.000Z | features/environment.py | geeksforsocialchange/imok | efb7189c13c398dbd5d4301ca496a2e583b0f5b7 | [
"MIT"
] | 1 | 2021-05-14T20:54:15.000Z | 2021-05-14T20:54:15.000Z | from django.conf import settings
settings.NOTIFY_EMAIL = 'root@localhost'
settings.DEBUG = True
| 17.2 | 40 | 0.72093 |
cbfc891317c3347008f8eaea66169ec8996add82 | 2,546 | py | Python | h2o-py/tests/testdir_jira/pyunit_pubdev_7353_reset_threshold.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-py/tests/testdir_jira/pyunit_pubdev_7353_reset_threshold.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-py/tests/testdir_jira/pyunit_pubdev_7353_reset_threshold.py | vishalbelsare/h2o-3 | 9322fb0f4c0e2358449e339a434f607d524c69fa | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.gbm import H2OGradientBoostingEstimator
from h2o.utils.model_utils import reset_model_threshold
def test_reset_threshold():
"""
Test the model threshold can be reset.
Performance metric should be recalc... | 35.361111 | 112 | 0.714061 |
cbfd7282e7bf8367942a36811a4c23c2043f6215 | 2,324 | py | Python | tests/datasets/TestV1/csv2sql.py | pvanderknyff/alibabacloud-adb-tableau-connector | 0280428bfc916530f9de26336631f6a6602c6804 | [
"MIT"
] | 1 | 2019-08-21T17:53:50.000Z | 2019-08-21T17:53:50.000Z | tests/datasets/TestV1/csv2sql.py | aliyun/aliyun-adb-tableau-connector | 0280428bfc916530f9de26336631f6a6602c6804 | [
"MIT"
] | 1 | 2020-06-29T08:38:54.000Z | 2020-06-29T08:38:54.000Z | tests/datasets/TestV1/csv2sql.py | aliyun/alibabacloud-adb-tableau-connector | 0280428bfc916530f9de26336631f6a6602c6804 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import argparse
import csv
import sys
'''
This script takes a CSV file with a mandatory header and a sql tablename and converts the data in the csv file into
an SQL INSERT statement.
'''
if __name__ == "__main__":
main()
| 31.835616 | 120 | 0.55809 |
cbff48d02931d3f7dcc779f4f74d3a26a84b6bb5 | 1,043 | py | Python | FlaskApp/app.py | Dec22gln/FlaskBlog | 114ca9fc39f039cbdf0f1ff613fb66e364cea171 | [
"MIT"
] | null | null | null | FlaskApp/app.py | Dec22gln/FlaskBlog | 114ca9fc39f039cbdf0f1ff613fb66e364cea171 | [
"MIT"
] | null | null | null | FlaskApp/app.py | Dec22gln/FlaskBlog | 114ca9fc39f039cbdf0f1ff613fb66e364cea171 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template
app = Flask(__name__)
if __name__ == '__main__':
app.run()
| 21.729167 | 56 | 0.708533 |
cbffe9c4b5d1ee44110edbd0b422813f50993bf7 | 1,913 | py | Python | azure-servicefabric/azure/servicefabric/models/primary_replicator_status_py3.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2021-09-07T18:36:04.000Z | 2021-09-07T18:36:04.000Z | azure-servicefabric/azure/servicefabric/models/primary_replicator_status_py3.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 2 | 2019-10-02T23:37:38.000Z | 2020-10-02T01:17:31.000Z | azure-servicefabric/azure/servicefabric/models/primary_replicator_status_py3.py | JonathanGailliez/azure-sdk-for-python | f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b | [
"MIT"
] | 1 | 2018-10-16T13:08:23.000Z | 2018-10-16T13:08: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 ... | 39.854167 | 103 | 0.665447 |
0200db1441c66699ac789aeb7d02549ecd867f2a | 448 | py | Python | example/example/models.py | KnightConan/sspdatatables | 1179a11358734e5e472e5eee703e8d34fa49e9bf | [
"MIT"
] | 4 | 2018-11-23T16:17:38.000Z | 2018-11-26T16:08:49.000Z | example/example/models.py | zhiwei2017/sspdatatables | 1179a11358734e5e472e5eee703e8d34fa49e9bf | [
"MIT"
] | 8 | 2018-11-26T16:38:55.000Z | 2019-01-18T15:13:12.000Z | example/example/models.py | KnightConan/sspdatatables | 1179a11358734e5e472e5eee703e8d34fa49e9bf | [
"MIT"
] | null | null | null | from django.db import models
from django_countries.fields import CountryField
from django.db.models.deletion import CASCADE
| 26.352941 | 57 | 0.765625 |
020213a818c2a038dbd07a3442e4a8ae253739be | 4,805 | py | Python | workspace/baseline/midi_generator.py | SeungHeonDoh/EMOPIA | 0afb93a91c9226949d617894d6aa2d67c4de4eb6 | [
"MIT"
] | 69 | 2021-07-12T03:17:17.000Z | 2022-03-27T06:16:35.000Z | workspace/baseline/midi_generator.py | SeungHeonDoh/EMOPIA | 0afb93a91c9226949d617894d6aa2d67c4de4eb6 | [
"MIT"
] | 7 | 2021-07-27T09:10:15.000Z | 2022-02-07T05:15:56.000Z | workspace/baseline/midi_generator.py | SeungHeonDoh/EMOPIA | 0afb93a91c9226949d617894d6aa2d67c4de4eb6 | [
"MIT"
] | 7 | 2021-07-12T10:41:14.000Z | 2022-02-04T10:28:08.000Z | import os
os.environ["CUDA_VISIBLE_DEVICES"] = "4"
import json
import argparse
import numpy as np
import tensorflow as tf
import midi_encoder as me
from train_generative import build_generative_model
from train_classifier import preprocess_sentence
GENERATED_DIR = './generated'
if __name__ == "__main__":
# Par... | 35.330882 | 134 | 0.678044 |
020563bca2febded13ab705cf7257f5af323ab0d | 1,616 | py | Python | holobot/sdk/chrono/interval_parser.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 1 | 2021-05-24T00:17:46.000Z | 2021-05-24T00:17:46.000Z | holobot/sdk/chrono/interval_parser.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 41 | 2021-03-24T22:50:09.000Z | 2021-12-17T12:15:13.000Z | holobot/sdk/chrono/interval_parser.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | null | null | null | from ..utils import pad_left, try_parse_int
from datetime import timedelta
from typing import Dict, List
TIME_PARTS: List[str] = [ "D", "H", "M", "S" ]
FIXED_INTERVALS: Dict[str, timedelta] = {
"WEEK": timedelta(weeks=1),
"DAY": timedelta(days=1),
"HOUR": timedelta(hours=1)
}
| 36.727273 | 91 | 0.633045 |
02063c864e384d1ba7ec730d4d03b03f063ebc1f | 80,245 | py | Python | pirates/ai/PiratesMagicWordManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/ai/PiratesMagicWordManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/ai/PiratesMagicWordManager.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.ai.PiratesMagicWordManager
from direct.showbase.ShowBaseGlobal import *
from direct.distributed import DistributedObject
from di... | 69.176724 | 993 | 0.408349 |
0207e1cd7c3433152b1e340e7f376f8049a8644d | 634 | bzl | Python | layers/bazel/deps.bzl | celentes/bazel-container-ubuntu1804 | 67c12c3f6db785909fa3695c80ebbdec1ff81b61 | [
"Apache-2.0"
] | null | null | null | layers/bazel/deps.bzl | celentes/bazel-container-ubuntu1804 | 67c12c3f6db785909fa3695c80ebbdec1ff81b61 | [
"Apache-2.0"
] | null | null | null | layers/bazel/deps.bzl | celentes/bazel-container-ubuntu1804 | 67c12c3f6db785909fa3695c80ebbdec1ff81b61 | [
"Apache-2.0"
] | null | null | null | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
| 39.625 | 116 | 0.62776 |
0208d63efe0cf495f00648e33345a8f7f3c257eb | 4,318 | py | Python | db.py | RecycledMedia/apprenticeship-app | 67eb18300163dedcc4f473883f20d992644af7b2 | [
"BSD-3-Clause"
] | null | null | null | db.py | RecycledMedia/apprenticeship-app | 67eb18300163dedcc4f473883f20d992644af7b2 | [
"BSD-3-Clause"
] | null | null | null | db.py | RecycledMedia/apprenticeship-app | 67eb18300163dedcc4f473883f20d992644af7b2 | [
"BSD-3-Clause"
] | null | null | null | import os
import sqlite3
| 32.712121 | 96 | 0.585456 |
02097fb19e8e97c98afe88f64252e859af37785e | 243 | py | Python | python/vars_test.py | runningforlife/CodingExamples | 808b12cdb996390225d40a687bf6215c4b7d1822 | [
"Apache-2.0"
] | null | null | null | python/vars_test.py | runningforlife/CodingExamples | 808b12cdb996390225d40a687bf6215c4b7d1822 | [
"Apache-2.0"
] | null | null | null | python/vars_test.py | runningforlife/CodingExamples | 808b12cdb996390225d40a687bf6215c4b7d1822 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
def test_vars():
"""test variables in python"""
int_var = 5
string_var = "hah"
assert int_var == 5
assert string_var == 'hah'
print("test vars is done")
if __name__ == "__main__":
test_vars()
| 15.1875 | 34 | 0.596708 |
020a172c0d9f7b9606628146aaa062d113a7182b | 7,199 | py | Python | src/data_preparation/tfrecords_and_queues.py | Zhenxingzhang/tiny_imagenet | f44512023ce52df30cdffd80d3cb7cc4e1426354 | [
"Apache-2.0"
] | null | null | null | src/data_preparation/tfrecords_and_queues.py | Zhenxingzhang/tiny_imagenet | f44512023ce52df30cdffd80d3cb7cc4e1426354 | [
"Apache-2.0"
] | null | null | null | src/data_preparation/tfrecords_and_queues.py | Zhenxingzhang/tiny_imagenet | f44512023ce52df30cdffd80d3cb7cc4e1426354 | [
"Apache-2.0"
] | null | null | null | """
Up to now we have held all data in memory. This is of course impossible with large datasets.
In this file we explore the use of TFRecords (binary files quickly loading data from disk) and Queues to store
asynchronously loading data.
In this example we the TinyImageNet-200 dataset which has 100,000 64x64 images fo... | 41.137143 | 114 | 0.633282 |
020a1a0bc964b8990c94fa3dbddf6619f8e10b21 | 2,906 | py | Python | relialok/SerialPort.py | jrhosk/relialok | 28d59dfd39296695ebec19387eda9b986ecdd60f | [
"MIT"
] | null | null | null | relialok/SerialPort.py | jrhosk/relialok | 28d59dfd39296695ebec19387eda9b986ecdd60f | [
"MIT"
] | null | null | null | relialok/SerialPort.py | jrhosk/relialok | 28d59dfd39296695ebec19387eda9b986ecdd60f | [
"MIT"
] | null | null | null | import serial
import serial.tools.list_ports
from PyQt5.QtCore import QObject
import relialok.Logger | 34.188235 | 114 | 0.604955 |
020a85d2b9268f0ad8b4e717c76fefae39beb819 | 339 | py | Python | Python/DDUtil.py | dalek7/umbrella | cabf0367940905ca5164d104d7aef6ff719ee166 | [
"MIT"
] | 1 | 2021-03-09T09:12:02.000Z | 2021-03-09T09:12:02.000Z | Python/DDUtil.py | dalek7/umbrella | cabf0367940905ca5164d104d7aef6ff719ee166 | [
"MIT"
] | null | null | null | Python/DDUtil.py | dalek7/umbrella | cabf0367940905ca5164d104d7aef6ff719ee166 | [
"MIT"
] | null | null | null | import os
import datetime | 19.941176 | 62 | 0.60767 |
020b56188f2411001ea02312adb3e4b3e9f8fcbc | 4,301 | py | Python | codes/modelTraining.py | jairock282/hatsi | ecb16fb99115c413e980855ae3d06433ced2260c | [
"MIT"
] | null | null | null | codes/modelTraining.py | jairock282/hatsi | ecb16fb99115c413e980855ae3d06433ced2260c | [
"MIT"
] | null | null | null | codes/modelTraining.py | jairock282/hatsi | ecb16fb99115c413e980855ae3d06433ced2260c | [
"MIT"
] | null | null | null | """
__| |_____________________________________________________________________________________| |__
(__ _____________________________________________________________________________________ __)
| | | |
| | ... | 44.802083 | 215 | 0.601953 |
020c16a78df08433f5dc19175781c44bf2dcbb01 | 1,763 | py | Python | datasource/mylaps/tests.py | SphinxNZ/game-on | da10ea9303563cd91ccab13321ba15a927e703e5 | [
"Apache-2.0"
] | null | null | null | datasource/mylaps/tests.py | SphinxNZ/game-on | da10ea9303563cd91ccab13321ba15a927e703e5 | [
"Apache-2.0"
] | null | null | null | datasource/mylaps/tests.py | SphinxNZ/game-on | da10ea9303563cd91ccab13321ba15a927e703e5 | [
"Apache-2.0"
] | null | null | null | import datetime
from django.utils import timezone
from django.test import TestCase
from sport.models import Sport, Competition, Venue
from compete.models import CompetitionRound
from compete.motorsport.models import Race
from datasource.models import DataSource
from datasource.mylaps.scoreboard import ScoreboardHand... | 43 | 115 | 0.676687 |
020c551868d4325ef446cf93f3e3b90f6e4e9908 | 1,697 | py | Python | scripts/generate_tests.py | alibaba/sionnx | 3f3e18826ddcc26402b4e2af96ca8aac15560456 | [
"Apache-2.0"
] | 34 | 2019-05-29T03:15:48.000Z | 2022-03-24T03:14:58.000Z | scripts/generate_tests.py | alibaba/sionnx | 3f3e18826ddcc26402b4e2af96ca8aac15560456 | [
"Apache-2.0"
] | 1 | 2020-05-21T11:44:22.000Z | 2020-05-21T11:44:22.000Z | scripts/generate_tests.py | alibaba/sionnx | 3f3e18826ddcc26402b4e2af96ca8aac15560456 | [
"Apache-2.0"
] | 4 | 2019-12-16T18:49:42.000Z | 2021-10-11T18:41:54.000Z | #*
#* Copyright (C) 2017-2019 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 by ... | 36.891304 | 124 | 0.703595 |
020e09341ffea9ce59519650e80614b26a974b81 | 6,610 | py | Python | tests/mixins.py | jarkkorantala/sqlalchemy-utils | 7cee65f0a3074245b853425e19a732aa274bfa3e | [
"BSD-3-Clause"
] | 879 | 2015-01-01T12:06:35.000Z | 2022-03-27T16:13:05.000Z | tests/mixins.py | jarkkorantala/sqlalchemy-utils | 7cee65f0a3074245b853425e19a732aa274bfa3e | [
"BSD-3-Clause"
] | 418 | 2015-01-02T08:43:43.000Z | 2022-03-25T15:49:21.000Z | tests/mixins.py | jarkkorantala/sqlalchemy-utils | 7cee65f0a3074245b853425e19a732aa274bfa3e | [
"BSD-3-Clause"
] | 295 | 2015-01-06T14:19:33.000Z | 2022-03-26T16:20:50.000Z | import pytest
import sqlalchemy as sa
| 28.864629 | 79 | 0.522542 |
020e71ff56d4917b70bf98b950bcfa70c6d8e56c | 6,041 | py | Python | gbpservice/nfp/lib/rest_client_over_unix.py | ashutosh-mishra/my-test | 51c82af293f291b9182204392e7d21bda27786d1 | [
"Apache-2.0"
] | null | null | null | gbpservice/nfp/lib/rest_client_over_unix.py | ashutosh-mishra/my-test | 51c82af293f291b9182204392e7d21bda27786d1 | [
"Apache-2.0"
] | null | null | null | gbpservice/nfp/lib/rest_client_over_unix.py | ashutosh-mishra/my-test | 51c82af293f291b9182204392e7d21bda27786d1 | [
"Apache-2.0"
] | null | null | null | # 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... | 35.327485 | 78 | 0.609833 |
020f39177cabbb0de46cc69acb4473e957930343 | 3,916 | py | Python | tk_sim.py | incherre/slam-bot | 8479aff8f595b2d602a83e9e922b64836ae64375 | [
"MIT"
] | null | null | null | tk_sim.py | incherre/slam-bot | 8479aff8f595b2d602a83e9e922b64836ae64375 | [
"MIT"
] | null | null | null | tk_sim.py | incherre/slam-bot | 8479aff8f595b2d602a83e9e922b64836ae64375 | [
"MIT"
] | null | null | null | '''Robot sim with a nicer display.'''
from sim_framework import *
from math import radians
import tkinter
BACKGROUND_COLOR = 'grey60'
ENTITY_COLOR = 'RoyalBlue1'
OBSTACLE_COLOR = 'black'
ENTITY_TAG = 'entity'
if __name__ == '__main__':
root = tkinter.Tk()
W = TKWorld(root, -500, 500, -500, 500)
W.add_obs(... | 36.943396 | 112 | 0.565884 |
0210ff2439d9da24bc21178720c18eee48ba770a | 1,224 | py | Python | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 81 | 2015-01-18T22:31:42.000Z | 2022-03-14T12:34:33.000Z | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 67 | 2015-01-05T15:24:39.000Z | 2021-08-16T12:44:58.000Z | COT/tests/test_doctests.py | morneaup/cot | 3d4dc7079a33aa0c09216ec339b44f84ab69ff4b | [
"MIT"
] | 20 | 2015-07-09T14:20:25.000Z | 2021-09-18T17:59:57.000Z | #!/usr/bin/env python
#
# test_doctests.py - test runner for COT doctests
#
# July 2016, Glenn F. Matthews
# Copyright (c) 2016-2017 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.txt.
#
# This ... | 33.081081 | 78 | 0.750817 |
021113c40a21b05029b6c6708d8e10e3927d9701 | 1,045 | py | Python | aws/etc/packer/tools/python/stardog/cluster/test_program.py | stardog-union/stardog-graviton | 652fa3e3bbb166e92ce165938ef2075831d26c04 | [
"Apache-2.0"
] | 3 | 2017-03-10T15:00:08.000Z | 2019-10-29T07:46:19.000Z | aws/etc/packer/tools/python/stardog/cluster/test_program.py | stardog-union/stardog-graviton | 652fa3e3bbb166e92ce165938ef2075831d26c04 | [
"Apache-2.0"
] | 31 | 2017-02-21T16:19:11.000Z | 2021-03-25T21:27:50.000Z | aws/etc/packer/tools/python/stardog/cluster/test_program.py | stardog-union/stardog-graviton | 652fa3e3bbb166e92ce165938ef2075831d26c04 | [
"Apache-2.0"
] | 6 | 2017-04-26T07:22:25.000Z | 2020-07-29T20:17:55.000Z | import logging
import subprocess
import sys
import stardog.cluster.utils as utils
| 29.857143 | 97 | 0.572249 |
0211dbc40a6aa48e66ae666cbc2afb8294c1a296 | 297 | py | Python | apps/core/urls.py | tayyabRazzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 2 | 2019-04-03T04:04:53.000Z | 2019-04-28T16:13:56.000Z | apps/core/urls.py | tayyabRazzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 8 | 2021-06-04T21:57:30.000Z | 2022-03-11T23:48:38.000Z | apps/core/urls.py | tayyab-razzaq/opl-platform | 37b0efdb9327253a144c50bfd192132fac732619 | [
"MIT"
] | 7 | 2019-03-12T19:39:08.000Z | 2021-04-15T05:25:59.000Z | """ Here all the blog's urls routes will be mapped """
from django.urls import path
from django.conf.urls import include, url
from . import views
app_name = 'core'
urlpatterns = [
# path('', views.home, name='home-page'),
url(r'^api/', include('apps.core.api.urls', namespace='api')),
]
| 24.75 | 66 | 0.670034 |
021267aeacfe0ae1c6472616df30ce20f8a2d09b | 24,270 | py | Python | picoCTF-web/tests/api/functional/common.py | MongYahHsieh/picoCTF | dd500ad9c59768137b33e2d2b102a089ddf0ad40 | [
"MIT"
] | null | null | null | picoCTF-web/tests/api/functional/common.py | MongYahHsieh/picoCTF | dd500ad9c59768137b33e2d2b102a089ddf0ad40 | [
"MIT"
] | null | null | null | picoCTF-web/tests/api/functional/common.py | MongYahHsieh/picoCTF | dd500ad9c59768137b33e2d2b102a089ddf0ad40 | [
"MIT"
] | null | null | null | """Utilities for functional tests."""
import datetime
import json
import re
import pymongo
import pytest
import api
RATE_LIMIT_BYPASS = "test_bypass"
TESTING_DB_NAME = 'ctf_test'
db = None
def decode_response(res):
"""Parse a WebSuccess or WebError response."""
decoded_dict = json.loads(res.data.decode('u... | 34.621969 | 1,680 | 0.486279 |
0212be2b426e881f46ce9b5faa0a4d6cd2b0e659 | 11 | py | Python | py2codes/py2_exec.py | rhabacker/lib2to3import | 36102fa844bf18234053d96f6b9b90f5c6068e87 | [
"MIT"
] | null | null | null | py2codes/py2_exec.py | rhabacker/lib2to3import | 36102fa844bf18234053d96f6b9b90f5c6068e87 | [
"MIT"
] | 1 | 2020-11-14T01:39:18.000Z | 2020-11-17T07:54:28.000Z | py2codes/py2_exec.py | rhabacker/lib2to3import | 36102fa844bf18234053d96f6b9b90f5c6068e87 | [
"MIT"
] | 2 | 2019-08-12T09:58:05.000Z | 2021-03-18T17:13:06.000Z | exec "123"
| 5.5 | 10 | 0.636364 |
02154f47c33721ccd238e5aa1dcf948b5ec4704f | 1,308 | py | Python | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null | Tools/RaiseCheck.py | 17320692835RGF/buptoj | 3d1e4719d757b4f0199e4451be7c0bee28e7c3ca | [
"MIT"
] | null | null | null |
import MySQLdb
from queue import Queue
import socket
import json
from time import sleep
import threading
import os
queue = Queue() #
myjsonfile = open("./setting.json", 'r')
judgerjson = json.loads(myjsonfile.read())
if os.environ.get("DB_USER"):
judgerjson["db_ip"] = os.environ.get("DB_HO... | 22.169492 | 96 | 0.603211 |
0216b8ad609381ab0fb91a808c2538b44b5d722d | 1,557 | py | Python | unit_test.py | LSTM-Kirigaya/MsnEnvironment | 29c6e02525c7671f304d0f9d7689942509f12a16 | [
"MIT"
] | null | null | null | unit_test.py | LSTM-Kirigaya/MsnEnvironment | 29c6e02525c7671f304d0f9d7689942509f12a16 | [
"MIT"
] | null | null | null | unit_test.py | LSTM-Kirigaya/MsnEnvironment | 29c6e02525c7671f304d0f9d7689942509f12a16 | [
"MIT"
] | null | null | null | from env import MsnDiscrete, MaplessNaviEnv
from robot_utils import *
from robot_utils.log import msn_debug
from robot_utils.scene import *
from env import *
from collections import Counter
MAX_FORCE = 10.
TARGET_VELOCITY = 5.
MULTIPLY = 2.0
# keyboard_control()
u_MsnDiscrete() | 28.833333 | 126 | 0.705202 |
0218bf8ae5e0f91bee4226c0b79fa035f5a60a3c | 12,358 | py | Python | meta-refkit-core/lib/ostree/ostreeupdate.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 36 | 2017-02-20T04:04:28.000Z | 2022-02-17T05:36:33.000Z | meta-refkit-core/lib/ostree/ostreeupdate.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 284 | 2017-02-06T08:51:52.000Z | 2021-11-03T16:52:16.000Z | meta-refkit-core/lib/ostree/ostreeupdate.py | kraj/intel-iot-refkit | 04cd5afec0c41deeb5e1a48b43a0a31e708295c1 | [
"MIT"
] | 65 | 2017-02-03T12:36:16.000Z | 2021-02-18T11:00:46.000Z | import bb
import oe.path
import glob
import hashlib
import os.path
import shutil
import string
import subprocess
VARIABLES = (
'IMAGE_ROOTFS',
'OSTREE_BRANCHNAME',
'OSTREE_COMMIT_SUBJECT',
'OSTREE_REPO',
'OSTREE_GPGDIR',
'OSTREE_GPGID',
'OSTREE_OS',
'OSTREE_REMOTE',
'OSTREE_BARE',
... | 42.177474 | 149 | 0.606732 |
021a272ec30f97420b7269bd3ee1d988857ff0cb | 123 | py | Python | returns-the- value-to-the-variable.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | 1 | 2021-03-29T02:29:58.000Z | 2021-03-29T02:29:58.000Z | returns-the- value-to-the-variable.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | null | null | null | returns-the- value-to-the-variable.py | fatihwin-yt/a-Python-Tutorial-of-2021 | 7d2110f80efdfa79437bf64f8edcd08ec3d61926 | [
"MIT"
] | 1 | 2021-03-27T15:00:06.000Z | 2021-03-27T15:00:06.000Z | #returns the value to the variable #
x = 900
print(x)
#print will take the argument x as the value in the variable #
| 20.5 | 63 | 0.699187 |
021a57faf00fc6d4266f3268c12b51f08834cc6c | 1,453 | py | Python | app.py | alvaropp/interactive-fantasy-map | b75ebc734970790bc5779865ab5e786e50250709 | [
"MIT"
] | 4 | 2021-02-11T03:23:40.000Z | 2022-02-13T01:56:58.000Z | app.py | alvaropp/interactive-fantasy-map | b75ebc734970790bc5779865ab5e786e50250709 | [
"MIT"
] | null | null | null | app.py | alvaropp/interactive-fantasy-map | b75ebc734970790bc5779865ab5e786e50250709 | [
"MIT"
] | null | null | null | from glob import glob
from flask import flash, Flask, Markup, render_template, redirect, request, send_from_directory
from form import MapForm
from process_new_map import create_map_from_form
app = Flask(__name__)
with open("secret.txt", "r") as secret_f:
app.config["SECRET_KEY"] = secret_f.read()
if __n... | 29.653061 | 105 | 0.692361 |
021afdb076c4754aa3ba63a750975318ad4eba13 | 4,121 | py | Python | monai/deploy/core/execution_context.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 28 | 2021-09-17T18:16:42.000Z | 2022-03-31T16:32:36.000Z | monai/deploy/core/execution_context.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 109 | 2021-09-17T18:34:31.000Z | 2022-03-31T21:04:35.000Z | monai/deploy/core/execution_context.py | jlvahldiek/monai-deploy-app-sdk | 050aeabec581067a11566f59a2970b075d36ae7c | [
"Apache-2.0"
] | 11 | 2021-09-17T20:23:31.000Z | 2022-03-29T08:55:19.000Z | # Copyright 2021 MONAI Consortium
# 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, s... | 32.448819 | 106 | 0.674351 |
021b5b2946a725db8a4879a92f48d89c65c21d97 | 11,698 | py | Python | LeetCode-All-Solution/Python3/LC-1728-Cat-and-Mouse-II.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-1728-Cat-and-Mouse-II.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | LeetCode-All-Solution/Python3/LC-1728-Cat-and-Mouse-II.py | YuweiYin/Algorithm_YuweiYin | 28648fac59c5a4e3c907978cbd1b3e662ba18fd5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""=================================================================
@Project : Algorithm_YuweiYin/LeetCode-All-Solution/Python3
@File : LC-1728-Cat-and-Mouse-II.py
@Author : [YuweiYin](https://github.com/YuweiYin)
@Date : 2022-05-10
==================================... | 44.310606 | 116 | 0.566422 |
021c36744a33f4725dc24d93c0aa09acf81e97bf | 2,193 | py | Python | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | tictac/tictac/cli.py | SteveDMurphy/tic_tac_go | 7e80dc1ec6fbeceb3c9879cee7fb32b7ecfe37a7 | [
"MIT"
] | null | null | null | import click
from random import randrange
from tictac import Tictac
if __name__ == "__main__":
tictac()
| 33.227273 | 96 | 0.645691 |
021d46262a81bc3bd29354a1c4c85f1ce3571b25 | 4,230 | py | Python | matchId.py | terryhahm/ARAM | bbaa6446aec6ad7141d492aef174832e627c7b74 | [
"MIT"
] | null | null | null | matchId.py | terryhahm/ARAM | bbaa6446aec6ad7141d492aef174832e627c7b74 | [
"MIT"
] | null | null | null | matchId.py | terryhahm/ARAM | bbaa6446aec6ad7141d492aef174832e627c7b74 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import riotConstant
import time
import requests
| 37.433628 | 108 | 0.607092 |
021d5769d36b572a0f2addec694597fefa3cfa6f | 158 | py | Python | Backend/order/urls.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | Backend/order/urls.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | Backend/order/urls.py | Bhavya0020/Readopolis | a0053e4fae97dc8291b50c746f3dc3e6b454ad95 | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('checkout/', views.checkout),
path('orders/', views.OrdersList.as_view()),
] | 19.75 | 50 | 0.677215 |
02223351c3f6f455c742ce52e04a38d560dc3455 | 299 | py | Python | src/z3c/saconfig/__init__.py | zopefoundation/z3c.saconfig | 69a32e7f7617ec4a1f9667d673a1ddc00aff59c2 | [
"ZPL-2.1"
] | 2 | 2016-03-12T14:22:23.000Z | 2019-05-22T04:18:26.000Z | src/z3c/saconfig/__init__.py | zopefoundation/z3c.saconfig | 69a32e7f7617ec4a1f9667d673a1ddc00aff59c2 | [
"ZPL-2.1"
] | 13 | 2015-05-05T12:27:48.000Z | 2021-05-20T11:11:49.000Z | src/z3c/saconfig/__init__.py | zopefoundation/z3c.saconfig | 69a32e7f7617ec4a1f9667d673a1ddc00aff59c2 | [
"ZPL-2.1"
] | 4 | 2015-05-04T12:18:31.000Z | 2019-11-18T09:47:31.000Z | from z3c.saconfig.scopedsession import Session, named_scoped_session
from z3c.saconfig.utility import (
GloballyScopedSession, SiteScopedSession, EngineFactory)
__all__ = [
'Session',
'named_scoped_session',
'GloballyScopedSession',
'SiteScopedSession',
'EngineFactory',
]
| 23 | 68 | 0.752508 |
0223c05bd579183b627da44b67aca37eba1114e5 | 557 | py | Python | src/triage/experiments/singlethreaded.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 160 | 2017-06-13T09:59:59.000Z | 2022-03-21T22:00:35.000Z | src/triage/experiments/singlethreaded.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 803 | 2016-10-21T19:44:02.000Z | 2022-03-29T00:02:33.000Z | src/triage/experiments/singlethreaded.py | josephbajor/triage_NN | cbaee6e5a06e597c91fec372717d89a2b5f34fa5 | [
"MIT"
] | 59 | 2017-01-31T22:10:22.000Z | 2022-03-19T12:35:03.000Z | from triage.experiments import ExperimentBase
| 34.8125 | 66 | 0.800718 |
022635491f2d2bfe0024464d83f72d0ff2d7769e | 11,374 | py | Python | Webspider.py | radiantbk/webspider | 62a9c71f8f3f39e5e07e0fb68682fc05a83edd5b | [
"MIT"
] | 1 | 2019-11-09T01:36:39.000Z | 2019-11-09T01:36:39.000Z | Webspider.py | radiantbk/webspider | 62a9c71f8f3f39e5e07e0fb68682fc05a83edd5b | [
"MIT"
] | null | null | null | Webspider.py | radiantbk/webspider | 62a9c71f8f3f39e5e07e0fb68682fc05a83edd5b | [
"MIT"
] | null | null | null |
import re
import os
| 31.076503 | 164 | 0.481976 |
022a8bafe44b23b7f0a6af1c6947a769d26527f0 | 4,909 | py | Python | QScrollAreaImages.py | ErwinSchotman/QT5-QScrollAreaImages | 053e06a3ff67311f753712902902c43b1f011d30 | [
"MIT"
] | 1 | 2019-11-29T00:37:31.000Z | 2019-11-29T00:37:31.000Z | QScrollAreaImages.py | ErwinSchotman/QT5-QScrollAreaImages | 053e06a3ff67311f753712902902c43b1f011d30 | [
"MIT"
] | null | null | null | QScrollAreaImages.py | ErwinSchotman/QT5-QScrollAreaImages | 053e06a3ff67311f753712902902c43b1f011d30 | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019 Erwin Schotman
#
# Licensed under MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the right... | 48.127451 | 121 | 0.534528 |
022b9e68ba47723e01a95addbedb6c10c435b96e | 30,434 | py | Python | pyrax/fakes.py | jfreeman812/pyrax | dba18df916dcc3a9f539bd9c609b1bb68f3d9203 | [
"Apache-2.0"
] | null | null | null | pyrax/fakes.py | jfreeman812/pyrax | dba18df916dcc3a9f539bd9c609b1bb68f3d9203 | [
"Apache-2.0"
] | 1 | 2019-11-06T20:21:59.000Z | 2019-11-06T20:21:59.000Z | pyrax/fakes.py | jfreeman812/pyrax | dba18df916dcc3a9f539bd9c609b1bb68f3d9203 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import json
import os
import random
import time
import uuid
import pyrax
from pyrax.autoscale import AutoScaleClient
from pyrax.autoscale import AutoScalePolicy
from pyrax.autoscale import AutoScaleWebhook
from pyrax.autoscale import Sca... | 33.554576 | 80 | 0.630676 |
022be07ba133b6de16720dad8708b355fc237656 | 2,869 | py | Python | ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/alerts/alert_logfeeder.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 25 | 2019-12-04T03:09:55.000Z | 2022-03-08T10:52:06.000Z | ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/alerts/alert_logfeeder.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 29 | 2019-12-04T03:00:39.000Z | 2022-03-02T06:25:44.000Z | ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/alerts/alert_logfeeder.py | likenamehaojie/Apache-Ambari-ZH | 5973025bd694cdbb4b49fb4c4e0d774782811ff6 | [
"Apache-2.0"
] | 33 | 2019-12-04T02:51:30.000Z | 2022-03-24T02:47:38.000Z | #!/usr/bin/env python
"""
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License")... | 33.752941 | 113 | 0.776577 |
022d316f00567159f07f5f66967da1595528de9a | 3,589 | py | Python | hack/scripts/ca_metrics_parser.py | nicdoye/autoscaler | ebadbda2b2417d7da6147fbc0c1b39f7f55aff22 | [
"Apache-2.0"
] | 17 | 2018-09-14T10:31:43.000Z | 2021-09-14T08:47:34.000Z | hack/scripts/ca_metrics_parser.py | nicdoye/autoscaler | ebadbda2b2417d7da6147fbc0c1b39f7f55aff22 | [
"Apache-2.0"
] | 12 | 2019-01-09T10:34:06.000Z | 2022-03-24T08:37:25.000Z | hack/scripts/ca_metrics_parser.py | nicdoye/autoscaler | ebadbda2b2417d7da6147fbc0c1b39f7f55aff22 | [
"Apache-2.0"
] | 3 | 2019-05-06T14:51:10.000Z | 2020-12-22T14:03:43.000Z | #!/usr/bin/env python
# Copyright 2017 The Kubernetes 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 appli... | 28.712 | 96 | 0.713291 |
022e461176e9788379dfe2431986a89fcba4d6ae | 2,631 | py | Python | tests/test_cli.py | dls-controls/tickit | 00bb013e69674bcfe4926f365ecb3c65c080abe8 | [
"Apache-2.0"
] | 4 | 2021-09-16T13:35:33.000Z | 2022-02-01T23:35:53.000Z | tests/test_cli.py | dls-controls/tickit | 00bb013e69674bcfe4926f365ecb3c65c080abe8 | [
"Apache-2.0"
] | 46 | 2021-09-16T13:44:58.000Z | 2022-02-02T13:42:56.000Z | tests/test_cli.py | dls-controls/tickit | 00bb013e69674bcfe4926f365ecb3c65c080abe8 | [
"Apache-2.0"
] | null | null | null | from typing import Iterable
import pytest
from click.testing import CliRunner, Result
from mock import Mock, patch
from mock.mock import create_autospec
from tickit.cli import main
from tickit.core.components.component import ComponentConfig
from tickit.core.management.schedulers.master import MasterScheduler
from ti... | 27.989362 | 88 | 0.72824 |
022e5e8924eb3bc3c0fcb9bc827782f367ea128d | 565 | py | Python | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | null | null | null | homework5/app/config.py | sakost/tinkoff_fintech | 64b9d5a2a818b4db7c438b0dc53a8f31882f95ba | [
"MIT"
] | 2 | 2021-08-29T15:01:39.000Z | 2022-02-23T18:48:21.000Z | from typing import Any
from pydantic import BaseSettings
from .utils import singleton_cache
| 20.178571 | 57 | 0.699115 |
022f6a23b370efd01d97a4fc32d332f4e763d78f | 2,158 | py | Python | nabu/story.py | sterlingbaldwin/nabu | 6f19a1b237cdab6ff2179c952f41e239e1a0a3e8 | [
"MIT"
] | null | null | null | nabu/story.py | sterlingbaldwin/nabu | 6f19a1b237cdab6ff2179c952f41e239e1a0a3e8 | [
"MIT"
] | 1 | 2022-02-14T12:15:45.000Z | 2022-02-14T12:15:45.000Z | nabu/story.py | sterlingbaldwin/nabu | 6f19a1b237cdab6ff2179c952f41e239e1a0a3e8 | [
"MIT"
] | null | null | null | from typing import ChainMap
import yaml
from pathlib import Path
from jinja2 import Template
from weasyprint import HTML, CSS
# from xhtml2pdf import pisa
| 37.206897 | 79 | 0.598239 |
022fd56061f4a128f54c059a42d1bbaadf434720 | 322 | py | Python | src/homework/models/__init__.py | nvo87/education-backend | 1f008bd396b5dde4483af611532826a9bca9fef5 | [
"MIT"
] | 62 | 2021-09-22T18:38:26.000Z | 2022-03-29T06:09:42.000Z | src/homework/models/__init__.py | nvo87/education-backend | 1f008bd396b5dde4483af611532826a9bca9fef5 | [
"MIT"
] | 50 | 2021-09-16T07:17:31.000Z | 2022-03-26T12:06:58.000Z | src/homework/models/__init__.py | nvo87/education-backend | 1f008bd396b5dde4483af611532826a9bca9fef5 | [
"MIT"
] | 16 | 2021-10-17T17:43:31.000Z | 2022-03-26T11:22:45.000Z | from homework.models.answer import Answer
from homework.models.answer_access_log_entry import AnswerAccessLogEntry
from homework.models.answer_cross_check import AnswerCrossCheck
from homework.models.question import Question
__all__ = [
'Answer',
'AnswerAccessLogEntry',
'AnswerCrossCheck',
'Question',
... | 26.833333 | 72 | 0.801242 |
0230ced77fc05cfeb2ad94e5f316982b5ce418ba | 1,650 | py | Python | second workout/8B/A.py | paktusov/algorithms | b21e7ead2325f77a606dc53495866e359f2e24fe | [
"BSD-3-Clause"
] | null | null | null | second workout/8B/A.py | paktusov/algorithms | b21e7ead2325f77a606dc53495866e359f2e24fe | [
"BSD-3-Clause"
] | null | null | null | second workout/8B/A.py | paktusov/algorithms | b21e7ead2325f77a606dc53495866e359f2e24fe | [
"BSD-3-Clause"
] | null | null | null |
tree = []
with open('input.txt', 'r', encoding='utf-8') as file:
string = file.readline().strip()
while string != '':
line = [i for i in string.split()]
if line[0] == 'ADD':
add(tree, int(line[1]))
elif line[0] == 'SEARCH':
if find(tree, int(line[1])):
... | 21.710526 | 54 | 0.434545 |
023179993902aa78bcb94918909fb230bdfcaedd | 5,502 | py | Python | fewshot/clis/score_simple.py | armancohan/flex | 2a005fd18f522d2667421f170568df1164a73c3a | [
"Apache-2.0"
] | 63 | 2021-07-01T23:40:55.000Z | 2022-03-15T21:56:57.000Z | fewshot/clis/score_simple.py | armancohan/flex | 2a005fd18f522d2667421f170568df1164a73c3a | [
"Apache-2.0"
] | 1 | 2022-03-04T11:15:55.000Z | 2022-03-28T09:33:54.000Z | fewshot/clis/score_simple.py | armancohan/flex | 2a005fd18f522d2667421f170568df1164a73c3a | [
"Apache-2.0"
] | 3 | 2021-07-31T05:06:14.000Z | 2022-02-28T12:45:06.000Z | import json
from typing import TextIO
from functools import partial
import click
import numpy as np
from scipy.stats import sem
import pandas as pd
from fewshot.bootstrap import bootstrap
from fewshot.bootstrap import ci
from fewshot.challenges.utils import get_gold_dataset
from . import score_utils as su
def statist... | 38.746479 | 117 | 0.596692 |
0232a5792f409bc2541863dd10af6a3d5b55632c | 1,196 | py | Python | KWS/Dissection/tf_mfcc_from_log_mel_spectrogram_sample.py | xrick/gotek_smic | 7655b6d7415b23c35810b8db48af7424f7dcdb06 | [
"MIT"
] | null | null | null | KWS/Dissection/tf_mfcc_from_log_mel_spectrogram_sample.py | xrick/gotek_smic | 7655b6d7415b23c35810b8db48af7424f7dcdb06 | [
"MIT"
] | null | null | null | KWS/Dissection/tf_mfcc_from_log_mel_spectrogram_sample.py | xrick/gotek_smic | 7655b6d7415b23c35810b8db48af7424f7dcdb06 | [
"MIT"
] | null | null | null | batch_size, num_samples, sample_rate = 32, 32000, 16000.0
# A Tensor of [batch_size, num_samples] mono PCM samples in the range [-1, 1].
pcm = tf.random.normal([batch_size, num_samples], dtype=tf.float32)
# A 1024-point STFT with frames of 64 ms and 75% overlap.
stfts = tf.signal.stft(pcm, frame_length=1024, frame_ste... | 46 | 78 | 0.778428 |
0232d872e8633ddbe199a54a9b7cd036c696f627 | 458 | py | Python | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | user/migrations/0017_auto_20200812_2149.py | Muia23/Grammer | dcc26937d88382c1da36a5f72306e6de367e90a3 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-12 18:49
from __future__ import unicode_literals
from django.db import migrations
import tinymce.models
| 20.818182 | 55 | 0.617904 |
0233159b2601985f539a68dd35218b81258f9ecc | 1,834 | py | Python | audio/loudness_normalization.py | Open-Speech-EkStep/common_scripts | 916f01444e028f9111d5499217abf4443bd24017 | [
"MIT"
] | 4 | 2021-07-22T15:32:13.000Z | 2022-01-25T08:13:45.000Z | audio/loudness_normalization.py | Open-Speech-EkStep/common_scripts | 916f01444e028f9111d5499217abf4443bd24017 | [
"MIT"
] | null | null | null | audio/loudness_normalization.py | Open-Speech-EkStep/common_scripts | 916f01444e028f9111d5499217abf4443bd24017 | [
"MIT"
] | 3 | 2021-04-12T05:04:55.000Z | 2021-08-25T06:55:42.000Z | from pydub import AudioSegment, effects
import glob
import os
from tqdm import tqdm
import argparse
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Normalize')
parser.add_argument('-i', '--input', required=True, help='Input path')
parser.add_argument('-o', '--output', required=Tru... | 36.68 | 95 | 0.698473 |
0233975ca46a04c5b097d1d82d0ed1a76059f352 | 12,308 | py | Python | libcloud/dns/drivers/nsone.py | dupontz/libcloud | 419c69441ea10e7bbf37319e5e8d02e82e7e6b40 | [
"Apache-2.0"
] | 4 | 2017-11-14T17:24:12.000Z | 2020-10-30T01:46:02.000Z | libcloud/dns/drivers/nsone.py | dupontz/libcloud | 419c69441ea10e7bbf37319e5e8d02e82e7e6b40 | [
"Apache-2.0"
] | 11 | 2017-01-29T08:59:21.000Z | 2018-07-02T09:17:47.000Z | libcloud/dns/drivers/nsone.py | dupontz/libcloud | 419c69441ea10e7bbf37319e5e8d02e82e7e6b40 | [
"Apache-2.0"
] | 4 | 2016-04-04T08:01:48.000Z | 2018-06-06T08:04:36.000Z | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use ... | 34.188889 | 79 | 0.537699 |
02339931b6a314a7b42357abbf8fe125695e6d76 | 533 | py | Python | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | null | null | null | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | 6 | 2021-03-18T20:56:22.000Z | 2022-03-11T23:28:10.000Z | ocr.py | PI2-Braille-printer/OCR | 25511596efbe5e408fe43a92c0d04e513d7fea39 | [
"MIT"
] | null | null | null | from PIL import Image, ImageEnhance
import pytesseract
import os
#image = Image.open('f_test.jpg')
#enhance = ImageEnhance.Contrast(image)
#new_image = enhance.enhance(1.5)
#new_image.save('f_test__c_2.jpg')
for x in range(0,3):
os.system('./textcleaner -g -s 2 -a 1 ./Images/test_crop_'+str(x)+'.jpg ./Images/test_cr... | 31.352941 | 110 | 0.739212 |
0233f5b5066a471f59d0277aa64b3c981e22b913 | 2,090 | py | Python | processing/lua_file_builder.py | eubr-atmosphere/Spark-Log-Parser | 6f2025d50944b3603ce3e41ab09afcb38eab4e08 | [
"Apache-2.0"
] | 1 | 2017-05-06T21:25:39.000Z | 2017-05-06T21:25:39.000Z | processing/lua_file_builder.py | eubr-atmosphere/Spark-Log-Parser | 6f2025d50944b3603ce3e41ab09afcb38eab4e08 | [
"Apache-2.0"
] | null | null | null | processing/lua_file_builder.py | eubr-atmosphere/Spark-Log-Parser | 6f2025d50944b3603ce3e41ab09afcb38eab4e08 | [
"Apache-2.0"
] | 3 | 2018-10-19T12:35:56.000Z | 2019-05-09T08:09:54.000Z | #! /usr/bin/env python3
## Copyright 2018 Eugenio Gianniti <eugenio.gianniti@polimi.it>
## Copyright 2016 Giorgio Pea <giorgio.pea@mail.polimi.it>
##
## 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 Li... | 32.65625 | 75 | 0.623445 |
0236d15dce7606a0d8edbca50d378b142b6663f7 | 127 | py | Python | mynlp/__init__.py | Suneel123/mynlp | 9dcf6fb57df66ebd4a359b8cd866323f43bc8ec4 | [
"MIT"
] | null | null | null | mynlp/__init__.py | Suneel123/mynlp | 9dcf6fb57df66ebd4a359b8cd866323f43bc8ec4 | [
"MIT"
] | null | null | null | mynlp/__init__.py | Suneel123/mynlp | 9dcf6fb57df66ebd4a359b8cd866323f43bc8ec4 | [
"MIT"
] | null | null | null | """Top-level package for mynlp."""
__author__ = """Suneel Dondapati"""
__email__ = 'dsuneel1@gmail.com'
__version__ = '0.1.0'
| 21.166667 | 35 | 0.685039 |
0236d5c96173fb20b1c62f540c0341822dff9bf5 | 788 | py | Python | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | test/point_test.py | markupCode/computational-geometry | 9a0a63a0b0c86e0618c18f82283b41baded21c50 | [
"MIT"
] | null | null | null | import unittest
from geometry.point import Point
if __name__ == '__main__':
unittest.main()
| 23.878788 | 50 | 0.549492 |
0238ca053db973ce47447cd47778ddb364794224 | 2,183 | py | Python | scenarios/simpleBTSEdgeCloudIngestion/units/sensors.py | rdsea/IoTCloudSamples | 37a3550627682981aa7d2a4cf317f19a3b1a699c | [
"Apache-2.0"
] | 5 | 2019-05-04T08:43:58.000Z | 2021-12-20T14:22:52.000Z | scenarios/simpleBTSEdgeCloudIngestion/units/sensors.py | rdsea/IoTCloudSamples | 37a3550627682981aa7d2a4cf317f19a3b1a699c | [
"Apache-2.0"
] | 7 | 2017-10-30T22:53:51.000Z | 2022-02-06T18:03:32.000Z | scenarios/simpleBTSEdgeCloudIngestion/units/sensors.py | rdsea/IoTCloudSamples | 37a3550627682981aa7d2a4cf317f19a3b1a699c | [
"Apache-2.0"
] | 3 | 2018-12-17T17:04:04.000Z | 2021-09-23T07:07:01.000Z | import yaml
import os, errno
import json
| 30.319444 | 149 | 0.607879 |
0238ea3d027c6d41c055683ac6fc0e17e3bc821b | 879 | py | Python | array/0018_4_sum/0018_4_sum.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | array/0018_4_sum/0018_4_sum.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | array/0018_4_sum/0018_4_sum.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | import collections
nums = [1,0,-1,0,-2,2]
target = 0
res = Solution().fourSum(nums, target)
print(res) | 35.16 | 83 | 0.480091 |
023b3b94e54c17d3e9f985c30a7d72a9e9d96bce | 573 | py | Python | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | 38 | 2021-12-22T03:12:01.000Z | 2022-03-17T06:57:10.000Z | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | null | null | null | Qcover/backends/__init__.py | BAQIS-Quantum/Qcover | ca3776ed73fefa0cfef08042143a8cf842f8dad5 | [
"Apache-2.0"
] | 13 | 2021-12-22T07:32:44.000Z | 2022-02-28T06:47:41.000Z | from .backend import Backend
from .circuitbyqiskit import CircuitByQiskit
from .circuitbyprojectq import CircuitByProjectq
from .circuitbycirq import CircuitByCirq
from .circuitbyqulacs import CircuitByQulacs
# from .circuitbytket import CircuitByTket
from .circuitbytensor import CircuitByTensor
from .circuitbyq... | 27.285714 | 49 | 0.767888 |
023c2aec98d43d7652c64c1fee878f6de026330b | 766 | py | Python | python-files/dictionary-val.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | python-files/dictionary-val.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | python-files/dictionary-val.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | """
User Get Key Value Input Dictionary Start
"""
dic = {
"google": "google is provide job and internship.",
"amezon": "amezon is e-commerce store and cloud computing provider.",
"zoom": "zoom is provide video call system to connecting meeating.",
"microsoft": "microsoft is owner of windows and office ... | 24.709677 | 73 | 0.663185 |