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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24b7c41cba674d3c5a96735fae3e61b4d3db7195 | 1,376 | py | Python | i3configger/bindings.py | obestwalter/i3-configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 30 | 2017-05-20T12:27:37.000Z | 2021-09-27T17:01:20.000Z | i3configger/bindings.py | obestwalter/i3configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 9 | 2017-05-21T23:17:04.000Z | 2019-05-09T13:24:32.000Z | i3configger/bindings.py | obestwalter/i3-configger | c981a01f5b89fd37ab5a98af1229819cea305f6a | [
"MIT"
] | 3 | 2017-06-04T20:29:29.000Z | 2021-09-27T17:01:23.000Z | """WARNING Just an experiment - please ignore this."""
from i3configger import config
BINDCODE = "bindcode"
BINDSYM = "bindsym"
if __name__ == "__main__":
# use partials and account for modes
# a naming convention would make this quite easy
# mode-<modename>.conf -> bindings active in <modename>
p =... | 30.577778 | 78 | 0.652616 |
24b94c38a11e9ef06d09ee6865284e5b1344c0b6 | 549 | py | Python | rldb/db/repo__openai_baselines_cbd21ef/algo__acer/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 45 | 2019-05-13T17:39:33.000Z | 2022-03-07T23:44:13.000Z | rldb/db/repo__openai_baselines_cbd21ef/algo__acer/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 2 | 2019-03-29T01:41:59.000Z | 2019-07-02T02:48:31.000Z | rldb/db/repo__openai_baselines_cbd21ef/algo__acer/entries.py | seungjaeryanlee/sotarl | 8c471c4666d6210c68f3cb468e439a2b168c785d | [
"MIT"
] | 2 | 2020-04-07T20:57:30.000Z | 2020-07-08T12:55:15.000Z | entries = [
{
'env-title': 'atari-enduro',
'score': 0.0,
},
{
'env-title': 'atari-space-invaders',
'score': 656.91,
},
{
'env-title': 'atari-qbert',
'score': 6433.38,
},
{
'env-title': 'atari-seaquest',
'score': 1065.98,
},
... | 17.709677 | 44 | 0.397086 |
24ba97b99cd37843fd8b359e53696bd9e75b0abb | 1,867 | py | Python | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | null | null | null | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | null | null | null | musketeer/fitSignals.py | TChis/Musketeer | bd67b2e7f4e1827c96d10bbf278c781ce22681f3 | [
"MIT"
] | 2 | 2021-05-07T12:29:02.000Z | 2022-01-10T11:57:22.000Z | import numpy as np
from numpy.linalg import lstsq
from scipy.optimize import lsq_linear
from . import moduleFrame
| 38.102041 | 79 | 0.689877 |
24bb981cb317130892a53ccc56efffe240ae3759 | 2,761 | py | Python | Python/Machine Learning/SummerFeast/SummerChallengeScorer/SummerChallengeScorer/create_data.py | sindresf/The-Playground | 438577487e02d0ff7986d72cb7a5ab995c2f96ab | [
"MIT"
] | null | null | null | Python/Machine Learning/SummerFeast/SummerChallengeScorer/SummerChallengeScorer/create_data.py | sindresf/The-Playground | 438577487e02d0ff7986d72cb7a5ab995c2f96ab | [
"MIT"
] | null | null | null | Python/Machine Learning/SummerFeast/SummerChallengeScorer/SummerChallengeScorer/create_data.py | sindresf/The-Playground | 438577487e02d0ff7986d72cb7a5ab995c2f96ab | [
"MIT"
] | null | null | null | import numpy as np
#DEFINE INNER FUNCTIONS
#DEFINE STARTING VALUES
starting_score = 342.5
a = 1.0
b = 0.025
a_max = 1.2
b_max = b * 1.15
a_min = 0.8
b_min = b * 0.85
e = 10
line_count = 150
range_start = 60
range_end = 1200
step = 15
data_range = np.arange(range_start,range_end,step)
rand_seed = 21
np.random.se... | 26.805825 | 123 | 0.630931 |
24bc2e95dadb1642bf9d26937c852e1ec7730615 | 160 | py | Python | chaptertwo/namecases.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | chaptertwo/namecases.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | chaptertwo/namecases.py | cmotek/python_crashcourse | 29cbdd6699cd17192bb599d235852d547630d110 | [
"Apache-2.0"
] | null | null | null | name = "fRoDo"
lowercase_name = name.lower()
uppercase_name = name.upper()
titlecase_name = name.title()
print(lowercase_name, uppercase_name, titlecase_name) | 32 | 54 | 0.78125 |
24bcc392a29135acd42960d6409f79663ae443b6 | 2,359 | pyw | Python | keylogger2.pyw | cactuska/Keylogger | a816d0a20aa242129368eee305cce8b051829932 | [
"MIT"
] | 1 | 2019-10-17T12:42:53.000Z | 2019-10-17T12:42:53.000Z | keylogger2.pyw | cactuska/Keylogger | a816d0a20aa242129368eee305cce8b051829932 | [
"MIT"
] | null | null | null | keylogger2.pyw | cactuska/Keylogger | a816d0a20aa242129368eee305cce8b051829932 | [
"MIT"
] | null | null | null | from pynput import keyboard
import sys
import socket
import requests
import json
import logging
import configparser
config = configparser.ConfigParser()
config.read('config.ini')
FILENAME = config['DEFAULT']['FILENAME']
LOG_DIR = config['DEFAULT']['LOG_DIR']
LOGFILE = config['DEFAULT']['LOGFILE']
ESCAPE_STRING = conf... | 29.860759 | 105 | 0.633743 |
24bce25b915ba22957eca242f8aa3b075851e90b | 588 | py | Python | translations/migrations/0025_move_category_m2m.py | TranslateForSG/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | 2 | 2020-05-08T07:18:05.000Z | 2020-05-13T13:22:19.000Z | translations/migrations/0025_move_category_m2m.py | aniruddha-adhikary/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | 7 | 2021-03-19T02:03:21.000Z | 2021-09-22T18:54:02.000Z | translations/migrations/0025_move_category_m2m.py | aniruddha-adhikary/translateforsg-backend | 319d90229fa0b22e4a6e77b321276e0e93cb6413 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-21 11:08
from django.db import migrations
| 25.565217 | 63 | 0.692177 |
24bd1dafd359bf1c94c84098d0bd837f3503e96e | 184 | py | Python | test/data/users_guide/test_escape/main.py | frederic-loui/tenjin | 13fccc464f882133d11219f7660d8eac3c524ae6 | [
"MIT"
] | null | null | null | test/data/users_guide/test_escape/main.py | frederic-loui/tenjin | 13fccc464f882133d11219f7660d8eac3c524ae6 | [
"MIT"
] | null | null | null | test/data/users_guide/test_escape/main.py | frederic-loui/tenjin | 13fccc464f882133d11219f7660d8eac3c524ae6 | [
"MIT"
] | null | null | null | import tenjin
from tenjin.helpers import *
import cgi
engine = tenjin.Engine(path=['views'], escapefunc="cgi.escape", tostrfunc="str")
print(engine.get_template('page.pyhtml').script)
| 30.666667 | 80 | 0.766304 |
24bdd1f67b1a53b5419af6b8f18fa6a181076a45 | 4,045 | py | Python | day_7/day_7.py | johnchoiniere/advent_of_code_2019 | a0a9040c179488627621d9ec540e666bc24c2e30 | [
"MIT"
] | null | null | null | day_7/day_7.py | johnchoiniere/advent_of_code_2019 | a0a9040c179488627621d9ec540e666bc24c2e30 | [
"MIT"
] | null | null | null | day_7/day_7.py | johnchoiniere/advent_of_code_2019 | a0a9040c179488627621d9ec540e666bc24c2e30 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Dec 8 11:35:38 2019
@author: john
"""
# Read the parameter permutations in
with open('permutations.txt') as f:
param_list = f.readlines()
# Format it to how I want it
param_list = [i.strip().strip('\"') for i in param_list][1:]
# Read the program in, five times
with... | 29.525547 | 91 | 0.518912 |
24c04d4dc8dd944e88b2a35d8131b3932d3f5b18 | 1,487 | py | Python | common/util/dates.py | jmcollis/GitSavvy | 153dca03bfd63db8248c1f9ee03bb6f2ebef545a | [
"MIT"
] | 2,058 | 2015-02-27T19:06:31.000Z | 2019-10-17T13:42:11.000Z | common/util/dates.py | jmcollis/GitSavvy | 153dca03bfd63db8248c1f9ee03bb6f2ebef545a | [
"MIT"
] | 1,057 | 2015-02-11T23:14:56.000Z | 2019-10-17T20:17:23.000Z | common/util/dates.py | divmain/GitGadget | 6452528d22a13c6f3169ad20619471d261e576bf | [
"MIT"
] | 180 | 2015-03-06T14:26:05.000Z | 2019-10-12T06:28:21.000Z | from datetime import datetime
TEN_MINS = 600
ONE_HOUR = 3600
TWO_HOURS = 7200
ONE_DAY = 86400
| 28.056604 | 76 | 0.586416 |
24c51f4ab48e95013feb31263b800f59b0194d64 | 4,028 | py | Python | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | 8 | 2021-06-17T08:13:51.000Z | 2022-02-21T13:31:18.000Z | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | mipkit/dl/metrics.py | congvmit/mipkit | d65a5083852dcfc5db766175aa402a5e3a506f21 | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2021 Cong Vo
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... | 41.958333 | 93 | 0.680238 |
24c65c0eb9aaf3a993aec3bfd947d95e8cf73d6f | 2,441 | py | Python | remora/common/utils.py | yuanying/remora | b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3 | [
"Apache-2.0"
] | 5 | 2017-11-24T11:14:39.000Z | 2022-02-07T19:41:16.000Z | remora/common/utils.py | yuanying/remora | b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3 | [
"Apache-2.0"
] | 17 | 2017-04-11T01:35:03.000Z | 2018-07-26T04:21:40.000Z | remora/common/utils.py | yuanying/remora | b61cfc7c5035d8dc9a887bbdd9da333b05c2f6d3 | [
"Apache-2.0"
] | 7 | 2017-03-08T04:44:09.000Z | 2022-02-07T19:41:16.000Z | # 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 applicable law or agreed to in... | 27.122222 | 78 | 0.612454 |
24c726853388f8f6e7dd2144139f62260b0a48c5 | 12,655 | py | Python | console.py | zmyme/NaivePortForward | f4faa4bd66d38e481802dc087f7167c58ab46d1f | [
"MIT"
] | null | null | null | console.py | zmyme/NaivePortForward | f4faa4bd66d38e481802dc087f7167c58ab46d1f | [
"MIT"
] | null | null | null | console.py | zmyme/NaivePortForward | f4faa4bd66d38e481802dc087f7167c58ab46d1f | [
"MIT"
] | null | null | null | import os
import traceback
from ToolBox import utils
if __name__ == '__main__':
# con = console()
# con_sub = console()
# con_sub_sub = console()
# con_sub.regist('test_subsubcommand', con_sub_sub, alias='tss', help_info='A sub command.')
# con.regist('test_subcommand', con_sub, alia... | 34.482289 | 158 | 0.510786 |
24cbcfe71b88b5edd44e5045ff3e5adb384f8f95 | 3,643 | py | Python | Multi-Armed-Bandits/softmax.py | joshikaustubh/Reinforcement-Learning-Exercises | 66d8ee7ef3ac74e96fb94d5110ca31cfa4255473 | [
"MIT"
] | 2 | 2020-02-01T10:12:59.000Z | 2020-02-01T10:24:06.000Z | Multi-Armed-Bandits/softmax.py | joshikaustubh/Reinforcement-Learning-Exercises | 66d8ee7ef3ac74e96fb94d5110ca31cfa4255473 | [
"MIT"
] | null | null | null | Multi-Armed-Bandits/softmax.py | joshikaustubh/Reinforcement-Learning-Exercises | 66d8ee7ef3ac74e96fb94d5110ca31cfa4255473 | [
"MIT"
] | null | null | null |
#################################################################################################
# #
# MULTI-ARMED BANDITS ---- 10-ARM TESTBED SOFTMAX METHOD #
# #
# Author: Kaustubh Joshi #
# #
# References: ... | 28.685039 | 97 | 0.589898 |
24cccb183a4ac3f9434412a945c1d0bccd279086 | 4,709 | py | Python | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 179 | 2020-02-27T01:09:32.000Z | 2022-03-28T21:56:20.000Z | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 94 | 2020-03-03T03:22:42.000Z | 2022-03-28T20:13:22.000Z | app/scripts/config_check.py | PromoFaux/plex-utills | 570e2e4525b992978780b6a195df94c674c94ac3 | [
"MIT"
] | 36 | 2020-02-28T13:58:54.000Z | 2022-03-26T10:04:25.000Z | #!/usr/local/bin/python3
import os
import subprocess
from subprocess import Popen, PIPE, STDOUT
from configparser import ConfigParser
import subprocess
import plexapi
import schedule
import time
from datetime import datetime
import re
from colorama import Fore, Back, Style
import socket
from urllib import... | 30.185897 | 151 | 0.674241 |
24cf41a00623d50e881d78fdc44ceca7f693a7f5 | 1,371 | py | Python | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | null | null | null | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | 8 | 2020-02-12T01:08:53.000Z | 2022-02-10T08:31:06.000Z | feed/models.py | mehDkhan/zngol | 3a6449cb1b83e4a9707d103e8b9c9748a8ba5810 | [
"MIT"
] | null | null | null | from django.db import models
from account.models import User
from django.utils import timezone
from django.utils.text import slugify
| 32.642857 | 85 | 0.635303 |
24d041644a0972c3d43a61ae3680b9999e219c63 | 898 | py | Python | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | setup.py | ebruagbay/dsmlbc6_ebruagbay | b58ade5c808ded057595b9c607b745971580b3dd | [
"MIT"
] | null | null | null | import setuptools
setuptools.setup(name="dsmlbc6_ebruagbay",
version="0.0.2",
license="MIT",
author="Ebru Topsakal Agbay",
author_mail="ebrugeo@gmail.com",
description="Data Science Tools",
url="https://github.com/ebr... | 44.9 | 74 | 0.481069 |
24d17cdc96014255022efc31f4e73c1c00af18cc | 996 | py | Python | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | outputs/admin.py | jayvdb/django-outputs | fcd1386b5dd95d71655e44fa49b766941bbcad43 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from outputs.models import Export, Scheduler
| 36.888889 | 97 | 0.699799 |
24d19ac974b3536f36cf25e1c8b1eefc826bb152 | 1,124 | py | Python | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | scrapeProject/spiders/pragativadi.py | OdiaNLP/DataScraper | a065d350602fc370cacde3f8ab62c3cc5b9e1ba9 | [
"MIT"
] | null | null | null | from scrapy.linkextractors import LinkExtractor
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, Join
from scrapy.spiders import CrawlSpider, Rule
from scrapeProject.items import ScrapeprojectItem
| 40.142857 | 120 | 0.682384 |
24d41ebe163f7fd9334bbc86f8d90c7387ddcfee | 447 | py | Python | setup.py | mathieumast/cellspatialite | f429e3958b5583b4a8c448fd07a61ab29aa7cb65 | [
"MIT"
] | null | null | null | setup.py | mathieumast/cellspatialite | f429e3958b5583b4a8c448fd07a61ab29aa7cb65 | [
"MIT"
] | null | null | null | setup.py | mathieumast/cellspatialite | f429e3958b5583b4a8c448fd07a61ab29aa7cb65 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='cellspatialite',
version='1.0.0',
packages=['cellspatialite', 'cellspatialite.test'],
author='Mathieu',
description='cellspatialite',
install_requires= ['pysqlite', 'pandas', 'docopt'],
license='MIT',
entry_... | 23.526316 | 66 | 0.63311 |
24d5aae950df14e81f4c5cc4fef62e9921b37b97 | 4,537 | py | Python | test.py | sheayun-kmu/CarND-Advanced-Lane-Lines | f8f38767acb9a65bc942f53706c6d223dfb666a2 | [
"MIT"
] | null | null | null | test.py | sheayun-kmu/CarND-Advanced-Lane-Lines | f8f38767acb9a65bc942f53706c6d223dfb666a2 | [
"MIT"
] | null | null | null | test.py | sheayun-kmu/CarND-Advanced-Lane-Lines | f8f38767acb9a65bc942f53706c6d223dfb666a2 | [
"MIT"
] | 1 | 2020-09-23T12:43:22.000Z | 2020-09-23T12:43:22.000Z | import logging
logging.basicConfig(
level=logging.ERROR,
format=u'%(asctime)-15s [%(name)s] %(levelname)s: %(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)
import os
import glob
import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from lanefinder.params import perspecti... | 36.007937 | 76 | 0.681287 |
24d5bcea9a04180a13a92b336d8cd4479ae05902 | 1,504 | py | Python | cloudtools/submit.py | rbonazzola/cloudtools | 75cb0d86423b814382591206af7a543df7ff55b7 | [
"MIT"
] | null | null | null | cloudtools/submit.py | rbonazzola/cloudtools | 75cb0d86423b814382591206af7a543df7ff55b7 | [
"MIT"
] | null | null | null | cloudtools/submit.py | rbonazzola/cloudtools | 75cb0d86423b814382591206af7a543df7ff55b7 | [
"MIT"
] | null | null | null | from subprocess import check_output, call
| 30.08 | 155 | 0.603059 |
24d7ac1e9217f3af7e0524faad7adc1d0fe3eb12 | 2,714 | py | Python | ImageSearchToy/temp/keras_train.py | hkoelewijn/TensorFlow | 7959d59842797f7e3e7884a594f7a87c37a24412 | [
"Apache-2.0"
] | null | null | null | ImageSearchToy/temp/keras_train.py | hkoelewijn/TensorFlow | 7959d59842797f7e3e7884a594f7a87c37a24412 | [
"Apache-2.0"
] | null | null | null | ImageSearchToy/temp/keras_train.py | hkoelewijn/TensorFlow | 7959d59842797f7e3e7884a594f7a87c37a24412 | [
"Apache-2.0"
] | null | null | null | import os
import sys
import glob
import tensorflow as tf
import keras
from keras.datasets import mnist
from keras.layers import Dense, Flatten, Dropout
from keras.layers import Conv2D, MaxPooling2D
from keras.models import Sequential
from keras.models import Model
from keras.layers import Dense, GlobalAveragePooling2D,... | 30.494382 | 74 | 0.661385 |
24d9627e8f1475e1774b6cd9df8420d77c279854 | 6,689 | py | Python | spcdist/utils.py | deep-spin/sparse_continuous_distributions | 7cc7bc7140738ebd4585d36e47bddd9be6ebed12 | [
"MIT"
] | 8 | 2021-08-06T18:28:15.000Z | 2021-08-24T07:16:02.000Z | spcdist/utils.py | deep-spin/sparse_continuous_distributions | 7cc7bc7140738ebd4585d36e47bddd9be6ebed12 | [
"MIT"
] | null | null | null | spcdist/utils.py | deep-spin/sparse_continuous_distributions | 7cc7bc7140738ebd4585d36e47bddd9be6ebed12 | [
"MIT"
] | null | null | null | import numpy as np
import scipy
def _eigvalsh_to_eps(spectrum, cond=None, rcond=None):
"""
Determine which eigenvalues are "small" given the spectrum.
This is for compatibility across various linear algebra functions
that should agree about whether or not a Hermitian matrix is numerically
singula... | 33.278607 | 80 | 0.607864 |
24da0999df55443bb1d82163487afe3007901943 | 485 | py | Python | Chapter23.ModuleCodingBasics/use_module2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | Chapter23.ModuleCodingBasics/use_module2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | Chapter23.ModuleCodingBasics/use_module2.py | mindnhand/Learning-Python-5th | 3dc1b28d6e048d512bf851de6c7f6445edfe7b84 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#encoding=utf-8
#------------------------------------------------------
# Usage: python3 use_module2.py
# Description: module basic
#------------------------------------------------------
import module2
print(module2.sys)
print(module2.name)
print(module2.klass)
print('The dict of module2 ... | 21.086957 | 69 | 0.562887 |
24dabf6363667bbec1198bce7820ecc101f9adb5 | 1,897 | py | Python | inside/cgi-bin/usercheck.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | null | null | null | inside/cgi-bin/usercheck.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | null | null | null | inside/cgi-bin/usercheck.py | osrf/cloudsim-legacy | 01ea7dd2708ed9797a860ac839028ec62fd96a23 | [
"Apache-2.0"
] | 1 | 2021-03-16T15:00:51.000Z | 2021-03-16T15:00:51.000Z | #!/usr/bin/env python
from __future__ import with_statement
from __future__ import print_function
import sys
import os
import Cookie
import cgi
import common
import cgitb
cgitb.enable()
EMAIL_VARNAME = 'openid.ext1.value.email'
# Are we using basic auth?
auth_type, email = common.web.get_auth_type()
if auth_type ==... | 27.492754 | 92 | 0.683711 |
24db0bb65821f2657ff2f44911782f9dde13a2fb | 5,898 | py | Python | Regression/RegressionAdaBoost.py | lujunzju/MachineLearningForAirTicketPredicting | e64b6c75a00a8b2a74d67d132f6e5b852db9c974 | [
"MIT"
] | 47 | 2017-06-28T07:45:04.000Z | 2022-01-31T09:15:13.000Z | Regression/RegressionAdaBoost.py | lujunzju/MachineLearningForAirTicketPredicting | e64b6c75a00a8b2a74d67d132f6e5b852db9c974 | [
"MIT"
] | 2 | 2017-08-28T07:59:17.000Z | 2018-03-02T06:37:08.000Z | Regression/RegressionAdaBoost.py | lujunzju/MachineLearningForAirTicketPredicting | e64b6c75a00a8b2a74d67d132f6e5b852db9c974 | [
"MIT"
] | 20 | 2017-09-01T13:46:25.000Z | 2021-05-05T12:47:16.000Z | # system library
import numpy as np
# user-library
import RegressionBase
# third-party library
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import AdaBoostRegressor
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import mean_squared_error
from sklearn.learning_curve import v... | 43.367647 | 147 | 0.659546 |
24dba7886b98a74cae8aad667f6a9c05f67ebc42 | 1,745 | py | Python | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | 1 | 2020-07-14T12:17:45.000Z | 2020-07-14T12:17:45.000Z | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | deeplearning/ml4pl/filesystem_paths.py | island255/ProGraML | 6c4ea50639773009e7c287feb62c6994fa4f3445 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019-2020 the ProGraML authors.
#
# Contact Chris Cummins <chrisc.101@gmail.com>.
#
# 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... | 32.924528 | 80 | 0.750143 |
24dba905c51f868772db510c9ad920091bab8d33 | 1,487 | py | Python | alipay/aop/api/response/AlipayMarketingDataDashboardBatchqueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayMarketingDataDashboardBatchqueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/response/AlipayMarketingDataDashboardBatchqueryResponse.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.DashBoardMeta import DashBoardMeta
| 34.581395 | 119 | 0.69536 |
24dd951d658d77c1301d2f5a5452d9fb1b87f67d | 2,697 | py | Python | boolmininfo/unused/boolean_minimization_stats.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | boolmininfo/unused/boolean_minimization_stats.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | boolmininfo/unused/boolean_minimization_stats.py | godzilla-but-nicer/boolmininfo | 50281b1a9d8a0718815910edf4123d67c532aa66 | [
"MIT"
] | null | null | null | import numpy as np
from itertools import chain, combinations
# this function definetely has bad normalization right now (maybe counting
# wrong in general)
# This function is a modified recipe from itertools docs. accessed from
# https://stackoverflow.com/questions/18035595/powersets-in-python-using-itertools
def p... | 34.576923 | 86 | 0.59696 |
24de2e032f9f989066cf34878e5abff500cebc0f | 2,331 | py | Python | marslab/imgops/poolutils.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | marslab/imgops/poolutils.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | marslab/imgops/poolutils.py | AndrewAnnex/marslab | dde6bcd627ff85d9125d4abfe06432fe241f4ca1 | [
"BSD-3-Clause"
] | null | null | null | """utilities for watching worker pools"""
from collections.abc import Callable, Mapping
import logging
import time
from types import MappingProxyType
from typing import Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from multiprocessing import Pool
from pathos.multiprocessing import ProcessPool
| 28.084337 | 77 | 0.653368 |
24e07a1ee01704fa0c1b08ae95e59c0efba4eeae | 1,602 | py | Python | schedsi/cpu/request.py | z33ky/schedsi | 3affe28a3e1d2001c639d7c0423cb105d1991590 | [
"CC0-1.0"
] | 1 | 2017-08-03T12:58:53.000Z | 2017-08-03T12:58:53.000Z | schedsi/cpu/request.py | z33ky/schedsi | 3affe28a3e1d2001c639d7c0423cb105d1991590 | [
"CC0-1.0"
] | null | null | null | schedsi/cpu/request.py | z33ky/schedsi | 3affe28a3e1d2001c639d7c0423cb105d1991590 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
"""Defines a :class:`Request`."""
import enum
import numbers
from schedsi.cpu import context
Type = enum.Enum('Type', ['current_time', 'resume_chain', 'idle', 'execute', 'timer'])
| 29.666667 | 99 | 0.609238 |
24e20217d793c96b06ef2e09e523e4525409a89a | 4,565 | py | Python | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | 1 | 2017-01-24T14:15:22.000Z | 2017-01-24T14:15:22.000Z | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | 2 | 2016-11-02T15:07:13.000Z | 2018-03-10T12:20:09.000Z | var/www/cgi-bin/ewmethodConf.py | DanielAndreasen/FASMA-web | 4b87b2ac0be98817825fc94e5f287e5eb968d392 | [
"MIT"
] | null | null | null | #!/home/daniel/Software/anaconda3/bin/python
# Import modules for CGI handling
import os
import cgi, cgitb
from ewDriver import ewdriver
from emailSender import sendEmail
def cgi2dict(form):
"""Convert the form from cgi.FieldStorage to a python dictionary"""
params = {'initial': False,
'fixtef... | 31.923077 | 124 | 0.50471 |
24e30f0e72c5758202069450d33b77fffecaba08 | 5,964 | py | Python | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | common/utils.py | quentin-xia/Maticv | 76d599b68ef5bdab10e8dbc0c120657610933ad8 | [
"MIT"
] | null | null | null | #/usr/bin/env python
#-*- coding:utf-8 -*-
import math,os
import numpy as np
from adb import Adb
from screencap import MinicapStream
import tempfile
import hashlib
import gl
import platform
if platform.system() is "Windows":
try:
import maticv.common.opencv.x32.cv2 as cv2
except:
import maticv.c... | 29.092683 | 111 | 0.557176 |
24e402299b9f6f621706cdbd330f1ca54378a165 | 196 | py | Python | src/directory_model.py | cmtools/fastapi-cli | d926317d5032b970187f77ff76bdc4ba4780a4d7 | [
"MIT"
] | null | null | null | src/directory_model.py | cmtools/fastapi-cli | d926317d5032b970187f77ff76bdc4ba4780a4d7 | [
"MIT"
] | null | null | null | src/directory_model.py | cmtools/fastapi-cli | d926317d5032b970187f77ff76bdc4ba4780a4d7 | [
"MIT"
] | null | null | null | import typing as t
from file_model import File
| 16.333333 | 39 | 0.602041 |
24e53a72f4a61498c357ef6fd39fc8c043a4bca4 | 10,187 | py | Python | attention_cnn_lstm_classifer.py | junyongyou/Attention-boosted-deep-networks-for-video-classification | 27eb013630dc243a4eebb9612cb5235ee620c6b0 | [
"MIT"
] | 11 | 2020-10-12T10:49:52.000Z | 2022-03-11T20:42:38.000Z | attention_cnn_lstm_classifer.py | ashleyredy/Attention-boosted-deep-networks-for-video-classification | 27eb013630dc243a4eebb9612cb5235ee620c6b0 | [
"MIT"
] | 3 | 2020-09-15T17:35:21.000Z | 2022-01-22T08:28:36.000Z | attention_cnn_lstm_classifer.py | junyongyou/Attention-boosted-deep-networks-for-video-classificaton | 27eb013630dc243a4eebb9612cb5235ee620c6b0 | [
"MIT"
] | 8 | 2021-01-10T11:40:00.000Z | 2022-02-28T12:10:52.000Z | from keras import backend as K
from keras.layers import Input, Dense, Flatten, Activation, Dropout, Bidirectional, Permute, multiply
from keras.layers.recurrent import LSTM
from keras.callbacks import CSVLogger
from keras.models import Sequential, Model, load_model
from keras.applications.vgg19 import VGG19
from ... | 44.876652 | 147 | 0.616865 |
24e53b906edd9ad7cf927db361b15bb6df80651f | 2,311 | py | Python | python/version-1.0/draw.py | calledtoconstruct/game-of-life | ed04786dcb20d83cfcd5e3b36e2bd6c759f2a175 | [
"MIT"
] | 1 | 2021-01-08T16:11:53.000Z | 2021-01-08T16:11:53.000Z | python/version-1.0/draw.py | calledtoconstruct/game-of-life | ed04786dcb20d83cfcd5e3b36e2bd6c759f2a175 | [
"MIT"
] | null | null | null | python/version-1.0/draw.py | calledtoconstruct/game-of-life | ed04786dcb20d83cfcd5e3b36e2bd6c759f2a175 | [
"MIT"
] | null | null | null |
import time
from life import evolve
from life import is_alive
width = 42
height = 40
total = width * height
universe = [False] * total
#add_blinker(universe, 4, 5, '|')
#add_blinker(universe, 5, 5, '-')
#----
add_blinker(universe, 3, 5, '|')
add_block(universe, 9, 9)
add_block(universe, 8, 5)
add_ship(universe, 32,... | 29.253165 | 60 | 0.51839 |
24e5758008f608aff796ffcbe193129bea1fb776 | 373 | py | Python | common/models.py | AsfanUlla/pi-backend | ee1fed18bff9881e341c1022584f9323d2a7561d | [
"Apache-2.0"
] | null | null | null | common/models.py | AsfanUlla/pi-backend | ee1fed18bff9881e341c1022584f9323d2a7561d | [
"Apache-2.0"
] | null | null | null | common/models.py | AsfanUlla/pi-backend | ee1fed18bff9881e341c1022584f9323d2a7561d | [
"Apache-2.0"
] | null | null | null | from pydantic import BaseModel, Field, EmailStr
from typing import Optional, List, Dict, Any
| 23.3125 | 48 | 0.707775 |
24e5c4d40a396701b5f44a50f054aa1d31eac384 | 5,704 | py | Python | tridepth/extractor/extract_2d_mesh.py | syinari0123/tridepth | 5e7e90b537b82e731bb6beac1c8c93fc9187fee0 | [
"MIT"
] | 81 | 2019-10-27T13:50:52.000Z | 2022-02-22T18:15:45.000Z | tridepth/extractor/extract_2d_mesh.py | syinari0123/tridepth | 5e7e90b537b82e731bb6beac1c8c93fc9187fee0 | [
"MIT"
] | 10 | 2019-11-21T09:56:59.000Z | 2022-03-12T00:03:55.000Z | tridepth/extractor/extract_2d_mesh.py | syinari0123/tridepth | 5e7e90b537b82e731bb6beac1c8c93fc9187fee0 | [
"MIT"
] | 9 | 2019-11-16T04:02:47.000Z | 2021-05-27T06:40:44.000Z | import os
import sys
import tempfile
import subprocess
import cv2
import pymesh
import numpy as np
import torch
import triangle as tr
from tridepth import BaseMesh
from tridepth.extractor import calculate_canny_edges
from tridepth.extractor import SVGReader
from tridepth.extractor import resolve_self_intersection, cle... | 37.038961 | 107 | 0.568724 |
24e5f7f733d378b2b255e815a027e33adcfcd511 | 1,190 | py | Python | migrations/versions/476b167aef80_initial_migration.py | joostsijm/ssg | c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1 | [
"Apache-2.0"
] | null | null | null | migrations/versions/476b167aef80_initial_migration.py | joostsijm/ssg | c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1 | [
"Apache-2.0"
] | null | null | null | migrations/versions/476b167aef80_initial_migration.py | joostsijm/ssg | c2da0d7274aa76dc2d565e20d1b4c3f0ef5241a1 | [
"Apache-2.0"
] | null | null | null | """initial_migration
Revision ID: 476b167aef80
Revises:
Create Date: 2019-01-03 17:03:37.684091
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '476b167aef80'
down_revision = None
branch_labels = None
depends_on = None
| 27.045455 | 64 | 0.67563 |
24eb5fda3d5735fc851c2a3a42ad3aebef8c298d | 888 | py | Python | scripts/eval.py | zehsilva/poissonmf_cs | 5e870a6616ce8940d7de6aa108e005893edf184c | [
"MIT"
] | 9 | 2017-09-05T12:29:12.000Z | 2019-11-15T12:44:55.000Z | scripts/eval.py | zehsilva/poissonmf_cs | 5e870a6616ce8940d7de6aa108e005893edf184c | [
"MIT"
] | null | null | null | scripts/eval.py | zehsilva/poissonmf_cs | 5e870a6616ce8940d7de6aa108e005893edf184c | [
"MIT"
] | 6 | 2017-11-30T02:19:25.000Z | 2021-10-11T05:58:39.000Z | import matplotlib
#matplotlib.use('Agg')
import numpy as np
import matplotlib.pylab as plt
import pandas as pd
folder='/home/eliezer/datasets/hetrec2011/lastfm/p85_train_test_9208/'
res=np.loadtxt(folder+'experiment_k20_it20_tol5.res')
test=np.loadtxt(folder+'user_artist_rating.test')
exps=np.vstack((np.vstack((re... | 34.153846 | 99 | 0.751126 |
24ec008ad7122dcbfc3474638a46e224c4363e9f | 2,379 | py | Python | webserver/app/routes.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | 17 | 2020-11-14T07:03:06.000Z | 2022-02-21T00:56:49.000Z | webserver/app/routes.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | null | null | null | webserver/app/routes.py | hojinYang/tfrs-movierec-serving | bef4f19a8be99cde510d761082de7602151a7d99 | [
"Apache-2.0"
] | 1 | 2021-05-20T06:00:51.000Z | 2021-05-20T06:00:51.000Z | from flask import render_template, redirect, url_for
import requests
import json
from app import app, db
from app.forms import LoginForm, RatingForm
from app.models import User, Movie, UserMovieRating
RECOMMENDER_API_URL = 'http://0.0.0.0:8000/v1/predict' | 39 | 103 | 0.665406 |
24ec8172b6e1c2fe9947b2843a4b87484a6b677e | 6,510 | py | Python | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | 2 | 2022-03-07T13:47:36.000Z | 2022-03-07T16:10:34.000Z | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | null | null | null | code/ner/model/net.py | gilbert98xD/mtextos2122 | 4811575134344c0bf255fa592c3b82efdb59d867 | [
"CC-BY-4.0"
] | null | null | null | """
## Minera de textos
Universidad de Alicante, curso 2021-2022
Esta documentacin forma parte de la prctica "[Lectura y documentacin de un sistema de
extraccin de entidades](https://jaspock.github.io/mtextos2122/bloque2_practica.html)" y se
basa en el cdigo del curso [CS230](https://github.com/cs230-stanford/cs230-c... | 29.726027 | 119 | 0.618126 |
24ef873840e52d9cadcd08cb9da9ad36a39ad5c0 | 2,979 | py | Python | packages/conan/recipes/imath/conanfile.py | boberfly/aswf-docker | 96fa383baa4584b0d389df4759b7cdb832a57873 | [
"Apache-2.0"
] | 3 | 2019-07-02T20:05:35.000Z | 2021-09-14T17:35:25.000Z | packages/conan/recipes/imath/conanfile.py | boberfly/aswf-docker | 96fa383baa4584b0d389df4759b7cdb832a57873 | [
"Apache-2.0"
] | null | null | null | packages/conan/recipes/imath/conanfile.py | boberfly/aswf-docker | 96fa383baa4584b0d389df4759b7cdb832a57873 | [
"Apache-2.0"
] | null | null | null | from conans import ConanFile, tools, CMake
import os
required_conan_version = ">=1.38.0"
| 33.47191 | 125 | 0.602887 |
24f1edf0ec9121c2d03cabbfd74d62160c531f5e | 3,013 | py | Python | chatbot_tutorial/views.py | BluRanger/django-chatbot-example | 5eec508f1f76bb3b6cf23bbc6fae75a1b3aefb1f | [
"MIT"
] | 7 | 2018-12-03T13:47:11.000Z | 2020-12-23T17:06:41.000Z | chatbot_tutorial/views.py | BluRanger/django-chatbot-example | 5eec508f1f76bb3b6cf23bbc6fae75a1b3aefb1f | [
"MIT"
] | null | null | null | chatbot_tutorial/views.py | BluRanger/django-chatbot-example | 5eec508f1f76bb3b6cf23bbc6fae75a1b3aefb1f | [
"MIT"
] | 4 | 2019-04-25T02:16:37.000Z | 2020-03-01T05:33:51.000Z | from django.views import generic
from django.views.decorators.csrf import csrf_exempt
import json
import requests
import random
from django.utils.decorators import method_decorator
from django.http.response import HttpResponse
from django.shortcuts import render
from chatbot_tutorial.models import RequestCounts
from dj... | 44.308824 | 163 | 0.655161 |
24f1f9d1b64f0b626d3166a0d148c7ca057a8ead | 135 | py | Python | face_detection/__init__.py | Lanzarko/Real-Time-Face-Anonymizer | 50f5c793e830b1e258eaa2284073630cd1d0aabe | [
"MIT"
] | 2 | 2020-09-26T22:50:45.000Z | 2020-09-27T10:39:37.000Z | face_detection/__init__.py | Lanzarko/Real-Time-Face-Anonymizer | 50f5c793e830b1e258eaa2284073630cd1d0aabe | [
"MIT"
] | null | null | null | face_detection/__init__.py | Lanzarko/Real-Time-Face-Anonymizer | 50f5c793e830b1e258eaa2284073630cd1d0aabe | [
"MIT"
] | 3 | 2020-10-17T19:36:27.000Z | 2021-04-02T08:18:41.000Z | import warnings
from .detector import *
from .intel_inference import *
warnings.filterwarnings("ignore", category=DeprecationWarning)
| 22.5 | 62 | 0.822222 |
24f2079a7bf96988fef792b0a0549c2fa31cab51 | 15,692 | py | Python | risk_normalization.py | howardbandy/risk_normalization | d455bfa4c975fdd245248b9c900877979b636d35 | [
"MIT"
] | 1 | 2019-08-06T02:14:02.000Z | 2019-08-06T02:14:02.000Z | risk_normalization.py | howardbandy/risk_normalization | d455bfa4c975fdd245248b9c900877979b636d35 | [
"MIT"
] | null | null | null | risk_normalization.py | howardbandy/risk_normalization | d455bfa4c975fdd245248b9c900877979b636d35 | [
"MIT"
] | null | null | null | # CAR25onCSV.py
#
# A program to read a .CSV file that contains a list of trades
# and computes the safe-f and CAR25 metrics that best
# estimate the future performance of the system that produced
# these gains and losses.
# The risk_normalization library is managed by PyPi.
# Before running this program,... | 32.691667 | 77 | 0.638606 |
24f3182bc9dd2ed553e4ef37f7d8f5aba7469714 | 1,270 | py | Python | project/data/convertCSV2JSON-sector.py | 11096187/programmeerproject | c9e8cd3edfcbaf1ea9d0376c5b2d2e62d399c17c | [
"MIT"
] | null | null | null | project/data/convertCSV2JSON-sector.py | 11096187/programmeerproject | c9e8cd3edfcbaf1ea9d0376c5b2d2e62d399c17c | [
"MIT"
] | 1 | 2022-02-12T02:40:31.000Z | 2022-02-12T02:40:31.000Z | project/data/convertCSV2JSON-sector.py | fvangastel/programmeerproject | c9e8cd3edfcbaf1ea9d0376c5b2d2e62d399c17c | [
"MIT"
] | null | null | null | # ConvertCSV2JSON
# Converts data in csv to json.
#
# Name: Felicia van Gastel
# Student nr: 11096187
# Date: 27-04-2018
#
# Data Processing
# Week 3
import csv
import json
from collections import OrderedDict
with open("newData/emissions-by-sector-percentages.csv", "r", encoding='utf-8-sig') as csvfile:
jsonfile... | 24.423077 | 104 | 0.592913 |
24f32c3e4804b55b0813b6d6087681045c4dcb84 | 8,104 | py | Python | project_3/resources/ptorch.py | kingspp/DS595-ReinforcementLearning | c2f0cecf261ccceccddaaaef4df1da471bd15ab6 | [
"MIT"
] | null | null | null | project_3/resources/ptorch.py | kingspp/DS595-ReinforcementLearning | c2f0cecf261ccceccddaaaef4df1da471bd15ab6 | [
"MIT"
] | null | null | null | project_3/resources/ptorch.py | kingspp/DS595-ReinforcementLearning | c2f0cecf261ccceccddaaaef4df1da471bd15ab6 | [
"MIT"
] | 1 | 2022-02-23T09:08:18.000Z | 2022-02-23T09:08:18.000Z | #!/usr/bin/env python
"""
PyTorch implementation of DQN
Paper: https://www.cs.toronto.edu/~vmnih/docs/dqn.pdf
"""
import argparse
import gym
from gym import wrappers
import numpy as np
import pdb
import os
import random
import time
import gc
import pickle
import torch
import torch.nn as nn
from torch import optim
imp... | 30.35206 | 139 | 0.575395 |
24f33f6e07492cece88d076c9e6c41ad4a994dd3 | 766 | py | Python | tests/conftest.py | zebbarry/todo | aab8ad8f6fd05178fe3dde5968cd0ba5d3d35be6 | [
"MIT"
] | 1 | 2020-07-01T03:14:14.000Z | 2020-07-01T03:14:14.000Z | tests/conftest.py | zebbarry/todo | aab8ad8f6fd05178fe3dde5968cd0ba5d3d35be6 | [
"MIT"
] | null | null | null | tests/conftest.py | zebbarry/todo | aab8ad8f6fd05178fe3dde5968cd0ba5d3d35be6 | [
"MIT"
] | null | null | null | import pytest
from flask import Flask
from todo import db as _db
| 28.37037 | 83 | 0.669713 |
24f3a7e217630bf614ea0fc55a0bc9c373781071 | 5,863 | py | Python | cli/roger_init.py | seomoz/roger-mesos-tools | 88b4cb3550a4b49d0187cfb5e6a22246ff6b9765 | [
"Apache-2.0"
] | null | null | null | cli/roger_init.py | seomoz/roger-mesos-tools | 88b4cb3550a4b49d0187cfb5e6a22246ff6b9765 | [
"Apache-2.0"
] | 47 | 2016-05-26T22:09:56.000Z | 2018-08-08T20:33:39.000Z | cli/roger_init.py | seomoz/roger-mesos-tools | 88b4cb3550a4b49d0187cfb5e6a22246ff6b9765 | [
"Apache-2.0"
] | 3 | 2017-09-20T22:39:03.000Z | 2017-11-07T22:29:29.000Z | #!/usr/bin/python
from __future__ import print_function
import argparse
import json
import os
import sys
from cli.settings import Settings
import contextlib
if __name__ == "__main__":
settingObj = Settings()
roger_init = RogerInit()
roger_init.main()
| 36.874214 | 133 | 0.611803 |
24f3fad2f09ca34d39940832b759ac264114b879 | 5,238 | py | Python | tests/unit/records/targets/test_spectrum.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 36 | 2020-03-17T11:56:51.000Z | 2022-01-19T16:03:32.000Z | tests/unit/records/targets/test_spectrum.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 60 | 2020-03-02T23:13:29.000Z | 2021-05-19T15:05:42.000Z | tests/unit/records/targets/test_spectrum.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 4 | 2020-08-11T13:17:37.000Z | 2021-11-05T21:11:52.000Z | import unittest
from records_mover.records.targets.spectrum import SpectrumRecordsTarget
from records_mover.records.existing_table_handling import ExistingTableHandling
from mock import Mock, patch, MagicMock
| 56.934783 | 98 | 0.670676 |
24f4d7e1005a990eff108660ee3c6c03d85c23a0 | 439 | py | Python | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | neosis_telephone_directory/telephone_directory/migrations/0003_contacts_profile_pic.py | borkarfaiz/neosis_telephone_directory | d4a0f7197ac15f4993488e21459a744c370fde0f | [
"MIT"
] | null | null | null | # Generated by Django 3.0.11 on 2020-12-09 06:05
from django.db import migrations, models
| 23.105263 | 85 | 0.626424 |
24f59e676c20b4a67c553b4af2059fda98c67e10 | 4,435 | py | Python | standalone/Mileage By Functional Class.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 3 | 2016-08-19T17:45:34.000Z | 2021-08-15T03:42:16.000Z | standalone/Mileage By Functional Class.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 2 | 2018-08-03T20:48:07.000Z | 2019-01-09T19:31:29.000Z | standalone/Mileage By Functional Class.py | RephenSoss/python | 2a3f71caab958ae4c53a6e2242d2b9283986148b | [
"MIT"
] | 2 | 2018-08-03T17:55:32.000Z | 2022-03-31T14:20:57.000Z | import arcpy, os
FC_Frontage_Roads = arcpy.GetParameterAsText(0)
FC_Centerlines = arcpy.GetParameterAsText(1)
Routed_SubFiles = arcpy.GetParameterAsText(2)
District_Boundaries = arcpy.GetParameterAsText(3)
MPO_Boundaries = arcpy.GetParameterAsText(4)
outputFolder = arcpy.GetParameterAsText(5)
scracthSpace = outputFolde... | 52.176471 | 134 | 0.797294 |
24f79fbbf13f5128ab64a47960256c2400746ede | 1,662 | py | Python | test/test_mod_import.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | null | null | null | test/test_mod_import.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | 20 | 2019-03-16T14:42:54.000Z | 2019-04-10T19:40:41.000Z | test/test_mod_import.py | kpagacz/NMDownloader | 670652949b538319ee945071e030119e630ec6a1 | [
"MIT"
] | null | null | null | import unittest
import utils.mod_import as mod_import
import codecov
| 36.933333 | 91 | 0.587244 |
24f81d9a8e37b098ba33d079b4a743c45e5800a6 | 1,253 | py | Python | limiar_matriz_quadrada.py | sliatecinos/saladeaula | 35ee1a47f3a62c6e17d831b8b08bf209eab3305d | [
"Unlicense"
] | 1 | 2022-01-11T21:05:33.000Z | 2022-01-11T21:05:33.000Z | limiar_matriz_quadrada.py | sliatecinos/saladeaula | 35ee1a47f3a62c6e17d831b8b08bf209eab3305d | [
"Unlicense"
] | null | null | null | limiar_matriz_quadrada.py | sliatecinos/saladeaula | 35ee1a47f3a62c6e17d831b8b08bf209eab3305d | [
"Unlicense"
] | null | null | null | # Limiar da Matriz Quadrada :: github.com/sliatecinos
# ================================================================================
# Ref.externa: https://www.facebook.com/groups/608492105999336/permalink/2061101090738423/
# Entradas do usuario (lado, limiar, ordem da matriz)
lado_diagonal = input('Estarao "... | 29.139535 | 91 | 0.557861 |
24fce3d07a8f2fe74c6a87ee177cf440ad8e2e09 | 1,704 | py | Python | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 8 | 2019-08-09T11:06:16.000Z | 2021-10-05T14:56:31.000Z | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 382 | 2018-10-17T19:05:30.000Z | 2022-02-10T07:09:45.000Z | backend/pah_fm/urls.py | w1stler/pah-fm | e69600ba602715ae0b61dfa0bead934a0ed7f36f | [
"MIT"
] | 45 | 2018-10-17T17:04:04.000Z | 2021-10-05T14:30:35.000Z | """pah_fm URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | 37.866667 | 80 | 0.723592 |
24fd1f05e1ce552de13339e2d4ba380d9739f219 | 58 | py | Python | src/msanalyzer/__init__.py | marcusbfs/msanalyzer | 5a633716807a8ffe44c7651cf70de8fea10a1532 | [
"MIT"
] | null | null | null | src/msanalyzer/__init__.py | marcusbfs/msanalyzer | 5a633716807a8ffe44c7651cf70de8fea10a1532 | [
"MIT"
] | 1 | 2020-06-29T19:43:58.000Z | 2020-06-29T19:43:58.000Z | src/msanalyzer/__init__.py | marcusbfs/msanalyzer | 5a633716807a8ffe44c7651cf70de8fea10a1532 | [
"MIT"
] | null | null | null | from __future__ import annotations
__version__ = "3.8.0"
| 14.5 | 34 | 0.775862 |
24fd6c41fe4fbfb1df5a007cfef9baca40a53801 | 172 | py | Python | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | deciphon_cli/console/env.py | EBI-Metagenomics/deciphon-cli | aa090c886db1f4dacc6bc88b46b6ebcecb79eaab | [
"MIT"
] | null | null | null | import typer
import deciphon_cli.data as data
__all__ = ["app"]
app = typer.Typer()
| 13.230769 | 52 | 0.703488 |
24fd822b165bd2a82075658d81849e6e2daa014f | 4,158 | py | Python | wftests/ci/pylint_checker.py | YutakaMizugaki/warriorframework | 685761cf044182ec88ce86a942d4be1e150a1256 | [
"Apache-2.0"
] | 24 | 2017-06-06T15:48:08.000Z | 2021-03-17T07:52:52.000Z | wftests/ci/pylint_checker.py | YutakaMizugaki/warriorframework | 685761cf044182ec88ce86a942d4be1e150a1256 | [
"Apache-2.0"
] | 272 | 2017-05-19T20:39:12.000Z | 2021-12-13T19:34:51.000Z | wftests/ci/pylint_checker.py | pavithra-gowda/warrior | 19b153310552b986b86b5470fcfea9547a74c3a9 | [
"Apache-2.0"
] | 37 | 2017-05-17T21:24:37.000Z | 2021-07-24T18:09:22.000Z | """
Get a list of file and run pylint on each of the files
on pull request source branch and target branch
"""
import sys
import subprocess
# from pylint import epylint as lint
def process_file_list(input_file, rc_file):
"""
Generate a list of files that need to be pylint
"""
filelist = open(input_... | 31.5 | 116 | 0.575998 |
24ff72339ada2faf39d38cc9fe1209fcafd6136d | 3,269 | py | Python | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | draw_macros/drawEnvelope.py | nkarast/WWTheoryUncertainties | d2d3e5cab4cd72256cdc572fee05acfbe3372f5a | [
"MIT"
] | null | null | null | import ROOT as rt
import glob
debug = 1
for filename in glob.glob("/Users/nkarast/Documents/Higgs/Work/CPMixing/TheoryNtuples/finalVersionOfCode/UEPS/*.dat"):
setstyle()
file = open(filename, 'read')
print 'Working with ', filename
# bin_contents = bincontents[]
# nbins = len(bincontents)
bi... | 28.181034 | 118 | 0.653105 |
70019ac63a1505d65bbec211b82b3b5df817ad89 | 1,217 | py | Python | test.py | luch61008/olll | b09e7754034dbd94a61d35454190ba6d6bbcd190 | [
"MIT"
] | null | null | null | test.py | luch61008/olll | b09e7754034dbd94a61d35454190ba6d6bbcd190 | [
"MIT"
] | null | null | null | test.py | luch61008/olll | b09e7754034dbd94a61d35454190ba6d6bbcd190 | [
"MIT"
] | null | null | null | import olll
import numpy as np
test1 = [[1,0,0,1,1,0,1],[0,1,0,5,0,0,0],[0,0,1,0,5,0,5]]
test2 = [[1,0,0,2,-1,1],[0,1,0,3,-4,-2],[0,0,1,5,-10,-8]]
test3 = [[1,0,0,1,1,0,1], [0,1,0,4,-1,0,-1], [0,0,1,1,1,0,1]]
test4 = [[1,0,0,2,5,3],[0,1,0,1,1,1,],[0,0,1,4,-2,0]]
test5 = [[1,0,0,0,0,0,2,1,1,2],[0,1,0,0,0,0,1,1,-1,-1],[... | 31.205128 | 151 | 0.474938 |
700244383db16e8a467ffe9c7d86b3037ebd0bd1 | 3,369 | py | Python | custom_components/powercalc/sensors/energy.py | piio/homeassistant-powercalc | 2209bbc8ea19523cc10a5444431a50cd40c2b3e0 | [
"MIT"
] | null | null | null | custom_components/powercalc/sensors/energy.py | piio/homeassistant-powercalc | 2209bbc8ea19523cc10a5444431a50cd40c2b3e0 | [
"MIT"
] | 5 | 2020-08-14T17:43:48.000Z | 2021-01-08T21:12:45.000Z | custom_components/powercalc/sensors/energy.py | PysX/home-assistant-config | 614c5a67314b6c7b8af4237a918a437b79ab460d | [
"MIT"
] | null | null | null | from __future__ import annotations
import logging
from typing import Any
from homeassistant.components.integration.sensor import (
TRAPEZOIDAL_METHOD,
IntegrationSensor,
)
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
from homeassistant.const import CONF_NAME, TIME_HOURS
from homeassista... | 30.627273 | 71 | 0.713268 |
7002ef7c1c1b47d0e90a43b630eeacf894b6e9ba | 3,071 | py | Python | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | 22 | 2019-11-27T04:14:07.000Z | 2022-01-10T08:16:58.000Z | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | null | null | null | code/nearest_neighbor_classify.py | lionelmessi6410/Scene-recognition-with-bag-of-words | 1bbc11cd060f792b54b86baa8a5f7483133b9f2c | [
"MIT"
] | 10 | 2019-12-13T07:31:09.000Z | 2021-12-18T18:21:20.000Z | from __future__ import print_function
import numpy as np
import scipy.spatial.distance as distance
def nearest_neighbor_classify(train_image_feats, train_labels, test_image_feats):
###########################################################################
# TODO: ... | 43.871429 | 83 | 0.471508 |
700a0dde353b47f686738c99a39f0cf3cd91f5a4 | 4,737 | py | Python | zd2.py | Valentina1502/OOP_1 | 968cd71d377bf3a48fd36456482eb2486eb2f8af | [
"MIT"
] | null | null | null | zd2.py | Valentina1502/OOP_1 | 968cd71d377bf3a48fd36456482eb2486eb2f8af | [
"MIT"
] | null | null | null | zd2.py | Valentina1502/OOP_1 | 968cd71d377bf3a48fd36456482eb2486eb2f8af | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Bankomat, .
,
, , ,
.
,
.
:
'''
if __name__ == '__main__':
y = Bankomat()
choice()
| 37.595238 | 85 | 0.554782 |
700b475a8cbd9a005cd333cc69cf110b905e1c24 | 3,061 | py | Python | mesostat/visualization/recurrence.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | mesostat/visualization/recurrence.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | mesostat/visualization/recurrence.py | HelmchenLabSoftware/mesostat-dev | 8baa7120b892fe0df893cdcf0f20f49876643d75 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import ipywidgets
from mesostat.utils.opencv_helper import cvWriter
from mesostat.utils.arrays import numpy_merge_dimensions
from sklearn.decomposition import PCA
| 30.919192 | 98 | 0.63084 |
700b79c99c5a7d6039181ad3627f0fe4a5023d42 | 79 | py | Python | src/nti/mailer/tests/templates/__init__.py | NextThought/nti.mailer | 9a696dcd150a9370c5d5afd7cf0b1e8ec772a621 | [
"Apache-2.0"
] | null | null | null | src/nti/mailer/tests/templates/__init__.py | NextThought/nti.mailer | 9a696dcd150a9370c5d5afd7cf0b1e8ec772a621 | [
"Apache-2.0"
] | 4 | 2021-08-11T12:24:05.000Z | 2021-09-07T16:02:58.000Z | src/nti/mailer/tests/templates/__init__.py | NextThought/nti.mailer | 9a696dcd150a9370c5d5afd7cf0b1e8ec772a621 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Make this directory a package.
| 19.75 | 32 | 0.632911 |
700c6cdfe68f95f372cd08af355a9299cb14efc0 | 1,927 | py | Python | ggutilities.py | giannipele/geneticgame | e9931c13e29d4f5227cab6961f22f7d681dbcdd9 | [
"MIT"
] | null | null | null | ggutilities.py | giannipele/geneticgame | e9931c13e29d4f5227cab6961f22f7d681dbcdd9 | [
"MIT"
] | null | null | null | ggutilities.py | giannipele/geneticgame | e9931c13e29d4f5227cab6961f22f7d681dbcdd9 | [
"MIT"
] | null | null | null | import math
from vec2d import vec2d
def angle_to_direction(angle):
"""
Convert the angle to the normalized x,y direction,
:param angle:
:return:
"""
radians = angle * math.pi / 180
vx = math.cos(radians)
vy = math.sin(radians)
return vec2d((vx, vy)).normalized()
def angle_to_radi... | 21.411111 | 77 | 0.552154 |
700d0be53b619efdad4a8ec1aeb9815fae8956d5 | 2,010 | py | Python | models/VGG_models.py | Gus-Lab/temporal_efficient_training | f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba | [
"MIT"
] | 5 | 2022-02-23T08:21:32.000Z | 2022-03-22T05:29:13.000Z | models/VGG_models.py | Gus-Lab/temporal_efficient_training | f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba | [
"MIT"
] | 1 | 2022-03-20T13:49:01.000Z | 2022-03-23T06:07:55.000Z | models/VGG_models.py | Gus-Lab/temporal_efficient_training | f9bde4107ed653cc8dd3ee58689bf3b55f6b89ba | [
"MIT"
] | 2 | 2022-03-28T07:25:14.000Z | 2022-03-30T08:50:47.000Z | import random
from models.layers import *
if __name__ == '__main__':
model = VGGSNNwoAP()
| 27.916667 | 86 | 0.512438 |
700d715f42f1fc60d05299634ce5489d3b1d246c | 1,178 | py | Python | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | programs/pygame/dwarf_fight/utils.py | xzpeter/pylibs | d4aa451e5ecb1cfb160a7e39846f9ae148e5c3d6 | [
"BSD-3-Clause"
] | null | null | null | import time
import math
import random
# Define some colors
black = ( 0, 0, 0)
white = ( 255, 255, 255)
green = ( 0, 255, 0)
blue = ( 0, 0, 255)
red = ( 255, 0, 0)
yellow = ( 255, 255, 0)
| 22.653846 | 56 | 0.556876 |
700e4190f769299af6010bb9d72105d44451af48 | 5,373 | py | Python | src/check_jsonschema/parse_cli.py | dsch/check-jsonschema | 5fef4772955061c598338feaf40ef676a4dd180b | [
"Apache-2.0"
] | null | null | null | src/check_jsonschema/parse_cli.py | dsch/check-jsonschema | 5fef4772955061c598338feaf40ef676a4dd180b | [
"Apache-2.0"
] | null | null | null | src/check_jsonschema/parse_cli.py | dsch/check-jsonschema | 5fef4772955061c598338feaf40ef676a4dd180b | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import argparse
import textwrap
from .catalog import CUSTOM_SCHEMA_NAMES, SCHEMA_CATALOG
from .formats import RegexFormatBehavior
from .transforms import TRANFORM_LIBRARY
BUILTIN_SCHEMA_NAMES = [f"vendor.{k}" for k in SCHEMA_CATALOG.keys()] + [
f"custom.{k}" for k in CUSTOM_SCH... | 32.173653 | 89 | 0.615299 |
700e68bc65590b0f1c195f5889bb9d4d901fa8c3 | 16,964 | py | Python | smoke/box/FeatureTimeSpaceGrid.py | minnieteng/smoke_project | cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f | [
"Apache-2.0"
] | null | null | null | smoke/box/FeatureTimeSpaceGrid.py | minnieteng/smoke_project | cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f | [
"Apache-2.0"
] | null | null | null | smoke/box/FeatureTimeSpaceGrid.py | minnieteng/smoke_project | cc3c8f16f7759fe29e46d3cec32a3ed6ca86bd5f | [
"Apache-2.0"
] | null | null | null | import os
import json
import tarfile
import tempfile
import numpy as np
import numpy.ma as ma
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
from pytz import timezone
from geopy.distance import distance
from scipy.optimize import Bounds, minimize
from collections import Counter
from box.Box i... | 39.451163 | 105 | 0.619547 |
7013aac3ccf1603011e8a016834553656f68212c | 235 | py | Python | cmt.py | developer0hye/CMT | bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085 | [
"MIT"
] | 1 | 2021-09-06T00:35:36.000Z | 2021-09-06T00:35:36.000Z | cmt.py | developer0hye/CMT | bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085 | [
"MIT"
] | null | null | null | cmt.py | developer0hye/CMT | bc9a0f1d6c6b9e2fe91772048d64025d3a8e5085 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
| 18.076923 | 38 | 0.523404 |
70155480f5510345df2cb67b5bd92fa6a2bec8a6 | 4,564 | py | Python | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | null | null | null | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | null | null | null | yearn/vaults_v2.py | nymmrx/yearn-exporter | 64b87128b76cd637965abb56e421bfd67238e2a7 | [
"MIT"
] | 1 | 2021-06-04T19:07:16.000Z | 2021-06-04T19:07:16.000Z | from dataclasses import dataclass
from typing import List
from brownie import interface, web3
from brownie.network.contract import InterfaceContainer
from packaging import version
from yearn import strategies
from yearn import uniswap
from yearn.mutlicall import fetch_multicall
VAULTS_EVENT_TOPIC = '0xce089905ba4a4d... | 36.806452 | 118 | 0.72064 |
7016e3c9fc99e0a5ae6849f6a74a87ca2b588aac | 561 | py | Python | Python/1-Fundamentals/cc_nestedif.py | armirh/Nucamp-SQL-Devops-Training | 6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2 | [
"MIT"
] | 2 | 2022-01-19T02:33:11.000Z | 2022-01-19T02:33:13.000Z | Python/1-Fundamentals/cc_nestedif.py | armirh/Nucamp-SQL-Devops-Training | 6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2 | [
"MIT"
] | null | null | null | Python/1-Fundamentals/cc_nestedif.py | armirh/Nucamp-SQL-Devops-Training | 6c2dc5793c732bfb4c4d365acbb346a95fbf4bf2 | [
"MIT"
] | null | null | null | '''
priceIsRight = 15
if priceIsRight:
print("Price is too low!")
if priceIsRight:
print("Price is almost there!")
if priceIsRight:
print("Price is exactly that!")
if priceIsRight:
print("Price is too high!")
'''
priceIsRight = int(input("Enter your number: "))... | 21.576923 | 48 | 0.616756 |
701717d1e115bc24132f032374cf36213c9e7e77 | 1,131 | py | Python | src/ggrc/migrations/versions/20130530013529_3288290c842a_add_log_events.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | null | null | null | src/ggrc/migrations/versions/20130530013529_3288290c842a_add_log_events.py | Smotko/ggrc-core | b3abb58b24e7559960d71a94ba79c75539e7fe29 | [
"Apache-2.0"
] | 12 | 2015-01-08T14:50:19.000Z | 2017-11-29T19:37:53.000Z | src/ggrc/migrations/versions/20130530013529_3288290c842a_add_log_events.py | mikecb/ggrc-core | 1cda560cb0920021416e07740c6cca1acba56268 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2015-01-08T13:25:09.000Z | 2015-01-08T13:25:09.000Z |
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: dan@reciprocitylabs.com
# Maintained By: dan@reciprocitylabs.com
"""Add log_events
Revision ID: 3288290c842a
Revises: 4dceb701509f
Create Date: 2... | 28.275 | 78 | 0.702034 |
70194d021448ff248bde2404b9e8f5a07192151e | 4,780 | py | Python | plot_3T_SRF_GFR.py | plaresmedima/Basak_et_al_2018 | af52b36978b403db4e71c3002e93f4664ecaf522 | [
"Apache-2.0"
] | null | null | null | plot_3T_SRF_GFR.py | plaresmedima/Basak_et_al_2018 | af52b36978b403db4e71c3002e93f4664ecaf522 | [
"Apache-2.0"
] | null | null | null | plot_3T_SRF_GFR.py | plaresmedima/Basak_et_al_2018 | af52b36978b403db4e71c3002e93f4664ecaf522 | [
"Apache-2.0"
] | null | null | null | #This code reads the output files of fitAll.py
#and plots regreassion curve and Bland-Altman plot for SRF and total GFR for 3 T subgroup
#It also prints the correlation coefficient, mean difference, stdev difference,
#p-values of SRF and Total GFR for the 3T subgroup.
#Specify 'model' as 'Linear', 'Nonlinear',... | 38.861789 | 120 | 0.646025 |
70197d3b3cc7cb67684166f3089268699b863a57 | 3,222 | py | Python | final_codes/challenge.py | CbGeSky/--1stECG | 90b71707402aad8906fc5025e11035c5c73bc67e | [
"MIT"
] | 9 | 2019-09-11T06:59:45.000Z | 2021-12-07T11:55:31.000Z | final_codes/challenge.py | CbGeSky/--1stECG | 90b71707402aad8906fc5025e11035c5c73bc67e | [
"MIT"
] | null | null | null | final_codes/challenge.py | CbGeSky/--1stECG | 90b71707402aad8906fc5025e11035c5c73bc67e | [
"MIT"
] | 1 | 2019-10-06T03:50:16.000Z | 2019-10-06T03:50:16.000Z | import sys
import os
import numpy as np
import scipy.io as sio
import random
from decimal import Decimal
import argparse
import csv
from keras.models import load_model
import f_model
from f_preprocess import fill_length
# Usage: python rematch_challenge.py test_file_path
def arg_parse():
"""
Parse arguements... | 31.90099 | 139 | 0.573246 |
701cd705f82fc9ffee8c1911d4b72bac757c74bd | 6,559 | py | Python | data/amazon/generate_data.py | ADALabUCSD/vista | 3cf4486c3b06c93b7841da180ab46ad6e433cac8 | [
"Apache-2.0"
] | 1 | 2019-12-31T12:53:30.000Z | 2019-12-31T12:53:30.000Z | data/amazon/generate_data.py | ADALabUCSD/vista | 3cf4486c3b06c93b7841da180ab46ad6e433cac8 | [
"Apache-2.0"
] | 3 | 2019-10-24T17:20:43.000Z | 2020-04-14T06:23:07.000Z | data/amazon/generate_data.py | ADALabUCSD/vista | 3cf4486c3b06c93b7841da180ab46ad6e433cac8 | [
"Apache-2.0"
] | 2 | 2019-10-23T01:26:40.000Z | 2022-03-24T03:07:15.000Z | # coding=utf-8
'''
Copyright 2018 Supun Nakandala and Arun Kumar
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... | 38.133721 | 115 | 0.536515 |
70221e54d436c3b4265ef8420406d2c5bf9c963a | 2,923 | py | Python | sample_scripts/derived_unit_data.py | jnicho02/pywind | bca5d7964ce7cfd2429f3f5c3b8daa7194092685 | [
"Unlicense"
] | 7 | 2016-02-17T22:49:54.000Z | 2021-12-03T02:39:36.000Z | sample_scripts/derived_unit_data.py | jnicho02/pywind | bca5d7964ce7cfd2429f3f5c3b8daa7194092685 | [
"Unlicense"
] | 3 | 2015-12-16T20:59:05.000Z | 2016-10-31T16:05:18.000Z | sample_scripts/derived_unit_data.py | jnicho02/pywind | bca5d7964ce7cfd2429f3f5c3b8daa7194092685 | [
"Unlicense"
] | 12 | 2015-05-12T19:28:56.000Z | 2020-06-15T11:15:46.000Z | #!/usr/bin/env python
# coding=utf-8
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
... | 38.973333 | 100 | 0.684229 |
7023be5b4ba15bbdf4d9827c01cc6383071b7d41 | 388 | py | Python | minimal_bot.py | ffreemt/nonebot-plugin-guess-game | 621009d28d555a04fbd280ccd620e5e070f819e9 | [
"MIT"
] | 3 | 2021-09-06T13:02:11.000Z | 2022-01-04T16:26:56.000Z | minimal_bot.py | ffreemt/nonebot-plugin-guess-game | 621009d28d555a04fbd280ccd620e5e070f819e9 | [
"MIT"
] | 1 | 2021-03-03T11:46:55.000Z | 2021-03-16T10:12:04.000Z | minimal_bot.py | ffreemt/nonebot-plugin-guess-game | 621009d28d555a04fbd280ccd620e5e070f819e9 | [
"MIT"
] | 2 | 2021-03-03T11:09:04.000Z | 2022-03-02T09:18:15.000Z | """Run a minimal bot."""
import nonebot
from nonebot.adapters.cqhttp import Bot
nonebot.init()
app = nonebot.get_asgi()
driver = nonebot.get_driver()
driver.register_adapter("cqhttp", Bot)
nonebot.load_builtin_plugins()
nonebot.load_plugins("nonebot_plugin_guess")
if __name__ == "__main__":
# nonebot.run()
... | 21.555556 | 44 | 0.731959 |
70240807ca72daa40bb0285e918ba7616c10ff87 | 1,024 | py | Python | auto/AppTester/page/page.py | Strugglingrookie/oldboy2 | 8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47 | [
"Apache-2.0"
] | 1 | 2021-06-15T07:01:23.000Z | 2021-06-15T07:01:23.000Z | auto/AppTester/page/page.py | Strugglingrookie/oldboy2 | 8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47 | [
"Apache-2.0"
] | 3 | 2020-02-13T14:35:36.000Z | 2021-06-10T21:27:14.000Z | auto/AppTester/page/page.py | Strugglingrookie/oldboy2 | 8ed6723cab1f54f2ff8ea0947c6f982aef7e1b47 | [
"Apache-2.0"
] | 1 | 2020-04-09T02:13:12.000Z | 2020-04-09T02:13:12.000Z | from lib.appController import driver_queue
from lib.pyapp import Pyapp
import threading
# driver
local = threading.local()
# mqdriverpagedriver
| 23.813953 | 97 | 0.658203 |
70246ff149a31798620e180bc869fc10ab2c2c1f | 3,037 | py | Python | data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 241 | 2021-07-20T08:35:20.000Z | 2022-03-31T02:39:08.000Z | data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 49 | 2021-07-22T23:18:42.000Z | 2022-03-24T09:15:26.000Z | data/transcoder_evaluation_gfg/python/COUNT_PAIRS_TWO_SORTED_ARRAYS_WHOSE_SUM_EQUAL_GIVEN_VALUE_X_2.py | mxl1n/CodeGen | e5101dd5c5e9c3720c70c80f78b18f13e118335a | [
"MIT"
] | 71 | 2021-07-21T05:17:52.000Z | 2022-03-29T23:49:28.000Z | # Copyright (c) 2019-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
#TOFILL
if __name__ == '__main__':
param = [
([5, 5, 7, 10, 14, 14, 17, 21, 32, 34, 37, 40, 40, 40, 46, 46, 50, 50, 5... | 75.925 | 379 | 0.43892 |
70271524b2f2d61abba8d50f436a3a5547c10745 | 118 | py | Python | tkdet/structures/__init__.py | tkhe/tkdetection | 54e6c112ef2930e755f457e38449736f5743a9ea | [
"MIT"
] | 1 | 2020-10-09T02:27:13.000Z | 2020-10-09T02:27:13.000Z | tkdet/structures/__init__.py | tkhe/tkdetection | 54e6c112ef2930e755f457e38449736f5743a9ea | [
"MIT"
] | null | null | null | tkdet/structures/__init__.py | tkhe/tkdetection | 54e6c112ef2930e755f457e38449736f5743a9ea | [
"MIT"
] | null | null | null | from .boxes import *
from .image_list import *
from .instances import *
from .keypoints import *
from .masks import *
| 19.666667 | 25 | 0.745763 |
7027aab2db4848e19c8bba08f545d442f47da027 | 126 | py | Python | swift/common/ring/__init__.py | vvechkanov/SwiftUml | 98fa5adfe5664dbb4f328ba2a1789a63c7550eed | [
"Apache-2.0"
] | 1 | 2021-01-06T12:40:43.000Z | 2021-01-06T12:40:43.000Z | swift/common/ring/__init__.py | Triv90/SwiftUml | 98fa5adfe5664dbb4f328ba2a1789a63c7550eed | [
"Apache-2.0"
] | null | null | null | swift/common/ring/__init__.py | Triv90/SwiftUml | 98fa5adfe5664dbb4f328ba2a1789a63c7550eed | [
"Apache-2.0"
] | null | null | null | from ring import RingData, Ring
from builder import RingBuilder
__all__ = [
'RingData',
'Ring',
'RingBuilder',
]
| 14 | 31 | 0.666667 |
7027c09816f2621342bd17e8dc1bd3b5d29ac840 | 942 | py | Python | API.py | TheNovi/NoviCypher | d81041ccaf7d17f50b863287be34d12b7a502885 | [
"MIT"
] | null | null | null | API.py | TheNovi/NoviCypher | d81041ccaf7d17f50b863287be34d12b7a502885 | [
"MIT"
] | null | null | null | API.py | TheNovi/NoviCypher | d81041ccaf7d17f50b863287be34d12b7a502885 | [
"MIT"
] | null | null | null | from NoviCypher import FileCypher
from os import path
import sys
Version = '1.0.0b'
arg = sys.argv
len_argv = len(arg)
if len_argv > 1:
if arg[1] in ['-h', '--help']:
print(f"folder/File rows Cypher_size")
quit()
a = arg[1]
else:
a = input('File/Folder >')
if not path.exists(a):
print(f"Path doesn't exist... | 18.470588 | 53 | 0.619958 |
702a17c5d922751e111f50c283e5dd73bd0f05e2 | 335 | py | Python | IT/Model/User.py | LionKingzlq/DjangoDemo | 06ceede79986a76675321baa66c8bf30cdfff62b | [
"BSD-2-Clause"
] | null | null | null | IT/Model/User.py | LionKingzlq/DjangoDemo | 06ceede79986a76675321baa66c8bf30cdfff62b | [
"BSD-2-Clause"
] | null | null | null | IT/Model/User.py | LionKingzlq/DjangoDemo | 06ceede79986a76675321baa66c8bf30cdfff62b | [
"BSD-2-Clause"
] | null | null | null | <<<<<<< HEAD
from django.db import models
=======
from django.db import models
>>>>>>> b6ed3cb0427fc3b30fe2f4b569908246cfec5690
last_name = models.CharField(max_length=30) | 27.916667 | 49 | 0.734328 |
702a4d0867bbef6478687bedaa3475a7a74906ec | 4,167 | py | Python | fellbeast/object_tracker.py | wolfenfeld/fellbeast | 5135d16fe499b910b6578dc46c1f514dbc705fd3 | [
"Apache-2.0"
] | null | null | null | fellbeast/object_tracker.py | wolfenfeld/fellbeast | 5135d16fe499b910b6578dc46c1f514dbc705fd3 | [
"Apache-2.0"
] | null | null | null | fellbeast/object_tracker.py | wolfenfeld/fellbeast | 5135d16fe499b910b6578dc46c1f514dbc705fd3 | [
"Apache-2.0"
] | null | null | null | from typing import List
import cv2
from fellbeast.bounding_box import BoundingBox
from fellbeast.configurations import CHECK_FOR_NEW_FACE_FREQUENCY
from fellbeast.utils import get_closest_coordinate
OPENCV_OBJECT_TRACKERS = {
"csrt": cv2.TrackerCSRT_create,
"kcf": cv2.TrackerKCF_create,
"boosting": cv2.T... | 38.229358 | 112 | 0.664987 |
702d62784e667462f72d3df18eda609962caca05 | 2,065 | py | Python | loans/urls.py | FAenX/micro-finance | 27bfd3f716365ecac22d0139f8f5bcda974498e3 | [
"MIT"
] | null | null | null | loans/urls.py | FAenX/micro-finance | 27bfd3f716365ecac22d0139f8f5bcda974498e3 | [
"MIT"
] | 5 | 2021-06-08T23:59:29.000Z | 2022-03-12T00:58:17.000Z | loans/urls.py | FAenX/micro-finance | 27bfd3f716365ecac22d0139f8f5bcda974498e3 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from loans.views import *
urlpatterns = [
# Client Loans (apply, view, list)
url(r'^client/(?P<client_id>\d+)/loan/apply/$', ClientLoanApplicationView.as_view(), name='clientloanapplication'),
url(r'^client/(?P<client_id>\d+)/loans/list/$', ClientLoansListView.as_view(), na... | 71.206897 | 163 | 0.7046 |
702de2efe4664687f5a4403142b920e4ac69ee5e | 22,245 | py | Python | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | 2 | 2019-06-08T14:55:24.000Z | 2021-01-18T13:52:17.000Z | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | null | null | null | exactdiag_4site2particles/fh.py | PedroMDuarte/thesis-hubbard | c63df1283086267bd3014e084b36408cbdcde5eb | [
"MIT"
] | 2 | 2020-07-08T05:50:34.000Z | 2022-01-17T09:57:31.000Z | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import rc
rc('font',**{'family':'serif'})
if __name__=="__main__":
#a = lattice(2,2,1)
#a.defstates()
#a.nearest()
#a.kinetic0()
#a.interaction0()
#np.savetxt('221_t.dat', a.kinetic)
... | 32.713235 | 81 | 0.475882 |
702f40b28d19c269453798fcbb0e966ac84fe386 | 492 | py | Python | zinnia/views/channels.py | zapier/django-blog-zinnia | 2631cbe05fa7b95aecd172fe34b7081ca4beda47 | [
"BSD-3-Clause"
] | null | null | null | zinnia/views/channels.py | zapier/django-blog-zinnia | 2631cbe05fa7b95aecd172fe34b7081ca4beda47 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T12:32:28.000Z | 2021-09-08T12:32:28.000Z | zinnia/views/channels.py | isabella232/django-blog-zinnia | 2631cbe05fa7b95aecd172fe34b7081ca4beda47 | [
"BSD-3-Clause"
] | 1 | 2021-09-08T10:28:36.000Z | 2021-09-08T10:28:36.000Z | """Views for Zinnia channels"""
from django.views.generic.list import ListView
from zinnia.models.entry import Entry
from zinnia.settings import PAGINATION
| 28.941176 | 63 | 0.727642 |
702fe43d68eb2202d4ed0506c521d3e058199029 | 2,410 | py | Python | lib/rts/player/Camera.py | Korky/BlenderGameEngineExperiments | 23abc8cd0d5052f9827566495b8a96bef7509d90 | [
"MIT"
] | 1 | 2018-01-05T13:27:41.000Z | 2018-01-05T13:27:41.000Z | lib/rts/player/Camera.py | Korky/BlenderGameEngineExperiments | 23abc8cd0d5052f9827566495b8a96bef7509d90 | [
"MIT"
] | null | null | null | lib/rts/player/Camera.py | Korky/BlenderGameEngineExperiments | 23abc8cd0d5052f9827566495b8a96bef7509d90 | [
"MIT"
] | null | null | null | from bge import logic, events, render
from mathutils import Vector
| 27.701149 | 80 | 0.5361 |
7030d6e9feb4e14bd7bd841d594abc3eb0f18ef0 | 5,422 | py | Python | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | tests/test_connection.py | miiklay/pymapd | 4665ea704eb7ffabf72048f1cb3519b4497b8830 | [
"Apache-2.0"
] | null | null | null | import pytest
from mapd.ttypes import TColumnType, TTypeInfo
from pymapd import OperationalError, connect
from pymapd.cursor import Cursor
from pymapd.connection import _parse_uri, ConnectionInfo
from pymapd._parsers import ColumnDetails, _extract_column_details
| 43.725806 | 79 | 0.536887 |
7030f7c3e319ceb77264da8cf55e67eff0af6518 | 2,286 | py | Python | tests/test_img_proc.py | lukelu0520/boxdetect | 6a079e38a279f152f5c6cb0f0934e8620f0224ef | [
"MIT"
] | 43 | 2020-06-04T17:09:36.000Z | 2022-03-31T20:43:24.000Z | tests/test_img_proc.py | lukelu0520/boxdetect | 6a079e38a279f152f5c6cb0f0934e8620f0224ef | [
"MIT"
] | 15 | 2020-06-10T10:16:07.000Z | 2022-01-26T10:58:50.000Z | tests/test_img_proc.py | lukelu0520/boxdetect | 6a079e38a279f152f5c6cb0f0934e8620f0224ef | [
"MIT"
] | 12 | 2020-09-21T07:13:09.000Z | 2021-12-28T12:29:46.000Z | import cv2
import numpy as np
import sys
sys.path.append(".")
sys.path.append("../.")
from boxdetect import config, img_proc
IMG1 = cv2.imread("tests/data/tests_color_enhance1.png")
IMG2 = cv2.imread("tests/data/tests_color_enhance2.png")
| 30.891892 | 98 | 0.690726 |
703107f699c7f26c45918048eaa30145a2e5dcb7 | 1,149 | py | Python | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | setup.py | tmeiczin/pyautomount | 1e1b01538e8cb15931e63a97633f37f3e55a96b3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
from subprocess import Popen, PIPE
setup(
name='pyautomount',
version='1.0.0',
author=['Terrence Meiczinger'],
author_email='terrence72@gmail.com',
license='LICENSE',
url='https://github.com/tmeiczin/pyautomount',
download_u... | 29.461538 | 70 | 0.624021 |
7031342e8a2446e099db89060860e0de00622e65 | 30,284 | py | Python | magenta/models/svg_vae/svg_decoder_anypair_joint_vae_one_model.py | hologerry/magenta | c08c17a548f97a3f5d294a010c28ea2803718d6f | [
"Apache-2.0"
] | null | null | null | magenta/models/svg_vae/svg_decoder_anypair_joint_vae_one_model.py | hologerry/magenta | c08c17a548f97a3f5d294a010c28ea2803718d6f | [
"Apache-2.0"
] | null | null | null | magenta/models/svg_vae/svg_decoder_anypair_joint_vae_one_model.py | hologerry/magenta | c08c17a548f97a3f5d294a010c28ea2803718d6f | [
"Apache-2.0"
] | 1 | 2021-09-09T15:30:36.000Z | 2021-09-09T15:30:36.000Z | # Copyright 2020 The Magenta 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 ... | 45.471471 | 130 | 0.60636 |
70365219313e16a31641d194a9ebac7e3c52aa71 | 7,190 | py | Python | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | app/auth/views.py | fushouhai/flask_11_28 | 49a030d8a61a1a3cdd1f32746978781a5266c599 | [
"MIT"
] | null | null | null | from flask import render_template, redirect, request, url_for, flash, session, current_app
from flask_login import login_user, logout_user, login_required, \
current_user
from . import auth
from .. import db
from ..models import User
from ..email import send_email
from .forms import LoginForm, RegistrationForm, Cha... | 38.864865 | 108 | 0.665229 |
7036b84ec45ac5bc2408863226f7b4fc163ca315 | 3,371 | py | Python | Panalyzer/TraceParser/csv2np_buffered.py | dashazhangdake/gem5test | 80b2b0a67c4d4fd2f8de7944f9aec787c00360b9 | [
"MIT"
] | null | null | null | Panalyzer/TraceParser/csv2np_buffered.py | dashazhangdake/gem5test | 80b2b0a67c4d4fd2f8de7944f9aec787c00360b9 | [
"MIT"
] | null | null | null | Panalyzer/TraceParser/csv2np_buffered.py | dashazhangdake/gem5test | 80b2b0a67c4d4fd2f8de7944f9aec787c00360b9 | [
"MIT"
] | 1 | 2020-08-11T15:39:38.000Z | 2020-08-11T15:39:38.000Z | import csv
import numpy as np
import time
from pathlib import Path
from Panalyzer.utils.wr_extractor import wr_extractor
from Panalyzer.TraceParser.logic_masking import *
if __name__ == "__main__":
project_dir = Path(__file__).resolve().parent.parent
csv_dir = project_dir.joinpath('tempcsv')
... | 39.658824 | 114 | 0.554732 |
7036f200e7f89c1ffcfb7887c12648d8a6e18034 | 818 | py | Python | tests/remediations/test_aws_guardduty_create_detector.py | 0xdabbad00/aws-remediations | 82be16a8a39736fba917f632599eb37b05350172 | [
"MIT"
] | 3 | 2019-11-19T10:01:34.000Z | 2022-03-23T20:41:45.000Z | tests/remediations/test_aws_guardduty_create_detector.py | 0xdabbad00/aws-remediations | 82be16a8a39736fba917f632599eb37b05350172 | [
"MIT"
] | null | null | null | tests/remediations/test_aws_guardduty_create_detector.py | 0xdabbad00/aws-remediations | 82be16a8a39736fba917f632599eb37b05350172 | [
"MIT"
] | null | null | null | from unittest import mock, TestCase
from boto3 import Session
from src.remediations.aws_guardduty_create_detector import AwsGuardDutyCreateDetector
| 35.565217 | 85 | 0.727384 |
703806a6b288e7b2bfae7a4cf057c0fb1b1b0ce6 | 1,296 | py | Python | betterLogger/formatter.py | GreenJon902/BetterLogger | 7333cc83d0bb9350781e5506e15fc0476e7d2791 | [
"MIT"
] | null | null | null | betterLogger/formatter.py | GreenJon902/BetterLogger | 7333cc83d0bb9350781e5506e15fc0476e7d2791 | [
"MIT"
] | null | null | null | betterLogger/formatter.py | GreenJon902/BetterLogger | 7333cc83d0bb9350781e5506e15fc0476e7d2791 | [
"MIT"
] | null | null | null | import copy
from logging import Formatter as _Formatter
from betterLogger import colors
from betterLogger import config
from betterLogger.format_funcs import colored_format
__all__ = ["Formatter"]
| 37.028571 | 114 | 0.645062 |