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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8414f299e33cb1d7f5931b3a7e8db59199dffc99 | 4,165 | py | Python | MstarHe2R/components/models.py | IzayoiRin/MstarHe2R | 938d83acdfa5ec4464cf9113fef104a6e80ad662 | [
"MIT"
] | null | null | null | MstarHe2R/components/models.py | IzayoiRin/MstarHe2R | 938d83acdfa5ec4464cf9113fef104a6e80ad662 | [
"MIT"
] | 2 | 2021-06-08T21:19:41.000Z | 2021-09-08T01:54:27.000Z | MstarHe2R/components/models.py | IzayoiRin/MstarHe2R | 938d83acdfa5ec4464cf9113fef104a6e80ad662 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import torch as th
from mstarhe.core.nn.models import PrettyFeedForward
from MstarHe2R.components.dataloader import Mstar2RDataLoader
__IMG_SIZE__ = 128 * 128
def _example():
Net = MSTARNet
Net.device = None
from components.graphs.graph2 import TestL4M... | 32.038462 | 100 | 0.614646 |
8418475e8b117a7899349c6df5fd5aeff3d447b2 | 996 | py | Python | 4 - observer pattern/api/event_system.py | lucascionis/betterpython | ab8db8c016ff0bccc443443740a26bccb70402f3 | [
"MIT"
] | null | null | null | 4 - observer pattern/api/event_system.py | lucascionis/betterpython | ab8db8c016ff0bccc443443740a26bccb70402f3 | [
"MIT"
] | null | null | null | 4 - observer pattern/api/event_system.py | lucascionis/betterpython | ab8db8c016ff0bccc443443740a26bccb70402f3 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
'''Comments
In the original solution only functions were used to
implement the event system (observer pattern).
In this implementation I wanted to write classes (to be as
nearest as possible to the pattern (?)).
It is surely better to use python first-citizen functions to create
t... | 25.538462 | 68 | 0.696787 |
84188f6567eb4fd0ad0c89e940fd5e2fe14303c7 | 3,056 | py | Python | predict_yolo3_disconnect.py | RentadroneCL/model-definition | 9dab1f1a808a1efc54d64144745277396c145ff7 | [
"MIT"
] | 2 | 2020-01-22T19:54:16.000Z | 2020-02-07T12:20:17.000Z | predict_yolo3_disconnect.py | RentadroneCL/model-definition | 9dab1f1a808a1efc54d64144745277396c145ff7 | [
"MIT"
] | 4 | 2020-06-03T00:27:22.000Z | 2020-07-15T17:15:23.000Z | predict_yolo3_disconnect.py | RentadroneCL/model-definition | 9dab1f1a808a1efc54d64144745277396c145ff7 | [
"MIT"
] | 1 | 2020-01-21T22:38:22.000Z | 2020-01-21T22:38:22.000Z | #! /usr/bin/env python
import time
import os
import argparse
import json
import cv2
import sys
sys.path += [os.path.abspath('keras-yolo3-master')]
from utils.utils import get_yolo_boxes, makedirs
from utils.bbox import draw_boxes
from tensorflow.keras.models import load_model
from tqdm import tqdm
import numpy as np
... | 32.168421 | 113 | 0.629581 |
8419172381c9e4256607a0db506cd791eeb0f296 | 11,655 | py | Python | tenning/layers/resnet_block.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | tenning/layers/resnet_block.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | tenning/layers/resnet_block.py | guilherme9820/Tenning | c0fe7695ef3dd791ea1083f39d6b312266fb0512 | [
"MIT"
] | null | null | null | import tensorflow.keras.constraints as constraints
from tensorflow.keras.layers import GlobalAveragePooling2D
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Conv2DTranspose
from tensorflow.keras.layers import LeakyReLU
from tensorflow.keras.layers import ReLU
from tensorflow.... | 51.8 | 163 | 0.620764 |
841b950a79e8d2aae01b030de733c8d1017b6718 | 3,649 | py | Python | libs/token.py | yareally/twitter-clone-python | 1323c3fa4bf66f479a3092c09fb165a323eb1c85 | [
"MIT"
] | 1 | 2020-05-22T22:13:48.000Z | 2020-05-22T22:13:48.000Z | libs/token.py | yareally/twitter-clone-python | 1323c3fa4bf66f479a3092c09fb165a323eb1c85 | [
"MIT"
] | null | null | null | libs/token.py | yareally/twitter-clone-python | 1323c3fa4bf66f479a3092c09fb165a323eb1c85 | [
"MIT"
] | null | null | null | # coding=utf-8
from operator import xor
import os
import scrypt
import time
from libs.rediswrapper import UserHelper
try:
xrange
except NameError:
xrange = range
| 28.960317 | 102 | 0.609482 |
841dd327848fd2568a5c74230c7b659174fee507 | 2,961 | py | Python | saefportal/datastores/util.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datastores/util.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | null | null | null | saefportal/datastores/util.py | harry-consulting/SAEF1 | 055d6e492ba76f90e3248b9da2985fdfe0c6b430 | [
"BSD-2-Clause"
] | 1 | 2020-12-16T15:02:52.000Z | 2020-12-16T15:02:52.000Z | import json
from collections import defaultdict
import fastavro
import pandas as pd
from django.contrib import messages
from django.http import HttpResponseRedirect
from django.urls import reverse
from datasets.models import Connection
from users.models import User
def get_supported_file_types():
"""Return a li... | 34.835294 | 110 | 0.695373 |
841fba8a3c7dd4e8b6e7d2a9101dcfe6a12ffb43 | 637 | py | Python | count_div.py | odellus/year_of_code | bfa2b30893bcc12f46e73ac34c63b5b05b27af5f | [
"MIT"
] | 1 | 2017-01-03T02:24:34.000Z | 2017-01-03T02:24:34.000Z | count_div.py | odellus/year_of_code | bfa2b30893bcc12f46e73ac34c63b5b05b27af5f | [
"MIT"
] | null | null | null | count_div.py | odellus/year_of_code | bfa2b30893bcc12f46e73ac34c63b5b05b27af5f | [
"MIT"
] | null | null | null | #! /usr/bin/python
| 21.233333 | 37 | 0.400314 |
842064b9ee1d937a6d9bb100474bd7dafa3c5859 | 3,766 | py | Python | applications/plugins/SofaPython/python/SofaPython/DAGValidation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaPython/python/SofaPython/DAGValidation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/SofaPython/python/SofaPython/DAGValidation.py | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | import sys
import Sofa
import Tools
| 30.128 | 123 | 0.521774 |
842128da3d89d5f7a471cc4a5a88b8952b188592 | 7,216 | py | Python | models/DGIFullPipeline.py | nicolas-racchi/hpc2020-graphML | 7f0d8b7c18469e1c793c7097bd10a9e0322e75be | [
"Apache-2.0"
] | null | null | null | models/DGIFullPipeline.py | nicolas-racchi/hpc2020-graphML | 7f0d8b7c18469e1c793c7097bd10a9e0322e75be | [
"Apache-2.0"
] | null | null | null | models/DGIFullPipeline.py | nicolas-racchi/hpc2020-graphML | 7f0d8b7c18469e1c793c7097bd10a9e0322e75be | [
"Apache-2.0"
] | null | null | null | import time
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.manifold import TSNE
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import f1_score
import stellargraph as sg
from stellargraph.mapper import CorruptedGenerator, HinSAGENodeGenerator
from st... | 33.877934 | 106 | 0.651746 |
84226726736f353bcbde4bab4581da03be81116f | 878 | py | Python | Newsfeed/Newsfeed/app.py | akshayseth7/Intership_Snapshot | e262ec4939e2e5c5e2037333b7fa37f7c57d5425 | [
"MIT"
] | null | null | null | Newsfeed/Newsfeed/app.py | akshayseth7/Intership_Snapshot | e262ec4939e2e5c5e2037333b7fa37f7c57d5425 | [
"MIT"
] | null | null | null | Newsfeed/Newsfeed/app.py | akshayseth7/Intership_Snapshot | e262ec4939e2e5c5e2037333b7fa37f7c57d5425 | [
"MIT"
] | null | null | null | from flask import Flask , render_template, request
import google_news
app = Flask(__name__)
outFile = ''
if __name__ == "__main__":
app.run()
| 20.904762 | 50 | 0.67426 |
842586bea147f3e4d054e06882c5e5cefb545add | 1,222 | py | Python | physics_planning_games/mujoban/mujoban_level_test.py | mitchchristow/deepmind-research | 49c7ebe6acc48dd276ca09eca6924ba6cb5ec3a3 | [
"Apache-2.0"
] | 10,110 | 2019-08-27T20:05:30.000Z | 2022-03-31T16:31:56.000Z | physics_planning_games/mujoban/mujoban_level_test.py | ibex-training/deepmind-research | 6f8ae40b2626b30f5f80dfc92f5676689eff5599 | [
"Apache-2.0"
] | 317 | 2019-11-09T10:19:10.000Z | 2022-03-31T00:05:19.000Z | physics_planning_games/mujoban/mujoban_level_test.py | ibex-training/deepmind-research | 6f8ae40b2626b30f5f80dfc92f5676689eff5599 | [
"Apache-2.0"
] | 2,170 | 2019-08-28T12:53:36.000Z | 2022-03-31T13:15:11.000Z | # Copyright 2020 DeepMind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 22.62963 | 78 | 0.636661 |
84272a9b78bd142a71da410927baa64f753039be | 1,069 | py | Python | TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | TeamX/TeamXapp/migrations/0040_auto_20190712_1351.py | rootfinlay/SageTeamX | cf4cde3360c8cccb8a727ba64d66345805d7a0ed | [
"Unlicense"
] | null | null | null | # Generated by Django 2.2.3 on 2019-07-12 12:51
from django.db import migrations, models
import django.db.models.deletion
| 35.633333 | 168 | 0.649205 |
842b2f72a08093681d688bb2f92eb0afb6f06354 | 742 | py | Python | quartic_sdk/core/entities/site.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 1 | 2021-03-26T12:39:44.000Z | 2021-03-26T12:39:44.000Z | quartic_sdk/core/entities/site.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 95 | 2021-02-18T03:15:38.000Z | 2022-03-25T05:39:12.000Z | quartic_sdk/core/entities/site.py | divyquartic/QuarticSDK | e3ce6387ed5f27845e0909878c831ae39badd8eb | [
"MIT"
] | 1 | 2021-09-03T12:46:18.000Z | 2021-09-03T12:46:18.000Z | """
The given file contains the class to refer to the Site entity
"""
from quartic_sdk.core.entities.base import Base
import quartic_sdk.utilities.constants as Constants
| 23.935484 | 91 | 0.630728 |
842c3f72d982dddd1077d864f70783e67cb8182b | 525 | py | Python | newapp/migrations/0003_auto_20190524_1511.py | HCDigitalScholarship/liason_lair | 6035d100e3ea1216af2907a4cccd319a1cc4f8d8 | [
"MIT"
] | null | null | null | newapp/migrations/0003_auto_20190524_1511.py | HCDigitalScholarship/liason_lair | 6035d100e3ea1216af2907a4cccd319a1cc4f8d8 | [
"MIT"
] | null | null | null | newapp/migrations/0003_auto_20190524_1511.py | HCDigitalScholarship/liason_lair | 6035d100e3ea1216af2907a4cccd319a1cc4f8d8 | [
"MIT"
] | 1 | 2019-08-03T01:30:30.000Z | 2019-08-03T01:30:30.000Z | # Generated by Django 2.0.5 on 2019-05-24 15:11
from django.db import migrations, models
| 21.875 | 47 | 0.565714 |
842f1947d1778a3623e9a7a62865a578b298416e | 2,027 | py | Python | comment/views/blocker.py | Italo-Carvalho/Comment | 86424d02a901b74ccbcaa438fffc38f352535301 | [
"MIT"
] | 75 | 2018-09-08T14:29:35.000Z | 2022-03-25T16:17:06.000Z | comment/views/blocker.py | p0-oya/Comment | 39f6fb6c40314d97391d36fc25112d6420c96991 | [
"MIT"
] | 165 | 2018-10-07T21:55:31.000Z | 2022-02-27T14:44:32.000Z | comment/views/blocker.py | p0-oya/Comment | 39f6fb6c40314d97391d36fc25112d6420c96991 | [
"MIT"
] | 37 | 2019-12-01T19:44:23.000Z | 2022-02-13T16:46:14.000Z | from django.views import View
from comment.models import BlockedUser, BlockedUserHistory, Comment
from comment.mixins import CanBlockUsersMixin
from comment.responses import UTF8JsonResponse, DABResponseData
from comment.messages import BlockUserError
| 34.948276 | 99 | 0.655649 |
84377da9e8bef2666e66841f43d9581ba693e418 | 39,550 | py | Python | wicon/glyph.py | Wudan07/wIcon | 9189b7029759a22371827426b5342b6dc976f1b2 | [
"MIT"
] | null | null | null | wicon/glyph.py | Wudan07/wIcon | 9189b7029759a22371827426b5342b6dc976f1b2 | [
"MIT"
] | null | null | null | wicon/glyph.py | Wudan07/wIcon | 9189b7029759a22371827426b5342b6dc976f1b2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015 Brad Newbold (wudan07 [at] gmail.com)
# See LICENSE for details.
# glyph.py
#
"""wIcon library:
glyph provides GlyphObject
"""
##from handy import *
##from common import *
### represents a character in a glyphString
def glyphstr_length(gls):
""" Returns length of gly... | 26.759134 | 143 | 0.596207 |
8438a4e8ec614cde523653248e7af3039519099a | 463 | py | Python | mqtt_sender.py | kehtolaulu/iot-ccs811 | 611ca30ffaec067d730ac95c59b6800fda2cf148 | [
"MIT"
] | null | null | null | mqtt_sender.py | kehtolaulu/iot-ccs811 | 611ca30ffaec067d730ac95c59b6800fda2cf148 | [
"MIT"
] | null | null | null | mqtt_sender.py | kehtolaulu/iot-ccs811 | 611ca30ffaec067d730ac95c59b6800fda2cf148 | [
"MIT"
] | null | null | null | import json
from paho.mqtt.client import Client
from subscriber import Subscriber
from datetime import datetime
| 25.722222 | 72 | 0.695464 |
8439225f8d80c110768afbd91dc3a48cb1f55f67 | 1,914 | py | Python | users/migrations/0004_auto_20201228_1613.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | 1 | 2021-06-18T03:03:43.000Z | 2021-06-18T03:03:43.000Z | users/migrations/0004_auto_20201228_1613.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | null | null | null | users/migrations/0004_auto_20201228_1613.py | hhdMrLion/django-crm | 9f6f021e0cddc323c88280b733144366a0cb9fa6 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.17 on 2020-12-28 08:13
from django.db import migrations, models
| 46.682927 | 106 | 0.581505 |
843bb9c05ba6309f2f5fa04bc4ff12d51bd9395e | 430 | py | Python | pages/homepage.py | eugenexxx/laptop_docker | 362ea238296e64fdd5c49ac55185d65b05e718cc | [
"Apache-2.0"
] | null | null | null | pages/homepage.py | eugenexxx/laptop_docker | 362ea238296e64fdd5c49ac55185d65b05e718cc | [
"Apache-2.0"
] | null | null | null | pages/homepage.py | eugenexxx/laptop_docker | 362ea238296e64fdd5c49ac55185d65b05e718cc | [
"Apache-2.0"
] | null | null | null | from webium import BasePage, Finds, Find
from selenium.webdriver.common.by import By
| 43 | 99 | 0.746512 |
843c2a9f5e722e97bca056334565acff3143bb58 | 3,112 | py | Python | finetune/TensorFlow/download_model_and_dataset.py | cgouttham/microsoft-hackathon | 7e50981e0f165543676504592ad26818db13432f | [
"MIT"
] | 340 | 2019-05-15T06:42:37.000Z | 2022-02-23T13:29:34.000Z | finetune/TensorFlow/download_model_and_dataset.py | cgouttham/microsoft-hackathon | 7e50981e0f165543676504592ad26818db13432f | [
"MIT"
] | 43 | 2019-05-14T21:26:06.000Z | 2022-02-13T02:42:57.000Z | finetune/TensorFlow/download_model_and_dataset.py | cgouttham/microsoft-hackathon | 7e50981e0f165543676504592ad26818db13432f | [
"MIT"
] | 113 | 2019-05-23T08:21:48.000Z | 2022-03-03T19:18:17.000Z | from __future__ import print_function
import argparse
import sys
import os
import shutil
import zipfile
import urllib
parser = argparse.ArgumentParser()
## Required parameters
parser.add_argument("--bert_model_name",
default = None,
type = str,
required = Tr... | 43.222222 | 151 | 0.70662 |
843ca99856298b4d971576c36ef2ff0db2f48136 | 1,386 | py | Python | pdata_app/migrations/0035_auto_20180221_1515.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | null | null | null | pdata_app/migrations/0035_auto_20180221_1515.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 49 | 2018-11-14T17:00:03.000Z | 2021-12-20T11:04:22.000Z | pdata_app/migrations/0035_auto_20180221_1515.py | jonseddon/primavera-dmt | 1239044e37f070b925a3d06db68351f285df780c | [
"BSD-3-Clause"
] | 2 | 2018-07-04T10:58:43.000Z | 2018-09-29T14:55:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-02-21 15:15
from __future__ import unicode_literals
from django.db import migrations, models
| 33.804878 | 101 | 0.622655 |
843d9417ba37601232cb640d55f1d03f38cd7f76 | 3,226 | py | Python | python/examples/imagenet/image_reader.py | gongweibao/Serving | d234a1421e8b964c5fa3e9901f57f24aa49e3a91 | [
"Apache-2.0"
] | null | null | null | python/examples/imagenet/image_reader.py | gongweibao/Serving | d234a1421e8b964c5fa3e9901f57f24aa49e3a91 | [
"Apache-2.0"
] | null | null | null | python/examples/imagenet/image_reader.py | gongweibao/Serving | d234a1421e8b964c5fa3e9901f57f24aa49e3a91 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 32.26 | 74 | 0.591135 |
843f97dd8ec994e4357ed02f96f7842db3d9a402 | 5,867 | py | Python | cloudflare-deploy.py | antonini/certbot-hooks | 61e200b7a038952f2f559953f47be62e1f992e39 | [
"Apache-2.0"
] | null | null | null | cloudflare-deploy.py | antonini/certbot-hooks | 61e200b7a038952f2f559953f47be62e1f992e39 | [
"Apache-2.0"
] | null | null | null | cloudflare-deploy.py | antonini/certbot-hooks | 61e200b7a038952f2f559953f47be62e1f992e39 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import logging
import sys
import CloudFlare
import os
import re
from os import path
from certbot.plugins import dns_common
__author__ = "Endrigo Antonini"
__copyright__ = "Copyright 2020, Endrigo Antonini"
__license__ = "Apache License 2.0"
__version__ = "1.0"
__maintainer__ = "Endrigo Antonini... | 32.236264 | 110 | 0.670701 |
84416b0aa44ff310962bcf2724c753d72fba9519 | 476 | py | Python | main/schemas/location_lat.py | ohioh/ohioh_Framework_Cluster_3_Flask | 69e50b9d697b5e8818305328335d26314b625732 | [
"Apache-2.0"
] | 1 | 2020-08-11T18:37:36.000Z | 2020-08-11T18:37:36.000Z | main/schemas/location_lat.py | ohioh/ohioh_Framework_Cluster_3_Flask | 69e50b9d697b5e8818305328335d26314b625732 | [
"Apache-2.0"
] | null | null | null | main/schemas/location_lat.py | ohioh/ohioh_Framework_Cluster_3_Flask | 69e50b9d697b5e8818305328335d26314b625732 | [
"Apache-2.0"
] | null | null | null | from datetime import datetime
from marshmallow import Schema, EXCLUDE
import marshmallow.fields as ms_fields
| 23.8 | 63 | 0.737395 |
84418df14873be48f72ce565d6b9bb740aefa623 | 411 | py | Python | Python/34-match.py | strawman2511/Learning | 21ee7bdad376060503fdc0a739fed2d7bd40f9b9 | [
"MIT"
] | 1 | 2022-03-16T23:25:54.000Z | 2022-03-16T23:25:54.000Z | Python/34-match.py | strawman2511/Learning | 21ee7bdad376060503fdc0a739fed2d7bd40f9b9 | [
"MIT"
] | null | null | null | Python/34-match.py | strawman2511/Learning | 21ee7bdad376060503fdc0a739fed2d7bd40f9b9 | [
"MIT"
] | null | null | null | # Till now only Python 3.10 can run match statement
x = 1
y = 2
point = (x, y)
check_point(point)
| 20.55 | 51 | 0.452555 |
8441be7fed412cc2b0c06a54eaceebee4908fef7 | 272 | py | Python | incremental/settings.py | Nana0606/IUAD | c52439eb5bbbef6bd50533b5d9e142e18091d85e | [
"BSD-2-Clause"
] | 1 | 2021-07-05T02:20:32.000Z | 2021-07-05T02:20:32.000Z | incremental/settings.py | Nana0606/IUAD | c52439eb5bbbef6bd50533b5d9e142e18091d85e | [
"BSD-2-Clause"
] | null | null | null | incremental/settings.py | Nana0606/IUAD | c52439eb5bbbef6bd50533b5d9e142e18091d85e | [
"BSD-2-Clause"
] | 1 | 2021-08-22T08:45:18.000Z | 2021-08-22T08:45:18.000Z | # python3
# -*- coding: utf-8 -*-
# @Author : lina
# @Time : 2018/4/22 21:17
"""
code function: define all parameters.
"""
matched_file_name = "../data/gcn_res.txt"
wordvec_path = '../data/word2vec.model'
incremental_path = "../data/incremental_res.txt"
| 20.923077 | 49 | 0.628676 |
84425e6e37d98a459d555c6b47a64806ebbb0769 | 246 | py | Python | app/newsletter/views.py | valeriansaliou/waaave-web | 8a0cde773563865a905af38f5a0b723a43b17341 | [
"RSA-MD"
] | 1 | 2020-04-06T10:04:43.000Z | 2020-04-06T10:04:43.000Z | app/newsletter/views.py | valeriansaliou/waaave-web | 8a0cde773563865a905af38f5a0b723a43b17341 | [
"RSA-MD"
] | null | null | null | app/newsletter/views.py | valeriansaliou/waaave-web | 8a0cde773563865a905af38f5a0b723a43b17341 | [
"RSA-MD"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
def root(request):
"""
Newsletter > Root
"""
return render(request, 'newsletter/newsletter_root.jade') | 24.6 | 61 | 0.756098 |
84464ba3de7de8074ab4f3a72392eb3da290f401 | 16,826 | py | Python | transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 1,150 | 2021-06-01T03:44:21.000Z | 2022-03-31T13:43:42.000Z | transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 358 | 2021-06-01T03:58:47.000Z | 2022-03-28T02:55:00.000Z | transformer_courses/BERT_distillation/PaddleSlim-develop/paddleslim/nas/search_space/mobilenet_block.py | wwhio/awesome-DeepLearning | 2cc92edcf0c22bdfc670c537cc819c8fadf33fac | [
"Apache-2.0"
] | 502 | 2021-05-31T12:52:14.000Z | 2022-03-31T02:51:41.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 39.130233 | 178 | 0.530013 |
8446c1c3c431374432b1f4f4b191c7dc6650169d | 1,580 | py | Python | src/cltk/phonology/gmh/phonology.py | yelircaasi/cltk | 1583aa24682543a1f33434a21918f039ca27d60c | [
"MIT"
] | 757 | 2015-11-20T00:58:52.000Z | 2022-03-31T06:34:24.000Z | src/cltk/phonology/gmh/phonology.py | yelircaasi/cltk | 1583aa24682543a1f33434a21918f039ca27d60c | [
"MIT"
] | 950 | 2015-11-17T05:38:29.000Z | 2022-03-14T16:09:34.000Z | src/cltk/phonology/gmh/phonology.py | yelircaasi/cltk | 1583aa24682543a1f33434a21918f039ca27d60c | [
"MIT"
] | 482 | 2015-11-22T18:13:02.000Z | 2022-03-20T21:22:02.000Z | """Middle High German phonology tools
"""
from typing import List
from cltk.phonology.gmh.transcription import Transcriber
from cltk.phonology.syllabify import Syllabifier
__author__ = ["Clment Besnier <clem@clementbesnier.fr>"]
| 26.333333 | 103 | 0.666456 |
844826018788435b356bf6f9c896357ffb15fd09 | 11,680 | py | Python | baiduspider/core/parser.py | samzhangjy/GSSpider | 344d9c9053a5d5bf08692e0c817d30763dbd8ab7 | [
"MIT"
] | 31 | 2020-07-17T08:26:37.000Z | 2021-08-24T02:28:50.000Z | baiduspider/core/parser.py | samzhangjy/GSSpider | 344d9c9053a5d5bf08692e0c817d30763dbd8ab7 | [
"MIT"
] | 6 | 2020-07-14T17:13:17.000Z | 2020-09-12T06:02:01.000Z | baiduspider/core/parser.py | samzhangjy/GSSpider | 344d9c9053a5d5bf08692e0c817d30763dbd8ab7 | [
"MIT"
] | 12 | 2020-07-27T08:38:26.000Z | 2021-07-28T16:05:58.000Z | import json
from html import unescape
from bs4 import BeautifulSoup
from baiduspider.core._spider import BaseSpider
from baiduspider.errors import ParseError
| 36.72956 | 162 | 0.447603 |
8449b868c5c55bebc3c70da12ca1d458ad2a711a | 2,142 | py | Python | virtual/lib/python3.6/site-packages/requests_unixsocket/adapters.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/requests_unixsocket/adapters.py | marknesh/pitches | 0a480d9bc2beafaefa0121393b1502cc05edab89 | [
"MIT"
] | 10 | 2020-03-08T21:13:29.000Z | 2021-04-08T19:41:14.000Z | flask/lib/python3.6/site-packages/requests_unixsocket/adapters.py | JOFLIX/grapevines | 34576e01184570d79cc140b42ffb71d322132da6 | [
"MIT",
"Unlicense"
] | 1 | 2020-11-04T06:48:34.000Z | 2020-11-04T06:48:34.000Z | import socket
from requests.adapters import HTTPAdapter
from requests.compat import urlparse, unquote
try:
from requests.packages.urllib3.connection import HTTPConnection
from requests.packages.urllib3.connectionpool import HTTPConnectionPool
except ImportError:
from urllib3.connection import HTTPConnectio... | 35.114754 | 77 | 0.710551 |
844a39e610cb54a65514ca7f805b41f45b503518 | 3,021 | py | Python | jarvis/resume/tests/test_utils.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2019-01-03T06:10:04.000Z | 2019-01-03T06:10:04.000Z | jarvis/resume/tests/test_utils.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | 1 | 2021-03-31T19:11:52.000Z | 2021-03-31T19:11:52.000Z | jarvis/resume/tests/test_utils.py | Anubhav722/blahblah | 160698e06a02e671ac40de3113cd37d642e72e96 | [
"MIT"
] | null | null | null | from django.test import TestCase
from jarvis.resume.utils.extractor import get_text
from jarvis.resume.utils.parser_helper import get_urls, get_url_response, url_categories, get_github_username, get_stackoverflow_userid, get_stackoverflow_username, get_name, get_id_from_linkedin_url, get_email
from unidecode import uni... | 43.782609 | 210 | 0.676266 |
844aff8b757e567eab04101d17c08cb3e245797f | 8,032 | py | Python | profiles_weak.py | andreuvall/HybridPlaylistContinuation | 6e31e50050c61a2c3ae55183e18b665fd54c7250 | [
"BSD-2-Clause"
] | 8 | 2017-06-04T11:42:49.000Z | 2021-10-19T12:16:01.000Z | profiles_weak.py | andreuvall/HybridPlaylistContinuation | 6e31e50050c61a2c3ae55183e18b665fd54c7250 | [
"BSD-2-Clause"
] | null | null | null | profiles_weak.py | andreuvall/HybridPlaylistContinuation | 6e31e50050c61a2c3ae55183e18b665fd54c7250 | [
"BSD-2-Clause"
] | 5 | 2017-08-27T17:02:14.000Z | 2020-06-09T01:21:09.000Z | from __future__ import print_function
from __future__ import division
from sklearn.utils import check_random_state
from sklearn import preprocessing as prep
from utils.data import load_data, show_data_splits, shape_data
from utils.evaluation import evaluate
from utils.profiles import select_model, show_design, train,... | 37.886792 | 132 | 0.662475 |
844bd667c2563dc8f5e9e83fc9eaf8e0c1857eb6 | 560 | py | Python | news/admin.py | trojsten/news | aa1dfb4ee31a7f810dcd484eecafd49659292d76 | [
"BSD-3-Clause"
] | null | null | null | news/admin.py | trojsten/news | aa1dfb4ee31a7f810dcd484eecafd49659292d76 | [
"BSD-3-Clause"
] | 6 | 2016-07-10T00:22:02.000Z | 2021-12-23T22:43:41.000Z | news/admin.py | trojsten/news | aa1dfb4ee31a7f810dcd484eecafd49659292d76 | [
"BSD-3-Clause"
] | 2 | 2019-04-30T20:20:38.000Z | 2021-02-16T18:41:01.000Z | from django.contrib import admin
from django.db import models
from easy_select2.widgets import Select2Multiple
from news.models import Entry
admin.site.register(Entry, EntryAdmin)
| 25.454545 | 61 | 0.682143 |
844c48d7274f542cdb76ae374555eb9e43a3cc30 | 21,999 | py | Python | deliverable1/analyzer/clientGUI.py | tonellotto/pira-project | 13f1f40fd3339d60067c09396822af8f3c83239c | [
"MIT"
] | null | null | null | deliverable1/analyzer/clientGUI.py | tonellotto/pira-project | 13f1f40fd3339d60067c09396822af8f3c83239c | [
"MIT"
] | null | null | null | deliverable1/analyzer/clientGUI.py | tonellotto/pira-project | 13f1f40fd3339d60067c09396822af8f3c83239c | [
"MIT"
] | null | null | null | import analyzer_client as analyzer
from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter import ttk
import json
import os
from pathlib import Path
IP_ADDRESS = "localhost"
PORT = "8061"
ENGINE_CURR_OPTIONS = {}
ANALYZE_CURR_OPTIONS = {'language':'en', 'ent... | 50.456422 | 208 | 0.589027 |
844d85dc62ed6dfb3a4f73a387bf2a08be758a8e | 53 | py | Python | 05-functions_and_modules/mods_1.py | palmieric/Tecnologie_Web-Introduzione_a_Python | b10ce49a947b239ca2af1938248f7191937b2f89 | [
"CC0-1.0"
] | 3 | 2021-05-17T14:48:42.000Z | 2021-05-24T10:12:06.000Z | 05-functions_and_modules/mods_1.py | palmieric/Tecnologie_Web-Introduzione_a_Python | b10ce49a947b239ca2af1938248f7191937b2f89 | [
"CC0-1.0"
] | null | null | null | 05-functions_and_modules/mods_1.py | palmieric/Tecnologie_Web-Introduzione_a_Python | b10ce49a947b239ca2af1938248f7191937b2f89 | [
"CC0-1.0"
] | 2 | 2021-05-17T13:52:15.000Z | 2021-05-24T10:44:54.000Z | # mods 1
import random
print(random.randint(1,10))
| 10.6 | 27 | 0.716981 |
844ee290c97366006e042d8ac5ba0899c883ac56 | 1,903 | py | Python | kge/core/component.py | Fredkiss3/kge | 389d5ab21ecb6dc1a25dd9f98245ba5938a5d253 | [
"CC0-1.0"
] | 4 | 2020-03-17T02:15:10.000Z | 2021-06-29T13:34:40.000Z | kge/core/component.py | Fredkiss3/kge | 389d5ab21ecb6dc1a25dd9f98245ba5938a5d253 | [
"CC0-1.0"
] | 4 | 2020-05-23T05:47:30.000Z | 2022-01-13T02:15:35.000Z | kge/core/component.py | Fredkiss3/kge | 389d5ab21ecb6dc1a25dd9f98245ba5938a5d253 | [
"CC0-1.0"
] | null | null | null | from typing import Callable
import kge
from kge.core import events
from kge.core.eventlib import EventMixin
from kge.core.events import Event
Component = BaseComponent
| 33.982143 | 104 | 0.603783 |
84508cc0743106693c25a4c91852516182d10958 | 11,162 | py | Python | generate_population_dataset.py | p-enel/stable-and-dynamic-value | 3f78e24f5bef9b12b8cc43d075d2e66b8a603325 | [
"CC0-1.0"
] | 1 | 2020-07-29T09:18:00.000Z | 2020-07-29T09:18:00.000Z | generate_population_dataset.py | p-enel/stable-and-dynamic-value | 3f78e24f5bef9b12b8cc43d075d2e66b8a603325 | [
"CC0-1.0"
] | null | null | null | generate_population_dataset.py | p-enel/stable-and-dynamic-value | 3f78e24f5bef9b12b8cc43d075d2e66b8a603325 | [
"CC0-1.0"
] | 3 | 2020-07-27T03:12:19.000Z | 2021-11-02T20:03:00.000Z | from pathlib import Path
import numpy as np
import pickle as pk
from itertools import chain, product
from collections import OrderedDict
from structure import Struct
MONKEYS = ['M', 'N']
REGIONS = ['OFC', 'ACC']
TASKVARS = ['value', 'type']
SUBSPACES = [True, False]
EVT_WINS = OrderedDict((('cues ON', (-500, 1500)),
... | 43.601563 | 114 | 0.614854 |
8450d07e5cec286e40f858637377c3e87f1ab9e5 | 634 | py | Python | setup.py | joepatmckenna/ohmlr | 2f3e63243758b995596f37897814634fc432f337 | [
"MIT"
] | null | null | null | setup.py | joepatmckenna/ohmlr | 2f3e63243758b995596f37897814634fc432f337 | [
"MIT"
] | null | null | null | setup.py | joepatmckenna/ohmlr | 2f3e63243758b995596f37897814634fc432f337 | [
"MIT"
] | null | null | null | import setuptools
with open('README.rst', 'r') as f:
readme = f.read()
with open('version', 'r') as f:
version = f.read()
if __name__ == '__main__':
setuptools.setup(
name='ohmlr',
version=version,
description='One-hot multinomial logisitc regression',
long_description=re... | 27.565217 | 65 | 0.615142 |
8450ee0e08874b8a26468c905f5abfbc7260c448 | 1,301 | py | Python | commands/climber/holdcimbersposition.py | 1757WestwoodRobotics/2022-RapidReact | b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137 | [
"MIT"
] | 1 | 2022-01-21T22:00:24.000Z | 2022-01-21T22:00:24.000Z | commands/climber/holdcimbersposition.py | 1757WestwoodRobotics/2022-RapidReact | b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137 | [
"MIT"
] | 40 | 2022-01-18T21:20:54.000Z | 2022-03-31T20:56:44.000Z | commands/climber/holdcimbersposition.py | 1757WestwoodRobotics/2022-RapidReact | b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137 | [
"MIT"
] | 1 | 2022-01-28T02:46:38.000Z | 2022-01-28T02:46:38.000Z | from commands2 import CommandBase, ParallelCommandGroup
from subsystems.climbers.leftclimbersubsystem import LeftClimber
from subsystems.climbers.rightclimbersubsystem import RightClimber
| 35.162162 | 77 | 0.730976 |
84513ebf1e835ed2f032b1060dd720580d3e05a2 | 668 | py | Python | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | practicer_flask/app.py | DominikPott/practicer-flask | c8e523095bdd5912dadb7357d16a4e76229a04da | [
"MIT"
] | null | null | null | import os
from flask import Flask
import practicer_flask.auth
import practicer_flask.exercises
import practicer_flask.dashboard
import practicer_flask.topic
import practicer_flask.model_viewer
app = create_app()
if __name__ == "__main__":
app.run(debug=os.environ.get("DEV", False))
| 23.857143 | 77 | 0.784431 |
84533ec2f7f2ad9597755a4499563c795ed9f246 | 737 | py | Python | algo/visualizations/temporalchart.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | 1 | 2020-10-01T10:11:21.000Z | 2020-10-01T10:11:21.000Z | algo/visualizations/temporalchart.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | null | null | null | algo/visualizations/temporalchart.py | alexeyev/visartm | d19e193b3c084d7f355a45b966c8bb2ebb6fa366 | [
"BSD-3-Clause"
] | null | null | null | from models.models import Topic, TopicInTopic
import json
| 32.043478 | 76 | 0.639077 |
84580bc22605d3bb58c5f232f6e1f847342e88fa | 3,596 | py | Python | submissions-api/app/main/model/submissions_manifest.py | sanger-tol/tol-submissions | 8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331 | [
"MIT"
] | null | null | null | submissions-api/app/main/model/submissions_manifest.py | sanger-tol/tol-submissions | 8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331 | [
"MIT"
] | null | null | null | submissions-api/app/main/model/submissions_manifest.py | sanger-tol/tol-submissions | 8dbbfaa98b1dfa09a09cb54cf1b2eb9d1dca5331 | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
from .base import Base, db
| 44.95 | 88 | 0.614294 |
8458ddef5330c4ed60d249ea5883464e063cf5ba | 6,411 | py | Python | eden/integration/hg/histedit_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/integration/hg/histedit_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/integration/hg/histedit_test.py | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | 36.220339 | 86 | 0.608641 |
8459ea4275ad26f2fdfb1430948999a41ff39caf | 408 | py | Python | dailypy/__init__.py | HuangJiaLian/dailypy | b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3 | [
"CC0-1.0"
] | null | null | null | dailypy/__init__.py | HuangJiaLian/dailypy | b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3 | [
"CC0-1.0"
] | 1 | 2020-08-19T13:42:52.000Z | 2020-08-19T14:32:31.000Z | dailypy/__init__.py | HuangJiaLian/dailypy | b838a4f6743fca8ccc5c4fa73142d0f7095dbbc3 | [
"CC0-1.0"
] | null | null | null | import numpy as np
import os
# Data manipulate
| 20.4 | 53 | 0.568627 |
845c29a7df8a071ea4d00366b934a8a0a5899a8f | 2,832 | py | Python | vbb_backend/session/migrations/0002_auto_20210215_1509.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 3 | 2021-04-14T02:59:09.000Z | 2021-06-08T00:17:27.000Z | vbb_backend/session/migrations/0002_auto_20210215_1509.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 81 | 2020-12-08T00:11:52.000Z | 2021-08-09T18:13:32.000Z | vbb_backend/session/migrations/0002_auto_20210215_1509.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 5 | 2021-01-12T04:50:26.000Z | 2021-06-04T02:00:03.000Z | # Generated by Django 3.0.10 on 2021-02-15 15:09
from django.db import migrations, models
import django.db.models.deletion
import uuid
| 37.76 | 153 | 0.598517 |
845d03992ff2924ffdc957b51de3c6b486a7c0ea | 880 | py | Python | src/las_util/serializers.py | dcslagel/las-util-django | cea8437813969b3b22182de6b9553b9e6694c548 | [
"BSD-3-Clause"
] | 3 | 2020-05-15T05:40:43.000Z | 2021-11-09T06:19:41.000Z | src/las_util/serializers.py | dcslagel/las-util-django | cea8437813969b3b22182de6b9553b9e6694c548 | [
"BSD-3-Clause"
] | 26 | 2020-05-20T13:03:02.000Z | 2021-09-23T19:36:39.000Z | src/las_util/serializers.py | dcslagel/las-util-django | cea8437813969b3b22182de6b9553b9e6694c548 | [
"BSD-3-Clause"
] | 1 | 2021-11-09T01:40:05.000Z | 2021-11-09T01:40:05.000Z | """
File-Name: [app]/serializers.py
File-Desc: Rest API serializers for las_util
App-Name: las_util
Project-Name: Las-Util-Django
Copyright: Copyright (c) 2019, DC Slagel
License-Identifier: BSD-3-Clause
"""
from rest_framework import serializers
from las_util.models import SectionInfo
# TODO: replace view.api_upload ... | 29.333333 | 55 | 0.7125 |
845d9d3e1de64db798d6f4d7e46d76bf4c2959c6 | 3,965 | py | Python | UI/python/runtext.py | maxxscholten/nyc-train-sign | 7da32c413270f3bf4629969bcf16f7def4ddb372 | [
"MIT"
] | 8 | 2020-02-19T21:17:04.000Z | 2022-01-04T03:52:56.000Z | UI/python/runtext.py | maxxscholten/nyc-train-sign | 7da32c413270f3bf4629969bcf16f7def4ddb372 | [
"MIT"
] | 1 | 2021-09-20T02:13:41.000Z | 2021-09-21T07:01:14.000Z | UI/python/runtext.py | maxxscholten/nyc-train-sign | 7da32c413270f3bf4629969bcf16f7def4ddb372 | [
"MIT"
] | 4 | 2021-03-11T17:11:40.000Z | 2021-11-10T01:20:33.000Z | #!/usr/bin/env python
# Display a runtext with double-buffering.
from samplebase import SampleBase
from rgbmatrix import graphics
import time
import requests
import transitfeed
import datetime
import arrow
import schedule
today = datetime.date.today()
starttime = time.time()
schedule = transitfeed.Schedule()
url = "ht... | 37.056075 | 121 | 0.640858 |
8460d12d7847a84d2047777b7d49fa013dbd6421 | 92 | py | Python | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | 2 | 2021-11-16T03:47:06.000Z | 2021-12-21T20:19:30.000Z | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | null | null | null | back/apps/base_user/apps.py | pylvin/nuxt-drf-template | e3f32cf98a2bdf393f88fbda2afedf2c0bf99dc7 | [
"MIT"
] | 2 | 2021-12-21T20:19:39.000Z | 2022-01-03T11:27:04.000Z | from django.apps import AppConfig
| 15.333333 | 33 | 0.76087 |
8462591fa4b3c8c3275d239bf45765f52bee1b94 | 1,188 | py | Python | model/board_generator.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | model/board_generator.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | model/board_generator.py | myrmarachne/minesweeper | 777170b7a31f1feed0bdf7aca31aaa9916c9b915 | [
"AFL-1.1"
] | null | null | null | from random import sample
from tile import Tile
from utils import neighbours
| 38.322581 | 115 | 0.616162 |
8463673ccc7d5d8251d46b1bed4eb08caa70dd68 | 1,054 | py | Python | src/the_tale/the_tale/game/pvp/objects.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/game/pvp/objects.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/game/pvp/objects.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
| 31.939394 | 85 | 0.66129 |
8463c9fd49aa8b29fdde20c5d6a8fdfd2fb75f46 | 300 | py | Python | src/gencoef/test.py | bwasti/sleef | 4d260ae7f5d0e76a3c5424149deb838373e1894b | [
"BSL-1.0"
] | null | null | null | src/gencoef/test.py | bwasti/sleef | 4d260ae7f5d0e76a3c5424149deb838373e1894b | [
"BSL-1.0"
] | null | null | null | src/gencoef/test.py | bwasti/sleef | 4d260ae7f5d0e76a3c5424149deb838373e1894b | [
"BSL-1.0"
] | null | null | null | import numpy as np
import math
p = np.poly1d([
+0.1429511242e-53,
+0.1561712123e-44,
-0.2259472298e-35,
-0.2669710222e-26,
+0.9784247973e-18,
+0.1655572013e-8,
+0.3991098106e+0,
])
for i in range(1000):
k = float(i) / 100
print(sigmoid(k), p(k))
| 15.789474 | 31 | 0.656667 |
846536aeea05536d64f4f59f9d2196f85d857b4d | 19,035 | py | Python | forever/Database.py | dss285/4ever | bd6f70f92d76d43342da401562f2c504adaf3867 | [
"MIT"
] | null | null | null | forever/Database.py | dss285/4ever | bd6f70f92d76d43342da401562f2c504adaf3867 | [
"MIT"
] | null | null | null | forever/Database.py | dss285/4ever | bd6f70f92d76d43342da401562f2c504adaf3867 | [
"MIT"
] | null | null | null | import psycopg2
import psycopg2.extras
import discord
from models.BotMention import BotMention
from models.UpdatedMessage import UpdatedMessage
from forever.Steam import Steam_API, Dota_Match, Dota_Match_Player
from forever.Utilities import run_in_executor, log
from forever.Warframe import CetusMessage, FissureM... | 38.222892 | 180 | 0.640294 |
8465f309612202475ac3cb61d22a9dcf1509182e | 822 | py | Python | Week06/q_cifar10_cnn.py | HowardNTUST/HackNTU_Data_2017 | ad8e753a16719b6f9396d88b313a5757f5ed4794 | [
"MIT"
] | null | null | null | Week06/q_cifar10_cnn.py | HowardNTUST/HackNTU_Data_2017 | ad8e753a16719b6f9396d88b313a5757f5ed4794 | [
"MIT"
] | null | null | null | Week06/q_cifar10_cnn.py | HowardNTUST/HackNTU_Data_2017 | ad8e753a16719b6f9396d88b313a5757f5ed4794 | [
"MIT"
] | 1 | 2019-02-24T17:41:45.000Z | 2019-02-24T17:41:45.000Z | import keras
from keras.layers import Dense, Activation, Conv2D, MaxPool2D, Reshape
model = Sequential()
model.add(Reshape((3, 32, 32), input_shape=(3*32*32,) ))
model.add(Conv2D(filters=32, kernel_size=(3,3), padding='same', activation="relu", data_format='channels_first'))
model.add(MaxPool2D())
model.add(Conv2D(filt... | 48.352941 | 113 | 0.723844 |
8465fe705e2203a309cb2f80aab7f362306bc341 | 1,111 | py | Python | testesDuranteAulas/aula019.py | Igor3550/Exercicios-de-python | e0f6e043df4f0770ac15968485fbb19698b4ac6b | [
"MIT"
] | null | null | null | testesDuranteAulas/aula019.py | Igor3550/Exercicios-de-python | e0f6e043df4f0770ac15968485fbb19698b4ac6b | [
"MIT"
] | null | null | null | testesDuranteAulas/aula019.py | Igor3550/Exercicios-de-python | e0f6e043df4f0770ac15968485fbb19698b4ac6b | [
"MIT"
] | null | null | null | # Dicionarios
pessoas = {'nome': 'Igor', 'sexo': 'M', 'idade': 20}
print(f'O {pessoas["nome"]} tem {pessoas["idade"]} anos.')
print(pessoas.keys()) #chaves do dicionario
print(pessoas.values())#valores das chaves
print(pessoas.items())#mostra os itens do dicionario
print()
for k in pessoas.keys():
print(k)
for v in... | 26.452381 | 58 | 0.629163 |
84664082e1511f1729add08f835b69444a8edf67 | 9,697 | py | Python | polyanalyst6api/api.py | Megaputer/polyanalyst6api-python | c6626a8a5f8f926b1f32285e18457ed70dfba73a | [
"MIT"
] | 2 | 2021-01-30T19:04:12.000Z | 2021-06-18T09:41:15.000Z | polyanalyst6api/api.py | Megaputer/polyanalyst6api-python | c6626a8a5f8f926b1f32285e18457ed70dfba73a | [
"MIT"
] | null | null | null | polyanalyst6api/api.py | Megaputer/polyanalyst6api-python | c6626a8a5f8f926b1f32285e18457ed70dfba73a | [
"MIT"
] | 1 | 2021-04-19T09:57:14.000Z | 2021-04-19T09:57:14.000Z | """
polyanalyst6api.api
~~~~~~~~~~~~~~~~~~~
This module contains functionality for access to PolyAnalyst API.
"""
import configparser
import contextlib
import pathlib
import warnings
from typing import Any, Dict, List, Tuple, Union, Optional
from urllib.parse import urljoin, urlparse
import requests
import urllib3
f... | 35.00722 | 113 | 0.608642 |
ffbcc28e993823f93d8f7e3809b6abd49a5cc187 | 1,998 | py | Python | froide/publicbody/admin.py | rufuspollock/froide | 8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4 | [
"MIT"
] | null | null | null | froide/publicbody/admin.py | rufuspollock/froide | 8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4 | [
"MIT"
] | null | null | null | froide/publicbody/admin.py | rufuspollock/froide | 8ef4dbdd54a74f8c986d59e90348dfdbd85c5da4 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.http import HttpResponse
from django.utils.translation import ugettext as _
from froide.publicbody.models import (PublicBody, FoiLaw, PublicBodyTopic,
Jurisdiction)
admin.site.register(PublicBody, PublicBodyAdmin)
admin.site.register(FoiLaw, FoiLawAdmin)
admin.... | 34.448276 | 87 | 0.699199 |
ffbf148e7df59ebdd237d38695723231b7824b44 | 462 | py | Python | src/abc/106/106_b.py | ryuichi1208/atcoder_stack | 19ec81fb9a3edb44be422b79e98b23e8ff17ef60 | [
"MIT"
] | null | null | null | src/abc/106/106_b.py | ryuichi1208/atcoder_stack | 19ec81fb9a3edb44be422b79e98b23e8ff17ef60 | [
"MIT"
] | null | null | null | src/abc/106/106_b.py | ryuichi1208/atcoder_stack | 19ec81fb9a3edb44be422b79e98b23e8ff17ef60 | [
"MIT"
] | null | null | null | n = int(input())
# @return [0]: [1]:
L=[]
ans=0
for i in range(1,n+1):
if(i%2==0):
continue
else:
for j in range(1,n+1):
if(i%j==0):
L.append(j)
if (len(L)==8):
ans+=1
L.clear()
print(ans)
print(divisor(15))
| 14.4375 | 30 | 0.452381 |
ffbfef0bf96a36ae6a5da2b1bf0bdc5756f1e309 | 3,931 | py | Python | poc.py | evinr/basis-scraper | cb20574aadc469c6d1527ddb5a3cc69df531cbfd | [
"MIT"
] | null | null | null | poc.py | evinr/basis-scraper | cb20574aadc469c6d1527ddb5a3cc69df531cbfd | [
"MIT"
] | null | null | null | poc.py | evinr/basis-scraper | cb20574aadc469c6d1527ddb5a3cc69df531cbfd | [
"MIT"
] | null | null | null | import serial
#TODO: define the gathering of all of the possible data sets being extracted
#Biometrics
# Heart Rate
# STEPS
# CALORIES
# SKIN TEMP
# PERSPIRATION
#Activity
# Walking
# Running
# Biking
#Sleep
# REM
# Mind Refresh
# Light
# Deep
# Body Refresh
# Interruptions
# Toss & Turn
| 27.110345 | 135 | 0.675401 |
ffc0fbef26aaac232d9390250ce89e31f64b7ad8 | 31 | py | Python | multinet/db/models/__init__.py | multinet-app/multinet-girder | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 3 | 2019-10-22T15:21:10.000Z | 2020-02-13T17:40:07.000Z | multinet/db/models/__init__.py | multinet-app/multinet | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 183 | 2019-08-01T14:27:00.000Z | 2020-03-04T17:47:49.000Z | multinet/db/models/__init__.py | multinet-app/multinet-girder | f34c87849d92c7fe2f8589760f97bebbe04bd4af | [
"Apache-2.0"
] | 2 | 2020-08-20T11:57:17.000Z | 2020-11-10T22:54:19.000Z | """ORM models for multinet."""
| 15.5 | 30 | 0.645161 |
ffc1536722c6684539bdbe4eaba7de45c07a8edb | 6,296 | py | Python | dataPipelines/gc_crawler/nato_stanag/models.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | null | null | null | dataPipelines/gc_crawler/nato_stanag/models.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | 4 | 2021-07-27T21:44:51.000Z | 2022-03-04T01:38:48.000Z | dataPipelines/gc_crawler/nato_stanag/models.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | null | null | null | import bs4
import os
import re
from typing import Iterable
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait # for implicit and explict waits
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.by import By
from dataPipelines.gc_crawler... | 38.625767 | 127 | 0.550191 |
ffc168320dcc3879d9935e0c48e2582d2d304fa1 | 3,938 | py | Python | app/signals.py | MakuZo/bloggy | 550e5285728b285e0d5243670d6aa0f40c414777 | [
"MIT"
] | 7 | 2018-11-12T20:52:53.000Z | 2021-12-17T23:04:41.000Z | app/signals.py | MakuZo/bloggy | 550e5285728b285e0d5243670d6aa0f40c414777 | [
"MIT"
] | 2 | 2019-12-24T08:53:51.000Z | 2019-12-26T19:26:51.000Z | app/signals.py | MakuZo/bloggy | 550e5285728b285e0d5243670d6aa0f40c414777 | [
"MIT"
] | 8 | 2018-12-28T12:31:51.000Z | 2020-01-25T09:07:52.000Z | import re
from django.db.models.signals import m2m_changed, post_save, pre_delete
from django.dispatch import receiver
from django.urls import reverse
from .models import Entry, Notification, User
| 39.777778 | 127 | 0.561199 |
ffc1d0bbd0644054a0b22502249482b17c06c941 | 2,532 | py | Python | tests/utils/test_commons.py | jajomi/flow | c984be6f7de1a34192601c129dbc19f2ce45f135 | [
"Apache-2.0"
] | null | null | null | tests/utils/test_commons.py | jajomi/flow | c984be6f7de1a34192601c129dbc19f2ce45f135 | [
"Apache-2.0"
] | 6 | 2021-03-05T16:39:42.000Z | 2021-06-11T01:04:57.000Z | tests/utils/test_commons.py | jajomi/flow | c984be6f7de1a34192601c129dbc19f2ce45f135 | [
"Apache-2.0"
] | null | null | null | from unittest.mock import mock_open
from unittest.mock import patch
import flow.utils.commons as commons
commit_example = [
"223342f Adding ability to specify artifactory user [#134082057]",
"4326d00 Adding slack channel option for errors [#130798449]",
"09c1983 Merge pull request #25 from ci-cd/revert-18-github-ver... | 36.171429 | 100 | 0.781991 |
ffc234c8fa1382a81cd3f2b1ea5e202da915c840 | 28,482 | py | Python | swagger_client/models/client_configuration.py | chbndrhnns/finapi-client | 259beda8b05e912c49d2dc4c3ed71205134e5d8a | [
"MIT"
] | 2 | 2019-04-15T05:58:21.000Z | 2021-11-15T18:26:37.000Z | swagger_client/models/client_configuration.py | chbndrhnns/finapi-client | 259beda8b05e912c49d2dc4c3ed71205134e5d8a | [
"MIT"
] | 1 | 2021-06-18T09:46:25.000Z | 2021-06-18T20:12:41.000Z | swagger_client/models/client_configuration.py | chbndrhnns/finapi-client | 259beda8b05e912c49d2dc4c3ed71205134e5d8a | [
"MIT"
] | 2 | 2019-07-08T13:41:09.000Z | 2020-12-07T12:10:04.000Z | # coding: utf-8
"""
finAPI RESTful Services
finAPI RESTful Services # noqa: E501
OpenAPI spec version: v1.42.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
def to_str(self):
"""Returns the string represent... | 71.027431 | 1,696 | 0.743066 |
ffc35164c1764ae381a92d8e3682d0250a4793ea | 912 | py | Python | utils/jwt_custom_decorator.py | w0rm1995/face-comparison-backend | 9e231aabcf129e887e25a8ffdb5ae9617fee3e00 | [
"MIT"
] | null | null | null | utils/jwt_custom_decorator.py | w0rm1995/face-comparison-backend | 9e231aabcf129e887e25a8ffdb5ae9617fee3e00 | [
"MIT"
] | 3 | 2021-06-08T22:05:30.000Z | 2022-01-13T03:04:03.000Z | utils/jwt_custom_decorator.py | w0rm1995/face-comparison-backend | 9e231aabcf129e887e25a8ffdb5ae9617fee3e00 | [
"MIT"
] | null | null | null | from functools import wraps
from flask_jwt_extended import verify_jwt_in_request, get_jwt_claims, exceptions
from jwt import exceptions as jwt_exception
from utils.custom_response import bad_request
| 35.076923 | 80 | 0.638158 |
ffc40ad7630c4587dcf4487c052a523769c15b4a | 1,254 | py | Python | packages/M2Crypto-0.21.1/demo/smime/unsmime.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | packages/M2Crypto-0.21.1/demo/smime/unsmime.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | 6 | 2021-03-31T19:21:50.000Z | 2022-01-13T01:46:09.000Z | packages/M2Crypto-0.21.1/demo/smime/unsmime.py | RaphaelPrevost/Back2Shops | 5f2d369e82fe2a7b9b3a6c55782319b23d142dfd | [
"CECILL-B"
] | null | null | null | #!/usr/bin/env python
"""S/MIME demo.
Copyright (c) 2000 Ng Pheng Siong. All rights reserved."""
from M2Crypto import BIO, Rand, SMIME, X509
import sys
if __name__ == '__main__':
Rand.load_file('../randpool.dat', -1)
decrypt_verify(BIO.File(sys.stdin), 'client.pem', 'client2.pem','ca.pem')
Rand.save_f... | 24.588235 | 77 | 0.6563 |
ffc4351a518b97d5c4916014accd51d41d76de87 | 14,867 | py | Python | skybright/skybright.py | ehneilsen/skybright | b0e2d7e6e25131393ee76ce334ce1df1521e3659 | [
"MIT"
] | 1 | 2019-09-24T21:06:45.000Z | 2019-09-24T21:06:45.000Z | skybright/skybright.py | ehneilsen/skybright | b0e2d7e6e25131393ee76ce334ce1df1521e3659 | [
"MIT"
] | null | null | null | skybright/skybright.py | ehneilsen/skybright | b0e2d7e6e25131393ee76ce334ce1df1521e3659 | [
"MIT"
] | 1 | 2019-09-24T21:14:35.000Z | 2019-09-24T21:14:35.000Z | #!/usr/bin/env python
"""A model for the sky brightness
"""
from functools import partial
from math import pi, cos, acos, sin, sqrt, log10
from datetime import datetime, tzinfo, timedelta
from time import strptime
from calendar import timegm
from copy import deepcopy
from sys import argv
from collections import namedtu... | 37.1675 | 163 | 0.609807 |
ffc57756064cdbfdff55d925646e8ab713a50ba6 | 1,675 | py | Python | timeseries/test.py | zoobree/MachineLearning | 67fd35e67469d9f03afd5c090f2ca23f514bebfd | [
"Apache-2.0"
] | null | null | null | timeseries/test.py | zoobree/MachineLearning | 67fd35e67469d9f03afd5c090f2ca23f514bebfd | [
"Apache-2.0"
] | 1 | 2018-04-07T05:24:40.000Z | 2018-04-07T05:24:40.000Z | timeseries/test.py | joybree/MachineLearning | 69a381efa35436a6d211005c320576db966eea11 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
import arima
import os
import pandas as pd
if __name__ == "__main__":
unittest.main()
| 25.769231 | 99 | 0.587463 |
ffc7043d4112113fd11d3bba2367bfc4002daece | 8,004 | py | Python | pynetstation_send_tags/pynetstation_send_tags.py | mattmoo/Pynetstation-Plug-In | aba2d312e5543cc5c2100793805acfeff075c59c | [
"MIT"
] | null | null | null | pynetstation_send_tags/pynetstation_send_tags.py | mattmoo/Pynetstation-Plug-In | aba2d312e5543cc5c2100793805acfeff075c59c | [
"MIT"
] | null | null | null | pynetstation_send_tags/pynetstation_send_tags.py | mattmoo/Pynetstation-Plug-In | aba2d312e5543cc5c2100793805acfeff075c59c | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
"""
This file is part of OpenSesame.
OpenSesame is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenSesame is distr... | 35.415929 | 115 | 0.594328 |
ffc7fe1be16dc65b683b9d6a05ef9740a31e195b | 42,563 | py | Python | ion/simulators/SBE37_SMP_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 3 | 2016-09-20T09:50:06.000Z | 2018-08-10T01:41:38.000Z | ion/simulators/SBE37_SMP_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | null | null | null | ion/simulators/SBE37_SMP_simulator.py | ooici/coi-services | 43246f46a82e597345507afd7dfc7373cb346afa | [
"BSD-2-Clause"
] | 2 | 2016-03-16T22:25:49.000Z | 2016-11-26T14:54:21.000Z | #!/usr/bin/env python
__author__ = 'Roger Unwin'
import socket
import time
from time import gmtime, strftime
import datetime
import string
import sys
import random
import asyncore
import thread
import getopt
import select
import os
### default values defined below (b/c class is not yet defined)
#default_port = 4001 ... | 44.94509 | 405 | 0.453398 |
ffc857a75ba7aa5ef44304f6675fe0e78e0727a5 | 976 | py | Python | experiments/centralisation/centralisation.py | MichaelAllen1966/2105_london_acute_stroke_unit | 56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff | [
"MIT"
] | null | null | null | experiments/centralisation/centralisation.py | MichaelAllen1966/2105_london_acute_stroke_unit | 56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff | [
"MIT"
] | null | null | null | experiments/centralisation/centralisation.py | MichaelAllen1966/2105_london_acute_stroke_unit | 56b710c58b5b6bdf5c03e3fb9ec65c53cd5336ff | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
data = pd.read_csv('results.csv')
labels = [1,2,3,4]
width = 0.75
x = np.arange(len(labels)) # the label locations
fig = plt.figure(figsize=(9,6))
# Number people waiting
ax1 = fig.add_subplot(121)
y1 = data['av_waiting'].values.flatten()
w... | 21.217391 | 76 | 0.731557 |
ffc9b886976a36f8168389759472ba04ff485037 | 10,360 | py | Python | Case_Study_1.py | Amritha29/Stout_DDA_FULL_STACK_21.github.io | 89be2324468dfba2ba9afb378881c6e9e460696b | [
"CC-BY-4.0"
] | null | null | null | Case_Study_1.py | Amritha29/Stout_DDA_FULL_STACK_21.github.io | 89be2324468dfba2ba9afb378881c6e9e460696b | [
"CC-BY-4.0"
] | null | null | null | Case_Study_1.py | Amritha29/Stout_DDA_FULL_STACK_21.github.io | 89be2324468dfba2ba9afb378881c6e9e460696b | [
"CC-BY-4.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Spyder Editor
Amritha Subburayan code for STOUT DDA FULL STACK CASE STUDIES
"""
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
from sklearn import preprocessing
import sklearn.metrics as sm
data = pd.r... | 32.888889 | 167 | 0.754826 |
ffcbaba69ba29dbe70293f1d332c038a6aaf91b9 | 1,373 | py | Python | datastore/__init__.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | 6 | 2019-08-04T04:11:36.000Z | 2020-02-20T17:10:26.000Z | datastore/__init__.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | 23 | 2019-09-17T11:35:06.000Z | 2020-04-07T16:18:15.000Z | datastore/__init__.py | Swixx/py-datastore | dfa1f9dcc3cc3beac3c3e79d085cb6e89da97a1c | [
"MIT"
] | 6 | 2019-08-04T02:02:25.000Z | 2020-03-01T15:43:41.000Z | """
Datastore is a generic layer of abstraction for data store and database access.
It is a **simple** API with the aim to enable application development in a
datastore-agnostic way, allowing datastores to be swapped seamlessly without
changing application code. Thus, one can leverage different datastores with
differen... | 29.212766 | 79 | 0.79024 |
ffce3c914809fe508a87b5cc18e2cdab125e42d4 | 402 | py | Python | public_goods_str_nonoise/tests.py | bocchan/costly | ba52f82e36e28012a63a78805963bdf384679955 | [
"BSD-3-Clause"
] | null | null | null | public_goods_str_nonoise/tests.py | bocchan/costly | ba52f82e36e28012a63a78805963bdf384679955 | [
"BSD-3-Clause"
] | null | null | null | public_goods_str_nonoise/tests.py | bocchan/costly | ba52f82e36e28012a63a78805963bdf384679955 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division
import random
from otree.common import Currency as c, currency_range
from . import views
from ._builtin import Bot
from .models import Constants
| 18.272727 | 54 | 0.691542 |
ffd1926ccd96f4b70e990d54bad23c4b64c849e9 | 2,531 | py | Python | cloudianapi/tools/statistics.py | romerojunior/cloudian-api | f17b45653a0e3e27a78d0d6bdc094ec6ab521550 | [
"Apache-2.0"
] | 11 | 2017-11-01T17:48:10.000Z | 2020-08-25T04:29:17.000Z | cloudianapi/tools/statistics.py | romerojunior/cloudian-api | f17b45653a0e3e27a78d0d6bdc094ec6ab521550 | [
"Apache-2.0"
] | 5 | 2017-11-10T12:46:44.000Z | 2019-09-18T07:18:19.000Z | cloudianapi/tools/statistics.py | romerojunior/cloudian-api | f17b45653a0e3e27a78d0d6bdc094ec6ab521550 | [
"Apache-2.0"
] | 7 | 2018-01-26T20:08:37.000Z | 2021-05-26T14:32:06.000Z | #!/usr/bin/env python
# -*- coding:utf8 -*-
# Copyright 2017, Schuberg Philis BV
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership... | 34.202703 | 79 | 0.66772 |
ffd4de322115b22ae4e36e0be2d07a40743376b4 | 1,340 | py | Python | users/models.py | connorgannaway/dockmate | 040d44cac896aabc1488f3ed9d59b417e20719d8 | [
"MIT"
] | null | null | null | users/models.py | connorgannaway/dockmate | 040d44cac896aabc1488f3ed9d59b417e20719d8 | [
"MIT"
] | null | null | null | users/models.py | connorgannaway/dockmate | 040d44cac896aabc1488f3ed9d59b417e20719d8 | [
"MIT"
] | null | null | null | from os import name
from django.db import models
from django.contrib.auth.models import User
from PIL import Image
#Model classes are tables objects in a database.
#each variable is a column and its datatype.
#__str__ method defines the name of a object (row) in a database table
#profile model is meant to be used as ... | 37.222222 | 92 | 0.709701 |
ffd544a103259a41233ed3e0af2e2d453a43568d | 1,446 | py | Python | E_ledproject.py | randomstring/raspberrypi | fe226ce33f116480bfea8f258fdffa1fd96e379c | [
"MIT"
] | null | null | null | E_ledproject.py | randomstring/raspberrypi | fe226ce33f116480bfea8f258fdffa1fd96e379c | [
"MIT"
] | null | null | null | E_ledproject.py | randomstring/raspberrypi | fe226ce33f116480bfea8f258fdffa1fd96e379c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
led_color_gpio = {
'yellow': 0,
'orange': 2,
'red': 3,
'green': 4,
'blue': 5,
'white': 6
}
buttons_gpio = {
'red': 28,
'blue': 29,
}
gpio_to_bcm = {
0: 17,
1: 18,
2: 27,
3: 22,
4: 23,
5:... | 18.075 | 54 | 0.538728 |
ffd73066eb937a59b32d4daec9ba6f8807fa09da | 5,551 | py | Python | utils/StartMOOS.py | ianfixes/MOOS-python-utils | 1c34f3b8cde4fdcee48a8ee128a3c160eb17d722 | [
"WTFPL"
] | 3 | 2015-07-09T17:51:20.000Z | 2016-04-14T23:06:04.000Z | utils/StartMOOS.py | ifreecarve/MOOS-python-utils | 1c34f3b8cde4fdcee48a8ee128a3c160eb17d722 | [
"WTFPL"
] | null | null | null | utils/StartMOOS.py | ifreecarve/MOOS-python-utils | 1c34f3b8cde4fdcee48a8ee128a3c160eb17d722 | [
"WTFPL"
] | 3 | 2015-03-31T04:18:21.000Z | 2016-10-22T04:55:16.000Z | #!/usr/bin/env python
###########################################################################
#
# Written in 2009 by Ian Katz <ijk5@mit.edu>
# Terms: WTFPL (http://sam.zoy.org/wtfpl/)
# See COPYING and WARRANTY files included in this distribution
#
#####################################... | 26.816425 | 85 | 0.572149 |
ffd92d23d660d2a840a6dec51a3209da982b029c | 1,172 | py | Python | word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py | RodSernaPerez/WordVectorizer | 097b2ccfc284b39ad43f56047ee25e393b7525ec | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py | RodSernaPerez/WordVectorizer | 097b2ccfc284b39ad43f56047ee25e393b7525ec | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | word_vectorizer/tests/unittest/model_downloading/test_gensimModelDownloader.py | RodSernaPerez/WordVectorizer | 097b2ccfc284b39ad43f56047ee25e393b7525ec | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch
from word_vectorizer.constants import Constants
from word_vectorizer.model_downloading.gensim_model_downloader import \
GensimModelDownloader
| 41.857143 | 77 | 0.728669 |
ffd92f6660bddf66dfe789ef939a022a436eddba | 26,840 | py | Python | results/generate_result.py | riscv-android-src/platform-test-mlts-benchmark | fc22878823896b81eb8b7e63e952a13f9675edcb | [
"Apache-2.0"
] | null | null | null | results/generate_result.py | riscv-android-src/platform-test-mlts-benchmark | fc22878823896b81eb8b7e63e952a13f9675edcb | [
"Apache-2.0"
] | null | null | null | results/generate_result.py | riscv-android-src/platform-test-mlts-benchmark | fc22878823896b81eb8b7e63e952a13f9675edcb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
#
# Copyright 2018, The Android Open Source Project
#
# 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 b... | 31.613663 | 99 | 0.656222 |
ffda91245aed33f9125784b3f0d5a73c6224af00 | 6,975 | py | Python | ampel/ztf/dev/DevSkyPortalClient.py | AmpelProject/Ampel-ZTF | 7f9736a7be3aa526571004716160cae2a800e410 | [
"BSD-3-Clause"
] | 1 | 2021-03-11T15:39:28.000Z | 2021-03-11T15:39:28.000Z | ampel/ztf/dev/DevSkyPortalClient.py | AmpelProject/Ampel-ZTF | 7f9736a7be3aa526571004716160cae2a800e410 | [
"BSD-3-Clause"
] | 18 | 2021-08-02T17:11:25.000Z | 2022-01-11T16:20:04.000Z | ampel/ztf/dev/DevSkyPortalClient.py | AmpelProject/Ampel-ZTF | 7f9736a7be3aa526571004716160cae2a800e410 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: Ampel-ZTF/ampel/ztf/dev/DevSkyPortalClient.py
# Author: Jakob van Santen <jakob.van.santen@desy.de>
# Date: 16.09.2020
# Last Modified Date: 16.09.2020
# Last Modified By: Jakob van Santen <jakob.van.santen@desy.de>
im... | 36.139896 | 151 | 0.531326 |
ffddb9df1f192b673556f7659d2310d13ba94e89 | 3,806 | py | Python | tools/test_detection_features_converter.py | jialinwu17/caption_vqa | 9bbbb580d031a20ba4f18ef14fcd3599b62a482a | [
"MIT"
] | 139 | 2018-03-21T09:39:39.000Z | 2021-07-07T14:19:26.000Z | tools/test_detection_features_converter.py | VincentYing/Attention-on-Attention-for-VQA | cbc767541667e9bb32760ac7cd2e822eff232ff5 | [
"MIT"
] | 4 | 2018-05-25T05:15:20.000Z | 2018-10-11T00:52:14.000Z | tools/test_detection_features_converter.py | VincentYing/Attention-on-Attention-for-VQA | cbc767541667e9bb32760ac7cd2e822eff232ff5 | [
"MIT"
] | 23 | 2018-03-22T10:12:35.000Z | 2021-02-20T06:18:00.000Z | """
Reads in a tsv file with pre-trained bottom up attention features and
stores it in HDF5 format. Also store {image_id: feature_idx}
as a pickle file.
Hierarchy of HDF5 file:
{ 'image_features': num_images x num_boxes x 2048 array of features
'image_bb': num_images x num_boxes x 4 array of bounding boxes }
"""
... | 34.6 | 83 | 0.618497 |
ffde4731dad77ca75123679807fabb3875a76017 | 176 | py | Python | src/registration/urls.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | 1 | 2021-04-07T20:14:43.000Z | 2021-04-07T20:14:43.000Z | src/registration/urls.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | null | null | null | src/registration/urls.py | jtrussell/swindle | 914f9ddc7b155cf895fc233b9f3f0c1804bf23e3 | [
"MIT"
] | null | null | null | from . import views
from django.urls import path
urlpatterns = [
path('', views.profile, name='profile'),
path('sign-up', views.sign_up, name='show_sign_up_form')
]
| 17.6 | 60 | 0.681818 |
ffde4e382f893654ea15768c8c27165eee09e3a4 | 3,720 | py | Python | src/Control/Sign.py | hieuhdh/Multi-tasking-program | 2f064a554f647247c84979b7a27f0797d1e1b5af | [
"MIT"
] | null | null | null | src/Control/Sign.py | hieuhdh/Multi-tasking-program | 2f064a554f647247c84979b7a27f0797d1e1b5af | [
"MIT"
] | null | null | null | src/Control/Sign.py | hieuhdh/Multi-tasking-program | 2f064a554f647247c84979b7a27f0797d1e1b5af | [
"MIT"
] | null | null | null | from tkinter.font import BOLD
from PIL import ImageTk
from tkinter import*
from PIL import Image
from tkinter import messagebox
from Tools.log_db import*
| 53.913043 | 265 | 0.596774 |
ffdf3cdd0117fb616bc6eff58d4c3d502c8bf807 | 6,301 | py | Python | aydin/it/classic_denoisers/bilateral.py | AhmetCanSolak/aydin | e8bc81ee88c96e0f34986df30a63c96468a45f70 | [
"BSD-3-Clause"
] | 78 | 2021-11-08T16:11:23.000Z | 2022-03-27T17:51:04.000Z | aydin/it/classic_denoisers/bilateral.py | AhmetCanSolak/aydin | e8bc81ee88c96e0f34986df30a63c96468a45f70 | [
"BSD-3-Clause"
] | 19 | 2021-11-08T17:15:40.000Z | 2022-03-30T17:46:55.000Z | aydin/it/classic_denoisers/bilateral.py | AhmetCanSolak/aydin | e8bc81ee88c96e0f34986df30a63c96468a45f70 | [
"BSD-3-Clause"
] | 7 | 2021-11-09T17:42:32.000Z | 2022-03-09T00:37:57.000Z | from functools import partial
from typing import Optional, List, Tuple
import numpy
from numpy.typing import ArrayLike
from skimage.restoration import denoise_bilateral as skimage_denoise_bilateral
from aydin.it.classic_denoisers import _defaults
from aydin.util.crop.rep_crop import representative_crop
from aydin.uti... | 32.989529 | 83 | 0.690525 |
ffe13b312ebb3748c1aadfdca895d3557dc9d9a9 | 1,889 | py | Python | pymon/pymon.py | crest42/PyMon | 96494cc37f906e6a07388af29b04c559ec72f116 | [
"MIT"
] | null | null | null | pymon/pymon.py | crest42/PyMon | 96494cc37f906e6a07388af29b04c559ec72f116 | [
"MIT"
] | null | null | null | pymon/pymon.py | crest42/PyMon | 96494cc37f906e6a07388af29b04c559ec72f116 | [
"MIT"
] | null | null | null | import logging
import time
from .exceptions import HostEntryNotValid
from .check import CheckFactory
from .alert import AlertFactory
from .host import Host
from .logging import logger
| 28.19403 | 75 | 0.564849 |
ffe516953bedc8e02aa7624b4a14d347ba8dad15 | 52,397 | py | Python | ambulance/tests/test_calls.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | ambulance/tests/test_calls.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | ambulance/tests/test_calls.py | aschrist/WebServerAndClient | 3aa0af2c444acac88a1b51b4cfd4bb8d0c36e640 | [
"BSD-3-Clause"
] | null | null | null | import logging
import time
from django.test import Client
from django.conf import settings
from django.urls import reverse
from django.db import IntegrityError
from django.utils import timezone
from rest_framework.parsers import JSONParser
from rest_framework import serializers
from io import BytesIO
import json
fr... | 37.533668 | 121 | 0.55444 |
ffe63e2dda8d22501b711fdd07b98a6cfff2ea5a | 2,484 | py | Python | bot/PythonProject/Commands.py | RamaDev09/CrateBot | 34b9f50b88da42cc1c449466402897340ec142df | [
"MIT"
] | null | null | null | bot/PythonProject/Commands.py | RamaDev09/CrateBot | 34b9f50b88da42cc1c449466402897340ec142df | [
"MIT"
] | null | null | null | bot/PythonProject/Commands.py | RamaDev09/CrateBot | 34b9f50b88da42cc1c449466402897340ec142df | [
"MIT"
] | null | null | null | import os
from bot.TextInput import TextInput
from bot.prompt import color_msg
| 45.163636 | 118 | 0.517311 |
ffe68f15e3bf96bdad0cec4870fd34ce0d8fbf6c | 223 | py | Python | src/methods/Addition.py | svanschooten/Flow | c7c158f986f7b108a255cbaa67ec7fff3518b637 | [
"MIT"
] | null | null | null | src/methods/Addition.py | svanschooten/Flow | c7c158f986f7b108a255cbaa67ec7fff3518b637 | [
"MIT"
] | null | null | null | src/methods/Addition.py | svanschooten/Flow | c7c158f986f7b108a255cbaa67ec7fff3518b637 | [
"MIT"
] | null | null | null | from methods.AbstactMethod import AbstractMethod
| 20.272727 | 48 | 0.591928 |
ffe7a09ec4555bf2573c09777fdb5c2946647fc9 | 3,914 | py | Python | submissions_comments.py | jbell1991/reddit-scraping | 73d88501ed0205e78000b9c30780a33186154fda | [
"MIT"
] | null | null | null | submissions_comments.py | jbell1991/reddit-scraping | 73d88501ed0205e78000b9c30780a33186154fda | [
"MIT"
] | null | null | null | submissions_comments.py | jbell1991/reddit-scraping | 73d88501ed0205e78000b9c30780a33186154fda | [
"MIT"
] | null | null | null | # imports
from decouple import config
import pandas as pd
import praw
import psycopg2
import schedule
from sqlalchemy import create_engine
import time
# automate script to run at the same time everyday
schedule.every().day.at("09:07").do(job)
while True:
schedule.run_pending()
time.sleep(1)
| 32.890756 | 93 | 0.667092 |
ffe7fe43c53e89a050ea85e42fd101e3306b2423 | 9,139 | py | Python | vision_proc/proc_frame.py | SMS-Raiders/First2016 | a08eb1fa195bd869f8e7de7761d791e3fcf23d22 | [
"BSD-3-Clause"
] | 1 | 2016-03-08T14:39:52.000Z | 2016-03-08T14:39:52.000Z | vision_proc/proc_frame.py | SMS-Raiders/First2016 | a08eb1fa195bd869f8e7de7761d791e3fcf23d22 | [
"BSD-3-Clause"
] | null | null | null | vision_proc/proc_frame.py | SMS-Raiders/First2016 | a08eb1fa195bd869f8e7de7761d791e3fcf23d22 | [
"BSD-3-Clause"
] | null | null | null | #!/bin/python
#Frame processing and distance estimation for
#goal
#-------------------------------------------------------------------------------
# IMPORTS
#-------------------------------------------------------------------------------
import cv2
import math
import numpy
i... | 37.454918 | 135 | 0.402889 |
ffeabfb85c362b4fd5f28c9b1e056f66d191fed5 | 100 | py | Python | 9.py | sarika228/React-Projects | 24c342f71f839c257150f4b5e096c127b51d525c | [
"MIT"
] | null | null | null | 9.py | sarika228/React-Projects | 24c342f71f839c257150f4b5e096c127b51d525c | [
"MIT"
] | null | null | null | 9.py | sarika228/React-Projects | 24c342f71f839c257150f4b5e096c127b51d525c | [
"MIT"
] | null | null | null | i=1
while i<=4:
j=16
while j>=i:
print(i,end="")
j=j-1
print()
i=i+1 | 12.5 | 23 | 0.39 |
ffeb87db7651191ea5cf19f49a0c7c9aa356f87d | 8,539 | py | Python | site-packages/playhouse/sqliteq.py | lego-cloud/MDMPy | dc676a5d2245a14b9b98a2ac2dba64ff0bf61800 | [
"Python-2.0",
"OLDAP-2.7"
] | 674 | 2015-11-06T04:22:47.000Z | 2022-02-26T17:31:43.000Z | site-packages/playhouse/sqliteq.py | lego-cloud/MDMPy | dc676a5d2245a14b9b98a2ac2dba64ff0bf61800 | [
"Python-2.0",
"OLDAP-2.7"
] | 713 | 2015-11-06T10:48:58.000Z | 2018-11-27T16:32:18.000Z | site-packages/playhouse/sqliteq.py | lego-cloud/MDMPy | dc676a5d2245a14b9b98a2ac2dba64ff0bf61800 | [
"Python-2.0",
"OLDAP-2.7"
] | 106 | 2015-12-07T11:21:06.000Z | 2022-03-11T10:58:41.000Z | import logging
import weakref
from threading import Event
from threading import Thread
try:
from Queue import Queue
except ImportError:
from queue import Queue
try:
import gevent
from gevent import Greenlet as GThread
from gevent.event import Event as GEvent
from gevent.queue import Queue as GQ... | 32.222642 | 79 | 0.610025 |
ffed6941b3c99947e3e5d93c80fbd2e963b7ad51 | 9,056 | py | Python | Common/Db.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 2 | 2018-08-30T14:38:53.000Z | 2019-12-12T09:33:42.000Z | Common/Db.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 1 | 2018-12-10T05:15:48.000Z | 2018-12-10T05:15:48.000Z | Common/Db.py | StrawberryTeam/pi_robot | c1b8ce2ad49c64173673df0eb59e0941624556e7 | [
"MIT"
] | 2 | 2019-06-28T06:05:17.000Z | 2019-10-28T08:34:50.000Z | #!/usr/bin/python3
from Common.Straw import Straw
import pymongo
from pymongo import MongoClient
from bson.objectid import ObjectId
import os
if __name__ == "__main__":
db()
| 35.100775 | 169 | 0.597946 |
ffed95a551ec4c75f989589df7d781a9f4387728 | 1,251 | py | Python | baya/tests/test_templatetags.py | kreneskyp/baya | 5cf04b6873927124b4a3f24c113c08699dd61315 | [
"MIT"
] | 4 | 2016-05-24T13:57:37.000Z | 2020-02-27T05:22:56.000Z | baya/tests/test_templatetags.py | kreneskyp/baya | 5cf04b6873927124b4a3f24c113c08699dd61315 | [
"MIT"
] | 29 | 2016-02-05T01:31:51.000Z | 2022-02-23T18:50:58.000Z | baya/tests/test_templatetags.py | hrichards/baya | f319cef5e95cd6a166265d51ae0ea236b6f65be3 | [
"MIT"
] | 6 | 2016-05-20T22:22:45.000Z | 2019-09-03T17:57:59.000Z | from django.template import Context
from django.template import Template
from .test_base import LDAPGroupAuthTestBase
from django.contrib.auth.models import AnonymousUser
| 29.785714 | 69 | 0.608313 |
fff185192df2e58db961f6b323cfb8259a7a9f46 | 2,611 | py | Python | egg/zoo/sum_game/architectures.py | CorentinKervadec/EGG | 5ccd49c4a493514b1194699954d41940f5e2a5c6 | [
"MIT"
] | null | null | null | egg/zoo/sum_game/architectures.py | CorentinKervadec/EGG | 5ccd49c4a493514b1194699954d41940f5e2a5c6 | [
"MIT"
] | null | null | null | egg/zoo/sum_game/architectures.py | CorentinKervadec/EGG | 5ccd49c4a493514b1194699954d41940f5e2a5c6 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
from torch.nn import functional as F
# In EGG, the game designer must implement the core functionality of t... | 44.254237 | 133 | 0.711222 |
fff18656fd42956b8ef43e1d1fc5a06b2aa15f66 | 2,757 | py | Python | utils/random_training_splits.py | suvarnak/GenerativeFSLCovid | 0bdeb4ed444c5c9d59697c71d0733fc3a100944c | [
"MIT"
] | null | null | null | utils/random_training_splits.py | suvarnak/GenerativeFSLCovid | 0bdeb4ed444c5c9d59697c71d0733fc3a100944c | [
"MIT"
] | null | null | null | utils/random_training_splits.py | suvarnak/GenerativeFSLCovid | 0bdeb4ed444c5c9d59697c71d0733fc3a100944c | [
"MIT"
] | null | null | null | import os
import shutil
import random
if __name__ == '__main__':
main()
| 39.385714 | 105 | 0.673921 |
fff197ae68beb5dbb26583494df00c1fc7732948 | 1,285 | py | Python | tools/gen_bbox_ac.py | vincentzhang/faster-rcnn-fcn | 7118d715a430f0ec2697e5f7a9a39c9752b466da | [
"BSD-2-Clause"
] | 7 | 2019-07-19T21:30:26.000Z | 2021-06-17T03:57:22.000Z | tools/gen_bbox_ac.py | vincentzhang/faster-rcnn-fcn | 7118d715a430f0ec2697e5f7a9a39c9752b466da | [
"BSD-2-Clause"
] | null | null | null | tools/gen_bbox_ac.py | vincentzhang/faster-rcnn-fcn | 7118d715a430f0ec2697e5f7a9a39c9752b466da | [
"BSD-2-Clause"
] | 1 | 2021-06-17T03:57:23.000Z | 2021-06-17T03:57:23.000Z | # generated bbox ground truth from pixel-wise segmentation
# it currently only generate one bbox
from __future__ import print_function
import numpy as np
import h5py
import os
import pdb
mask_path = '../data/acce'
f = h5py.File(os.path.join(mask_path, "resized_label_ac_2d.h5"), 'r')
bbox_path = '../data/acce/bbox'
if... | 34.72973 | 83 | 0.585214 |
fff2144edf1dc7c96f337289635ef5af44b23625 | 8,510 | py | Python | testscript/imputation_algorithms.py | zshufan/Tattle-Tale | f9d93051efb523f1bda0cead023c2f001e18cc85 | [
"BSD-3-Clause"
] | null | null | null | testscript/imputation_algorithms.py | zshufan/Tattle-Tale | f9d93051efb523f1bda0cead023c2f001e18cc85 | [
"BSD-3-Clause"
] | null | null | null | testscript/imputation_algorithms.py | zshufan/Tattle-Tale | f9d93051efb523f1bda0cead023c2f001e18cc85 | [
"BSD-3-Clause"
] | null | null | null | # some codes refer to Holoclean evaluation function
# https://github.com/HoloClean/holoclean
import pandas as pd
import numpy as np
import logging
import random
import argparse
parser = argparse.ArgumentParser(description='Predict on many examples')
parser.add_argument("--dataset", type=str, help="dataset path")
pars... | 42.338308 | 169 | 0.602115 |
fff27be5ec642c73c3bac5ec2ecda165d7fe17c5 | 145 | py | Python | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 39 | 2020-09-27T05:32:05.000Z | 2022-01-08T18:04:05.000Z | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 5 | 2020-10-02T13:33:00.000Z | 2021-03-01T14:06:08.000Z | Hackerrank_python/15.numpy/10.Min and Max.py | manish1822510059/Hackerrank | 7c6e4553f033f067e04dc6c756ef90cb43f3c4a8 | [
"MIT"
] | 6 | 2020-10-03T04:04:55.000Z | 2021-10-18T04:07:53.000Z | import numpy as arr
n,m=map(int,input().split())
ar=([list(map(int,input().split()))for _ in range(n)])
arr1=arr.min(ar,axis=1)
print(max(arr1))
| 24.166667 | 54 | 0.668966 |