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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ec8775a2d21ea23aabc78f250f7e13eab7faba62 | 1,070 | py | Python | display.py | skarrea/sirf-utilities | d3e91504220f93cb3e52e71b4a7fe9cff4e14fba | [
"MIT"
] | null | null | null | display.py | skarrea/sirf-utilities | d3e91504220f93cb3e52e71b4a7fe9cff4e14fba | [
"MIT"
] | null | null | null | display.py | skarrea/sirf-utilities | d3e91504220f93cb3e52e71b4a7fe9cff4e14fba | [
"MIT"
] | null | null | null | import sirf.STIR as pet
from scipy.spatial.transform import Rotation as R
import numpy as np
def printGeoInfo(image : pet.ImageData) -> None:
"""Print geometrical data for image object.
Args:
image (pet.ImageData): Input image.
"""
print(image.get_geometrical_info().get_info())
def printAffin... | 35.666667 | 108 | 0.676636 |
ec8853aae833bc53b1b7aafec0789750cee94f23 | 10,346 | py | Python | hyperplane_hasher.py | lateral/hyperplane-hasher | 41c0969087f30cb0c5876f860d234028e44692d9 | [
"MIT"
] | 33 | 2015-07-20T19:24:36.000Z | 2020-09-22T10:41:58.000Z | hyperplane_hasher.py | lateral/hyperplane-hasher | 41c0969087f30cb0c5876f860d234028e44692d9 | [
"MIT"
] | 1 | 2015-07-20T20:19:10.000Z | 2015-07-21T21:58:37.000Z | hyperplane_hasher.py | lateral/hyperplane-hasher | 41c0969087f30cb0c5876f860d234028e44692d9 | [
"MIT"
] | 2 | 2016-05-10T14:52:27.000Z | 2020-04-07T17:20:21.000Z | import re
import numpy as np
import sympy as sp
import random as rd
from functools import reduce
NORMAL_VECTOR_ID = 'hyperplane_normal_vector_%s_%i'
NUM_NORMAL_VECS_ID = 'num_normal_vectors_%s'
CHAMBER_ID = 'chamber_%s_%s'
FVECTOR_ID = 'feature_vector_%s'
FVEC_ID_EX = re.compile(r'feature_vector_([\S]*)')
def _a... | 45.179039 | 89 | 0.610284 |
ec88756fc43b40d527faa0f7dfe3c8b98fb1061d | 622 | py | Python | tap_listrak/http.py | Radico/tap-listrak | ea4cc23f50fdcf8ea7720014ef2c0cf730dd9a21 | [
"Apache-2.0"
] | null | null | null | tap_listrak/http.py | Radico/tap-listrak | ea4cc23f50fdcf8ea7720014ef2c0cf730dd9a21 | [
"Apache-2.0"
] | null | null | null | tap_listrak/http.py | Radico/tap-listrak | ea4cc23f50fdcf8ea7720014ef2c0cf730dd9a21 | [
"Apache-2.0"
] | null | null | null | import zeep
from singer import metrics
WSDL = "https://webservices.listrak.com/v31/IntegrationService.asmx?wsdl"
| 31.1 | 76 | 0.734727 |
ec890e5556e789462b7d7b01c41c451306153e22 | 2,366 | py | Python | example/multistream/plotter/plot_parser.py | th7nder/mp-quic | a9f4bbb47269d2247a3fcdab87d01b138e764191 | [
"MIT"
] | null | null | null | example/multistream/plotter/plot_parser.py | th7nder/mp-quic | a9f4bbb47269d2247a3fcdab87d01b138e764191 | [
"MIT"
] | null | null | null | example/multistream/plotter/plot_parser.py | th7nder/mp-quic | a9f4bbb47269d2247a3fcdab87d01b138e764191 | [
"MIT"
] | null | null | null | import csv
import numpy as np
FIBER = "wiatowd"
LTE = "LTE"
def parse_streams(filename):
rows = []
with open(filename + '/delays.csv') as f:
c = csv.reader(f)
for row in c:
rows.append(row)
streams = set()
for row in rows:
stream = row[0]
# skip crypto stream
if stream == "1":
continue
strea... | 19.393443 | 87 | 0.592139 |
ec8abd98b8afeba4e09a0db96f72cb66cd1ee3d5 | 208 | wsgi | Python | alzhetect.wsgi | raidel123/AlzheTect | 882e808d8ca30cd30d9e814f5dcc02c4395094a5 | [
"Apache-2.0"
] | 7 | 2018-05-23T02:00:04.000Z | 2021-12-22T07:35:27.000Z | alzhetect.wsgi | raidel123/AlzheTect | 882e808d8ca30cd30d9e814f5dcc02c4395094a5 | [
"Apache-2.0"
] | 7 | 2020-01-28T22:21:49.000Z | 2022-02-09T23:35:51.000Z | alzhetect.wsgi | raidel123/AlzheTect | 882e808d8ca30cd30d9e814f5dcc02c4395094a5 | [
"Apache-2.0"
] | 1 | 2019-10-17T19:25:18.000Z | 2019-10-17T19:25:18.000Z | #! /usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/AlzheTect/")
from trunk import app as application
application.secret_key = 'freekeyforthesite'
| 23.111111 | 44 | 0.793269 |
ec8ad78df9cac03bfa66659db4a359671a992df1 | 12,888 | py | Python | src/zope/pluggableauth/plugins/groupfolder.py | zopefoundation/zope.pluggableauth | f1f3e484c1b35b85668476f97368147ba8fbe800 | [
"ZPL-2.1"
] | 2 | 2015-12-05T05:42:19.000Z | 2019-04-04T06:19:33.000Z | src/zope/pluggableauth/plugins/groupfolder.py | zopefoundation/zope.pluggableauth | f1f3e484c1b35b85668476f97368147ba8fbe800 | [
"ZPL-2.1"
] | 10 | 2015-11-17T12:50:45.000Z | 2019-04-03T20:19:27.000Z | src/zope/pluggableauth/plugins/groupfolder.py | zopefoundation/zope.pluggableauth | f1f3e484c1b35b85668476f97368147ba8fbe800 | [
"ZPL-2.1"
] | 2 | 2015-04-03T09:20:50.000Z | 2015-11-17T11:20:00.000Z | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | 31.980149 | 79 | 0.634311 |
ec8adcc353d7db6aa57cc18bbed8494c0d5ef822 | 2,981 | py | Python | webapp/models/mnist_model.py | dushik/AdversarialDNN-Playground | cd960c37aeb610f01c30c296ac481606209ed9ee | [
"Apache-2.0"
] | 125 | 2017-05-03T23:56:48.000Z | 2022-03-31T09:49:23.000Z | webapp/models/mnist_model.py | dushik/AdversarialDNN-Playground | cd960c37aeb610f01c30c296ac481606209ed9ee | [
"Apache-2.0"
] | 4 | 2017-06-05T15:16:48.000Z | 2022-02-09T23:26:25.000Z | webapp/models/mnist_model.py | Qdata4Capstone/capstone18-AdversarialTexPlayground2 | 8feb6e1ef1d293dcb8869faa8a84216cdc3dd5ce | [
"Apache-2.0"
] | 29 | 2017-06-01T15:31:27.000Z | 2021-04-01T13:01:35.000Z | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
if __name__ == '__main__':
train_and_save_model('./mnist-model')
| 35.070588 | 110 | 0.700101 |
ec8afc4dfbfff3f7f3de6b4ba09aa1b5f8451752 | 1,119 | py | Python | main.py | Walkline80/Iot-Platform-SDK | 1c50c2c81ea327712919686023936088ad91a9c5 | [
"MIT"
] | null | null | null | main.py | Walkline80/Iot-Platform-SDK | 1c50c2c81ea327712919686023936088ad91a9c5 | [
"MIT"
] | null | null | null | main.py | Walkline80/Iot-Platform-SDK | 1c50c2c81ea327712919686023936088ad91a9c5 | [
"MIT"
] | null | null | null | from Walkline import Walkline, WalklineButton, WalklineSwitch
from WalklineUtility import WifiHandler
from utime import sleep
from config import *
from machine import Pin
led = Pin(2, Pin.OUT, value=0)
relay = Pin(14, Pin.OUT, value=1)
if __name__ == "__main__":
try:
if WifiHandler.STATION_CONNECTED == connect... | 20.345455 | 61 | 0.717605 |
ec8b26b081642f8999d08575bfc42c6f47934e8e | 2,539 | py | Python | foundation_tenant/management/commands/populate_tenant.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 1 | 2020-07-16T10:58:23.000Z | 2020-07-16T10:58:23.000Z | foundation_tenant/management/commands/populate_tenant.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | 13 | 2018-11-30T02:29:39.000Z | 2022-03-11T23:35:49.000Z | foundation_tenant/management/commands/populate_tenant.py | smegurus/smegurus-django | 053973b5ff0b997c52bfaca8daf8e07db64a877c | [
"BSD-4-Clause"
] | null | null | null | import os
import sys
from decimal import *
from django.contrib.sites.models import Site
from django.core.mail import send_mail
from django.db.models import Sum
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.utils.translation import ugettext_lazy as _
from ... | 32.551282 | 79 | 0.61796 |
ec8cc9374346d3e812dc6ed9373c6080b5a635be | 12,258 | py | Python | metro.py | rugggg/metroSolv | f66a3f3170289aa6b4e25a2b04b21b4f60006042 | [
"MIT"
] | null | null | null | metro.py | rugggg/metroSolv | f66a3f3170289aa6b4e25a2b04b21b4f60006042 | [
"MIT"
] | null | null | null | metro.py | rugggg/metroSolv | f66a3f3170289aa6b4e25a2b04b21b4f60006042 | [
"MIT"
] | null | null | null | #Metro Solver
#Given a metro system, this program will use Q Learning to determine what the
#best route between a given start point and end point is, given the assumption that the time value of each trip between any two stops is equal.
import numpy as np
import random
from keras.models import Sequential
from keras.l... | 34.144847 | 209 | 0.542911 |
ec8cfd581adbc0d4dda9d9d7c30e6cefaae210b2 | 7,351 | py | Python | util/ps_generate_data.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-10-23T01:10:19.000Z | 2022-03-26T18:40:44.000Z | util/ps_generate_data.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 23 | 2018-12-05T20:30:04.000Z | 2020-11-11T19:20:57.000Z | util/ps_generate_data.py | perfsonar/esmond | 391939087321c1438d54cdadee3eb936b95f3e92 | [
"BSD-3-Clause-LBNL"
] | 3 | 2019-02-11T20:40:41.000Z | 2022-03-26T18:40:50.000Z | #!/usr/bin/env python3
import argparse
from pycassa.pool import ConnectionPool
from pycassa.columnfamily import ColumnFamily
from pycassa.system_manager import *
from pycassa.cassandra.ttypes import NotFoundException
import json
import timeit
import time
import uuid
import datetime
import random
from esmond.config im... | 51.405594 | 213 | 0.668344 |
ec8e3ac68d0e1ab6d9a5e9aaa3d5b118b2ebf02b | 259 | py | Python | 03_GraphBasedPlanner/graph_ltpl/offline_graph/src/__init__.py | f1tenth/ESweek2021_educationclassA3 | 7620a36d21c1824efba8a83f0671926bf8e028f3 | [
"MIT"
] | 15 | 2021-10-09T13:48:49.000Z | 2022-03-27T04:36:44.000Z | 03_GraphBasedPlanner/graph_ltpl/offline_graph/src/__init__.py | yinflight/ESweek2021_educationclassA3 | 7a32bacdb7f3154a773d28b6b6abffdaa154a526 | [
"MIT"
] | 1 | 2021-11-27T01:47:25.000Z | 2021-11-27T02:44:04.000Z | 03_GraphBasedPlanner/graph_ltpl/offline_graph/src/__init__.py | yinflight/ESweek2021_educationclassA3 | 7a32bacdb7f3154a773d28b6b6abffdaa154a526 | [
"MIT"
] | 2 | 2021-11-03T19:32:55.000Z | 2021-11-27T02:43:13.000Z | import graph_ltpl.offline_graph.src.gen_edges
import graph_ltpl.offline_graph.src.gen_node_skeleton
import graph_ltpl.offline_graph.src.gen_offline_cost
import graph_ltpl.offline_graph.src.main_offline_callback
import graph_ltpl.offline_graph.src.prune_graph
| 43.166667 | 57 | 0.903475 |
ec8ffe9bef411027daa99fd070d9ff79cf0b1a00 | 310 | py | Python | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | spider_learn/spider_learn01/urllib_learn/urllib19_urlerror.py | Fly365/py-learn | a7c747af70ca2d6dcf244dc89344fbd26b125987 | [
"Apache-2.0"
] | null | null | null | import urllib.request
request = urllib.request.Request("http://aa.bb.cc.com/")
try:
response = urllib.request.urlopen(request,timeout=5)
response.close()
except urllib.request.URLError as err:
print(err.reason())
except ConnectionResetError as connErr:
print(connErr)
print("----line------") | 23.846154 | 56 | 0.709677 |
ec932d530ba9a8b90184f6b9a3eeef364226fa6e | 624 | py | Python | tests/integration/blueprints/admin/orga/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 33 | 2018-01-16T02:04:51.000Z | 2022-03-22T22:57:29.000Z | tests/integration/blueprints/admin/orga/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 7 | 2019-06-16T22:02:03.000Z | 2021-10-02T13:45:31.000Z | tests/integration/blueprints/admin/orga/conftest.py | GSH-LAN/byceps | ab8918634e90aaa8574bd1bb85627759cef122fe | [
"BSD-3-Clause"
] | 14 | 2019-06-01T21:39:24.000Z | 2022-03-14T17:56:43.000Z | """
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
import pytest
from tests.helpers import login_user
| 23.111111 | 58 | 0.713141 |
ec93d26b2ad852203e8731e70a0f43b5fefb14f0 | 1,035 | py | Python | track/utils.py | hellohaptik/track-python | 647acc2d49400d042eb7e68e557e05212b848331 | [
"MIT"
] | 1 | 2021-06-09T07:06:19.000Z | 2021-06-09T07:06:19.000Z | track/utils.py | interakt/track-python | 647acc2d49400d042eb7e68e557e05212b848331 | [
"MIT"
] | null | null | null | track/utils.py | interakt/track-python | 647acc2d49400d042eb7e68e557e05212b848331 | [
"MIT"
] | 1 | 2022-02-11T18:32:55.000Z | 2022-02-11T18:32:55.000Z | import logging
from phonenumbers.phonenumberutil import region_code_for_country_code
logger = logging.getLogger('interakt')
def require(name, field, data_type):
"""Require that the named `field` has the right `data_type`"""
if not isinstance(field, data_type):
msg = '{0} must have {1}, got: {2}'.form... | 27.972973 | 80 | 0.687923 |
ec95f038099c2f4d40e17ff06a718c7caf996d99 | 78 | py | Python | Week 1 - Not so-simple Hello World/AhmadHelloWorld.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 5 | 2021-01-19T00:31:22.000Z | 2021-03-05T02:31:10.000Z | Week 1 - Not so-simple Hello World/AhmadHelloWorld.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 34 | 2021-01-14T21:00:18.000Z | 2021-03-11T17:57:26.000Z | Week 1 - Not so-simple Hello World/AhmadHelloWorld.py | Jasleenk47/BeginnerRoom-2020 | 32903f6917a236fe685106c148b8531c62210f1f | [
"Unlicense"
] | 43 | 2021-01-14T20:40:47.000Z | 2021-03-11T02:29:30.000Z | print("Starter")
print("Ahmad")
print("Hello World")
print("Not so Simple") | 19.5 | 22 | 0.679487 |
ec98b4b077cf4947dcf9fd1c3260bf0978e03367 | 1,132 | py | Python | scripts/pipelines/training_pipeline_unsupervised.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | scripts/pipelines/training_pipeline_unsupervised.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | null | null | null | scripts/pipelines/training_pipeline_unsupervised.py | daniele21/Financial_Sentiment_Analysis | 3734733f2d1d291c81a6239de121edcce861b463 | [
"MIT"
] | 1 | 2021-08-18T01:40:56.000Z | 2021-08-18T01:40:56.000Z | import logging
from typing import Text, Dict
from scripts.data.metrics import report
from scripts.models.utils import init_model
from scripts.pipelines.preprocessing_pipeline import preprocessing_pipeline
from scripts.savings import save_model_data
logger = logging.getLogger()
| 29.025641 | 75 | 0.617491 |
ec9d7af9447adae432d2591c85c869e8a72c6c1c | 9,312 | py | Python | api/user_profile.py | Come-and-Unity/come-and-unity-backend | 68147cc83ff60f6d3d28e48518d299b17ddd7849 | [
"MIT"
] | null | null | null | api/user_profile.py | Come-and-Unity/come-and-unity-backend | 68147cc83ff60f6d3d28e48518d299b17ddd7849 | [
"MIT"
] | null | null | null | api/user_profile.py | Come-and-Unity/come-and-unity-backend | 68147cc83ff60f6d3d28e48518d299b17ddd7849 | [
"MIT"
] | null | null | null | """User profile resource view"""
from sqlalchemy.exc import IntegrityError
from flask_jwt_extended import decode_token, create_access_token
from sqlalchemy.orm import exc
from flask import jsonify, request, session, make_response
from flask_restful import Resource
from flask_api import status
from marshmallow import Va... | 38.8 | 117 | 0.601804 |
ec9ea6939fc606b51cb190fc22e15c9b0a31ddfd | 3,874 | py | Python | examples/storage_pools_store_serv.py | LaudateCorpus1/oneview-python | 8373b144f0774f6b2193fe5bafdd099d1d21796a | [
"Apache-2.0"
] | 18 | 2019-12-13T16:55:14.000Z | 2022-03-24T15:37:32.000Z | examples/storage_pools_store_serv.py | LaudateCorpus1/oneview-python | 8373b144f0774f6b2193fe5bafdd099d1d21796a | [
"Apache-2.0"
] | 55 | 2019-12-20T09:56:18.000Z | 2022-01-28T06:42:04.000Z | examples/storage_pools_store_serv.py | LaudateCorpus1/oneview-python | 8373b144f0774f6b2193fe5bafdd099d1d21796a | [
"Apache-2.0"
] | 33 | 2019-11-12T08:53:22.000Z | 2022-03-07T11:20:14.000Z | # -*- coding: utf-8 -*-
###
# (C) Copyright [2019] Hewlett Packard Enterprise Development LP
#
# 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
#... | 39.131313 | 83 | 0.706505 |
ec9f0f75b96512e7df10b3ca74612c5f875f6d81 | 13,083 | py | Python | intermezzo/__init__.py | imdaveho/intermezzo | 3fe4824a747face996e301ca5190caec0cb0a6fd | [
"MIT"
] | 8 | 2018-02-26T16:24:07.000Z | 2021-06-30T07:40:52.000Z | intermezzo/__init__.py | imdaveho/intermezzo | 3fe4824a747face996e301ca5190caec0cb0a6fd | [
"MIT"
] | null | null | null | intermezzo/__init__.py | imdaveho/intermezzo | 3fe4824a747face996e301ca5190caec0cb0a6fd | [
"MIT"
] | null | null | null | import os
import platform
import intermezzo
from ._ffi import ffi
PKGPATH = os.path.dirname(os.path.abspath(__file__))
OS = platform.system()
ARCH = platform.machine()
lib = None
# TODO: differentiate between 32-bit and 64-bit
if OS == 'Windows':
if ARCH in ("x86_64", "i386", "i686", "AMD64"):
lib = ffi.... | 28.628009 | 89 | 0.453566 |
ec9fbc1d2609eacbe802da9a1a1f249f370cdb29 | 29,862 | py | Python | helita/sim/rh.py | temcomp/helita | 33c71837f79cb2acb89144fcfb59a7ae84fe6db0 | [
"BSD-3-Clause"
] | 4 | 2017-06-14T14:43:18.000Z | 2021-01-14T15:34:32.000Z | helita/sim/rh.py | temcomp/helita | 33c71837f79cb2acb89144fcfb59a7ae84fe6db0 | [
"BSD-3-Clause"
] | 22 | 2017-06-29T18:32:51.000Z | 2021-06-29T13:18:34.000Z | helita/sim/rh.py | temcomp/helita | 33c71837f79cb2acb89144fcfb59a7ae84fe6db0 | [
"BSD-3-Clause"
] | 19 | 2017-05-23T15:36:29.000Z | 2021-11-23T06:51:44.000Z | """
Set of programs and tools to read the outputs from RH (Han's version)
"""
import os
import sys
import io
import xdrlib
import numpy as np
#############################################################################
# TOOLS
#############################################################################
def read... | 40.354054 | 82 | 0.529301 |
eca06ca9b72ec462fa07d2c3e98db099bce07186 | 8,754 | py | Python | HDRutils/merge.py | catchchaos/HDRutils-pip | 17c5bd72ea07b509a49721cb519ab7ac2db43118 | [
"MIT"
] | 2 | 2021-07-06T08:18:12.000Z | 2021-10-10T21:07:56.000Z | HDRutils/merge.py | gfxdisp/HDRutils | 17c5bd72ea07b509a49721cb519ab7ac2db43118 | [
"MIT"
] | null | null | null | HDRutils/merge.py | gfxdisp/HDRutils | 17c5bd72ea07b509a49721cb519ab7ac2db43118 | [
"MIT"
] | 2 | 2021-04-22T23:04:22.000Z | 2021-04-23T01:24:26.000Z | import logging, tqdm
import numpy as np
import rawpy
import colour_demosaicing as cd
import HDRutils.io as io
from HDRutils.utils import *
logger = logging.getLogger(__name__)
def merge(files, do_align=False, demosaic_first=True, normalize=False, color_space='sRGB',
wb=None, saturation_percent=0.98, black_leve... | 39.432432 | 94 | 0.701965 |
eca12c92afe9bb9f72baf01b8ef92944250c90b8 | 4,940 | py | Python | mbv1/test.py | klightz/splitting | 6458fd1bed24640e286f2370e62fe700d01986e5 | [
"MIT"
] | 9 | 2019-10-30T07:51:52.000Z | 2021-05-12T02:06:35.000Z | mbv1/test.py | klightz/splitting | 6458fd1bed24640e286f2370e62fe700d01986e5 | [
"MIT"
] | 1 | 2021-09-12T04:56:22.000Z | 2021-09-17T05:01:45.000Z | mbv1/test.py | klightz/splitting | 6458fd1bed24640e286f2370e62fe700d01986e5 | [
"MIT"
] | 1 | 2019-10-30T20:57:25.000Z | 2019-10-30T20:57:25.000Z | import pickle
import numpy as np
import sys
eigen(sys.argv[1], 1, sys.argv[2])
| 33.605442 | 185 | 0.442713 |
eca154158e4df894a5a4a74c08fbf6902322d65a | 829 | py | Python | ex088.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | 1 | 2021-11-23T21:41:25.000Z | 2021-11-23T21:41:25.000Z | ex088.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | ex088.py | nascimentobrenda24/PythonExercises | 2055f42a0454ae25cba6a6457c85822eaad2df01 | [
"MIT"
] | null | null | null | # Faa um programa que ajude um jogador da MEGA SENA a criar palpites. O programa vai perguntar quantos jogos sero
# gerados e vai sortear 6 nmeros entre 1 e 60 para cada jogo, cadastrando tudo em uma lista composta.
from random import randint
games = []
temp = []
print('-'*30)
print(' JOGA NA MEGA SENA ')... | 20.725 | 115 | 0.568154 |
eca3118b06e8af317d443fe1f363151145ad65a8 | 770 | py | Python | src/__init__.py | UMCUGenetics/VUSualizer | 7adf00a45f1586cbfc588df7cd5b3629c6700605 | [
"MIT"
] | null | null | null | src/__init__.py | UMCUGenetics/VUSualizer | 7adf00a45f1586cbfc588df7cd5b3629c6700605 | [
"MIT"
] | 5 | 2020-06-18T16:44:14.000Z | 2022-03-30T07:02:08.000Z | src/__init__.py | UMCUGenetics/VUSualizer | 7adf00a45f1586cbfc588df7cd5b3629c6700605 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_pymongo import PyMongo
from flask_admin import Admin
#from flask_mongoengine import MongoEngine
from flask_login import LoginManager
# flask
app = Flask(__name__)
app.config.from_pyfile("config.py")
# mongo db
mongo = PyMongo(app)
#db = MongoEngine()
#db.init_app(app)
# login manag... | 24.0625 | 71 | 0.784416 |
eca3a791b5ba3aeb2559468375ed11393b715dab | 75 | py | Python | tests/t37.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | 3 | 2019-08-21T22:01:35.000Z | 2021-07-25T00:21:28.000Z | tests/t37.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | tests/t37.py | jplevyak/pyc | 9f4bc49be78ba29427841460945ce63826fcd857 | [
"BSD-3-Clause"
] | null | null | null | a = (1, "asdf", 2.0)
a = (2, "fdsa", 3.0)
print a[0]
print a[1]
print a[2]
| 12.5 | 20 | 0.493333 |
eca3badb2edcb11210236b0e654dfdf450f51092 | 62 | py | Python | django_mako_plus/models.py | wynnw/django-mako-plus | 8a33eb3911fc84ddddd590152f475fd78c6a501f | [
"Apache-2.0"
] | 79 | 2015-01-21T23:29:16.000Z | 2021-08-22T03:38:20.000Z | django_mako_plus/models.py | wynnw/django-mako-plus | 8a33eb3911fc84ddddd590152f475fd78c6a501f | [
"Apache-2.0"
] | 34 | 2015-01-08T03:11:07.000Z | 2021-09-07T15:04:43.000Z | django_mako_plus/models.py | wynnw/django-mako-plus | 8a33eb3911fc84ddddd590152f475fd78c6a501f | [
"Apache-2.0"
] | 23 | 2015-01-08T03:11:26.000Z | 2021-05-22T11:12:24.000Z | # this app has no models; file here just to conform to Django
| 31 | 61 | 0.758065 |
eca5d1f5d617d049e1729b1c1c9b71a87d2f065e | 5,377 | py | Python | template_flask/funcs.py | zacharybeebe/template_flask | 0bae0a5211a12902bf4a60e2307c7f218a016843 | [
"MIT"
] | null | null | null | template_flask/funcs.py | zacharybeebe/template_flask | 0bae0a5211a12902bf4a60e2307c7f218a016843 | [
"MIT"
] | null | null | null | template_flask/funcs.py | zacharybeebe/template_flask | 0bae0a5211a12902bf4a60e2307c7f218a016843 | [
"MIT"
] | null | null | null | import os
import site
import venv
import subprocess
import time
from random import choice, randrange
from .constants import *
if __name__ == '__main__':
print(get_bootstrap_path())
| 30.902299 | 109 | 0.670634 |
eca5d9d042f98585d68b88b754a757686081c4da | 624 | py | Python | janny/auth.py | icyphox/janny | 0d6df5bfac2c32e7db092d8ed4ecd19811ef25f3 | [
"MIT"
] | 5 | 2021-03-07T16:20:51.000Z | 2021-05-05T03:48:06.000Z | janny/auth.py | icyphox/janny | 0d6df5bfac2c32e7db092d8ed4ecd19811ef25f3 | [
"MIT"
] | null | null | null | janny/auth.py | icyphox/janny | 0d6df5bfac2c32e7db092d8ed4ecd19811ef25f3 | [
"MIT"
] | null | null | null | import requests
import os
from janny.config import logger
SESSION = kube_auth()
| 26 | 79 | 0.663462 |
eca6a81e5b7d21c327f69df655f7f4493dd305bd | 1,161 | py | Python | application/utils/__init__.py | fajaragungpramana/backend-warungku-deprecated | e1378781550c61b8946908eefbab6e9ffec61195 | [
"Apache-2.0"
] | 1 | 2021-01-18T07:39:44.000Z | 2021-01-18T07:39:44.000Z | application/utils/__init__.py | fajaragungpramana/backend-warungku-deprecated | e1378781550c61b8946908eefbab6e9ffec61195 | [
"Apache-2.0"
] | null | null | null | application/utils/__init__.py | fajaragungpramana/backend-warungku-deprecated | e1378781550c61b8946908eefbab6e9ffec61195 | [
"Apache-2.0"
] | null | null | null | import os
import uuid
import requests
from datetime import datetime
from dotenv import load_dotenv
from flask import jsonify, make_response, request
# get .env path and set it
load_dotenv('../backend-warungku/.env')
# This function to get .env variable configuration
# @params var - fill with the same variable name ... | 26.386364 | 70 | 0.732127 |
eca837da1aa00293c2c818a1764c3d6a8936cfb7 | 10,066 | py | Python | src/demo.py | diganthp/pi-vision | 224d1f9f1267bdc81c5f27980f8dbb2581646a58 | [
"MIT"
] | 12 | 2018-06-11T07:40:36.000Z | 2022-01-22T14:49:59.000Z | src/demo.py | diganthp/pi-vision | 224d1f9f1267bdc81c5f27980f8dbb2581646a58 | [
"MIT"
] | null | null | null | src/demo.py | diganthp/pi-vision | 224d1f9f1267bdc81c5f27980f8dbb2581646a58 | [
"MIT"
] | 1 | 2022-03-10T09:46:14.000Z | 2022-03-10T09:46:14.000Z | # Author: Bichen Wu (bichen@berkeley.edu) 08/25/2016
"""SqueezeDet Demo.
In image detection mode, for a given image, detect objects and draw bounding
boxes around them. In video detection mode, perform real-time detection on the
video stream.
"""
from __future__ import absolute_import
from __future__ import division... | 34.122034 | 141 | 0.595967 |
eca87f291404257415a5f11121bf81a21f1f2398 | 878 | py | Python | singleton.py | soaringfreely/blog | 7a3492b67c5b12038d22f3d2bd51622b4a003383 | [
"Apache-2.0"
] | 1 | 2019-11-08T10:12:00.000Z | 2019-11-08T10:12:00.000Z | singleton.py | soaringfreely/blog | 7a3492b67c5b12038d22f3d2bd51622b4a003383 | [
"Apache-2.0"
] | null | null | null | singleton.py | soaringfreely/blog | 7a3492b67c5b12038d22f3d2bd51622b4a003383 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Administrator'
# class Foo(object):
# instance = None
#
# def __init__(self):
# self.name = 'alex'
# @classmethod
# def get_instance(cls):
# if Foo.instance:
# return Foo.instance
# else:
# Foo.instance = Foo()
# return Foo.insta... | 19.086957 | 64 | 0.539863 |
eca94fe8ae07714a0f7de59565d5dcd6794148bd | 941 | py | Python | src/ner/crf/predict.py | amit-kolluri/AI-underwriting | 2f0973404a5e7f670d60489c8bed9d95744b1113 | [
"MIT"
] | null | null | null | src/ner/crf/predict.py | amit-kolluri/AI-underwriting | 2f0973404a5e7f670d60489c8bed9d95744b1113 | [
"MIT"
] | null | null | null | src/ner/crf/predict.py | amit-kolluri/AI-underwriting | 2f0973404a5e7f670d60489c8bed9d95744b1113 | [
"MIT"
] | null | null | null | from .helper import convert_text
from .helper import make_prediction
from .helper import sent2features
import joblib
if __name__ == '__main__':
text = text = 'Sukanya, Rajib and Naba are my good friends. Sukanya is getting married next year. Marriage is a ' \
'big step in ones life. \nIt is bot... | 39.208333 | 125 | 0.698193 |
eca9859fa3d25a11a684b93a10e2c19792721a46 | 2,916 | py | Python | datatracker/file.py | TarjinderSingh/datatracker | d31b3330c52abfade97a7458d18a0e4d15347864 | [
"MIT"
] | 3 | 2020-10-14T20:07:43.000Z | 2020-10-29T14:02:44.000Z | datatracker/file.py | TarjinderSingh/datatracker | d31b3330c52abfade97a7458d18a0e4d15347864 | [
"MIT"
] | null | null | null | datatracker/file.py | TarjinderSingh/datatracker | d31b3330c52abfade97a7458d18a0e4d15347864 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
from datetime import date
import subprocess
from logzero import logger
from .utils import is_cloud_path, path_exists | 35.560976 | 117 | 0.587106 |
ecab9fb2945c739883789da42f11d24a4d408c83 | 516 | py | Python | tarefa013/02/ClasseTeste.py | MateSilver/cs-2021-1 | eedb924508ecf47297ceeda3812039401bd325a4 | [
"MIT"
] | null | null | null | tarefa013/02/ClasseTeste.py | MateSilver/cs-2021-1 | eedb924508ecf47297ceeda3812039401bd325a4 | [
"MIT"
] | 1 | 2022-01-22T17:41:56.000Z | 2022-01-22T17:41:56.000Z | tarefa013/02/ClasseTeste.py | MateSilver/cs-2021-1 | eedb924508ecf47297ceeda3812039401bd325a4 | [
"MIT"
] | null | null | null | import Cavalo, Cachorro, Preguica
animais = AnimalTeste()
animais.emitesom() | 34.4 | 86 | 0.664729 |
ecabfbcd726c70a0b71c63343bfbb3b71026c1fd | 606 | py | Python | text data gathering and cleaning/1. pnva: medical emergencies entity/script.py | enlighter/scripts | bf7ab91563188231df982020982dd1d41ef0abf0 | [
"MIT"
] | null | null | null | text data gathering and cleaning/1. pnva: medical emergencies entity/script.py | enlighter/scripts | bf7ab91563188231df982020982dd1d41ef0abf0 | [
"MIT"
] | null | null | null | text data gathering and cleaning/1. pnva: medical emergencies entity/script.py | enlighter/scripts | bf7ab91563188231df982020982dd1d41ef0abf0 | [
"MIT"
] | null | null | null | import json
from pprintpp import pprint
with open('terms.txt') as terms_file:
lines = terms_file.readlines()
main_list = list()
current = dict()
for term in lines:
if 'head:' in term:
if current:
main_list.append(current)
term = term.strip()
term = term.strip('head:')
term = term.strip()
current = dic... | 19.548387 | 41 | 0.681518 |
ecae0aa4c5127e932d611672cbee45f11d930aca | 48 | py | Python | __init__.py | fonsecag/Cluster_tools | a0bb250e49f185aea7632dbf0152319074fce038 | [
"MIT"
] | null | null | null | __init__.py | fonsecag/Cluster_tools | a0bb250e49f185aea7632dbf0152319074fce038 | [
"MIT"
] | null | null | null | __init__.py | fonsecag/Cluster_tools | a0bb250e49f185aea7632dbf0152319074fce038 | [
"MIT"
] | null | null | null | from run import MainHandler
__version__ = '0.1' | 16 | 27 | 0.770833 |
ecb05e91115059f965fc6b846019742a4c9dcff5 | 561 | py | Python | tests/test-matplotlib2.py | 6tudent/pyemf | 830e61008af8acf1830e5c91dc876313a771afdb | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 16 | 2016-01-22T01:40:10.000Z | 2021-07-22T02:19:24.000Z | tests/test-matplotlib2.py | 6tudent/pyemf | 830e61008af8acf1830e5c91dc876313a771afdb | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 1 | 2017-11-07T11:53:14.000Z | 2017-11-07T11:53:14.000Z | tests/test-matplotlib2.py | jeremysanders/pyemf | 830e61008af8acf1830e5c91dc876313a771afdb | [
"BSD-3-Clause-No-Nuclear-Warranty"
] | 11 | 2017-02-28T21:02:26.000Z | 2020-10-21T19:23:29.000Z | #!/usr/bin/python
useEMF=True
import sys
try:
import matplotlib
except:
print("Requires matplotlib from http://matplotlib.sourceforge.net.")
sys.exit()
if useEMF:
matplotlib.use('EMF')
ext=".emf"
else:
matplotlib.use('Agg')
ext=".png"
from pylab import *
semilogy([12,49,78,42,.15,2... | 18.7 | 72 | 0.639929 |
ecb252d17aef08a5b8cd20fdb4e94a59ef4d37a0 | 11,253 | py | Python | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 7 | 2016-03-07T02:07:21.000Z | 2022-01-21T02:22:41.000Z | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | null | null | null | temboo/core/choreography.py | jordanemedlock/psychtruths | 52e09033ade9608bd5143129f8a1bfac22d634dd | [
"Apache-2.0"
] | 8 | 2016-06-14T06:01:11.000Z | 2020-04-22T09:21:44.000Z | ###############################################################################
#
# temboo.core.choreography.Choreography
# temboo.core.choreography.InputSet
# temboo.coreo.choreography.ResultSet
# temboo.core.choreography.ChoreographyExecution
#
# Interface classes for calling and manipulating choreographies.
#
# Pyth... | 33.691617 | 122 | 0.630143 |
ecb4a4cc91c249110abcd8cdf99331da552cb920 | 151 | py | Python | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ex032.py | ranierelm/Python_exercise | db143d2dc019bbd479397dc64efbe4fe0aa1abab | [
"MIT"
] | null | null | null | ano = int(input('Ano que voc nasceu: '))
if ano%4==0 and ano%100!=0 or ano%400==0:
print('Ano Bissexto')
else:
print('No foi Bissexto')
| 25.166667 | 42 | 0.609272 |
ecb7d2046f310270d7c5a8c73fc13f3483f7aa66 | 2,346 | py | Python | ansible-devel/test/integration/targets/module_utils_urls/library/test_peercert.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/module_utils_urls/library/test_peercert.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | ansible-devel/test/integration/targets/module_utils_urls/library/test_peercert.py | satishcarya/ansible | ed091e174c26316f621ac16344a95c99f56bdc43 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Copyright: (c) 2020, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
DOCUMENTATION = r'''
---
module: test_perrcert
short_description: Test getting t... | 23.69697 | 92 | 0.611679 |
ecb9021ccce326064ad6cd90a5a7d0d09f378eb9 | 326 | py | Python | v0.1/test103.py | strickyak/pythonine | 7428f4a625c228ebcc582cad4f7f057f625a0561 | [
"MIT"
] | null | null | null | v0.1/test103.py | strickyak/pythonine | 7428f4a625c228ebcc582cad4f7f057f625a0561 | [
"MIT"
] | null | null | null | v0.1/test103.py | strickyak/pythonine | 7428f4a625c228ebcc582cad4f7f057f625a0561 | [
"MIT"
] | null | null | null |
assert Foo().bar(3) == 63
| 18.111111 | 44 | 0.567485 |
ecb9492e284d248b37204668f8c618b1b1c14ea1 | 15,164 | py | Python | libconf.py | ZhouLiHai/QMonitor | ca18fa98ca82d8c7f0fb5594f426a93238b42b31 | [
"Apache-2.0"
] | 1 | 2017-10-11T03:18:25.000Z | 2017-10-11T03:18:25.000Z | libconf.py | ZhouLiHai/QMonitor | ca18fa98ca82d8c7f0fb5594f426a93238b42b31 | [
"Apache-2.0"
] | null | null | null | libconf.py | ZhouLiHai/QMonitor | ca18fa98ca82d8c7f0fb5594f426a93238b42b31 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
import sys
import os
import codecs
import io
import re
ESCAPE_SEQUENCE_RE = re.compile(r'''
( \\x.. # 2-digit hex escapes
| \\[\\'"abfnrtv] # Single-character escapes
)''', re.UNICODE | re.VERBOS... | 31.591667 | 80 | 0.530401 |
ecb9df22ecc546090ba5729a9cfb8d1724772548 | 255 | py | Python | db/scripts/script_select/select_efetividades.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | db/scripts/script_select/select_efetividades.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | db/scripts/script_select/select_efetividades.py | LeandroLFE/capmon | 9d1200301628ea4fec0e8ed09d5e9b67a426d923 | [
"MIT"
] | null | null | null | # Requer atributo e atributo_comp = {"atributo": int (id_atributo), "atributo_comp" : int (id_atributo)}
select_efetividades = lambda : """
Select fator
FROM efetividades
WHERE atributo = :atributo
AND atributo_comp = :atributo_comp
""" | 36.428571 | 104 | 0.701961 |
ecbcb4d3db5c5ae159a2033a31cd652d860521e9 | 1,200 | py | Python | src/parliamentbg/parliamentbg/pipelines.py | Georgitanev/python38_proj_adata | 194cbf490c09f68b6760b79b47c1a307efef23e7 | [
"MIT"
] | null | null | null | src/parliamentbg/parliamentbg/pipelines.py | Georgitanev/python38_proj_adata | 194cbf490c09f68b6760b79b47c1a307efef23e7 | [
"MIT"
] | null | null | null | src/parliamentbg/parliamentbg/pipelines.py | Georgitanev/python38_proj_adata | 194cbf490c09f68b6760b79b47c1a307efef23e7 | [
"MIT"
] | null | null | null | from sqlalchemy.orm import sessionmaker
from .models import Parliament
from .models import create_table
from .models import db_connect
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for ... | 25.531915 | 73 | 0.640833 |
ecbd00df55dd0f46110462d36a3b568682103e2d | 2,103 | py | Python | week_11_DS_N_Algorithm/05_Algorithm_II/03_Graph_Algorithm_Basics/실습1_디지털 세계 토지조사.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | 1 | 2021-11-03T18:27:37.000Z | 2021-11-03T18:27:37.000Z | week_11_DS_N_Algorithm/05_Algorithm_II/03_Graph_Algorithm_Basics/실습1_디지털 세계 토지조사.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | null | null | null | week_11_DS_N_Algorithm/05_Algorithm_II/03_Graph_Algorithm_Basics/실습1_디지털 세계 토지조사.py | bky373/elice-racer-1st | ddea8079a1083796ed4f59c38650ff8f4333e6ef | [
"FSFAP"
] | 1 | 2021-02-10T15:21:53.000Z | 2021-02-10T15:21:53.000Z | '''
.
.
, 1, 0 .
1 ,,, .
.
.
1
, .
2
.
. . . 1 , 0 .
1 ,,, .
. ( , ) .
7
0110100
0110101
1110101
0000111
0100000
0111110
0111000
(3, [7, 8, 9])
'''
def cadastralSurvey(pMap):
'''
, (int) ... | 19.293578 | 92 | 0.546362 |
ecbe4dc045da06ab0458e276ebc2ad339881cda1 | 3,438 | py | Python | tests/riscv/state_transition/state_transition_partial_force.py | jeremybennett/force-riscv | a5222a3b3fa8a0b9464204056ddca148f16b7e49 | [
"Apache-2.0"
] | null | null | null | tests/riscv/state_transition/state_transition_partial_force.py | jeremybennett/force-riscv | a5222a3b3fa8a0b9464204056ddca148f16b7e49 | [
"Apache-2.0"
] | null | null | null | tests/riscv/state_transition/state_transition_partial_force.py | jeremybennett/force-riscv | a5222a3b3fa8a0b9464204056ddca148f16b7e49 | [
"Apache-2.0"
] | 1 | 2020-06-17T09:37:45.000Z | 2020-06-17T09:37:45.000Z | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | 44.076923 | 189 | 0.767597 |
ecbe7e1a584fbee3b8205e5ee45ca76f05093ca1 | 2,519 | py | Python | examples/PIMA/pima_analyst.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | 19 | 2021-02-24T12:28:04.000Z | 2021-10-06T11:55:46.000Z | examples/PIMA/pima_analyst.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | 2 | 2021-08-11T01:25:14.000Z | 2021-08-11T01:26:32.000Z | examples/PIMA/pima_analyst.py | kamathhrishi/GreyNSights | 9a79b8ed04ccb4a9dd538c425ed6da00ebd1b00f | [
"MIT"
] | null | null | null | import numpy as np
from analyst import Analyst, Command, DataSource, DataWorker, Pointer
from frameworks import framework
frameworks = framework()
pandas = frameworks.pandas
identity = Analyst("Alice", port=65442, host="127.0.0.1")
worker = DataWorker(port=65441, host="127.0.0.1")
dataset = DataSource(identity, work... | 23.990476 | 87 | 0.654625 |
ecbf53d656d2342d28451077ce26fff0eeab38c2 | 1,882 | py | Python | Code/pipeline_intra.py | meet-eu-21/Team-SB3 | 02cd16425d2b8acecdaada8bc7ed094e6d59558d | [
"MIT"
] | null | null | null | Code/pipeline_intra.py | meet-eu-21/Team-SB3 | 02cd16425d2b8acecdaada8bc7ed094e6d59558d | [
"MIT"
] | null | null | null | Code/pipeline_intra.py | meet-eu-21/Team-SB3 | 02cd16425d2b8acecdaada8bc7ed094e6d59558d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 9 09:58:58 2021
@author: apauron
"""
import get_files_cluster ## To get the filename
import Compartments_SB3_cluster
"""
A pipeline for generating intrachromosomal compartments in the cluster.
Keyword arguments :
None
Retur... | 30.354839 | 121 | 0.723167 |
ecc1c426d61d7af1dd39950d58d0ecfb8d725105 | 3,446 | py | Python | gnuradio-3.7.13.4/gr-digital/python/digital/qa_ofdm_cyclic_prefixer.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | 1 | 2021-03-09T07:32:37.000Z | 2021-03-09T07:32:37.000Z | gnuradio-3.7.13.4/gr-digital/python/digital/qa_ofdm_cyclic_prefixer.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | gnuradio-3.7.13.4/gr-digital/python/digital/qa_ofdm_cyclic_prefixer.py | v1259397/cosmic-gnuradio | 64c149520ac6a7d44179c3f4a38f38add45dd5dc | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2007,2010,2011,2013,2014 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, ... | 38.719101 | 114 | 0.623331 |
ecc1ed8079e3bba5c3fca50dc3bf7933932611ec | 3,261 | py | Python | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | 3 | 2020-10-21T19:18:58.000Z | 2020-10-22T06:13:29.000Z | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | null | null | null | JAPL/meta/statement.py | japl-lang/japl-python | fb9a769d07f1528b846a0ccefd3e782ab3d9b473 | [
"Apache-2.0"
] | null | null | null | from abc import ABC, abstractmethod
from dataclasses import dataclass
from .expression import Expression, Variable
from .tokenobject import Token
from typing import List, Any
| 18.741379 | 54 | 0.644894 |
ecc1f63c991bc4b44c072cbaba286f4cc26de183 | 1,159 | py | Python | test/test_torsion.py | arvigj/polyfem-python | 23fdd3cc3c913bfef7330e8852b6f906080e8c71 | [
"MIT"
] | 11 | 2019-03-20T15:22:17.000Z | 2022-03-25T10:33:17.000Z | test/test_torsion.py | arvigj/polyfem-python | 23fdd3cc3c913bfef7330e8852b6f906080e8c71 | [
"MIT"
] | 2 | 2020-08-17T14:14:01.000Z | 2021-03-23T18:11:07.000Z | test/test_torsion.py | arvigj/polyfem-python | 23fdd3cc3c913bfef7330e8852b6f906080e8c71 | [
"MIT"
] | 6 | 2020-05-19T16:04:28.000Z | 2021-09-07T19:17:50.000Z | import unittest
import polyfempy as pf
# from .utils import plot
import os
import platform
if __name__ == '__main__':
unittest.main()
| 29.717949 | 116 | 0.678171 |
ecc2d80518575fbe1f7fa8956d000da5df061326 | 752 | py | Python | code/sample_sign_verify_detached.py | nomhoi/pycades_build | 8e2e58fdf0cc3404d3ae90a4adaab97f4f4d9be3 | [
"MIT"
] | 3 | 2021-05-13T11:34:20.000Z | 2022-01-19T17:08:24.000Z | code/sample_sign_verify_detached.py | nomhoi/pycades_build | 8e2e58fdf0cc3404d3ae90a4adaab97f4f4d9be3 | [
"MIT"
] | 1 | 2020-12-19T13:00:32.000Z | 2020-12-20T03:16:43.000Z | code/sample_sign_verify_detached.py | nomhoi/pycades_build | 8e2e58fdf0cc3404d3ae90a4adaab97f4f4d9be3 | [
"MIT"
] | null | null | null | import pycades
store = pycades.Store()
store.Open(pycades.CADESCOM_CONTAINER_STORE, pycades.CAPICOM_MY_STORE,
pycades.CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED)
certs = store.Certificates
assert(certs.Count != 0), "Certificates with private key not found"
signer = pycades.Signer()
signer.Certificate = certs.Item(... | 28.923077 | 74 | 0.787234 |
ecc32d025cbb218bc4131dc3151cdd3533bb31f0 | 4,122 | py | Python | trove/tests/unittests/guestagent/test_mongodb_manager.py | denismakogon/trove | 753f80d4c833efbd83eb184b10aba0d18babe34b | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/guestagent/test_mongodb_manager.py | denismakogon/trove | 753f80d4c833efbd83eb184b10aba0d18babe34b | [
"Apache-2.0"
] | null | null | null | trove/tests/unittests/guestagent/test_mongodb_manager.py | denismakogon/trove | 753f80d4c833efbd83eb184b10aba0d18babe34b | [
"Apache-2.0"
] | null | null | null | # Copyright 2012 OpenStack Foundation
#
# 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 l... | 42.9375 | 78 | 0.694808 |
ecc35a532a3f26436634c487e5568644f8258c16 | 6,219 | py | Python | apps/breakfast/tools/Life/tools/cx/messages/CxDownload.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | null | null | null | apps/breakfast/tools/Life/tools/cx/messages/CxDownload.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | null | null | null | apps/breakfast/tools/Life/tools/cx/messages/CxDownload.py | mtaghiza/tinyos-main-1 | cac075f7eae46c6a37409e66137a78b9bc3a64b1 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T14:31:18.000Z | 2022-02-21T14:31:18.000Z | #
# This class is automatically generated by mig. DO NOT EDIT THIS FILE.
# This class implements a Python interface to the 'CxDownload'
# message type.
#
import tinyos.message.Message
# The default size of this message type in bytes.
DEFAULT_MESSAGE_SIZE = 9
# The Active Message type associated with this message.
AM... | 26.130252 | 96 | 0.586429 |
ecc45f44644fd0ea60f0ea35ec46ed2f1b8b0a35 | 2,144 | py | Python | epoch_generate_particles_files/save_data.py | georgeholt1/epoch-generate-particles-files | c4810712e0b616545409829a2e6ab1364f468b18 | [
"MIT"
] | null | null | null | epoch_generate_particles_files/save_data.py | georgeholt1/epoch-generate-particles-files | c4810712e0b616545409829a2e6ab1364f468b18 | [
"MIT"
] | null | null | null | epoch_generate_particles_files/save_data.py | georgeholt1/epoch-generate-particles-files | c4810712e0b616545409829a2e6ab1364f468b18 | [
"MIT"
] | null | null | null | # Author: George K. Holt
# License: MIT
# Version: 0.1
"""
Part of EPOCH Generate Particles Files.
Functions to save the generated data.
"""
import numpy as np
import os
def save_1d(x_list, w_list, out_dir):
'''Save 1D particle data.
Parameters
----------
x_list : list
List of x-coordinat... | 28.586667 | 62 | 0.593284 |
ecc512fb53d557df78232b6d617a16ceab1491a6 | 25,721 | py | Python | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 3 | 2019-04-01T11:03:04.000Z | 2019-12-31T02:17:15.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-04-15T18:46:45.000Z | 2021-04-15T18:46:45.000Z | Keras_tensorflow_nightly/source2.7/tensorflow/tools/api/generator/api/__init__.py | Con-Mi/lambda-packs | b23a8464abdd88050b83310e1d0e99c54dac28ab | [
"MIT"
] | 1 | 2021-09-23T13:43:07.000Z | 2021-09-23T13:43:07.000Z | """Imports for Python API.
This file is MACHINE GENERATED! Do not edit.
Generated by: tensorflow/tools/api/generator/create_python_api.py script.
"""
from tensorflow.core.framework.attr_value_pb2 import AttrValue
from tensorflow.core.framework.attr_value_pb2 import NameAttrList
from tensorflow.core.framework.graph_pb2... | 46.427798 | 129 | 0.881498 |
ecc6f8b7b45c7aedcb62b907b076ffbc5f181b1a | 1,234 | py | Python | tests/test_commands.py | kreyoo/poetry-types | 0dba1ab51cf3ed58bc7b615251c14760757397b4 | [
"MIT"
] | 1 | 2022-01-05T10:13:27.000Z | 2022-01-05T10:13:27.000Z | tests/test_commands.py | kreyoo/poetry-types | 0dba1ab51cf3ed58bc7b615251c14760757397b4 | [
"MIT"
] | null | null | null | tests/test_commands.py | kreyoo/poetry-types | 0dba1ab51cf3ed58bc7b615251c14760757397b4 | [
"MIT"
] | null | null | null | from __future__ import annotations
import subprocess
import pytest
from conftest import CustomTOMLFile
| 38.5625 | 88 | 0.691248 |
ecc8cd420c04559c960ad65bf06dd4452cd4216b | 3,964 | py | Python | test/ode/conftest.py | jzitelli/poolvr.py | add96ee3b68f07379586287345203b6e540cbd25 | [
"MIT"
] | 12 | 2017-01-28T18:17:33.000Z | 2021-03-02T14:30:56.000Z | test/ode/conftest.py | jzitelli/poolvr.py | add96ee3b68f07379586287345203b6e540cbd25 | [
"MIT"
] | null | null | null | test/ode/conftest.py | jzitelli/poolvr.py | add96ee3b68f07379586287345203b6e540cbd25 | [
"MIT"
] | 5 | 2018-07-03T10:31:09.000Z | 2020-11-06T18:44:31.000Z | import logging
_logger = logging.getLogger(__name__)
import os.path
from sys import stdout
import numpy as np
import pytest
| 39.247525 | 110 | 0.645055 |
ecc934785403598cc6ef446ede8bf9df72cbca88 | 374 | py | Python | Day_05/day_5_OOP.py | SidhuK/100_days_of_Code | af2701613a64f79d386a2061b93f7db79ed077ab | [
"MIT"
] | 2 | 2022-03-10T11:19:58.000Z | 2022-03-22T17:08:35.000Z | Day_05/day_5_OOP.py | SidhuK/100_days_of_Code | af2701613a64f79d386a2061b93f7db79ed077ab | [
"MIT"
] | null | null | null | Day_05/day_5_OOP.py | SidhuK/100_days_of_Code | af2701613a64f79d386a2061b93f7db79ed077ab | [
"MIT"
] | null | null | null | from turtle import Turtle, Screen
import prettytable
timmy = Turtle()
print(timmy)
timmy.shape("turtle")
timmy.color("coral")
timmy.forward(100)
# turtle has certain attributes as an object
# use object.attribute to get it
my_screen = Screen()
print(my_screen.canvheight)
# data associated with object, like functi... | 15.583333 | 45 | 0.76738 |
ecc9f77a2b830f5a3ea187989113c93ae74ed387 | 2,964 | py | Python | ac2/dev/dummydata.py | schnabel/audiocontrol2 | baee6def6f6d25b8da1bcdacb6b6b6714aafce33 | [
"MIT"
] | 36 | 2020-01-10T23:59:03.000Z | 2022-03-28T07:04:16.000Z | ac2/dev/dummydata.py | schnabel/audiocontrol2 | baee6def6f6d25b8da1bcdacb6b6b6714aafce33 | [
"MIT"
] | 22 | 2019-11-04T05:46:52.000Z | 2022-03-22T08:18:59.000Z | ac2/dev/dummydata.py | schnabel/audiocontrol2 | baee6def6f6d25b8da1bcdacb6b6b6714aafce33 | [
"MIT"
] | 16 | 2020-06-12T16:34:51.000Z | 2022-01-23T17:24:11.000Z | '''
Copyright (c) 2018 Modul 9/HiFiBerry
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | 35.710843 | 94 | 0.619096 |
eccd1406b1b9ce525f46771e9a8870698dd7541f | 2,689 | py | Python | test/visualize_ply.py | shamitlal/convolutional_occupancy_networks | 1a5c9fc92ddbd38fc4da46f700528d818532aa6a | [
"MIT"
] | null | null | null | test/visualize_ply.py | shamitlal/convolutional_occupancy_networks | 1a5c9fc92ddbd38fc4da46f700528d818532aa6a | [
"MIT"
] | null | null | null | test/visualize_ply.py | shamitlal/convolutional_occupancy_networks | 1a5c9fc92ddbd38fc4da46f700528d818532aa6a | [
"MIT"
] | null | null | null | import numpy as np
import open3d as o3d
import pickle
import torch
import ipdb
st = ipdb.set_trace
mesh_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(
size=1, origin=[0, 0, 0])
pcd_list = [mesh_frame]
# for i in range(10):
# path = f"/Users/shamitlal/Desktop/temp/convocc/pointcloud_0{i}.npz"... | 30.556818 | 93 | 0.661584 |
eccef6bded1741d3c12a733e6bcf87a24327fee5 | 12,466 | py | Python | lib/image.py | dn480000/img2palette | 8170a2580af5b4e6da79f61e580acdd935209167 | [
"Apache-2.0"
] | null | null | null | lib/image.py | dn480000/img2palette | 8170a2580af5b4e6da79f61e580acdd935209167 | [
"Apache-2.0"
] | 1 | 2022-03-12T00:09:38.000Z | 2022-03-12T00:09:38.000Z | lib/image.py | dn480000/img2palette | 8170a2580af5b4e6da79f61e580acdd935209167 | [
"Apache-2.0"
] | null | null | null | """
Helper functions for image processing
The color space conversion functions are modified from functions of the
Python package scikit-image, https://github.com/scikit-image/scikit-image.
scikit-image has the following license.
Copyright (C) 2019, the scikit-image team
All rights reserved.
Redistribution and use in... | 23.927063 | 86 | 0.603963 |
eccf618df223cb69aa328dddc3b78dcca7aca4f0 | 1,140 | py | Python | desicos/conecylDB/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-22T22:15:24.000Z | 2020-10-22T22:15:24.000Z | desicos/conecylDB/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 1 | 2020-10-09T12:42:02.000Z | 2020-10-09T12:42:02.000Z | desicos/conecylDB/__init__.py | saullocastro/desicos | 922db8ac4fb0fb4d09df18ce2a14011f207f6fa8 | [
"BSD-3-Clause"
] | 2 | 2020-07-14T07:45:31.000Z | 2020-12-29T00:22:41.000Z | r"""
===================================================
Cone / Cylinder DataBase (:mod:`desicos.conecylDB`)
===================================================
.. currentmodule:: desicos.conecylDB
The ``desicos.conecylDB`` module includes all the information about cones
and cylinders required to reproduce structures... | 27.804878 | 74 | 0.698246 |
eccfeaf2041f345e5a705c0e8d92b182cca682cd | 14,744 | py | Python | atlasview/atlasview.py | GaelleChapuis/iblapps | edfe7368b45480ce4a2307dd5d80ec2a38bb084d | [
"MIT"
] | null | null | null | atlasview/atlasview.py | GaelleChapuis/iblapps | edfe7368b45480ce4a2307dd5d80ec2a38bb084d | [
"MIT"
] | null | null | null | atlasview/atlasview.py | GaelleChapuis/iblapps | edfe7368b45480ce4a2307dd5d80ec2a38bb084d | [
"MIT"
] | null | null | null | """
TopView is the main Widget with the related ControllerTopView Class
There are several SliceView windows (sagittal, coronal, possibly tilted etc...) that each have
a SliceController object
The underlying data model object is an ibllib.atlas.AllenAtlas object
TopView(QMainWindow)
ControllerTopView(PgImageCon... | 39.74124 | 98 | 0.637276 |
ecd0c0dcad50d10abf1d58bec112de354ec1a455 | 1,420 | py | Python | multi_tenant/tenant/patch/contenttype.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | 1 | 2022-01-26T06:52:36.000Z | 2022-01-26T06:52:36.000Z | multi_tenant/tenant/patch/contenttype.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | null | null | null | multi_tenant/tenant/patch/contenttype.py | AnsGoo/djangoMultiTenant | 5e4eeffc70edd3a4936d1a0cadbc29388f5673f5 | [
"MIT"
] | null | null | null | from django.apps import apps as global_apps
from django.conf import settings
from django.contrib.contenttypes import management
from django.contrib.contenttypes.management import get_contenttypes_and_models
from django.db import DEFAULT_DB_ALIAS
from multi_tenant.tenant import get_common_apps
def create_contenttypes... | 30.869565 | 119 | 0.704225 |
ecd25fdf4c3483d217236716518f1b9f8da08dee | 7,136 | py | Python | python/aad/plot_anomalies_rectangle.py | rislam/ad_examples | 20e6dd2dbfd111ed5f69a9018180f7ef5ab627f6 | [
"MIT"
] | 1 | 2019-02-21T02:28:34.000Z | 2019-02-21T02:28:34.000Z | python/aad/plot_anomalies_rectangle.py | kinect59/ad_examples | bf0bb75faa3f713a2efef04b6b093e6a313825af | [
"MIT"
] | null | null | null | python/aad/plot_anomalies_rectangle.py | kinect59/ad_examples | bf0bb75faa3f713a2efef04b6b093e6a313825af | [
"MIT"
] | null | null | null | import os
import numpy as np
import numpy.random as rnd
import matplotlib.pyplot as plt
import logging
from pandas import DataFrame
from common.gen_samples import *
from common.data_plotter import *
from aad.aad_globals import *
from aad.aad_support import *
from aad.forest_description import *
from aad.anomaly_data... | 35.68 | 116 | 0.552971 |
ecd337471154437cf0f4b2824e0aa3e3a4082c4b | 424 | py | Python | tests/test_backbones/test_alexnet.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | tests/test_backbones/test_alexnet.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | tests/test_backbones/test_alexnet.py | jcwon0/BlurHPE | c97a57e92a8a7f171b0403aee640222a32513562 | [
"Apache-2.0"
] | null | null | null | import torch
from mmpose.models.backbones import AlexNet
def test_alexnet_backbone():
"""Test alexnet backbone."""
model = AlexNet(-1)
model.train()
imgs = torch.randn(1, 3, 256, 192)
feat = model(imgs)
assert feat.shape == (1, 256, 7, 5)
model = AlexNet(1)
model.trai... | 20.190476 | 44 | 0.580189 |
ecd354e5bdbc6d89706bdad91ef5146e42e32f1e | 402 | py | Python | src/core/migrations/0006_auto_20190615_2123.py | RedMoon32/GKH | ec9e7df805dc5be1ed18d6f015acb6cb90f11556 | [
"MIT"
] | null | null | null | src/core/migrations/0006_auto_20190615_2123.py | RedMoon32/GKH | ec9e7df805dc5be1ed18d6f015acb6cb90f11556 | [
"MIT"
] | 1 | 2019-06-15T13:53:57.000Z | 2019-06-15T13:53:57.000Z | src/core/migrations/0006_auto_20190615_2123.py | RedMoon32/GKH | ec9e7df805dc5be1ed18d6f015acb6cb90f11556 | [
"MIT"
] | 1 | 2019-06-15T13:44:33.000Z | 2019-06-15T13:44:33.000Z | # Generated by Django 2.2.2 on 2019-06-15 21:23
from django.db import migrations
| 19.142857 | 47 | 0.569652 |
ecd55881edc47674373bff53d752196d7ffdbe5f | 371 | py | Python | view/uiHelpers.py | olk90/pyBLG | 5b6dcc69c281ebb69d0627416b9eeb87cd57ad91 | [
"MIT"
] | null | null | null | view/uiHelpers.py | olk90/pyBLG | 5b6dcc69c281ebb69d0627416b9eeb87cd57ad91 | [
"MIT"
] | null | null | null | view/uiHelpers.py | olk90/pyBLG | 5b6dcc69c281ebb69d0627416b9eeb87cd57ad91 | [
"MIT"
] | null | null | null | import sys
from PySide2.QtCore import QCoreApplication, QFile
| 23.1875 | 75 | 0.706199 |
ecd5891561f06834e2b1ab3d839332db3e452201 | 5,399 | py | Python | CMC/CheckMyChords/views.py | Ergaro/CheckMyChords | 1088b3af468f453bd9e9fb7bcb2d07fc449570ba | [
"MIT"
] | 1 | 2018-06-28T15:21:41.000Z | 2018-06-28T15:21:41.000Z | CMC/CheckMyChords/views.py | Ergaro/CheckMyChords | 1088b3af468f453bd9e9fb7bcb2d07fc449570ba | [
"MIT"
] | null | null | null | CMC/CheckMyChords/views.py | Ergaro/CheckMyChords | 1088b3af468f453bd9e9fb7bcb2d07fc449570ba | [
"MIT"
] | null | null | null | from os import path
from django.contrib import messages
from django.contrib.auth import login, authenticate
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Q
from django.http.response import (
HttpResponse,
HttpRespo... | 39.698529 | 79 | 0.615855 |
ecd68f4188f84429bf42e25903546c91e4128795 | 6,551 | py | Python | networks/deep_sdf_decoder_color_film.py | AdamWang00/DeepSDF | 201e91168b2fad409d39bc13a0eeb4a77885c205 | [
"MIT"
] | null | null | null | networks/deep_sdf_decoder_color_film.py | AdamWang00/DeepSDF | 201e91168b2fad409d39bc13a0eeb4a77885c205 | [
"MIT"
] | null | null | null | networks/deep_sdf_decoder_color_film.py | AdamWang00/DeepSDF | 201e91168b2fad409d39bc13a0eeb4a77885c205 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import torch.nn as nn
import torch
import torch.nn.functional as F
import numpy as np
def gammas_betas(mapping_output, out_dim=256):
gammas = mapping_output[:, :out_dim] + 1
betas = mapping_output[:, out_dim:]
return gammas, betas
| 35.032086 | 126 | 0.547092 |
ecd73cf0019c67bd8272b6ce6d79c6add1ff210f | 1,320 | py | Python | modelscript/scripts/relations/printer.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 1 | 2019-02-22T14:27:06.000Z | 2019-02-22T14:27:06.000Z | modelscript/scripts/relations/printer.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | 4 | 2015-12-18T10:30:02.000Z | 2015-12-18T10:36:28.000Z | modelscript/scripts/relations/printer.py | ScribesZone/ModelScribes | a36be1047283f2e470dc2dd4353f2a714377bb7d | [
"MIT"
] | null | null | null | # coding=utf-8
from typing import Optional
from modelscript.base.modelprinters import (
ModelPrinter,
ModelSourcePrinter,
ModelPrinterConfig,
)
from modelscript.metamodels.relations import (
RelationModel,
METAMODEL
)
__all__ = [
'RelationModelPrinter',
]
METAMODEL.registerModelPrinter(Rel... | 22.758621 | 68 | 0.659848 |
ecd7a00e545bb6427d97aab16cf505cb5925a5aa | 20,570 | py | Python | toto/plugins/plots/plot_roses.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 1 | 2022-03-24T23:41:16.000Z | 2022-03-24T23:41:16.000Z | toto/plugins/plots/plot_roses.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 12 | 2021-02-24T22:30:52.000Z | 2021-11-16T01:51:38.000Z | toto/plugins/plots/plot_roses.py | calypso-science/Toto | 85e90421343bf3dcf6d730767287647b5bc189bb | [
"MIT"
] | 1 | 2021-09-21T11:37:09.000Z | 2021-09-21T11:37:09.000Z | import pandas as pd
import os
from ._do_roses import do_roses
from ._do_bias_hist import do_bias_hist
from ._do_density_diagramm import do_density_diagramm
from ._do_perc_of_occurence import do_perc_of_occurence
from ._do_qq_plot import qq_plot
from ._thermocline import thermocline
from toto.plugins.statistics._do_join... | 40.571992 | 174 | 0.538065 |
ecd893e151bac31fa845057c1ab448c595682ece | 1,227 | py | Python | metrics/precision_recall.py | yrunhaar/fact-ai | 95186394c46f07b84343368bd08522bc8784fa4a | [
"BSD-3-Clause"
] | null | null | null | metrics/precision_recall.py | yrunhaar/fact-ai | 95186394c46f07b84343368bd08522bc8784fa4a | [
"BSD-3-Clause"
] | null | null | null | metrics/precision_recall.py | yrunhaar/fact-ai | 95186394c46f07b84343368bd08522bc8784fa4a | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
From
https://github.com/msmsajjadi/precision-recall-distributions/blob/master/prd_from_image_folders.py
"""
# coding=utf-8
# Copyright: Mehdi S. M. Sajjadi (msajjadi.com)
import prd_score as prd
from improved_precision_recall import knn_precision_recall_features
| 29.926829 | 104 | 0.640587 |
ecd935d49cda7fbc841a0b8d94a3400b652d1aec | 1,908 | py | Python | autogluon_utils/benchmarking/evaluation/runners/run_generate_clean_openml_original.py | jwmueller/autogluon-benchmarking | 28f35188a65c5fb37d4950fa9657ea84c9163049 | [
"Apache-2.0"
] | 15 | 2020-03-18T21:07:33.000Z | 2022-01-11T20:21:21.000Z | autogluon_utils/benchmarking/evaluation/runners/run_generate_clean_openml_original.py | jwmueller/autogluon-benchmarking | 28f35188a65c5fb37d4950fa9657ea84c9163049 | [
"Apache-2.0"
] | 5 | 2020-04-10T07:41:02.000Z | 2022-01-11T23:49:42.000Z | autogluon_utils/benchmarking/evaluation/runners/run_generate_clean_openml_original.py | jwmueller/autogluon-benchmarking | 28f35188a65c5fb37d4950fa9657ea84c9163049 | [
"Apache-2.0"
] | 5 | 2020-03-13T21:21:48.000Z | 2021-02-01T23:39:20.000Z | import pandas as pd
from autogluon.utils.tabular.utils.savers import save_pd
from autogluon_utils.benchmarking.evaluation.preprocess import preprocess_openml
from autogluon_utils.benchmarking.evaluation.constants import *
if __name__ == '__main__':
run()
| 43.363636 | 147 | 0.774109 |
ecd9fdc43ad06e88e36ce0a0fb5704a7eceedb93 | 3,199 | py | Python | coresender/requests/send.py | coresender/coresender-sdk-python | 76666eb4187042d35b88c34cb3201591dd86ffca | [
"MIT"
] | 8 | 2020-06-02T13:47:40.000Z | 2020-07-27T11:48:59.000Z | coresender/requests/send.py | coresender/coresender-sdk-python | 76666eb4187042d35b88c34cb3201591dd86ffca | [
"MIT"
] | null | null | null | coresender/requests/send.py | coresender/coresender-sdk-python | 76666eb4187042d35b88c34cb3201591dd86ffca | [
"MIT"
] | null | null | null | __all__ = ["BodyType", "SendEmail"]
import enum
from typing import List, Dict
from .core import CoresenderApiRequest, LoginMethod
from .. import responses
from .. import errors
| 29.081818 | 74 | 0.563614 |
ecdb18ebb989d126eea413c4c945155dca595496 | 220 | py | Python | Aula5/gabarito_primes.py | CalicoUFSC/minicurso-python | c5a8d560e15e9efc3d6e05a88395d02cad412e20 | [
"MIT"
] | 8 | 2016-05-04T19:13:55.000Z | 2017-06-13T18:10:59.000Z | Aula5/gabarito_primes.py | CalicoUFSC/minicurso-python | c5a8d560e15e9efc3d6e05a88395d02cad412e20 | [
"MIT"
] | null | null | null | Aula5/gabarito_primes.py | CalicoUFSC/minicurso-python | c5a8d560e15e9efc3d6e05a88395d02cad412e20 | [
"MIT"
] | null | null | null | inputfile = open('primes.txt')
lista = inputfile.read().split(',')
inputfile.close()
lista = sorted([int(i) for i in lista])
outputfile = open('primes_sorted.txt', 'w')
for i in lista:
outputfile.write(str(i)+',')
| 16.923077 | 43 | 0.663636 |
ecdcb1938d5b91dc4501936a9d9993eccf754536 | 3,102 | py | Python | test/hours/get.py | sbutler/spotseeker_server | 02bd2d646eab9f26ddbe8536b30e391359796c9c | [
"Apache-2.0"
] | null | null | null | test/hours/get.py | sbutler/spotseeker_server | 02bd2d646eab9f26ddbe8536b30e391359796c9c | [
"Apache-2.0"
] | null | null | null | test/hours/get.py | sbutler/spotseeker_server | 02bd2d646eab9f26ddbe8536b30e391359796c9c | [
"Apache-2.0"
] | null | null | null | """ Copyright 2012, 2013 UW Information Technology, University of Washington
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 r... | 47 | 117 | 0.662153 |
ecdea7882a3538c3f52660034cc87f8d45cf7c28 | 446 | py | Python | roman/roman_reverse.py | mapinis/intro-to-programming-public | 7b343aba3756cf4bf1c530723d4e00395c32f93e | [
"MIT"
] | null | null | null | roman/roman_reverse.py | mapinis/intro-to-programming-public | 7b343aba3756cf4bf1c530723d4e00395c32f93e | [
"MIT"
] | null | null | null | roman/roman_reverse.py | mapinis/intro-to-programming-public | 7b343aba3756cf4bf1c530723d4e00395c32f93e | [
"MIT"
] | null | null | null | inp = input("Input roman numerals: ").upper() + " "
tot = 0
numeralDict = {
"I":1,
"V":5,
"X":10,
"L":50,
"C":100,
"D":500,
"M":1000
}
inp = list(inp)
for charNum in range(len(inp)):
char = inp[charNum]
if(char == "I"):
if(inp[charNum + 1] != "I" and inp[charNum + 1] != " "... | 17.84 | 64 | 0.441704 |
ece03d3e786976781d7eace1e7e8c722f3bd7272 | 350 | py | Python | PythonExercicios/ex025.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex025.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | PythonExercicios/ex025.py | gabjohann/python_3 | 380cb622669ed82d6b22fdd09d41f02f1ad50a73 | [
"MIT"
] | null | null | null | # Crie um programa que leia o nome de uma pessoa e diga se ela tem 'Silva' no nome
nome = str(input('Digite seu nome completo: ')).strip()
print('Seu nome tem Silva? {}'.format('SILVA' in nome.upper()))
# Resoluo da aula
# nome = str(input('Qual seu nome completo? ')).strip()
# print('Seu nome tem Silva? {}'.format... | 35 | 82 | 0.671429 |
ece0911f9f69e76d82e5ea73f890289eb0427a09 | 1,219 | py | Python | PXL_DIGITAL_JAAR_2/AI & Robotics/Oplossingen/Week3/Oef1/board.py | RubenMoensJonkersPXL/PXL-DIGITAL | 86460ac0512e01a36e3e680500cdb317abdb3d07 | [
"MIT"
] | null | null | null | PXL_DIGITAL_JAAR_2/AI & Robotics/Oplossingen/Week3/Oef1/board.py | RubenMoensJonkersPXL/PXL-DIGITAL | 86460ac0512e01a36e3e680500cdb317abdb3d07 | [
"MIT"
] | null | null | null | PXL_DIGITAL_JAAR_2/AI & Robotics/Oplossingen/Week3/Oef1/board.py | RubenMoensJonkersPXL/PXL-DIGITAL | 86460ac0512e01a36e3e680500cdb317abdb3d07 | [
"MIT"
] | 1 | 2020-10-30T10:02:44.000Z | 2020-10-30T10:02:44.000Z | from copy import deepcopy
from src.CourseMaterials.Week3.Oef1.place import Place
| 32.945946 | 113 | 0.61936 |
ece51d84a80ce49f39d083d9811e55c06c50ed1e | 3,242 | py | Python | tests/test-xml.py | privazio/pyone | a20037e8442ee9b4d1bb71481531613bf50f978b | [
"Apache-2.0"
] | 3 | 2018-01-07T16:56:24.000Z | 2018-02-27T07:52:04.000Z | tests/test-xml.py | privazio/pyone | a20037e8442ee9b4d1bb71481531613bf50f978b | [
"Apache-2.0"
] | 4 | 2018-01-06T18:27:29.000Z | 2018-02-16T13:55:47.000Z | tests/test-xml.py | privazio/pyone | a20037e8442ee9b4d1bb71481531613bf50f978b | [
"Apache-2.0"
] | 1 | 2020-04-26T14:22:09.000Z | 2020-04-26T14:22:09.000Z | # Copyright 2018 www.privaz.io Valletech AB
#
# 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... | 81.05 | 1,003 | 0.710056 |
ece51e65a54c94ad15d633d5fd3cb36556c86aef | 1,101 | py | Python | hard-gists/2888380/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/2888380/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/2888380/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import bottle
from wsgiproxy.app import WSGIProxyApp
# Remove "hop-by-hop" headers (as defined by RFC2613, Section 13)
# since they are not allowed by the WSGI standard.
FILTER_HEADERS = [
'Connection',
'Keep-Alive',
'Proxy-Authenticate',
'Proxy-Authorization',
'TE',
'Trailers',
'Transfer-E... | 27.525 | 65 | 0.694823 |
ece5d870979308c2d6e6f7970797c43d2a532991 | 6,138 | py | Python | eosfactory/core/vscode.py | tuan-tl/eosfactory | 15e75de35b96b1ddf1d3e80b870593f600166007 | [
"MIT"
] | 255 | 2018-05-14T12:48:21.000Z | 2022-01-09T11:38:50.000Z | eosfactory/core/vscode.py | tuan-tl/eosfactory | 15e75de35b96b1ddf1d3e80b870593f600166007 | [
"MIT"
] | 126 | 2018-05-12T05:26:14.000Z | 2021-03-08T08:59:57.000Z | eosfactory/core/vscode.py | tuan-tl/eosfactory | 15e75de35b96b1ddf1d3e80b870593f600166007 | [
"MIT"
] | 71 | 2018-05-11T08:01:12.000Z | 2021-12-12T18:26:23.000Z | '''
.. module:: eosfactory.core.vscode
:platform: Unix, Darwin
:synopsis: Default configuration items of a contract project.
.. moduleauthor:: Tokenika
'''
import json
import argparse
import eosfactory.core.config as config
INCLUDE_PATH = "includePath"
LIBS = "libs"
CODE_OPTIONS = "codeOptions"
TEST_OPTIONS ... | 26.456897 | 103 | 0.375529 |
ece61b4305a33701c888697cad3c0e2ae4260394 | 970 | py | Python | tests/functional/services/policy_engine/utils/api/query_vulnerabilities.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 1,484 | 2017-09-11T19:08:42.000Z | 2022-03-29T07:47:44.000Z | tests/functional/services/policy_engine/utils/api/query_vulnerabilities.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 913 | 2017-09-27T20:37:53.000Z | 2022-03-29T17:21:28.000Z | tests/functional/services/policy_engine/utils/api/query_vulnerabilities.py | rbrady/anchore-engine | 5a5c492d76b5f911e60be422912fe8d42a74872b | [
"Apache-2.0"
] | 294 | 2017-09-12T16:54:03.000Z | 2022-03-14T01:28:51.000Z | from tests.functional.services.policy_engine.utils.api.conf import (
policy_engine_api_conf,
)
from tests.functional.services.utils import http_utils
| 28.529412 | 74 | 0.697938 |
ece8955cfab2b69803e74e963f5ac76b16e9c256 | 117 | py | Python | admin_tools/theming/apps.py | asherf/django-admin-tools | 26a993545de7d68286be56ac640fe12acf1a1abe | [
"MIT"
] | 711 | 2015-06-21T10:08:06.000Z | 2022-03-25T08:46:37.000Z | admin_tools/theming/apps.py | asherf/django-admin-tools | 26a993545de7d68286be56ac640fe12acf1a1abe | [
"MIT"
] | 102 | 2015-06-22T12:38:21.000Z | 2022-03-29T14:00:54.000Z | admin_tools/theming/apps.py | asherf/django-admin-tools | 26a993545de7d68286be56ac640fe12acf1a1abe | [
"MIT"
] | 149 | 2015-06-21T10:16:49.000Z | 2022-03-28T13:11:47.000Z | # coding: utf-8
from django.apps import AppConfig
| 16.714286 | 33 | 0.752137 |
ece8988a01fa61a4a0efa0c8aff3aab9ff0d6a69 | 399 | py | Python | code/tmp_rtrip/test/subprocessdata/sigchild_ignore.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 24 | 2018-01-23T05:28:40.000Z | 2021-04-13T20:52:59.000Z | code/tmp_rtrip/test/subprocessdata/sigchild_ignore.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | 17 | 2017-12-21T18:32:31.000Z | 2018-12-18T17:09:50.000Z | code/tmp_rtrip/test/subprocessdata/sigchild_ignore.py | emilyemorehouse/ast-and-me | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | [
"MIT"
] | null | null | null | import signal, subprocess, sys, time
signal.signal(signal.SIGCHLD, signal.SIG_IGN)
subprocess.Popen([sys.executable, '-c', 'print("albatross")']).wait()
p = subprocess.Popen([sys.executable, '-c', 'print("albatross")'])
num_polls = 0
while p.poll() is None:
time.sleep(0.01)
num_polls += 1
if num_polls > 300... | 36.272727 | 75 | 0.691729 |
eceaedfca5e8f20534c181a7f4d569fce86eec9a | 405 | py | Python | tests/line_markers/test_init.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 44 | 2018-04-08T21:25:43.000Z | 2022-01-20T14:28:16.000Z | tests/line_markers/test_init.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 72 | 2018-03-30T14:30:48.000Z | 2022-03-31T16:18:16.000Z | tests/line_markers/test_init.py | jamescooke/flake8-aaa | 9df248e10538946531b67da4564bb229a91baece | [
"MIT"
] | 1 | 2018-10-17T18:49:25.000Z | 2018-10-17T18:49:25.000Z | from flake8_aaa.line_markers import LineMarkers
from flake8_aaa.types import LineType
| 23.823529 | 47 | 0.624691 |
eceb4d10ae5c8c9587b4d8463e6dcb843d1104ac | 6,018 | py | Python | tests/integration/test_ssl_cert_authentication/test.py | anishbhanwala/ClickHouse | 7d01516202152c8d60d4fed6b72dad67357d337f | [
"Apache-2.0"
] | 1 | 2022-03-12T08:14:25.000Z | 2022-03-12T08:14:25.000Z | tests/integration/test_ssl_cert_authentication/test.py | anishbhanwala/ClickHouse | 7d01516202152c8d60d4fed6b72dad67357d337f | [
"Apache-2.0"
] | null | null | null | tests/integration/test_ssl_cert_authentication/test.py | anishbhanwala/ClickHouse | 7d01516202152c8d60d4fed6b72dad67357d337f | [
"Apache-2.0"
] | null | null | null | import pytest
from helpers.cluster import ClickHouseCluster
import urllib.request, urllib.parse
import ssl
import os.path
HTTPS_PORT = 8443
NODE_IP = '10.5.172.77' # It's important for the node to work at this IP because 'server-cert.pem' requires that (see server-ext.cnf).
NODE_IP_WITH_HTTPS_PORT = NODE_IP + ':' + st... | 51 | 163 | 0.712529 |
ecedcf0fb8a3be8ed0c09934ae1ef12b0e973756 | 637 | py | Python | taskmanager/src/modules/tasks/application/retrieve/get_task_error_handle.py | acostapazo/event-manager | 614c91af19fad39f766ffa1b9a3d1e783f06c72e | [
"MIT"
] | null | null | null | taskmanager/src/modules/tasks/application/retrieve/get_task_error_handle.py | acostapazo/event-manager | 614c91af19fad39f766ffa1b9a3d1e783f06c72e | [
"MIT"
] | 1 | 2020-04-20T11:20:22.000Z | 2020-04-20T11:20:22.000Z | taskmanager/src/modules/tasks/application/retrieve/get_task_error_handle.py | acostapazo/event-manager | 614c91af19fad39f766ffa1b9a3d1e783f06c72e | [
"MIT"
] | null | null | null | from meiga import Result
from petisco.controller.errors.http_error import HttpError
from taskmanager.src.modules.tasks.domain.errors import TaskNotFoundError
| 31.85 | 73 | 0.745683 |
ecee3bdc2df3c4340135e376313418070504c4bf | 81 | py | Python | aulaspythonintermediario/exercicios01/exercicio01/exercicio01.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | 1 | 2021-09-04T14:34:34.000Z | 2021-09-04T14:34:34.000Z | aulaspythonintermediario/exercicios01/exercicio01/exercicio01.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | null | null | null | aulaspythonintermediario/exercicios01/exercicio01/exercicio01.py | lel352/Curso-Python | d65484c807db52d57042eee20ccbd3131825fa98 | [
"MIT"
] | null | null | null |
saudacao('Ol', 'Leandro')
| 13.5 | 27 | 0.666667 |
ecef17eae566a1c7f1fbdc99b800abb5d8a86222 | 18,694 | py | Python | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | google/cloud/securitycenter_v1beta1/proto/asset_pb2.py | tmatsuo/python-securitycenter | dbb9311676003f452295848c49cbe97cb22c47b5 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/securitycenter_v1beta1/proto/asset.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refle... | 39.690021 | 1,587 | 0.659944 |
ecf00584393761c381cefd578c746746cc71950f | 1,842 | py | Python | setup_py3.py | melviso-osvf/scenario_runner | e8886f86880f8f67927e4756d6b6ce05ba24b1eb | [
"MIT"
] | null | null | null | setup_py3.py | melviso-osvf/scenario_runner | e8886f86880f8f67927e4756d6b6ce05ba24b1eb | [
"MIT"
] | null | null | null | setup_py3.py | melviso-osvf/scenario_runner | e8886f86880f8f67927e4756d6b6ce05ba24b1eb | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import setuptools
from os import path, system, chdir
from setuptools.command.install import install
from setuptools import setup, find_packages
from sys import platform
with open(path.join(path.dirname(__file__),"README.md"), "r") as f:
long_description = f.read()
with open(path.join(path.d... | 31.758621 | 120 | 0.672096 |
ecf183a067a228fd585d62fef13746992f69dab4 | 2,702 | py | Python | oop_di/container.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | oop_di/container.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | oop_di/container.py | ChubV/oop-di | 3de449e3c209529bd2554187aa9857bf729841b8 | [
"MIT"
] | null | null | null | import inspect
from functools import partial
from typing import Any, Callable, Dict, List
from .service_builder import ServiceBuilder
from .types import NameType
| 32.554217 | 119 | 0.569948 |
ecf22813a5612213e9f8e2d0efbc7b3558525b48 | 2,005 | py | Python | test/wrappers/gpm/test_auth_wrapper.py | mohamey/gpm_to_spotify | 295ed18d475ea22452c062eadc04914d7cc695be | [
"MIT"
] | 6 | 2020-06-06T21:18:22.000Z | 2020-07-03T10:26:44.000Z | test/wrappers/gpm/test_auth_wrapper.py | mohamey/gpm_to_spotify | 295ed18d475ea22452c062eadc04914d7cc695be | [
"MIT"
] | 1 | 2020-06-07T20:07:07.000Z | 2020-06-07T20:07:07.000Z | test/wrappers/gpm/test_auth_wrapper.py | mohamey/gpm_to_spotify | 295ed18d475ea22452c062eadc04914d7cc695be | [
"MIT"
] | 1 | 2020-06-07T15:17:16.000Z | 2020-06-07T15:17:16.000Z | from exceptions.gpm.auth_exceptions import AuthException
from gmusicapi import Mobileclient
from oauth2client.client import OAuth2Credentials
from wrappers.gpm.auth_wrapper import AuthWrapper
from unittest.mock import MagicMock
from unittest import mock
import unittest
| 47.738095 | 120 | 0.759102 |
ecf2db2c3a8b96a672c15af18944f558eb5d183b | 1,778 | py | Python | setup.py | avanov/redmine_migrator | a23148b9fd657f12d7e81f990848a64680203c36 | [
"MIT"
] | 3 | 2017-01-04T11:18:32.000Z | 2021-11-05T23:50:14.000Z | setup.py | avanov/redmine_migrator | a23148b9fd657f12d7e81f990848a64680203c36 | [
"MIT"
] | null | null | null | setup.py | avanov/redmine_migrator | a23148b9fd657f12d7e81f990848a64680203c36 | [
"MIT"
] | 2 | 2016-12-28T03:36:26.000Z | 2021-11-05T23:50:15.000Z | import os
from setuptools import find_packages
from setuptools import setup
readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
setup(
name='redmine_migrator',
version='0.3',
packages=find_packages(exclude=['tests']),
install_requires=[
'psycopg2',
'sqlalchemy... | 32.327273 | 96 | 0.64117 |
ecf30a51d8793fd4c825e5bb2417de48539638e0 | 235 | py | Python | time_series_transform/__init__.py | mrdragonbear/Time-Series-Transformer | a12bbd0c4563b4b150b4a47006e3e11457daef1b | [
"MIT"
] | 1 | 2021-11-16T01:51:43.000Z | 2021-11-16T01:51:43.000Z | time_series_transform/__init__.py | sbhakat/Time-Series-Transformer | a12bbd0c4563b4b150b4a47006e3e11457daef1b | [
"MIT"
] | null | null | null | time_series_transform/__init__.py | sbhakat/Time-Series-Transformer | a12bbd0c4563b4b150b4a47006e3e11457daef1b | [
"MIT"
] | 1 | 2020-11-06T06:57:23.000Z | 2020-11-06T06:57:23.000Z | from time_series_transform.transform_core_api import (
Pandas_Time_Series_Panel_Dataset,
Pandas_Time_Series_Tensor_Dataset,
)
from time_series_transform.stock_transform import (
Portfolio_Extractor,
Stock_Extractor
)
| 21.363636 | 54 | 0.825532 |
ecf33c984ec4a562c7c83ec6b980f882d91e5038 | 80 | py | Python | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | Complier_Design/countlines/countlines.py | mayank-gubba/Compiler-Design | 2a8cc0ea04df90f4739db5a0f389daccc8788c63 | [
"MIT"
] | null | null | null | f=open('countlines.txt','rt')
n=0
for i in f:
n+=1
print(n)
f.close()
| 11.428571 | 30 | 0.5375 |
019c0d9228ba68505d21413807707c4605f42390 | 1,301 | py | Python | aasaan/schedulemaster/views.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | aasaan/schedulemaster/views.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | 15 | 2020-06-05T19:26:26.000Z | 2022-03-11T23:33:53.000Z | aasaan/schedulemaster/views.py | deepakkt/aasaan | 77ef72e785e6ae562f51ae64fa9d85faf860c315 | [
"MIT"
] | null | null | null | from datetime import datetime
from django.shortcuts import render
from django.http import Http404
from .models import ProgramSchedule
from utils.datedeux import DateDeux
# Create your views here.
| 38.264706 | 89 | 0.63259 |