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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8095fed737853a16f266e29c70aa1c6f509f7dd8 | 967 | py | Python | test-framework/test-suites/integration/tests/report/test_report_discovery.py | khanfluence/stacki-cumulus-switch | df54afb20f6ea6a3a136b3c09b30df54ea79ffcc | [
"BSD-3-Clause"
] | null | null | null | test-framework/test-suites/integration/tests/report/test_report_discovery.py | khanfluence/stacki-cumulus-switch | df54afb20f6ea6a3a136b3c09b30df54ea79ffcc | [
"BSD-3-Clause"
] | null | null | null | test-framework/test-suites/integration/tests/report/test_report_discovery.py | khanfluence/stacki-cumulus-switch | df54afb20f6ea6a3a136b3c09b30df54ea79ffcc | [
"BSD-3-Clause"
] | null | null | null | import os
import subprocess
import pytest
| 28.441176 | 60 | 0.741468 |
809668ea6678e6fc0ac8190a7a64ddbf086a2f6c | 862 | py | Python | Python/magic_8_ball.py | rockchipgh/Hacktoberfest2020-1 | 1d1e28614aa16c1bac2560b0250ce0014e48241d | [
"MIT"
] | null | null | null | Python/magic_8_ball.py | rockchipgh/Hacktoberfest2020-1 | 1d1e28614aa16c1bac2560b0250ce0014e48241d | [
"MIT"
] | null | null | null | Python/magic_8_ball.py | rockchipgh/Hacktoberfest2020-1 | 1d1e28614aa16c1bac2560b0250ce0014e48241d | [
"MIT"
] | null | null | null | #*****MAGIC 8 BALL CODE*****
import sys
import random
ans = True
while ans:
question = input("ask the magic 8 ball a question: (press enter to quit) ")
answers = random.randint(1,8)
if question == "":
sys.exit()
elif answers == 1:
print ("Good:)")
elif answ... | 22.684211 | 88 | 0.512761 |
8097ac4f2c3ab576de8d5aa4f37130c113315bd2 | 1,060 | py | Python | scripts/dhp19/generate_DHP19/Python_Files/BackgroundFilter.py | preshmalinetpereira/lifting_events_to_3d_hpe | 2d7b196dc6ab85e10ae07466657304f324a64a37 | [
"Apache-2.0"
] | null | null | null | scripts/dhp19/generate_DHP19/Python_Files/BackgroundFilter.py | preshmalinetpereira/lifting_events_to_3d_hpe | 2d7b196dc6ab85e10ae07466657304f324a64a37 | [
"Apache-2.0"
] | null | null | null | scripts/dhp19/generate_DHP19/Python_Files/BackgroundFilter.py | preshmalinetpereira/lifting_events_to_3d_hpe | 2d7b196dc6ab85e10ae07466657304f324a64a37 | [
"Apache-2.0"
] | null | null | null | ### File created by preshma
import numpy as np
import math | 32.121212 | 68 | 0.551887 |
8098871e0930a689062b0ccaa88626806d0cc195 | 3,372 | py | Python | venus/venus/test_venus.py | FrederichRiver/neutrino2 | 65e158f0d64046628cf2d1d52bdb3161489c7595 | [
"BSD-3-Clause"
] | null | null | null | venus/venus/test_venus.py | FrederichRiver/neutrino2 | 65e158f0d64046628cf2d1d52bdb3161489c7595 | [
"BSD-3-Clause"
] | null | null | null | venus/venus/test_venus.py | FrederichRiver/neutrino2 | 65e158f0d64046628cf2d1d52bdb3161489c7595 | [
"BSD-3-Clause"
] | null | null | null | from stock_base import StockEventBase, dataLine
if __name__ == "__main__":
# unit_test_NoneHeaderError()
# unit_test_stockEventBase()
# unit_test_StockList()
# unit_test_stock_interest()
# unit_test_dataline()
# unit_test_financeReport()
# unit_test_stockBase()
unit_test_stock... | 28.576271 | 68 | 0.673191 |
8099edc75a8e1289de2d8bd7684b17513889d966 | 7,592 | py | Python | io_mesh_urho/utils.py | practicing01/Urho3D-Blender | 820f03c34adda7594aa8ebc3f95cd71382a51528 | [
"Unlicense"
] | null | null | null | io_mesh_urho/utils.py | practicing01/Urho3D-Blender | 820f03c34adda7594aa8ebc3f95cd71382a51528 | [
"Unlicense"
] | null | null | null | io_mesh_urho/utils.py | practicing01/Urho3D-Blender | 820f03c34adda7594aa8ebc3f95cd71382a51528 | [
"Unlicense"
] | null | null | null |
#
# This script is licensed as public domain.
#
# http://docs.python.org/2/library/struct.html
from xml.etree import ElementTree as ET
from xml.dom import minidom
import os
import struct
import array
import logging
log = logging.getLogger("ExportLogger")
PathType = enum(
ROOT = "ROOT-",
MODELS ... | 27.607273 | 83 | 0.576264 |
809cbc92d834b903ea9a7f231c4069974f14b439 | 793 | py | Python | 751_ConcatenationCoincidence.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 751_ConcatenationCoincidence.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | 751_ConcatenationCoincidence.py | joetache4/project-euler | 82f9e25b414929d9f62d94905906ba2f57db7935 | [
"MIT"
] | null | null | null | """
Joe Tacheron
difficulty: TBD
runtime: instant
answer: 2.223561019313554106173177
***
751 Concatenation Coincidence
Find the only value of theta for which the concatenated sequence equals theta. Give your answer rounded to 24 places after the decimal point.
"""
from math import floor
from decimal import getco... | 19.341463 | 141 | 0.682219 |
809d031223a45a8f910ee17a551eeb4a17745210 | 487 | py | Python | wildlifecompliance/migrations/0466_inspection_informed_datetime.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 1 | 2020-12-07T17:12:40.000Z | 2020-12-07T17:12:40.000Z | wildlifecompliance/migrations/0466_inspection_informed_datetime.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 14 | 2020-01-08T08:08:26.000Z | 2021-03-19T22:59:46.000Z | wildlifecompliance/migrations/0466_inspection_informed_datetime.py | preranaandure/wildlifecompliance | bc19575f7bccf7e19adadbbaf5d3eda1d1aee4b5 | [
"Apache-2.0"
] | 15 | 2020-01-08T08:02:28.000Z | 2021-11-03T06:48:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-04-20 02:34
from __future__ import unicode_literals
from django.db import migrations, models
| 23.190476 | 62 | 0.638604 |
809d6db57d7ccbeed3286156e788d7b40de4e64f | 2,991 | py | Python | apps/cuenta/views.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | apps/cuenta/views.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | apps/cuenta/views.py | mariomtzjr/podemos_test | 5efaf02a19aa8c4849e3ad0108546e95af524126 | [
"MIT"
] | null | null | null | import json
from datetime import datetime, timedelta
from collections import defaultdict
from django.shortcuts import redirect
from rest_framework import generics
from rest_framework import status
from rest_framework.response import Response
from rest_framework.renderers import TemplateHTMLRenderer
from api.serialize... | 33.606742 | 82 | 0.63223 |
809dce66f1ae4ba19a16cb38353f61a408805045 | 2,651 | py | Python | BioClients/pubtator/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 10 | 2020-05-26T07:29:14.000Z | 2021-12-06T21:33:40.000Z | BioClients/pubtator/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 1 | 2021-10-05T12:25:30.000Z | 2021-10-05T17:05:56.000Z | BioClients/pubtator/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 2 | 2021-03-16T03:20:24.000Z | 2021-08-08T20:17:10.000Z | #!/usr/bin/env python3
"""
Pubtator REST API client
https://www.ncbi.nlm.nih.gov/CBBresearch/Lu/Demo/tmTools/RESTfulAPIs.html
Formats: JSON, PubTator, BioC.
Nomenclatures:
Gene : NCBI Gene
e.g. https://www.ncbi.nlm.nih.gov/sites/entrez?db=gene&term=145226
Disease : MEDIC (CTD, CTD_diseases.csv)
e.g. http://ctdbase... | 38.42029 | 138 | 0.692569 |
809fc3dd1ab1b80d5c8a28d77f62a444addf0bea | 270 | py | Python | python/utils/RunnerTypes.py | coreyjadams/harvard_production | 233f20ef62ca34375f09417f4a507aa977c53a2a | [
"MIT"
] | null | null | null | python/utils/RunnerTypes.py | coreyjadams/harvard_production | 233f20ef62ca34375f09417f4a507aa977c53a2a | [
"MIT"
] | null | null | null | python/utils/RunnerTypes.py | coreyjadams/harvard_production | 233f20ef62ca34375f09417f4a507aa977c53a2a | [
"MIT"
] | 1 | 2018-10-15T16:44:55.000Z | 2018-10-15T16:44:55.000Z | from GalleryRunner import GalleryRunner
from LarsoftRunner import LarsoftRunner | 30 | 49 | 0.722222 |
80a03041f1e4b028ca0717c34d104f8912df41aa | 6,258 | py | Python | pyshooter/main.py | stes/pyshooter | 670748eac8e5c7a29b67dcf95fbd7fd14831b518 | [
"MIT",
"Unlicense"
] | null | null | null | pyshooter/main.py | stes/pyshooter | 670748eac8e5c7a29b67dcf95fbd7fd14831b518 | [
"MIT",
"Unlicense"
] | null | null | null | pyshooter/main.py | stes/pyshooter | 670748eac8e5c7a29b67dcf95fbd7fd14831b518 | [
"MIT",
"Unlicense"
] | null | null | null | from entities import Tank, Missile, Base
from particlesys import ParticleSystem
import ai
import pygame
import sys
import copy
''' General constants '''
WIDTH = 800
HEIGHT = 600
''' '''
psys = ParticleSystem()
''' Key bindings for both players '''
KEY_BINDINGS_1 = {pygame.K_LEFT: "left",
... | 35.355932 | 114 | 0.606903 |
80a12c4987e87f980393646110ccfe0a77ee3cbb | 3,340 | py | Python | mdnc/utils/tools.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | mdnc/utils/tools.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | mdnc/utils/tools.py | cainmagi/MDNC | ce5e88b4c4880e8ecdbd82ee1da48335bad20b53 | [
"MIT"
] | null | null | null | #!python
# -*- coding: UTF-8 -*-
'''
################################################################
# Utilities - Tools
# @ Modern Deep Network Toolkits for pyTorch
# Yuchen Jin @ cainmagi@gmail.com
# Requirements: (Pay attention to version)
# python 3.5+
# numpy 1.13+
# Useful tools for data analysis and recordi... | 30.925926 | 75 | 0.577844 |
80a1edfb39244009248c251e763cdd1deed6666f | 925 | py | Python | 2. Programming Fundamentals With Python (May 2021)/18. Mid Exam Preparation/More Exercises/02_array_modifier.py | kzborisov/SoftUni | ccb2b8850adc79bfb2652a45124c3ff11183412e | [
"MIT"
] | 1 | 2021-02-07T07:51:12.000Z | 2021-02-07T07:51:12.000Z | 2. Programming Fundamentals With Python (May 2021)/18. Mid Exam Preparation/More Exercises/02_array_modifier.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null | 2. Programming Fundamentals With Python (May 2021)/18. Mid Exam Preparation/More Exercises/02_array_modifier.py | kzborisov/softuni | 9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751 | [
"MIT"
] | null | null | null |
initial_list = input().split()
command = input()
modifier = Modifier(initial_list)
while not command == "end":
cmd = command.split()[0]
if cmd == "swap":
idx_1 = int(command.split()[1])
idx_2 = int(command.split()[2])
modifier.swap(idx_1, idx_2)
elif cmd == "multiply":
idx... | 26.428571 | 83 | 0.597838 |
80a2a8d0820253e95e290a620678375fc27af9cc | 6,023 | py | Python | undeployed/subjects/chunking/chunk_bundle.py | NASA-DEVELOP/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 65 | 2015-09-10T12:59:56.000Z | 2022-02-27T22:09:03.000Z | undeployed/subjects/chunking/chunk_bundle.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 40 | 2015-04-08T19:23:30.000Z | 2015-08-04T15:53:11.000Z | undeployed/subjects/chunking/chunk_bundle.py | snowzm/dnppy | 8f7ef6f0653f5a4ea730ee557c72a2c89c06ce0b | [
"NASA-1.3"
] | 45 | 2015-08-14T19:09:38.000Z | 2022-02-15T18:53:16.000Z | __author__ = 'jwely'
import numpy
import os
from chunk import chunk
# from dnppy import raster # please see chunk_bundle.read() for dnppy.raster import
# testing area
if __name__ == "__main__":
path = r"C:\Users\jwely\Desktop\troubleshooting\test_in_MODIS\MYD11A1.A2013001_day_clip_W05_C2014001_Avg_K_C_p_G... | 33.648045 | 123 | 0.62859 |
80a2d988e41df3a0c79d453576a3823c0cb38741 | 58,965 | py | Python | quart_app/beyondchaosmaster/wor.py | razzlestorm/BCRandomizer-API | 2e5aec91c34b46e845bca695d3468eb8f3bae401 | [
"MIT"
] | 1 | 2021-06-15T03:54:53.000Z | 2021-06-15T03:54:53.000Z | quart_app/beyondchaosmaster/wor.py | razzlestorm/BCRandomizer-API | 2e5aec91c34b46e845bca695d3468eb8f3bae401 | [
"MIT"
] | 1 | 2021-09-13T04:32:43.000Z | 2021-09-13T04:32:43.000Z | BeyondChaos/Wor.py | razzlestorm/BeyondChaosRandomizer | 04a0acdcd9d4c3991a3e42cf1bba4299adda4435 | [
"MIT"
] | null | null | null | import dataclasses
from chestrandomizer import get_event_items
from character import get_character, get_characters
from dialoguemanager import get_dialogue, set_dialogue
from locationrandomizer import get_location, get_locations, NPCBlock
from monsterrandomizer import change_enemy_name
from utils import (WOB_TREASURE_... | 38.58966 | 540 | 0.602663 |
80a53a59d7c9cc5fc9f43fec4ffd711ec190d7c2 | 3,742 | py | Python | acs/acs/UtilitiesFWK/CommandLine.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 8 | 2018-09-14T01:34:01.000Z | 2021-07-01T02:00:23.000Z | acs/acs/UtilitiesFWK/CommandLine.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 3 | 2019-09-10T11:39:50.000Z | 2019-10-10T08:26:22.000Z | acs/acs/UtilitiesFWK/CommandLine.py | intel/test-framework-and-suites-for-android | 3aae8452ae931437b3b5ac30f068dc22a8dc5b85 | [
"Apache-2.0"
] | 9 | 2018-10-11T15:14:03.000Z | 2021-02-17T11:37:20.000Z | """
Copyright (C) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
softw... | 32.824561 | 103 | 0.613576 |
80a591d2578be8c5e1c257e2cb19cda394c34edb | 4,078 | py | Python | azimuth-api.py | kgao/azimuth-ws | 2db01323810c8c32f10326b3a6f2db0f08a5328d | [
"BSD-3-Clause"
] | null | null | null | azimuth-api.py | kgao/azimuth-ws | 2db01323810c8c32f10326b3a6f2db0f08a5328d | [
"BSD-3-Clause"
] | null | null | null | azimuth-api.py | kgao/azimuth-ws | 2db01323810c8c32f10326b3a6f2db0f08a5328d | [
"BSD-3-Clause"
] | null | null | null | from flask import Flask, jsonify, request
import azimuth.model_comparison
import numpy as np
from azure_service import azure_service
from azure_service.azure_service import Settings, AzureService
app = Flask(__name__)
# filter out the invalid genome sequences
def filter(arr):
result = []
for a in arr:
... | 36.088496 | 128 | 0.646395 |
80a62709eb8bf8541d7beaf9230346f7765bbac5 | 939 | py | Python | classification/classification.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | classification/classification.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | classification/classification.py | nsudhanva/Ohms | 50f3308650ca6873b48991b6b862594e65c6b776 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import confusion_matrix
from sklearn.metrics import classificatio... | 36.115385 | 132 | 0.761448 |
80a88e5e9ecb5d15095f3dd23e117c386a2556aa | 30 | py | Python | UNUSED - DON'T CHECK/mySQLImportTest.py | jamesxu123/ICS3U-FSE | 7ec821dfa69856e3daa1a1bf4e86947c2b0ddeb3 | [
"MIT"
] | null | null | null | UNUSED - DON'T CHECK/mySQLImportTest.py | jamesxu123/ICS3U-FSE | 7ec821dfa69856e3daa1a1bf4e86947c2b0ddeb3 | [
"MIT"
] | 1 | 2018-06-11T14:12:00.000Z | 2018-06-11T14:12:00.000Z | UNUSED - DON'T CHECK/mySQLImportTest.py | jamesxu123/ICS3U-FSE | 7ec821dfa69856e3daa1a1bf4e86947c2b0ddeb3 | [
"MIT"
] | 1 | 2018-08-26T22:31:59.000Z | 2018-08-26T22:31:59.000Z | import mysqlTest
print('yay')
| 10 | 16 | 0.766667 |
80a9421a4d5a2a46406e97fdc0d72056dcd5de4f | 756 | py | Python | users/urls.py | juliosinaysantos/django-auth-app | 3309c68ee354171fd3548564e6e1733c81edb352 | [
"MIT"
] | null | null | null | users/urls.py | juliosinaysantos/django-auth-app | 3309c68ee354171fd3548564e6e1733c81edb352 | [
"MIT"
] | null | null | null | users/urls.py | juliosinaysantos/django-auth-app | 3309c68ee354171fd3548564e6e1733c81edb352 | [
"MIT"
] | null | null | null | from django.urls import path
from users.views import (
login,
register,
logout,
profile,
unverified_email,
verify_email,
password_reset,
new_password,
settings
)
app_name = 'users'
urlpatterns = [
path('register/', register, name='register'),
path('login/', login, name='log... | 28 | 75 | 0.662698 |
80aa11171d981757abd23c45640f5c0e84c66506 | 9,132 | py | Python | scripts/image_dataset.py | KentJames/crocodile | 83c34c0530521774ba48063bb2357fc92a74d334 | [
"Apache-2.0"
] | 4 | 2015-02-10T17:26:50.000Z | 2019-12-28T17:14:48.000Z | scripts/image_dataset.py | KentJames/crocodile | 83c34c0530521774ba48063bb2357fc92a74d334 | [
"Apache-2.0"
] | 5 | 2015-03-19T12:15:08.000Z | 2015-06-19T12:51:26.000Z | scripts/image_dataset.py | KentJames/crocodile | 83c34c0530521774ba48063bb2357fc92a74d334 | [
"Apache-2.0"
] | 10 | 2015-03-05T18:21:19.000Z | 2018-07-30T02:04:23.000Z | #!/bin/env python3
import sys
import os
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(project_root)
import argparse
import h5py
import itertools
import numpy
import pylru
from multiprocessing import Process, Array, Queue
import ctypes
import arl.test_support
from crocodil... | 38.209205 | 103 | 0.611695 |
80aabb1ddedea47d5c34aa5cba9b2d4d107cdc8e | 328 | py | Python | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | spiders/SpiderThread.py | mazhen18/ScrapyAccordingISBN | 43f8362c117247e03659c61d267b8cef435e8b64 | [
"MIT"
] | null | null | null | import threading
from local_utils.scrapyutils import scrap_bookinfos
| 20.5 | 51 | 0.646341 |
80abd6f3fe8befc671d67477788549118eb7bfc2 | 2,953 | py | Python | test/test_maps.py | mancellin/labelled_functions | 4b6e1d646fbf5988ea2b522361fd792a7cbacd6f | [
"MIT"
] | 1 | 2021-04-26T04:42:53.000Z | 2021-04-26T04:42:53.000Z | test/test_maps.py | mancellin/labelled_functions | 4b6e1d646fbf5988ea2b522361fd792a7cbacd6f | [
"MIT"
] | null | null | null | test/test_maps.py | mancellin/labelled_functions | 4b6e1d646fbf5988ea2b522361fd792a7cbacd6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
import pytest
import numpy as np
import pandas as pd
import xarray as xr
from labelled_functions import label
from labelled_functions.maps import *
from example_functions import *
| 30.760417 | 122 | 0.511006 |
80abf46212f6da83161663ae23c53b1b475847f2 | 2,740 | py | Python | api/posts/models.py | flatcoke/django-structure | d0a7a7489d2f49c72ec4ec030f87c3942d84bb90 | [
"MIT"
] | 6 | 2019-02-27T14:16:48.000Z | 2021-08-12T23:47:13.000Z | api/posts/models.py | flatcoke/django-structure | d0a7a7489d2f49c72ec4ec030f87c3942d84bb90 | [
"MIT"
] | 3 | 2020-02-11T23:47:05.000Z | 2021-06-10T17:46:35.000Z | api/posts/models.py | flatcoke/django-structure | d0a7a7489d2f49c72ec4ec030f87c3942d84bb90 | [
"MIT"
] | 1 | 2019-07-24T12:02:02.000Z | 2019-07-24T12:02:02.000Z | from django.contrib.contenttypes.fields import GenericForeignKey, \
GenericRelation
from django.contrib.contenttypes.models import ContentType
from django.db import models as m
from django.utils.translation import ugettext_lazy as _
| 36.052632 | 80 | 0.637591 |
80ac180f9a1f733a4e347f78769bceb79ce6c95d | 719 | py | Python | examples/api_csv_to_file.py | gjpower/python-sdk | e2f1bd7078afe0ed13364037992477a13ca8e4dc | [
"MIT"
] | 18 | 2018-09-25T11:47:28.000Z | 2021-12-14T20:28:39.000Z | examples/api_csv_to_file.py | gjpower/python-sdk | e2f1bd7078afe0ed13364037992477a13ca8e4dc | [
"MIT"
] | 57 | 2018-11-08T12:40:30.000Z | 2022-03-31T13:01:19.000Z | examples/api_csv_to_file.py | gjpower/python-sdk | e2f1bd7078afe0ed13364037992477a13ca8e4dc | [
"MIT"
] | 34 | 2018-11-05T16:09:15.000Z | 2022-03-08T10:51:34.000Z | import os
from devo.api import Client, ClientConfig, TO_BYTES
key = os.getenv('DEVO_API_KEY', None)
secret = os.getenv('DEVO_API_SECRET', None)
api = Client(auth={"key": key, "secret": secret},
address="https://apiv2-eu.devo.com/search/query",
config=ClientConfig(response="csv",
... | 29.958333 | 72 | 0.584145 |
80ac6e530ef3e3ca2f4277c6ca59011dab2aece5 | 2,246 | py | Python | ovs/dal/lists/rolelist.py | mflu/openvstorage_centos | 280a98d3e5d212d58297e0ffcecd325dfecef0f8 | [
"Apache-2.0"
] | 1 | 2015-08-29T16:36:40.000Z | 2015-08-29T16:36:40.000Z | ovs/dal/lists/rolelist.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | ovs/dal/lists/rolelist.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 CloudFounders NV
#
# 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 writ... | 35.650794 | 103 | 0.59528 |
80ad6ed4380cff811437166d91bf4e659300cfcd | 5,776 | py | Python | urfiles/load.py | rikfaith/urfiles | 95319aae9e6400075cd5ee4a35b1f3a5e32eb571 | [
"MIT"
] | null | null | null | urfiles/load.py | rikfaith/urfiles | 95319aae9e6400075cd5ee4a35b1f3a5e32eb571 | [
"MIT"
] | null | null | null | urfiles/load.py | rikfaith/urfiles | 95319aae9e6400075cd5ee4a35b1f3a5e32eb571 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# load.py -*-python-*-
import csv
import io
import os
import re
import time
import urfiles.db
# pylint: disable=unused-import
from urfiles.log import DEBUG, INFO, ERROR, FATAL
| 32.818182 | 77 | 0.540166 |
80b3c7b4f629bbefdfd831c27a4993d38d32c777 | 2,656 | py | Python | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | ffg_geo/vector3.py | GarrettGutierrez1/FFG_Geo | 88a53407fbd7d0ae4908b4dfe4ee20f36be3d69f | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""vector3.py
Representation of a vector in 3D.
License:
http://www.apache.org/licenses/LICENSE-2.0"""
import math
| 30.181818 | 120 | 0.569277 |
80b3ded7af8cd9841983dca1a2e3c26add8a24cb | 2,109 | py | Python | tomoproc/util/logger.py | KedoKudo/tomoproc | b20270e87af4ce7459004a6ed928037ae8573b1e | [
"MIT"
] | 1 | 2020-07-19T21:12:33.000Z | 2020-07-19T21:12:33.000Z | tomoproc/util/logger.py | KedoKudo/xproc | b20270e87af4ce7459004a6ed928037ae8573b1e | [
"MIT"
] | null | null | null | tomoproc/util/logger.py | KedoKudo/xproc | b20270e87af4ce7459004a6ed928037ae8573b1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Event and exception handeling with logger
"""
import functools
import logging
def create_logger(logfile=r"/tmp/tomoproc.log"):
"""Default logger for exception tracking"""
logger = logging.getLogger("tomoproc_logger")
logger.setLevel(logging.INFO)
# ... | 28.12 | 104 | 0.596017 |
80b6a23d570751524a2f07ff3ef236f65d15c194 | 674 | py | Python | trivial-forms/caller_1.py | mykespb/damba | 1e16a6823fc2b307b023388f8dd61e5a83c6431b | [
"MIT"
] | null | null | null | trivial-forms/caller_1.py | mykespb/damba | 1e16a6823fc2b307b023388f8dd61e5a83c6431b | [
"MIT"
] | null | null | null | trivial-forms/caller_1.py | mykespb/damba | 1e16a6823fc2b307b023388f8dd61e5a83c6431b | [
"MIT"
] | null | null | null | #!python
# caller_1.py
# caller file for forms
# Mikhail Kolodin, 2020
# ver. 2020-02-27 1.0
from forms_1 import *
global_values = {'max': 5000, 'min': 100, 'name': 'Vasya'}
if __name__ == '__main__':
import sys
sys.exit(main(sys.argv))
| 21.741935 | 58 | 0.632047 |
80b76c60f3c086d23ccee1b13b44a713627c6e19 | 142 | py | Python | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null | web-programming/python/classes.py | KamalSinghKhanna/Web-Programming | 5c026ccca5b11257048f77ef95ff028c719e506a | [
"MIT"
] | null | null | null |
p = Point(2, 8)
print(p.x)
print(p.y) | 15.777778 | 39 | 0.570423 |
80b8a6cce37192bf40ffca015c22b4b54d5f60e3 | 3,614 | py | Python | sahara/config.py | hortonworksqe/sahara | b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270 | [
"Apache-2.0"
] | 1 | 2016-04-13T17:07:05.000Z | 2016-04-13T17:07:05.000Z | sahara/config.py | hortonworksqe/sahara | b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270 | [
"Apache-2.0"
] | null | null | null | sahara/config.py | hortonworksqe/sahara | b8edeaf2b6a475728bf9fd2ddc3a860dc6c23270 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2013 Mirantis 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 to in writ... | 33.775701 | 79 | 0.633647 |
80b8af7d0e63b2441f4f96ef7b409613e1e3bbf6 | 3,308 | py | Python | scripts/python/set_districts_on_parking_places.py | grvl/grvl.github.io | 1eff80b1dc01a612cc699f5f32e8ae342153e786 | [
"MIT"
] | null | null | null | scripts/python/set_districts_on_parking_places.py | grvl/grvl.github.io | 1eff80b1dc01a612cc699f5f32e8ae342153e786 | [
"MIT"
] | null | null | null | scripts/python/set_districts_on_parking_places.py | grvl/grvl.github.io | 1eff80b1dc01a612cc699f5f32e8ae342153e786 | [
"MIT"
] | null | null | null | """set_districts_on_parkgin_places.py
set the district from SP, on the parking place.
"""
import json
import math
from sp_districts import get_districts, get_district_from_point
_VAGAS_FILE = 'data/vagas/ZonaAzuVagas_DF_ID_latlong.json'
_OUTPUT_FILE_RAW = 'data/vagas/vagas_latlong.csv'
_OUTPUT_FILE_SCORED = 'data/v... | 28.273504 | 78 | 0.58283 |
80b9a3fc573c3c4f2095f1c187ca7ad44b7fa13f | 10,744 | py | Python | pybilt/bilayer_analyzer/leaflet.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-07-29T16:21:53.000Z | 2022-02-02T11:44:57.000Z | pybilt/bilayer_analyzer/leaflet.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 11 | 2019-05-15T09:30:05.000Z | 2021-07-19T16:49:59.000Z | pybilt/bilayer_analyzer/leaflet.py | blakeaw/ORBILT | ed402dd496534dccd00f3e75b57007d944c58c1d | [
"MIT"
] | 9 | 2019-08-12T11:14:45.000Z | 2020-12-22T18:22:55.000Z |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from builtins import object
# leaflet object
#@classmethod
#def leaflet_from_mda_frame
| 39.5 | 135 | 0.625558 |
80ba70e30ea60ba73100e502e98b6715cae9406e | 11,797 | py | Python | train_dqn.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | 2 | 2020-08-24T08:09:39.000Z | 2020-08-31T11:42:12.000Z | train_dqn.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | null | null | null | train_dqn.py | jamqd/EE239AS | d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285 | [
"MIT"
] | null | null | null | import torch
from torch import optim
import torch.nn.functional as F
from dqn import DQN
import run
import gym
import numpy as np
from trajectory_dataset import TrajectoryDataset
from torch.utils.tensorboard import SummaryWriter
from run import collect_trajectories
import os
import datetime
import qvalues
import random... | 36.981191 | 127 | 0.610325 |
80ba74d0606b498a8e643910a20eeff2e8a3db5b | 4,105 | py | Python | tests/ClientServer/interop_tools/client_sc_renew.py | workerVA/S2OPC | 9a5b6008559501f46a4bc079beea2d6655b1bfe5 | [
"ECL-2.0",
"Apache-2.0"
] | 8 | 2018-09-28T16:03:55.000Z | 2021-09-23T09:07:10.000Z | tests/ClientServer/interop_tools/client_sc_renew.py | workerVA/S2OPC | 9a5b6008559501f46a4bc079beea2d6655b1bfe5 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | tests/ClientServer/interop_tools/client_sc_renew.py | workerVA/S2OPC | 9a5b6008559501f46a4bc079beea2d6655b1bfe5 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-28T08:32:27.000Z | 2020-04-28T08:32:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Licensed to Systerel under one or more contributor license
# agreements. See the NOTICE file distributed with this work
# for additional information regarding copyright ownership.
# Systerel licenses this file to you under the Apache
# License, Version 2.0 (the "License... | 37.318182 | 111 | 0.703045 |
80bc2884ecba206ed21a7fb62256701a985367e5 | 832 | py | Python | roblox/promotionchannels.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 28 | 2021-11-04T11:13:38.000Z | 2022-03-11T05:00:16.000Z | roblox/promotionchannels.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 12 | 2021-11-24T06:25:24.000Z | 2022-03-18T14:37:01.000Z | roblox/promotionchannels.py | speer-kinjo/ro.py | 2d5b80aec8fd143b11101fbbfdf3b557f798a27f | [
"MIT"
] | 21 | 2021-10-20T16:36:55.000Z | 2022-03-27T21:43:53.000Z | """
This module contains classes intended to parse and deal with data from Roblox promotion channel endpoints.
"""
from typing import Optional
| 27.733333 | 106 | 0.652644 |
80bcc9aff7166b320e85d3dea2785530a717ef20 | 1,256 | py | Python | training/Toxic_CNN1_MCD.py | jsandersen/CMT | 1be6e36b9a6042386395bc654c9dd4b579e6ce6d | [
"Apache-2.0"
] | null | null | null | training/Toxic_CNN1_MCD.py | jsandersen/CMT | 1be6e36b9a6042386395bc654c9dd4b579e6ce6d | [
"Apache-2.0"
] | null | null | null | training/Toxic_CNN1_MCD.py | jsandersen/CMT | 1be6e36b9a6042386395bc654c9dd4b579e6ce6d | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
tf.compat.v1.disable_v2_behavior()
from src.datasets.toxic import Toxic
from src.models.cnn1 import getCNN1
from src.models.predict import predict_mcdropout
import tensorflow as tf | 22.035088 | 83 | 0.636146 |
80be7ef53052c878fdc38ea2f892c9d1a8f45ee3 | 1,691 | py | Python | pal.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null | pal.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null | pal.py | pfreese/py_test | bf1cb713d63259c8b6db666924b69bd101b55674 | [
"MIT"
] | null | null | null |
print(longestPalindrome("aaaa"))
| 28.183333 | 90 | 0.591957 |
80bece861972253f223e4ca2fe5fcdbcc32983b7 | 8,437 | py | Python | ignite/contrib/handlers/time_profilers.py | Patil2099/ignite | 5d01c306150345e081b41b9b623bd04a3f599448 | [
"BSD-3-Clause"
] | null | null | null | ignite/contrib/handlers/time_profilers.py | Patil2099/ignite | 5d01c306150345e081b41b9b623bd04a3f599448 | [
"BSD-3-Clause"
] | null | null | null | ignite/contrib/handlers/time_profilers.py | Patil2099/ignite | 5d01c306150345e081b41b9b623bd04a3f599448 | [
"BSD-3-Clause"
] | null | null | null | from collections import OrderedDict
import torch
from ignite.engine import Engine, Events
from ignite.handlers import Timer
| 35.154167 | 112 | 0.644779 |
80bfb4b7a7a0c88d0a0cf52ced86fbe80cb85e15 | 4,678 | py | Python | hopla/tests/test_converter.py | AGrigis/hopla | 60147969267b8bf71aec774053d33fa797e2f668 | [
"CECILL-B"
] | null | null | null | hopla/tests/test_converter.py | AGrigis/hopla | 60147969267b8bf71aec774053d33fa797e2f668 | [
"CECILL-B"
] | null | null | null | hopla/tests/test_converter.py | AGrigis/hopla | 60147969267b8bf71aec774053d33fa797e2f668 | [
"CECILL-B"
] | null | null | null | #! /usr/bin/env python
##########################################################################
# Hopla - Copyright (C) AGrigis, 2015
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.ht... | 42.144144 | 78 | 0.551945 |
80bff1f35b026d788a822b1166f2ed86dd9836a7 | 999 | py | Python | quartz_metadata/handlers/on_mint.py | dipdup-net/quartz-metadata | 78b90319359cbc641abdbbbfbf2fec59e601429b | [
"MIT"
] | null | null | null | quartz_metadata/handlers/on_mint.py | dipdup-net/quartz-metadata | 78b90319359cbc641abdbbbfbf2fec59e601429b | [
"MIT"
] | null | null | null | quartz_metadata/handlers/on_mint.py | dipdup-net/quartz-metadata | 78b90319359cbc641abdbbbfbf2fec59e601429b | [
"MIT"
] | null | null | null | from dipdup.context import HandlerContext
from dipdup.models import Transaction
from tortoise.exceptions import IntegrityError
from quartz_metadata.manager import ResolveMetadataTaskManager
from quartz_metadata.models import ResolveToken
from quartz_metadata.types.ubisoft_quartz_minter.parameter.mint import MintParame... | 31.21875 | 84 | 0.76977 |
80c11af0a9e842802c77c72389868b3417a646eb | 87 | py | Python | sam-app/sam-checker/get_contents.py | Aishwarya26l/sam-testing | bb2d78944ba5f816edc4de7d48a57c00bc4dfc21 | [
"MIT"
] | null | null | null | sam-app/sam-checker/get_contents.py | Aishwarya26l/sam-testing | bb2d78944ba5f816edc4de7d48a57c00bc4dfc21 | [
"MIT"
] | null | null | null | sam-app/sam-checker/get_contents.py | Aishwarya26l/sam-testing | bb2d78944ba5f816edc4de7d48a57c00bc4dfc21 | [
"MIT"
] | 1 | 2019-10-22T02:48:04.000Z | 2019-10-22T02:48:04.000Z | import os
| 14.5 | 54 | 0.678161 |
80c133884608c388783cc004a5ae950066a8bd8a | 1,161 | py | Python | app/gws/lib/ows/formats/get_feature_info_response.py | gbd-consult/gbd-websuite | 7212f41081c04614fdb4641e902d4de3424da8c5 | [
"Apache-2.0"
] | 3 | 2020-07-24T10:10:18.000Z | 2022-03-16T10:22:04.000Z | app/gws/lib/ows/formats/get_feature_info_response.py | gbd-consult/gbd-websuite | 7212f41081c04614fdb4641e902d4de3424da8c5 | [
"Apache-2.0"
] | 28 | 2020-03-03T17:35:58.000Z | 2021-07-12T12:05:47.000Z | app/gws/lib/ows/formats/get_feature_info_response.py | gbd-consult/gbd-websuite | 7212f41081c04614fdb4641e902d4de3424da8c5 | [
"Apache-2.0"
] | 1 | 2021-02-22T14:32:10.000Z | 2021-02-22T14:32:10.000Z | import gws.lib.feature
import gws.lib.shape
import gws.lib.xml2
# geoserver
#
# <GetFeatureInfoResponse>
# <Layer name="....">
# <Feature id="...">
# <Attribute name="..." value="..."/>
# <Attribute name="geometry" value="wkt"/>
| 27 | 73 | 0.511628 |
80c177317b86f12b3cc0d167ca3f3fa31354fb1d | 981 | py | Python | parkingsystem/migrations/0016_auto_20180702_1618.py | magaust/jaipurSmartPark | 03430a885f1e98badf852985c5b4ba4db2b3795c | [
"MIT"
] | null | null | null | parkingsystem/migrations/0016_auto_20180702_1618.py | magaust/jaipurSmartPark | 03430a885f1e98badf852985c5b4ba4db2b3795c | [
"MIT"
] | null | null | null | parkingsystem/migrations/0016_auto_20180702_1618.py | magaust/jaipurSmartPark | 03430a885f1e98badf852985c5b4ba4db2b3795c | [
"MIT"
] | 1 | 2018-09-06T17:30:51.000Z | 2018-09-06T17:30:51.000Z | # Generated by Django 2.0.6 on 2018-07-02 10:48
from django.db import migrations, models
| 28.852941 | 70 | 0.600408 |
80c2a4c56b25c8d0daa6417069d865c0369c616f | 1,287 | py | Python | imagefilter/imagefilter-rank.py | martinmcbride/python-imaging-book-examples | 37e4ccf9b7b2fc3ff75b1fdb9f772de452a843b2 | [
"MIT"
] | 1 | 2021-08-22T17:09:44.000Z | 2021-08-22T17:09:44.000Z | imagefilter/imagefilter-rank.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | null | null | null | imagefilter/imagefilter-rank.py | sthagen/python-imaging-book-examples | 2a079c5271f9849bc90a33bed6f3288142035ea7 | [
"MIT"
] | 1 | 2021-08-22T17:09:48.000Z | 2021-08-22T17:09:48.000Z | # Author: Martin McBride
# Created: 2021-05-23
# Copyright (C) 2021, Martin McBride
# License: MIT
# Use the ranking filters.
# Create a final image with all the filters.
from PIL import Image, ImageFilter, ImageDraw, ImageFont
image = Image.open('boat-small.jpg')
min_image = image.filter(ImageFilter.MinFilter())
m... | 29.25 | 56 | 0.706294 |
80c334bb39045d805035eb994c6817b18dd7c10e | 4,974 | py | Python | prepare_training_dataset.py | Koziev/masked_np_language_model | b2173682adb77b424ffa192f3030d8c8e78e88e2 | [
"CC0-1.0"
] | null | null | null | prepare_training_dataset.py | Koziev/masked_np_language_model | b2173682adb77b424ffa192f3030d8c8e78e88e2 | [
"CC0-1.0"
] | 1 | 2022-03-04T14:48:02.000Z | 2022-03-04T15:21:37.000Z | prepare_training_dataset.py | Koziev/masked_np_language_model | b2173682adb77b424ffa192f3030d8c8e78e88e2 | [
"CC0-1.0"
] | null | null | null | """
ruT5 ruGPT, NP .
UDPipe .
ATT: , .
, . . read_corpus1.
"""
import glob
import io
import os
import random
import pyconll
from ufal.udpipe import Model, Pipeline, ProcessingError
import extractors
def read_corpora2():
"""
line-by-line
"""
fnames =... | 40.112903 | 163 | 0.567752 |
80c3575c2734a1ea3e2894cddf66ae5e01537fa7 | 601 | py | Python | server/loaddata.py | deb17/nearby-places | 0d05f888f3c90cd021c67d446bc16ccb59efc8bc | [
"MIT"
] | null | null | null | server/loaddata.py | deb17/nearby-places | 0d05f888f3c90cd021c67d446bc16ccb59efc8bc | [
"MIT"
] | 6 | 2021-03-09T13:19:32.000Z | 2022-02-26T15:52:16.000Z | server/loaddata.py | deb17/nearby-places | 0d05f888f3c90cd021c67d446bc16ccb59efc8bc | [
"MIT"
] | null | null | null | import csv
from app import db
from app.models import Feature
if __name__ == '__main__':
with open('features.csv', newline='') as infile:
reader = csv.reader(infile)
for row in reader:
process_row(row)
| 25.041667 | 58 | 0.567388 |
80c840becea67eb126d76791a8e10c1596e705d5 | 2,918 | py | Python | src/com/inductiveautomation/ignition/common/__init__.py | thecesrom/8.1 | 0a0fa304137d9eca3e9fd8517b2c9569243121e4 | [
"MIT"
] | 1 | 2022-03-16T23:22:27.000Z | 2022-03-16T23:22:27.000Z | src/com/inductiveautomation/ignition/common/__init__.py | thecesrom/8.1 | 0a0fa304137d9eca3e9fd8517b2c9569243121e4 | [
"MIT"
] | 4 | 2022-03-15T21:33:46.000Z | 2022-03-22T21:25:18.000Z | src/com/inductiveautomation/ignition/common/__init__.py | thecesrom/7.9 | 6dc59a1e920382345837d620907578b35fe7e96b | [
"MIT"
] | 2 | 2022-03-16T18:26:29.000Z | 2022-03-28T20:12:56.000Z | __all__ = ["AbstractDataset", "BasicDataset", "Dataset"]
| 21.455882 | 74 | 0.655243 |
80c8628f774c95ee9df7395733a5d80589d0278f | 2,234 | py | Python | detection_ctpn/utils/tf_utils.py | EuphoriaYan/Chinese-ancient-book-recognition-HSK | 865736d16389037f555f0eea7ec6c4ab7e4319c9 | [
"Apache-2.0"
] | null | null | null | detection_ctpn/utils/tf_utils.py | EuphoriaYan/Chinese-ancient-book-recognition-HSK | 865736d16389037f555f0eea7ec6c4ab7e4319c9 | [
"Apache-2.0"
] | null | null | null | detection_ctpn/utils/tf_utils.py | EuphoriaYan/Chinese-ancient-book-recognition-HSK | 865736d16389037f555f0eea7ec6c4ab7e4319c9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
File Name tf_utils
Description : tensorflow
Author : mick.yi
date 2019/3/13
"""
import tensorflow as tf
def pad_to_fixed_size(input_tensor, fixed_size):
"""padding, padding_flag, no_pad:1, pad:0.
Parameter:
input_tensor:
"""
inp... | 25.976744 | 93 | 0.562668 |
80c94708b0f74b66e6d49ed413132347b371694e | 291 | py | Python | InterviewBit/Scripting/TransformCSV.py | CRAZYGEEKS04/competitive-programming-1 | f27b8a718761b7bfeb8ff9e294398ca1a294cb5d | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | InterviewBit/Scripting/TransformCSV.py | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 1 | 2020-10-10T16:14:54.000Z | 2020-10-10T16:14:54.000Z | InterviewBit/Scripting/TransformCSV.py | gauravsingh58/competitive-programming | fa5548f435cdf2aa059e1d6ab733885790c6a592 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | while True :
try :
text = input()
arr = text.split(',')
for i in range(len(arr)) :
if i == 4 :
continue
if i == 6 :
print("+", end = "")
print(arr[4], end = "-")
print(arr[6], end = "")
else :
print(arr[i], end = ",")
print()
except EOFError :
break
| 17.117647 | 28 | 0.474227 |
80c9f68534b6e93dc236ef38e36dca90fb996522 | 15,621 | py | Python | response_model/python/metric_learning/metric_eval.py | googlearchive/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | 1 | 2018-09-18T16:47:09.000Z | 2018-09-18T16:47:09.000Z | response_model/python/metric_learning/metric_eval.py | google/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | null | null | null | response_model/python/metric_learning/metric_eval.py | google/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | 1 | 2022-01-12T12:44:17.000Z | 2022-01-12T12:44:17.000Z | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 41.991935 | 116 | 0.626272 |
80ccacda9ed617aea8bee5d29e3d10548c5a83e0 | 9,922 | py | Python | functionTerms/membraneTerms.py | XingchengLin/openawsem | a9f155d72e359b76d350e6d4c2ee476410ebe4c6 | [
"MIT"
] | 1 | 2020-12-22T02:52:26.000Z | 2020-12-22T02:52:26.000Z | functionTerms/membraneTerms.py | XingchengLin/openawsem | a9f155d72e359b76d350e6d4c2ee476410ebe4c6 | [
"MIT"
] | null | null | null | functionTerms/membraneTerms.py | XingchengLin/openawsem | a9f155d72e359b76d350e6d4c2ee476410ebe4c6 | [
"MIT"
] | null | null | null | from simtk.openmm.app import *
from simtk.openmm import *
from simtk.unit import *
import numpy as np
| 43.327511 | 180 | 0.664382 |
80cd12bb7a5b93faddb12652ac494f409752a60f | 8,192 | py | Python | apps/graph.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | 9 | 2021-01-08T05:21:38.000Z | 2021-12-10T12:35:59.000Z | apps/graph.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | null | null | null | apps/graph.py | csgobeta/csgobetabot | 4d37b0eb166d500869d9b271d417b61e95333824 | [
"MIT"
] | 2 | 2021-01-14T21:58:46.000Z | 2022-01-23T23:21:15.000Z | import sys
import os
import inspect
currentdir = os.path.dirname(os.path.abspath(
inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import seaborn as sns
import pandas as pd
from datetim... | 41.373737 | 111 | 0.521606 |
80cd34d4c3de75f8809daa825ae704111f692f54 | 36 | py | Python | invMLEnc_toy/loss/__init__.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | 1 | 2021-12-14T09:16:17.000Z | 2021-12-14T09:16:17.000Z | invMLEnc_toy/loss/__init__.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | null | null | null | invMLEnc_toy/loss/__init__.py | Lupin1998/inv-ML | 9f3db461911748292dff18024587538eb66d44bf | [
"MIT"
] | 2 | 2021-12-14T09:10:00.000Z | 2022-01-21T16:57:44.000Z | # Loss for AE, VAE, ML-AE, Inv-ML-AE | 36 | 36 | 0.638889 |
80cd62ec15badfd33866992ef09a6d8c71ac2b2f | 5,443 | py | Python | vicarui/src/vicarui/analysis/missions/cassini/set_info.py | joniumGit/moons | f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85 | [
"MIT"
] | 1 | 2021-07-16T06:30:37.000Z | 2021-07-16T06:30:37.000Z | vicarui/src/vicarui/analysis/missions/cassini/set_info.py | joniumGit/moons | f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85 | [
"MIT"
] | null | null | null | vicarui/src/vicarui/analysis/missions/cassini/set_info.py | joniumGit/moons | f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85 | [
"MIT"
] | 1 | 2021-05-26T03:53:41.000Z | 2021-05-26T03:53:41.000Z | from .config import *
from .funcs import norm, target_estimate
from .helpers import ImageHelper
from ...common import load_kernels_for_image, release_kernels
from ....support import sci_2
__all__ = ['set_info']
| 40.924812 | 105 | 0.482271 |
80cddf253a619a7f9e2bea2ab9271db73ba0ccb6 | 2,187 | py | Python | python/tvm/contrib/msir/core/utils/info.py | Archermmt/tvm | 8b900cec1a9c3cb453e159db4d497ebeb26ed289 | [
"Apache-2.0"
] | null | null | null | python/tvm/contrib/msir/core/utils/info.py | Archermmt/tvm | 8b900cec1a9c3cb453e159db4d497ebeb26ed289 | [
"Apache-2.0"
] | null | null | null | python/tvm/contrib/msir/core/utils/info.py | Archermmt/tvm | 8b900cec1a9c3cb453e159db4d497ebeb26ed289 | [
"Apache-2.0"
] | null | null | null | import tvm
import logging
import numpy as np
from collections.abc import Iterable
from .namespace import MSIR_COLLECTION,MSIR_NAME,MSIR_TARGET
| 30.375 | 141 | 0.666667 |
80cf8406717293e85d168ad077e6680849900737 | 2,072 | py | Python | src/python/dicomifier/bruker_to_dicom/modules/series.py | DimitriPapadopoulos/dicomifier | 708e4e1c932f6411200aa010f857823dfcc495f1 | [
"CECILL-B"
] | null | null | null | src/python/dicomifier/bruker_to_dicom/modules/series.py | DimitriPapadopoulos/dicomifier | 708e4e1c932f6411200aa010f857823dfcc495f1 | [
"CECILL-B"
] | null | null | null | src/python/dicomifier/bruker_to_dicom/modules/series.py | DimitriPapadopoulos/dicomifier | 708e4e1c932f6411200aa010f857823dfcc495f1 | [
"CECILL-B"
] | null | null | null | #########################################################################
# Dicomifier - Copyright (C) Universite de Strasbourg
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for... | 42.285714 | 76 | 0.56805 |
80cf9b726d141aa64359a81571dc5cc74e78eff7 | 12,365 | py | Python | TranskribusDU/tasks/TablePrototypes/DU_ABPTableSkewed_txtTOMBS_sepSIO_line.py | Transkribus/TranskribusDU | 61028ee5f5f39f435bf9c461f8073e75bca344ac | [
"BSD-3-Clause"
] | 20 | 2017-01-24T20:08:25.000Z | 2021-10-30T15:20:44.000Z | TranskribusDU/tasks/TablePrototypes/DU_ABPTableSkewed_txtTOMBS_sepSIO_line.py | Transkribus/TranskribusDU | 61028ee5f5f39f435bf9c461f8073e75bca344ac | [
"BSD-3-Clause"
] | 11 | 2017-06-27T11:41:42.000Z | 2020-10-12T04:59:25.000Z | TranskribusDU/tasks/TablePrototypes/DU_ABPTableSkewed_txtTOMBS_sepSIO_line.py | Transkribus/TranskribusDU | 61028ee5f5f39f435bf9c461f8073e75bca344ac | [
"BSD-3-Clause"
] | 5 | 2017-01-12T15:55:34.000Z | 2019-10-10T05:13:20.000Z | # -*- coding: utf-8 -*-
"""
***
Labelling is T O M B S
It depends on the distance between the baseline and its above and below valid (S) cut
Cuts are SIO
Copyright Naver Labs Europe(C) 2018 JL Meunier
Developed for the EU project READ. The READ project has received fun... | 39.006309 | 135 | 0.510069 |
80cfa666e310014576d03dad3c75588c0786534a | 574 | py | Python | LeetCode/2044. Count Number of Maximum Bitwise-OR Subsets/solution.py | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 1 | 2017-03-31T15:24:01.000Z | 2017-03-31T15:24:01.000Z | LeetCode/2044. Count Number of Maximum Bitwise-OR Subsets/solution.py | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | LeetCode/2044. Count Number of Maximum Bitwise-OR Subsets/solution.py | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | """
111 / 111 test cases passed.
Runtime: 440 ms
Memory Usage: 14.9 MB
"""
| 26.090909 | 56 | 0.444251 |
80d072dd7f1dfab164b7c6fe152a6fe9d577cdab | 111,008 | py | Python | src/libraries/reactive_planner_lib.py | vvasilo/semnav | e1141035fa4ea8ad3d5f077198a141209693625b | [
"MIT"
] | 10 | 2020-02-28T22:26:55.000Z | 2021-12-14T08:34:18.000Z | src/libraries/reactive_planner_lib.py | KodlabPenn/semnav | 489cfe203516e359cc488740b99c8e208a757c2d | [
"MIT"
] | 1 | 2020-08-24T23:37:51.000Z | 2021-11-10T14:29:34.000Z | src/libraries/reactive_planner_lib.py | vvasilo/semnav | e1141035fa4ea8ad3d5f077198a141209693625b | [
"MIT"
] | 3 | 2020-02-27T20:22:57.000Z | 2022-01-21T12:58:32.000Z | #!/usr/bin/env python
"""
MIT License (modified)
Copyright (c) 2020 The Trustees of the University of Pennsylvania
Authors:
Vasileios Vasilopoulos <vvasilo@seas.upenn.edu>
Omur Arslan <omur@seas.upenn.edu>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this **file** (the "Software"),... | 61.432208 | 1,155 | 0.628982 |
80d0c88dd8f53a8f60bd96e1c996107c2f40ffba | 33,529 | py | Python | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | Manage/VM.py | btalebali/pysphere | cda8bbc480f9942911fb8f9c7f3c5c9a4da8bd43 | [
"Unlicense"
] | null | null | null | from time import sleep
from pysphere import VITask, FaultTypes
from pysphere.vi_virtual_machine import VIVirtualMachine
from pysphere.resources.vi_exception import VIException, VIApiException
from pysphere.vi_mor import VIMor
from pysphere.vi_task import VITask
import ssl
import pypacksrc
import re, subprocess
... | 35.442918 | 192 | 0.744609 |
80d4ab9196ae0d1428afc7cb93d38dd105b47bce | 3,717 | py | Python | ikalog/utils/icon_recoginizer/weapon.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 285 | 2015-08-15T14:38:38.000Z | 2022-02-18T15:00:06.000Z | ikalog/utils/icon_recoginizer/weapon.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 323 | 2015-09-24T12:21:34.000Z | 2018-05-06T16:34:54.000Z | ikalog/utils/icon_recoginizer/weapon.py | fetus-hina/IkaLog | bd476da541fcc296f792d4db76a6b9174c4777ad | [
"Apache-2.0"
] | 72 | 2015-08-22T00:18:54.000Z | 2022-02-18T14:44:20.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# IkaLog
# ======
# Copyright (C) 2015 Takeshi HASEGAWA
#
# 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/l... | 31.235294 | 75 | 0.641377 |
80d598d25cb928d4e75ce7a8868f16d8dbc96650 | 11,867 | py | Python | code/pytorch/utils/mujoco_solver.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | 1 | 2021-11-22T07:45:28.000Z | 2021-11-22T07:45:28.000Z | code/pytorch/utils/mujoco_solver.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | code/pytorch/utils/mujoco_solver.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | import math
import os
import random
import numpy as np
import torch
from tensorboardX import SummaryWriter
from tqdm import tqdm
from ..methods import DDPG, TD3, SAC
from envs.abb.models import utils
| 42.08156 | 109 | 0.555911 |
80d5c63ff69dba8134d7d97f4b5da991272fad1f | 8,536 | py | Python | test/partial_log/test_partial_log.py | splunk/docker-logging-plugin | 6a5816b4ccba58c33e431b3c763442da65c2a5b3 | [
"Apache-2.0"
] | 63 | 2017-10-19T16:44:05.000Z | 2022-02-18T23:22:12.000Z | test/partial_log/test_partial_log.py | splunk/docker-logging-plugin | 6a5816b4ccba58c33e431b3c763442da65c2a5b3 | [
"Apache-2.0"
] | 41 | 2017-12-05T12:30:05.000Z | 2022-01-11T21:06:58.000Z | test/partial_log/test_partial_log.py | splunk/docker-logging-plugin | 6a5816b4ccba58c33e431b3c763442da65c2a5b3 | [
"Apache-2.0"
] | 27 | 2017-11-21T09:45:25.000Z | 2022-03-27T09:45:42.000Z | """
Copyright 2018 Splunk, 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 to in writing, softwar... | 39.88785 | 121 | 0.606256 |
80d633265d624cde24edd4834e3b41df832a67e1 | 639 | py | Python | executables/pickle_dictionary_structure_viewer.py | mjvandermeulen/rpi-automation | 0b328cab8876929e46235482d217dc4771dfdc6a | [
"MIT"
] | null | null | null | executables/pickle_dictionary_structure_viewer.py | mjvandermeulen/rpi-automation | 0b328cab8876929e46235482d217dc4771dfdc6a | [
"MIT"
] | null | null | null | executables/pickle_dictionary_structure_viewer.py | mjvandermeulen/rpi-automation | 0b328cab8876929e46235482d217dc4771dfdc6a | [
"MIT"
] | null | null | null | #!/usr/local/bin/env python3
import sys
# TODO: This is more generic than just for temperatures!
import temperature.temperature_file_tools
try:
filename = sys.argv[1]
except IndexError:
print("please provide filename as first and only argument")
else:
try:
data_gen = temperature.temperature_file_... | 29.045455 | 111 | 0.674491 |
80d6549d6455eb3b023025b15786be0473b6bbe6 | 641 | py | Python | code_example/w2_genMeanSd.py | koonyook/unsupervised-phase-supplementary | 09ee8000c79465da8731b5323f2db9a25d7252ab | [
"MIT"
] | null | null | null | code_example/w2_genMeanSd.py | koonyook/unsupervised-phase-supplementary | 09ee8000c79465da8731b5323f2db9a25d7252ab | [
"MIT"
] | null | null | null | code_example/w2_genMeanSd.py | koonyook/unsupervised-phase-supplementary | 09ee8000c79465da8731b5323f2db9a25d7252ab | [
"MIT"
] | null | null | null | import numpy as np
import pickle
#this file will do
#1. read from list of .pkl files that will become training data
#2. save wMean.dat and wSd.dat
for input in ["inputHeart/","inputBow/","inputAcrobat/"]:
fileList=[
'data_train.pkl',
]
collect=[]
for f in fileList:
#data=np.load('input/'+f) #(2,-)
dataLis... | 22.103448 | 63 | 0.687988 |
80d6b3fdb21cbf34c945220abf23ee4dc73841af | 10,553 | py | Python | metadrive/component/road_network/node_road_network.py | liuzuxin/metadrive | 850c207536531bc85179084acd7c30ab14a66111 | [
"Apache-2.0"
] | 125 | 2021-08-30T06:33:57.000Z | 2022-03-31T09:02:44.000Z | metadrive/component/road_network/node_road_network.py | liuzuxin/metadrive | 850c207536531bc85179084acd7c30ab14a66111 | [
"Apache-2.0"
] | 72 | 2021-08-30T16:23:41.000Z | 2022-03-31T19:17:16.000Z | metadrive/component/road_network/node_road_network.py | liuzuxin/metadrive | 850c207536531bc85179084acd7c30ab14a66111 | [
"Apache-2.0"
] | 20 | 2021-09-09T08:20:25.000Z | 2022-03-24T13:24:07.000Z | import copy
import logging
from typing import List, Tuple, Dict
import numpy as np
from metadrive.component.lane.abs_lane import AbstractLane
from metadrive.component.road_network.road import Road
from metadrive.component.road_network.base_road_network import BaseRoadNetwork
from metadrive.constants import Decoration
... | 39.376866 | 120 | 0.607221 |
80d8125a476591f35f2ad71b32650a81f028ecab | 1,468 | py | Python | generic_ui/RawTextWidget.py | STMicroelectronics/stm32ai-datalogger | 0ba92ced44248e606a5cc68139fdfdc84489fa17 | [
"BSD-3-Clause"
] | 3 | 2021-06-28T13:41:12.000Z | 2021-07-21T13:06:34.000Z | generic_ui/RawTextWidget.py | STMicroelectronics/stm32ai-datalogger | 0ba92ced44248e606a5cc68139fdfdc84489fa17 | [
"BSD-3-Clause"
] | null | null | null | generic_ui/RawTextWidget.py | STMicroelectronics/stm32ai-datalogger | 0ba92ced44248e606a5cc68139fdfdc84489fa17 | [
"BSD-3-Clause"
] | null | null | null | ###################################################################################
# Copyright (c) 2020-2021 STMicroelectronics.
# All rights reserved.
# This software is licensed under terms that can be found in the LICENSE file in
# the root directory of this software component.
# If no LICENSE file c... | 38.631579 | 84 | 0.620572 |
80d85c5b681feaaae88320d1df947e572214adbf | 1,905 | py | Python | apps/trade/api/views.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 2 | 2021-08-17T13:29:21.000Z | 2021-09-04T05:00:01.000Z | apps/trade/api/views.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 1 | 2020-07-16T11:22:32.000Z | 2020-07-16T11:22:32.000Z | apps/trade/api/views.py | dryprojects/MyBlog | ec04ba2bc658e96cddeb1d4766047ca8e89ff656 | [
"BSD-3-Clause"
] | 1 | 2020-09-18T10:41:59.000Z | 2020-09-18T10:41:59.000Z | #!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author: nico
@file: views.py
@time: 2018/08/16
"""
from rest_framework import viewsets, mixins, filters, permissions, status, response
from rest_framework.decorators import action
from dry_rest_permissions.generics import DRYPermissions, DRYGlobalPer... | 30.725806 | 150 | 0.733333 |
80d88468c8e7365b40222afca17976c053b6b8f3 | 7,243 | py | Python | test_QueryPharos.py | kevinxin90/RTX_BioThings_Explorer | 16de49de9e0db75c7616a85c2592166ea055faa7 | [
"Apache-2.0"
] | 1 | 2018-05-24T13:16:57.000Z | 2018-05-24T13:16:57.000Z | test_QueryPharos.py | kevinxin90/RTX_BioThings_Explorer | 16de49de9e0db75c7616a85c2592166ea055faa7 | [
"Apache-2.0"
] | 1 | 2018-06-01T02:04:23.000Z | 2018-06-01T20:21:32.000Z | test_QueryPharos.py | kevinxin90/RTX_BioThings_Explorer | 16de49de9e0db75c7616a85c2592166ea055faa7 | [
"Apache-2.0"
] | null | null | null | import unittest
from QueryPharos import QueryPharos
if __name__ == '__main__':
unittest.main()
| 52.107914 | 114 | 0.54425 |
80d969efc16e2fceb81dc2c5f9ae3ec495eea52f | 2,016 | py | Python | setup.py | MyGodIsHe/..-pytest-neo | 5a7d3ef6754c03afeb01db189a80c55bba538de6 | [
"MIT"
] | 45 | 2019-03-07T12:12:11.000Z | 2022-02-01T09:36:30.000Z | setup.py | MyGodIsHe/..-pytest-neo | 5a7d3ef6754c03afeb01db189a80c55bba538de6 | [
"MIT"
] | 6 | 2019-03-14T09:37:51.000Z | 2020-12-01T21:30:15.000Z | setup.py | MyGodIsHe/..-pytest-neo | 5a7d3ef6754c03afeb01db189a80c55bba538de6 | [
"MIT"
] | 1 | 2019-03-30T22:45:58.000Z | 2019-03-30T22:45:58.000Z | from setuptools import setup
import codecs
# Copied from (and hacked):
# https://github.com/pypa/virtualenv/blob/develop/setup.py#L42
with open("README.rst", "r") as fh:
long_description = fh.read()
setup(
name='pytest-neo',
description=(
'pytest-neo is a plugin for pytest that shows '
... | 31.5 | 68 | 0.609623 |
80da5c32e637d7a9cc6af9fdd36bc9ca02fad468 | 10,646 | py | Python | ref_bot/cog/articlerefs.py | tser0f/ref_bot | 8945992ec8802a88546494b503d7658cc53d80c5 | [
"MIT"
] | null | null | null | ref_bot/cog/articlerefs.py | tser0f/ref_bot | 8945992ec8802a88546494b503d7658cc53d80c5 | [
"MIT"
] | 1 | 2020-07-02T13:37:44.000Z | 2020-07-07T03:09:50.000Z | ref_bot/cog/articlerefs.py | tser0f/ref_bot | 8945992ec8802a88546494b503d7658cc53d80c5 | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from ref_bot.data_models import Article, Tag, ArticleOwner
from ref_bot.article_scraper import scrape_article
| 43.453061 | 191 | 0.603231 |
80db105d2fbce95f913926d6c0488904c36ac253 | 694 | py | Python | utils/metrics.py | mhubrich/parkingCV | 258b60d6cdaa57e47b4f2e79c9afc654d0e930fc | [
"MIT"
] | null | null | null | utils/metrics.py | mhubrich/parkingCV | 258b60d6cdaa57e47b4f2e79c9afc654d0e930fc | [
"MIT"
] | null | null | null | utils/metrics.py | mhubrich/parkingCV | 258b60d6cdaa57e47b4f2e79c9afc654d0e930fc | [
"MIT"
] | null | null | null | import numpy as np
import sklearn.metrics
| 23.931034 | 69 | 0.721902 |
80dbb36c04a0a7b7f2f8a91aa3f142e7ee6319a9 | 3,015 | py | Python | baxter_ras_interface/scripts/backuplistgame.py | gabrieldiaz94/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | 1 | 2022-03-06T15:47:33.000Z | 2022-03-06T15:47:33.000Z | baxter_ras_interface/scripts/backuplistgame.py | willandru/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | null | null | null | baxter_ras_interface/scripts/backuplistgame.py | willandru/RAS-Baxter-Interface | 7766d012617bffd09e42b6b76ea105fb3fe24481 | [
"Apache-2.0"
] | 1 | 2022-03-06T15:46:37.000Z | 2022-03-06T15:46:37.000Z | #!/usr/bin/env python
#Reference: the baxter_stocking_stuffer project by students in Northwestern's MSR program - Josh Marino, Sabeen Admani, Andrew Turchina and Chu-Chu Igbokwe
#Service provided - ObjLocation service - contains x,y,z coordinates of object in baxter's stationary body frame, whether it is ok to grasp an... | 31.736842 | 187 | 0.698176 |
80ddf655508d2be40c8e5c54e5d6ece64390a188 | 410 | py | Python | smartcar/__init__.py | matteosandrin/python-sdk | 45499d5787e4df5e908b6efa52ef95847c7bb6b6 | [
"MIT"
] | null | null | null | smartcar/__init__.py | matteosandrin/python-sdk | 45499d5787e4df5e908b6efa52ef95847c7bb6b6 | [
"MIT"
] | null | null | null | smartcar/__init__.py | matteosandrin/python-sdk | 45499d5787e4df5e908b6efa52ef95847c7bb6b6 | [
"MIT"
] | null | null | null | __version__ = '1.0.12'
from .smartcar import (AuthClient, is_expired, get_user_id, get_vehicle_ids)
from .vehicle import Vehicle
from .exceptions import (
SmartcarException, ValidationException, AuthenticationException,
PermissionException, ResourceNotFoundException, StateException,
RateLimitingException, ... | 37.272727 | 76 | 0.82439 |
80ddf73885657b81588970d4b5f8599da4c9b6a7 | 2,060 | py | Python | Discord Webhook Automation/discord_webhook.py | zYxDevs/Python_Scripts | 74ed7df97c9287b966b4139f585ed3a1702f2d29 | [
"MIT"
] | 14 | 2021-10-02T14:17:06.000Z | 2021-11-08T10:17:14.000Z | Discord Webhook Automation/discord_webhook.py | Naik-G/Python_Scripts | cd975036e126982aaa01da48c94cec1759af6d61 | [
"MIT"
] | 4 | 2021-10-03T05:35:11.000Z | 2021-10-06T18:05:05.000Z | Discord Webhook Automation/discord_webhook.py | Naik-G/Python_Scripts | cd975036e126982aaa01da48c94cec1759af6d61 | [
"MIT"
] | 47 | 2021-10-02T12:07:07.000Z | 2021-11-07T11:49:50.000Z | #!/usr/bin/env python3
# Path: Discord Webhook Automation/discord_webhook.py
import requests
discord_webhook_url = 'your webhook url'
Message = {
"content": "./Hello_World",
"username": "Name for your discord webhook",
"avatar_url": "Your Avatar Image URL",
"tts": False,
"embeds": [
{
"title": "Tit... | 29.428571 | 112 | 0.647087 |
80ddf8c8d244690e44871a0fc5d1f5d9d7730557 | 298 | py | Python | Advertising/advertising.py | narenzhang/learnml | c6d5f4b84a7c9c23f93d03b06087f28772a52236 | [
"Apache-2.0"
] | null | null | null | Advertising/advertising.py | narenzhang/learnml | c6d5f4b84a7c9c23f93d03b06087f28772a52236 | [
"Apache-2.0"
] | null | null | null | Advertising/advertising.py | narenzhang/learnml | c6d5f4b84a7c9c23f93d03b06087f28772a52236 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# _*_ coding : utf-8 _*_
import pandas as pd
if __name__ == '__main__':
run_main() | 16.555556 | 42 | 0.583893 |
80df428c3bf27d5c6635b075ac58b6ddf1c4e21a | 561 | py | Python | python/Python - Settrade Open API Example - Equity.py | settrade/stt-open-api-sdk-example | b2644985ef41957df85a239a033a101435dff2c1 | [
"MIT"
] | 1 | 2022-03-03T20:15:34.000Z | 2022-03-03T20:15:34.000Z | python/Python - Settrade Open API Example - Equity.py | settrade/stt-open-api-sdk-example | b2644985ef41957df85a239a033a101435dff2c1 | [
"MIT"
] | null | null | null | python/Python - Settrade Open API Example - Equity.py | settrade/stt-open-api-sdk-example | b2644985ef41957df85a239a033a101435dff2c1 | [
"MIT"
] | null | null | null | import settrade.openapi
from settrade.openapi import Investor
############################# login #############################
investor = Investor(
app_id="8uuaMP1npccDixrg",
app_secret="APX6wnqzk/yoVLIRyQ4ps4Fm13uzbC4tL5nyjAwwCKue",
app_code="SANDBOX",
broker_id="SANDBOX",
is_auto_qu... | 28.05 | 67 | 0.538324 |
80dfe6a1ff36490beaa2733bf4a9c540f4667373 | 2,135 | py | Python | tests/examples/test_examples.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 63 | 2018-06-06T11:56:40.000Z | 2022-03-22T08:00:59.000Z | tests/examples/test_examples.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 39 | 2018-07-04T12:40:53.000Z | 2022-02-09T23:48:44.000Z | tests/examples/test_examples.py | 897615138/tfsnippet-jill | 2fc898a4def866c8d3c685168df1fa22083bb143 | [
"MIT"
] | 34 | 2018-06-25T09:59:22.000Z | 2022-02-23T12:46:33.000Z | import codecs
import copy
import os
import re
import subprocess
import sys
import time
import unittest
from tfsnippet.utils import TemporaryDirectory, humanize_duration
from tests.examples.helper import skipUnlessRunExamplesTests
| 33.888889 | 78 | 0.526464 |
80e0a8a07fe90eb98c565503e2de90aa68b3020f | 705 | py | Python | solution-8.py | NiamhOL/pands-problem-set | 5a6a8f465cdda89c37321fa78f27eb869ee8fa03 | [
"Apache-2.0"
] | 2 | 2019-03-04T19:56:20.000Z | 2019-03-28T15:42:26.000Z | solution-8.py | NiamhOL/pands-problem-set | 5a6a8f465cdda89c37321fa78f27eb869ee8fa03 | [
"Apache-2.0"
] | null | null | null | solution-8.py | NiamhOL/pands-problem-set | 5a6a8f465cdda89c37321fa78f27eb869ee8fa03 | [
"Apache-2.0"
] | null | null | null | # Solution to problem #
# Student: Niamh O'Leary#
#ID: GG00376339 #
# Write a program that outputs today's date and time in the format. "Monday, January 19th 2019 at 1.15pm"#
import datetime
now = datetime.datetime.now() #selects todays date and time#
print ("Current date and time: "
print (now.s... | 29.375 | 125 | 0.693617 |
80e26fef5bf7a0643771413edee2aa1b4c6728e2 | 1,888 | py | Python | 013_Klassen in Micropython/Code/quadrat_klasse.py | hobbyelektroniker/Micropython-Grundlagen | 65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27 | [
"Unlicense"
] | 1 | 2021-03-31T18:31:52.000Z | 2021-03-31T18:31:52.000Z | 013_Klassen in Micropython/Code/quadrat_klasse.py | hobbyelektroniker/Micropython-Grundlagen | 65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27 | [
"Unlicense"
] | null | null | null | 013_Klassen in Micropython/Code/quadrat_klasse.py | hobbyelektroniker/Micropython-Grundlagen | 65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27 | [
"Unlicense"
] | 1 | 2020-12-08T08:37:43.000Z | 2020-12-08T08:37:43.000Z | '''
Objektorientiert Programmierung
Eine Klasse fr ein Quadrat
Version 1.00, 27.02.2021
Der Hobbyelektroniker
https://community.hobbyelektroniker.ch
https://www.youtube.com/c/HobbyelektronikerCh
Der Code kann mit Quellenangabe frei verwendet werden.
'''
# Quadrat
import math
from bewegt_klasse impor... | 31.466667 | 79 | 0.591631 |
80e29a5b17063378ea11a9ba5ec63b825ffd1e08 | 2,858 | py | Python | Utils/fetcher.py | EchoAbstract/soma-fm-player | c1418033998c3fab74a649db98e230ced102e5fc | [
"MIT"
] | 1 | 2019-03-04T10:35:42.000Z | 2019-03-04T10:35:42.000Z | Utils/fetcher.py | EchoAbstract/soma-fm-player | c1418033998c3fab74a649db98e230ced102e5fc | [
"MIT"
] | null | null | null | Utils/fetcher.py | EchoAbstract/soma-fm-player | c1418033998c3fab74a649db98e230ced102e5fc | [
"MIT"
] | null | null | null | import urllib2
from bs4 import BeautifulSoup
from collections import defaultdict
preferred_playlist_order = ["130", "64", "256", "320", "192", "32", ""]
if __name__ == "__main__":
html = fetch_html()
soup = make_soup(html)
station_list = get_stations(soup)
img... | 27.747573 | 81 | 0.586424 |
80e3d5f21275645dfb4b04506fb537a7e5daed1f | 5,015 | py | Python | Django elements/charts/data_preparation.py | LouisdeBruijn/Medium | afc66ee061c10b7107ba1661d2b9dfed0559dfc3 | [
"MIT"
] | 41 | 2020-05-03T19:32:37.000Z | 2022-02-02T22:03:07.000Z | Django elements/charts/data_preparation.py | LouisdeBruijn/Medium | afc66ee061c10b7107ba1661d2b9dfed0559dfc3 | [
"MIT"
] | 2 | 2021-11-11T03:11:52.000Z | 2021-12-16T01:51:13.000Z | Django elements/charts/data_preparation.py | LouisdeBruijn/Medium | afc66ee061c10b7107ba1661d2b9dfed0559dfc3 | [
"MIT"
] | 45 | 2020-03-29T02:43:24.000Z | 2022-03-15T02:14:27.000Z | from .models import *
from nltk.tokenize import TweetTokenizer
from nltk.corpus import stopwords
from sklearn.feature_extraction.text import TfidfVectorizer
import seaborn as sns
import numpy as np
import time
import re
import json
def hashtag_demographics(route, label):
"""Return most-used hashtags."""
data... | 37.992424 | 137 | 0.637488 |
80e57ac43f1c3e92e78c3a47d232135e483fe654 | 2,838 | py | Python | TaxiBJ/src/model/cnn.py | panzheyi/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | 19 | 2019-10-28T09:41:51.000Z | 2022-03-09T02:37:01.000Z | TaxiNYC/src/model/cnn.py | yoshall/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | null | null | null | TaxiNYC/src/model/cnn.py | yoshall/MF-STN | 70d875d6b287a398b783e74031bb8237d44e5f8c | [
"MIT"
] | 8 | 2020-11-20T09:02:30.000Z | 2021-08-12T05:50:54.000Z | import numpy as np
import mxnet as mx
from mxnet import nd
from mxnet.gluon import Block, HybridBlock, nn, rnn
from config import ROWS, COLUMES, FLOW_OUTPUT_DIM, FLOW_OUTPUT_LEN
from model.structure import MFDense, ResUnit
N_LOC = ROWS * COLUMES
| 39.416667 | 125 | 0.559549 |
80e5a8f7d466eabb7b526d7540686453e5296d92 | 883 | py | Python | scrape/pull.py | rmilne/wURF | 598f73b196f4f134a093f5f501af1f061584e8e7 | [
"MIT"
] | null | null | null | scrape/pull.py | rmilne/wURF | 598f73b196f4f134a093f5f501af1f061584e8e7 | [
"MIT"
] | null | null | null | scrape/pull.py | rmilne/wURF | 598f73b196f4f134a093f5f501af1f061584e8e7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
import urllib2
import datetime
import time
import os
APIKEY = 'c881ae04-2d79-46f4-8857-900a0ba71f5e'
URLBASE = 'https://na.api.pvp.net/api/lol/na/v4.1/game/ids?beginDate='
start = datetime.date(year=2015, month=4, day=1)
epoch = int(start.strftime("%s"))
now = int(time.time())
#print epoch
cu... | 21.536585 | 85 | 0.587769 |
80e7b35470ae7027078edaf6b4a8639438f64588 | 129 | py | Python | module05/inflation.py | deepcloudlabs/dcl702-2021-jul-12 | 1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b | [
"MIT"
] | null | null | null | module05/inflation.py | deepcloudlabs/dcl702-2021-jul-12 | 1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b | [
"MIT"
] | null | null | null | module05/inflation.py | deepcloudlabs/dcl702-2021-jul-12 | 1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
df = pd.read_csv("eurostat_hicpv2.csv")
eu_inflations = df.iloc[6:]
print(eu_inflations)
| 18.428571 | 39 | 0.767442 |
80e89147ce7b44ce4bd4468078ab29db90b94ca9 | 543 | py | Python | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 1 | 2020-03-30T18:56:02.000Z | 2020-03-30T18:56:02.000Z | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 9 | 2018-11-19T00:04:52.000Z | 2022-03-11T23:51:18.000Z | pmp/utils/ilp/solvers.py | Koozco/pmp | 3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf | [
"MIT"
] | 2 | 2018-12-02T10:43:34.000Z | 2020-03-30T10:15:50.000Z | from enum import Enum
from importlib import import_module
def init_solver(solver):
try:
module = import_module(__solver_module_names[solver], __package__)
return module
except (ImportError, NameError) as e:
raise MissingSolver("Couldn't initialize ilp solver. Please check required de... | 20.884615 | 109 | 0.707182 |
80eb66e87e9597516ec5942a88129b383f122135 | 1,308 | py | Python | tenning/layers/svdo.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | tenning/layers/svdo.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | tenning/layers/svdo.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | from tensorflow.keras.layers import Layer
from tensorflow.keras.layers import Conv2D
from tenning.generic_utils import get_object_config
import tensorflow as tf
| 30.418605 | 99 | 0.632263 |
80eb9de023cd6936eabda295cdecf52af930ed93 | 3,836 | py | Python | App/Graphic/app.py | Joey-Boivin/newegg-tracker | a0ed9337903d0b0a32ddb5713e79313eaf972e28 | [
"MIT"
] | null | null | null | App/Graphic/app.py | Joey-Boivin/newegg-tracker | a0ed9337903d0b0a32ddb5713e79313eaf972e28 | [
"MIT"
] | null | null | null | App/Graphic/app.py | Joey-Boivin/newegg-tracker | a0ed9337903d0b0a32ddb5713e79313eaf972e28 | [
"MIT"
] | null | null | null | """
This is the module containing the graphical user interface for
my Newegg tracker application
"""
from tkinter import *
from tkinter import ttk
import webbrowser
from PIL import ImageTk, Image #Tkinter's image management is outdated
root = Tk()
root.config(bg="#2D2D2D")
root.title("Newegg tracker by Joey-Boivin ... | 33.649123 | 147 | 0.62122 |
80ec147109819e66e84d7d1ec4c6fd44c7807724 | 1,344 | py | Python | MultiLevelForecast/TwoDayAhead/SeasonalPredict.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | MultiLevelForecast/TwoDayAhead/SeasonalPredict.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | MultiLevelForecast/TwoDayAhead/SeasonalPredict.py | AmateurZhang/EnjoyWithDataOnPowerSystems | 64227d0505012d2b5650874c65268e85d9751a17 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 5 21:31:02 2017
@author: thuzhang
"""
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import GradientBoostingRegres... | 24.888889 | 72 | 0.770833 |
80ed64fdce9e1b564ee1842e39bc09c80184b169 | 3,072 | py | Python | goto_cloud/migration_commander/tests/test_filesystem_mounting.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | 2 | 2018-02-04T23:22:17.000Z | 2019-04-15T12:06:04.000Z | goto_cloud/migration_commander/tests/test_filesystem_mounting.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | null | null | null | goto_cloud/migration_commander/tests/test_filesystem_mounting.py | jdepoix/goto_cloud | 59bb9923026e1b1dc6e8e08fb6b21300c8e8854a | [
"MIT"
] | null | null | null | from unittest.mock import patch, Mock
from remote_host_event_logging.public import RemoteHostEventLogger
from ..filesystem_mounting import FilesystemMountCommand
from ..device_identification import DeviceIdentificationCommand
from .utils import MigrationCommanderTestCase
| 34.909091 | 88 | 0.624349 |
80f056ed61bb17bd4239371c1a53a38aef1a13a6 | 7,416 | py | Python | curvipy/graphing_calculator.py | dylannalex/curvipy | 04a03ae270051503cdb583ce0545152eb555a01f | [
"MIT"
] | 27 | 2022-02-22T03:09:22.000Z | 2022-03-20T21:12:52.000Z | curvipy/graphing_calculator.py | dylannalex/curvipy | 04a03ae270051503cdb583ce0545152eb555a01f | [
"MIT"
] | null | null | null | curvipy/graphing_calculator.py | dylannalex/curvipy | 04a03ae270051503cdb583ce0545152eb555a01f | [
"MIT"
] | null | null | null | from typing import Any, Callable
from math import sqrt, sin, acos, cos, pi
import turtle
| 31.159664 | 85 | 0.58603 |
80f09cadf4fef85309af1bc1f2bfff6d59c73d5d | 6,820 | py | Python | hybridq/noise/channel/utils.py | jsmarsha11/hybridq-nasa | 42f2998a059e5615dce6ccdbf7ae6dc4954bbce9 | [
"Apache-2.0"
] | null | null | null | hybridq/noise/channel/utils.py | jsmarsha11/hybridq-nasa | 42f2998a059e5615dce6ccdbf7ae6dc4954bbce9 | [
"Apache-2.0"
] | null | null | null | hybridq/noise/channel/utils.py | jsmarsha11/hybridq-nasa | 42f2998a059e5615dce6ccdbf7ae6dc4954bbce9 | [
"Apache-2.0"
] | null | null | null | """
Authors: Salvatore Mandra (salvatore.mandra@nasa.gov),
Jeffrey Marshall (jeffrey.s.marshall@nasa.gov)
Copyright 2021, United States Government, as represented by the Administrator
of the National Aeronautics and Space Administration. All rights reserved.
The HybridQ: A Hybrid Simulator for Quantum Circu... | 34.795918 | 79 | 0.630645 |
80f195beff11afd51fc9bce5c53d58fbb8eb372a | 693 | py | Python | anchore_manager/util/proc.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | 1 | 2020-06-22T07:27:41.000Z | 2020-06-22T07:27:41.000Z | anchore_manager/util/proc.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | 4 | 2020-11-07T00:16:02.000Z | 2020-11-08T20:52:06.000Z | anchore_manager/util/proc.py | dspalmer99/anchore-engine | 8c61318be6fec5d767426fa4ccd98472cc85b5cd | [
"Apache-2.0"
] | null | null | null | """
Operations for process things like exit codes, forking etc
"""
import enum
import sys
def doexit(ecode: ExitCode):
"""
Robust exit, closing stdout and stderr
:param ecode:
:return:
"""
try:
sys.stdout.close()
except:
pass
try:
sys.stderr.close()
exce... | 15.065217 | 90 | 0.600289 |
80f1c40e1c743906487eb873e07151031bc687f3 | 10,299 | py | Python | parser/team23/instruccion/insert_into.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/team23/instruccion/insert_into.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/team23/instruccion/insert_into.py | webdev188/tytus | 847071edb17b218f51bb969d335a8ec093d13f94 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | from abstract.instruccion import *
from tools.console_text import *
from tools.tabla_tipos import *
from tools.tabla_simbolos import *
from storage import jsonMode as funciones
from error.errores import *
from instruccion.P_Key import *
from instruccion.F_Key import *
from instruccion.unique_simple import *
from instru... | 50.239024 | 240 | 0.585202 |
80f3461d49e869eada5dfdd059bc69af1f558b56 | 1,079 | py | Python | api/python/list_devices/main.py | MvdLande/demos | 85d4271ab61c5ff8cef2a3b91785355a935d5aca | [
"MIT"
] | 2 | 2021-11-11T13:47:51.000Z | 2021-11-28T03:30:30.000Z | api/python/list_devices/main.py | MvdLande/demos | 85d4271ab61c5ff8cef2a3b91785355a935d5aca | [
"MIT"
] | 3 | 2020-05-11T12:18:02.000Z | 2022-03-17T13:41:07.000Z | api/python/list_devices/main.py | MvdLande/demos | 85d4271ab61c5ff8cef2a3b91785355a935d5aca | [
"MIT"
] | 4 | 2021-08-02T08:42:10.000Z | 2022-02-25T23:15:06.000Z | #!/usr/bin/env python
# Copyright (C) 2020 Toitware ApS. All rights reserved.
import grpc
import os
import sys
import getpass
from toit.api import auth_pb2_grpc, auth_pb2, device_pb2_grpc, device_pb2
if __name__ == '__main__':
main()
| 27.666667 | 73 | 0.757183 |
80f7bc024b85ee0e8080b2883866b323df39445c | 3,771 | py | Python | gym_modular/sensors/gripper_velocity_2d_sensor.py | TimSchneider42/mbpo | 736ba90bbdaddb2a40a6233bc0b78da72235100a | [
"MIT"
] | null | null | null | gym_modular/sensors/gripper_velocity_2d_sensor.py | TimSchneider42/mbpo | 736ba90bbdaddb2a40a6233bc0b78da72235100a | [
"MIT"
] | null | null | null | gym_modular/sensors/gripper_velocity_2d_sensor.py | TimSchneider42/mbpo | 736ba90bbdaddb2a40a6233bc0b78da72235100a | [
"MIT"
] | null | null | null | from typing import Dict, Tuple, List
import numpy as np
from .continuous_sensor import ContinuousSensor
from ..ball_placing_task import BallPlacingTask
| 49.618421 | 118 | 0.664015 |
80f9db9ba96db0e2f07ff84b33c7d8eabf660cf2 | 1,986 | py | Python | src/scrape_tweets.py | chef55555/MSDS692 | 3d31b1aada18d7781ed42983179333132e5a6584 | [
"MIT"
] | null | null | null | src/scrape_tweets.py | chef55555/MSDS692 | 3d31b1aada18d7781ed42983179333132e5a6584 | [
"MIT"
] | null | null | null | src/scrape_tweets.py | chef55555/MSDS692 | 3d31b1aada18d7781ed42983179333132e5a6584 | [
"MIT"
] | null | null | null | import tweepy
import csv
import time
consumer_key = 'YOUR_KEY_HERE'
consumer_secret = 'YOUR_SECRET_HERE'
access_token = 'YOUR_TOKEN_HERE'
access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET_HERE'
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = twe... | 38.192308 | 126 | 0.723061 |
80fa599a04868da515185f5ef67ddee93b107047 | 19,434 | py | Python | src/transe.py | DanielSun94/kgenlu | bbf377c6740040cb1a8b656785e7c5bfdb8371d5 | [
"MIT"
] | null | null | null | src/transe.py | DanielSun94/kgenlu | bbf377c6740040cb1a8b656785e7c5bfdb8371d5 | [
"MIT"
] | null | null | null | src/transe.py | DanielSun94/kgenlu | bbf377c6740040cb1a8b656785e7c5bfdb8371d5 | [
"MIT"
] | null | null | null | # the source codes of transE are from https://github.com/mklimasz/TransE-PyTorch
from absl import app
from absl import flags
import os
import numpy as np
import torch.optim as optim
from torch.utils import data as torch_data
from torch.utils import tensorboard
from collections import Counter
from torch.utils import dat... | 45.727059 | 120 | 0.679016 |