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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10170ff28699d7143f1d158e1501a5a54fa2ae72 | 1,158 | py | Python | unalikability-python/unalikability.py | cuevasclemente/unlikable-polyglot | ce9efb86df0b667124da394cfcc11c18b81e4849 | [
"MIT"
] | 1 | 2021-05-18T17:33:10.000Z | 2021-05-18T17:33:10.000Z | unalikability-python/unalikability.py | cuevasclemente/unlikable-polyglot | ce9efb86df0b667124da394cfcc11c18b81e4849 | [
"MIT"
] | 1 | 2021-05-18T17:36:44.000Z | 2021-05-18T18:51:34.000Z | unalikability-python/unalikability.py | cuevasclemente/unlikable-polyglot | ce9efb86df0b667124da394cfcc11c18b81e4849 | [
"MIT"
] | null | null | null | import collections
import math
def unalikeability(measurements: [int]) -> float:
"""
Unalikeability returns the unalikability measure
for `measurements`, assuming that
`measurements` is an array describing a
collection of measurements of a categorical
variable (i.e: perhaps the results of runnin... | 27.571429 | 65 | 0.576857 |
10179228ca75871b5e01551558e02842372500a8 | 8,769 | py | Python | pheweb/serve/components/autocomplete/sqlite_dao.py | FINNGEN/pheweb | 40fd83fce0b8e4f405d182dd63b9741c5ee5b280 | [
"MIT"
] | 4 | 2018-11-03T13:58:52.000Z | 2020-03-06T09:19:03.000Z | pheweb/serve/components/autocomplete/sqlite_dao.py | FINNGEN/pheweb | 40fd83fce0b8e4f405d182dd63b9741c5ee5b280 | [
"MIT"
] | 92 | 2018-05-17T18:07:01.000Z | 2022-03-29T00:37:30.000Z | pheweb/serve/components/autocomplete/sqlite_dao.py | FINNGEN/pheweb | 40fd83fce0b8e4f405d182dd63b9741c5ee5b280 | [
"MIT"
] | 4 | 2020-07-01T12:20:55.000Z | 2022-01-24T20:09:15.000Z |
from ....file_utils import get_filepath
from ...server_utils import parse_variant
from flask import url_for
from pathlib import Path
import urllib.parse
import itertools
import re
import copy
import sqlite3
from typing import List,Dict,Any,Optional,Iterator
# TODO: sort suggestions better.
# - It's good that hitting... | 48.988827 | 166 | 0.605884 |
101891f3b9ed444afe6d924d40f4687201082a15 | 1,314 | py | Python | AI(BE)/rest_api/application.py | dev-taewon-kim/ai_web_RISKOUT_BTS | 6b5650f8ecf068185ad87af62074627aca566018 | [
"MIT"
] | 1 | 2021-11-04T07:54:58.000Z | 2021-11-04T07:54:58.000Z | AI(BE)/rest_api/application.py | mslee300/ai_web_RISKOUT_BTS | e01b3d27f68a0187b619920bf5c1f2de0cbc0f7d | [
"MIT"
] | null | null | null | AI(BE)/rest_api/application.py | mslee300/ai_web_RISKOUT_BTS | e01b3d27f68a0187b619920bf5c1f2de0cbc0f7d | [
"MIT"
] | null | null | null | import logging
import uvicorn
from fastapi import FastAPI, HTTPException
from starlette.middleware.cors import CORSMiddleware
from rest_api.controller.errors.http_error import http_error_handler
from rest_api.config import ROOT_PATH
logging.basicConfig(format="%(asctime)s %(message)s", datefmt="%m/%d/%Y %I:%M:%S %p"... | 27.957447 | 94 | 0.705479 |
101a132eac985f8e06fbc298f71166afb00448d1 | 4,603 | py | Python | rnn_text_classifier.py | kamei86i/rnn-classifier-tf | f56d7460dce8ee5ebd02b5ae773c1c5f899be125 | [
"Apache-2.0"
] | 1 | 2018-07-27T00:05:22.000Z | 2018-07-27T00:05:22.000Z | rnn_text_classifier.py | kamei86i/rnn-classifier-tf | f56d7460dce8ee5ebd02b5ae773c1c5f899be125 | [
"Apache-2.0"
] | null | null | null | rnn_text_classifier.py | kamei86i/rnn-classifier-tf | f56d7460dce8ee5ebd02b5ae773c1c5f899be125 | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
| 44.68932 | 120 | 0.615034 |
101a7d148874f545b161968d0a67f51310cf8392 | 4,705 | py | Python | scripts/run.py | peterkuma/shortwave-intermittency | 0ee86b3ad3117cbe22f342105a1b110905ed5183 | [
"MIT"
] | null | null | null | scripts/run.py | peterkuma/shortwave-intermittency | 0ee86b3ad3117cbe22f342105a1b110905ed5183 | [
"MIT"
] | null | null | null | scripts/run.py | peterkuma/shortwave-intermittency | 0ee86b3ad3117cbe22f342105a1b110905ed5183 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# run.py
#
# References:
#
# * Masek J. 2013. Single interval showtwave radiation scheme with
# parametrized optical saturation and spectral overlaps.
#
import sys
import os
from tempfile import NamedTemporaryFile
import subprocess
import numpy as np
from StringIO import StringIO
impo... | 21.004464 | 71 | 0.637832 |
101abe09fb563597dc036618480bdb3605bcf35d | 357 | py | Python | app/rooms/utils.py | frikke/code-examples-python | ecb3d9c386501a584cab1b0b5c83e5b71b4c9a2f | [
"MIT"
] | null | null | null | app/rooms/utils.py | frikke/code-examples-python | ecb3d9c386501a584cab1b0b5c83e5b71b4c9a2f | [
"MIT"
] | null | null | null | app/rooms/utils.py | frikke/code-examples-python | ecb3d9c386501a584cab1b0b5c83e5b71b4c9a2f | [
"MIT"
] | null | null | null | from docusign_rooms import ApiClient
def create_rooms_api_client(access_token):
"""Create API client and construct API headers"""
api_client = ApiClient(host="https://demo.rooms.docusign.com/restapi")
api_client.set_default_header(
header_name="Authorization",
header_value=f"Bearer {access... | 29.75 | 74 | 0.733894 |
101b647d45f6d31dee7304560ed30905d346ce80 | 4,776 | py | Python | GenerIter/app/generator.py | GridPresence/GenerIter | f0b74cd6c1d1bb9a23fccb28fa8b972f9eeccaf8 | [
"MIT"
] | 7 | 2021-01-07T19:03:10.000Z | 2021-03-05T08:05:17.000Z | GenerIter/app/generator.py | GridPresence/GenerIter | f0b74cd6c1d1bb9a23fccb28fa8b972f9eeccaf8 | [
"MIT"
] | 2 | 2021-01-26T12:45:58.000Z | 2021-02-15T11:06:14.000Z | GenerIter/app/generator.py | GridPresence/GenerIter | f0b74cd6c1d1bb9a23fccb28fa8b972f9eeccaf8 | [
"MIT"
] | 1 | 2021-01-24T05:21:28.000Z | 2021-01-24T05:21:28.000Z | #!/usr/bin/env python3
"""
App to generate music.
Copyright 2020 Thomas Jackson Park & Jeremy Pavier
"""
import os
import argparse
import sys
from pathlib import Path
from GenerIter.app.clibase import CLIBase
from GenerIter.selector import Selector
from GenerIter.config import Config
from GenerIter.factory import Pr... | 36.738462 | 122 | 0.555067 |
63d7946b710bcf849366eee7c627cc4c3a914d5e | 6,566 | py | Python | app.py | Nikita-Sukhwal/AatmSuraksha | 291ac685b2dee7758f19e1f7e97ab37312979db9 | [
"MIT"
] | 4 | 2021-02-12T16:46:42.000Z | 2021-02-12T17:02:51.000Z | app.py | Nikita-Sukhwal/AatmSuraksha | 291ac685b2dee7758f19e1f7e97ab37312979db9 | [
"MIT"
] | null | null | null | app.py | Nikita-Sukhwal/AatmSuraksha | 291ac685b2dee7758f19e1f7e97ab37312979db9 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request, url_for, redirect, session
import pymongo
import mail
from location import lat, log #, location, city, state
import messagebird
import credentials
#set app as a Flask instance
app = Flask(__name__)
#encryption relies on secret keys so they could be run
app.secret_ke... | 36.276243 | 124 | 0.633567 |
63d7d272c033f8694a10b24b5f90bdd7dd750995 | 107 | py | Python | apps/porteiros/admin.py | franric/Controle-Visitante | 5ca0c423885167c9d096e6f7ee48d238e64566f3 | [
"MIT"
] | null | null | null | apps/porteiros/admin.py | franric/Controle-Visitante | 5ca0c423885167c9d096e6f7ee48d238e64566f3 | [
"MIT"
] | null | null | null | apps/porteiros/admin.py | franric/Controle-Visitante | 5ca0c423885167c9d096e6f7ee48d238e64566f3 | [
"MIT"
] | null | null | null | from django.contrib import admin
from apps.porteiros.models import Porteiro
admin.site.register(Porteiro)
| 21.4 | 42 | 0.841121 |
63da6938462c65e9252485f08e43d556eb29664b | 2,118 | py | Python | etox/apps/backend/mixins.py | a1xg/OpenTox | 52b807185a8113c83b7f5b9a2896974e9f02c8d0 | [
"Apache-2.0"
] | 1 | 2021-09-19T18:07:10.000Z | 2021-09-19T18:07:10.000Z | etox/apps/backend/mixins.py | a1xg/OpenTox | 52b807185a8113c83b7f5b9a2896974e9f02c8d0 | [
"Apache-2.0"
] | null | null | null | etox/apps/backend/mixins.py | a1xg/OpenTox | 52b807185a8113c83b7f5b9a2896974e9f02c8d0 | [
"Apache-2.0"
] | null | null | null | from .services.hazard_assessor import HazardMeter
from .services.ocr import ImageOCR
from .serializers import IngredientsSerializer, ProductSerializer, DetailsIngredientSerializer
from .services.text_blocks_screening import IngredientsBlockFinder
from .services.db_tools import DBQueries
from .services.ocr_settings impo... | 36.517241 | 108 | 0.616147 |
63dcb009c572a33dac19bddf3657a147f2fcccc3 | 1,181 | py | Python | python-django-piscine/day04/d04/urls.py | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | 3 | 2021-01-06T13:50:12.000Z | 2022-02-28T09:16:15.000Z | python-django-piscine/day04/d04/urls.py | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | null | null | null | python-django-piscine/day04/d04/urls.py | maxdesalle/libft | 8845656e1f5cc1fec052cf97fc8f5839b2b590a8 | [
"Unlicense"
] | 1 | 2020-11-23T12:58:18.000Z | 2020-11-23T12:58:18.000Z | """d04 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | 39.366667 | 88 | 0.721423 |
63dd7fae6c8c1a5d59b9d4ffad7b82f95f7d3cb7 | 3,122 | py | Python | spaghettifs/treetree.py | mgax/SpaghettiFS | 7782ed1a30910330f0380b70edf110262743374e | [
"MIT"
] | 3 | 2016-03-16T08:22:47.000Z | 2019-09-30T09:35:27.000Z | spaghettifs/treetree.py | mgax/SpaghettiFS | 7782ed1a30910330f0380b70edf110262743374e | [
"MIT"
] | null | null | null | spaghettifs/treetree.py | mgax/SpaghettiFS | 7782ed1a30910330f0380b70edf110262743374e | [
"MIT"
] | 4 | 2015-09-18T12:45:14.000Z | 2020-09-22T13:01:58.000Z | """
TreeTree is a wrapper over `easygit.EasyTree` that provides more efficient
storage of lists. Keys must be strings made up of digits, and they should
be as close as possible to the indices of a list.
"""
| 28.126126 | 76 | 0.528187 |
63def619e46b70dd31fc4852669b37e3e1d6df41 | 737 | py | Python | bot.py | rojserbest/contact-bot | 2763d115cec28ae1b27a6cd489ab79e885ec13ce | [
"MIT"
] | 3 | 2021-02-10T06:17:27.000Z | 2021-08-08T16:44:11.000Z | bot.py | rojserbest/contact-bot | 2763d115cec28ae1b27a6cd489ab79e885ec13ce | [
"MIT"
] | null | null | null | bot.py | rojserbest/contact-bot | 2763d115cec28ae1b27a6cd489ab79e885ec13ce | [
"MIT"
] | 2 | 2021-02-10T09:59:02.000Z | 2021-02-25T02:37:40.000Z | from telegram.ext import Updater, PicklePersistence
from config import BOT_TOKEN
updater = Updater(
BOT_TOKEN,
persistence=PicklePersistence(filename="data")
)
dp = updater.dispatcher
if __name__ == "__main__":
main()
| 19.918919 | 51 | 0.514247 |
63e06ea259c0e2b97e801a344e2061220ba0cacc | 951 | py | Python | D/D.py | staguchi0703/abc142 | d529a14a76586cb582cecec17ab6267736673937 | [
"MIT"
] | null | null | null | D/D.py | staguchi0703/abc142 | d529a14a76586cb582cecec17ab6267736673937 | [
"MIT"
] | null | null | null | D/D.py | staguchi0703/abc142 | d529a14a76586cb582cecec17ab6267736673937 | [
"MIT"
] | null | null | null | #
# VScode
import sys
import os
f=open(r'.\D\D_input.txt', 'r', encoding="utf-8")
# input
# win10s-jisutf-8
# VScodeinput fileutf8s-jis
sys.stdin=f
#
#
# num = int(input())
# num_list = [int(item) for item in input().split()]
# num_list = [input() for _ in range(3)]
##################################
#
#
# start 2... | 19.8125 | 54 | 0.604627 |
63e0b323a1930c8792758cd6dfc42283e2496a50 | 1,769 | py | Python | sources/ebf-demo/scripts/cfilter.py | zwg0106/imx-yocto | e378ca25352a59d1ef84ee95f3386b7314f4565b | [
"MIT"
] | 1 | 2020-01-13T13:16:52.000Z | 2020-01-13T13:16:52.000Z | sources/ebf-demo/scripts/cfilter.py | zwg0106/imx-yocto | e378ca25352a59d1ef84ee95f3386b7314f4565b | [
"MIT"
] | 3 | 2019-11-20T02:53:01.000Z | 2019-12-26T03:00:15.000Z | sources/ebf-demo/scripts/cfilter.py | zwg0106/imx-yocto | e378ca25352a59d1ef84ee95f3386b7314f4565b | [
"MIT"
] | null | null | null | import time
import math
| 29.983051 | 123 | 0.57377 |
63e0ebde336a5f3eeb1ad190a79f282a9b028bed | 3,008 | py | Python | face_recognition/deep_learning/main_flow_processer.py | cclauss/TripletLossFace | 6da4ae571cf2fb912ab528afa3f0b9f1efe71767 | [
"MIT"
] | 88 | 2020-01-18T09:47:03.000Z | 2021-12-18T22:34:18.000Z | face_recognition/deep_learning/main_flow_processer.py | cclauss/TripletLossFace | 6da4ae571cf2fb912ab528afa3f0b9f1efe71767 | [
"MIT"
] | 4 | 2020-01-18T09:20:24.000Z | 2020-03-02T19:40:58.000Z | face_recognition/deep_learning/main_flow_processer.py | cclauss/TripletLossFace | 6da4ae571cf2fb912ab528afa3f0b9f1efe71767 | [
"MIT"
] | 40 | 2020-01-18T11:15:07.000Z | 2021-03-09T07:58:57.000Z | import sys
sys.path.append("../")
import json
import cv2, os
import numpy as np
import tensorflow as tf
from make_better_dataset_for_deepfake.main_data_creator import FaceExtractor
if __name__ == '__main__': # 216
engine = Engine(model_path="models/softmax_deepfake_freezed.h5")
from tqdm import tqdm
q = tf.io.... | 27.345455 | 128 | 0.655918 |
63e142b8a3ac1fd9757268f4acda900e7ecba57e | 3,668 | py | Python | ops/models/schedule.py | dengshaochun/devOps | 58b5a37918ffca3340aa535af670b805c19a87ec | [
"MIT"
] | null | null | null | ops/models/schedule.py | dengshaochun/devOps | 58b5a37918ffca3340aa535af670b805c19a87ec | [
"MIT"
] | 3 | 2020-06-05T19:01:02.000Z | 2021-09-23T23:22:32.000Z | ops/models/schedule.py | dengshaochun/ansibleX | 58b5a37918ffca3340aa535af670b805c19a87ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/15 10:51
# @Author : Dengsc
# @Site :
# @File : schedule.py
# @Software: PyCharm
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django_celery_beat.models import (CrontabSchedule, IntervalSchedule)
fro... | 37.428571 | 73 | 0.658942 |
63e2bca2d8584267cec472d15b17a95fc15a081c | 18,110 | py | Python | LAB4/bin/task_5.py | Yalfoosh/DUBUCE | 3f53923c27b1bce0ac592b20c5bb98649cb7fb75 | [
"Apache-2.0"
] | null | null | null | LAB4/bin/task_5.py | Yalfoosh/DUBUCE | 3f53923c27b1bce0ac592b20c5bb98649cb7fb75 | [
"Apache-2.0"
] | null | null | null | LAB4/bin/task_5.py | Yalfoosh/DUBUCE | 3f53923c27b1bce0ac592b20c5bb98649cb7fb75 | [
"Apache-2.0"
] | 1 | 2020-04-23T02:06:47.000Z | 2020-04-23T02:06:47.000Z | # Copyright 2020 Miljenko uflaj
#
# 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 ag... | 34.693487 | 80 | 0.533186 |
63e352cd8b57ca9e170046df83f9f887ff2cb243 | 2,024 | py | Python | Main.py | ahmetmutlugun/clone_bot | ced61f9af626345753f0a7decc512a9f1d8a224b | [
"Apache-2.0"
] | null | null | null | Main.py | ahmetmutlugun/clone_bot | ced61f9af626345753f0a7decc512a9f1d8a224b | [
"Apache-2.0"
] | null | null | null | Main.py | ahmetmutlugun/clone_bot | ced61f9af626345753f0a7decc512a9f1d8a224b | [
"Apache-2.0"
] | null | null | null | import discord
from discord.ext import commands
from discord.ext.commands import Bot
client: Bot = commands.Bot(command_prefix=['-'], case_insensitive=True, description="Train an AI to send messages.")
guilds = []
guild_ids = []
def add_user(author_id):
if not check_user(author_id):
with open("whitel... | 27.351351 | 116 | 0.628953 |
63e40a9d8fa982ae7027fd1e676365c6c684bb99 | 6,920 | py | Python | tester/src/sirv_gnrl_fifo.py | giraffe50/RISCV-M4F | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 3 | 2021-01-13T03:41:14.000Z | 2021-03-23T11:31:48.000Z | tester/src/sirv_gnrl_fifo.py | scutdig/LG-32HP | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 1 | 2021-03-01T09:32:59.000Z | 2021-03-01T09:32:59.000Z | tester/src/sirv_gnrl_fifo.py | scutdig/LG-32HP | 1b1ed756a8ea02c2d2a11d8472f8603847170ad8 | [
"Apache-2.0"
] | 4 | 2021-01-07T03:01:26.000Z | 2021-02-28T02:20:10.000Z | from pyhcl import *
from .sirv_gnrl_dffl import sirv_gnrl_dffl
from .sirv_gnrl_dfflr import sirv_gnrl_dfflr
from .sirv_gnrl_dfflrs import sirv_gnrl_dfflrs
# DW = (1+AW+DW+(DW/8)+1+1+2+2+2+USR_W) = 1+32+32+4+1+1+2+2+2+1=78
if __name__ == '__main__':
f = Emitter.dump(Emitter.emit(sirv_gnrl_fifo(1, 0, ... | 34.949495 | 117 | 0.434104 |
63e478f68db4b89cfa3ff715867177085fa62d17 | 6,600 | py | Python | data.py | QTIM-Lab/rop | 1befc7c2910daa151105fdd2f5fac785d0515f48 | [
"MIT"
] | 1 | 2021-07-29T15:51:35.000Z | 2021-07-29T15:51:35.000Z | data.py | QTIM-Lab/rop | 1befc7c2910daa151105fdd2f5fac785d0515f48 | [
"MIT"
] | null | null | null | data.py | QTIM-Lab/rop | 1befc7c2910daa151105fdd2f5fac785d0515f48 | [
"MIT"
] | null | null | null | # ==================================================================== #
# #
# DATASET / DATALOADER #
# #
# ==========================... | 37.288136 | 84 | 0.455152 |
63e53355de71c24919fc88789b079d2b1ce0b723 | 5,100 | py | Python | flask/app/main/routes.py | stevenbennettonline/ratemymolecule | 4591b2346743b9053ee1392f027d0b20d0f1da99 | [
"MIT"
] | 3 | 2021-06-16T00:27:45.000Z | 2022-01-11T13:23:06.000Z | flask/app/main/routes.py | stevenbennettonline/rate-my-molecule | 4591b2346743b9053ee1392f027d0b20d0f1da99 | [
"MIT"
] | 2 | 2021-06-16T08:41:58.000Z | 2021-06-16T08:42:05.000Z | flask/app/main/routes.py | stevenkbennett/ratemymolecule | 4591b2346743b9053ee1392f027d0b20d0f1da99 | [
"MIT"
] | null | null | null | from collections import Counter
import numpy as np
from flask import (Blueprint, flash, jsonify, redirect, render_template,
request, url_for)
from flask_login import current_user, login_required
from app import db
from app.auth.email import send_password_reset_email
from app.auth.forms import Reset... | 33.333333 | 78 | 0.647647 |
63e59bcf514276993297b798e6a593c65dcfaa90 | 101 | py | Python | backendcode/backendcode/meetingbotapi/apps.py | khadarkhaja/vergadering | c0e32868f9f66721c4d1ce4785a2c81f214cff0d | [
"Apache-2.0"
] | null | null | null | backendcode/backendcode/meetingbotapi/apps.py | khadarkhaja/vergadering | c0e32868f9f66721c4d1ce4785a2c81f214cff0d | [
"Apache-2.0"
] | 3 | 2020-06-05T17:52:31.000Z | 2021-06-10T20:01:01.000Z | backendcode/backendcode/meetingbotapi/apps.py | KhadarKR/vergadering | c0e32868f9f66721c4d1ce4785a2c81f214cff0d | [
"Apache-2.0"
] | 2 | 2018-03-09T16:07:53.000Z | 2018-03-09T16:23:49.000Z | from django.apps import AppConfig
| 16.833333 | 37 | 0.782178 |
63e70797bb6533aa7af56d1402997865c1e22f00 | 5,762 | py | Python | tests/conftest.py | brighthive/convert_descriptor_to_swagger | ac59504ddf70622fb76e68b23dfdf4555836d3bd | [
"MIT"
] | null | null | null | tests/conftest.py | brighthive/convert_descriptor_to_swagger | ac59504ddf70622fb76e68b23dfdf4555836d3bd | [
"MIT"
] | 3 | 2019-12-10T19:47:39.000Z | 2019-12-20T19:11:59.000Z | tests/conftest.py | brighthive/convert_descriptor_to_swagger | ac59504ddf70622fb76e68b23dfdf4555836d3bd | [
"MIT"
] | 1 | 2020-04-29T18:18:49.000Z | 2020-04-29T18:18:49.000Z | import pytest
| 37.174194 | 109 | 0.264665 |
63eafa1370aec52376e0eb5249d8c5a03ab04f00 | 3,652 | py | Python | fkie_node_manager_daemon/src/fkie_node_manager_daemon/exceptions.py | stertingen/multimaster_fkie | 95c2f5fae71c8337cc18b02db4e529b6900a91b2 | [
"BSD-3-Clause"
] | 1 | 2021-12-17T17:16:52.000Z | 2021-12-17T17:16:52.000Z | fkie_node_manager_daemon/src/fkie_node_manager_daemon/exceptions.py | stertingen/multimaster_fkie | 95c2f5fae71c8337cc18b02db4e529b6900a91b2 | [
"BSD-3-Clause"
] | null | null | null | fkie_node_manager_daemon/src/fkie_node_manager_daemon/exceptions.py | stertingen/multimaster_fkie | 95c2f5fae71c8337cc18b02db4e529b6900a91b2 | [
"BSD-3-Clause"
] | null | null | null | # Software License Agreement (BSD License)
#
# Copyright (c) 2018, Fraunhofer FKIE/CMS, Alexander Tiderko
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code mu... | 28.755906 | 93 | 0.705915 |
63ebf4963d4204c8dbbe68d7553ace82df66b666 | 27 | py | Python | robot2019-ros/tes.py | junhuizhou/ROS_Learning | bb3a0c867ba2bd147bbd59176cf1224c09a63914 | [
"MIT"
] | null | null | null | robot2019-ros/tes.py | junhuizhou/ROS_Learning | bb3a0c867ba2bd147bbd59176cf1224c09a63914 | [
"MIT"
] | 1 | 2021-05-07T07:30:11.000Z | 2021-05-07T07:30:11.000Z | robot2019-ros/tes.py | junhuizhou/ROS_Learning | bb3a0c867ba2bd147bbd59176cf1224c09a63914 | [
"MIT"
] | null | null | null | iii
fff
ff
qqqq
'fenzhi'
| 3.375 | 8 | 0.666667 |
63ebfe56217de2a71b781d285b140d7ffc405647 | 117 | py | Python | run.py | manugraj/ganimede | 2a9288d01768e09ef8f94252165960c78ab88df1 | [
"MIT"
] | 3 | 2021-06-23T06:08:58.000Z | 2022-01-15T20:56:54.000Z | run.py | manugraj/ganimede | 2a9288d01768e09ef8f94252165960c78ab88df1 | [
"MIT"
] | 2 | 2021-06-13T07:05:34.000Z | 2021-06-23T05:39:10.000Z | run.py | manugraj/ganimede | 2a9288d01768e09ef8f94252165960c78ab88df1 | [
"MIT"
] | 1 | 2022-02-01T08:32:59.000Z | 2022-02-01T08:32:59.000Z | import uvicorn
import src.main
if __name__ == '__main__':
uvicorn.run(src.main.app, host='0.0.0.0', port=8000)
| 16.714286 | 56 | 0.683761 |
63ed2f6a1482852038d2f9ae5235dd2c3939a81d | 2,556 | py | Python | library/tutorial/06_module.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | library/tutorial/06_module.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | library/tutorial/06_module.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | import importlib
import time
import fibo
# import fibo as fib
"""
importlib.reload() import importlib; importlib.reload(modulename)
"""
fibo.fib(1000)
fibo.fib2(100)
print(fibo.__name__)
time.sleep(20) ## fibo.py ,
importlib.reload(fibo)
fibo.fib(1000)
# from fibo import fib, fib2
# # from fibo import * #_
# # fr... | 29.045455 | 212 | 0.811424 |
63ed58034bda81cab21aa5f59eaa6d0ba9a403da | 319 | py | Python | adminmgr/media/code/python/map2/BD_014_025_183_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 9 | 2019-11-08T02:05:27.000Z | 2021-12-13T12:06:35.000Z | adminmgr/media/code/python/map2/BD_014_025_183_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 6 | 2019-11-27T03:23:16.000Z | 2021-06-10T19:15:13.000Z | adminmgr/media/code/python/map2/BD_014_025_183_mapper.py | IamMayankThakur/test-bigdata | cef633eb394419b955bdce479699d0115d8f99c3 | [
"Apache-2.0"
] | 4 | 2019-11-26T17:04:27.000Z | 2021-12-13T11:57:03.000Z | #!/usr/bin/python3
import csv
import sys
batsman = ""
bowler = ""
runs = None
reader = []
myfile = sys.stdin
for line in myfile:
line = line.strip()
row = line.split(',')
if(row[0] == "ball"):
batsman = row[4]
bowler = row[6]
runs = int(row[7]) + int(row[8])
print("%s,%s,%d" % (batsman, bowler, runs))
| 15.190476 | 45 | 0.583072 |
63efa7f3316645c1c7ea8bae8301f606880ac73c | 240 | py | Python | Chapter 4/subscriber.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 22 | 2016-06-07T07:52:35.000Z | 2021-11-08T13:12:21.000Z | Chapter 4/subscriber.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 2 | 2016-05-23T08:20:54.000Z | 2018-07-02T08:21:32.000Z | Chapter 4/subscriber.py | PacktPublishing/Mastering-IPython-4 | d752f7ba38e0c9399a83d57da406fe26152f272b | [
"MIT"
] | 27 | 2016-05-23T08:19:51.000Z | 2021-08-31T02:46:00.000Z | import zmq
context = zmq.Context()
socket = context.socket(zmq.SUB)
socket.connect("tcp://localhost:5555")
socket.setsockopt_string(zmq.SUBSCRIBE, weather)
while True:
wtr = socket.recv_string()
print(the weather is: + wtr)
| 20 | 50 | 0.7125 |
63f00ee89c5fd40dc28452a69994969bb19dc442 | 6,876 | py | Python | packages/vaex-core/vaex/file/cache.py | lrq3000/vaex | 00c83d1fe2b73330705ef63e649abc9dfc8f2478 | [
"MIT"
] | null | null | null | packages/vaex-core/vaex/file/cache.py | lrq3000/vaex | 00c83d1fe2b73330705ef63e649abc9dfc8f2478 | [
"MIT"
] | null | null | null | packages/vaex-core/vaex/file/cache.py | lrq3000/vaex | 00c83d1fe2b73330705ef63e649abc9dfc8f2478 | [
"MIT"
] | null | null | null | try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
import logging
import os
import mmap
import numpy as np
import vaex.utils
import vaex.file
DEFAULT_BLOCK_SIZE = 1024*1024*1 # 1mb by default
logger = logging.getLogger("vaex.file.cache")
| 35.443299 | 133 | 0.596131 |
63f1bbf7c5bc0ddb0546934f8c64da5077e3f88c | 5,343 | py | Python | pitfall/utils.py | bincyber/pitfall | 680c33ae30a2ed1d2bbf742f74accc34b81b1f5b | [
"Apache-2.0"
] | 33 | 2019-11-06T03:45:55.000Z | 2020-12-15T09:14:42.000Z | pitfall/utils.py | bincyber/pitfall | 680c33ae30a2ed1d2bbf742f74accc34b81b1f5b | [
"Apache-2.0"
] | 3 | 2019-11-19T19:02:44.000Z | 2020-03-29T17:52:11.000Z | pitfall/utils.py | bincyber/pitfall | 680c33ae30a2ed1d2bbf742f74accc34b81b1f5b | [
"Apache-2.0"
] | 1 | 2020-07-29T07:33:52.000Z | 2020-07-29T07:33:52.000Z | # Copyright 2019 Ali (@bincyber)
#
# 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, ... | 31.429412 | 102 | 0.703724 |
63f2138c7f6ecd04713fbbea646ddb3dcb6f6400 | 93 | py | Python | ch06/matplotlib_demo.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | 1 | 2021-07-26T18:40:15.000Z | 2021-07-26T18:40:15.000Z | ch06/matplotlib_demo.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | 24 | 2021-07-10T15:31:05.000Z | 2022-03-17T06:43:36.000Z | ch06/matplotlib_demo.py | jabrena/space-math | 313d66f48ef642d7ce4d2c9765d55bc4bdade17b | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
plt.plot([1,23,2,4])
plt.ylabel('some numbers')
plt.show()
| 13.285714 | 31 | 0.709677 |
63f28425c3f52ac3335ca7b5ceae3be50c402ea4 | 62,779 | py | Python | pysnmp/HP-ICF-IP-ROUTING.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/HP-ICF-IP-ROUTING.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/HP-ICF-IP-ROUTING.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module HP-ICF-IP-ROUTING (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-IP-ROUTING
# Produced by pysmi-0.3.4 at Mon Apr 29 19:21:41 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 136.77342 | 9,869 | 0.751079 |
63f3eca2bcc5a707c88b9689f2ad3589628e5416 | 13,261 | py | Python | chb/bctypes/BCTyp.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/bctypes/BCTyp.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | chb/bctypes/BCTyp.py | kestreltechnology/CodeHawk-Binary | aa0b2534e0318e5fb3770ec7b4d78feb0feb2394 | [
"MIT"
] | null | null | null | # ------------------------------------------------------------------------------
# CodeHawk Binary Analyzer
# Author: Henny Sipma
# ------------------------------------------------------------------------------
# The MIT License (MIT)
#
# Copyright (c) 2021-2022 Aarno Labs LLC
#
# Permission is hereby granted, free of ... | 25.900391 | 80 | 0.567981 |
63f444046bb1df157608c2a56987485735098de5 | 1,810 | py | Python | select_language.py | elviscruz45/Selenium | 4959b552fe3658802663520fc817f5e3c86aa2b7 | [
"MIT"
] | null | null | null | select_language.py | elviscruz45/Selenium | 4959b552fe3658802663520fc817f5e3c86aa2b7 | [
"MIT"
] | null | null | null | select_language.py | elviscruz45/Selenium | 4959b552fe3658802663520fc817f5e3c86aa2b7 | [
"MIT"
] | null | null | null | import unittest
from selenium import webdriver
#submodulo para usar el dropdown
from selenium.webdriver.support.ui import Select
if __name__ == "__main__":
unittest.main(verbosity = 2) | 36.2 | 89 | 0.781215 |
63f4edbce00fde34ebff1d87a9721442ae30e42f | 819 | py | Python | tests/test_control.py | chaostoolkit-incubator/chaostoolkit-opentracing | c3b4cf755f81db40a4a5fbf342fc6d70455eee42 | [
"Apache-2.0"
] | 4 | 2019-03-06T07:02:28.000Z | 2021-12-14T05:16:46.000Z | tests/test_control.py | chaostoolkit-incubator/chaostoolkit-opentracing | c3b4cf755f81db40a4a5fbf342fc6d70455eee42 | [
"Apache-2.0"
] | 2 | 2019-05-23T16:53:09.000Z | 2019-06-20T10:10:59.000Z | tests/test_control.py | chaostoolkit-incubator/chaostoolkit-opentracing | c3b4cf755f81db40a4a5fbf342fc6d70455eee42 | [
"Apache-2.0"
] | 2 | 2019-04-27T20:17:43.000Z | 2019-11-29T21:44:21.000Z | # -*- coding: utf-8 -*-
from unittest.mock import patch
import opentracing
from chaoslib.types import Configuration
from chaostracing.control import cleanup_control, configure_control
| 30.333333 | 67 | 0.765568 |
63f5d05472c335001bf35ef47f9208c6df7b37a9 | 1,870 | py | Python | rnn/lang_model_pred_next_word/config.py | hautan/train_tf | 0946c7a497703f13c156de9f0135296fd91127ee | [
"Apache-2.0"
] | null | null | null | rnn/lang_model_pred_next_word/config.py | hautan/train_tf | 0946c7a497703f13c156de9f0135296fd91127ee | [
"Apache-2.0"
] | null | null | null | rnn/lang_model_pred_next_word/config.py | hautan/train_tf | 0946c7a497703f13c156de9f0135296fd91127ee | [
"Apache-2.0"
] | null | null | null | import tensorflow as tf
import flags
logging = tf.logging
BASIC = "basic"
CUDNN = "cudnn"
BLOCK = "block"
def get_config():
"""Get model config."""
config = None
if flags.FLAGS.model == "small":
config = SmallConfig()
elif flags.FLAGS.model == "medium":
config = MediumConfig()
elif flags.FLAGS.mode... | 19.684211 | 60 | 0.664706 |
63f9a97f8a1d12a0c494ff5ebbdc9c80c2a7869b | 1,752 | py | Python | sensor/components/rf24.py | mattgrogan/ledmatrix | 3a54de98ab107cf1266404400c7eb576007c8b17 | [
"MIT"
] | 1 | 2017-10-27T20:27:13.000Z | 2017-10-27T20:27:13.000Z | sensor/components/rf24.py | mattgrogan/ledmatrix | 3a54de98ab107cf1266404400c7eb576007c8b17 | [
"MIT"
] | null | null | null | sensor/components/rf24.py | mattgrogan/ledmatrix | 3a54de98ab107cf1266404400c7eb576007c8b17 | [
"MIT"
] | null | null | null | import logging
import time
import requests
import influxdb
from nrf24 import NRF24
log = logging.getLogger("ledmatrix")
| 20.372093 | 65 | 0.586758 |
63fc3f147de82089b59cb13ec3cb28b094d1398f | 4,465 | py | Python | spider/spider.py | omilab/internet-archive-link-extractor | c6940134ccaa68fff57b71001ff9d1c3e80cab9b | [
"MIT"
] | 3 | 2018-04-30T08:06:40.000Z | 2021-06-28T05:29:14.000Z | spider/spider.py | omilab/internet-archive-link-extractor | c6940134ccaa68fff57b71001ff9d1c3e80cab9b | [
"MIT"
] | 1 | 2021-03-18T15:21:31.000Z | 2021-03-18T15:21:31.000Z | spider/spider.py | omilab/internet-archive-link-extractor | c6940134ccaa68fff57b71001ff9d1c3e80cab9b | [
"MIT"
] | null | null | null | from bs4 import BeautifulSoup, SoupStrainer
import tldextract
import json
import re
from urlparse import urlparse, urlunparse
import requests
ARCHIVE_WEB_URL = 'http://web.archive.org/web'
ARCHIVE_CDX_URL = 'http://web.archive.org/cdx/search/cdx'
MAX_EXTRACTION_LEVEL = 5
| 36.598361 | 166 | 0.533707 |
63fd4bd54b5d3ab935a4584d74cf20a2fb417b19 | 38 | py | Python | tests/functional/modules/a_hidden_import/__init__.py | hawkhai/pyinstaller | 016a24479b34de161792c72dde455a81ad4c78ae | [
"Apache-2.0"
] | 9,267 | 2015-01-01T04:08:45.000Z | 2022-03-31T11:42:38.000Z | tests/functional/modules/a_hidden_import/__init__.py | hawkhai/pyinstaller | 016a24479b34de161792c72dde455a81ad4c78ae | [
"Apache-2.0"
] | 5,150 | 2015-01-01T12:09:56.000Z | 2022-03-31T18:06:12.000Z | tests/functional/modules/a_hidden_import/__init__.py | hawkhai/pyinstaller | 016a24479b34de161792c72dde455a81ad4c78ae | [
"Apache-2.0"
] | 2,101 | 2015-01-03T10:25:27.000Z | 2022-03-30T11:04:42.000Z | from . import submodule # noqa: F401
| 19 | 37 | 0.710526 |
63fdd3f4280910bb636973ee1df67b1888e017fe | 340 | py | Python | celery_project/tools/exceptions.py | JasonLearning/dzdp_spider | 2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7 | [
"Apache-2.0"
] | null | null | null | celery_project/tools/exceptions.py | JasonLearning/dzdp_spider | 2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7 | [
"Apache-2.0"
] | null | null | null | celery_project/tools/exceptions.py | JasonLearning/dzdp_spider | 2e09b1a18ae7f168ff1cd7457dc6b50f2cb364a7 | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 17/2/17 2:39
# @Author : Jason
# @File : exceptions.py
| 15.454545 | 45 | 0.688235 |
63fdf7825ab44c67de691a26081114f91b5fc925 | 9,985 | bzl | Python | cc/private/common.bzl | EtherealWake/tools | 54e81b4cd01c1af34e4180376aac60bb96668865 | [
"0BSD"
] | 1 | 2019-08-13T01:11:11.000Z | 2019-08-13T01:11:11.000Z | cc/private/common.bzl | EtherealWake/tools | 54e81b4cd01c1af34e4180376aac60bb96668865 | [
"0BSD"
] | null | null | null | cc/private/common.bzl | EtherealWake/tools | 54e81b4cd01c1af34e4180376aac60bb96668865 | [
"0BSD"
] | null | null | null | #
# Copyright (c) 2019 Jonathan McGee <broken.source@etherealwake.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS I... | 33.733108 | 80 | 0.665699 |
120014680c2bd2d7ca378ada98745e9de9eb3aee | 7,094 | py | Python | platforms/m3/programming/program_via_i2c.py | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 19 | 2015-01-26T10:47:23.000Z | 2021-08-13T11:07:54.000Z | platforms/m3/programming/program_via_i2c.py | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 14 | 2015-08-24T02:35:46.000Z | 2021-05-05T03:53:44.000Z | platforms/m3/programming/program_via_i2c.py | lab11/M-ulator | 95b49c6194678c74accca4a20af71380efbcac5f | [
"Apache-2.0",
"MIT"
] | 9 | 2015-05-27T23:27:35.000Z | 2020-10-05T22:02:43.000Z | #!/usr/bin/env python
#
# self-test: socat -x pty,link=/tmp/com1,raw,echo=0 pty,link=/tmp/com2,raw,echo=0
from math import ceil
from m3_common import printing_sleep as sleep
import socket
import sys
import os
import mimetypes
import queue
import logging
logging.basicConfig(level=logging.INFO, format="%(message)s")
log... | 31.669643 | 89 | 0.64914 |
1200fc9093c669658eb3eda6038151eb69622171 | 7,889 | py | Python | aviacme/cert.py | vidarno/aviacme | 6a00c29fda1664e5f546c879487bba84ca9d3681 | [
"MIT"
] | null | null | null | aviacme/cert.py | vidarno/aviacme | 6a00c29fda1664e5f546c879487bba84ca9d3681 | [
"MIT"
] | null | null | null | aviacme/cert.py | vidarno/aviacme | 6a00c29fda1664e5f546c879487bba84ca9d3681 | [
"MIT"
] | null | null | null | """Functions related to certificates"""
import json
import logging
import uuid
from datetime import datetime, timedelta
from enum import Enum
from pathlib import Path
import attr
from cryptography import x509
from cryptography.hazmat.backends import default_backend
logger = logging.getLogger(__name__)
def get_c... | 30.110687 | 88 | 0.591837 |
12016e4fe64bb35056a54608c56a4fed76dd5e23 | 4,456 | py | Python | LeNetWithS3Pooling/training/pooling.py | cclauss/DL4AGX | b4d73f6c39b0428e32ce5656352800cc7e2cfb22 | [
"Apache-2.0"
] | 1 | 2021-04-16T10:20:08.000Z | 2021-04-16T10:20:08.000Z | LeNetWithS3Pooling/training/pooling.py | andi4191/DL4AGX | b2aec0cc0d1375bcc29a94999e8cf66ca8e218fd | [
"Apache-2.0"
] | null | null | null | LeNetWithS3Pooling/training/pooling.py | andi4191/DL4AGX | b2aec0cc0d1375bcc29a94999e8cf66ca8e218fd | [
"Apache-2.0"
] | null | null | null | ##########################################################################
# Copyright (c) 2018-2019 NVIDIA Corporation. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | 37.445378 | 84 | 0.559022 |
1203afb61ab68811b0be249f8039a7d8df5ddf01 | 85,636 | py | Python | hubspot/cms/blogs/blog_posts/models/blog_post.py | Ronfer/hubspot-api-python | 1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4 | [
"Apache-2.0"
] | 117 | 2020-04-06T08:22:53.000Z | 2022-03-18T03:41:29.000Z | hubspot/cms/blogs/blog_posts/models/blog_post.py | Ronfer/hubspot-api-python | 1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4 | [
"Apache-2.0"
] | 62 | 2020-04-06T16:21:06.000Z | 2022-03-17T16:50:44.000Z | hubspot/cms/blogs/blog_posts/models/blog_post.py | Ronfer/hubspot-api-python | 1c87274ecbba4aa3c7728f890ccc6e77b2b6d2e4 | [
"Apache-2.0"
] | 45 | 2020-04-06T16:13:52.000Z | 2022-03-30T21:33:17.000Z | # coding: utf-8
"""
Blog Post endpoints
\"Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags\" # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubspot.cms.blo... | 32.315472 | 181 | 0.57115 |
1204747831fc9864ec931f9ad42fa72ea7913318 | 4,743 | py | Python | detector/train.py | EthanLuu/code-clone-detector | 0b6270ba18f9f266de0160c758e3e4554912fe08 | [
"MIT"
] | 3 | 2021-11-22T03:57:43.000Z | 2022-01-11T12:08:52.000Z | detector/train.py | EthanLuu/code-clone-detector | 0b6270ba18f9f266de0160c758e3e4554912fe08 | [
"MIT"
] | null | null | null | detector/train.py | EthanLuu/code-clone-detector | 0b6270ba18f9f266de0160c758e3e4554912fe08 | [
"MIT"
] | 1 | 2021-07-12T04:25:32.000Z | 2021-07-12T04:25:32.000Z | import pandas as pd
import os
import torch
import numpy as np
import pickle
import dill
from settings import settings
from model import BatchProgramCC
from torch.autograd import Variable
from gensim.models.word2vec import Word2Vec
from sklearn.metrics import precision_recall_fscore_support
categories = 5
HIDDEN_DIM =... | 33.167832 | 118 | 0.571157 |
1205449d8dab287437413d7a919c70335600e9bd | 653 | py | Python | src/lesson02/06-function.py | shq-shq-shq/python-lessons | fac96b0c95c676e8256329ac269ad4530f245d84 | [
"MIT"
] | null | null | null | src/lesson02/06-function.py | shq-shq-shq/python-lessons | fac96b0c95c676e8256329ac269ad4530f245d84 | [
"MIT"
] | null | null | null | src/lesson02/06-function.py | shq-shq-shq/python-lessons | fac96b0c95c676e8256329ac269ad4530f245d84 | [
"MIT"
] | null | null | null | def ():
print(", !")
()
()
()
()
()
_("", " ")
()
_("", " ")
()
_("", " ")
()
___(", ")
| 20.40625 | 50 | 0.7366 |
1205b697340a6ca66a4b5eefeee7e83d113d7439 | 3,336 | py | Python | whatthefood/data/visualise.py | lychanl/WhatTheFood | 94b6eec2c306e7e55b19395cde207d6e6beec7fe | [
"MIT"
] | null | null | null | whatthefood/data/visualise.py | lychanl/WhatTheFood | 94b6eec2c306e7e55b19395cde207d6e6beec7fe | [
"MIT"
] | null | null | null | whatthefood/data/visualise.py | lychanl/WhatTheFood | 94b6eec2c306e7e55b19395cde207d6e6beec7fe | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import pickle
import numpy as np
import argparse
from whatthefood.data.xml_to_obj import parse_file
from whatthefood.data.obj_to_nparray import get_objects_from_output, load_input_image
from whatthefood.data.preprocessing import ScalePreprocessor
from whatthefood.classification.utils im... | 34.391753 | 103 | 0.658573 |
120640bc4f94db61aa5fd8dea942754f11d7021a | 855 | py | Python | simulator.py | kryzsec/TOS_Prankster_Simulator | 4ef6f7133bf50607dc1a720e97ed636e740a9dc0 | [
"Unlicense"
] | null | null | null | simulator.py | kryzsec/TOS_Prankster_Simulator | 4ef6f7133bf50607dc1a720e97ed636e740a9dc0 | [
"Unlicense"
] | null | null | null | simulator.py | kryzsec/TOS_Prankster_Simulator | 4ef6f7133bf50607dc1a720e97ed636e740a9dc0 | [
"Unlicense"
] | null | null | null | from random import randint
d3 = 0
d4 = 0
d5 = 0
d6 = 0
d7 = 0
d8 = 0
d9p = 0
nm = 100000
temp = 0
for i in range(nm):
temp = count()
if temp==3:
d3+=1
elif temp == 4:
d4+=1
elif temp == 5:
d5+=1
elif temp == 6:
d6+=1
elif temp == 7:
d7+=1
elif temp == 8:
d8+=1
elif temp >= 9:
d9p+=1
print("D... | 15.545455 | 262 | 0.523977 |
1206d8e2c1e71e7cdd590a11a2f6c861efb19b7e | 12,320 | py | Python | 1_code/cluster/predict_symptoms_scv_grid.py | lindenmp/NormativeNeuroDev_CrossSec_DWI | af54928f047dd0c08fefcd7102b604cfeb84d364 | [
"MIT"
] | null | null | null | 1_code/cluster/predict_symptoms_scv_grid.py | lindenmp/NormativeNeuroDev_CrossSec_DWI | af54928f047dd0c08fefcd7102b604cfeb84d364 | [
"MIT"
] | 7 | 2020-03-25T14:09:37.000Z | 2022-01-13T02:37:09.000Z | 1_code/cluster/predict_symptoms_scv_grid.py | lindenmp/neurodev_cs_predictive | af54928f047dd0c08fefcd7102b604cfeb84d364 | [
"MIT"
] | null | null | null | import argparse
# Essentials
import os, sys, glob
import pandas as pd
import numpy as np
import copy
import json
# Stats
import scipy as sp
from scipy import stats
# Sklearn
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import KFold, GridSearchCV,... | 43.380282 | 173 | 0.589205 |
1206fe6c45497b764461237225d86918b1452f87 | 941 | py | Python | code/Interpreters/RThread.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | null | null | null | code/Interpreters/RThread.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | null | null | null | code/Interpreters/RThread.py | antuniooh/Dattebayo-compiler | fd6767aee1c131dcbf76fc061bce43224df03f8b | [
"MIT"
] | 1 | 2021-12-05T14:00:39.000Z | 2021-12-05T14:00:39.000Z | from threading import Thread
| 28.515152 | 76 | 0.564293 |
1207c0c819347d26f1f5ae9a5c2ef2ea9e853dbd | 1,783 | py | Python | src/recognize.py | avi09/Desktop-Assistant | 58019b41872af932c219106db94f7c3772cdde36 | [
"MIT"
] | 1 | 2020-11-24T11:34:57.000Z | 2020-11-24T11:34:57.000Z | src/recognize.py | avi09/Desktop-Assistant | 58019b41872af932c219106db94f7c3772cdde36 | [
"MIT"
] | null | null | null | src/recognize.py | avi09/Desktop-Assistant | 58019b41872af932c219106db94f7c3772cdde36 | [
"MIT"
] | null | null | null | import speech_recognition as sr
from gtts import gTTS
import os
import threading
import time
heard = False
control = False
r = sr.Recognizer()
audio = ""
secondary_detect_thread = threading.Thread(target = secondary_detect)
secondary_detect_thread.start()
# obtain audio from the microphone
| 23.155844 | 92 | 0.658441 |
1209b37a5fff85e6894affb2d4a1eb23e4cf32e9 | 838 | py | Python | counting_test.py | marcoher/rbm | 94e16393048c6a70353580c59cf0c8dc1977dd19 | [
"MIT"
] | null | null | null | counting_test.py | marcoher/rbm | 94e16393048c6a70353580c59cf0c8dc1977dd19 | [
"MIT"
] | null | null | null | counting_test.py | marcoher/rbm | 94e16393048c6a70353580c59cf0c8dc1977dd19 | [
"MIT"
] | null | null | null | from __future__ import division
from model2 import RBM2
import numpy as np
n = 15
samples = 400
X = np.zeros((samples, n, 2), dtype=np.int32)
for i in xrange(samples):
m = np.random.randint(1, n//2)
j1 = np.random.choice(n, size=(m), replace=False)
j2 = np.random.choice(n, size=(m), replace=False)
X... | 22.648649 | 83 | 0.607399 |
1209cdcba3e6b97b1c44983c53df59e38dab1068 | 629 | py | Python | experiments/swiss-roll2-17May.py | ishank011/gp-structure-search | 7984693f359baad07870ca24f058ff0bb52468b5 | [
"MIT"
] | 1 | 2020-04-08T12:25:37.000Z | 2020-04-08T12:25:37.000Z | experiments/swiss-roll2-17May.py | hassan-bdw/gp-structure-search | ca6771cb08ee993f474b8e206a0410aa0b62e58a | [
"MIT"
] | null | null | null | experiments/swiss-roll2-17May.py | hassan-bdw/gp-structure-search | ca6771cb08ee993f474b8e206a0410aa0b62e58a | [
"MIT"
] | null | null | null | # Runs on all swiss roll datasets, quickly.
Experiment(description='Swiss roll normalized slow',
data_dir='../data/swiss-roll2/',
max_depth=10,
random_order=False,
k=1,
debug=False,
local_computation=False,
n_rand=3,
sd=4,
... | 26.208333 | 52 | 0.508744 |
120b99a0975e33345360483fef0a78b371c52141 | 2,633 | py | Python | ai/split-chinese/jieba-base.py | veaba/ncov | 6019f6b90761fd39363f8a7182ffcee22b9cb7ed | [
"MIT"
] | 288 | 2020-01-21T06:12:03.000Z | 2022-01-16T08:03:13.000Z | ai/split-chinese/jieba-base.py | veaba/ncov | 6019f6b90761fd39363f8a7182ffcee22b9cb7ed | [
"MIT"
] | 26 | 2020-01-20T05:07:31.000Z | 2022-03-12T00:24:56.000Z | ai/split-chinese/jieba-base.py | veaba/ncov | 6019f6b90761fd39363f8a7182ffcee22b9cb7ed | [
"MIT"
] | 48 | 2020-01-22T09:05:59.000Z | 2022-01-16T08:03:11.000Z | # encoding=utf-8
import jieba.posseg as psg
# string=""
string ="""
4120243110898107322642
88109218
86738721378511
4122431115612177663334182160727199089655
57572224424375746433847186322125796780350008
31611228285591064307
14371004360445133881096
"""
seg_list=psg.cut(string)
# print("===>","| ".join(seg_list))
# ==... | 65.825 | 179 | 0.550703 |
120ca5c4ac58e2fc2895a4b9f281ee43dcb77564 | 2,120 | py | Python | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 12 | 2019-08-02T07:58:16.000Z | 2022-01-31T23:45:08.000Z | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 23 | 2019-01-19T08:54:48.000Z | 2022-03-11T23:39:37.000Z | venv/lib/python3.7/site-packages/allauth/socialaccount/providers/azure/views.py | vikram0207/django-rest | eafec575999dce6859dc7b99177cff339b2bcbdd | [
"MIT"
] | 17 | 2020-03-03T08:42:17.000Z | 2020-10-03T16:08:49.000Z | from __future__ import unicode_literals
import requests
from allauth.socialaccount.providers.oauth2.views import (
OAuth2Adapter,
OAuth2CallbackView,
OAuth2LoginView,
)
from .provider import AzureProvider
LOGIN_URL = 'https://login.microsoftonline.com/common/oauth2/v2.0'
GRAPH_URL = 'https://graph.micr... | 33.650794 | 108 | 0.692925 |
120ca81e28bba9f7cc8389252be215df8a98086a | 44,887 | py | Python | meerk40t/lihuiyu/gui/lhystudiosdrivergui.py | joerlane/meerk40t | a75d78848ff1682640e112111fb6ac4e23e08616 | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/gui/lhystudiosdrivergui.py | joerlane/meerk40t | a75d78848ff1682640e112111fb6ac4e23e08616 | [
"MIT"
] | null | null | null | meerk40t/lihuiyu/gui/lhystudiosdrivergui.py | joerlane/meerk40t | a75d78848ff1682640e112111fb6ac4e23e08616 | [
"MIT"
] | null | null | null | # -*- coding: ISO-8859-1 -*-
import wx
from meerk40t.core.units import Length
from meerk40t.gui.icons import icons8_administrative_tools_50
from meerk40t.gui.mwindow import MWindow
from meerk40t.kernel import signal_listener
_ = wx.GetTranslation
FIX_SPEEDS_RATIO = 0.9195
class ConfigurationTcp(wx.Panel):
clas... | 39.409131 | 414 | 0.646111 |
120cce945b9f176ef8b7f631e3e71f050cc39657 | 2,686 | py | Python | fast_multiplier_utils.py | morozyto/SMASH | 70a42bfd27b593a5ddb13a8afe58a0853a9f3a46 | [
"MIT"
] | null | null | null | fast_multiplier_utils.py | morozyto/SMASH | 70a42bfd27b593a5ddb13a8afe58a0853a9f3a46 | [
"MIT"
] | null | null | null | fast_multiplier_utils.py | morozyto/SMASH | 70a42bfd27b593a5ddb13a8afe58a0853a9f3a46 | [
"MIT"
] | null | null | null | import tools
from multiprocessing import SimpleQueue, Process
import numpy as np
__all__ = ['fast_multiply']
| 31.6 | 119 | 0.61653 |
120dee089b6cc07493a0c81d69883ab91214ae37 | 187 | py | Python | storage/urls.py | Robin8Put/pmes | 338bec94162098f05b75bad035417317e1252fd2 | [
"Apache-2.0"
] | 5 | 2018-07-31T07:37:09.000Z | 2019-05-27T04:40:38.000Z | storage/urls.py | Robin8Put/pmes | 338bec94162098f05b75bad035417317e1252fd2 | [
"Apache-2.0"
] | 4 | 2018-08-01T11:11:54.000Z | 2022-03-11T23:20:53.000Z | storage/urls.py | Robin8Put/pmes | 338bec94162098f05b75bad035417317e1252fd2 | [
"Apache-2.0"
] | 5 | 2018-06-09T07:42:04.000Z | 2018-12-28T21:15:52.000Z | import tornado.web
import settings
import views
storage_router = tornado.web.Application([
(settings.ENDPOINTS["storage"], views.StorageHandler)
], debug=settings.DEBUG) | 26.714286 | 62 | 0.73262 |
1210c5c1adc2120eef651c0b252f64a8824fdac1 | 449 | py | Python | MPNet/AE/data_loader.py | liqi17thu/MPNet | b2dd2fa6037c5a307708de865c10c8ba86856e59 | [
"MIT"
] | null | null | null | MPNet/AE/data_loader.py | liqi17thu/MPNet | b2dd2fa6037c5a307708de865c10c8ba86856e59 | [
"MIT"
] | null | null | null | MPNet/AE/data_loader.py | liqi17thu/MPNet | b2dd2fa6037c5a307708de865c10c8ba86856e59 | [
"MIT"
] | null | null | null | import torch
import torch.utils.data as data
import os
import pickle
import numpy as np
import nltk
from PIL import Image
import os.path
import random
| 22.45 | 73 | 0.668151 |
12112f7d0f3727152084ea033286d88e53e8c329 | 2,885 | py | Python | module3-nosql-and-document-oriented-databases/rpg_mongo.py | krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases | 9617528ad5fd23354623926b819f98f9a063d252 | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/rpg_mongo.py | krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases | 9617528ad5fd23354623926b819f98f9a063d252 | [
"MIT"
] | null | null | null | module3-nosql-and-document-oriented-databases/rpg_mongo.py | krsmith/DS-Unit-3-Sprint-2-SQL-and-Databases | 9617528ad5fd23354623926b819f98f9a063d252 | [
"MIT"
] | null | null | null | import pymongo
import json
import urllib.request
connection_string = 'mongodb://<USERNAME>:<PASSWORD>@cluster0-shard-00-00-pjgev.mongodb.net:27017,cluster0-shard-00-01-pjgev.mongodb.net:27017,cluster0-shard-00-02-pjgev.mongodb.net:27017/test?ssl=true&replicaSet=Cluster0-shard-0&authSource=admin&retryWrites=true'
clien... | 38.466667 | 264 | 0.744194 |
121240feaf02f8178ec17474cc615822de1faa36 | 411 | py | Python | twikwak17/phases/__init__.py | shaypal5/gender_augmented_twitter_network | 3a33feb4dfdb9413201d7844a15ecacf21ef9ba0 | [
"MIT"
] | null | null | null | twikwak17/phases/__init__.py | shaypal5/gender_augmented_twitter_network | 3a33feb4dfdb9413201d7844a15ecacf21ef9ba0 | [
"MIT"
] | null | null | null | twikwak17/phases/__init__.py | shaypal5/gender_augmented_twitter_network | 3a33feb4dfdb9413201d7844a15ecacf21ef9ba0 | [
"MIT"
] | null | null | null | """The different phases of the data generation pipeline."""
from .phase1 import ( # noqa: F401
phase1,
)
from .phase2 import ( # noqa: F401
phase2,
)
from .phase3 import ( # noqa: F401
phase3,
)
from .phase4 import ( # noqa: F401
phase4,
)
from .phase5 import ( # noqa: F401
phase5,
)
from .pha... | 17.125 | 59 | 0.620438 |
121268fc44398fa4d8c57e08b1e5e38fe9e492b2 | 4,458 | py | Python | AlyMoly/tags/templatetags/tags.py | CreceLibre/alymoly | 1420e305f41301b8548dfbbabfc64330b74403be | [
"MIT"
] | null | null | null | AlyMoly/tags/templatetags/tags.py | CreceLibre/alymoly | 1420e305f41301b8548dfbbabfc64330b74403be | [
"MIT"
] | null | null | null | AlyMoly/tags/templatetags/tags.py | CreceLibre/alymoly | 1420e305f41301b8548dfbbabfc64330b74403be | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#-*- encoding: UTF-8 -*-
###############################################
# Todos los derechos reservados a: #
# CreceLibre Consultores en Tecnologas Ltda. #
# #
# Milton Inostroza Aguilera #
# minostro@minostro.com ... | 33.268657 | 84 | 0.482952 |
12139f49154f34b8c8740a61c1db66b2f3f6df64 | 453 | py | Python | airodb_analyzer/ui/aboutBoxForm.py | jeremydumais/airodb-analyzer | 2056b95891b3543c51758bc586a98b90e54c9670 | [
"MIT"
] | null | null | null | airodb_analyzer/ui/aboutBoxForm.py | jeremydumais/airodb-analyzer | 2056b95891b3543c51758bc586a98b90e54c9670 | [
"MIT"
] | null | null | null | airodb_analyzer/ui/aboutBoxForm.py | jeremydumais/airodb-analyzer | 2056b95891b3543c51758bc586a98b90e54c9670 | [
"MIT"
] | null | null | null | from PyQt5 import QtCore, QtGui, QtWidgets, uic
import qdarkgraystyle | 34.846154 | 68 | 0.717439 |
1216510f06846187ec2c36e2c66ddc29c2a13123 | 4,263 | py | Python | flashback/thread.py | miroli/flashback | a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1 | [
"MIT"
] | 1 | 2017-06-09T13:14:35.000Z | 2017-06-09T13:14:35.000Z | flashback/thread.py | miroli/flashback | a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1 | [
"MIT"
] | 1 | 2016-12-27T19:23:34.000Z | 2016-12-27T19:23:34.000Z | flashback/thread.py | miroli/flashback | a7ac89a522c09f3b2277fb0cf3a8cf8da95ae3d1 | [
"MIT"
] | 1 | 2016-12-26T16:25:18.000Z | 2016-12-26T16:25:18.000Z | # -*- coding: utf-8 -*-
import csv
import json
import datetime
import urllib
from collections import Counter
import requests
from bs4 import BeautifulSoup
from .post import Post
errors = [
((u'Denna trd har flyttats till "Papperskorgen". '
u'Ett delforum fr trdar med fr lg kvalitet.'),
TrashExce... | 29.19863 | 75 | 0.594183 |
121677d83b1b19d4371425c9caf2a48da8fb17ef | 1,152 | py | Python | utils/print_statistics.py | tianchenji/Multimodal-SVAE | c76b7f8984610e32819510a7a5295124b97460be | [
"MIT"
] | 8 | 2020-11-12T23:43:28.000Z | 2022-01-14T02:01:18.000Z | utils/print_statistics.py | tianchenji/Multimodal-SVAE | c76b7f8984610e32819510a7a5295124b97460be | [
"MIT"
] | null | null | null | utils/print_statistics.py | tianchenji/Multimodal-SVAE | c76b7f8984610e32819510a7a5295124b97460be | [
"MIT"
] | 2 | 2020-11-18T03:35:38.000Z | 2021-10-21T12:38:59.000Z | import numpy as np
import pandas as pd | 44.307692 | 95 | 0.598958 |
1219cb36a0069666978851302744932b7773dff4 | 1,185 | py | Python | chaperone/cproc/pt/oneshot.py | msabramo/chaperone | 9ff2c3a5b9c6820f8750320a564ea214042df06f | [
"Apache-2.0"
] | 186 | 2015-07-22T00:08:04.000Z | 2021-11-05T21:51:09.000Z | chaperone/cproc/pt/oneshot.py | msabramo/chaperone | 9ff2c3a5b9c6820f8750320a564ea214042df06f | [
"Apache-2.0"
] | 24 | 2015-07-27T15:30:14.000Z | 2021-09-11T21:19:37.000Z | chaperone/cproc/pt/oneshot.py | msabramo/chaperone | 9ff2c3a5b9c6820f8750320a564ea214042df06f | [
"Apache-2.0"
] | 26 | 2016-01-11T21:02:30.000Z | 2021-08-31T11:09:25.000Z | import asyncio
from chaperone.cproc.subproc import SubProcess
from chaperone.cutil.errors import ChProcessError
| 42.321429 | 127 | 0.654852 |
121a3ac8ab5af490306c27ce4f405eed59364158 | 7,994 | py | Python | Flask Application/App.py | kalninandre/Harvard | 0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac | [
"MIT"
] | null | null | null | Flask Application/App.py | kalninandre/Harvard | 0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac | [
"MIT"
] | null | null | null | Flask Application/App.py | kalninandre/Harvard | 0c4e5de4a54873b2f9ce663ee1776a055c7dd3ac | [
"MIT"
] | null | null | null | import os
from cs50 import SQL
from flask import Flask, flash, redirect, render_template, request, session
from flask_session import Session
from tempfile import mkdtemp
from werkzeug.security import check_password_hash, generate_password_hash
from helpers import apology, login_required, lookup, usd
# Configure appl... | 30.166038 | 173 | 0.628596 |
121a3b6415753931da04c67d483406265b360d92 | 673,905 | py | Python | pysnmp/BLADETYPE6-NETWORK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/BLADETYPE6-NETWORK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/BLADETYPE6-NETWORK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BLADETYPE6-NETWORK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BLADETYPE6-NETWORK-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:22:26 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | 154.105877 | 17,458 | 0.729892 |
121d25679819deafcd527e85f968ff7009bafc54 | 1,918 | py | Python | setup.py | dnif-archive/fnExchange | d75431b37da3193447b919b4be2e0104266156f1 | [
"Apache-2.0"
] | 1 | 2017-07-19T22:13:54.000Z | 2017-07-19T22:13:54.000Z | setup.py | dnif/fnExchange | d75431b37da3193447b919b4be2e0104266156f1 | [
"Apache-2.0"
] | 1 | 2021-03-25T21:27:21.000Z | 2021-03-25T21:27:21.000Z | setup.py | dnif-archive/fnExchange | d75431b37da3193447b919b4be2e0104266156f1 | [
"Apache-2.0"
] | 1 | 2021-07-07T18:55:19.000Z | 2021-07-07T18:55:19.000Z | """
fnExchange is a scalable, open source API layer (also called an API
"router") that provides a consistent proxy web interface for invoking
various web APIs without the caller having to write separate,
special-purpose code for each of them.
fnExchange is packaged as a command line interface executable
``fnexchange``... | 28.626866 | 69 | 0.663712 |
121d57b33c2245662cdd146e4a68652096cf0275 | 3,026 | py | Python | local_traction_control.py | ngrabbs/traction_control | 0289604658d68b144a1867f2c70e3c177cc559fe | [
"MIT"
] | null | null | null | local_traction_control.py | ngrabbs/traction_control | 0289604658d68b144a1867f2c70e3c177cc559fe | [
"MIT"
] | null | null | null | local_traction_control.py | ngrabbs/traction_control | 0289604658d68b144a1867f2c70e3c177cc559fe | [
"MIT"
] | null | null | null | ################################################################################
# Time SPK: Traction retard VSS1 VSS2 VSS1 ms 1 VSS2 ms 1 TC slip * time
# the info for traction control says "slip% X 0.01s"
# Retard 0.0 3.3 6.7 10.0
# slip x time 0.0 6.7 13.3 20.0
# settings were above 50.1 mph and 10% slip... | 35.186047 | 143 | 0.639128 |
121df04623646121d44d2f0b190065f249970791 | 869 | py | Python | key_value_store/models.py | nahidsaikat/Key-Value-Store | a8e8422727bb4e221b0a78bdb279888cb95cd7ab | [
"MIT"
] | null | null | null | key_value_store/models.py | nahidsaikat/Key-Value-Store | a8e8422727bb4e221b0a78bdb279888cb95cd7ab | [
"MIT"
] | 6 | 2020-06-05T20:17:24.000Z | 2021-06-10T18:05:59.000Z | key_value_store/models.py | nahidsaikat/Key-Value-Store | a8e8422727bb4e221b0a78bdb279888cb95cd7ab | [
"MIT"
] | null | null | null | from django.db import models
from django.contrib.auth import get_user_model
User = get_user_model()
| 41.380952 | 119 | 0.747986 |
121f6860127d88688471d0adde04fc41ca279285 | 6,455 | py | Python | util/Spotify.py | broskh/YouSpotify | fcdfe9edb07085a3a607c07adfa60434088e1da5 | [
"MIT"
] | null | null | null | util/Spotify.py | broskh/YouSpotify | fcdfe9edb07085a3a607c07adfa60434088e1da5 | [
"MIT"
] | null | null | null | util/Spotify.py | broskh/YouSpotify | fcdfe9edb07085a3a607c07adfa60434088e1da5 | [
"MIT"
] | null | null | null | import codecs
import eyed3
import http.client
import http.server
import json
import re
from sys import exit
import taglib
import time
import urllib.error
import urllib.parse
import urllib.request
import webbrowser
from util import log
# Pops open a browser window for a user to log in and authorize API access.s
def ... | 40.85443 | 115 | 0.612703 |
1220a3fd8450e8b80799d200f0692602eebe42b1 | 5,003 | py | Python | L4/4.2/PEP8/L1_PEP8.py | Wittline/Python_scripts | 9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734 | [
"MIT"
] | 1 | 2021-08-20T08:25:40.000Z | 2021-08-20T08:25:40.000Z | L4/4.2/PEP8/L1_PEP8.py | Wittline/Python_scripts | 9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734 | [
"MIT"
] | null | null | null | L4/4.2/PEP8/L1_PEP8.py | Wittline/Python_scripts | 9d576e8cc9ef08ec7f1bcc8bb6207dae5ccc5734 | [
"MIT"
] | 1 | 2021-08-20T08:25:41.000Z | 2021-08-20T08:25:41.000Z | import math
import unittest
if __name__ == '__main__':
unittest.main() | 31.866242 | 66 | 0.496302 |
1220c122965971e839f7899fd39817e879a3842e | 6,173 | py | Python | foodx_devops_tools/pipeline_config/_paths.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 3 | 2021-06-23T20:53:43.000Z | 2022-01-26T14:19:43.000Z | foodx_devops_tools/pipeline_config/_paths.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 33 | 2021-08-09T15:44:51.000Z | 2022-03-03T18:28:02.000Z | foodx_devops_tools/pipeline_config/_paths.py | Food-X-Technologies/foodx_devops_tools | 57d1bf1304d9c9a386eaffa427f9eb36c410c350 | [
"MIT"
] | 1 | 2021-06-23T20:53:52.000Z | 2021-06-23T20:53:52.000Z | # Copyright (c) 2021 Food-X Technologies
#
# This file is part of foodx_devops_tools.
#
# You should have received a copy of the MIT License along with
# foodx_devops_tools. If not, see <https://opensource.org/licenses/MIT>.
"""Configuration file path management."""
import logging
import pathlib
import typing
fr... | 32.151042 | 80 | 0.609266 |
1221ab57e777c610f8f73a258240f6686a45ed69 | 65 | py | Python | nestor/datasets/__init__.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 16 | 2018-07-06T16:36:56.000Z | 2021-12-13T03:02:02.000Z | nestor/datasets/__init__.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 46 | 2018-08-06T15:51:35.000Z | 2021-08-02T21:00:51.000Z | nestor/datasets/__init__.py | usnistgov/nestor-tmp | 6cc35dcf4dac029f94c4bc92783b5dc37bc205ce | [
"RSA-MD"
] | 7 | 2020-04-27T18:56:24.000Z | 2021-08-14T02:44:40.000Z | from .base import load_excavators
__all__ = ["load_excavators"]
| 16.25 | 33 | 0.784615 |
12227937dd3e5390b3fd917fdf9a71333a4de64c | 414 | py | Python | easy/n-repeated element in size 2n array/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | 4 | 2021-06-03T22:19:13.000Z | 2021-10-05T18:14:12.000Z | easy/n-repeated element in size 2n array/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | easy/n-repeated element in size 2n array/solution.py | ilya-sokolov/leetcode | ad421111d0d7c5ec5245f33552e94a373b6fd426 | [
"MIT"
] | null | null | null | from typing import List
s = Solution()
print(s.repeatedNTimes([1, 2, 3, 3]))
print(s.repeatedNTimes([2, 1, 2, 5, 3, 2]))
print(s.repeatedNTimes([5, 1, 5, 2, 5, 3, 5, 4]))
| 24.352941 | 53 | 0.52657 |
1222c7282f49d3772df08b9a182251c1657c7ca1 | 948 | py | Python | deploy/show_events.py | Acria-Network/Acria-Contracts | 3c8b0e6f453ef531a8464ee0bed3cf5642938633 | [
"MIT"
] | 29 | 2021-03-11T14:30:21.000Z | 2022-02-23T09:15:48.000Z | deploy/show_events.py | harshitvermadu/Acria-Contracts | 3c8b0e6f453ef531a8464ee0bed3cf5642938633 | [
"MIT"
] | 3 | 2021-05-02T13:58:53.000Z | 2022-01-11T19:12:49.000Z | deploy/show_events.py | harshitvermadu/Acria-Contracts | 3c8b0e6f453ef531a8464ee0bed3cf5642938633 | [
"MIT"
] | 8 | 2021-04-08T12:32:26.000Z | 2022-02-23T09:23:56.000Z | import json
from web3 import Web3, HTTPProvider, IPCProvider
from web3.middleware import geth_poa_middleware
import os
from os.path import join, dirname
from dotenv import load_dotenv
load_dotenv(join(dirname(__file__), '.env'))
if(os.environ.get("WEB3_USE_IPC") == False):
web3 = Web3(HTTPProvider(os.environ.get(... | 33.857143 | 93 | 0.778481 |
12280aa5408dc93a80e62d7f0a71a4647ad5b226 | 5,088 | py | Python | branches/old/python/ansi-C-generator/generate_source_a4d.py | jeffhammond/spaghetty | e2dbe2dd2621110b899b21dff590906a579e8bf5 | [
"BSD-2-Clause"
] | 1 | 2018-01-05T16:13:08.000Z | 2018-01-05T16:13:08.000Z | branches/old/python/ansi-C-generator/generate_source_a4d.py | jeffhammond/spaghetty | e2dbe2dd2621110b899b21dff590906a579e8bf5 | [
"BSD-2-Clause"
] | null | null | null | branches/old/python/ansi-C-generator/generate_source_a4d.py | jeffhammond/spaghetty | e2dbe2dd2621110b899b21dff590906a579e8bf5 | [
"BSD-2-Clause"
] | null | null | null | import fileinput
import string
import sys
import os
c_compiler = 'icc'
c_link_flags = '-g -O1 -xT -march=core2 -mtune=core2 -align'# -strict-ansi'
c_opt_flags = '-g -O3 -xT -march=core2 -mtune=core2 -funroll-loops -align'# -strict-ansi'
fortran_compiler = 'ifort'
fortran_link_flags = '-g -O1 -xT -march=core2 -mtune=co... | 47.551402 | 128 | 0.584906 |
122bd4054f1dcb784497724ac66a52927f337457 | 42,079 | py | Python | pybin3/insts.py | avielazari/vlsistuff | 34304dc64437fc849d74addd09963dca587df537 | [
"MIT"
] | 26 | 2018-03-17T18:14:22.000Z | 2022-03-14T07:23:13.000Z | pybin3/insts.py | psumesh/vlsistuff | 1fe64b093d0581d99c7d826b74c31b8655fa0b31 | [
"MIT"
] | 1 | 2019-10-16T10:31:11.000Z | 2019-10-17T04:14:53.000Z | pybin3/insts.py | psumesh/vlsistuff | 1fe64b093d0581d99c7d826b74c31b8655fa0b31 | [
"MIT"
] | 7 | 2018-07-16T07:51:25.000Z | 2022-02-15T14:22:54.000Z | #! /usr/bin/env python3
import os,string,sys,types
instructions={}
inst_id=1
OpcodeWidth=25
Dnops={}
DmanualIfields={}
DmanualOpcodes={}
DnfSpecials = {}
Chip = 'chip'
Header0 = '''
def exr(Int,High,Wid):
Low = High-Wid+1
Mask = (1<<Wid)-1
Res = (Int>>Low)&Mask
return Res
def instructions... | 29.080166 | 136 | 0.502887 |
122c1bf9143cdfc0dacdc43325b18177c4f1fcae | 7,598 | py | Python | tests/test_types.py | theLine/LSP | b0c1045862601ee6e6fd3250d3a441d46a6e8d7c | [
"MIT"
] | 753 | 2017-04-21T23:58:56.000Z | 2019-12-21T13:39:08.000Z | tests/test_types.py | theLine/LSP | b0c1045862601ee6e6fd3250d3a441d46a6e8d7c | [
"MIT"
] | 776 | 2019-12-21T19:12:46.000Z | 2022-03-27T16:04:14.000Z | tests/test_types.py | theLine/LSP | b0c1045862601ee6e6fd3250d3a441d46a6e8d7c | [
"MIT"
] | 125 | 2017-08-14T21:10:34.000Z | 2019-12-21T02:34:38.000Z | from LSP.plugin.core.types import diff
from LSP.plugin.core.types import DocumentSelector
from LSP.plugin.core.typing import List
from unittest.mock import MagicMock
import sublime
import unittest
| 51.337838 | 116 | 0.655436 |
122d72a559d873a88dff7bb5b54a57ab59446d18 | 97 | py | Python | tests/inline_test_resources/5/subA/script.py | thesynman/pybricksdev | 6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9 | [
"MIT"
] | null | null | null | tests/inline_test_resources/5/subA/script.py | thesynman/pybricksdev | 6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9 | [
"MIT"
] | null | null | null | tests/inline_test_resources/5/subA/script.py | thesynman/pybricksdev | 6f34cfb7a5f26628fe3cedae1ce51ee6024f57b9 | [
"MIT"
] | null | null | null | import subB.importA
import importB
my_local = 'ggg'
print(subB.importA.foo)
print(importB.flab)
| 13.857143 | 23 | 0.783505 |
122df72ef8387bf146c14aba36a7307760cd2cfc | 1,242 | py | Python | demo/py/shap.py | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 57 | 2015-02-16T06:43:24.000Z | 2022-03-16T06:21:36.000Z | demo/py/shap.py | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 4 | 2016-03-08T09:51:09.000Z | 2021-03-29T10:18:55.000Z | demo/py/shap.py | berak/opencv_smallfry | fd8f64980dff0527523791984d6cb3dfcd2bc9bc | [
"BSD-3-Clause"
] | 27 | 2015-03-28T19:55:34.000Z | 2022-01-09T15:03:15.000Z | import numpy as np
import cv2
im = cv2.imread('py/shap.png')
cv2.imshow('original image',im)
cv2.waitKey()
imgray = cv2.cvtColor(im,cv2.COLOR_BGR2GRAY)
cv2.imshow('gray image',imgray)
cv2.waitKey()
ret,thresh = cv2.threshold(imgray,80,255,1)
cv2.imshow('thresh image',thresh)
cv2.waitKey()
image, contours, hierarchy... | 24.84 | 91 | 0.624799 |
12309dafba73623c841ad45a9bf13a6868d28f00 | 182 | py | Python | scripts/dir.py | DEMON1A/EasyShell | d37589b616f844c4d6f01ad594642033463f346b | [
"MIT"
] | 3 | 2021-02-02T15:07:27.000Z | 2021-05-21T10:02:08.000Z | scripts/dir.py | DEMON1A/EasyShell | d37589b616f844c4d6f01ad594642033463f346b | [
"MIT"
] | 7 | 2021-02-03T11:14:04.000Z | 2021-02-18T19:39:25.000Z | scripts/dir.py | DEMON1A/EasyShell | d37589b616f844c4d6f01ad594642033463f346b | [
"MIT"
] | null | null | null | from os import system , name
| 20.222222 | 29 | 0.505495 |
123220df37e0808414ed2913c0bf8b65b7d004a4 | 5,840 | py | Python | dmlab2d/random_agent.py | jifflund/lab2d | f634c378d428dd19e8b154aa5b590d33f42438bf | [
"Apache-2.0"
] | 377 | 2020-11-16T01:30:06.000Z | 2022-03-24T09:30:00.000Z | dmlab2d/random_agent.py | jifflund/lab2d | f634c378d428dd19e8b154aa5b590d33f42438bf | [
"Apache-2.0"
] | 17 | 2020-11-18T13:57:12.000Z | 2022-03-28T01:20:52.000Z | dmlab2d/random_agent.py | jifflund/lab2d | f634c378d428dd19e8b154aa5b590d33f42438bf | [
"Apache-2.0"
] | 47 | 2020-11-16T12:36:10.000Z | 2022-03-24T17:50:18.000Z | # Copyright 2019 The DMLab2D Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 31.73913 | 80 | 0.682363 |
12342b9334c2a4a3508d4c58273cbcad27a8143b | 7,336 | py | Python | KthFoldADXMultiPeriod.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | 3 | 2019-04-26T11:13:14.000Z | 2020-01-10T05:58:16.000Z | KthFoldADXMultiPeriod.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | KthFoldADXMultiPeriod.py | adamrvfisher/TechnicalAnalysisLibrary | 38a22b2b2b5052623f81edb11b3c5460fc254e45 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Adam Reinhold Von Fisher - https://www.linkedin.com/in/adamrvfisher/
"""
#pandas_datareader is deprecated, use YahooGrabber
#This is part of a k-th fold optimization tool
#Import modules
#import numpy as np
#from pandas_datareader import data
import pandas as pd
import time as t
... | 33.497717 | 83 | 0.643675 |
1235812bfd2f59b3e973436432bfcc56572fe49f | 2,292 | py | Python | python/hw5/logger.py | jeremy24/494-graph-algos | 031a90e46304f405829bad7658965aae215833e1 | [
"MIT"
] | null | null | null | python/hw5/logger.py | jeremy24/494-graph-algos | 031a90e46304f405829bad7658965aae215833e1 | [
"MIT"
] | null | null | null | python/hw5/logger.py | jeremy24/494-graph-algos | 031a90e46304f405829bad7658965aae215833e1 | [
"MIT"
] | null | null | null | from __future__ import print_function
import logging
import sys
import pip
import os
try:
install("colorlog")
import colorlog
except Exception as ex:
raise ex
a = Logger("test")
a.debug("blah", "blah")
| 25.186813 | 87 | 0.545375 |
1237cd245f6b8ab6e5c7b528805435a944e1e442 | 18,438 | py | Python | agents.py | fiorenza2/OffCon3 | b5e139e40cee74c4f8d507ed4786fd33ed025157 | [
"MIT"
] | 17 | 2021-01-28T17:54:23.000Z | 2021-12-21T15:22:22.000Z | agents.py | jparkerholder/OffCon3 | b5e139e40cee74c4f8d507ed4786fd33ed025157 | [
"MIT"
] | 1 | 2021-02-15T19:28:05.000Z | 2021-03-14T23:25:04.000Z | agents.py | fiorenza2/OffCon3 | b5e139e40cee74c4f8d507ed4786fd33ed025157 | [
"MIT"
] | 2 | 2021-06-21T12:14:44.000Z | 2021-08-08T10:04:30.000Z | import copy
import numpy as np
import torch
import torch.nn.functional as F
from utils import ReplayPool
from networks import Policy, StochasticPolicy, DoubleQFunc
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
class TD3_Agent(OffPolicyAgent):
def update_target(self):
"""... | 42.87907 | 176 | 0.642911 |
12383b0b628c1ffcd2fa0c6b1e0b4f97764ed9f1 | 33,002 | py | Python | egg/platform_cpu.py | eschnett/nsimd | 11a58156ac8f1d8b60f1112c41efd9ef91d91c3d | [
"MIT"
] | null | null | null | egg/platform_cpu.py | eschnett/nsimd | 11a58156ac8f1d8b60f1112c41efd9ef91d91c3d | [
"MIT"
] | null | null | null | egg/platform_cpu.py | eschnett/nsimd | 11a58156ac8f1d8b60f1112c41efd9ef91d91c3d | [
"MIT"
] | null | null | null | # Copyright (c) 2019 Agenium Scale
#
# 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, distr... | 40.050971 | 80 | 0.43158 |
1238eb6ce8b77f02945606bdd4829850e210eefb | 1,160 | py | Python | app/types/hitbox.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | 1 | 2022-01-07T02:38:08.000Z | 2022-01-07T02:38:08.000Z | app/types/hitbox.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | null | null | null | app/types/hitbox.py | Ahmed-Khaled-dev/modern-meerkats | e54304303c77928a2566f4e4c3eefb98135acfc7 | [
"MIT"
] | null | null | null | from typing import Type
from blessed import Terminal
from pydantic import BaseModel
from app import constants as const
| 29 | 74 | 0.622414 |
1239594d29a58dedb1b0d505621f1a432d45aa38 | 21,907 | py | Python | stf/dataset/TestSet_avg_mars.py | TencentYoutuResearch/PersonReID-TSF | b56ba8f4b2cbd7569ab15f62474369dd40d3dca7 | [
"Apache-2.0"
] | 19 | 2021-01-07T11:09:46.000Z | 2021-12-31T13:05:02.000Z | stf/dataset/TestSet_avg_mars.py | TencentYoutuResearch/PersonReID-TSF | b56ba8f4b2cbd7569ab15f62474369dd40d3dca7 | [
"Apache-2.0"
] | null | null | null | stf/dataset/TestSet_avg_mars.py | TencentYoutuResearch/PersonReID-TSF | b56ba8f4b2cbd7569ab15f62474369dd40d3dca7 | [
"Apache-2.0"
] | 2 | 2021-01-08T08:30:32.000Z | 2021-02-04T02:18:55.000Z | from __future__ import print_function
import sys
import time
import os.path as osp
from PIL import Image
import cv2
import numpy as np
import random
from collections import defaultdict
from .Dataset import Dataset
from ..utils.utils import measure_time
from ..utils.re_ranking import re_ranking
from ..utils.metric imp... | 38.568662 | 111 | 0.545305 |
1239dd44b691726320f6ca0baac8f4ca02b74a2c | 1,793 | py | Python | aiautomation/log/simple_log.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/log/simple_log.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | aiautomation/log/simple_log.py | marvinren/aiautomation | 639f57f502104dd170dca24dd9ff15d80c031e21 | [
"MIT"
] | null | null | null | from aiautomation.log.abstract_log import AbstractLog
from aiautomation.utils.log import get_logger
'''
'''
| 49.805556 | 144 | 0.654769 |
123ad9a6c56f78cf322240c246b2a2483aa5e071 | 326 | py | Python | config.py | statsu1990/kaggle_google_quest_qa | 4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db | [
"MIT"
] | 3 | 2020-02-13T02:11:02.000Z | 2021-09-05T13:15:34.000Z | config.py | statsu1990/kaggle_google_quest_qa | 4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db | [
"MIT"
] | null | null | null | config.py | statsu1990/kaggle_google_quest_qa | 4b3569aa6d8b58d2315301a3ad86e6ed1d71c6db | [
"MIT"
] | null | null | null |
PATH = '../input/google-quest-challenge/'
#BERT_PRETRAINED_MODEL = 'bert-base-cased'
BERT_PRETRAINED_MODEL = 'bert-base-uncased'
BERT_TOKENIZER_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/tokenizer/'
BERT_PRETRAINED_MODEL_PATH = '../input/transformers/' + BERT_PRETRAINED_MODEL + '/pretrained_mod... | 40.75 | 101 | 0.751534 |
123c1170a7e53c991d85e76f7f6ae02014930f9c | 1,875 | py | Python | server/dive_server/training.py | Minious/dive | a3867e524021899c7231e4908452d70d9e30aaed | [
"Apache-2.0"
] | null | null | null | server/dive_server/training.py | Minious/dive | a3867e524021899c7231e4908452d70d9e30aaed | [
"Apache-2.0"
] | null | null | null | server/dive_server/training.py | Minious/dive | a3867e524021899c7231e4908452d70d9e30aaed | [
"Apache-2.0"
] | null | null | null | from girder.models.assetstore import Assetstore
from girder.models.file import File
from girder.models.folder import Folder
from girder.models.item import Item
from girder.models.upload import Upload
from girder.models.user import User
from dive_server.utils import get_annotation_csv_generator
from dive_utils.constant... | 31.779661 | 96 | 0.703467 |
123e93ac8a310f95ec894f08e807cdf1c4916bbf | 504 | py | Python | stacks/345.Reverse Vowels of a string.py | Rage-ops/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | 1 | 2020-11-23T13:52:11.000Z | 2020-11-23T13:52:11.000Z | stacks/345.Reverse Vowels of a string.py | harsha-sam/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | null | null | null | stacks/345.Reverse Vowels of a string.py | harsha-sam/Leetcode-Solutions | 48d4ecbb92a0bb7a7bb74a1445b593a67357ac02 | [
"MIT"
] | null | null | null | # Easy
# https://leetcode.com/problems/reverse-vowels-of-a-string/
# Time Complexity: O(N)
# Space Complexity: O(N)
| 26.526316 | 59 | 0.494048 |
12447d579d2c9381064673a0bdaf590d555c5609 | 280 | py | Python | pygarlic_validator/__init__.py | bybatkhuu/pygarlic_validator | 8ea42545dbcede3faee553e02a5f7e560f9179c1 | [
"MIT"
] | 1 | 2022-03-31T06:37:43.000Z | 2022-03-31T06:37:43.000Z | pygarlic_validator/__init__.py | bybatkhuu/pygarlic_validator | 8ea42545dbcede3faee553e02a5f7e560f9179c1 | [
"MIT"
] | null | null | null | pygarlic_validator/__init__.py | bybatkhuu/pygarlic_validator | 8ea42545dbcede3faee553e02a5f7e560f9179c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
try:
from pygarlic_validator.validator import validators, checkers, errors
from pygarlic_validator.__version__ import __version__
except ImportError:
from .validator import validators, checkers, errors
from .__version__ import __version__
| 31.111111 | 73 | 0.771429 |
12480d98d0d64204e46e36015b2e324e7c79f23a | 13,460 | py | Python | spanclient/_endpoint_wrapper.py | illuscio-dev/spanclient-py | 6308d221d179ed0db7c211c7a7ec7e2944e8864c | [
"MIT"
] | null | null | null | spanclient/_endpoint_wrapper.py | illuscio-dev/spanclient-py | 6308d221d179ed0db7c211c7a7ec7e2944e8864c | [
"MIT"
] | null | null | null | spanclient/_endpoint_wrapper.py | illuscio-dev/spanclient-py | 6308d221d179ed0db7c211c7a7ec7e2944e8864c | [
"MIT"
] | null | null | null | import functools
import copy
from dataclasses import dataclass
from marshmallow import Schema
from typing import (
Optional,
MutableMapping,
Any,
Union,
Callable,
Tuple,
Dict,
AsyncGenerator,
Generator,
Sequence,
)
from spantools import MimeType, convert_params_headers, MimeType... | 35.702918 | 88 | 0.6 |
12482b1ff107157da56ff15cc84b2172386b95f3 | 3,240 | py | Python | SimpleGP/tests/test_gppg.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | 2 | 2015-03-18T17:26:20.000Z | 2019-03-18T17:28:16.000Z | SimpleGP/tests/test_gppg.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | 1 | 2015-04-19T17:02:49.000Z | 2015-07-21T18:48:34.000Z | SimpleGP/tests/test_gppg.py | mgraffg/simplegp | 7e4639e3ac76571a4e67669cad6e8e775b3fc345 | [
"Apache-2.0"
] | null | null | null | import test_classification
import numpy as np
from SimpleGP import SparseGPPG, SparseArray
from SimpleGP.gppg import PGCl
import os
cl = test_classification.cl
X = test_classification.X
| 32.079208 | 71 | 0.591975 |