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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e026ffcf7e117885cffc525c99c91ed9f7c0054 | 5,132 | py | Python | thecube/fortnitecube.py | martinohanlon/thecube | 41f7788cc0a754f3fc380d6a9db2fe1672d4b941 | [
"MIT"
] | 2 | 2021-12-27T18:19:46.000Z | 2021-12-27T18:19:47.000Z | thecube/fortnitecube.py | martinohanlon/thecube | 41f7788cc0a754f3fc380d6a9db2fe1672d4b941 | [
"MIT"
] | null | null | null | thecube/fortnitecube.py | martinohanlon/thecube | 41f7788cc0a754f3fc380d6a9db2fe1672d4b941 | [
"MIT"
] | null | null | null | from gpiozero import Button
from time import sleep, time
import blinkt
import random
import requests
import sys
from constants import *
FNT_URL = "https://api.fortnitetracker.com/v1/profile/{}/{}"
FNT_REFRESH_TIME_SECS = 30
# debug shorter refresh
# FNT_REFRESH_TIME_SECS = 10
def get_lifetime_wins():
header = {"... | 25.788945 | 110 | 0.571707 |
0e04b755a0e6d8844b6bf932a0953df1cef59253 | 8,704 | py | Python | server/application/utils_files.py | c-jordi/pdf2data | daa9f8b58e6603063b411ba7fba89054c924c5bc | [
"MIT"
] | null | null | null | server/application/utils_files.py | c-jordi/pdf2data | daa9f8b58e6603063b411ba7fba89054c924c5bc | [
"MIT"
] | 1 | 2022-01-09T12:06:40.000Z | 2022-01-09T12:06:40.000Z | server/application/utils_files.py | c-jordi/pdf2data | daa9f8b58e6603063b411ba7fba89054c924c5bc | [
"MIT"
] | null | null | null |
import os, sys
from uuid import uuid4
import numpy as np
from pathlib import Path
import xml.etree.ElementTree as ET
import copy
import re
from urllib import request, parse
from pdfminer.layout import LAParams
from pdfminer.high_level import extract_text_to_fp
from pdf2image import convert_from_path
import matplot... | 37.679654 | 132 | 0.590648 |
0e0641eb1c77685ac180e16ede2719bf186f1b48 | 616 | py | Python | acq4/util/PySideImporter.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 1 | 2020-06-04T17:04:53.000Z | 2020-06-04T17:04:53.000Z | acq4/util/PySideImporter.py | aleonlein/acq4 | 4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555 | [
"MIT"
] | 24 | 2016-09-27T17:25:24.000Z | 2017-03-02T21:00:11.000Z | acq4/util/PySideImporter.py | sensapex/acq4 | 9561ba73caff42c609bd02270527858433862ad8 | [
"MIT"
] | 4 | 2016-10-19T06:39:36.000Z | 2019-09-30T21:06:45.000Z | # -*- coding: utf-8 -*-
from __future__ import print_function
"""This module installs an import hook which overrides PyQt4 imports to pull from
PySide instead. Used for transitioning between the two libraries."""
import imp
import sys
sys.meta_path.append(PyQtImporter()) | 29.333333 | 82 | 0.655844 |
0e0971e24a4cebbe3f58d427eb92c896a2027f86 | 619 | py | Python | L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1Trigger/DTTrigger/python/dtTriggerPrimitiveDigis_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from L1TriggerConfig.DTTPGConfigProducers.L1DTTPGConfigFromDB_cff import *
dtTriggerPrimitiveDigis = cms.EDProducer("DTTrigProd",
debug = cms.untracked.bool(False),
# DT digis input tag
digiTag = cms.InputTag("muonDTDigis"),
# Convert output into DTTF sector nu... | 36.411765 | 74 | 0.733441 |
0e09835187c4782a7d307df7391d9bcf5ed91648 | 14,774 | py | Python | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | null | null | null | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | 1 | 2022-03-08T16:16:26.000Z | 2022-03-08T16:16:26.000Z | PythonChessEnviroment.py | teleansh/PythonChessEnviorment | cd19a9148a0da8e69c0efcf21dd559ab2084e07a | [
"MIT"
] | null | null | null | b = "r n b q k b n r p p p p p p p p".split(" ") + ['.']*32 + "p p p p p p p p r n b q k b n r".upper().split(" ")
| 26.66787 | 173 | 0.425274 |
0e0d7b53e41d2bf0a7a2e0799a229887f7c07708 | 5,408 | py | Python | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | 1 | 2018-02-11T07:34:29.000Z | 2018-02-11T07:34:29.000Z | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | 1 | 2019-01-14T22:42:45.000Z | 2019-01-14T22:42:45.000Z | txosc/async.py | oubiwann/txosc | 6560a0dc9ef564d785170d4529967599455e4f3e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- test-case-name: txosc.test.test_async -*-
# Copyright (c) 2009 Alexandre Quessy, Arjan Scherpenisse
# See LICENSE for details.
"""
Asynchronous OSC sender and receiver using Twisted
"""
import struct
import socket
from twisted.internet import defer, protocol
from twisted.application.intern... | 28.765957 | 143 | 0.645895 |
0e0f6259ba624db7fa0c2c5d4fdc06aa5c711408 | 2,740 | py | Python | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | main.py | theIsaacLim/hakdPizza | 0471dc6ee9fc049bd10f0a8aa9d707f2c0388fc5 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep # Sleep will pause the program
import os # for getting the local path
from json import loads
dirpath = os.getcwd() # gets local path
driver = webdriver.Chrome(dirpath + "/chromedriver")
# GET PAGE AND CHANGE LANGUAGE TO ENGLISH
driver.get("http://www.dominos.... | 42.153846 | 147 | 0.729562 |
0e0fc6085ae3cea9518a28dc404a0b76c2ffa235 | 127,770 | py | Python | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | pandatools/Client.py | Jon-Burr/panda-client | ff7ee8fc8481537cf604d983340eda102f041a20 | [
"Apache-2.0"
] | null | null | null | '''
client methods
'''
import os
if os.environ.has_key('PANDA_DEBUG'):
print "DEBUG : importing %s" % __name__
import re
import sys
import time
import stat
import types
try:
import json
except:
import simplejson as json
import random
import urllib
import struct
import commands
import cPickle as pickle
i... | 34.757889 | 149 | 0.555796 |
0e106a42c5cef8990bd1a339b05449023a909ba7 | 6,952 | py | Python | pseudo_dojo/refdata/nist/atomicdata.py | fnaccarato/pseudo_dojo | 5a887c13d617b533ab3aab23af2c9466728d2f75 | [
"CC-BY-4.0"
] | null | null | null | pseudo_dojo/refdata/nist/atomicdata.py | fnaccarato/pseudo_dojo | 5a887c13d617b533ab3aab23af2c9466728d2f75 | [
"CC-BY-4.0"
] | null | null | null | pseudo_dojo/refdata/nist/atomicdata.py | fnaccarato/pseudo_dojo | 5a887c13d617b533ab3aab23af2c9466728d2f75 | [
"CC-BY-4.0"
] | null | null | null | #!/usr/bin/env python
import os.path
import sys
from pprint import pprint
import nist_database
def sort_dict(d, key=None, reverse=False):
"""
Returns an OrderedDict object whose keys are ordered according to their
value.
Args:
d:
Input dictionary
key:
functio... | 29.087866 | 99 | 0.542434 |
0e1150fe2b483ba84007e43e4d97cff782d1e09f | 1,292 | py | Python | collect_users/methods/papers_with_code/papers_with_code.py | UtrechtUniversity/SWORDS-UU | d9b45706566054541625ec363e41bdf97f58c6b1 | [
"MIT"
] | 1 | 2022-02-09T14:53:45.000Z | 2022-02-09T14:53:45.000Z | collect_users/methods/papers_with_code/papers_with_code.py | UtrechtUniversity/SWORDS-UU | d9b45706566054541625ec363e41bdf97f58c6b1 | [
"MIT"
] | 28 | 2021-11-30T14:37:17.000Z | 2022-03-22T12:46:53.000Z | collect_users/methods/papers_with_code/papers_with_code.py | UtrechtUniversity/SWORDS-UU | d9b45706566054541625ec363e41bdf97f58c6b1 | [
"MIT"
] | 1 | 2022-01-17T10:53:26.000Z | 2022-01-17T10:53:26.000Z | """
This file retrieves Github usernames from PapersWithCode.com
"""
import argparse
from pathlib import Path
from datetime import datetime
import pandas as pd
from paperswithcode import PapersWithCodeClient
if __name__ == '__main__':
# Initiate the parser
parser = argparse.ArgumentParser()
# Add argum... | 31.512195 | 74 | 0.630031 |
0e13465d1affe7ff9fd1bfc60e3a0c993a225447 | 5,087 | py | Python | mc.py | ABeastofPrey/AmazingGym | d92697f3aa1025550140d3318f045fa1f497a2ea | [
"MIT"
] | 1 | 2018-05-20T02:52:51.000Z | 2018-05-20T02:52:51.000Z | mc.py | ABeastofPrey/AmazingGym | d92697f3aa1025550140d3318f045fa1f497a2ea | [
"MIT"
] | null | null | null | mc.py | ABeastofPrey/AmazingGym | d92697f3aa1025550140d3318f045fa1f497a2ea | [
"MIT"
] | null | null | null | import gym
import time
import random
import custom_envs
import pprint
if __name__ == "__main__":
main() | 31.596273 | 105 | 0.500295 |
0e148b2e22f2b41098a22593e27a07d48422bed6 | 163 | py | Python | website_multi_company/__init__.py | RL-OtherApps/website-addons | b0903daefa492c298084542de2c99f1ab13cd4b4 | [
"MIT"
] | 1 | 2020-03-01T03:04:21.000Z | 2020-03-01T03:04:21.000Z | website_multi_company/__init__.py | RL-OtherApps/website-addons | b0903daefa492c298084542de2c99f1ab13cd4b4 | [
"MIT"
] | null | null | null | website_multi_company/__init__.py | RL-OtherApps/website-addons | b0903daefa492c298084542de2c99f1ab13cd4b4 | [
"MIT"
] | null | null | null | from . import models
| 23.285714 | 92 | 0.760736 |
0e14aa7397011fb6549ac691e2e8a76643b7af57 | 2,107 | py | Python | src/strategy/prepare_table.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | 9 | 2017-05-14T05:12:32.000Z | 2022-01-13T08:11:07.000Z | src/strategy/prepare_table.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | null | null | null | src/strategy/prepare_table.py | f304646673/scheduler_frame | 0a9ba45a6523cbf9bd50e9fa8e08c8bfd2a9204a | [
"Apache-2.0"
] | 7 | 2017-08-28T08:31:43.000Z | 2020-03-03T07:18:37.000Z | #coding=utf-8
#-*- coding: utf-8 -*-
import os
import sys
sys.path.append("../frame/")
from loggingex import LOG_INFO
from loggingex import LOG_ERROR
from loggingex import LOG_WARNING
from mysql_manager import mysql_manager
if __name__ == "__main__":
import os
os.chdir("../../")
sys.path.append("./src/f... | 30.1 | 82 | 0.65401 |
0e14cf2f5e13c579c96107e8e4c16365f6b6c29e | 175 | py | Python | Usage.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | null | null | null | Usage.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | 3 | 2019-02-23T00:30:07.000Z | 2020-09-28T05:25:20.000Z | Usage.py | josephworks/PythonWS | 7391580de63291018094037f87b930fe44c6eae8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
print("""\
Usage: thingy [OPTIONS]
-h Display this usage message
-H hostname Hostname to connect to
""")
| 25 | 57 | 0.52 |
0e157e46738a2ac4c1910719044fabebfba253a4 | 1,118 | py | Python | pythran/tests/cases/diffusion_pure_python.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/tests/cases/diffusion_pure_python.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/tests/cases/diffusion_pure_python.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | # Reference: http://continuum.io/blog/the-python-and-the-complied-python
#pythran export diffusePurePython(float [][], float [][], int)
#runas import numpy as np;lx,ly=(2**7,2**7);u=np.zeros([lx,ly],dtype=np.double);u[int(lx/2),int(ly/2)]=1000.0;tempU=np.zeros([lx,ly],dtype=np.double);diffusePurePython(u,tempU,500)
#be... | 41.407407 | 180 | 0.545617 |
0e1611a439cc500182af60fc5b7313268d89e061 | 50 | py | Python | Python/Uti1016_Distancia.py | bragabriel/Beecrowd | a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b | [
"MIT"
] | null | null | null | Python/Uti1016_Distancia.py | bragabriel/Beecrowd | a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b | [
"MIT"
] | null | null | null | Python/Uti1016_Distancia.py | bragabriel/Beecrowd | a71dd9926b422b5e82ae84bb5ccd76cf3ebd292b | [
"MIT"
] | null | null | null | km = int(input())
print('{} minutos'.format(km*2)) | 25 | 32 | 0.62 |
0e1612123e14f431ace50f65fe276956a0f82853 | 815 | py | Python | tests/test_use_profile.py | popadi/git-profile | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 3 | 2019-08-24T19:24:49.000Z | 2019-08-30T09:44:46.000Z | tests/test_use_profile.py | sturmianseq/git-profiles | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 9 | 2019-09-01T13:25:25.000Z | 2019-09-05T19:52:25.000Z | tests/test_use_profile.py | popadi/git-profile | ca20173f63f57c21868c4c49c1e5c515d4bc87fd | [
"MIT"
] | 2 | 2020-09-14T16:22:26.000Z | 2021-08-15T08:24:09.000Z | import os
import sys
import pytest
from random import randrange
myPath = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, myPath + "/../")
import src.utils.messages as msg
from src.executor import executor, parser
from src.git_manager.git_manager import GitManager
| 25.46875 | 64 | 0.710429 |
3850ec7be1a92046c96a2377fc82bb0172a1239a | 1,150 | py | Python | src/old_code_feb_12/supervised/supervised_learning.py | suresh-guttikonda/sim-environment | cc8faec17714d58c0e1f0227c8b7d4cf8817a136 | [
"Apache-2.0"
] | null | null | null | src/old_code_feb_12/supervised/supervised_learning.py | suresh-guttikonda/sim-environment | cc8faec17714d58c0e1f0227c8b7d4cf8817a136 | [
"Apache-2.0"
] | null | null | null | src/old_code_feb_12/supervised/supervised_learning.py | suresh-guttikonda/sim-environment | cc8faec17714d58c0e1f0227c8b7d4cf8817a136 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
# set programatically the path to 'sim-environment' directory (alternately can also set PYTHONPATH)
set_path('/media/suresh/research/awesome-robotics/active-slam/catkin_ws/src/sim-environment/src')
import measurement as m
import utils.constants as constants
import numpy as np
import... | 28.75 | 99 | 0.765217 |
3851d980a5efbf62939503a79d5a3c1ef1ba74bc | 2,413 | py | Python | nio/crypto/key_request.py | BURG3R5/matrix-nio | 8b3d7fc0dde6f5f03124a39299f9d7c735731861 | [
"Apache-2.0"
] | null | null | null | nio/crypto/key_request.py | BURG3R5/matrix-nio | 8b3d7fc0dde6f5f03124a39299f9d7c735731861 | [
"Apache-2.0"
] | null | null | null | nio/crypto/key_request.py | BURG3R5/matrix-nio | 8b3d7fc0dde6f5f03124a39299f9d7c735731861 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2020 Damir Jeli <poljar@termina.org.uk>
#
# Permission to use, copy, modify, and/or distribute this software for
# any purpose with or without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROV... | 34.971014 | 79 | 0.684625 |
385257dce453f9dc6b74ab4ff222f4ac8563e40e | 1,997 | py | Python | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | null | null | null | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | 27 | 2018-09-30T07:59:21.000Z | 2020-11-05T19:25:41.000Z | server/editors/views.py | nickdotreid/opioid-mat-decision-aid | bbc2a0d8931d59cd6ab64b0b845e88c8dc1af5d1 | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate
from django.shortcuts import render
from rest_framework import serializers
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from rest_framework.response import Response
from .models import Editor
fr... | 31.203125 | 63 | 0.589885 |
38550991c5a6866344d99b7c34b1049931dfba9f | 12,440 | py | Python | LAUG/nlu/jointBERT_new/train.py | wise-east/LAUG | c5fc674e76a0a20622a77301f9986ad58713d58d | [
"Apache-2.0"
] | 10 | 2021-07-10T12:40:42.000Z | 2022-03-14T07:51:06.000Z | LAUG/nlu/jointBERT_new/train.py | wise-east/LAUG | c5fc674e76a0a20622a77301f9986ad58713d58d | [
"Apache-2.0"
] | 5 | 2021-07-01T11:23:58.000Z | 2021-09-09T05:51:02.000Z | LAUG/nlu/jointBERT_new/train.py | wise-east/LAUG | c5fc674e76a0a20622a77301f9986ad58713d58d | [
"Apache-2.0"
] | 2 | 2021-09-13T16:26:42.000Z | 2021-11-16T09:26:54.000Z | import argparse
import os
import json
from torch.utils.tensorboard import SummaryWriter
import random
import numpy as np
import zipfile
import torch
from transformers import AdamW, get_linear_schedule_with_warmup
from LAUG.nlu.jointBERT_new.dataloader import Dataloader
from LAUG.nlu.jointBERT_new.jointBERT im... | 52.268908 | 347 | 0.573392 |
3855ed738db4b64cfe3b9d2b137100a80877de8c | 19,361 | py | Python | app.py | Baiyuetribe/2019nCovGlobalDashboard | 129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888 | [
"MIT"
] | 8 | 2020-02-18T08:21:00.000Z | 2020-05-11T15:37:24.000Z | app.py | Baiyuetribe/2019nCovGlobalDashboard | 129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888 | [
"MIT"
] | 1 | 2020-03-26T07:31:54.000Z | 2020-03-26T07:31:54.000Z | app.py | Baiyuetribe/2019nCovGlobalDashboard | 129a1be9b1c5e50a6891ee3d1b1f81a4b95dc888 | [
"MIT"
] | 2 | 2020-03-13T04:18:06.000Z | 2020-06-05T14:27:52.000Z | import json
import time
import requests
import re
from flask import Flask, render_template, jsonify
from pyecharts.charts import Map, Timeline,Kline,Line,Bar,WordCloud
from pyecharts import options as opts
from pyecharts.globals import SymbolType
app = Flask(__name__)
#
cn_to_en = {'': 'Angola', '': 'Afghanistan', ''... | 43.216518 | 330 | 0.594597 |
385a1293e848a01d5e145a500532168c2c1b01d7 | 752 | py | Python | game/migrations/0002_table.py | koualsky/texas-holdem | b0c4f84ae5d4b679c870a9312376cfa1e208ec16 | [
"MIT"
] | 4 | 2019-09-05T21:22:46.000Z | 2020-12-19T19:23:08.000Z | game/migrations/0002_table.py | koualsky/texas-holdem | b0c4f84ae5d4b679c870a9312376cfa1e208ec16 | [
"MIT"
] | 34 | 2019-08-07T11:58:07.000Z | 2021-06-10T21:49:00.000Z | game/migrations/0002_table.py | koualsky/texas-holdem | b0c4f84ae5d4b679c870a9312376cfa1e208ec16 | [
"MIT"
] | 4 | 2020-04-05T03:42:10.000Z | 2022-03-03T03:04:40.000Z | # Generated by Django 2.2.4 on 2019-08-03 15:01
from django.db import migrations, models
| 30.08 | 114 | 0.56383 |
385af8dbd8e654da5aeddc36ed67c47b4de8fade | 10,913 | py | Python | tests/activity/test_activity_post_digest_jats.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | tests/activity/test_activity_post_digest_jats.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | tests/activity/test_activity_post_digest_jats.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | # coding=utf-8
import unittest
from mock import patch
from ddt import ddt, data
from digestparser.objects import Digest
import activity.activity_PostDigestJATS as activity_module
from activity.activity_PostDigestJATS import activity_PostDigestJATS as activity_object
import tests.activity.settings_mock as settings_mock... | 40.269373 | 87 | 0.647668 |
385c79e6128ba15d725a285dc68b5ab163c633e5 | 3,718 | py | Python | torrent_client/algorithms/uploader.py | x0x/polygon | a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb | [
"MIT"
] | 141 | 2016-05-24T19:33:07.000Z | 2022-03-21T11:56:28.000Z | torrent_client/algorithms/uploader.py | x0x/polygon | a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb | [
"MIT"
] | 11 | 2017-11-20T12:11:41.000Z | 2022-01-04T15:42:19.000Z | torrent_client/algorithms/uploader.py | x0x/polygon | a3df41594d3590b99a3b17cc0fe68d8da6ebe5bb | [
"MIT"
] | 39 | 2017-01-13T05:19:25.000Z | 2022-02-19T06:40:31.000Z | import asyncio
import itertools
import logging
import random
import time
from typing import List, Iterable, cast
from torrent_client.algorithms.peer_manager import PeerManager
from torrent_client.models import Peer, TorrentInfo
from torrent_client.utils import humanize_size
| 39.978495 | 106 | 0.654115 |
385d6856a9a5bd3cc3198cc6a148973209e3fb30 | 1,898 | py | Python | game/Tableros.py | GeinerGV/TS1_ProyectoFinal | b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d | [
"MIT"
] | null | null | null | game/Tableros.py | GeinerGV/TS1_ProyectoFinal | b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d | [
"MIT"
] | null | null | null | game/Tableros.py | GeinerGV/TS1_ProyectoFinal | b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d | [
"MIT"
] | null | null | null | from pygame import sprite, surface, Color
from game.Bloques import CeldasTablero
from game.Snake import Snake | 37.215686 | 144 | 0.727608 |
385fbc5a17a50e64c4dcfcdc7d4027af3cdc018a | 1,688 | py | Python | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | Modules/Projects/models/project.py | Carlosma7/Odoo | c234fcc18d15d4d8369e237286bee610fd76ceee | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
from odoo import models, fields, api
from odoo.exceptions import ValidationError
# Class for project management and their relationships
# Extension Class for the project class
| 41.170732 | 129 | 0.742299 |
385fcab1d94b44c44b147f9d7caf4a23de41ae7a | 402 | py | Python | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | 1 | 2022-01-20T10:30:05.000Z | 2022-01-20T10:30:05.000Z | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | null | null | null | models/food.py | ByK95/food_order | c3a40f00128cc381894b80b61ca6b919bbf49c4e | [
"MIT"
] | null | null | null | from app.shared.models import db
from app.models.mixins import ModelMixin
| 33.5 | 85 | 0.716418 |
3860c236069152282ade2ef47710a9608a5cce61 | 452 | py | Python | Solutions.py/2563/r1_bird.py | TianTcl/KU01-challenge | 5a0069840e26d9a8cf8fa592679341154fcb3a15 | [
"MIT"
] | 2 | 2021-10-30T06:27:48.000Z | 2021-10-30T08:14:50.000Z | Solutions.py/2563/r1_bird.py | TianTcl/KU01-challenge | 5a0069840e26d9a8cf8fa592679341154fcb3a15 | [
"MIT"
] | null | null | null | Solutions.py/2563/r1_bird.py | TianTcl/KU01-challenge | 5a0069840e26d9a8cf8fa592679341154fcb3a15 | [
"MIT"
] | null | null | null | tree_count, tree_hinput, tree_chosen = int(input()), input().split(), 0
tree_height = [int(x) for x in tree_hinput]
for each_tree in range(tree_count):
if each_tree==0 and tree_height[0]>tree_height[1]:tree_chosen+=1
elif each_tree==tree_count-1 and tree_height[each_tree]>tree_height[each_tree-1]:tree_chose... | 56.5 | 100 | 0.75885 |
3860cb5cba14b8fecfed007842043e8fa3e05ff6 | 2,230 | py | Python | code/ExperimentModules/dataset_manager.py | PAL-ML/CLIPPER | c971c89a9315d27ddb007082ff209153859f5906 | [
"MIT"
] | 3 | 2021-06-05T05:00:54.000Z | 2021-06-16T21:17:52.000Z | code/ExperimentModules/dataset_manager.py | PAL-ML/CLIPPER | c971c89a9315d27ddb007082ff209153859f5906 | [
"MIT"
] | null | null | null | code/ExperimentModules/dataset_manager.py | PAL-ML/CLIPPER | c971c89a9315d27ddb007082ff209153859f5906 | [
"MIT"
] | null | null | null | from . import datasets | 41.296296 | 112 | 0.622422 |
386175f2b9107f26e003609e3390ad4e1d9fa916 | 1,574 | py | Python | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | 3 | 2019-02-09T10:52:55.000Z | 2021-09-19T14:14:36.000Z | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | null | null | null | setup.py | sjkingo/ticketus | 90f2781af9418e9e2c6470ca50c9a6af9ce098ff | [
"BSD-2-Clause"
] | 3 | 2018-03-04T18:05:02.000Z | 2021-09-19T14:14:38.000Z | from setuptools import find_packages, setup
from ticketus import __version__ as version
setup(
name='ticketus',
version=version,
license='BSD',
author='Sam Kingston',
author_email='sam@sjkwi.com.au',
description='Ticketus is a simple, no-frills ticketing system for helpdesks.',
url='https:... | 32.791667 | 82 | 0.625159 |
38621c0d16222e67db6c7b5b3f98915d36505bc9 | 35,178 | py | Python | pygame_gui/elements/ui_window.py | OleksiiBulba/pygame_gui | 6751b2796612f8b2ed6cc8b093507eeef7d106c5 | [
"MIT"
] | null | null | null | pygame_gui/elements/ui_window.py | OleksiiBulba/pygame_gui | 6751b2796612f8b2ed6cc8b093507eeef7d106c5 | [
"MIT"
] | null | null | null | pygame_gui/elements/ui_window.py | OleksiiBulba/pygame_gui | 6751b2796612f8b2ed6cc8b093507eeef7d106c5 | [
"MIT"
] | null | null | null | from typing import Union, Tuple
import pygame
from pygame_gui._constants import UI_WINDOW_CLOSE, UI_WINDOW_MOVED_TO_FRONT, UI_BUTTON_PRESSED
from pygame_gui._constants import OldType
from pygame_gui.core import ObjectID
from pygame_gui.core.interfaces import IContainerLikeInterface, IUIContainerInterface
from pygame... | 45.924282 | 100 | 0.541844 |
386222fd913fe9177b311050c4eb50f381d14d63 | 714 | py | Python | _pytest/test_interpreter.py | awesome-archive/rasa_nlu | f58df5d86bac470e3a579ea07232bea0d90708b3 | [
"Apache-2.0"
] | 2 | 2016-12-20T13:19:44.000Z | 2017-01-16T10:44:35.000Z | _pytest/test_interpreter.py | awesome-archive/rasa_nlu | f58df5d86bac470e3a579ea07232bea0d90708b3 | [
"Apache-2.0"
] | null | null | null | _pytest/test_interpreter.py | awesome-archive/rasa_nlu | f58df5d86bac470e3a579ea07232bea0d90708b3 | [
"Apache-2.0"
] | 1 | 2017-01-02T15:16:49.000Z | 2017-01-02T15:16:49.000Z | from rasa_nlu.interpreters.simple_interpreter import HelloGoodbyeInterpreter
interpreter = HelloGoodbyeInterpreter()
| 44.625 | 117 | 0.460784 |
38622882e267e4da59ec73aecc06c60747233d97 | 355 | py | Python | Python/XGBoost/feature-importance.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | Python/XGBoost/feature-importance.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | Python/XGBoost/feature-importance.py | James-McNeill/Learning | 3c4fe1a64240cdf5614db66082bd68a2f16d2afb | [
"MIT"
] | null | null | null | # Create the DMatrix: housing_dmatrix
housing_dmatrix = xgb.DMatrix(data=X, label=y)
# Create the parameter dictionary: params
params = {'objective':'reg:linear', 'max_depth':4}
# Train the model: xg_reg
xg_reg = xgb.train(dtrain=housing_dmatrix, params=params, num_boost_round=10)
# Plot the feature importances
xgb.... | 27.307692 | 77 | 0.771831 |
3863f84f9600ae0034635596fd41e100463bc7f4 | 646 | py | Python | Camera.py | ArnaBannonymus/Arnab | a6949a43817bd9ce44f5318f558a8066d735ecc4 | [
"MIT"
] | null | null | null | Camera.py | ArnaBannonymus/Arnab | a6949a43817bd9ce44f5318f558a8066d735ecc4 | [
"MIT"
] | null | null | null | Camera.py | ArnaBannonymus/Arnab | a6949a43817bd9ce44f5318f558a8066d735ecc4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 12 13:22:02 2018
@author: Arnab Bhowmik
"""
import cv2
import numpy as np
cap=cv2.VideoCapture(1)
while True:
_,frame=cap.read()
hsv=cv2.cvtColor(frame,cv2.COLOR_BGR2HSV)
#hsv hue sat value
lower_red=np.array([0,0,0])
upper_red=np.array... | 20.83871 | 46 | 0.595975 |
38648d598f12e3c1199c23af373d46072e83069c | 811 | py | Python | tests/api/circulation/test_loan_item_resolver.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 41 | 2018-09-04T13:00:46.000Z | 2022-03-24T20:45:56.000Z | tests/api/circulation/test_loan_item_resolver.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 720 | 2017-03-10T08:02:41.000Z | 2022-01-14T15:36:37.000Z | tests/api/circulation/test_loan_item_resolver.py | NRodriguezcuellar/invenio-app-ils | 144a25a6c56330b214c6fd0b832220fa71f2e68a | [
"MIT"
] | 54 | 2017-03-09T16:05:29.000Z | 2022-03-17T08:34:51.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CERN.
#
# Invenio-Circulation is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""Tests for loan item resolver."""
from invenio_circulation.api import Loan
def test_loan_item_resolver(ap... | 30.037037 | 77 | 0.690506 |
38654864183d04c052061939c5a348db4ef0dd54 | 2,611 | py | Python | tools/coverage_helper.py | cohortfsllc/cohort-cocl2-sandbox | 0ac6669d1a459d65a52007b80d5cffa4ef330287 | [
"BSD-3-Clause"
] | 6 | 2015-02-06T23:41:01.000Z | 2015-10-21T03:08:51.000Z | tools/coverage_helper.py | cohortfsllc/cohort-cocl2-sandbox | 0ac6669d1a459d65a52007b80d5cffa4ef330287 | [
"BSD-3-Clause"
] | null | null | null | tools/coverage_helper.py | cohortfsllc/cohort-cocl2-sandbox | 0ac6669d1a459d65a52007b80d5cffa4ef330287 | [
"BSD-3-Clause"
] | 1 | 2019-10-02T08:41:50.000Z | 2019-10-02T08:41:50.000Z | #!/usr/bin/python
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
#
# CoverageHelper
#
# The CoverageHelper is an object which defines lists used by the coverage
# scripts for grouping ... | 26.11 | 80 | 0.630793 |
38688d8d8a376d1c2a562646fe27e88fb821e1f8 | 414 | py | Python | pylayers/antprop/tests/test_subarray.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 143 | 2015-01-09T07:50:20.000Z | 2022-03-02T11:26:53.000Z | pylayers/antprop/tests/test_subarray.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 148 | 2015-01-13T04:19:34.000Z | 2022-03-11T23:48:25.000Z | pylayers/antprop/tests/test_subarray.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 95 | 2015-05-01T13:22:42.000Z | 2022-03-15T11:22:28.000Z | from pylayers.antprop.aarray import *
import matplotlib.pyplot as plt
import pdb
print('--------------')
print('antprop/test_subarray.py')
print('--------------')
fcGHz = 60
lamda = 0.3/fcGHz
N1 = [ 4,4,1]
N2 = [ 2,2,1]
dm1 = [lamda/2.,lamda/2.,0]
dm2 = [3*lamda,3*lamda,0]
A1 = AntArray(fGHz=np.array([fcGHz]),N=N... | 25.875 | 63 | 0.618357 |
38689a46aa034aebe36b6be45065cc5c708473a6 | 5,789 | py | Python | speckle/base/resource.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 24 | 2018-11-16T03:17:58.000Z | 2021-11-19T11:32:01.000Z | speckle/base/resource.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 43 | 2019-01-15T17:48:24.000Z | 2020-12-02T19:09:55.000Z | speckle/base/resource.py | pjkottke/PySpeckle | e332c5e4c76960ab5b698f120c07d0eb15ac2262 | [
"MIT"
] | 12 | 2019-02-06T20:54:17.000Z | 2020-12-01T21:49:06.000Z | import json
from requests import Request
from pydantic import BaseModel
from pydoc import locate
from typing import List, Optional
import dataclasses
from dataclasses import dataclass
from datetime import datetime
SCHEMAS = {}
def clean_empty(d):
if not isinstance(d, (dict, list)):
return d
if isinst... | 34.873494 | 114 | 0.566592 |
3869c52e550ca9f86c4f7c28797a767ac345488b | 2,002 | py | Python | alieninvaders/explosion.py | yatesmac/Alien-Invaders | 152fbe43256a80905881055490167d6fe1e3e996 | [
"MIT"
] | null | null | null | alieninvaders/explosion.py | yatesmac/Alien-Invaders | 152fbe43256a80905881055490167d6fe1e3e996 | [
"MIT"
] | null | null | null | alieninvaders/explosion.py | yatesmac/Alien-Invaders | 152fbe43256a80905881055490167d6fe1e3e996 | [
"MIT"
] | null | null | null | """This module handles the creation of an Explosion instance."""
from os import pardir, path
import pygame as pg
from pygame.sprite import Sprite
import color
# Path template for the nine explosion images.
IMG = path.join(pardir, "resources/images/explosions/explosion0{}.jpg")
| 37.773585 | 87 | 0.62038 |
3869ffe900c403550a635fd5893cce20c49720b4 | 298 | py | Python | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | infra/controllers/errors/NotFoundError.py | JVGC/MyFinancesPython | 5e4ac02ea00c4ddab688dd0093eed3f3fb2ad826 | [
"MIT"
] | null | null | null | from infra.controllers.contracts import HttpResponse
| 19.866667 | 52 | 0.620805 |
386af50e69b05e3ea517743c301c1934214c6742 | 696 | py | Python | workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py | vitorsm/workout-plan-server | 74e315550c11a1afd684d1497693ff16afc4f9d8 | [
"MIT"
] | null | null | null | workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py | vitorsm/workout-plan-server | 74e315550c11a1afd684d1497693ff16afc4f9d8 | [
"MIT"
] | null | null | null | workout_plan_server/adapters/mysql/impl/mysql_exercise_repository.py | vitorsm/workout-plan-server | 74e315550c11a1afd684d1497693ff16afc4f9d8 | [
"MIT"
] | null | null | null | from uuid import uuid4
from flask_sqlalchemy import SQLAlchemy
from workout_plan_server.adapters.mysql.generic_repository import GenericRepository
from workout_plan_server.adapters.mysql.models.exercise_model import ExerciseModel
from workout_plan_server.domain.entities.exercise import Exercise
from workout_plan_serv... | 33.142857 | 85 | 0.817529 |
386c3f2f2a4ebdfce03d0405cda3d156ec665a3d | 2,149 | py | Python | mysite/test/testperform.py | Cary19900111/locust | fac972685485049fc7d568208c8976c500da4407 | [
"MIT"
] | null | null | null | mysite/test/testperform.py | Cary19900111/locust | fac972685485049fc7d568208c8976c500da4407 | [
"MIT"
] | null | null | null | mysite/test/testperform.py | Cary19900111/locust | fac972685485049fc7d568208c8976c500da4407 | [
"MIT"
] | null | null | null | from locust import HttpLocust,TaskSet,task
#python crlocust.py -f mysite/test/testperform.py --no-web --run-time 5s --csv result -c 5 -r 1
from locust import events
from gevent._semaphore import Semaphore
import datetime
''''''
# from locust import Locust, TaskSet, events, task
# mars_event = events.EventHook()
# d... | 33.578125 | 115 | 0.674732 |
386e17eb42b38c18cf7a39804e238de49e4f6116 | 4,248 | py | Python | src/data_preprocess.py | Umasangavi/Thyroid_Disorder_Prediction | 6ef2b0a3f52e945b78dd756067cae01478e078a9 | [
"MIT"
] | null | null | null | src/data_preprocess.py | Umasangavi/Thyroid_Disorder_Prediction | 6ef2b0a3f52e945b78dd756067cae01478e078a9 | [
"MIT"
] | 1 | 2022-01-21T08:19:10.000Z | 2022-01-21T08:22:47.000Z | src/data_preprocess.py | Umasangavi/Thyroid_disorder_prediction | 6ef2b0a3f52e945b78dd756067cae01478e078a9 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import yaml
import os
import argparse
from sklearn.impute import KNNImputer
from logger import App_Logger
file_object=open("application_logging/Loggings.txt", 'a+')
logger_object=App_Logger()
if __name__=="__main__":
args = argparse.ArgumentParser()
... | 40.846154 | 158 | 0.626412 |
3872a2d42f8cfe8870011a179ccbd8a81f44a9f5 | 680 | py | Python | first_year/lmd/python_tests/induccion_suma_impares.py | chelunike/trust_me_i_am_an_engineer | 40261dd8a6699910ef7d6bb7f63e2b961d6ae027 | [
"Apache-2.0"
] | null | null | null | first_year/lmd/python_tests/induccion_suma_impares.py | chelunike/trust_me_i_am_an_engineer | 40261dd8a6699910ef7d6bb7f63e2b961d6ae027 | [
"Apache-2.0"
] | null | null | null | first_year/lmd/python_tests/induccion_suma_impares.py | chelunike/trust_me_i_am_an_engineer | 40261dd8a6699910ef7d6bb7f63e2b961d6ae027 | [
"Apache-2.0"
] | null | null | null | # -*- encoding:utf-8 -*-
impar = lambda n : 2 * n - 1
header = """
Demostrar que es cierto:
1 + 3 + 5 + ... + (2*n)-1 = n ^ 2
Luego con este programa se busca probar dicha afirmacion.
"""
if __name__ == '__main__':
main()
| 16.190476 | 59 | 0.617647 |
3872e9a2f5c1058e44e25d6f8294aa9843e070f9 | 341 | py | Python | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | Items/Armors/Chest.py | saisua/RAF-Game | 79b2b618aa18c31a40c080865b58fac02c1cac68 | [
"MIT"
] | null | null | null | from .Armor import Armor
| 26.230769 | 90 | 0.668622 |
3873964e8f758df7dc184439da0225ce4f856058 | 2,436 | py | Python | api_v1/helpers.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 2 | 2018-08-18T12:53:49.000Z | 2020-06-19T23:31:11.000Z | api_v1/helpers.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 21 | 2017-09-04T19:49:18.000Z | 2017-12-19T09:07:39.000Z | api_v1/helpers.py | machariamarigi/shopping_list_api | 79effc34145b25413f84ce02704281ccadf214ca | [
"MIT"
] | 2 | 2017-09-15T18:43:02.000Z | 2017-10-09T10:48:36.000Z | """This module contains helper functions used in the API"""
import datetime
import json
import re
import string
import random
from functools import wraps
from flask import request
from api_v1.models import User
def name_validalidation(name, context):
"""Function used to validate various names"""
if len(name... | 29.707317 | 77 | 0.607964 |
38741faa71519d517184c3c53ce4e0416df5b8e0 | 25,099 | py | Python | lib/phidias/Runtime.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | 4 | 2019-06-07T08:57:15.000Z | 2021-08-30T10:40:23.000Z | lib/phidias/Runtime.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | null | null | null | lib/phidias/Runtime.py | corradosantoro/hephaestus | c40a534e3979cef7e6eeda1206aa93e25fdd55a8 | [
"MIT"
] | 1 | 2020-07-24T14:16:34.000Z | 2020-07-24T14:16:34.000Z | #
# Runtime.py
#
import types
import threading
#import copy
from phidias.Types import *
from phidias.Knowledge import *
from phidias.Exceptions import *
from phidias.Messaging import *
DEFAULT_AGENT = "main"
__all__ = [ 'DEFAULT_AGENT', 'Runtime', 'Plan' ]
# ------------------------------------------------
# ---... | 34.241473 | 117 | 0.543408 |
3875c54506abd3c3f854187b77048a2fc7f1b45c | 245 | py | Python | validators.py | mk-rn/django_cash_register | f317d94dd50817160e883e2f452f7b8e824f4a1c | [
"MIT"
] | null | null | null | validators.py | mk-rn/django_cash_register | f317d94dd50817160e883e2f452f7b8e824f4a1c | [
"MIT"
] | null | null | null | validators.py | mk-rn/django_cash_register | f317d94dd50817160e883e2f452f7b8e824f4a1c | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
def positive_number(value):
"""Checking the value. Must be greater than 0."""
if value <= 0.0:
raise ValidationError('Count must be greater than 0', params={'value': value},)
| 27.222222 | 87 | 0.693878 |
3875f7aa99170c1b5624a5092f12b0b84b4930ad | 3,059 | py | Python | others.py | blguweb/radiarDetection | 81cb694c17c6ef8736f30ad691f7da82cc83ea4c | [
"MIT"
] | null | null | null | others.py | blguweb/radiarDetection | 81cb694c17c6ef8736f30ad691f7da82cc83ea4c | [
"MIT"
] | null | null | null | others.py | blguweb/radiarDetection | 81cb694c17c6ef8736f30ad691f7da82cc83ea4c | [
"MIT"
] | null | null | null | import sensor, image, time, pyb
from pid import PID
from pyb import Servo
from pyb import UART
uart = UART(3, 19200)
usb = pyb.USB_VCP()
led_red = pyb.LED(1) # Red LED = 1, Green LED = 2, Blue LED = 3, IR LEDs = 4.
led_green = pyb.LED(2)
pan_pid = PID(p=0.07, i=0, imax=90) #PID
tilt_pid = PID(p=0.05, i=0, imax=90... | 31.536082 | 138 | 0.590062 |
3877c817f150e95b91b3d8ee611f5c78f11d6109 | 4,121 | py | Python | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 3 | 2015-02-26T06:39:40.000Z | 2017-07-04T14:56:18.000Z | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | null | null | null | executiontime_calculator.py | baumartig/paperboy | 01659cda235508eac66a50a9c16c4a6c531015bd | [
"Apache-2.0"
] | 1 | 2018-02-21T00:12:06.000Z | 2018-02-21T00:12:06.000Z | from datetime import datetime
from datetime import timedelta
from job import WEEKDAYS
from job import Job
if __name__ == '__main__':
test()
| 33.504065 | 100 | 0.580199 |
38790fc9c1e1af653614fcb057c058b3e9e09917 | 3,398 | py | Python | molsysmt/api_forms/api_openmm_GromacsGroFile.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/api_forms/api_openmm_GromacsGroFile.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/api_forms/api_openmm_GromacsGroFile.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | from molsysmt._private.exceptions import *
from molsysmt.item.openmm_GromacsGroFile.is_openmm_GromacsGroFile import is_openmm_GromacsGroFile as is_form
from molsysmt.item.openmm_GromacsGroFile.extract import extract
from molsysmt.item.openmm_GromacsGroFile.add import add
from molsysmt.item.openmm_GromacsGroFile.append... | 31.757009 | 142 | 0.759859 |
387914e6bb3ad3988784eba28689e73be40bad2b | 523 | py | Python | simple_permutations.py | mutazag/nlpia | 14e70396b118605745c148f5e573246844687c1f | [
"MIT"
] | null | null | null | simple_permutations.py | mutazag/nlpia | 14e70396b118605745c148f5e573246844687c1f | [
"MIT"
] | null | null | null | simple_permutations.py | mutazag/nlpia | 14e70396b118605745c148f5e573246844687c1f | [
"MIT"
] | null | null | null | #%%
from itertools import permutations, product
# %%
A =['a','b']
Z = ['x','z']
[p for p in product('ab', range(3))]
[p for p in product(A,Z)]
[p for p in product(A, repeat=3)]
# %%
msg = 'Good Morning Rosa!'
msgList = msg.split()
[' '.join(p) for p in permutations(msgList,3)]
# %%
# complex phrase
s = """Find text... | 19.37037 | 51 | 0.619503 |
38795101ca4281688e60964eabe22f2626c23b79 | 510 | py | Python | olea/packages/ip2loc/ip2loc.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 2 | 2020-06-18T03:25:52.000Z | 2020-06-18T07:33:45.000Z | olea/packages/ip2loc/ip2loc.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 15 | 2021-01-28T07:11:04.000Z | 2021-05-24T07:11:37.000Z | olea/packages/ip2loc/ip2loc.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | null | null | null | __all__ = ['IP2Loc']
import IP2Location
from .update_ipdb import download
| 23.181818 | 68 | 0.631373 |
38796eed3ff31562e41f2d173de7660b64b06992 | 521 | py | Python | tests/BaseCase.py | YaroslavChyhryn/SchoolAPI | 6b5eb4e1faf6b962561109fc227057ad0f8d4d92 | [
"MIT"
] | null | null | null | tests/BaseCase.py | YaroslavChyhryn/SchoolAPI | 6b5eb4e1faf6b962561109fc227057ad0f8d4d92 | [
"MIT"
] | null | null | null | tests/BaseCase.py | YaroslavChyhryn/SchoolAPI | 6b5eb4e1faf6b962561109fc227057ad0f8d4d92 | [
"MIT"
] | null | null | null | import unittest
from school_api.app import create_app
from school_api.db import create_tables, drop_tables
from school_api.data_generator import test_db
| 23.681818 | 52 | 0.685221 |
387bfe5524cac7d7cb21e866fa774cc3212626e2 | 238 | py | Python | msgflow/logging.py | noriyukipy/smilechat | a9c0ef93c35b2a1f3e9d1700391ae865544adfbc | [
"MIT"
] | 5 | 2021-01-01T12:34:23.000Z | 2022-03-08T13:02:11.000Z | msgflow/logging.py | noriyukipy/smilechat | a9c0ef93c35b2a1f3e9d1700391ae865544adfbc | [
"MIT"
] | null | null | null | msgflow/logging.py | noriyukipy/smilechat | a9c0ef93c35b2a1f3e9d1700391ae865544adfbc | [
"MIT"
] | 2 | 2020-09-20T10:41:51.000Z | 2020-11-09T06:15:32.000Z | import json
import datetime
| 26.444444 | 88 | 0.710084 |
387c70f8ffc34a57405e03583c11907f465d14b4 | 560 | py | Python | tests/test_nace2.py | sayari-analytics/pyisic | 42ed46f5bc446a0bbc0edf30b64bc4ab939dd033 | [
"MIT"
] | 3 | 2021-11-18T15:32:38.000Z | 2022-02-28T19:16:14.000Z | tests/test_nace2.py | sayari-analytics/pyisic | 42ed46f5bc446a0bbc0edf30b64bc4ab939dd033 | [
"MIT"
] | 18 | 2021-06-28T19:17:49.000Z | 2022-03-23T20:20:18.000Z | tests/test_nace2.py | sayari-analytics/pyisic | 42ed46f5bc446a0bbc0edf30b64bc4ab939dd033 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from pyisic import NACE2_to_ISIC4
from pyisic.types import Standards
| 26.666667 | 66 | 0.608929 |
387ea40c8cd79f5bdddf23799a108f4ee84c715c | 391 | py | Python | JiaLu/learn/list_training9.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | JiaLu/learn/list_training9.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | JiaLu/learn/list_training9.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
data_list = [54, 25, 93, 17, 77, 31, 44, 55, 20, 10]
bubble_search_func(data_list)
print(data_list)
| 20.578947 | 71 | 0.639386 |
387eb64186d9be38a6ef7eb92362e60714c12f89 | 981 | py | Python | src/custom_user_app/urls.py | JackCX777/user_polls_2 | fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b | [
"BSD-3-Clause"
] | null | null | null | src/custom_user_app/urls.py | JackCX777/user_polls_2 | fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b | [
"BSD-3-Clause"
] | null | null | null | src/custom_user_app/urls.py | JackCX777/user_polls_2 | fa8fe9ad4c1fa36b4ea5bb402b3d485852a98d3b | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from custom_user_app.views import (CustomUserLoginView,
CustomUserLogoutView,
CustomUserCreationView,
CustomUserUpdateView,
CustomUserPasswordChangeVie... | 51.631579 | 114 | 0.643221 |
387ed07ba8ec4acd4791f1af86f446b18d2578f8 | 2,691 | py | Python | src/utils/preprocess_dataset.py | FedericoBottoni/household-poverty-classifier | 7357cc6a6c08e9cf76cdd79a04cce32a5982fa85 | [
"MIT"
] | null | null | null | src/utils/preprocess_dataset.py | FedericoBottoni/household-poverty-classifier | 7357cc6a6c08e9cf76cdd79a04cce32a5982fa85 | [
"MIT"
] | null | null | null | src/utils/preprocess_dataset.py | FedericoBottoni/household-poverty-classifier | 7357cc6a6c08e9cf76cdd79a04cce32a5982fa85 | [
"MIT"
] | null | null | null | import numpy as np
import csv as csv
from clean_data import clean_data
from join_columns import join_columns
from fix_decimals import add_int, cut_decimals | 65.634146 | 311 | 0.593088 |
387f0112c992c1eb1d347a52c37faadb884c7c51 | 1,691 | py | Python | helpme/migrations/0003_auto_20200901_2025.py | renderbox/django-help-me | 6efdaf715d2770305a7187c008354e0f784f9f5b | [
"MIT"
] | 1 | 2020-09-30T22:21:02.000Z | 2020-09-30T22:21:02.000Z | helpme/migrations/0003_auto_20200901_2025.py | renderbox/django-help-me | 6efdaf715d2770305a7187c008354e0f784f9f5b | [
"MIT"
] | 8 | 2020-09-11T00:50:57.000Z | 2022-03-30T22:10:45.000Z | helpme/migrations/0003_auto_20200901_2025.py | renderbox/django-help-me | 6efdaf715d2770305a7187c008354e0f784f9f5b | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-01 20:25
from django.db import migrations, models
import django.db.models.deletion
| 33.156863 | 127 | 0.595506 |
388094937263ef4639ae196c69b959037b68702e | 3,799 | py | Python | lib/surface/anthos/auth/login.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 2 | 2019-11-10T09:17:07.000Z | 2019-12-18T13:44:08.000Z | lib/surface/anthos/auth/login.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | null | null | null | lib/surface/anthos/auth/login.py | google-cloud-sdk-unofficial/google-cloud-sdk | 2a48a04df14be46c8745050f98768e30474a1aac | [
"Apache-2.0"
] | 1 | 2020-07-25T01:40:19.000Z | 2020-07-25T01:40:19.000Z | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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 requir... | 38.373737 | 113 | 0.733351 |
38823e27450525f05ac5a168826d916d3ea60ed9 | 382 | py | Python | projects/migrations/0005_alter_location_location.py | Gomax-07/gallery | 934b667d79d9a98e43648864a420cc559e9456e6 | [
"Unlicense"
] | null | null | null | projects/migrations/0005_alter_location_location.py | Gomax-07/gallery | 934b667d79d9a98e43648864a420cc559e9456e6 | [
"Unlicense"
] | null | null | null | projects/migrations/0005_alter_location_location.py | Gomax-07/gallery | 934b667d79d9a98e43648864a420cc559e9456e6 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.2.7 on 2021-09-07 02:28
from django.db import migrations, models
| 20.105263 | 51 | 0.594241 |
3883883e7eb9a4441c27a1740a372b5eec7a6a64 | 5,491 | py | Python | src/napari_mahotas_image_processing/_function.py | haesleinhuepf/napari-mahotas-image-processing | d6c19a27b1e5acb994aa1e698692394e73f783a3 | [
"BSL-1.0",
"BSD-3-Clause"
] | 2 | 2021-11-27T02:02:25.000Z | 2021-11-28T09:55:47.000Z | src/napari_mahotas_image_processing/_function.py | haesleinhuepf/napari-mahotas-image-processing | d6c19a27b1e5acb994aa1e698692394e73f783a3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/napari_mahotas_image_processing/_function.py | haesleinhuepf/napari-mahotas-image-processing | d6c19a27b1e5acb994aa1e698692394e73f783a3 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | import numpy as np
from napari_plugin_engine import napari_hook_implementation
from napari_tools_menu import register_function
from napari_time_slicer import time_slicer, slice_by_slice
import napari
from napari.types import ImageData, LabelsData
def _8bit(image):
return (image / image.max() * 255).astype(np.u... | 30.848315 | 116 | 0.676744 |
38838a2148cd8410cf38dde80c33588255de0106 | 487 | py | Python | CoquoBot/order_manager.py | Josef212/CoquoBot | adb9744b04454a4591237937dfb2c9f00da30077 | [
"MIT"
] | null | null | null | CoquoBot/order_manager.py | Josef212/CoquoBot | adb9744b04454a4591237937dfb2c9f00da30077 | [
"MIT"
] | null | null | null | CoquoBot/order_manager.py | Josef212/CoquoBot | adb9744b04454a4591237937dfb2c9f00da30077 | [
"MIT"
] | null | null | null | from order import Order | 27.055556 | 66 | 0.601643 |
388501d208ae63f4dc2d1e7114cc8996d14643dd | 2,576 | py | Python | tests/binary/run.py | learnflexswitch/pyangbind | 7b39fec6806b516c442f920a8396d2e1fa9c36b1 | [
"Apache-2.0"
] | 1 | 2021-07-15T18:12:28.000Z | 2021-07-15T18:12:28.000Z | tests/binary/run.py | ktbyers/pyangbind | 39f9f8d842c66dde784c45369ea7b280f375401a | [
"Apache-2.0"
] | null | null | null | tests/binary/run.py | ktbyers/pyangbind | 39f9f8d842c66dde784c45369ea7b280f375401a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import os, sys, getopt
TESTNAME="binary"
# generate bindings in this folder
if __name__ == '__main__':
main()
| 33.454545 | 130 | 0.615295 |
38859de8b56eff173435e0d0952d25f450ef8119 | 1,024 | py | Python | ScoutingBox/Box/admin.py | JoannaNitek/ScoutingBox | a49d12abad5aec4bccdbb8efc627f3403c4e9b4c | [
"MIT"
] | null | null | null | ScoutingBox/Box/admin.py | JoannaNitek/ScoutingBox | a49d12abad5aec4bccdbb8efc627f3403c4e9b4c | [
"MIT"
] | 9 | 2019-08-06T02:08:30.000Z | 2022-02-10T08:48:19.000Z | ScoutingBox/Box/admin.py | JoannaNitek/ScoutingBox | a49d12abad5aec4bccdbb8efc627f3403c4e9b4c | [
"MIT"
] | 2 | 2019-09-16T18:45:08.000Z | 2019-09-18T17:00:42.000Z | from django.contrib import admin
# Register your models here.
from Box.models import Player, ObservationList, Comments, ObservationForm
admin.site.register(Player, PlayerAdmin),
admin.site.register(ObservationList, ObservationListAdmin),
admin.site.register(Comments, CommentsAdmin),
admin.site.register(Observati... | 36.571429 | 119 | 0.699219 |
3885d8be7539352dd2a853eb75507e09353f7e06 | 992 | py | Python | activity_1/src/testTimeExecution.py | lucasguesserts/MO824A-combinatorial-optimization | a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4 | [
"MIT"
] | null | null | null | activity_1/src/testTimeExecution.py | lucasguesserts/MO824A-combinatorial-optimization | a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4 | [
"MIT"
] | null | null | null | activity_1/src/testTimeExecution.py | lucasguesserts/MO824A-combinatorial-optimization | a88569e4496c0ed4f89a4e8bac7ab8f42f6cb7d4 | [
"MIT"
] | null | null | null | from datetime import datetime
from CompanyProblemSolver import CompanyProblemSolver
if __name__ == "__main__":
problemSizes = range(100, 200+1, 100)
for J in problemSizes:
solution = TimedSolution(J)
print(solution)
| 33.066667 | 70 | 0.638105 |
38883a0e498b070f2e3d5997d8486a1d81c565d7 | 2,528 | py | Python | app/repository/model.py | maestro-server/data-app | cde6479cc84fe410220b34742772d5017571e3d3 | [
"Apache-2.0"
] | null | null | null | app/repository/model.py | maestro-server/data-app | cde6479cc84fe410220b34742772d5017571e3d3 | [
"Apache-2.0"
] | 1 | 2019-11-21T17:06:31.000Z | 2019-11-21T17:06:31.000Z | app/repository/model.py | maestro-server/data-app | cde6479cc84fe410220b34742772d5017571e3d3 | [
"Apache-2.0"
] | null | null | null | import datetime
import re
from app import db
from bson.objectid import ObjectId
from pymongo import InsertOne, UpdateOne
from pymongo.errors import BulkWriteError
from app.error.factoryInvalid import FactoryInvalid
| 27.478261 | 83 | 0.567642 |
38888f481bd14c8f69369fc17765ba947e3ae62e | 9,087 | py | Python | python_lib/mitxgraders/comparers/linear_comparer.py | haharay/python_lib | 8acfc634ceb1943da5163c81b79bad126b27212f | [
"MIT"
] | 17 | 2018-06-20T19:38:13.000Z | 2021-12-31T19:52:52.000Z | python_lib/mitxgraders/comparers/linear_comparer.py | haharay/python_lib | 8acfc634ceb1943da5163c81b79bad126b27212f | [
"MIT"
] | 282 | 2017-11-07T13:34:03.000Z | 2022-03-26T04:25:20.000Z | python_lib/mitxgraders/comparers/linear_comparer.py | haharay/python_lib | 8acfc634ceb1943da5163c81b79bad126b27212f | [
"MIT"
] | 7 | 2018-06-05T23:27:00.000Z | 2022-03-26T08:02:50.000Z | from __future__ import print_function, division, absolute_import, unicode_literals
from numbers import Number
import numpy as np
from voluptuous import Schema, Required, Any, Range
from mitxgraders.comparers.baseclasses import CorrelatedComparer
from mitxgraders.helpers.calc.mathfuncs import is_nearly_zero
from mitxgra... | 36.939024 | 99 | 0.630241 |
38898650b0417419ec2e1d168eb7f6f230735290 | 642 | py | Python | 2017/day8-2.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | 2017/day8-2.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | 2017/day8-2.py | alvaropp/AdventOfCode2017 | 2827dcc18ecb9ad59a1a5fe11e469f31bafb74ad | [
"MIT"
] | null | null | null | filename = "day8.txt"
ops = {"inc": "+=", "dec": "-="}
# Initialise registers to zero
regs = {}
with open(filename) as f:
for line in f.readlines():
data = line.split(' ')
reg = data[0]
if reg not in regs:
regs[reg] = 0
# Follow the instructions
maxReg = 0
with open(filename) ... | 25.68 | 71 | 0.543614 |
388a33a4c640a949c0d9f3e5677661be8943cc55 | 4,755 | py | Python | tests/components/unifi/test_services.py | rahulsinghsss/core | 1156275db4e53a556ef58bb2038ae7d8ad103556 | [
"Apache-2.0"
] | 1 | 2021-12-30T09:37:48.000Z | 2021-12-30T09:37:48.000Z | tests/components/unifi/test_services.py | rahulsinghsss/core | 1156275db4e53a556ef58bb2038ae7d8ad103556 | [
"Apache-2.0"
] | 18 | 2021-11-03T06:21:46.000Z | 2022-03-31T06:21:15.000Z | tests/components/unifi/test_services.py | rahulsinghsss/core | 1156275db4e53a556ef58bb2038ae7d8ad103556 | [
"Apache-2.0"
] | 1 | 2021-12-30T09:37:53.000Z | 2021-12-30T09:37:53.000Z | """deCONZ service tests."""
from unittest.mock import Mock, patch
from homeassistant.components.unifi.const import DOMAIN as UNIFI_DOMAIN
from homeassistant.components.unifi.services import (
SERVICE_REMOVE_CLIENTS,
UNIFI_SERVICES,
async_setup_services,
async_unload_services,
)
from .test_controller ... | 31.282895 | 87 | 0.646477 |
388a3e1c967bd69504b07a1ff1bfdb07f5722281 | 632 | py | Python | {{cookiecutter.directory_name}}/config/settings/development.py | ragnarok22/cookiecutter-django | 082196dde5ad932bf99bee138dc80de8c3823e03 | [
"Apache-2.0"
] | 2 | 2021-07-23T18:58:49.000Z | 2022-02-23T18:44:40.000Z | {{cookiecutter.directory_name}}/config/settings/development.py | ragnarok22/cookiecutter-django | 082196dde5ad932bf99bee138dc80de8c3823e03 | [
"Apache-2.0"
] | null | null | null | {{cookiecutter.directory_name}}/config/settings/development.py | ragnarok22/cookiecutter-django | 082196dde5ad932bf99bee138dc80de8c3823e03 | [
"Apache-2.0"
] | null | null | null | """
This is the settings file that you use when you're working on the project locally.
Local development-specific include DEBUG mode, log level, and activation of developer tools like django-debug-toolsbar
"""
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# SECURI... | 31.6 | 118 | 0.764241 |
388b168ea670204a5943c2c7112d806beb501cfa | 3,094 | py | Python | analysis_scripts/prose_CCLE_PE2_evidence.py | bwbio/PROSE | 1622396e76e0e293ccff85786d1a5974c4fc3c94 | [
"MIT"
] | null | null | null | analysis_scripts/prose_CCLE_PE2_evidence.py | bwbio/PROSE | 1622396e76e0e293ccff85786d1a5974c4fc3c94 | [
"MIT"
] | null | null | null | analysis_scripts/prose_CCLE_PE2_evidence.py | bwbio/PROSE | 1622396e76e0e293ccff85786d1a5974c4fc3c94 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 25 05:21:45 2021
@author: bw98j
"""
import prose as pgx
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import seaborn as sns
import numpy as np
import itertools
import glob
import os
from tqdm import tqdm
import ... | 27.380531 | 95 | 0.627666 |
388c31bf17059d83c5f152ced39c6c1dfbd21371 | 428 | py | Python | python/play.py | banza-group/2048 | 90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b | [
"MIT"
] | 2 | 2019-03-08T03:42:31.000Z | 2019-03-08T03:42:34.000Z | python/play.py | banza-group/2048 | 90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b | [
"MIT"
] | 1 | 2019-03-15T19:30:12.000Z | 2019-03-15T19:30:12.000Z | python/play.py | banza-group/2048 | 90dcabf2b04e8b6ffba24e3a93d4dc5b16c5605b | [
"MIT"
] | 1 | 2020-10-26T01:29:22.000Z | 2020-10-26T01:29:22.000Z | """Play the game."""
import engine
import numpy as np
board = engine.createBoard(4)
message1 = "Use the keys to move (L)eft (R)ight (U)p (D)own."
message2 = "Press (Q) to quit:"
while True:
print(np.array(engine.showBoard(board)))
inputValue = input("{} {} ".format(message1, message2))
inputValue = str(i... | 23.777778 | 61 | 0.63785 |
388c4200cdb6866a189312d1ba76f6d3bb459c3a | 758 | py | Python | pyorient/ogm/commands.py | spy7/pyorient | ac2547287f9299f4eec350666da3b19797872f20 | [
"Apache-2.0"
] | 142 | 2015-01-12T06:34:59.000Z | 2022-01-19T10:34:30.000Z | pyorient/ogm/commands.py | spy7/pyorient | ac2547287f9299f4eec350666da3b19797872f20 | [
"Apache-2.0"
] | 238 | 2015-01-04T21:05:41.000Z | 2021-04-12T17:45:53.000Z | pyorient/ogm/commands.py | spy7/pyorient | ac2547287f9299f4eec350666da3b19797872f20 | [
"Apache-2.0"
] | 107 | 2015-01-03T03:33:17.000Z | 2021-12-07T16:48:48.000Z | from ..utils import to_str
| 25.266667 | 73 | 0.637203 |
388c951866762cef5e383f255fb30261476df70e | 2,431 | py | Python | source/GetDatasetInformation.py | san-harsh/PyImageRoi | fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919 | [
"MIT"
] | 10 | 2018-01-29T18:56:17.000Z | 2021-06-04T09:34:17.000Z | source/GetDatasetInformation.py | san-harsh/PyImageRoi | fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919 | [
"MIT"
] | 1 | 2018-01-29T19:09:11.000Z | 2018-01-30T02:20:25.000Z | source/GetDatasetInformation.py | san-harsh/PyImageRoi | fc95d48f33e3dcde308a027f1f0dc5ee6d9a3919 | [
"MIT"
] | 5 | 2017-07-14T16:22:40.000Z | 2021-06-10T07:14:54.000Z | import argparse
import os
import glob
import pandas as pd
from libraryTools import imageRegionOfInterest
#filename,width,height,class,xmin,ymin,xmax,ymax
#20170730_132530-(F00000).jpeg,576,1024,sinaleira,221,396,246,437
valid_images = [".jpg",".gif",".png",".tga",".jpeg"]
#=========================================... | 29.646341 | 112 | 0.65364 |
388e1ba13f01555ab5ef97f17338085142e9b93d | 22,968 | py | Python | AShareData/data_source/WindData.py | TMG-TheMoneyGame/AShareData | 2c4fded364c987e4f1ec77fafbb55f75ace1264d | [
"MIT"
] | null | null | null | AShareData/data_source/WindData.py | TMG-TheMoneyGame/AShareData | 2c4fded364c987e4f1ec77fafbb55f75ace1264d | [
"MIT"
] | null | null | null | AShareData/data_source/WindData.py | TMG-TheMoneyGame/AShareData | 2c4fded364c987e4f1ec77fafbb55f75ace1264d | [
"MIT"
] | null | null | null | import datetime as dt
from functools import cached_property
from typing import Dict, List, Sequence, Union
import numpy as np
import pandas as pd
import WindPy
from tqdm import tqdm
from .DataSource import DataSource
from .. import config, constants, DateUtils, utils
from ..DBInterface import DBInterface
from ..Ticke... | 42.930841 | 137 | 0.602229 |
388f74e37b3771101d7c6d1684ce571a957ae9fc | 12,874 | py | Python | benchmark/obd/evaluate_off_policy_estimators.py | isabella232/pyIEOE | bc2ab396a38984dec57a50dd2dae4dd726d5eb3b | [
"MIT"
] | 8 | 2021-08-31T09:06:01.000Z | 2022-01-20T01:13:03.000Z | benchmark/obd/evaluate_off_policy_estimators.py | isabella232/pyIEOE | bc2ab396a38984dec57a50dd2dae4dd726d5eb3b | [
"MIT"
] | null | null | null | benchmark/obd/evaluate_off_policy_estimators.py | isabella232/pyIEOE | bc2ab396a38984dec57a50dd2dae4dd726d5eb3b | [
"MIT"
] | 1 | 2022-03-25T16:57:50.000Z | 2022-03-25T16:57:50.000Z | # Copyright (c) 2021 Sony Group Corporation and Hanjuku-kaso Co., Ltd. All Rights Reserved.
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
import argparse
from distutils.util import strtobool
from pathlib import Path
import pickle
import warnings
from sklearn.exc... | 37.208092 | 115 | 0.696675 |
388fccf224243f2ac97b177fee7c0abcccef5267 | 856 | py | Python | lab5/script/loadimg.py | rum2mojito/osdi2020 | d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b | [
"MIT"
] | null | null | null | lab5/script/loadimg.py | rum2mojito/osdi2020 | d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b | [
"MIT"
] | null | null | null | lab5/script/loadimg.py | rum2mojito/osdi2020 | d17a6b56e1fd25a8c5b0ccec5a897e0c1118365b | [
"MIT"
] | null | null | null | # coding=utf-8
import serial
import time
import os
KERNEL_PATH = './kernel9.img'
port1 = '/dev/pts/4'
port2 = '/dev/ttyUSB0'
if __name__ == "__main__":
ser = serial.Serial(port=port1, baudrate=115200)
kernel_size = os.path.getsize(KERNEL_PATH)
with open(KERNEL_PATH, 'rb') as kernel_f:
# cmd
... | 20.380952 | 52 | 0.551402 |
38901046ae19be71310fe2a5d909316397231ac1 | 1,196 | py | Python | weather.py | Qu4ndo/Weather_API | 1405c69d796d0c2df47f71e829b99ecb48857921 | [
"MIT"
] | null | null | null | weather.py | Qu4ndo/Weather_API | 1405c69d796d0c2df47f71e829b99ecb48857921 | [
"MIT"
] | null | null | null | weather.py | Qu4ndo/Weather_API | 1405c69d796d0c2df47f71e829b99ecb48857921 | [
"MIT"
] | null | null | null | import configparser
import requests
import json
if __name__=="__main__":
temp, humidity, wind = values()
# Print Data
print(int(temp), "C")
print(humidity, "%")
print(int(wind), "km/h")
| 22.566038 | 65 | 0.658027 |
3891d2a8a93288efa2d7669ef1a5641d27143d72 | 19,970 | py | Python | src/documentos/tools/repair.py | TroyWilliams3687/documentos | 4a47feb5db5b03dd4ce8d2f45a13ff0a87987303 | [
"MIT"
] | null | null | null | src/documentos/tools/repair.py | TroyWilliams3687/documentos | 4a47feb5db5b03dd4ce8d2f45a13ff0a87987303 | [
"MIT"
] | null | null | null | src/documentos/tools/repair.py | TroyWilliams3687/documentos | 4a47feb5db5b03dd4ce8d2f45a13ff0a87987303 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# -----------
# SPDX-License-Identifier: MIT
# Copyright (c) 2021 Troy Williams
# uuid : 633f2088-bbe3-11eb-b9c2-33be0bb8451e
# author: Troy Williams
# email : troy.williams@bluebill.net
# date : 2021-05-23
# -----------
"""
The `repair` command has access to tools th... | 26.733601 | 116 | 0.596645 |
3892505f0839bd49e611ef5e52c666213e0222fb | 29,432 | py | Python | connect/cli/plugins/product/export.py | vgrebenschikov/connect-cli | 5d2bffca8ed76060fd2337abf05ccee2d68c6e33 | [
"Apache-2.0"
] | null | null | null | connect/cli/plugins/product/export.py | vgrebenschikov/connect-cli | 5d2bffca8ed76060fd2337abf05ccee2d68c6e33 | [
"Apache-2.0"
] | null | null | null | connect/cli/plugins/product/export.py | vgrebenschikov/connect-cli | 5d2bffca8ed76060fd2337abf05ccee2d68c6e33 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of the Ingram Micro Cloud Blue Connect connect-cli.
# Copyright (c) 2019-2021 Ingram Micro. All Rights Reserved.
import os
import json
from datetime import datetime
from urllib import parse
import requests
from click import ClickException
from openpyxl import Workbook
from... | 32.557522 | 108 | 0.628364 |
3892d5674879bbcf71468a4b3b615df537552e19 | 729 | py | Python | HackTheVote/2020/fileshare/cleaner.py | mystickev/ctf-archives | 89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e | [
"MIT"
] | 1 | 2021-11-02T20:53:58.000Z | 2021-11-02T20:53:58.000Z | HackTheVote/2020/fileshare/cleaner.py | ruhan-islam/ctf-archives | 8c2bf6a608c821314d1a1cfaa05a6cccef8e3103 | [
"MIT"
] | null | null | null | HackTheVote/2020/fileshare/cleaner.py | ruhan-islam/ctf-archives | 8c2bf6a608c821314d1a1cfaa05a6cccef8e3103 | [
"MIT"
] | 1 | 2021-12-19T11:06:24.000Z | 2021-12-19T11:06:24.000Z | import os, time, shutil
while True:
try:
dirs = ["/tmp/"+d for d in os.listdir("/tmp") if d.startswith("fileshare.")]
used = get_used_dirs()
for d in dirs:
if d not in used:
try:
os.system("umount %s/proc"%d)
shutil.rmtree(... | 25.137931 | 84 | 0.463649 |
38930feb943e3f9cbebdb5281ab3fef2c1edeeab | 1,441 | py | Python | scripts/dataset-preparation/get_image_urls.py | byewokko/guessing-game | ffca7f68836803e1a2049488227306ec0963e65b | [
"MIT"
] | 2 | 2020-09-04T21:15:00.000Z | 2020-09-25T12:20:33.000Z | scripts/dataset-preparation/get_image_urls.py | byewokko/guessing-game | ffca7f68836803e1a2049488227306ec0963e65b | [
"MIT"
] | null | null | null | scripts/dataset-preparation/get_image_urls.py | byewokko/guessing-game | ffca7f68836803e1a2049488227306ec0963e65b | [
"MIT"
] | null | null | null | import os
import requests
from nltk.corpus import wordnet as wn
urldir = "urls"
geturls = "http://www.image-net.org/api/text/imagenet.synset.geturls?wnid={wnid}"
if not os.path.isdir(urldir):
os.makedirs(urldir)
with open("base_concepts.txt") as fin:
for line in fin:
concept = line.strip().split("_"... | 33.511628 | 88 | 0.528799 |
3895e3d273191a5891b94d3dce87893bc4fae4bc | 14,665 | py | Python | common/database.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | common/database.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | common/database.py | santoshpanna/Discord-Bot | 4757a5899dede946a8e409604d230ddc77626d41 | [
"MIT"
] | null | null | null | import time
from . import common
from datetime import datetime
from pymongo import MongoClient, ASCENDING, errors
from _datetime import timedelta
# TODO
# - More error handling
# - Refactor | 44.305136 | 180 | 0.610638 |
38960fd0dbb8b90644b976de856162ef1dd45d60 | 9,859 | py | Python | resources.py | luca-penasa/circle-craters | 62881f7fa7f032c8377dee130598ec7a93ccdae3 | [
"BSD-3-Clause"
] | 1 | 2021-02-01T13:59:29.000Z | 2021-02-01T13:59:29.000Z | resources.py | europlanet-gmap/circle-craters | 62881f7fa7f032c8377dee130598ec7a93ccdae3 | [
"BSD-3-Clause"
] | null | null | null | resources.py | europlanet-gmap/circle-craters | 62881f7fa7f032c8377dee130598ec7a93ccdae3 | [
"BSD-3-Clause"
] | 1 | 2020-10-21T13:50:34.000Z | 2020-10-21T13:50:34.000Z | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x64\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x00\x18\x... | 46.947619 | 129 | 0.723299 |
389677db37e2b64f293419c2cc65068b4e74938c | 6,422 | py | Python | analysis_util.py | googleinterns/invobs-data-assimilation | 36e0ff6319a596d99d6f4197bff0f00a38d299c4 | [
"Apache-2.0"
] | 16 | 2021-07-05T08:09:43.000Z | 2022-03-21T19:12:06.000Z | analysis_util.py | googleinterns/invobs-data-assimilation | 36e0ff6319a596d99d6f4197bff0f00a38d299c4 | [
"Apache-2.0"
] | null | null | null | analysis_util.py | googleinterns/invobs-data-assimilation | 36e0ff6319a596d99d6f4197bff0f00a38d299c4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 29.324201 | 80 | 0.678605 |
38985d959385d3a2057ea5f7a76d2853b1c2d13c | 23,684 | py | Python | Model&Data/tf-VAEGAN/main.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | Model&Data/tf-VAEGAN/main.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | Model&Data/tf-VAEGAN/main.py | LiangjunFeng/Generative-Any-Shot-Learning | 693c4ab92f2eb04cc453c870782710a982f98e80 | [
"Apache-2.0"
] | null | null | null | import argparse
from train_images import run
# generalized ZSL
# CUDA_VISIBLE_DEVICES=0 nohup python -u main.py --dataset AWA1 --few_train False --num_shots 0 --generalized True > awa1.log 2>&1 &
# CUDA_VISIBLE_DEVICES=1 nohup python -u main.py --dataset SUN --few_train False --num_shots 0 --generalized True > sun.lo... | 92.515625 | 195 | 0.728973 |
389928928531253b490c07d0fc64099905fa3ddb | 13,514 | py | Python | src/charm.py | openstack-charmers/charm-ovn-central-operator | b64cd0ab974b4059c242c47a237d43b7872d9e1f | [
"Apache-2.0"
] | null | null | null | src/charm.py | openstack-charmers/charm-ovn-central-operator | b64cd0ab974b4059c242c47a237d43b7872d9e1f | [
"Apache-2.0"
] | null | null | null | src/charm.py | openstack-charmers/charm-ovn-central-operator | b64cd0ab974b4059c242c47a237d43b7872d9e1f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""OVN Central Operator Charm.
This charm provide Glance services as part of an OpenStack deployment
"""
import ovn
import ovsdb as ch_ovsdb
import logging
from typing import List
import ops.charm
from ops.framework import StoredState
from ops.main import main
import advanced_sunbeam_openstac... | 36.13369 | 76 | 0.576735 |
3899d54508a0e95bd0473233c830cecd104741d0 | 9,101 | py | Python | main.py | tonymorony/trollbox_gui | 39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f | [
"MIT"
] | 2 | 2018-11-02T15:42:33.000Z | 2018-11-18T00:51:46.000Z | main.py | tonymorony/trollbox_gui | 39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f | [
"MIT"
] | null | null | null | main.py | tonymorony/trollbox_gui | 39fd0a60bbc9aed116c10be5f20d2d2539fb4f9f | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.config import Config
from kivy.uix.listview import ListItemButton
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.label import Label
from kivy.clock import Clock
from kivy.uix.button import Button
from kivy.uix.widget import Widget
from functools import partial
... | 40.811659 | 224 | 0.600703 |
389b67fc68ad22caeff85063c1c4e146f3236d00 | 4,113 | py | Python | marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py | arrrlo/marine-traffic-client-api | 1ac4b65010b1dc3f161940ee83815b341f9455ea | [
"MIT"
] | 15 | 2019-12-24T17:25:33.000Z | 2022-03-04T01:56:30.000Z | marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py | arrrlo/marine-traffic-client-api | 1ac4b65010b1dc3f161940ee83815b341f9455ea | [
"MIT"
] | 27 | 2019-03-14T09:04:07.000Z | 2022-03-02T09:20:36.000Z | marinetrafficapi/vessel_data/VD02_vessel_particulars/models.py | arrrlo/marine-traffic-client-api | 1ac4b65010b1dc3f161940ee83815b341f9455ea | [
"MIT"
] | 3 | 2019-04-15T14:02:32.000Z | 2022-03-25T12:55:47.000Z | from marinetrafficapi.models import Model
from marinetrafficapi.fields import TextField, NumberField, RealNumberField
| 47.825581 | 83 | 0.518843 |
389cba084366f7307444b1fce740c72d5772c5a0 | 8,985 | py | Python | 01-tapsterbot/click-accuracy/ClickAutomation.py | AppTestBot/AppTestBot | 035e93e662753e50d7dcc38d6fd362933186983b | [
"Apache-2.0"
] | null | null | null | 01-tapsterbot/click-accuracy/ClickAutomation.py | AppTestBot/AppTestBot | 035e93e662753e50d7dcc38d6fd362933186983b | [
"Apache-2.0"
] | null | null | null | 01-tapsterbot/click-accuracy/ClickAutomation.py | AppTestBot/AppTestBot | 035e93e662753e50d7dcc38d6fd362933186983b | [
"Apache-2.0"
] | null | null | null | import os
import sys
import shutil
import csv
import subprocess ... | 40.472973 | 104 | 0.427713 |
389d5fdd271842afaa8eb2ba841ed09fa0b2bfa7 | 957 | py | Python | tools/export_fbx.py | SeijiEmery/unity_tools | cb401e6979b95c081a2ab3f944fc6e4419ccfd0e | [
"MIT"
] | null | null | null | tools/export_fbx.py | SeijiEmery/unity_tools | cb401e6979b95c081a2ab3f944fc6e4419ccfd0e | [
"MIT"
] | null | null | null | tools/export_fbx.py | SeijiEmery/unity_tools | cb401e6979b95c081a2ab3f944fc6e4419ccfd0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import sys
from run_bpy_script import run_blender_script
if __name__ == '__main__':
# split args, kwargs + use these to call a function
script_args = sys.argv[1:]
args, kwargs = [], {}
while len(script_args) > 0:
arg = script_args[0]
if arg.startswith(... | 25.864865 | 68 | 0.615465 |
389d63e90be0f0a03a327ac541d5fc56ba045954 | 4,389 | py | Python | g2pk/special.py | elbum/g2pK | c00fae07973b552a4e318f3c775c52bbb71c8196 | [
"Apache-2.0"
] | 136 | 2019-06-28T06:50:26.000Z | 2022-03-25T15:54:08.000Z | g2pk/special.py | elbum/g2pK | c00fae07973b552a4e318f3c775c52bbb71c8196 | [
"Apache-2.0"
] | 6 | 2020-08-30T05:46:46.000Z | 2022-02-07T02:00:53.000Z | g2pk/special.py | elbum/g2pK | c00fae07973b552a4e318f3c775c52bbb71c8196 | [
"Apache-2.0"
] | 30 | 2019-06-28T07:17:04.000Z | 2022-02-27T07:40:06.000Z | # -*- coding: utf-8 -*-
'''
Special rule for processing Hangul
https://github.com/kyubyong/g2pK
'''
import re
from g2pk.utils import gloss, get_rule_id2text
rule_id2text = get_rule_id2text()
############################ vowels ############################
| 24.657303 | 73 | 0.501253 |
389e23e664ef6bec0dd218c1023187fec627c7da | 1,136 | py | Python | mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py | petercable/mi-dataset | d3c1607ea31af85fbba5719a31d4a60bf39f8dd3 | [
"BSD-2-Clause"
] | 1 | 2018-09-14T23:28:29.000Z | 2018-09-14T23:28:29.000Z | mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py | petercable/mi-dataset | d3c1607ea31af85fbba5719a31d4a60bf39f8dd3 | [
"BSD-2-Clause"
] | 33 | 2017-04-25T19:53:45.000Z | 2022-03-18T17:42:18.000Z | mi/dataset/driver/flord_l_wfp/sio/flord_l_wfp_sio_telemetered_driver.py | petercable/mi-dataset | d3c1607ea31af85fbba5719a31d4a60bf39f8dd3 | [
"BSD-2-Clause"
] | 31 | 2015-03-04T01:01:09.000Z | 2020-10-28T14:42:12.000Z | #!/usr/local/bin/python2.7
##
# OOIPLACEHOLDER
#
# Copyright 2014 Raytheon Co.
##
__author__ = 'Mark Worden'
from mi.dataset.dataset_parser import DataSetDriverConfigKeys
from mi.dataset.dataset_driver import SimpleDatasetDriver
from mi.dataset.parser.flord_l_wfp_sio import FlordLWfpSioParser
from mi.core.versioning ... | 27.047619 | 92 | 0.71831 |
389e3359d1c51e16167fb066518dcce270c6cf1d | 1,150 | py | Python | qa_tool/models.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 12 | 2017-08-30T18:21:00.000Z | 2021-12-09T04:04:17.000Z | qa_tool/models.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 424 | 2017-08-08T18:32:14.000Z | 2022-03-30T21:42:51.000Z | qa_tool/models.py | pg-irc/pathways-backend | 05a8c4e750523d2d081b030a248c5444d1ed7992 | [
"BSD-3-Clause"
] | 7 | 2017-09-29T21:14:37.000Z | 2019-12-30T21:07:37.000Z | from django.contrib.gis.db import models
from common.models import (RequiredURLField,
OptionalTextField, RequiredCharField)
from human_services.locations.models import ServiceAtLocation
from search.models import Task
from users.models import User
| 30.263158 | 81 | 0.722609 |
389f1a7b583f28aabf6b2f6f6dbd7bcfd9b5dc58 | 3,485 | py | Python | ivi/tektronix/__init__.py | sacherjj/python-ivi | 6dd1ba93d65dc30a652a3a1b34c66921d94315e8 | [
"MIT"
] | 161 | 2015-01-23T17:43:01.000Z | 2022-03-29T14:42:42.000Z | ivi/tektronix/__init__.py | sacherjj/python-ivi | 6dd1ba93d65dc30a652a3a1b34c66921d94315e8 | [
"MIT"
] | 45 | 2015-01-15T13:35:04.000Z | 2021-06-03T01:58:55.000Z | ivi/tektronix/__init__.py | sacherjj/python-ivi | 6dd1ba93d65dc30a652a3a1b34c66921d94315e8 | [
"MIT"
] | 87 | 2015-01-31T10:55:23.000Z | 2022-03-17T08:18:47.000Z | """
Python Interchangeable Virtual Instrument Library
Copyright (c) 2012-2017 Alex Forencich
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... | 39.157303 | 77 | 0.857389 |
38a0b921f983b2d2b9365a4bb47c16ebd9b5348e | 449 | py | Python | wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 11 | 2019-12-31T20:27:22.000Z | 2022-03-10T03:55:38.000Z | wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 164 | 2020-02-06T15:02:22.000Z | 2022-03-30T22:42:00.000Z | wazimap_ng/boundaries/migrations/0007_auto_20200121_0907.py | arghyaiitb/wazimap-ng | 2a77860526d865b8fd0c22a2204f121fdb3b28a0 | [
"Apache-2.0"
] | 16 | 2020-01-03T20:30:24.000Z | 2022-01-11T11:05:15.000Z | # Generated by Django 2.2.8 on 2020-01-21 09:07
import django.contrib.gis.db.models.fields
from django.db import migrations
| 22.45 | 78 | 0.632517 |
38a129325d66bb189c82f953757e48c8f2208659 | 551 | py | Python | rldb/db/repo__openai_baselines_cbd21ef/algo__ppo2_mpi/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__ppo2_mpi/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__ppo2_mpi/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': 207.47,
},
{
'env-title': 'atari-space-invaders',
'score': 459.89,
},
{
'env-title': 'atari-qbert',
'score': 7184.73,
},
{
'env-title': 'atari-seaquest',
'score': 1383.38,
... | 17.774194 | 44 | 0.399274 |