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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb759e2270367c9453c4335425e65154c101afd0 | 6,340 | py | Python | igibson/examples/learning/demo_replaying_batch.py | StanfordVL/InteractiveGibsonEnv | 58ac14cf62949008b6851a5a95602cd5084edffd | [
"MIT"
] | 51 | 2019-06-17T06:01:40.000Z | 2020-03-29T03:34:20.000Z | igibson/examples/learning/demo_replaying_batch.py | StanfordVL/InteractiveGibsonEnv | 58ac14cf62949008b6851a5a95602cd5084edffd | [
"MIT"
] | 25 | 2019-06-28T18:39:03.000Z | 2020-03-19T17:53:55.000Z | igibson/examples/learning/demo_replaying_batch.py | StanfordVL/InteractiveGibsonEnv | 58ac14cf62949008b6851a5a95602cd5084edffd | [
"MIT"
] | 12 | 2019-08-01T21:03:44.000Z | 2020-04-01T11:05:18.000Z | """
BEHAVIOR demo batch analysis script
"""
import argparse
import json
import logging
import os
from pathlib import Path
import pandas as pd
import igibson
from igibson.examples.learning.demo_replaying_example import replay_demo
def replay_demo_batch(
demo_dir,
demo_manifest,
out_dir,
get_callbacks... | 39.135802 | 118 | 0.659621 |
cb779cc66f314d2d2731877166e373742311a2fe | 428 | py | Python | editor/importme.py | Amazeryogo/surf-exel | 0d6a43a7ba2b059f61405db846e546308a035733 | [
"MIT"
] | 3 | 2020-08-12T05:59:47.000Z | 2020-11-08T00:01:04.000Z | editor/importme.py | Amazeryogo/surf-exel | 0d6a43a7ba2b059f61405db846e546308a035733 | [
"MIT"
] | 8 | 2020-08-19T06:24:06.000Z | 2020-10-27T04:37:46.000Z | editor/importme.py | Amazeryogo/surf-exel | 0d6a43a7ba2b059f61405db846e546308a035733 | [
"MIT"
] | 1 | 2020-10-25T13:35:17.000Z | 2020-10-25T13:35:17.000Z | from Tkinter import *
from Tkinter import filedialog, simpledialog
from Tkinter import messagebox
from editor.settings import backgroundcolor as bc
from editor.settings import forgroundcolor as fc
from editor.settings import back as b
from editor.settings import fore as f
from editor.settings import size
from editor.se... | 23.777778 | 49 | 0.831776 |
cb7c33f1129f73ea16522644b0dc0c8fff4d920f | 712 | py | Python | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | UDPMulticastClient.py | monteno-m/Challenge | facebb31d3e04dcd497577e4e6f38020b846c614 | [
"MIT"
] | null | null | null | # Basic UDP Multicasting server built in python
import socket
import struct
if __name__ == '__main__':
UDPReceiveMultiCast('224.1.1.1', 5007)
| 25.428571 | 76 | 0.657303 |
cb7cbdea43eb0a87e369eaad496fe599a41ed30b | 1,232 | py | Python | tests/test_scripts_basic.py | Holt59/bain-wizard-interpreter | 70a95e6b9238c1399d20c947a798891eba7fb647 | [
"MIT"
] | 2 | 2020-11-08T12:22:34.000Z | 2021-12-30T15:41:47.000Z | tests/test_scripts_basic.py | Holt59/bain-wizard-interpreter | 70a95e6b9238c1399d20c947a798891eba7fb647 | [
"MIT"
] | 1 | 2020-11-09T10:37:47.000Z | 2020-11-09T10:38:16.000Z | tests/test_scripts_basic.py | Holt59/bain-wizard-interpreter | 70a95e6b9238c1399d20c947a798891eba7fb647 | [
"MIT"
] | 1 | 2021-02-07T10:53:00.000Z | 2021-02-07T10:53:00.000Z | # -*- encoding: utf-8 -*-
"""
These tests are only here to check that running the test scripts do
not actually fails.
Important: If a script contains While loop that are cancelled by user,
it should not be tested here.
"""
from antlr4.error.Errors import ParseCancellationException
from pathlib import Path
from wiz... | 26.782609 | 78 | 0.693182 |
cb7f6dcf22a868c02e40a1c04eb933a6c7a3c1bd | 341 | py | Python | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | 8 | 2016-05-31T09:54:15.000Z | 2021-08-13T13:25:01.000Z | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | null | null | null | celerytest/tasks.py | dpfried/mocs | d594a47c2e3125a30fe14c2bc646d0e0614cb8b2 | [
"MIT"
] | 10 | 2015-01-07T06:45:44.000Z | 2021-06-21T08:41:57.000Z | from celery.task import task
from time import sleep
| 22.733333 | 84 | 0.677419 |
cb7fc096b934fb70ce80d9b25b9920992168492e | 824 | py | Python | python-CSDN博客爬虫/CSDN_article/csdn/test.py | wangchuanli001/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 12 | 2019-12-07T01:44:55.000Z | 2022-01-27T14:13:30.000Z | python-CSDN博客爬虫/CSDN_article/csdn/test.py | hujiese/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 23 | 2020-05-23T03:56:33.000Z | 2022-02-28T07:54:45.000Z | python-CSDN博客爬虫/CSDN_article/csdn/test.py | hujiese/Project-experience | b563c5c3afc07c913c2e1fd25dff41c70533f8de | [
"Apache-2.0"
] | 7 | 2019-12-20T04:48:56.000Z | 2021-11-19T02:23:45.000Z | import random
import MySQLdb
import requests
# ! -*- encoding:utf-8 -*-
import requests
#
targetUrl = "https://blog.csdn.net/wang978252321/article/details/95489446"
# targetUrl = "http://proxy.abuyun.com/switch-ip"
# targetUrl = "http://proxy.abuyun.com/current-ip"
#
proxyHost = "http-dyn.abuyun.com"
proxyPort =... | 19.619048 | 74 | 0.684466 |
cb80633fe8db6b18104c502bfcdb1176d8840b4c | 1,093 | py | Python | to_offer/37_SerializeBinaryTrees.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | to_offer/37_SerializeBinaryTrees.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | to_offer/37_SerializeBinaryTrees.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | """
37:
1
/ \
2 3
/ / \
4 5 6
[1, 2, 4, $, $, $, 3, 5, $, $, 6, $, $]
"""
from datstru import TreeNode
from datstru import list_to_treenode
def serialize(root):
"""
:param root:tree root
:return:pre-order val list
"""
seq = []
preorder(root)
retur... | 18.216667 | 51 | 0.534309 |
cb80caec425effb53efd7354ad0dff729134141a | 803 | py | Python | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | null | null | null | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | 2 | 2019-10-01T07:31:06.000Z | 2020-10-29T15:53:39.000Z | setup.py | codecov/tornpsql | 6d24b20db6ba554064edd747febeea5028bd2e84 | [
"Apache-2.0"
] | 3 | 2020-08-27T00:03:18.000Z | 2021-05-30T02:04:57.000Z | from setuptools import setup
setup(name='tornpsql',
version='2.1.5',
description="PostgreSQL handler for Tornado Web",
long_description="",
classifiers=["Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Pr... | 36.5 | 72 | 0.597758 |
cb811398470b8cc79c6cd844862ffc7058f5bb1b | 7,392 | py | Python | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | workflow/scripts/mask-contigs.py | AKBrueggemann/snakemake-workflow-sars-cov2 | e4cfe0f2f93efc6b45ede0183070bff81f08f502 | [
"BSD-2-Clause"
] | null | null | null | '# Copyright ' + str(datetime.datetime.now().year) + ' Thomas Battenfeld, Alexander Thomas, Johannes Kster.'
'# Licensed under the GNU GPLv3 license (https://opensource.org/licenses/GPL-3.0)'
'# This file may not be copied, modified, or distributed'
'# except according to those terms.
'
'# Copyright 2021 Thomas Bat... | 37.145729 | 125 | 0.540449 |
cb81a1e07f6c274ad26ad849f859995ac2573b0c | 638 | py | Python | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 114 | 2018-03-19T14:45:22.000Z | 2022-02-07T20:42:28.000Z | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 7 | 2018-05-04T13:35:20.000Z | 2022-02-10T12:03:46.000Z | prototyper/build/stages/wsgi_app.py | vitalik/django-prototyper | 0bf7b2437c45868d2ee90c7c4d69c7d71247c978 | [
"MIT"
] | 8 | 2018-06-25T08:09:06.000Z | 2022-02-07T20:42:36.000Z | from ..base import BuildStage
from pathlib import Path
TPL = """\"\"\"
WSGI config for {0} project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
\"\"\"
import os
from django.core.ws... | 23.62963 | 78 | 0.730408 |
cb82a4817e12d6d4179e7cddccb7eec72aa3842a | 399 | py | Python | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | null | null | null | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | 2 | 2021-03-31T19:48:34.000Z | 2021-12-13T20:48:54.000Z | tests/test_http_api.py | b2wads/baas-transfer | ce2b62c2bed3a06ec85faf1e30fa86d12ede6fea | [
"BSD-3-Clause"
] | 1 | 2020-03-16T15:10:22.000Z | 2020-03-16T15:10:22.000Z | from aioresponses import aioresponses
from asynctest import TestCase
from asyncworker.testing import HttpClientContext
from baas.api import app
| 28.5 | 52 | 0.701754 |
cb83b19aafb196f862003b235a938146859af09c | 1,288 | py | Python | RLBotPack/BotimusPrime/source/maneuvers/air/fast_recovery.py | DaCoolOne/RLBotPack | d418aa85433022dd8d3d0324f1586b6ea5084616 | [
"MIT"
] | null | null | null | RLBotPack/BotimusPrime/source/maneuvers/air/fast_recovery.py | DaCoolOne/RLBotPack | d418aa85433022dd8d3d0324f1586b6ea5084616 | [
"MIT"
] | null | null | null | RLBotPack/BotimusPrime/source/maneuvers/air/fast_recovery.py | DaCoolOne/RLBotPack | d418aa85433022dd8d3d0324f1586b6ea5084616 | [
"MIT"
] | null | null | null | from maneuvers.kit import *
from maneuvers.driving.arrive import Arrive
| 32.2 | 99 | 0.537267 |
cb83bfc3bc5471588970f456d7d61bea25c6a0d0 | 1,046 | py | Python | target/opsdev/WEB-INF/classes/shell/updateMobileManagerDataSource.py | ws02752587/opsdev | 1c0ba65defd80af2570e7fcdf1c45277235d7d0d | [
"Apache-2.0"
] | null | null | null | target/opsdev/WEB-INF/classes/shell/updateMobileManagerDataSource.py | ws02752587/opsdev | 1c0ba65defd80af2570e7fcdf1c45277235d7d0d | [
"Apache-2.0"
] | null | null | null | target/opsdev/WEB-INF/classes/shell/updateMobileManagerDataSource.py | ws02752587/opsdev | 1c0ba65defd80af2570e7fcdf1c45277235d7d0d | [
"Apache-2.0"
] | null | null | null | import sys
import re
argvs = list(sys.argv)
result = ''
dataSourceName=argvs[1]
name=argvs[2]
if not dataSourceName or not name:
return
path="/mobile/app/upload/"+name+"/WEB-INF/classes/spring/applicationContext-ibatis.xml"
with open(path) as file:
result = file.read()
result = re.sub('<bean\\s+id\\s*=\\s*"da... | 37.357143 | 148 | 0.681644 |
cb84957ad1b624b8b574c38b8823c92d6f5be898 | 96 | py | Python | werewolf/models/__init__.py | LucienZhang/werewolf-back | 289468c3589a7ad101358175e26401ba6b3b4f16 | [
"MIT"
] | null | null | null | werewolf/models/__init__.py | LucienZhang/werewolf-back | 289468c3589a7ad101358175e26401ba6b3b4f16 | [
"MIT"
] | null | null | null | werewolf/models/__init__.py | LucienZhang/werewolf-back | 289468c3589a7ad101358175e26401ba6b3b4f16 | [
"MIT"
] | null | null | null | from .base import Base
from .user import User
from .game import Game
from .role import Role
| 19.2 | 23 | 0.75 |
cb84959677097edcddf65761e6fe0302bc26b8f5 | 3,382 | py | Python | add-tags.py | tbma2014us/ops-tools | d6368fedbbf1fea06aea9fc657087b9371dd00cc | [
"Apache-2.0"
] | 2 | 2020-08-13T15:33:35.000Z | 2022-01-22T09:59:15.000Z | add-tags.py | tbma2014us/ops-tools | d6368fedbbf1fea06aea9fc657087b9371dd00cc | [
"Apache-2.0"
] | null | null | null | add-tags.py | tbma2014us/ops-tools | d6368fedbbf1fea06aea9fc657087b9371dd00cc | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import logging
import sys
import argparse
import boto3
import botocore.exceptions
LOG_FORMAT = '%(asctime)s %(filename)s:%(lineno)s[%(process)d]: %(levelname)s: %(message)s'
if __name__ == '__main__':
main()
| 35.6 | 115 | 0.609994 |
cb85aedb9943fc657db2a70bf855a03da6a15347 | 778 | py | Python | carCapture.py | ishmam367/Vehcle-Monitoring-System-BLPR- | a43ef820b63c4af0856e9e04e6ea1577b7c7c34b | [
"CNRI-Python"
] | 2 | 2020-07-12T12:10:06.000Z | 2020-08-05T17:34:18.000Z | carCapture.py | ishmam367/Vehcle-Monitoring-System-BLPR- | a43ef820b63c4af0856e9e04e6ea1577b7c7c34b | [
"CNRI-Python"
] | null | null | null | carCapture.py | ishmam367/Vehcle-Monitoring-System-BLPR- | a43ef820b63c4af0856e9e04e6ea1577b7c7c34b | [
"CNRI-Python"
] | 1 | 2020-06-12T15:27:15.000Z | 2020-06-12T15:27:15.000Z | import cv2
import time
#print(cv2.__version__)
cascade_src = 'cars.xml'
video_src = 'v3.avi'
start_time = time.time()
cap = cv2.VideoCapture(video_src)
#framerate = cap.get(5)
car_cascade = cv2.CascadeClassifier(cascade_src)
i=0
while True:
i=i+1
ret, img = cap.read()
if (type(img) == type(None)):
... | 18.97561 | 60 | 0.602828 |
cb867addc7ccb49e4d1c2736f2d98b7fdcf1b6b4 | 985 | py | Python | src/m2_run_this_on_robot.py | myerscar1555/99-CapstoneProject-201920 | 9f2dc26a562be61979e5f5ee5f2b3a791cff6340 | [
"MIT"
] | null | null | null | src/m2_run_this_on_robot.py | myerscar1555/99-CapstoneProject-201920 | 9f2dc26a562be61979e5f5ee5f2b3a791cff6340 | [
"MIT"
] | null | null | null | src/m2_run_this_on_robot.py | myerscar1555/99-CapstoneProject-201920 | 9f2dc26a562be61979e5f5ee5f2b3a791cff6340 | [
"MIT"
] | null | null | null | """
Capstone Project. Code to run on the EV3 robot (NOT on a laptop).
Author: Your professors (for the framework)
and Michael Johnson.
Winter term, 2018-2019.
"""
import rosebot
import mqtt_remote_method_calls as com
import time
import shared_gui_delegate_on_robot as dingding
def main():
"""
This... | 26.621622 | 79 | 0.596954 |
cb8782c8d3ed5f70ac8e8fb4474a4810fb8ff2aa | 1,276 | py | Python | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | 2 | 2018-01-15T14:38:35.000Z | 2018-03-04T10:00:28.000Z | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | null | null | null | cvisionlib/camfeed.py | methusael13/cvision | 4f147cd91bf43704662fe32960e6c98057ef5eac | [
"MIT"
] | null | null | null | '''
Author: Methusael Murmu
Module implementing parallel Camera I/O feed
'''
import cv2
from threading import Thread
| 25.019608 | 60 | 0.61442 |
cb88bb723ef070ee97fb86fb89979898c343a3f2 | 2,250 | py | Python | downloader.py | MCodez/Youtube-MP4-MP3-Downloader | b63272309c309d53361a7e0045a38feb00abce5e | [
"MIT"
] | null | null | null | downloader.py | MCodez/Youtube-MP4-MP3-Downloader | b63272309c309d53361a7e0045a38feb00abce5e | [
"MIT"
] | null | null | null | downloader.py | MCodez/Youtube-MP4-MP3-Downloader | b63272309c309d53361a7e0045a38feb00abce5e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 25 19:44:44 2018
@author: LALIT ARORA
"""
from __future__ import unicode_literals
import youtube_dl
import urllib.parse
from bs4 import BeautifulSoup
if __name__ == "__main__":
import sys
arguments=sys.argv
searchterm=arguments[1]
if ... | 26.470588 | 99 | 0.56 |
cb892b030eca225bfcb188bb0987e05132d3e1b2 | 4,561 | py | Python | newton.py | smrfeld/line_search_tutorial | 4bdc450d7e62e5f8a7e19a3e6c2230ec9199bd5a | [
"MIT"
] | 4 | 2020-11-05T03:38:57.000Z | 2021-11-06T20:57:54.000Z | newton.py | smrfeld/line_search_tutorial | 4bdc450d7e62e5f8a7e19a3e6c2230ec9199bd5a | [
"MIT"
] | null | null | null | newton.py | smrfeld/line_search_tutorial | 4bdc450d7e62e5f8a7e19a3e6c2230ec9199bd5a | [
"MIT"
] | null | null | null | import numpy as np
from typing import Any, Tuple, Dict
import logging | 29.050955 | 133 | 0.546591 |
cb89eb6490818b42b34e9f033ff35f2c3751c687 | 2,993 | py | Python | chatmanage.py | NyaNyak/2021_OSS | f9673bde96709430330760f0710d9804e8a0158b | [
"MIT"
] | null | null | null | chatmanage.py | NyaNyak/2021_OSS | f9673bde96709430330760f0710d9804e8a0158b | [
"MIT"
] | 1 | 2021-12-21T16:42:35.000Z | 2021-12-21T16:55:18.000Z | chatmanage.py | NyaNyak/2021_OSS | f9673bde96709430330760f0710d9804e8a0158b | [
"MIT"
] | null | null | null | import discord
import random | 63.680851 | 242 | 0.669562 |
cb8d02b22bb2917353763bb8532feaa16e03096a | 202 | py | Python | Server/Python/src/dbs/dao/MySQL/File/MgrtList.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/MySQL/File/MgrtList.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/MySQL/File/MgrtList.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | #!/usr/bin/env python
"""
This module provides File.MgrtList data access object.
"""
from dbs.dao.Oracle.File.MgrtList import MgrtList as OraFileMgrtList
| 20.2 | 68 | 0.752475 |
cb8d53a3ab59cdae86918dbce66c63400639164e | 3,478 | py | Python | test_intensity.py | gfzriesgos/deus | afa2b64d85a2da61025c9c7bfd253ea9572cfaed | [
"Apache-2.0"
] | 1 | 2019-08-13T05:19:07.000Z | 2019-08-13T05:19:07.000Z | test_intensity.py | gfzriesgos/deus | afa2b64d85a2da61025c9c7bfd253ea9572cfaed | [
"Apache-2.0"
] | 19 | 2019-10-16T12:50:57.000Z | 2022-03-11T23:58:20.000Z | test_intensity.py | gfzriesgos/deus | afa2b64d85a2da61025c9c7bfd253ea9572cfaed | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Copyright 2021 Helmholtz Centre Potsdam GFZ German Research Centre for Geosciences, Potsdam, Germany
#
# 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.apa... | 32.203704 | 307 | 0.646636 |
cb905a1474b77d18994505f88c59914d489cc249 | 512 | py | Python | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 19 | 2017-08-06T06:30:21.000Z | 2021-11-02T10:37:48.000Z | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 1 | 2017-08-06T11:44:10.000Z | 2017-08-06T11:44:10.000Z | verify_package_installs.py | lukassnoek/ICON2017_MVPA | 89af3be9b9565cd8a9f6be940edb1c870b5a1c9d | [
"MIT"
] | 6 | 2017-08-06T07:08:12.000Z | 2020-06-04T09:22:28.000Z | import warnings
import os
from importlib import import_module
packages = ['sklearn', 'nibabel', 'numpy',
'matplotlib', 'skbold', 'niwidgets', 'scipy']
warnings.filterwarnings("ignore")
for package in packages:
try:
import_module(package)
print('%s was succesfully installed!' % package... | 26.947368 | 68 | 0.642578 |
cb91cfb48f8d827ab0cbcfd61e22339fb73c61b6 | 296 | py | Python | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | python_practice/decorators.py | vishalvb/practice | 4c38f863408c91aa072bd20510f098043fecd043 | [
"MIT"
] | null | null | null | #decorators
info('john', 23)
#hi = decorator(display)
#hi()
display() | 14.095238 | 51 | 0.682432 |
cb925867e208753958f0b2c866d1017c0fd97bd5 | 1,886 | py | Python | tests/article_part_test.py | jhroot/content-store | 0e8752ded4c831562019898f29ad0f91c3bb431d | [
"MIT"
] | null | null | null | tests/article_part_test.py | jhroot/content-store | 0e8752ded4c831562019898f29ad0f91c3bb431d | [
"MIT"
] | null | null | null | tests/article_part_test.py | jhroot/content-store | 0e8752ded4c831562019898f29ad0f91c3bb431d | [
"MIT"
] | null | null | null | import pytest
from sqlalchemy.orm.exc import NoResultFound
from content_store.api.api import create_app
from content_store.api.config import TestingConfig
from content_store.api.models import ArticlePart
from content_store.api.repositories import ArticlePartRepository
from content_store.api.database import DB
| 27.735294 | 85 | 0.683457 |
cb927e4a27da1ae4f08594577d0c7318209a8f1e | 630 | py | Python | Algorithms/032_TREE.py | ChaoticMarauder/Project_Rosalind | 6c70cd32908f3b11285e8505c3b43f1ea222decb | [
"MIT"
] | null | null | null | Algorithms/032_TREE.py | ChaoticMarauder/Project_Rosalind | 6c70cd32908f3b11285e8505c3b43f1ea222decb | [
"MIT"
] | null | null | null | Algorithms/032_TREE.py | ChaoticMarauder/Project_Rosalind | 6c70cd32908f3b11285e8505c3b43f1ea222decb | [
"MIT"
] | null | null | null |
if(__name__=='__main__'):
main()
| 27.391304 | 66 | 0.64127 |
cb930dbc32b58947b55e2b163fde90a6ee380c13 | 13,135 | py | Python | qiita_pet/handlers/api_proxy/processing.py | charles-cowart/qiita | 328e986a9dc3d7caa2e33afacd61e6aae9abed85 | [
"BSD-3-Clause"
] | 96 | 2015-01-10T23:40:03.000Z | 2021-01-04T09:07:16.000Z | qiita_pet/handlers/api_proxy/processing.py | charles-cowart/qiita | 328e986a9dc3d7caa2e33afacd61e6aae9abed85 | [
"BSD-3-Clause"
] | 2,304 | 2015-01-01T17:46:14.000Z | 2021-01-07T02:38:52.000Z | qiita_pet/handlers/api_proxy/processing.py | antgonza/qiita | 714f3589ae1699317ad3a314653913f453d347d2 | [
"BSD-3-Clause"
] | 68 | 2015-02-18T21:42:31.000Z | 2020-12-01T19:08:57.000Z | # -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | 34.933511 | 79 | 0.556681 |
cb930e85278de85a62b2b49b52741474d0c750b3 | 342 | py | Python | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | null | null | null | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | 7 | 2021-04-02T10:26:34.000Z | 2021-04-03T21:15:37.000Z | old_app/app.py | kelj0/GPGdotgetter | 619ada58598fefbd9a5f33d50a15df7f35996d1e | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask('savedots')
app.config['DATABASE_FILE'] = 'savedots_DB.sqlite'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///savedots_DB.sqlite'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.secret_key = "CHANGE_ME"
if __name__ == '__main__':
print("Please run main.py to start... | 26.307692 | 70 | 0.736842 |
cb9336de0a97c2e079a64878f9bf7e7224882176 | 1,019 | py | Python | painindex_app/migrations/0002_auto_20140823_2046.py | xanv/painindex | ba8b2fc8fdb38507ae7ede6c552de2447e13e944 | [
"MIT"
] | null | null | null | painindex_app/migrations/0002_auto_20140823_2046.py | xanv/painindex | ba8b2fc8fdb38507ae7ede6c552de2447e13e944 | [
"MIT"
] | null | null | null | painindex_app/migrations/0002_auto_20140823_2046.py | xanv/painindex | ba8b2fc8fdb38507ae7ede6c552de2447e13e944 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
| 29.114286 | 130 | 0.533857 |
cb9357f27908177cf2214963118161546dd6dd87 | 1,765 | py | Python | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | 1 | 2021-07-07T21:11:27.000Z | 2021-07-07T21:11:27.000Z | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | null | null | null | nnet/trans_func.py | Bhumbra/Nnet | aa8a8891d28cb2244668093f90e1909be79314bd | [
"BSD-3-Clause"
] | null | null | null | # Transfer functions and derivatives
# Note _all_ transfer functions and derivatives _must_ accept keyword arguments
# and handle the output keyword argument out=z correctly.
# Gary Bhumbra
import numpy as np
import scipy.special
#-------------------------------------------------------------------------------
"""
de... | 32.090909 | 80 | 0.430595 |
cb94077eb248cb34b2ffab1ee0189b95332376de | 28,267 | py | Python | 3GPP Meeting Helper/gui/tools.py | telekom/3gpp-meeting-tools | 1276a62835fd595487aa817c9500c42c3f5e35f3 | [
"MIT"
] | null | null | null | 3GPP Meeting Helper/gui/tools.py | telekom/3gpp-meeting-tools | 1276a62835fd595487aa817c9500c42c3f5e35f3 | [
"MIT"
] | 1 | 2020-09-04T06:26:41.000Z | 2020-09-04T06:26:41.000Z | 3GPP Meeting Helper/gui/tools.py | telekom/3gpp-meeting-tools | 1276a62835fd595487aa817c9500c42c3f5e35f3 | [
"MIT"
] | 3 | 2020-06-12T02:09:48.000Z | 2021-08-30T10:36:37.000Z | import application
import tkinter
import gui.main
import gui.tdocs_table
import os
import os.path
import server
import traceback
import parsing.html as html_parser
import parsing.excel as excel_parser
import parsing.outlook
import parsing.word as word_parser
import threading
import pythoncom
import tdoc
import datetime... | 51.023466 | 204 | 0.640217 |
cb94b15fac6dc17dea0801e6487a9fc364c3a0fd | 1,997 | py | Python | swift3/cfg.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | swift3/cfg.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | swift3/cfg.py | KoreaCloudObjectStorage/swift3 | 3bd412b33d524bb84bffbe5bd97642faaab71703 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 OpenStack Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 30.257576 | 69 | 0.648973 |
cb955cb73652fe567af5f31103db170d5be3b1fa | 1,432 | py | Python | console/widgets/pane.py | dustinlacewell/console | b65f63354dd8ba60f211e3e169e53c078b99fdf8 | [
"MIT"
] | 11 | 2015-06-10T22:23:03.000Z | 2021-02-16T10:55:55.000Z | console/widgets/pane.py | rrosajp/console | b65f63354dd8ba60f211e3e169e53c078b99fdf8 | [
"MIT"
] | 1 | 2015-07-01T00:04:50.000Z | 2015-08-19T16:40:18.000Z | console/widgets/pane.py | rrosajp/console | b65f63354dd8ba60f211e3e169e53c078b99fdf8 | [
"MIT"
] | 5 | 2015-06-20T11:08:32.000Z | 2022-03-07T00:01:50.000Z | import urwid
from console.app import app
from console.widgets.help import HelpDialog
| 28.64 | 65 | 0.583101 |
cb97efeed6f704cf24a8ea53acee6d4372fec9dd | 47,000 | py | Python | kvmagent/kvmagent/plugins/baremetal_v2_gateway_agent.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 55 | 2017-02-10T07:55:21.000Z | 2021-09-01T00:59:36.000Z | kvmagent/kvmagent/plugins/baremetal_v2_gateway_agent.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 106 | 2017-02-13T09:58:27.000Z | 2022-02-15T09:51:48.000Z | kvmagent/kvmagent/plugins/baremetal_v2_gateway_agent.py | zstackio/zstack-utility | 919d686d46c68836cbcad51ab0b8bf53bc88abda | [
"ECL-2.0",
"Apache-2.0"
] | 68 | 2017-02-13T11:02:01.000Z | 2021-12-16T11:02:01.000Z | import json
import os
import shutil
from jinja2 import Template
from zstacklib.utils import http
from zstacklib.utils import jsonobject
from zstacklib.utils import linux
from zstacklib.utils import linux_v2
from zstacklib.utils import iptables
from zstacklib.utils import lock
from zstacklib.utils import log
from zstac... | 40.274207 | 108 | 0.59234 |
cb9b068c1540439ce7eb94e4bb675995b9770c42 | 76 | py | Python | ajaximage/__init__.py | kitsunefet/django-ajax-image-upload | bca4049b4fd4e1474892561ab170235936fa25d7 | [
"MIT"
] | 11 | 2018-01-29T12:57:58.000Z | 2020-07-27T22:47:14.000Z | ajaximage/__init__.py | kitsunefet/django-ajax-image-upload | bca4049b4fd4e1474892561ab170235936fa25d7 | [
"MIT"
] | 5 | 2021-03-19T03:23:05.000Z | 2022-03-11T23:58:21.000Z | ajaximage/__init__.py | kitsunefet/django-ajax-image-upload | bca4049b4fd4e1474892561ab170235936fa25d7 | [
"MIT"
] | 2 | 2019-09-03T11:22:56.000Z | 2020-04-10T14:20:57.000Z | __version__ = '0.9.4'
default_app_config = 'ajaximage.apps.AjaxImageConfig'
| 25.333333 | 53 | 0.789474 |
cb9cb786bea91820326b5939c650093e3d8deda9 | 45,760 | py | Python | qiskit_experiments/calibration_management/calibrations.py | blakejohnson/qiskit-experiments | 2ecffa8f7d6aa6e8e6c1fc0a1c30f7776c49c493 | [
"Apache-2.0"
] | null | null | null | qiskit_experiments/calibration_management/calibrations.py | blakejohnson/qiskit-experiments | 2ecffa8f7d6aa6e8e6c1fc0a1c30f7776c49c493 | [
"Apache-2.0"
] | null | null | null | qiskit_experiments/calibration_management/calibrations.py | blakejohnson/qiskit-experiments | 2ecffa8f7d6aa6e8e6c1fc0a1c30f7776c49c493 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 42.766355 | 100 | 0.619493 |
cb9ef821a05d706367656f99cdab7853cf9f59ee | 1,857 | py | Python | simple_open_graph/templatetags/simple_open_graph.py | haylmfao/django-simple-open-graph | 7f89642177a63f3bf8ab854079ca3880ccc0b33c | [
"ISC"
] | null | null | null | simple_open_graph/templatetags/simple_open_graph.py | haylmfao/django-simple-open-graph | 7f89642177a63f3bf8ab854079ca3880ccc0b33c | [
"ISC"
] | null | null | null | simple_open_graph/templatetags/simple_open_graph.py | haylmfao/django-simple-open-graph | 7f89642177a63f3bf8ab854079ca3880ccc0b33c | [
"ISC"
] | null | null | null | from django import template
from django.contrib.sites.models import Site
from django.conf import settings
from ..utils import string_to_dict, roundrobin
register = template.Library()
| 35.711538 | 97 | 0.621971 |
cb9f2472517947e2b5fac779ceaa7fa3480dd5fd | 11,974 | py | Python | src/articles/migrations/0001_initial.py | yaongli/spadger | 6eb2b192a1a6583119b0653c884b72614f6c4ce1 | [
"MIT"
] | null | null | null | src/articles/migrations/0001_initial.py | yaongli/spadger | 6eb2b192a1a6583119b0653c884b72614f6c4ce1 | [
"MIT"
] | null | null | null | src/articles/migrations/0001_initial.py | yaongli/spadger | 6eb2b192a1a6583119b0653c884b72614f6c4ce1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-17 13:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 61.405128 | 193 | 0.583681 |
cb9f2ac1408c2f916e30ffa4b8d707e4f3ab1eff | 2,281 | py | Python | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | config/scripts/dados-pygen/models.py | uhndev/hateoas-server | 7eac7928b9fb3be2ffcd9ec1eb833ba533333e98 | [
"Unlicense",
"MIT"
] | null | null | null | import random
import config
from faker import Factory
fake = Factory.create()
| 31.246575 | 77 | 0.644454 |
cba1e5ee657e21be26d1c5f3f324dd59ed05b687 | 1,764 | py | Python | src/test.py | chatdip98/Acoustic-Scene-Classification | cf410f14a1efb3e3dd2bbc240c24882969be98a9 | [
"MIT"
] | null | null | null | src/test.py | chatdip98/Acoustic-Scene-Classification | cf410f14a1efb3e3dd2bbc240c24882969be98a9 | [
"MIT"
] | null | null | null | src/test.py | chatdip98/Acoustic-Scene-Classification | cf410f14a1efb3e3dd2bbc240c24882969be98a9 | [
"MIT"
] | null | null | null | #------testing the trained model and ensemble weights on the test data to get the final accuracy
#importing required libraries and modules
import os
import sys
import cv2
import numpy as np
from preprocess import Preprocess
from data_split import Load
from conv_net import CNN
from ensemble import Ensemble
... | 30.947368 | 129 | 0.696145 |
cba336f303822d216fee29cb5e72a4202e1f1e8c | 23,152 | py | Python | sdk/python/pulumi_google_native/clouddeploy/v1/rollout.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 44 | 2021-04-18T23:00:48.000Z | 2022-02-14T17:43:15.000Z | sdk/python/pulumi_google_native/clouddeploy/v1/rollout.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 354 | 2021-04-16T16:48:39.000Z | 2022-03-31T17:16:39.000Z | sdk/python/pulumi_google_native/clouddeploy/v1/rollout.py | AaronFriel/pulumi-google-native | 75d1cda425e33d4610348972cd70bddf35f1770d | [
"Apache-2.0"
] | 8 | 2021-04-24T17:46:51.000Z | 2022-01-05T10:40:21.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 47.056911 | 581 | 0.649447 |
cba3386606abea1e2c3dfe0f137338d796e10c89 | 539 | py | Python | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | null | null | null | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | 2 | 2022-01-22T15:17:15.000Z | 2022-01-22T16:08:27.000Z | batuta/base.py | makecodes/batuta | b460bdb216e0d9486dacab3273b891d7515287c3 | [
"Unlicense"
] | null | null | null | from dynaconf import FlaskDynaconf
from flask import Flask
| 26.95 | 82 | 0.714286 |
cba3c31ab7fc8222a105013241179fdcaa174f59 | 493 | py | Python | classification/model/model.py | hirune924/CVpipeline | c58c9d390188b1fd6890e789a4c48d5810c4c16e | [
"Apache-2.0"
] | null | null | null | classification/model/model.py | hirune924/CVpipeline | c58c9d390188b1fd6890e789a4c48d5810c4c16e | [
"Apache-2.0"
] | null | null | null | classification/model/model.py | hirune924/CVpipeline | c58c9d390188b1fd6890e789a4c48d5810c4c16e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import torchvision.models as models
import torch.nn as nn
| 29 | 93 | 0.685598 |
cba3c8c86c31d37a6802b0db75b82af1fea73139 | 371 | py | Python | dragonBall.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 2 | 2020-04-11T14:15:10.000Z | 2020-05-12T09:57:29.000Z | dragonBall.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | null | null | null | dragonBall.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 1 | 2021-10-10T02:13:42.000Z | 2021-10-10T02:13:42.000Z | from collections import Counter
if __name__ == '__main__':
tc = int(input())
while tc > 0:
x = int(input())
balls = list(map(int, input().split()))
count = Counter(balls)
balls = list(filter((x).__ne__, balls))
if balls[0] == count[balls[0]]:
print("YES")
... | 24.733333 | 47 | 0.493261 |
cba5dfbe2d49f584c80eda8eee7e4ad40b87a300 | 1,502 | py | Python | packages/terminal_colors_old/gen_colors.py | kboone/dotfiles | 317b3c0708cf6117e4978c2c681acd925f770830 | [
"MIT"
] | null | null | null | packages/terminal_colors_old/gen_colors.py | kboone/dotfiles | 317b3c0708cf6117e4978c2c681acd925f770830 | [
"MIT"
] | null | null | null | packages/terminal_colors_old/gen_colors.py | kboone/dotfiles | 317b3c0708cf6117e4978c2c681acd925f770830 | [
"MIT"
] | null | null | null | from skimage import color
import numpy as np
colors = [
("base03", (10., +00., -05.)),
("base02", (15., +00., -05.)),
("base01", (45., -01., -05.)),
("base00", (50., -01., -05.)),
("base0", (60., -01., -02.)),
("base1", (65., -01., -02.)),
("base2", (92., -00., +02.)),
... | 28.339623 | 61 | 0.509321 |
cba775635f305bef7a2f3716c42191c15630f3b0 | 2,890 | py | Python | python/smurff/test/test_predict_sideinfo.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | python/smurff/test/test_predict_sideinfo.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | python/smurff/test/test_predict_sideinfo.py | msteijaert/smurff | e6066d51e1640e9aad0118628ba72c9d662919fb | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import pandas as pd
import scipy.sparse
import smurff
verbose = 0
if __name__ == '__main__':
unittest.main()
| 37.051282 | 93 | 0.652249 |
cba87e9e56a8df3787933c3ffc011bf3adb0fc4e | 16,055 | py | Python | gewittergefahr/dissertation/plot_gridrad_domains.py | dopplerchase/GewitterGefahr | 4415b08dd64f37eba5b1b9e8cc5aa9af24f96593 | [
"MIT"
] | 26 | 2018-10-04T01:07:35.000Z | 2022-01-29T08:49:32.000Z | gewittergefahr/dissertation/plot_gridrad_domains.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 4 | 2017-12-25T02:01:08.000Z | 2018-12-19T01:54:21.000Z | gewittergefahr/dissertation/plot_gridrad_domains.py | liuximarcus/GewitterGefahr | d819874d616f98a25187bfd3091073a2e6d5279e | [
"MIT"
] | 11 | 2017-12-10T23:05:29.000Z | 2022-01-29T08:49:33.000Z | """Plots GridRad domains.
Specifically, plots number of convective days with GridRad data at each grid
point.
"""
import os.path
import argparse
import numpy
import matplotlib
matplotlib.use('agg')
from matplotlib import pyplot
from mpl_toolkits.basemap import Basemap
from gewittergefahr.gg_io import gridrad_io
from ... | 36.405896 | 80 | 0.741015 |
cba9095436981a955ade3bb8b2c607697e624bf0 | 1,181 | py | Python | quetz/migrations/versions/30241b33d849_add_task_pending_state.py | maresb/quetz | 55313ca9c2ae04577d23a1dddb38c045b4a056f4 | [
"BSD-3-Clause"
] | 108 | 2020-09-16T16:15:01.000Z | 2022-03-29T02:49:31.000Z | quetz/migrations/versions/30241b33d849_add_task_pending_state.py | maresb/quetz | 55313ca9c2ae04577d23a1dddb38c045b4a056f4 | [
"BSD-3-Clause"
] | 317 | 2020-09-07T18:37:33.000Z | 2022-03-25T13:10:41.000Z | quetz/migrations/versions/30241b33d849_add_task_pending_state.py | LaudateCorpus1/quetz | 339018ee3c35ae6700bea611d16a9924a33a0606 | [
"BSD-3-Clause"
] | 36 | 2020-09-07T22:01:27.000Z | 2022-03-26T17:06:07.000Z | """add task pending state
Revision ID: 30241b33d849
Revises: cd404ed93cc0
Create Date: 2021-01-07 14:39:43.251123
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = '30241b33d849'
down_revision = 'cd404ed93cc0'
branch_labels = None
depends_on = None
| 26.244444 | 127 | 0.639289 |
cbaa96df2a077d7e67016498747d36eb53959c6e | 4,932 | py | Python | tests/RL_cache.py | RasoulNik/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 18d0111f94804ebe68aaa9610f71cdb3b4d271e8 | [
"MIT"
] | null | null | null | tests/RL_cache.py | RasoulNik/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 18d0111f94804ebe68aaa9610f71cdb3b4d271e8 | [
"MIT"
] | null | null | null | tests/RL_cache.py | RasoulNik/Deep-Reinforcement-Learning-Algorithms-with-PyTorch | 18d0111f94804ebe68aaa9610f71cdb3b4d271e8 | [
"MIT"
] | null | null | null | import random
import matplotlib.pyplot as plt
import gym
# from agents.actor_critic_agents.A2C import A2C
# from agents.actor_critic_agents.A3C import A3C
# from agents.actor_critic_agents.SAC import SAC
from agents.actor_critic_agents.SAC_Discrete import SAC_Discrete
# from agents.DQN_agents.DQN_HER import DQN_HER
#... | 36.80597 | 111 | 0.696067 |
cbaae545764c50282977504f4e3f0989363b73d8 | 13,812 | py | Python | train_meta.py | Huadous/eecs545finalproject | 8e66128deaad687806d6f86c1b20da5983861a63 | [
"MIT"
] | 4 | 2021-12-09T08:00:00.000Z | 2021-12-10T04:06:41.000Z | train_meta.py | Huadous/eecs545finalproject | 8e66128deaad687806d6f86c1b20da5983861a63 | [
"MIT"
] | null | null | null | train_meta.py | Huadous/eecs545finalproject | 8e66128deaad687806d6f86c1b20da5983861a63 | [
"MIT"
] | null | null | null | import os, argparse, torch, math, time, random
from os.path import join, isfile
import torch.nn.functional as F
from torch.optim import SGD
from torch.distributions import Beta
from tensorboardX import SummaryWriter
import torchvision
import modified_vgg
from dataloader import dataloader1
import dataloader
from utils ... | 44.269231 | 135 | 0.640602 |
cbacafb5f56c73013cbcb2e365565a0e912e919c | 4,138 | py | Python | Monitor/MonitorPlatform/webshell_detect/jsp_cnn_model.py | Leeyuxun/CNN-WebShell-Detect-Tool | c7858b08590734f0b81c0a36c1887a7f53a0b7ad | [
"Apache-2.0"
] | 2 | 2022-01-08T01:52:59.000Z | 2022-03-08T14:51:29.000Z | Monitor/MonitorPlatform/webshell_detect/jsp_cnn_model.py | Leeyuxun/CNN-WebShell-Detect-Tool | c7858b08590734f0b81c0a36c1887a7f53a0b7ad | [
"Apache-2.0"
] | null | null | null | Monitor/MonitorPlatform/webshell_detect/jsp_cnn_model.py | Leeyuxun/CNN-WebShell-Detect-Tool | c7858b08590734f0b81c0a36c1887a7f53a0b7ad | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
import commands
import multiprocessing
import os
import re
import gensim
import numpy as np
import tensorflow as tf
import tflearn
from sklearn import metrics
from tflearn.data_utils import to_categorical
from tflearn.layers.conv import conv_1d, global_max_pool
from tflearn.layers.core import input_data... | 39.409524 | 174 | 0.710488 |
cbad9816e7e831c48ab81d643492857b4a3aa670 | 2,433 | py | Python | Task1/1.py | phumin1994/AiTasks | 92004196e1d31c062090a2df10fb4ec9751a661b | [
"MIT"
] | null | null | null | Task1/1.py | phumin1994/AiTasks | 92004196e1d31c062090a2df10fb4ec9751a661b | [
"MIT"
] | null | null | null | Task1/1.py | phumin1994/AiTasks | 92004196e1d31c062090a2df10fb4ec9751a661b | [
"MIT"
] | null | null | null | import pandas as pd
df = pd.read_csv('data.csv') # read the data
print(df)
df_median, df_avg, average_val, median_val = cleandata(df)
print("------------------------------------------------------------")
print("the AVERAGE value is:", average_val)
print(df_avg)
print("-----------------------------------------------... | 38.619048 | 104 | 0.602548 |
cbaebd6bb5d7abbb741351bd7616c2e249f796fe | 2,408 | py | Python | RGBMatrixEmulator/graphics/__init__.py | WardBrian/RGBMatrixEmulator | edc17d6fac3fad5e313732e07b41798d5ab66cd2 | [
"MIT"
] | null | null | null | RGBMatrixEmulator/graphics/__init__.py | WardBrian/RGBMatrixEmulator | edc17d6fac3fad5e313732e07b41798d5ab66cd2 | [
"MIT"
] | null | null | null | RGBMatrixEmulator/graphics/__init__.py | WardBrian/RGBMatrixEmulator | edc17d6fac3fad5e313732e07b41798d5ab66cd2 | [
"MIT"
] | null | null | null | from skimage.draw import line as sk_line
from skimage.draw import circle_perimeter as sk_circle_perimeter
from RGBMatrixEmulator.graphics.color import Color
from RGBMatrixEmulator.graphics.font import Font
| 35.411765 | 102 | 0.620017 |
cbaee4fc044ef35d2b85f72b5d495f1dbab0a143 | 1,291 | py | Python | dorado/scheduling/scripts/skygrid.py | bwgref/dorado-scheduling | f3f8784bcc0646d10b7bc2c11040ef9c933b92b1 | [
"NASA-1.3"
] | 6 | 2021-03-02T04:44:21.000Z | 2021-11-16T21:30:32.000Z | dorado/scheduling/scripts/skygrid.py | bwgref/dorado-scheduling | f3f8784bcc0646d10b7bc2c11040ef9c933b92b1 | [
"NASA-1.3"
] | 75 | 2021-03-11T21:00:02.000Z | 2021-10-19T18:48:13.000Z | dorado/scheduling/scripts/skygrid.py | bwgref/dorado-scheduling | f3f8784bcc0646d10b7bc2c11040ef9c933b92b1 | [
"NASA-1.3"
] | 6 | 2021-03-11T17:34:35.000Z | 2021-08-02T15:45:36.000Z | #
# Copyright 2021 United States Government as represented by the Administrator
# of the National Aeronautics and Space Administration. No copyright is claimed
# in the United States under Title 17, U.S. Code. All Other Rights Reserved.
#
# SPDX-License-Identifier: NASA-1.3
#
"""Generate a grid of pointings on the sky... | 32.275 | 79 | 0.671572 |
cbaf10d4a0aa43c5e434d348b34679078fdc57a8 | 1,475 | py | Python | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | null | null | null | python/euler002/euler002.py | marvins/ProjectEuler | 55a377bb9702067bac6908c1316c578498402668 | [
"MIT"
] | 1 | 2020-12-16T09:25:19.000Z | 2020-12-16T09:25:19.000Z | #!/usr/bin/env python
#---------------------------------#
#- Fibonacci Lookup Table -#
#---------------------------------#
fib_table = {0:0, 1:1, 2:1, 3:2}
#---------------------------------#
#- Compute Fibonacci Value -#
#---------------------------------#
#----------------------------------#
#- Fin... | 19.666667 | 50 | 0.44 |
cbaf1b82c2ecb6d4674dab39d250186c1e1db49e | 42,365 | py | Python | aiidalab_sssp/steps.py | aiidalab/aiidalab-sssp | 4f06d7fdff32b86996e85b6c65b372a41f0192a4 | [
"MIT"
] | null | null | null | aiidalab_sssp/steps.py | aiidalab/aiidalab-sssp | 4f06d7fdff32b86996e85b6c65b372a41f0192a4 | [
"MIT"
] | 1 | 2022-03-28T10:22:31.000Z | 2022-03-28T10:22:31.000Z | aiidalab_sssp/steps.py | aiidalab/aiidalab-sssp | 4f06d7fdff32b86996e85b6c65b372a41f0192a4 | [
"MIT"
] | 1 | 2021-09-30T08:47:39.000Z | 2021-09-30T08:47:39.000Z | """widget for pseudo inmport"""
import io
import os
import ipywidgets as ipw
import traitlets
from aiida import orm
from aiida.common import NotExistent
from aiida.engine import ProcessState, submit
from aiida.orm import Node, ProcessNode, load_code
from aiida.plugins import DataFactory, WorkflowFactory
from aiida_sss... | 35.511316 | 120 | 0.59214 |
cbb1f2e05a98843b34d5e931f7f14a6abe1ca529 | 3,634 | py | Python | bin/vigilance-server.py | EricMountain/weather_risk_metrics | f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6 | [
"MIT"
] | null | null | null | bin/vigilance-server.py | EricMountain/weather_risk_metrics | f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6 | [
"MIT"
] | null | null | null | bin/vigilance-server.py | EricMountain/weather_risk_metrics | f5962da2547efd7d6bfef6c73d4d5a5b5edbcae6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from prometheus_client import start_http_server, Gauge
import urllib.request
import random
from datetime import datetime
import re
import time
test = False
risks = ["vent violent", "pluie-inondation", "orages", "inondation", "neige-verglas", "canicule", "grand-froid", "avalanches", "vagues-submersi... | 34.609524 | 171 | 0.625206 |
cbb2c9ec40013427f4fe502f0cc420d2699e4241 | 2,058 | py | Python | examples/tutorial/paging_exception_force.py | Wlgen/force-riscv | 9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8 | [
"Apache-2.0"
] | null | null | null | examples/tutorial/paging_exception_force.py | Wlgen/force-riscv | 9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8 | [
"Apache-2.0"
] | null | null | null | examples/tutorial/paging_exception_force.py | Wlgen/force-riscv | 9f09b86c5a21ca00f8e5ade8e5186d65bc3e26f8 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is licensed under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# THIS SOFTWARE IS PR... | 33.737705 | 89 | 0.677357 |
cbb2f8c56eb07a52d75952fa30eba4aacd7d35ed | 2,104 | py | Python | test.py | letri6tdn/PythonScript_URLshortener | 2d0c80b411b3bdf51ae5446b9bc1080ad54c4215 | [
"MIT"
] | null | null | null | test.py | letri6tdn/PythonScript_URLshortener | 2d0c80b411b3bdf51ae5446b9bc1080ad54c4215 | [
"MIT"
] | null | null | null | test.py | letri6tdn/PythonScript_URLshortener | 2d0c80b411b3bdf51ae5446b9bc1080ad54c4215 | [
"MIT"
] | null | null | null | # main.py
#----------------------------------------------------------------------#
#
#
#
#----------------------------------------------------------------------#
from math import floor
from sqlite3 import OperationalError
import string, sqlite3
from urllib.parse import urlparse
import http.server
import socketserver
... | 25.349398 | 75 | 0.568916 |
cbb30457af6425432e38e401ec2a806f28ae68ab | 6,968 | py | Python | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | SimpleHTTPSAuthServer.py | oza6ut0ne/SimpleHTTPSAuthServer | 084e5c0cb686e8c41ba1f911a6bc8939f2e24a59 | [
"MIT"
] | null | null | null | import base64
import os
import random
import re
import socket
import sys
import ssl
import string
if sys.version_info[0] == 2:
from BaseHTTPServer import HTTPServer as Server
from SimpleHTTPServer import SimpleHTTPRequestHandler as Handler
from SocketServer import ThreadingMixIn
from httplib import UNA... | 33.5 | 86 | 0.617681 |
cbb368bf34a52b4d1ae95c69d88a1beadca9817c | 903 | py | Python | image/__init__.py | navroz-lamba/Image-Classifier-using-VGG-19-CNN | baceb95297b95be19d7e024eac50d5f754d26fa7 | [
"MIT"
] | 1 | 2020-12-18T18:45:00.000Z | 2020-12-18T18:45:00.000Z | image/__init__.py | navroz-lamba/Image-Classifier-using-VGG-19-CNN | baceb95297b95be19d7e024eac50d5f754d26fa7 | [
"MIT"
] | null | null | null | image/__init__.py | navroz-lamba/Image-Classifier-using-VGG-19-CNN | baceb95297b95be19d7e024eac50d5f754d26fa7 | [
"MIT"
] | null | null | null | import flask
from flask import Flask, url_for
from tensorflow.keras.applications.imagenet_utils import preprocess_input, decode_predictions
from tensorflow.keras.models import load_model
from tensorflow.keras.preprocessing import image
import numpy as np
# instantiating a class object
app = Flask(__name__)
model_pat... | 27.363636 | 93 | 0.746401 |
cbb3e7b69b02ac60b8543485427f81f9ba135f8f | 5,419 | py | Python | interface/tasks.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | 1 | 2021-07-29T10:33:26.000Z | 2021-07-29T10:33:26.000Z | interface/tasks.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | null | null | null | interface/tasks.py | cni-iisc/campus-rakshak-simulator-app | ef30a1fb57b72d25534945526fdb77d158ad16c1 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
from .helper import convert, run_aggregate_sims
from django.core.files import File
from celery import shared_task
from django.core.mail import EmailMultiAlternatives
from django.conf import settings
from anymail.exceptions import AnymailError
from config.celery import app
from .m... | 41.366412 | 209 | 0.704927 |
cbb42904bf11927aff25c0adb772e27632914a8b | 6,566 | py | Python | lightweight_mmm/media_transforms_test.py | google/lightweight_mmm | 9bbecbeb691e79019f920cf904d8cb8b918e6638 | [
"Apache-2.0"
] | 45 | 2022-02-10T09:04:16.000Z | 2022-03-29T23:54:16.000Z | lightweight_mmm/media_transforms_test.py | google/lightweight_mmm | 9bbecbeb691e79019f920cf904d8cb8b918e6638 | [
"Apache-2.0"
] | 2 | 2022-02-14T16:02:55.000Z | 2022-02-17T12:43:40.000Z | lightweight_mmm/media_transforms_test.py | google/lightweight_mmm | 9bbecbeb691e79019f920cf904d8cb8b918e6638 | [
"Apache-2.0"
] | 4 | 2022-02-16T12:21:25.000Z | 2022-03-31T16:20:45.000Z | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 34.925532 | 80 | 0.646055 |
cbb6cf178d364c3e00e075d9dd9ffee20b00a722 | 9,680 | py | Python | tests/plugins/inventory/test_simple_inventory.py | kyawmyomin/nornir | 4ae009ac894ec5b412c9859fe699b68747526255 | [
"Apache-2.0"
] | null | null | null | tests/plugins/inventory/test_simple_inventory.py | kyawmyomin/nornir | 4ae009ac894ec5b412c9859fe699b68747526255 | [
"Apache-2.0"
] | null | null | null | tests/plugins/inventory/test_simple_inventory.py | kyawmyomin/nornir | 4ae009ac894ec5b412c9859fe699b68747526255 | [
"Apache-2.0"
] | null | null | null | import os
from nornir.plugins.inventory import SimpleInventory
dir_path = os.path.dirname(os.path.realpath(__file__))
| 39.510204 | 95 | 0.31219 |
cbb6d2fb3dae2334128d6c0086f42f31db307ebc | 5,016 | py | Python | main.py | shipwreckdev/cloudflare-reconciler | deefb016e5013ad95d59a9e7cc03ce42632e6757 | [
"Apache-2.0"
] | null | null | null | main.py | shipwreckdev/cloudflare-reconciler | deefb016e5013ad95d59a9e7cc03ce42632e6757 | [
"Apache-2.0"
] | null | null | null | main.py | shipwreckdev/cloudflare-reconciler | deefb016e5013ad95d59a9e7cc03ce42632e6757 | [
"Apache-2.0"
] | null | null | null | import argparse
import json
import os
import requests
import lib.cf as cf
import lib.aws as aws
import lib.gh as gh
version = "v1.0"
api_base = 'https://api.cloudflare.com/client/v4/zones'
api_key = os.getenv("CLOUDFLARE_API_KEY")
content_type = 'application/json'
email = os.getenv("CLOUDFLARE_EMAIL")
github_repo = "... | 43.617391 | 279 | 0.546451 |
cbb79607ab88cfb6b0f8cd6f2a609f20a5508f65 | 867 | py | Python | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | app/helpers.py | QwertygidQ/phystech-backend | 657a5862d3bab91623551c7f4f6868cfdb1df4b8 | [
"MIT"
] | null | null | null | from flask import request, jsonify
from functools import wraps
from schema import SchemaError
| 25.5 | 53 | 0.517878 |
cbbbcdd9a359c2d8bfbdd28aa61f833e1d9364df | 362 | py | Python | tests/__init__.py | zhester/jdi | 18d43331f15776a5ef94342ac85a24a083a3c7d7 | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | zhester/jdi | 18d43331f15776a5ef94342ac85a24a083a3c7d7 | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | zhester/jdi | 18d43331f15776a5ef94342ac85a24a083a3c7d7 | [
"BSD-2-Clause"
] | null | null | null | #=============================================================================
#
# JDI Unit Tests
#
#=============================================================================
"""
JDI Unit Tests
==============
Run all unit tests from project's root directory.
python -m unittest discover
python3 -m unittes... | 16.454545 | 78 | 0.345304 |
cbbe7b8eb169b6440ac5e6b29f5cb22280403941 | 13,380 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/grades/course_grade.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/grades/course_grade.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/grades/course_grade.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | """
CourseGrade Class
"""
from abc import abstractmethod
from collections import OrderedDict, defaultdict
from ccx_keys.locator import CCXLocator
from django.conf import settings
from lazy import lazy
from openedx.core.lib.grade_utils import round_away_from_zero
from xmodule import block_metadata_utils
from .confi... | 39.122807 | 120 | 0.67145 |
cbbeb4b320b177296806f93013a315f5fa18949c | 1,385 | py | Python | horoscope.py | Srol/Slack-Horoscope-Bot | af88183ff9810cf1606496c11ed949c5b4c27773 | [
"MIT"
] | 2 | 2019-11-17T19:28:44.000Z | 2020-04-17T15:41:15.000Z | horoscope.py | Srol/Slack-Horoscope-Bot | af88183ff9810cf1606496c11ed949c5b4c27773 | [
"MIT"
] | null | null | null | horoscope.py | Srol/Slack-Horoscope-Bot | af88183ff9810cf1606496c11ed949c5b4c27773 | [
"MIT"
] | null | null | null | import os
import feedparser
import json
from flask import Flask, request
# Add your Slack token to the variable below.
SLACK_TOKEN = ""
url = ""
payload = {}
headers = {'content-type': 'application/json'}
app = Flask(__name__)
# this endpoint listens for incoming slash commands from Slack.
final = ""
signs = ["arie... | 30.777778 | 133 | 0.711913 |
cbbecb922401274e31912c3ad07cb8e5c2af2c9e | 9,507 | py | Python | scripts/segmentation/PointNet/run_pointnet_segmentation.py | devskroy1/ForkedBrainSurfaceTK | 774035ab5eae6c0a40eb96eab43d489d3f722eaa | [
"MIT"
] | null | null | null | scripts/segmentation/PointNet/run_pointnet_segmentation.py | devskroy1/ForkedBrainSurfaceTK | 774035ab5eae6c0a40eb96eab43d489d3f722eaa | [
"MIT"
] | null | null | null | scripts/segmentation/PointNet/run_pointnet_segmentation.py | devskroy1/ForkedBrainSurfaceTK | 774035ab5eae6c0a40eb96eab43d489d3f722eaa | [
"MIT"
] | null | null | null | import os.path as osp
PATH_TO_ROOT = osp.join(osp.dirname(osp.realpath(__file__)), '..', '..', '..')
import sys
sys.path.append(PATH_TO_ROOT)
import pickle
import time
import numpy as np
import torch
from torch.utils.tensorboard import SummaryWriter
from torch.optim.lr_scheduler import StepLR
from models.pointnet.src.u... | 47.064356 | 146 | 0.429999 |
cbbf46aa2d552297fb3fb4b62e94db053b8ce1eb | 1,581 | py | Python | basic_auth/handler.py | andrei-shabanski/s3pypi | 48718149cf43d6e3252712d072d5b0de850bac55 | [
"MIT"
] | 249 | 2016-04-07T08:36:44.000Z | 2021-06-03T06:55:08.000Z | basic_auth/handler.py | andrei-shabanski/s3pypi | 48718149cf43d6e3252712d072d5b0de850bac55 | [
"MIT"
] | 58 | 2016-06-08T22:41:18.000Z | 2021-05-28T20:03:39.000Z | basic_auth/handler.py | AstrocyteResearch/s3pypi | cd8d02015772dcded3b3db1a588c89e174d10471 | [
"MIT"
] | 100 | 2016-06-23T23:28:23.000Z | 2021-03-12T15:09:29.000Z | import base64
import hashlib
import json
import logging
from dataclasses import dataclass
import boto3
log = logging.getLogger()
region = "us-east-1"
unauthorized = dict(
status="401",
statusDescription="Unauthorized",
headers={
"www-authenticate": [
{"key": "WWW-Authenticate",... | 23.597015 | 73 | 0.648956 |
cbc097bb33323fa8088310bd343222a9655bd612 | 11,674 | py | Python | misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py | criscola/G-Gen | 293d4f46cb40d7917a10a95921040a14a086efc1 | [
"MIT"
] | 1 | 2018-10-19T10:08:45.000Z | 2018-10-19T10:08:45.000Z | misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py | criscola/G-Gen | 293d4f46cb40d7917a10a95921040a14a086efc1 | [
"MIT"
] | null | null | null | misc/zip/Cura-master/plugins/CuraEngineBackend/ProcessSlicedLayersJob.py | criscola/G-Gen | 293d4f46cb40d7917a10a95921040a14a086efc1 | [
"MIT"
] | null | null | null | #Copyright (c) 2017 Ultimaker B.V.
#Cura is released under the terms of the LGPLv3 or higher.
import gc
from UM.Job import Job
from UM.Application import Application
from UM.Mesh.MeshData import MeshData
from UM.Preferences import Preferences
from UM.View.GL.OpenGLContext import OpenGLContext
from UM.Message import ... | 46.696 | 165 | 0.650677 |
cbc1c81f810a9f128eb409484181a04a43ba666d | 262 | py | Python | sts/metric.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 18 | 2021-12-22T09:41:24.000Z | 2022-03-19T12:54:30.000Z | sts/metric.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | null | null | null | sts/metric.py | LostCow/KLUE | 73b1b0526cf6b1b6f5ef535b9527d8abe6ca1a77 | [
"MIT"
] | 4 | 2021-12-26T11:31:46.000Z | 2022-03-28T07:55:45.000Z | from datasets import load_metric
| 26.2 | 68 | 0.763359 |
cbc2172760f370c3b4d7c60769a266040ec53d06 | 442 | py | Python | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | BITs/2014/Abdrahmanova_G_I/task_3_1.py | YukkaSarasti/pythonintask | eadf4245abb65f4400a3bae30a4256b4658e009c | [
"Apache-2.0"
] | null | null | null | # 3. 1.
# , " ", . , .
name=input(' - . \n ? ')
print(' : ', name)
print(' : - ', name)
input(' Enter')
#Abdrahmanova G. I.
#7.03.2016 | 55.25 | 193 | 0.757919 |
cbc43e11b971288afc6b07c65f700ea9583287dc | 3,523 | py | Python | musiquepy/data/db.py | vitormoura/musiquepy | 8065f85f216796d9c00a72ce4cc08cda8c461720 | [
"MIT"
] | null | null | null | musiquepy/data/db.py | vitormoura/musiquepy | 8065f85f216796d9c00a72ce4cc08cda8c461720 | [
"MIT"
] | null | null | null | musiquepy/data/db.py | vitormoura/musiquepy | 8065f85f216796d9c00a72ce4cc08cda8c461720 | [
"MIT"
] | null | null | null | import io
import logging
import os
import pathlib
from datetime import datetime
from typing import List
from musiquepy.data.errors import MusiquepyExistingUserError
from musiquepy.data.media import get_profile_pictures_dir
from musiquepy.data.model import (
Album, AlbumPhoto, Artist, MusicGenre, MusicTrack, User)
... | 28.184 | 75 | 0.649446 |
cbc4abcb91f41f2e38663e2ea3967fca2c3cbd66 | 7,301 | py | Python | main.py | Drejky/Genetic-ML | 80076246d4a5e75834d95607d04ab0e7e0132c48 | [
"MIT"
] | null | null | null | main.py | Drejky/Genetic-ML | 80076246d4a5e75834d95607d04ab0e7e0132c48 | [
"MIT"
] | null | null | null | main.py | Drejky/Genetic-ML | 80076246d4a5e75834d95607d04ab0e7e0132c48 | [
"MIT"
] | null | null | null | import random
from copy import deepcopy, copy
import timeit
adrMask = 63 #mask to get our addr bits
cmdMask = 192 #mask to get our command bits
stepLim = 500 #Limited num of instructions
tourFlag = int(input("Input 1 for tournament, 0 for roulette"))
mixFlag = int(input("Input 1 for mixed children, 0... | 26.26259 | 99 | 0.490207 |
cbc5080d810af6158c768f9c9a1d4621bd817296 | 233 | py | Python | wordVerification.py | Androcks/SlideWord | 0ea3ff886ee142fa2211667d1bd9b73da66129e9 | [
"Apache-2.0"
] | null | null | null | wordVerification.py | Androcks/SlideWord | 0ea3ff886ee142fa2211667d1bd9b73da66129e9 | [
"Apache-2.0"
] | null | null | null | wordVerification.py | Androcks/SlideWord | 0ea3ff886ee142fa2211667d1bd9b73da66129e9 | [
"Apache-2.0"
] | null | null | null | import enchant
##Use our custom word list
wordList = enchant.request_pwl_dict("truncListWords.txt")
##Takes our string from the stage and checks it
| 23.3 | 58 | 0.755365 |
cbc5cfd99ada9e09f7fc9fada68993cce224acc8 | 2,264 | py | Python | server/main/components/widgets_content.py | INRIM/forms-theme-italia | 45415a16e32c8c93ee8d234262149ed0635cf212 | [
"MIT"
] | null | null | null | server/main/components/widgets_content.py | INRIM/forms-theme-italia | 45415a16e32c8c93ee8d234262149ed0635cf212 | [
"MIT"
] | null | null | null | server/main/components/widgets_content.py | INRIM/forms-theme-italia | 45415a16e32c8c93ee8d234262149ed0635cf212 | [
"MIT"
] | null | null | null | from .widgets_base import WidgetsBase
| 37.114754 | 116 | 0.590989 |
cbc761dabe74f703096f63ce1ad894e6e2334799 | 1,000 | py | Python | app/pages/forms.py | MicroprocessorX069/Todo-web-app | c68f2e26eec1c89ab2257a22071133216c743ca0 | [
"Apache-2.0"
] | null | null | null | app/pages/forms.py | MicroprocessorX069/Todo-web-app | c68f2e26eec1c89ab2257a22071133216c743ca0 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:55:48.000Z | 2021-06-02T00:55:48.000Z | app/pages/forms.py | MicroprocessorX069/Todo-web-app | c68f2e26eec1c89ab2257a22071133216c743ca0 | [
"Apache-2.0"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length
from app.models import User
from flask import request
| 43.478261 | 94 | 0.766 |
cbc875e1529c951ebc046e3930e392b9612e4907 | 1,302 | py | Python | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 7 | 2015-07-15T06:47:16.000Z | 2020-10-17T20:51:09.000Z | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | null | null | null | study/hfppnetwork/hfppnetwork/sms/logginghelper.py | NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention | 4facd935920e77239c25323ca7e233cb899ba9f5 | [
"Apache-2.0"
] | 8 | 2017-01-30T02:27:01.000Z | 2021-04-21T04:15:48.000Z | # -*- coding: utf-8 -*-
"""
Copyright (C) 2013 TopCoder Inc., All Rights Reserved.
This is the module that defines logging helper methods
This module resides in Python source file logginghelper.py
Thread Safety:
It is thread safe because no module-level variable is used.
@author: TCSASSEMBLER
@version: 1.0
"""
import... | 31.756098 | 76 | 0.69278 |
cbca5e82b89e8b333ac4997324a7acc5ec0553d9 | 2,566 | py | Python | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | 1 | 2022-02-02T07:30:20.000Z | 2022-02-02T07:30:20.000Z | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | null | null | null | hw8/next_permutation.py | alexander-paskal/ece143-hw | 9e3d475cb44fd16f87879cb74dc9305d70805355 | [
"MIT"
] | null | null | null | """
Given a permutation of any length, generate the next permutation in lexicographic order.
For example, this are the permutations for [1,2,3] in lexicographic order.
# >>> list(it.permutations([1,2,3]))
[(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]
Then, your function next_permutation(t:tuple)... | 27.591398 | 96 | 0.537412 |
cbcc9ac8c10c1c0b1c3e2bbf32ea484ec87b41ee | 329 | py | Python | 8/8.10/great_magician.py | singi2016cn/python-scaffold | 274e508d1919da67e599aa73be139800c043bce4 | [
"MIT"
] | null | null | null | 8/8.10/great_magician.py | singi2016cn/python-scaffold | 274e508d1919da67e599aa73be139800c043bce4 | [
"MIT"
] | null | null | null | 8/8.10/great_magician.py | singi2016cn/python-scaffold | 274e508d1919da67e599aa73be139800c043bce4 | [
"MIT"
] | null | null | null | #
magicians = ['singi', 'sunjun']
make_great(magicians)
show_magicians(magicians)
| 16.45 | 48 | 0.632219 |
cbce87157b7abadfa6bd754cf2488a033bb5028e | 4,889 | py | Python | scratchpad/voids_paper/bin/tests/test_smartvis.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/voids_paper/bin/tests/test_smartvis.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | scratchpad/voids_paper/bin/tests/test_smartvis.py | arshadzahangirchowdhury/TomoEncoders | 9c2b15fd515d864079f198546821faee5d78df17 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""
import numpy as np
import matplotlib.pyplot as plt
import os
import h5py
import sys
import time
import seaborn as sns
import pandas as pd
sys.path.append('/home/atekawade/TomoEncoders/scratchpad/voids_paper/configs')
from params import model_path, get_model_p... | 41.084034 | 155 | 0.720802 |
cbce8d593e80431df2ec54039449d1df714915f5 | 13,919 | py | Python | src/Python/flask/app.py | mwaseem75/iris-python-template | c8d75e22a6eee33e796d28f5508fd656a6ea58d6 | [
"MIT"
] | null | null | null | src/Python/flask/app.py | mwaseem75/iris-python-template | c8d75e22a6eee33e796d28f5508fd656a6ea58d6 | [
"MIT"
] | null | null | null | src/Python/flask/app.py | mwaseem75/iris-python-template | c8d75e22a6eee33e796d28f5508fd656a6ea58d6 | [
"MIT"
] | 1 | 2022-02-21T05:14:48.000Z | 2022-02-21T05:14:48.000Z | from flask import Flask, jsonify, Response, request, make_response, render_template
from definitions.passenger import Passenger
import json,util,io,random
import iris
from matplotlib.backends.backend_agg import FigureCanvasAgg
from matplotlib.backends.backend_svg import FigureCanvasSVG
from matplotlib.figure import Fi... | 39.997126 | 254 | 0.613694 |
cbce9d4c6da7ba7b0d4c2b3424496f644f1e7e6d | 10,390 | py | Python | unihan_db/importer.py | linnaea/unihan-db | da3730dce0c4aad425e7ab9ae1331762b45793f2 | [
"MIT"
] | null | null | null | unihan_db/importer.py | linnaea/unihan-db | da3730dce0c4aad425e7ab9ae1331762b45793f2 | [
"MIT"
] | null | null | null | unihan_db/importer.py | linnaea/unihan-db | da3730dce0c4aad425e7ab9ae1331762b45793f2 | [
"MIT"
] | null | null | null | from unihan_db.tables import (
UnhnLocation,
UnhnLocationkXHC1983,
UnhnReading,
kCantonese,
kCCCII,
kCheungBauer,
kCheungBauerIndex,
kCihaiT,
kDaeJaweon,
kDefinition,
kFenn,
kFennIndex,
kGSR,
kHanYu,
kHanyuPinlu,
kHanyuPinyin,
kHDZRadBreak,
kIICore... | 31.580547 | 123 | 0.528104 |
cbcfd99b4f40fab95fa519c4f1885786acde8bae | 2,373 | py | Python | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | sylwek/data_provider.py | fizykpl/Synerise2 | baf755004d62b3d14a0988bbe8a5add15f10d066 | [
"MIT"
] | null | null | null | import time
import numpy as np
from matplotlib import pyplot as plt
from sylwek.similarity_measure import SimilarityMeasure
from utils import mnist_reader
if __name__ == "__main__":
dp = DataProvider()
exetime = int(round(time.time() * 1000))
id = 50
mi = dp.similarity_measure.most_similar(id, 3)
... | 28.939024 | 115 | 0.604298 |
cbd13396135d0966c93e66018afe90dc4090a475 | 4,933 | py | Python | mmtbx/regression/fix_cablam/tst_one_resid_rotation.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 2 | 2021-03-18T12:31:57.000Z | 2022-03-14T06:27:06.000Z | mmtbx/regression/fix_cablam/tst_one_resid_rotation.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | null | null | null | mmtbx/regression/fix_cablam/tst_one_resid_rotation.py | hbrunie/cctbx_project | 2d8cb383d50fe20cdbbe4bebae8ed35fabce61e5 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-03-26T12:52:30.000Z | 2021-03-26T12:52:30.000Z | from __future__ import absolute_import, division, print_function
import iotbx.pdb
import mmtbx.model
from mmtbx.building.cablam_idealization import cablam_idealization, master_phil
import sys
import libtbx.load_env
pdb_str = """\
ATOM 2327 N GLY A 318 169.195 115.930 63.690 1.00216.32 N
ATOM 23... | 59.433735 | 107 | 0.598419 |
cbd272df4b8ee10d7b3a479337364711ca636afe | 9,835 | py | Python | mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/stock/doctype/batch/test_batch.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.exceptions import ValidationError
import unittest
from erpnext.stock.doctype.batch.batch import get_batch_qty, UnableToSelect... | 29.270833 | 102 | 0.716523 |
cbd3598d91ff793b9cf6d9fdbee232e97be7c505 | 35,768 | py | Python | morphological_analysis_v4.py | rivernuthead/DoD_analysis | b06219d4026e89a9b9f1e8939010a63612750c80 | [
"MIT"
] | null | null | null | morphological_analysis_v4.py | rivernuthead/DoD_analysis | b06219d4026e89a9b9f1e8939010a63612750c80 | [
"MIT"
] | null | null | null | morphological_analysis_v4.py | rivernuthead/DoD_analysis | b06219d4026e89a9b9f1e8939010a63612750c80 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 25 16:02:58 2022
@author: erri
"""
import os
import numpy as np
import math
from morph_quantities_func_v2 import morph_quantities
import matplotlib.pyplot as plt
# SINGLE RUN NAME
run = 'q07_1'
DoD_name = 'DoD_s1-s0_filt_nozero_rst.txt'
# Step betw... | 50.87909 | 246 | 0.605374 |
cbd426fc2cf477bb0eedd50f6dab71f0530cee3c | 1,987 | py | Python | SimulationLego/laptop.py | MajesticKhan/Reinforcement-Learning | c488e547afe571b47446be76abf6f5c80e8e6be5 | [
"MIT"
] | 4 | 2022-03-30T00:45:29.000Z | 2022-03-30T00:45:49.000Z | SimulationLego/laptop.py | MajesticKhan/Reinforcement-Learning | c488e547afe571b47446be76abf6f5c80e8e6be5 | [
"MIT"
] | null | null | null | SimulationLego/laptop.py | MajesticKhan/Reinforcement-Learning | c488e547afe571b47446be76abf6f5c80e8e6be5 | [
"MIT"
] | null | null | null | #--------------------------------------------------------Import libraries
import pickle
import socket
import struct
import cv2
from stable_baselines import PPO2
import numpy as np
import imageio
#--------------------------------------------------------Establiosh connection
s = socket.socket(socket.AF_INET,socket.SOCK_... | 32.048387 | 116 | 0.560141 |
cbd784fa49d1aeb99aa20877269a15eeae7feeb6 | 502 | py | Python | examples/py/async-generator-multiple-tickers.py | diwenshi61/ccxt | ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6 | [
"MIT"
] | 24,910 | 2017-10-27T21:41:59.000Z | 2022-03-31T23:08:57.000Z | examples/py/async-generator-multiple-tickers.py | diwenshi61/ccxt | ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6 | [
"MIT"
] | 8,201 | 2017-10-28T10:19:28.000Z | 2022-03-31T23:49:37.000Z | examples/py/async-generator-multiple-tickers.py | diwenshi61/ccxt | ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6 | [
"MIT"
] | 6,632 | 2017-10-28T02:53:24.000Z | 2022-03-31T23:20:14.000Z | # -*- coding: utf-8 -*-
import asyncio
import ccxt.async_support as ccxt
asyncio.get_event_loop().run_until_complete(main())
| 21.826087 | 74 | 0.629482 |
cbd7e3697d362246ff728b1ea5a7f422a2d3dc8c | 3,198 | py | Python | sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 2 | 2020-03-03T23:11:13.000Z | 2020-03-30T18:50:55.000Z | sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_2_preview/models/__init__.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 2 | 2020-05-21T22:51:22.000Z | 2020-05-26T20:53:01.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 45.042254 | 94 | 0.735147 |
cbd972da2a2d979e028c1ffafee8336e9a3e9560 | 447 | py | Python | fitbox/consultas/views.py | ravellys/fitbox | 3ca61bf4d27f47dd7fabb1301afdf5c79284f68b | [
"MIT"
] | null | null | null | fitbox/consultas/views.py | ravellys/fitbox | 3ca61bf4d27f47dd7fabb1301afdf5c79284f68b | [
"MIT"
] | 1 | 2020-10-29T20:03:11.000Z | 2020-10-29T20:03:11.000Z | fitbox/consultas/views.py | ravellys/fitbox | 3ca61bf4d27f47dd7fabb1301afdf5c79284f68b | [
"MIT"
] | 2 | 2020-10-27T16:46:18.000Z | 2020-11-04T02:29:59.000Z | # from django.shortcuts import render
# Create your views here.
from django.urls import reverse_lazy
from django.views.generic import CreateView
from fitbox.consultas.forms import ConsultaForm
from fitbox.consultas.models import Consulta
| 27.9375 | 60 | 0.805369 |
cbd9e2d20a7a2ee57818c7e4187d5b9ba2868f18 | 598 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | 3 | 2016-06-24T21:14:37.000Z | 2017-03-07T05:36:33.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/base.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | import os
STATIC_FOLDERS = (
'{{cookiecutter.repo_name}}/common/static',
'{{cookiecutter.repo_name}}/users/static',
)
# Muffin Plugins
PLUGINS = (
'muffin_jinja2',
'muffin_peewee',
'muffin_session',
)
# Plugins configurations
SESSION_SECRET = 'SecretHere'
SESSION_LOGIN_URL = '/users/signin/'
JI... | 22.148148 | 97 | 0.70903 |
cbda5badb8318614b5c5a7f8c3574fc8ff467460 | 6,905 | py | Python | rpyc/core/netref.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | rpyc/core/netref.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | rpyc/core/netref.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | """
NetRef - transparent network references implementation.
"""
import sys
import inspect
import types
import cPickle as pickle
from rpyc.core import consts
_local_netref_attrs = frozenset([
'____conn__', '____oid__', '__class__', '__cmp__', '__del__', '__delattr__',
'__dir__', '__doc__', '__getattr__', '__g... | 39.232955 | 84 | 0.625344 |
cbdac3877bab597aa23c31ff7320e50f74d4b377 | 381 | py | Python | hpc/config_manager.py | PRIDE-Toolsuite/trackhub-creator | ade2cfafeaad95088664caecacb783b501c170aa | [
"Apache-2.0"
] | null | null | null | hpc/config_manager.py | PRIDE-Toolsuite/trackhub-creator | ade2cfafeaad95088664caecacb783b501c170aa | [
"Apache-2.0"
] | null | null | null | hpc/config_manager.py | PRIDE-Toolsuite/trackhub-creator | ade2cfafeaad95088664caecacb783b501c170aa | [
"Apache-2.0"
] | null | null | null | #
# Author: Manuel Bernal Llinares
# Project: trackhub-creator
# Timestamp : 11-09-2017 11:10
# ---
# 2017 Manuel Bernal Llinares <mbdebian@gmail.com>
# All rights reserved.
#
"""
Configuration Manager for this HPC Module
"""
if __name__ == '__main__':
print("ERROR: This script is part of a pipeline collection... | 23.8125 | 114 | 0.695538 |
cbdd50556efcc7c8ce43ff47982d04d269c61a42 | 3,230 | py | Python | exampleScripts/basicClusterHoehnerExampleData.py | StSchulze/pyGCluster | 92bb6855faa9e40582326cabfb0323eace72d4b3 | [
"MIT"
] | 7 | 2015-01-30T19:47:31.000Z | 2019-12-19T04:06:59.000Z | exampleScripts/basicClusterHoehnerExampleData.py | StSchulze/pyGCluster | 92bb6855faa9e40582326cabfb0323eace72d4b3 | [
"MIT"
] | 1 | 2016-02-22T08:55:39.000Z | 2016-02-25T11:08:01.000Z | exampleScripts/basicClusterHoehnerExampleData.py | StSchulze/pyGCluster | 92bb6855faa9e40582326cabfb0323eace72d4b3 | [
"MIT"
] | 6 | 2017-04-01T13:29:50.000Z | 2019-12-19T04:06:58.000Z | #!/usr/bin/env python
"""
Testscript to demonstrate functionality of pyGCluster
This script imports the data of Hoehner et al. (2013) and executes pyGCluster
with 250,000 iterations of resampling. pyGCluster will evoke 4 threads
(if possible), which each require approx. 1.5GB RAM. Please make sure you have
enough ... | 36.704545 | 199 | 0.662539 |
cbdd5fbfea56b41fd5be10c9535f73893f760618 | 6,767 | py | Python | fpga_interchange/convert.py | gatecat/python-fpga-interchange | ddae5bcea8524ffcea61a3558f1971b0b54cf165 | [
"0BSD"
] | 27 | 2020-10-27T19:07:19.000Z | 2021-11-14T17:11:49.000Z | fpga_interchange/convert.py | gatecat/python-fpga-interchange | ddae5bcea8524ffcea61a3558f1971b0b54cf165 | [
"0BSD"
] | 61 | 2020-10-08T17:59:12.000Z | 2021-10-01T07:53:53.000Z | fpga_interchange/convert.py | gatecat/python-fpga-interchange | ddae5bcea8524ffcea61a3558f1971b0b54cf165 | [
"0BSD"
] | 12 | 2020-10-07T22:24:32.000Z | 2021-11-18T21:40:47.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020 The SymbiFlow Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
""" Utilities for converting between file form... | 32.37799 | 226 | 0.685385 |
cbddc035a6a6d8c78e66f93a222b27dafd4be1e5 | 3,602 | py | Python | sharpy/plans/tactics/speed_mining.py | DuncanDHall/sharpy-sc2 | 7a47a7538ad99214e3f0288b6213cac882551180 | [
"MIT"
] | null | null | null | sharpy/plans/tactics/speed_mining.py | DuncanDHall/sharpy-sc2 | 7a47a7538ad99214e3f0288b6213cac882551180 | [
"MIT"
] | null | null | null | sharpy/plans/tactics/speed_mining.py | DuncanDHall/sharpy-sc2 | 7a47a7538ad99214e3f0288b6213cac882551180 | [
"MIT"
] | null | null | null | from typing import List, Dict
from sc2.ids.ability_id import AbilityId
from sc2.position import Point2
from sc2.unit import Unit
from sc2.units import Units
from sharpy.interfaces import IZoneManager
from sharpy.managers.core.roles import UnitTask
from sharpy.plans.acts import ActBase
from sharpy.sc2math import get_in... | 37.134021 | 103 | 0.631316 |