hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 248 | max_stars_repo_name stringlengths 5 125 | 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 248 | max_issues_repo_name stringlengths 5 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | 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 248 | max_forks_repo_name stringlengths 5 125 | 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 5 2.06M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.03M | alphanum_fraction float64 0 1 | count_classes int64 0 1.6M | score_classes float64 0 1 | count_generators int64 0 651k | score_generators float64 0 1 | count_decorators int64 0 990k | score_decorators float64 0 1 | count_async_functions int64 0 235k | score_async_functions float64 0 1 | count_documentation int64 0 1.04M | score_documentation float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f408463fbafd0299afebe10a70bf543c07547fe8 | 4,541 | py | Python | utils/data/dataset_catalog.py | rs9899/Parsing-R-CNN | a0c9ed8850abe740eedf8bfc6e1577cc0aa3fc7b | [
"MIT"
] | 289 | 2018-10-25T09:42:57.000Z | 2022-03-30T08:31:50.000Z | utils/data/dataset_catalog.py | qzane/Parsing-R-CNN | 8c4d940dcd322bf7a8671f8b0faaabb3259bd384 | [
"MIT"
] | 28 | 2019-01-07T02:39:49.000Z | 2022-01-25T08:54:36.000Z | utils/data/dataset_catalog.py | qzane/Parsing-R-CNN | 8c4d940dcd322bf7a8671f8b0faaabb3259bd384 | [
"MIT"
] | 44 | 2018-12-20T07:36:46.000Z | 2022-03-16T14:30:20.000Z | import os.path as osp
# Root directory of project
ROOT_DIR = osp.abspath(osp.join(osp.dirname(__file__), '..', '..'))
# Path to data dir
_DATA_DIR = osp.abspath(osp.join(ROOT_DIR, 'data'))
# Required dataset entry keys
_IM_DIR = 'image_directory'
_ANN_FN = 'annotation_file'
# Available datasets
COMMON_DATASETS = {
... | 31.978873 | 88 | 0.580269 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,224 | 0.48976 |
f408a9fe238e011fdbd51d60d3da477f1a193548 | 1,713 | py | Python | prepareDataSet.py | Dakewe-DS1000/LapRSNet | 47e630acd3f0523ee5ac698566ff45e645681b23 | [
"Apache-2.0"
] | 6 | 2019-11-14T12:12:43.000Z | 2021-07-10T13:05:14.000Z | prepareDataSet.py | Dakewe-DS1000/LapRSNet | 47e630acd3f0523ee5ac698566ff45e645681b23 | [
"Apache-2.0"
] | null | null | null | prepareDataSet.py | Dakewe-DS1000/LapRSNet | 47e630acd3f0523ee5ac698566ff45e645681b23 | [
"Apache-2.0"
] | 1 | 2021-05-18T06:41:11.000Z | 2021-05-18T06:41:11.000Z | # Prepare my dataset for Digital Pathology
import os
import math
import cv2
import pdb
rootFolder = "F:\DataBase\LymphnodePathology"
trainFolder = rootFolder + "\\trainDataSet"
testFolder = rootFolder + "\\testDataSet"
srcTrainFilePath = trainFolder + "\\20X\\"
dstTrainFilePath = trainFolder + "\\5X\\"
srcTestFileP... | 34.959184 | 124 | 0.694688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 236 | 0.13777 |
f40992ff6f047f5e4c5a436cd251bdd645155f4b | 424 | py | Python | sample_project/sample_content/serializers.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | 1 | 2021-01-24T11:54:01.000Z | 2021-01-24T11:54:01.000Z | sample_project/sample_content/serializers.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | 112 | 2020-04-22T10:07:03.000Z | 2022-03-29T15:25:26.000Z | sample_project/sample_content/serializers.py | zentrumnawi/solid-backend | 0a6ac51608d4c713903856bb9b0cbf0068aa472c | [
"MIT"
] | null | null | null | from rest_framework import serializers
from solid_backend.photograph.serializers import PhotographSerializer
from solid_backend.media_object.serializers import MediaObjectSerializer
from .models import SampleProfile
class SampleProfileSerializer(serializers.ModelSerializer):
media_objects = MediaObjectSerializer... | 28.266667 | 72 | 0.794811 | 204 | 0.481132 | 0 | 0 | 0 | 0 | 0 | 0 | 9 | 0.021226 |
f40b92b97d4fadcb832680913b2744036577bcf3 | 782 | py | Python | tests/reshape_4/generate_pb.py | wchsieh/utensor_cgen | 1774f0dfc0eb98b274271e7a67457dc3593b2593 | [
"Apache-2.0"
] | null | null | null | tests/reshape_4/generate_pb.py | wchsieh/utensor_cgen | 1774f0dfc0eb98b274271e7a67457dc3593b2593 | [
"Apache-2.0"
] | null | null | null | tests/reshape_4/generate_pb.py | wchsieh/utensor_cgen | 1774f0dfc0eb98b274271e7a67457dc3593b2593 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf8 -*-
import os
from utensor_cgen.utils import save_consts, save_graph, save_idx
import numpy as np
import tensorflow as tf
def generate():
test_dir = os.path.dirname(__file__)
graph = tf.Graph()
with graph.as_default():
x = tf.constant(np.random.randn(10),
dtype=tf.floa... | 28.962963 | 64 | 0.673913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 182 | 0.232737 |
f40be0fa2a141ea92705b94cef65862a1f2be235 | 2,619 | py | Python | junn-predict/junn_predict/common/logging.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn-predict/junn_predict/common/logging.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | junn-predict/junn_predict/common/logging.py | modsim/junn | a40423b98c6a3739dd0b2ba02d546a5db91f9215 | [
"BSD-2-Clause"
] | null | null | null | """Logging helpers."""
import logging
import sys
import colorlog
import tqdm
class TqdmLoggingHandler(logging.StreamHandler):
"""TqdmLoggingHandler, outputs log messages to the console compatible with tqdm."""
def emit(self, record): # noqa: D102
message = self.format(record)
tqdm.tqdm.writ... | 25.930693 | 88 | 0.640321 | 1,163 | 0.444063 | 0 | 0 | 0 | 0 | 0 | 0 | 860 | 0.32837 |
f40cae84710b69af5184821f31d2608460ea3b50 | 2,284 | py | Python | subpartcode/ultrasonic_basic_code.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | 1 | 2020-04-15T01:17:06.000Z | 2020-04-15T01:17:06.000Z | subpartcode/ultrasonic_basic_code.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | null | null | null | subpartcode/ultrasonic_basic_code.py | LesterYHZ/Automated-Bridge-Inspection-Robot-Project | c3f4e12f9b60a8a6b041bf2b6d0461a1bb39c726 | [
"MIT"
] | 1 | 2020-04-13T16:45:06.000Z | 2020-04-13T16:45:06.000Z | #Basic Ultrasonic sensor (HC-SR04) code
import RPi.GPIO as GPIO #GPIO RPI library
import time # makes sure Pi waits between steps
GPIO.setmode(GPIO.BCM) #sets GPIO pin numbering
#GPIO.setmode(GPIO.BOARD)
#Remove warnings
GPIO.setwarnings(False)
#Create loop variable
#loop = 1
#BCM
TRIG = 23 #output pin - triggers t... | 26.252874 | 134 | 0.700088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,339 | 0.586252 |
f40ced5dbf4e657687527c5b0ff47c429e361805 | 868 | py | Python | Mentorama/Modulo 3 - POO/Retangulo.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null | Mentorama/Modulo 3 - POO/Retangulo.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null | Mentorama/Modulo 3 - POO/Retangulo.py | MOURAIGOR/python | b267f8ef277a385e3e315e88a22390512bf1e101 | [
"MIT"
] | null | null | null | class Retangulo:
# Atributos
def __init__(self, comprimento, altura):
self.setcomprimento(comprimento)
self.setAltura(altura)
# Métodos
def setcomprimento(self, comprimento):
self.comprimento = comprimento
def getcomprimento(self):
return self.comprimento
def se... | 28 | 71 | 0.679724 | 586 | 0.67279 | 0 | 0 | 0 | 0 | 0 | 0 | 138 | 0.158439 |
f40f0e5d0f6c305a62e87232ab24691dc4b36cbe | 4,053 | py | Python | DEMs/denmark/download_dk_dem.py | PeterFogh/digital_elevation_model_use_cases | 0e72cc6238ca5217a73d06dc3e8c3229024112c3 | [
"MIT"
] | null | null | null | DEMs/denmark/download_dk_dem.py | PeterFogh/digital_elevation_model_use_cases | 0e72cc6238ca5217a73d06dc3e8c3229024112c3 | [
"MIT"
] | null | null | null | DEMs/denmark/download_dk_dem.py | PeterFogh/digital_elevation_model_use_cases | 0e72cc6238ca5217a73d06dc3e8c3229024112c3 | [
"MIT"
] | null | null | null | """
Fetch all files from Kortforsyningen FTP server folder.
Copyright (c) 2021 Peter Fogh
See also command line alternative in `download_dk_dem.sh`
"""
from ftplib import FTP, error_perm
import os
from pathlib import Path
import time
import operator
import functools
import shutil
# TODO: use logging to std instead of... | 32.166667 | 117 | 0.66642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,317 | 0.571675 |
f40ff4bc5a583d0c231681fd8bba22b2aa827939 | 3,481 | py | Python | 6_refin_widgets.py | jiaxinjiang2919/Refinance-Calculator | f4bb0c536b88692ef90f504fdb2d9bed85588b7c | [
"Apache-2.0"
] | 14 | 2019-05-01T05:03:20.000Z | 2022-01-08T03:18:05.000Z | 6_refin_widgets.py | jiaxinjiang2919/Refinance-Calculator | f4bb0c536b88692ef90f504fdb2d9bed85588b7c | [
"Apache-2.0"
] | null | null | null | 6_refin_widgets.py | jiaxinjiang2919/Refinance-Calculator | f4bb0c536b88692ef90f504fdb2d9bed85588b7c | [
"Apache-2.0"
] | 8 | 2019-05-19T11:24:28.000Z | 2022-02-16T20:19:30.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 24 15:02:37 2019
@author: Matt Macarty
"""
from tkinter import *
import numpy as np
class LoanCalculator:
def __init__(self):
window = Tk()
window.title("Loan Calculator")
Label(window, text="Loan Amount").grid(row=1... | 36.642105 | 118 | 0.578857 | 3,313 | 0.951738 | 0 | 0 | 0 | 0 | 0 | 0 | 571 | 0.164033 |
f4117b390cbdb79866a23c18436a60de53454ed6 | 19,224 | py | Python | ndctl.py | davelarsen58/pmemtool | a7acb0991cbcd683f761d4b108d018d7d2d10aeb | [
"MIT"
] | 3 | 2021-12-17T04:26:30.000Z | 2022-03-30T06:32:21.000Z | ndctl.py | davelarsen58/pmemtool | a7acb0991cbcd683f761d4b108d018d7d2d10aeb | [
"MIT"
] | 9 | 2021-12-21T17:14:58.000Z | 2022-02-12T00:45:11.000Z | ndctl.py | davelarsen58/pmemtool | a7acb0991cbcd683f761d4b108d018d7d2d10aeb | [
"MIT"
] | 1 | 2022-01-18T23:26:02.000Z | 2022-01-18T23:26:02.000Z | #!/usr/bin/python3
#
# PMTOOL NDCTL Python Module
# Copyright (C) David P Larsen
# Released under MIT License
import os
import json
from common import message, get_linenumber, pretty_print
from common import V0, V1, V2, V3, V4, V5, D0, D1, D2, D3, D4, D5
import common as c
import time
DEFAULT_FSTAB_FILE = "/etc/fsta... | 27.700288 | 120 | 0.5567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9,696 | 0.50437 |
f4125249bade8003f4245ff65531e572d79b0160 | 653 | py | Python | tb/sources/__init__.py | DronMDF/manabot | b412e8cb9b5247f05487bed4cbf4967f7b58327f | [
"MIT"
] | 1 | 2017-11-29T11:51:12.000Z | 2017-11-29T11:51:12.000Z | tb/sources/__init__.py | DronMDF/manabot | b412e8cb9b5247f05487bed4cbf4967f7b58327f | [
"MIT"
] | 109 | 2017-11-28T20:51:59.000Z | 2018-02-02T13:15:29.000Z | tb/sources/__init__.py | DronMDF/manabot | b412e8cb9b5247f05487bed4cbf4967f7b58327f | [
"MIT"
] | null | null | null | from .admin import ReviewListAdmin, SoAdminReviewIsOut, SoReviewForAdmin
from .admin_commands import (
AdminCommands,
AdminFilteredCommands,
ReviewListByCommands,
SoIgnoreReview,
SoSubmitReview
)
from .gerrit import ReviewOnServer, SoNewReview, SoOutReview, SoUpdateReview
from .reaction import (
ReactionAlways,
... | 20.40625 | 76 | 0.82389 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
f412b42dfc85a5a206a8dd5d9f02a0078c055cdd | 60,615 | py | Python | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/accesscontextmanager/service_perimeter.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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... | 52.480519 | 147 | 0.640502 | 60,135 | 0.992081 | 0 | 0 | 57,321 | 0.945657 | 0 | 0 | 47,155 | 0.777943 |
f41456d2af09359f55da03d5a94e013a18221147 | 3,935 | py | Python | core/swift3.1.1Action/swift3runner.py | ianpartridge/incubator-openwhisk-runtime-swift | 5aacba1435f46b13cbb0a70874afb4b53c1a78bc | [
"Apache-2.0"
] | 2 | 2017-08-18T23:02:29.000Z | 2018-01-20T22:44:33.000Z | core/swift3.1.1Action/swift3runner.py | ianpartridge/incubator-openwhisk-runtime-swift | 5aacba1435f46b13cbb0a70874afb4b53c1a78bc | [
"Apache-2.0"
] | 4 | 2017-02-03T17:01:33.000Z | 2017-03-27T01:29:56.000Z | core/swift3.1.1Action/swift3runner.py | ianpartridge/incubator-openwhisk-runtime-swift | 5aacba1435f46b13cbb0a70874afb4b53c1a78bc | [
"Apache-2.0"
] | 4 | 2019-10-08T13:43:47.000Z | 2021-11-10T15:36:35.000Z | """Python proxy to run Swift action.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... | 34.217391 | 104 | 0.636595 | 2,585 | 0.656925 | 0 | 0 | 0 | 0 | 0 | 0 | 1,803 | 0.458196 |
f4166388f315b81cfe6df485234fcfe561b8ac22 | 251 | py | Python | src/ychaos/utils/types.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 8 | 2021-07-21T15:37:48.000Z | 2022-03-03T14:43:09.000Z | src/ychaos/utils/types.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 102 | 2021-07-20T16:08:29.000Z | 2022-03-25T07:28:37.000Z | src/ychaos/utils/types.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 8 | 2021-07-20T13:37:46.000Z | 2022-02-18T01:44:52.000Z | from typing import Dict, List, TypeVar, Union
JsonTypeVar = TypeVar("JsonTypeVar")
JsonPrimitive = Union[str, float, int, bool, None]
JsonDict = Dict[str, JsonTypeVar]
JsonArray = List[JsonTypeVar]
Json = Union[JsonPrimitive, JsonDict, JsonArray]
| 22.818182 | 50 | 0.760956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0.051793 |
f416d0a9f34ba173050cd0b0ffffe6b5fee17622 | 6,006 | py | Python | yandex_market_language/models/promo.py | stefanitsky/yandex_market_language | e17595b556fc55e183cf366227b2739c5c6178dc | [
"MIT"
] | 7 | 2020-03-28T22:35:52.000Z | 2021-09-16T10:50:10.000Z | yandex_market_language/models/promo.py | stefanitsky/yandex_market_language | e17595b556fc55e183cf366227b2739c5c6178dc | [
"MIT"
] | 192 | 2020-03-29T12:38:53.000Z | 2021-09-01T14:12:07.000Z | yandex_market_language/models/promo.py | stefanitsky/yandex_market_language | e17595b556fc55e183cf366227b2739c5c6178dc | [
"MIT"
] | 6 | 2020-06-05T09:07:02.000Z | 2021-11-28T14:37:58.000Z | import typing as t
from yandex_market_language import models
from yandex_market_language.models.abstract import XMLElement, XMLSubElement
class Promo(models.AbstractModel):
"""
Docs: https://yandex.ru/support/partnermarket/elements/promo-gift.html
"""
MAPPING = {
"start-date": "start_date",
... | 27.934884 | 78 | 0.580087 | 5,856 | 0.975025 | 0 | 0 | 1,413 | 0.235265 | 0 | 0 | 1,018 | 0.169497 |
f4173149ff496f494a4326e1f0ac4dc7014b0225 | 3,834 | py | Python | src/testCmd.py | skogsbaer/check-assignments | cda8208c10644eecfe0bb988bee61098485aa6c4 | [
"BSD-3-Clause"
] | null | null | null | src/testCmd.py | skogsbaer/check-assignments | cda8208c10644eecfe0bb988bee61098485aa6c4 | [
"BSD-3-Clause"
] | null | null | null | src/testCmd.py | skogsbaer/check-assignments | cda8208c10644eecfe0bb988bee61098485aa6c4 | [
"BSD-3-Clause"
] | 1 | 2021-03-26T14:00:14.000Z | 2021-03-26T14:00:14.000Z | import shell
from dataclasses import dataclass
from utils import *
from ownLogging import *
from typing import *
from ansi import *
import re
import os
import testHaskell
import testPython
import testJava
@dataclass
class TestArgs:
dirs: List[str]
assignments: List[str] # take all if empty
interactive: boo... | 30.919355 | 103 | 0.594158 | 121 | 0.03156 | 0 | 0 | 132 | 0.034429 | 0 | 0 | 590 | 0.153886 |
f4189a148892e47a3efe2ef760b39a4a07630dfd | 14,098 | py | Python | kipoi_containers/singularityhelper.py | kipoi/kipoi-containers | 5978cf1563dcc1072170f28a0a956cc28aa3c406 | [
"MIT"
] | null | null | null | kipoi_containers/singularityhelper.py | kipoi/kipoi-containers | 5978cf1563dcc1072170f28a0a956cc28aa3c406 | [
"MIT"
] | 11 | 2021-11-30T19:30:50.000Z | 2022-03-29T17:06:15.000Z | kipoi_containers/singularityhelper.py | kipoi/kipoi-containers | 5978cf1563dcc1072170f28a0a956cc28aa3c406 | [
"MIT"
] | null | null | null | from collections import Counter
from datetime import datetime
import os
import requests
from subprocess import Popen, PIPE
from pathlib import Path
import json
from typing import Dict, Union, TYPE_CHECKING
from kipoi_utils.external.torchvision.dataset_utils import download_url
if TYPE_CHECKING:
import zenodoclien... | 36.148718 | 109 | 0.62633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,668 | 0.402043 |
f418aa86180868641545c7ca6a350482c74458ed | 1,152 | py | Python | policy/_cache.py | garenchan/policy | fbd056c0474e62252d1fe986fe029cacde6845d8 | [
"Apache-2.0"
] | 5 | 2018-10-17T21:06:07.000Z | 2021-12-31T01:33:09.000Z | policy/_cache.py | garenchan/policy | fbd056c0474e62252d1fe986fe029cacde6845d8 | [
"Apache-2.0"
] | 1 | 2018-09-07T09:00:41.000Z | 2018-09-07T11:06:14.000Z | policy/_cache.py | garenchan/policy | fbd056c0474e62252d1fe986fe029cacde6845d8 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
policy._cache
~~~~~~~~~~~~~~~
Cache for policy file.
"""
import os
import logging
LOG = logging.getLogger(__name__)
# Global file cache
CACHE = {}
def read_file(filename: str, force_reload=False):
"""Read a file if it has been modified.
:param filename: File name ... | 21.735849 | 76 | 0.631944 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 487 | 0.422743 |
f419167b819e5ee174fbe6b84ca88ef1f496b659 | 10,858 | py | Python | contrib/opencensus-ext-django/opencensus/ext/django/middleware.py | samn/opencensus-python | d8709f141b67f7f5ba011c440b8ba8fb9cbc419a | [
"Apache-2.0"
] | null | null | null | contrib/opencensus-ext-django/opencensus/ext/django/middleware.py | samn/opencensus-python | d8709f141b67f7f5ba011c440b8ba8fb9cbc419a | [
"Apache-2.0"
] | null | null | null | contrib/opencensus-ext-django/opencensus/ext/django/middleware.py | samn/opencensus-python | d8709f141b67f7f5ba011c440b8ba8fb9cbc419a | [
"Apache-2.0"
] | null | null | null | # Copyright 2017, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 36.682432 | 79 | 0.667618 | 7,412 | 0.68263 | 0 | 0 | 0 | 0 | 0 | 0 | 2,989 | 0.275281 |
f419f2c87349548809cd06192323167246871ccd | 1,322 | py | Python | codeblockCar/codingPage/tests.py | ICT2x01-p2-4/ICT2x01-p2-4 | 6249c0a807354b33db80f367344fe14cb5512840 | [
"MIT"
] | null | null | null | codeblockCar/codingPage/tests.py | ICT2x01-p2-4/ICT2x01-p2-4 | 6249c0a807354b33db80f367344fe14cb5512840 | [
"MIT"
] | 24 | 2021-09-29T02:46:17.000Z | 2021-11-06T13:32:11.000Z | codeblockCar/codingPage/tests.py | ICT2x01-p2-4/Codeblock-car | 6249c0a807354b33db80f367344fe14cb5512840 | [
"MIT"
] | null | null | null | from typing import Reversible
from django.test import TestCase, Client
from challenge.models import Challenge
from codingPage.models import Command, Log
from django.core.exceptions import ValidationError
from django.urls import reverse
class CodingPageTest(TestCase):
def setUp(self) -> None:
self.client = ... | 38.882353 | 113 | 0.630862 | 1,084 | 0.81997 | 0 | 0 | 0 | 0 | 0 | 0 | 278 | 0.210287 |
f41a1ce9bbfb9a3f65c33e9986100ab487ba7015 | 537 | py | Python | app/hint/models.py | vigov5/oshougatsu2015 | 38cbf325675ee2c08a6965b8689fad8308eb84eb | [
"MIT"
] | null | null | null | app/hint/models.py | vigov5/oshougatsu2015 | 38cbf325675ee2c08a6965b8689fad8308eb84eb | [
"MIT"
] | null | null | null | app/hint/models.py | vigov5/oshougatsu2015 | 38cbf325675ee2c08a6965b8689fad8308eb84eb | [
"MIT"
] | null | null | null | import os
import datetime
from app import app, db
class Hint(db.Model):
__tablename__ = 'hints'
id = db.Column(db.Integer, primary_key=True)
description = db.Column(db.Text)
is_open = db.Column(db.Boolean)
problem_id = db.Column(db.Integer, db.ForeignKey('problems.id'))
def __repr__(self):
... | 26.85 | 68 | 0.666667 | 484 | 0.901304 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 0.061453 |
f41ab377d1e1427d9115db2eb2f0758b5461fed9 | 204 | py | Python | base/urls.py | almustafa-noureddin/Portfolio-website | 67462c98fec65e74183ae057e8b31b5bdff1402c | [
"MIT"
] | null | null | null | base/urls.py | almustafa-noureddin/Portfolio-website | 67462c98fec65e74183ae057e8b31b5bdff1402c | [
"MIT"
] | null | null | null | base/urls.py | almustafa-noureddin/Portfolio-website | 67462c98fec65e74183ae057e8b31b5bdff1402c | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
app_name = "base"
urlpatterns = [
path('', views.IndexView.as_view(), name="home"),
path('contact/', views.ContactView.as_view(), name="contact"),] | 22.666667 | 67 | 0.686275 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 0.161765 |
f41b63806a18c6ea9b6ee2484bb3111d3bc16034 | 33,899 | py | Python | app/main/views/templates.py | cds-snc/notification-admin | d4056798bf889ad29893667bbb67ead2f8e466e4 | [
"MIT"
] | 16 | 2019-11-05T21:35:49.000Z | 2022-01-12T15:00:32.000Z | app/main/views/templates.py | cds-snc/notification-admin | d4056798bf889ad29893667bbb67ead2f8e466e4 | [
"MIT"
] | 509 | 2019-07-11T22:03:19.000Z | 2022-03-30T15:19:26.000Z | app/main/views/templates.py | cds-snc/notification-admin | d4056798bf889ad29893667bbb67ead2f8e466e4 | [
"MIT"
] | 8 | 2020-02-21T20:19:29.000Z | 2022-03-31T14:17:02.000Z | from datetime import datetime, timedelta
from string import ascii_uppercase
from dateutil.parser import parse
from flask import abort, flash, jsonify, redirect, render_template, request, url_for
from flask_babel import _
from flask_babel import lazy_gettext as _l
from flask_login import current_user
from markupsafe im... | 36.927015 | 127 | 0.661081 | 0 | 0 | 0 | 0 | 26,512 | 0.781765 | 0 | 0 | 7,148 | 0.210775 |
f41c237f71cc3272ed38dd3e63b60d183d0e2aa0 | 7,999 | py | Python | linearRegression_gradientDescent/linearRegression_gradientDescent.py | MarcelloVendruscolo/DeepLearningForImageAnalysis | 0f57d63510d0f7b2729d214b3729a21a663794b5 | [
"MIT"
] | null | null | null | linearRegression_gradientDescent/linearRegression_gradientDescent.py | MarcelloVendruscolo/DeepLearningForImageAnalysis | 0f57d63510d0f7b2729d214b3729a21a663794b5 | [
"MIT"
] | null | null | null | linearRegression_gradientDescent/linearRegression_gradientDescent.py | MarcelloVendruscolo/DeepLearningForImageAnalysis | 0f57d63510d0f7b2729d214b3729a21a663794b5 | [
"MIT"
] | null | null | null | import numpy as np
from load_auto import load_auto
import matplotlib.pyplot as plt
import math
def initialize_parameters(observation_dimension):
# observation_dimension: number of features taken into consideration of the input
# returns weights as a vector and offset as a scalar
weights = np.zeros((observa... | 48.478788 | 169 | 0.739717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,573 | 0.446681 |
f41df8a9a5f75d57ee4443306eca56bc32c0d2b4 | 3,426 | py | Python | unit_tests/test_hr_calculations.py | mdholbrook/heart_rate_sentinel_server | 927b59ad6d2078bd6e3491014fdebbc610d25e63 | [
"MIT"
] | null | null | null | unit_tests/test_hr_calculations.py | mdholbrook/heart_rate_sentinel_server | 927b59ad6d2078bd6e3491014fdebbc610d25e63 | [
"MIT"
] | null | null | null | unit_tests/test_hr_calculations.py | mdholbrook/heart_rate_sentinel_server | 927b59ad6d2078bd6e3491014fdebbc610d25e63 | [
"MIT"
] | null | null | null | import pytest
from functions.hr_calculations import *
@pytest.mark.parametrize("candidate, database, expected", [
('jack', [{'patient_id': 'jump'}, {'patient_id': 'jack'}], 1),
('jungle', [{'patient_id': 'jungle'}, {'patient_id': 'jack'}], 0),
('bo', [{'patient_id': 'james'}, {'patient_id': 'boo'},
... | 32.018692 | 78 | 0.600117 | 0 | 0 | 0 | 0 | 3,348 | 0.977233 | 0 | 0 | 1,200 | 0.350263 |
f41e1e3571049d96370122828fa85b57484158ca | 2,492 | py | Python | selfdrive/boardd/tests/test_boardd_api.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 114 | 2020-02-24T14:18:01.000Z | 2022-03-19T03:42:00.000Z | selfdrive/boardd/tests/test_boardd_api.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 15 | 2020-02-25T03:37:44.000Z | 2021-09-08T01:51:15.000Z | selfdrive/boardd/tests/test_boardd_api.py | 919bot/Tessa | 9b48ff9020e8fb6992fc78271f2720fd19e01093 | [
"MIT"
] | 73 | 2018-12-03T19:34:42.000Z | 2020-07-27T05:10:23.000Z | import random
import numpy as np
import selfdrive.boardd.tests.boardd_old as boardd_old
import selfdrive.boardd.boardd as boardd
from common.realtime import sec_since_boot
from cereal import log
import unittest
def generate_random_can_data_list():
can_list = []
cnt = random.randint(1, 64)
for j in range(cnt):... | 31.948718 | 104 | 0.668539 | 1,939 | 0.77809 | 0 | 0 | 0 | 0 | 0 | 0 | 286 | 0.114767 |
f41f9b1b5316c6d5a7a52a8e3e8227d25b183272 | 2,037 | py | Python | py_types/static/parse.py | zekna/py-types | ec39da1277986f0ea44830dfb0da9d906deb13e1 | [
"MIT"
] | 5 | 2015-06-18T20:04:56.000Z | 2016-03-15T15:32:44.000Z | py_types/static/parse.py | sarlianna/py-types | ec39da1277986f0ea44830dfb0da9d906deb13e1 | [
"MIT"
] | 1 | 2016-01-19T01:39:54.000Z | 2016-01-27T19:17:31.000Z | py_types/static/parse.py | zekna/py-types | ec39da1277986f0ea44830dfb0da9d906deb13e1 | [
"MIT"
] | null | null | null | import ast
import inspect
import sys
import argparse
from ..runtime.asserts import typecheck
@typecheck
def pretty_print_defs(defs: list) -> None:
for d in defs:
print("Function definition for {}".format(d["name"]))
print("Arguments:")
for arg in d["args"]:
arg_type = "untyped... | 29.955882 | 122 | 0.587138 | 0 | 0 | 0 | 0 | 1,868 | 0.917035 | 0 | 0 | 478 | 0.234659 |
f420912bbaeaef68549b8a153f2087a527d8302c | 475 | py | Python | example/example/urls.py | pmaccamp/django-tastypie-swagger | d51ef3ea8e33791617edba8ed55a1be1f16e4ccc | [
"Apache-2.0"
] | 2 | 2020-04-13T13:26:42.000Z | 2021-10-30T17:56:15.000Z | example/example/urls.py | pmaccamp/django-tastypie-swagger | d51ef3ea8e33791617edba8ed55a1be1f16e4ccc | [
"Apache-2.0"
] | null | null | null | example/example/urls.py | pmaccamp/django-tastypie-swagger | d51ef3ea8e33791617edba8ed55a1be1f16e4ccc | [
"Apache-2.0"
] | 5 | 2020-04-15T07:05:13.000Z | 2021-11-01T20:36:10.000Z | from django.conf.urls import include, url
from django.contrib import admin
from demo.apis import api
urlpatterns = [
url(r'^api/', include(api.urls)),
url(r'^api/doc/', include(('tastypie_swagger.urls', 'tastypie_swagger'),
namespace='demo_api_swagger'),
kwargs={
"... | 29.6875 | 76 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 168 | 0.353684 |
f420c7cad07b73b890ce9019d4a200470cb1bcbf | 948 | py | Python | scrapy_framework/midwares/download_midware.py | savor007/scrapy_framework | 9f1266eb2d4bb7e181d1c5352b05298e77040980 | [
"MIT"
] | null | null | null | scrapy_framework/midwares/download_midware.py | savor007/scrapy_framework | 9f1266eb2d4bb7e181d1c5352b05298e77040980 | [
"MIT"
] | null | null | null | scrapy_framework/midwares/download_midware.py | savor007/scrapy_framework | 9f1266eb2d4bb7e181d1c5352b05298e77040980 | [
"MIT"
] | null | null | null | from scrapy_framework.html.request import Request
from scrapy_framework.html.response import Response
import random
def get_ua():
first_num=random.randint(55,69)
third_num=random.randint(0,3200)
forth_num=random.randint(0, 140)
os_type = [
'(Windows NT 6.1; WOW64)', '(Windows NT 10.0; WOW64)... | 28.727273 | 85 | 0.635021 | 277 | 0.292194 | 0 | 0 | 0 | 0 | 0 | 0 | 212 | 0.223629 |
f420caa0d727e8d433f67df3503f8152d7e6f2e7 | 2,294 | py | Python | tracardi/process_engine/action/v1/pro/scheduler/plugin.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | null | null | null | tracardi/process_engine/action/v1/pro/scheduler/plugin.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | null | null | null | tracardi/process_engine/action/v1/pro/scheduler/plugin.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | null | null | null | from pydantic import BaseModel
from tracardi.domain.entity import Entity
from tracardi.domain.scheduler_config import SchedulerConfig
from tracardi.domain.resource import ResourceCredentials
from tracardi.service.storage.driver import storage
from tracardi.service.plugin.runner import ActionRunner
from tracardi.servic... | 29.792208 | 117 | 0.610724 | 887 | 0.386661 | 0 | 0 | 256 | 0.111595 | 460 | 0.200523 | 331 | 0.144289 |
f4211dfd13f13cb0b576625ee36371455d4c829c | 568 | py | Python | tests/test_covid_daily.py | alvarobartt/covid-daily | cb4506a007ac206e85409a13281028f6f82441a6 | [
"MIT"
] | 13 | 2020-05-23T12:25:04.000Z | 2021-12-09T04:56:06.000Z | tests/test_covid_daily.py | alvarobartt/covid-daily | cb4506a007ac206e85409a13281028f6f82441a6 | [
"MIT"
] | 6 | 2020-06-02T12:18:12.000Z | 2021-06-20T07:59:11.000Z | tests/test_covid_daily.py | alvarobartt/covid-daily | cb4506a007ac206e85409a13281028f6f82441a6 | [
"MIT"
] | 5 | 2020-07-02T16:48:19.000Z | 2022-03-21T01:52:17.000Z | # Copyright 2020 Alvaro Bartolome, alvarobartt @ GitHub
# See LICENSE for details.
import pytest
import covid_daily
def test_overview():
params = [
{
'as_json': True
},
{
'as_json': False
}
]
for param in params:
covid_daily.overview(as_js... | 15.777778 | 55 | 0.568662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 146 | 0.257042 |
f4214fc3ae97e545eaf80e0585a829da218ecbdc | 6,132 | py | Python | 2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py | BryanWhitehurst/HPCCEA | 54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa | [
"MIT"
] | 10 | 2019-08-12T23:00:20.000Z | 2021-08-06T17:06:48.000Z | 2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py | BryanWhitehurst/HPCCEA | 54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa | [
"MIT"
] | 5 | 2020-06-18T23:51:58.000Z | 2021-07-28T17:50:34.000Z | 2021/HANFS/fence-agents/fence/agents/zvm/fence_zvmip.py | BryanWhitehurst/HPCCEA | 54b7e7355b67ba3fdce2e28cc1b0e3b29d2bdefa | [
"MIT"
] | 21 | 2019-06-10T21:03:03.000Z | 2021-08-06T17:57:25.000Z | #!@PYTHON@ -tt
import sys
import atexit
import socket
import struct
import logging
sys.path.append("@FENCEAGENTSLIBDIR@")
from fencing import *
from fencing import fail, fail_usage, run_delay, EC_LOGIN_DENIED, EC_TIMED_OUT
#BEGIN_VERSION_GENERATION
RELEASE_VERSION=""
REDHAT_COPYRIGHT=""
BUILD_DATE=""
#END_VERSION_GEN... | 31.285714 | 139 | 0.693575 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,916 | 0.312459 |
f4217689eb43722ace5f25924ae5b537893153d9 | 668 | py | Python | 2.5.9/test_splash/test_splash/spiders/with_splash.py | feel-easy/myspider | dcc65032015d7dbd8bea78f846fd3cac7638c332 | [
"Apache-2.0"
] | 1 | 2019-02-28T10:16:00.000Z | 2019-02-28T10:16:00.000Z | 2.5.9/test_splash/test_splash/spiders/with_splash.py | wasalen/myspider | dcc65032015d7dbd8bea78f846fd3cac7638c332 | [
"Apache-2.0"
] | null | null | null | 2.5.9/test_splash/test_splash/spiders/with_splash.py | wasalen/myspider | dcc65032015d7dbd8bea78f846fd3cac7638c332 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import scrapy
from scrapy_splash import SplashRequest # 使用scrapy_splash包提供的request对象
class WithSplashSpider(scrapy.Spider):
name = 'with_splash'
allowed_domains = ['baidu.com']
start_urls = ['https://www.baidu.com/s?wd=13161933309']
def start_requests(self):
yield Splas... | 35.157895 | 70 | 0.606287 | 597 | 0.824586 | 300 | 0.414365 | 0 | 0 | 0 | 0 | 243 | 0.335635 |
f421c73bcef415f2ea33d9a7d630fcbbb3f2dac1 | 180 | py | Python | run.py | iudaichi/iu_linebot | d3f5a7b0227b175963d51d62bcd5894366bde35c | [
"MIT"
] | null | null | null | run.py | iudaichi/iu_linebot | d3f5a7b0227b175963d51d62bcd5894366bde35c | [
"MIT"
] | null | null | null | run.py | iudaichi/iu_linebot | d3f5a7b0227b175963d51d62bcd5894366bde35c | [
"MIT"
] | null | null | null | from main import app
import os
import uvicorn
if __name__ == '__main__':
port = int(os.getenv("PORT"))
uvicorn.run(app, host="0.0.0.0", port=port, workers=1, reload=True)
| 22.5 | 71 | 0.677778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 25 | 0.138889 |
f422b787a305cf7e7c9786d86bf5d8569355733a | 5,889 | py | Python | fastestimator/architecture/pytorch/unet.py | DwijayDS/fastestimator | 9b288cb2bd870f971ec4cee09d0b3205e1316a94 | [
"Apache-2.0"
] | 57 | 2019-05-21T21:29:26.000Z | 2022-02-23T05:55:21.000Z | fastestimator/architecture/pytorch/unet.py | vbvg2008/fastestimator | 6061a4fbbeb62a2194ef82ba8017f651710d0c65 | [
"Apache-2.0"
] | 93 | 2019-05-23T18:36:07.000Z | 2022-03-23T17:15:55.000Z | fastestimator/architecture/pytorch/unet.py | vbvg2008/fastestimator | 6061a4fbbeb62a2194ef82ba8017f651710d0c65 | [
"Apache-2.0"
] | 47 | 2019-05-09T15:41:37.000Z | 2022-03-26T17:00:08.000Z | # Copyright 2019 The FastEstimator Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | 43.301471 | 110 | 0.609611 | 5,035 | 0.854984 | 0 | 0 | 434 | 0.073697 | 0 | 0 | 1,831 | 0.310919 |
f422e0910bbd8a7ecf986379f467205dc93f05c0 | 5,660 | py | Python | generalfile/path.py | Mandera/generalfile | 5e476a1c075fa072c7e52e62455feeb78b9bb298 | [
"MIT"
] | null | null | null | generalfile/path.py | Mandera/generalfile | 5e476a1c075fa072c7e52e62455feeb78b9bb298 | [
"MIT"
] | null | null | null | generalfile/path.py | Mandera/generalfile | 5e476a1c075fa072c7e52e62455feeb78b9bb298 | [
"MIT"
] | null | null | null |
import pathlib
import os
from generallibrary import VerInfo, TreeDiagram, Recycle, classproperty, deco_cache
from generalfile.errors import InvalidCharacterError
from generalfile.path_lock import Path_ContextManager
from generalfile.path_operations import Path_Operations
from generalfile.path_strings import Path_St... | 28.3 | 137 | 0.649117 | 4,976 | 0.879152 | 0 | 0 | 2,360 | 0.416961 | 0 | 0 | 938 | 0.165724 |
f423a60c36497f5bf95253c92fffc3d805f3c461 | 11,128 | py | Python | src/genui/models/models.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 15 | 2021-05-31T13:39:17.000Z | 2022-03-30T12:04:14.000Z | src/genui/models/models.py | martin-sicho/genui | ea7f1272030a13e8e253a7a9b6479ac6a78552d3 | [
"MIT"
] | 3 | 2021-04-08T22:02:22.000Z | 2022-03-16T09:10:20.000Z | src/genui/models/models.py | Tontolda/genui | c5b7da7c5a99fc16d34878e2170145ac7c8e31c4 | [
"0BSD"
] | 5 | 2021-03-04T11:00:54.000Z | 2021-12-18T22:59:22.000Z | import os
from django.db import models
import uuid
# Create your models here.
from djcelery_model.models import TaskMixin
from polymorphic.models import PolymorphicModel
from genui.utils.models import NON_POLYMORPHIC_CASCADE, OverwriteStorage
from genui.utils.extensions.tasks.models import TaskShortcutsMixIn, Polymo... | 34.030581 | 190 | 0.668494 | 10,461 | 0.940061 | 0 | 0 | 4,159 | 0.373742 | 0 | 0 | 1,724 | 0.154925 |
f4242dbae6b7b1f46a3706ed85d4e577d7b0d160 | 106,765 | py | Python | projectroles/tests/test_views_api.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-06-26T14:05:58.000Z | 2020-12-05T02:20:11.000Z | projectroles/tests/test_views_api.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 11 | 2019-07-01T06:17:44.000Z | 2021-04-20T07:19:40.000Z | projectroles/tests/test_views_api.py | bihealth/sodar_core | a6c22c4f276b64ffae6de48779a82d59a60a9333 | [
"MIT"
] | 4 | 2019-06-26T07:49:50.000Z | 2020-05-19T21:58:10.000Z | """REST API view tests for the projectroles app"""
import base64
import json
import pytz
from django.conf import settings
from django.core import mail
from django.forms.models import model_to_dict
from django.test import override_settings
from django.urls import reverse
from django.utils import timezone
from knox.mod... | 35.166337 | 93 | 0.607577 | 104,780 | 0.981408 | 0 | 0 | 15,051 | 0.140973 | 0 | 0 | 24,320 | 0.22779 |
f4244d996a4c380f34dcf151872e78afdd5ea5e0 | 7,569 | py | Python | src/model/model.py | kwasnydam/animal_disambiguation | 1dba0a2f40ca952a3adab925ff9ef54238cf7c1c | [
"MIT"
] | null | null | null | src/model/model.py | kwasnydam/animal_disambiguation | 1dba0a2f40ca952a3adab925ff9ef54238cf7c1c | [
"MIT"
] | 5 | 2020-03-24T17:52:45.000Z | 2021-08-23T20:28:40.000Z | src/model/model.py | kwasnydam/animal_disambiguation | 1dba0a2f40ca952a3adab925ff9ef54238cf7c1c | [
"MIT"
] | null | null | null | """Contains the classification model I am going to use in my problem and some utility functions.
Functions
build_mmdisambiguator - build the core application object with the collaborators info
Classes
MMDisambiguator - core class of the application
"""
import pickle
import os
import numpy as np
from sklearn.... | 39.836842 | 118 | 0.680011 | 5,464 | 0.721892 | 0 | 0 | 0 | 0 | 0 | 0 | 3,319 | 0.438499 |
f425ac3324f9ff67c7cc522a90e36c4d71da699a | 2,848 | py | Python | v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py | myelintek/results | 11c38436a158c453e3011f8684570f7a55c03330 | [
"Apache-2.0"
] | 44 | 2018-11-07T18:52:33.000Z | 2019-07-06T12:48:18.000Z | v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py | myelintek/results | 11c38436a158c453e3011f8684570f7a55c03330 | [
"Apache-2.0"
] | 12 | 2018-12-13T18:04:36.000Z | 2019-06-14T20:49:33.000Z | v0.5.0/nvidia/submission/code/recommendation/pytorch/load.py | myelintek/results | 11c38436a158c453e3011f8684570f7a55c03330 | [
"Apache-2.0"
] | 44 | 2018-11-09T21:04:52.000Z | 2019-06-24T07:40:28.000Z | # Copyright (c) 2018, deepakn94. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 34.313253 | 78 | 0.670997 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,033 | 0.362711 |
f42643ddcdfa49204eb89ec1d689fa4a85b4b22e | 38,947 | py | Python | rpython/jit/backend/llsupport/test/test_rewrite.py | jptomo/pypy-lang-scheme | 55edb2cec69d78f86793282a4566fcbc1ef9fcac | [
"MIT"
] | 1 | 2019-11-25T10:52:01.000Z | 2019-11-25T10:52:01.000Z | rpython/jit/backend/llsupport/test/test_rewrite.py | jptomo/pypy-lang-scheme | 55edb2cec69d78f86793282a4566fcbc1ef9fcac | [
"MIT"
] | null | null | null | rpython/jit/backend/llsupport/test/test_rewrite.py | jptomo/pypy-lang-scheme | 55edb2cec69d78f86793282a4566fcbc1ef9fcac | [
"MIT"
] | null | null | null | from rpython.jit.backend.llsupport.descr import get_size_descr,\
get_field_descr, get_array_descr, ArrayDescr, FieldDescr,\
SizeDescr, get_interiorfield_descr
from rpython.jit.backend.llsupport.gc import GcLLDescr_boehm,\
GcLLDescr_framework
from rpython.jit.backend.llsupport import jitframe
from rpython... | 36.811909 | 90 | 0.518885 | 37,789 | 0.970267 | 0 | 0 | 0 | 0 | 0 | 0 | 26,740 | 0.686574 |
f427c8d1c78db5257b6c365066dd8f7483686e6c | 10,390 | py | Python | hummingbot/client/command/history_command.py | sanchaymittal/hummingbot | f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d | [
"Apache-2.0"
] | null | null | null | hummingbot/client/command/history_command.py | sanchaymittal/hummingbot | f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d | [
"Apache-2.0"
] | null | null | null | hummingbot/client/command/history_command.py | sanchaymittal/hummingbot | f8d1c19dfd0875bd12717f9c46ddbe20cc7b9a0d | [
"Apache-2.0"
] | null | null | null | from decimal import Decimal
import pandas as pd
from typing import (
Any,
Dict,
Set,
Tuple,
TYPE_CHECKING)
from hummingbot.client.performance_analysis import PerformanceAnalysis
from hummingbot.core.utils.exchange_rate_conversion import ExchangeRateConversion
from hummingbot.market.market_base impo... | 52.474747 | 123 | 0.624254 | 9,807 | 0.943888 | 0 | 0 | 0 | 0 | 0 | 0 | 1,754 | 0.168816 |
f427f297c82ca0ccff892cae6ccdb0651100e3ef | 3,271 | py | Python | scripts/bin2asm.py | sami2316/asm2vec-pytorch | 5de1351aeda61d7467b3231e48437fd8d34a970c | [
"MIT"
] | null | null | null | scripts/bin2asm.py | sami2316/asm2vec-pytorch | 5de1351aeda61d7467b3231e48437fd8d34a970c | [
"MIT"
] | null | null | null | scripts/bin2asm.py | sami2316/asm2vec-pytorch | 5de1351aeda61d7467b3231e48437fd8d34a970c | [
"MIT"
] | null | null | null | import re
import os
import click
import r2pipe
import hashlib
from pathlib import Path
import _pickle as cPickle
def sha3(data):
return hashlib.sha3_256(data.encode()).hexdigest()
def validEXE(filename):
magics = [bytes.fromhex('7f454c46')]
with open(filename, 'rb') as f:
header = f.read(4)
... | 26.811475 | 123 | 0.566188 | 0 | 0 | 0 | 0 | 1,098 | 0.335677 | 0 | 0 | 860 | 0.262917 |
f4283fe6df2818523658c305534af2e5905a9186 | 180 | py | Python | 6/4.py | Chyroc/homework | b1ee8e9629b4dbb6c46a550d710157702d57b00b | [
"MIT"
] | null | null | null | 6/4.py | Chyroc/homework | b1ee8e9629b4dbb6c46a550d710157702d57b00b | [
"MIT"
] | 1 | 2018-05-23T02:12:16.000Z | 2018-05-23T02:12:31.000Z | 6/4.py | Chyroc/homework | b1ee8e9629b4dbb6c46a550d710157702d57b00b | [
"MIT"
] | null | null | null | import re
def remove_not_alpha_num(string):
return re.sub('[^0-9a-zA-Z]+', '', string)
if __name__ == '__main__':
print(remove_not_alpha_num('a000 aa-b') == 'a000aab')
| 18 | 57 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 47 | 0.261111 |
f4284681ecf92df1bb97ccccca1bcb0558c6d8a3 | 1,763 | py | Python | LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py | DougLazyAngus/lazyAngus | 485a8d5061ab740ab055abfc7fc5b86b864a5c7e | [
"Apache-2.0"
] | null | null | null | LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py | DougLazyAngus/lazyAngus | 485a8d5061ab740ab055abfc7fc5b86b864a5c7e | [
"Apache-2.0"
] | null | null | null | LazyAngus/Assets/Extensions/IOSDeploy/Scripts/Editor/post_process.py | DougLazyAngus/lazyAngus | 485a8d5061ab740ab055abfc7fc5b86b864a5c7e | [
"Apache-2.0"
] | null | null | null | import os
from sys import argv
from mod_pbxproj import XcodeProject
#import appcontroller
path = argv[1]
frameworks = argv[2].split(' ')
libraries = argv[3].split(' ')
cflags = argv[4].split(' ')
ldflags = argv[5].split(' ')
folders = argv[6].split(' ')
print('Step 1: add system frameworks ')
#if... | 29.383333 | 94 | 0.608622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 433 | 0.245604 |
f428973b7e9156b1b01843493a65c906c5b5ba52 | 996 | py | Python | judge/migrations/0024_auto_20200705_0246.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | 2 | 2020-04-02T19:50:03.000Z | 2020-08-06T18:30:25.000Z | judge/migrations/0024_auto_20200705_0246.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | 28 | 2020-03-19T16:29:58.000Z | 2021-09-22T18:47:30.000Z | judge/migrations/0024_auto_20200705_0246.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | 2 | 2020-08-09T06:23:12.000Z | 2020-10-13T00:13:25.000Z | # Generated by Django 3.0.8 on 2020-07-05 02:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('judge', '0023_auto_20200704_2318'),
]
operations = [
migrations.AlterField(
model_name='submission',
name='language'... | 41.5 | 278 | 0.564257 | 903 | 0.906627 | 0 | 0 | 0 | 0 | 0 | 0 | 421 | 0.422691 |
f4299097184e1727c715f499e066d9e69de9e523 | 26,771 | py | Python | src/badge_hub.py | stottlerhenke-seattle/openbadge-hub-py | d0eb1772eb1250862041cc50071252f46d4c4771 | [
"MIT"
] | null | null | null | src/badge_hub.py | stottlerhenke-seattle/openbadge-hub-py | d0eb1772eb1250862041cc50071252f46d4c4771 | [
"MIT"
] | null | null | null | src/badge_hub.py | stottlerhenke-seattle/openbadge-hub-py | d0eb1772eb1250862041cc50071252f46d4c4771 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
import os
import re
import shlex
import subprocess
import signal
import csv
import logging
import json
import time
from datetime import datetime as dt
from requests.exceptions import RequestException
import glob
import traceback
i... | 38.298999 | 121 | 0.614956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8,530 | 0.318628 |
f429caab4270145beb2ac6d0e280f42b19535df8 | 53 | py | Python | python/compile.py | liamgam/gdkit | e9d419ff916f15dbd8ec6d7cc59b0a3d8f636a95 | [
"BSD-2-Clause"
] | 1 | 2019-01-16T05:59:53.000Z | 2019-01-16T05:59:53.000Z | python/compile.py | liamgam/gdkit | e9d419ff916f15dbd8ec6d7cc59b0a3d8f636a95 | [
"BSD-2-Clause"
] | null | null | null | python/compile.py | liamgam/gdkit | e9d419ff916f15dbd8ec6d7cc59b0a3d8f636a95 | [
"BSD-2-Clause"
] | null | null | null | import compileall
compileall.compile_dir(".",force=1) | 26.5 | 35 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0.056604 |
f429e1e71ee50e3cb36b3bd6d0606c845af7b2a3 | 3,010 | py | Python | saleor/product/migrations/0141_update_descritpion_fields.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 15,337 | 2015-01-12T02:11:52.000Z | 2021-10-05T19:19:29.000Z | saleor/product/migrations/0141_update_descritpion_fields.py | fairhopeweb/saleor | 9ac6c22652d46ba65a5b894da5f1ba5bec48c019 | [
"CC-BY-4.0"
] | 7,486 | 2015-02-11T10:52:13.000Z | 2021-10-06T09:37:15.000Z | saleor/product/migrations/0141_update_descritpion_fields.py | aminziadna/saleor | 2e78fb5bcf8b83a6278af02551a104cfa555a1fb | [
"CC-BY-4.0"
] | 5,864 | 2015-01-16T14:52:54.000Z | 2021-10-05T23:01:15.000Z | # Generated by Django 3.1.5 on 2021-02-17 11:04
from django.db import migrations
import saleor.core.db.fields
import saleor.core.utils.editorjs
def update_empty_description_field(apps, schema_editor):
Category = apps.get_model("product", "Category")
CategoryTranslation = apps.get_model("product", "CategoryT... | 31.354167 | 78 | 0.580066 | 2,153 | 0.715282 | 0 | 0 | 0 | 0 | 0 | 0 | 403 | 0.133887 |
f42aede445a90e085482590f47cc1c5cb9b7e7e5 | 5,215 | py | Python | local_search/sat_isfayer.py | arnaubena97/SatSolver-sat_isfayer | db7edc83547786deb7bf6b1c5d75b406f877ca15 | [
"MIT"
] | null | null | null | local_search/sat_isfayer.py | arnaubena97/SatSolver-sat_isfayer | db7edc83547786deb7bf6b1c5d75b406f877ca15 | [
"MIT"
] | null | null | null | local_search/sat_isfayer.py | arnaubena97/SatSolver-sat_isfayer | db7edc83547786deb7bf6b1c5d75b406f877ca15 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
import random
def read_file(file_name):
"""File reader and parser the num of variables, num of clauses and put the clauses in a list"""
clauses =[]
with open(file_name) as all_file:
for line in all_file:
if line.startswith('c'): continue #ignore comment... | 36.985816 | 100 | 0.607095 | 4,061 | 0.778715 | 0 | 0 | 0 | 0 | 0 | 0 | 1,362 | 0.26117 |
f42c731576acb55056eef2a6a2b894f6ff9cf5c6 | 656 | py | Python | torch/_VF.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | torch/_VF.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | torch/_VF.py | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | """
This makes the functions in torch._C._VariableFunctions available as
torch._VF.<funcname>
without mypy being able to find them.
A subset of those functions are mapped to ATen functions in
torch/jit/_builtins.py
See https://github.com/pytorch/pytorch/issues/21478 for the reason for
introducing torch._VF
"""
i... | 21.866667 | 70 | 0.73628 | 252 | 0.384146 | 0 | 0 | 0 | 0 | 0 | 0 | 318 | 0.484756 |
f42c89b9ad4a67ef2088d23901ec3eee27d8dfed | 1,426 | py | Python | sparse_causal_model_learner_rl/annealer/threshold_projection.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 2 | 2020-12-11T05:26:24.000Z | 2021-04-21T06:12:58.000Z | sparse_causal_model_learner_rl/annealer/threshold_projection.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | 9 | 2020-04-30T16:29:50.000Z | 2021-03-26T07:32:18.000Z | sparse_causal_model_learner_rl/annealer/threshold_projection.py | sergeivolodin/causality-disentanglement-rl | 5a41b4a2e3d85fa7e9c8450215fdc6cf954df867 | [
"CC0-1.0"
] | null | null | null | import gin
import torch
import logging
from sparse_causal_model_learner_rl.metrics import find_value, find_key
@gin.configurable
def ProjectionThreshold(config, config_object, epoch_info, temp,
adjust_every=100, metric_threshold=0.5, delta=0.5, source_metric_key=None,
min_hyper=0, max_hyper=100... | 32.409091 | 108 | 0.670407 | 0 | 0 | 0 | 0 | 1,307 | 0.91655 | 0 | 0 | 342 | 0.239832 |
f42cd1526653837e6ebdebb62cc32ac0a5f88b7c | 15,684 | py | Python | numpyro/contrib/control_flow/scan.py | ucals/numpyro | 566a5311d660d28a630188063c03a018165a38a9 | [
"Apache-2.0"
] | 2 | 2021-01-10T06:27:51.000Z | 2021-01-10T06:27:55.000Z | numpyro/contrib/control_flow/scan.py | ucals/numpyro | 566a5311d660d28a630188063c03a018165a38a9 | [
"Apache-2.0"
] | null | null | null | numpyro/contrib/control_flow/scan.py | ucals/numpyro | 566a5311d660d28a630188063c03a018165a38a9 | [
"Apache-2.0"
] | 1 | 2020-12-23T13:27:39.000Z | 2020-12-23T13:27:39.000Z | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
from collections import OrderedDict
from functools import partial
from jax import lax, random, tree_flatten, tree_map, tree_multimap, tree_unflatten
import jax.numpy as jnp
from jax.tree_util import register_pytree_node_class
from nu... | 44.939828 | 116 | 0.605011 | 1,947 | 0.124139 | 0 | 0 | 940 | 0.059934 | 0 | 0 | 7,255 | 0.462573 |
f42d1600d0b6bc46f53578838228c289c55fcb61 | 342 | py | Python | src/catalog/migrations/0003_remove_productattributevalue_name.py | earth-emoji/dennea | fbabd7d9ecc95898411aba238bbcca8b5e942c31 | [
"BSD-3-Clause"
] | null | null | null | src/catalog/migrations/0003_remove_productattributevalue_name.py | earth-emoji/dennea | fbabd7d9ecc95898411aba238bbcca8b5e942c31 | [
"BSD-3-Clause"
] | 13 | 2019-12-09T02:38:36.000Z | 2022-03-12T00:33:57.000Z | src/catalog/migrations/0003_remove_productattributevalue_name.py | earth-emoji/dennea | fbabd7d9ecc95898411aba238bbcca8b5e942c31 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 2.2.12 on 2020-06-10 01:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0002_auto_20200610_0019'),
]
operations = [
migrations.RemoveField(
model_name='productattributevalue',
name='na... | 19 | 48 | 0.608187 | 256 | 0.748538 | 0 | 0 | 0 | 0 | 0 | 0 | 111 | 0.324561 |
f42e0214aa8abe8fa4ef98083bd64acd6f94ca90 | 1,245 | py | Python | e2xgrader/preprocessors/overwritecells.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 2 | 2021-10-02T10:48:47.000Z | 2022-03-02T14:00:48.000Z | e2xgrader/preprocessors/overwritecells.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 70 | 2020-10-23T16:42:01.000Z | 2022-03-14T16:33:54.000Z | e2xgrader/preprocessors/overwritecells.py | divindevaiah/e2xgrader | 19eb4662e4eee5ddef673097517e4bd4fb469e62 | [
"MIT"
] | 10 | 2020-11-22T16:36:16.000Z | 2022-03-02T15:51:24.000Z | import json
from nbformat.notebooknode import NotebookNode
from nbconvert.exporters.exporter import ResourcesDict
from typing import Tuple
from nbgrader.api import MissingEntry
from nbgrader.preprocessors import OverwriteCells as NbgraderOverwriteCells
from ..utils.extra_cells import is_singlechoice, is_multiplechoi... | 35.571429 | 75 | 0.706024 | 919 | 0.738153 | 0 | 0 | 0 | 0 | 0 | 0 | 75 | 0.060241 |
f42ea50cd75ed3588bee01251935be095b9cd852 | 9,261 | py | Python | tools/pdf2txt.py | ehtec/pdfminer.six | 5b1823f25ab998e904fc5d81687732580f23e3b9 | [
"MIT"
] | null | null | null | tools/pdf2txt.py | ehtec/pdfminer.six | 5b1823f25ab998e904fc5d81687732580f23e3b9 | [
"MIT"
] | 1 | 2022-01-31T22:58:07.000Z | 2022-01-31T22:58:07.000Z | tools/pdf2txt.py | phantomcyber/pdfminer.six | e35a9319a6ae5d310f08f07a5edf16aadc529c1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""A command line tool for extracting text and images from PDF and
output it to plain text, html, xml or tags."""
import argparse
import logging
import sys
from typing import Any, Container, Iterable, List, Optional
import pdfminer.high_level
from pdfminer.layout import LAParams
from pdfminer.ut... | 41.34375 | 85 | 0.632005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,595 | 0.388187 |
f42eca67de3f090707cbdfd6324c3cd84ee5458f | 2,757 | py | Python | nython/nythonize.py | agungnasik57/nython | cf499fe20f86e2685671495bd941b411fa066813 | [
"MIT"
] | 53 | 2020-02-11T15:10:23.000Z | 2021-10-05T12:47:14.000Z | nython/nythonize.py | agungnasik57/nython | cf499fe20f86e2685671495bd941b411fa066813 | [
"MIT"
] | null | null | null | nython/nythonize.py | agungnasik57/nython | cf499fe20f86e2685671495bd941b411fa066813 | [
"MIT"
] | 4 | 2020-02-12T07:03:06.000Z | 2020-08-15T14:53:39.000Z | """Compile Nim libraries as Python Extension Modules.
If you want your namespace to coexist with your pthon code, name this ponim.nim
and then your import will look like `from ponim.nim import adder` and
`from ponim import subtractor`. There must be a way to smooth that out in the
__init__.py file somehow.
Note that ... | 31.689655 | 82 | 0.564382 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,186 | 0.430178 |
f42fc38f6dae49e6659d55730c3133cb884a1c0e | 3,591 | py | Python | tests/contrib/test_util.py | lixinso/pyro | ca0d6417bed3882a47cb8cbb01b36f403ee903d5 | [
"MIT"
] | 10 | 2020-03-18T14:41:25.000Z | 2021-07-04T08:49:57.000Z | tests/contrib/test_util.py | lixinso/pyro | ca0d6417bed3882a47cb8cbb01b36f403ee903d5 | [
"MIT"
] | 19 | 2018-10-30T13:45:31.000Z | 2019-09-27T14:16:57.000Z | tests/contrib/test_util.py | lixinso/pyro | ca0d6417bed3882a47cb8cbb01b36f403ee903d5 | [
"MIT"
] | 5 | 2020-06-21T23:40:35.000Z | 2021-11-09T16:18:42.000Z | from collections import OrderedDict
import pytest
import torch
import pyro.distributions as dist
from pyro.contrib.util import (
get_indices, tensor_to_dict, rmv, rvv, lexpand, rexpand, rdiag, rtril, hessian
)
from tests.common import assert_equal
def test_get_indices_sizes():
sizes = OrderedDict([("a", 2), ... | 34.528846 | 95 | 0.588972 | 0 | 0 | 0 | 0 | 703 | 0.195767 | 0 | 0 | 70 | 0.019493 |
f43046969834dd88f5e6bf5c76a2ad1571e187a4 | 87 | py | Python | emodul/apps.py | HarisHijazi/mojarnik-server | bee7266609cc0bca7cc6a4059086fc0ba7219a33 | [
"MIT"
] | null | null | null | emodul/apps.py | HarisHijazi/mojarnik-server | bee7266609cc0bca7cc6a4059086fc0ba7219a33 | [
"MIT"
] | null | null | null | emodul/apps.py | HarisHijazi/mojarnik-server | bee7266609cc0bca7cc6a4059086fc0ba7219a33 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class EmodulConfig(AppConfig):
name = 'emodul'
| 14.5 | 33 | 0.747126 | 50 | 0.574713 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 0.091954 |
f4313551859e5b967cf0a91de7f015a788b3e06f | 20,473 | py | Python | Diffnet++/class/DataModule.py | mIXs222/diffnet | 1f580332254a5113ed7b88b9b2e0aa467344e94d | [
"MIT"
] | null | null | null | Diffnet++/class/DataModule.py | mIXs222/diffnet | 1f580332254a5113ed7b88b9b2e0aa467344e94d | [
"MIT"
] | null | null | null | Diffnet++/class/DataModule.py | mIXs222/diffnet | 1f580332254a5113ed7b88b9b2e0aa467344e94d | [
"MIT"
] | null | null | null | from __future__ import division
from collections import defaultdict
import numpy as np
from time import time
import random
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
# import tensorflow as tf
class DataModule():
def __init__(self, conf, filename):
self.conf = conf
self.data_dict = ... | 43.652452 | 166 | 0.652176 | 20,259 | 0.989547 | 0 | 0 | 0 | 0 | 0 | 0 | 2,029 | 0.099106 |
f4315741709ca1828a0cd87b2111a7735ecd6a23 | 2,656 | py | Python | src/models/VanillaTransformer.py | iosurodri/annotated-transformer | e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9 | [
"MIT"
] | null | null | null | src/models/VanillaTransformer.py | iosurodri/annotated-transformer | e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9 | [
"MIT"
] | null | null | null | src/models/VanillaTransformer.py | iosurodri/annotated-transformer | e5a7e27067d08c09f51b57bbf2824fbcd80ae4d9 | [
"MIT"
] | null | null | null | from xmlrpc.server import MultiPathXMLRPCServer
import torch.nn as nn
import torch.nn.functional as F
import copy
from src.layers.layers import Encoder, EncoderLayer, Decoder, DecoderLayer, PositionwiseFeedForward
from src.layers.preprocessing import Embeddings, PositionalEncoding
from src.layers.attention import Mult... | 35.413333 | 99 | 0.6875 | 1,262 | 0.475151 | 0 | 0 | 0 | 0 | 0 | 0 | 403 | 0.151732 |
f432670cd6f74e0a57b036d2bab7509d31c45355 | 34,716 | py | Python | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | venv/lib/python3.8/site-packages/arch/tests/univariate/test_recursions.py | YileC928/finm-portfolio-2021 | 3fa1e97423fa731bce0cad3457807e1873120891 | [
"MIT"
] | null | null | null | import os
import timeit
from typing import List
import numpy as np
from numpy.random import RandomState
from numpy.testing import assert_allclose, assert_almost_equal
import pytest
from scipy.special import gamma
import arch.univariate.recursions_python as recpy
CYTHON_COVERAGE = os.environ.get("ARCH_CYTHON_COVERAGE... | 28.857855 | 97 | 0.514863 | 33,635 | 0.968862 | 0 | 0 | 5,292 | 0.152437 | 0 | 0 | 2,564 | 0.073856 |
f43380760e72e46d79cbcf3d20f37e8eb8257947 | 3,215 | py | Python | hermetrics/damerau_levenshtein.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | 3 | 2020-01-18T02:37:49.000Z | 2022-01-27T19:24:15.000Z | hermetrics/damerau_levenshtein.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | null | null | null | hermetrics/damerau_levenshtein.py | SoldAI/hermetrics | 5e07a4f40376779015ef2f5b964d7ac060ed6e25 | [
"MIT"
] | 2 | 2020-01-26T20:40:19.000Z | 2021-08-11T12:05:01.000Z | from .levenshtein import Levenshtein
class DamerauLevenshtein(Levenshtein):
def __init__(self, name='Damerau-Levenshtein'):
super().__init__(name=name)
def distance(self, source, target, cost=(1, 1, 1, 1)):
"""Damerau-Levenshtein distance with costs for deletion, insertion, substitution a... | 40.696203 | 118 | 0.51353 | 3,101 | 0.964541 | 0 | 0 | 0 | 0 | 0 | 0 | 916 | 0.284914 |
f434676fc528e9c88694b6e2adf610fc78d5e377 | 13,130 | py | Python | etna/analysis/outliers/hist_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | 1 | 2021-11-11T21:18:42.000Z | 2021-11-11T21:18:42.000Z | etna/analysis/outliers/hist_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | etna/analysis/outliers/hist_outliers.py | Carlosbogo/etna | b6210f0e79ee92aa9ae8ff4fcfb267be9fb7cc94 | [
"Apache-2.0"
] | null | null | null | import typing
from copy import deepcopy
from typing import TYPE_CHECKING
from typing import List
import numba
import numpy as np
import pandas as pd
if TYPE_CHECKING:
from etna.datasets import TSDataset
@numba.jit(nopython=True)
def optimal_sse(left: int, right: int, p: np.ndarray, pp: np.ndarray) -> float:
... | 39.667674 | 119 | 0.591394 | 0 | 0 | 0 | 0 | 3,089 | 0.23503 | 0 | 0 | 2,790 | 0.21228 |
f43505730d577b131a0ebe06e14640a6a2175f31 | 2,094 | py | Python | aws/securityGroup.py | emanueleleyland/sabd-project2 | 387b33443b87e78635d8d6c9a03faadbc90ae9da | [
"BSD-2-Clause"
] | null | null | null | aws/securityGroup.py | emanueleleyland/sabd-project2 | 387b33443b87e78635d8d6c9a03faadbc90ae9da | [
"BSD-2-Clause"
] | null | null | null | aws/securityGroup.py | emanueleleyland/sabd-project2 | 387b33443b87e78635d8d6c9a03faadbc90ae9da | [
"BSD-2-Clause"
] | null | null | null | def createKafkaSecurityGroup(ec2, vpc):
sec_group_kafka = ec2.create_security_group(
GroupName='kafka', Description='kafka sec group', VpcId=vpc.id)
sec_group_kafka.authorize_ingress(
IpPermissions=[{'IpProtocol': 'icmp', 'FromPort': -1, 'ToPort': -1, 'IpRanges': [{'CidrIp': '0.0.0.0/0'}]},
... | 53.692308 | 118 | 0.575931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 767 | 0.366285 |
f435ce04c79c1712e8cc0abcb3f67f2a72425976 | 134 | py | Python | virtual/lib/python3.6/site-packages/django_pusher/context_processors.py | petermirithu/hooby_lab | ffd641948bc2d2539649ec747114c78b5ad105e7 | [
"MIT"
] | 2 | 2020-01-26T15:09:48.000Z | 2020-05-10T05:31:05.000Z | virtual/lib/python3.6/site-packages/django_pusher/context_processors.py | petermirithu/hooby_lab | ffd641948bc2d2539649ec747114c78b5ad105e7 | [
"MIT"
] | 10 | 2020-06-06T01:10:07.000Z | 2022-03-12T00:12:22.000Z | virtual/lib/python3.6/site-packages/django_pusher/context_processors.py | petermirithu/hooby_lab | ffd641948bc2d2539649ec747114c78b5ad105e7 | [
"MIT"
] | null | null | null | from django.conf import settings
def pusher(request):
return {
"PUSHER_KEY": getattr(settings, "PUSHER_KEY", ""),
}
| 16.75 | 58 | 0.634328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 0.19403 |
f43612b155ef29350dd3f083a77ca91ae4d8fa46 | 7,537 | py | Python | inconnu/character/update/parse.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 4 | 2021-09-06T20:18:13.000Z | 2022-02-05T17:08:44.000Z | inconnu/character/update/parse.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 7 | 2021-09-13T00:46:57.000Z | 2022-01-11T06:38:50.000Z | inconnu/character/update/parse.py | tiltowait/inconnu | 6cca5fed520899d159537701b695c94222d8dc45 | [
"MIT"
] | 2 | 2021-11-27T22:24:53.000Z | 2022-03-16T21:05:00.000Z | """character/update/parse.py - Defines an interface for updating character traits."""
# pylint: disable=too-many-arguments
import re
import discord
from discord_ui.components import LinkButton
from . import paramupdate
from ..display import display
from ... import common, constants
from ...log import Log
from ...vch... | 34.573394 | 99 | 0.629959 | 0 | 0 | 0 | 0 | 0 | 0 | 3,221 | 0.427358 | 3,325 | 0.441157 |
f436146fcd68e0fffec8d89af9ff63a4a2a79aad | 7,980 | py | Python | src/models/train_search_multi_deep.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | src/models/train_search_multi_deep.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | src/models/train_search_multi_deep.py | smadha/MlTrio | a7269fc4c6d77b2f71432ab9d2ab8fe4e28234d5 | [
"Apache-2.0"
] | null | null | null | '''
Uses flattened features in feature directory and run a SVM on it
'''
from keras.layers import Dense
from keras.models import Sequential
import keras.regularizers as Reg
from keras.optimizers import SGD, RMSprop
from keras.callbacks import EarlyStopping
import cPickle as pickle
import numpy as np
from sklearn.model... | 34.847162 | 213 | 0.663033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,297 | 0.287845 |
f43697d11efae6dda37ec02c7a022ad4d3dc4330 | 11,009 | py | Python | formation.py | graham-kim/pygremlin-graph-visualiser | 65cb4d4fb71c8dde46ff1a36a40adcbdf233448c | [
"MIT"
] | null | null | null | formation.py | graham-kim/pygremlin-graph-visualiser | 65cb4d4fb71c8dde46ff1a36a40adcbdf233448c | [
"MIT"
] | 39 | 2020-07-25T10:58:19.000Z | 2020-08-28T15:02:12.000Z | formation.py | graham-kim/pygremlin-graph-visualiser | 65cb4d4fb71c8dde46ff1a36a40adcbdf233448c | [
"MIT"
] | null | null | null | import sys
import os
sys.path.append( os.path.dirname(__file__) )
import numpy as np
import typing as tp
import angles
from model import Node, Link, Label
from spec import ArrowDraw, NodeSpec
class FormationManager:
def __init__(self):
self._nodes = {}
self._links = []
self._labels = []
... | 42.670543 | 121 | 0.592788 | 10,812 | 0.982106 | 0 | 0 | 246 | 0.022345 | 0 | 0 | 597 | 0.054228 |
f438ca5f15375beccb9a1833b80357a7835e309b | 454 | py | Python | opencv_camera/parameters/utils.py | MomsFriendlyRobotCompany/opencv_camera | 046d779a853ef0117c0177c03a6fd81f361a9dd3 | [
"MIT"
] | 6 | 2020-08-17T04:36:24.000Z | 2022-02-22T13:54:20.000Z | opencv_camera/parameters/utils.py | MomsFriendlyRobotCompany/opencv_camera | 046d779a853ef0117c0177c03a6fd81f361a9dd3 | [
"MIT"
] | 1 | 2020-12-28T20:45:17.000Z | 2021-01-01T02:39:02.000Z | opencv_camera/parameters/utils.py | MomsFriendlyRobotCompany/opencv_camera | 046d779a853ef0117c0177c03a6fd81f361a9dd3 | [
"MIT"
] | 1 | 2020-12-15T04:04:54.000Z | 2020-12-15T04:04:54.000Z | ##############################################
# The MIT License (MIT)
# Copyright (c) 2014 Kevin Walchko
# see LICENSE for full details
##############################################
# -*- coding: utf-8 -*
from math import atan, pi
def fov(w,f):
"""
Returns the FOV as in degrees, given:
w... | 26.705882 | 48 | 0.451542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 359 | 0.790749 |
f439222f5a9cee3a82981ad6666b33d56810e907 | 3,571 | py | Python | Code_Hybrid_SLIMBPR_CBF_RP3Beta.py | SamanFekri/BookRecommendation | 07dfa875154af39546cb263d4407339ce26d47e8 | [
"MIT"
] | null | null | null | Code_Hybrid_SLIMBPR_CBF_RP3Beta.py | SamanFekri/BookRecommendation | 07dfa875154af39546cb263d4407339ce26d47e8 | [
"MIT"
] | null | null | null | Code_Hybrid_SLIMBPR_CBF_RP3Beta.py | SamanFekri/BookRecommendation | 07dfa875154af39546cb263d4407339ce26d47e8 | [
"MIT"
] | null | null | null | # This Python 3 environment comes with many helpful analytics libraries installed
# It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python
# For example, here's several helpful packages to load
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g... | 31.324561 | 122 | 0.758891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 737 | 0.206385 |
f43a93adbb44a173a83f3be2da8ae94b9ee5a0d3 | 989 | py | Python | dodge/config.py | MoyTW/7DRL2016_Rewrite | 99e092dcb8797a25caa3c8a989a574efae19e4d4 | [
"MIT"
] | 2 | 2020-05-10T02:16:28.000Z | 2021-04-05T21:54:10.000Z | dodge/config.py | MoyTW/7DRL2016_Rewrite | 99e092dcb8797a25caa3c8a989a574efae19e4d4 | [
"MIT"
] | null | null | null | dodge/config.py | MoyTW/7DRL2016_Rewrite | 99e092dcb8797a25caa3c8a989a574efae19e4d4 | [
"MIT"
] | null | null | null | import json
class Config(object):
def __init__(self, file_location):
with open(file_location, 'r') as f:
config = json.load(f)
self.SCREEN_WIDTH = int(config["SCREEN_WIDTH"])
self.SCREEN_HEIGHT = int(config["SCREEN_HEIGHT"])
self.MAP_WIDTH = int(config["MAP_... | 41.208333 | 66 | 0.605662 | 974 | 0.984833 | 0 | 0 | 0 | 0 | 0 | 0 | 196 | 0.19818 |
f43be3dcb74991918120ac726f26bac6d8cff63f | 524 | py | Python | incal_lib/create_dataframe.py | barel-mishal/InCal_lib | 3aa63ebccf2ed3277fac55049c88178541cbb94b | [
"MIT"
] | null | null | null | incal_lib/create_dataframe.py | barel-mishal/InCal_lib | 3aa63ebccf2ed3277fac55049c88178541cbb94b | [
"MIT"
] | null | null | null | incal_lib/create_dataframe.py | barel-mishal/InCal_lib | 3aa63ebccf2ed3277fac55049c88178541cbb94b | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
def create_calr_example_df(n_rows, start_date):
'''
'''
np.random.seed(20)
array = np.random.rand(n_rows)
cumulative = np.cumsum(array)
d = {
'feature1_subject_1': array,
'feature1_subject_2': array,
'feature2_subject_1': cumulati... | 24.952381 | 55 | 0.622137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 110 | 0.209924 |
f43cde7e64305b95ccb8abd4674e469455ce57e1 | 4,663 | py | Python | HybridSN/DataLoadAndOperate.py | lms-07/HybridSN | 7580d67a5879d5b53ced75a653d4f198a8aefde2 | [
"MIT"
] | null | null | null | HybridSN/DataLoadAndOperate.py | lms-07/HybridSN | 7580d67a5879d5b53ced75a653d4f198a8aefde2 | [
"MIT"
] | null | null | null | HybridSN/DataLoadAndOperate.py | lms-07/HybridSN | 7580d67a5879d5b53ced75a653d4f198a8aefde2 | [
"MIT"
] | null | null | null | import os
import numpy as np
import scipy.io as sio
import tifffile
from sklearn.decomposition import PCA
from sklearn.model_selection import train_test_split
#Load dataset
def loadData(name,data_path):
if name == 'IP':
data = sio.loadmat(os.path.join(data_path, 'Indian_pines_corrected.mat'))['indian_pin... | 43.579439 | 123 | 0.671885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,309 | 0.28048 |
f43e3816708a9a04921f14baa15850bfa0137251 | 1,873 | py | Python | alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayOpenIotmbsDooropenresultSyncModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenIotmbsDooropenresultSyncModel(object):
def __init__(self):
self._dev_id = None
self._door_state = None
self._project_id = None
@property
def dev_id(self... | 26.380282 | 71 | 0.584624 | 1,756 | 0.937533 | 0 | 0 | 795 | 0.424453 | 0 | 0 | 220 | 0.117459 |
f43f0adac87483d74d65bc876a1b45c40eb3778c | 958 | py | Python | setup.py | ghost58400/marlin-binary-protocol | fb93603866ecfce84e887c159bbbb9f9d2f01f17 | [
"MIT"
] | null | null | null | setup.py | ghost58400/marlin-binary-protocol | fb93603866ecfce84e887c159bbbb9f9d2f01f17 | [
"MIT"
] | null | null | null | setup.py | ghost58400/marlin-binary-protocol | fb93603866ecfce84e887c159bbbb9f9d2f01f17 | [
"MIT"
] | null | null | null | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="marlin_binary_protocol",
version="0.0.7",
author="Charles Willis",
author_email="charleswillis3@users.noreply.github.com",
description="Transfer files with Marlin 2.0 firmware using Marlin... | 38.32 | 114 | 0.662839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 547 | 0.570981 |
f44057beff2cbba250db617a96a21c14300e3ae1 | 18,028 | py | Python | taut_euler_class.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | 2 | 2020-08-17T21:38:16.000Z | 2021-08-29T21:38:43.000Z | taut_euler_class.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | null | null | null | taut_euler_class.py | henryseg/Veering | 50ebdcd5bde582726aefdd564c43e17890651282 | [
"CC0-1.0"
] | null | null | null | #
# taut_euler_class.py
#
from file_io import parse_data_file, write_data_file
from taut import liberal, isosig_to_tri_angle
from transverse_taut import is_transverse_taut
from sage.matrix.constructor import Matrix
from sage.modules.free_module_element import vector
from sage.arith.misc import gcd
from sage.arith.fu... | 35.279843 | 109 | 0.625194 | 0 | 0 | 0 | 0 | 195 | 0.010817 | 0 | 0 | 12,858 | 0.713224 |
f44062d81d380655736648a227bdbe096d8db999 | 110 | py | Python | mailing/urls.py | ananyamalik/Railway-Concession-Portal | 295264ccb50bc4750bf0a749c8477384407d51ad | [
"MIT"
] | null | null | null | mailing/urls.py | ananyamalik/Railway-Concession-Portal | 295264ccb50bc4750bf0a749c8477384407d51ad | [
"MIT"
] | 10 | 2020-02-11T23:58:12.000Z | 2022-03-11T23:43:58.000Z | mailing/urls.py | ananyamalik/Railway-Concession-Portal | 295264ccb50bc4750bf0a749c8477384407d51ad | [
"MIT"
] | 1 | 2019-03-26T10:43:34.000Z | 2019-03-26T10:43:34.000Z | from django.urls import path
from .views import ( student_list, student_add, student_profile,student_delete )
| 36.666667 | 80 | 0.827273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
f4418c7fe5090cc1ad72d42e956421d4fcbc0d8c | 5,253 | py | Python | transformers/tests/tokenization_xlnet_test.py | deepbluesea/transformers | 11a2317986aad6e9a72f542e31344cfb7c94cbab | [
"Apache-2.0"
] | 270 | 2020-04-26T17:54:36.000Z | 2022-03-24T20:47:11.000Z | transformers/tests/tokenization_xlnet_test.py | deepbluesea/transformers | 11a2317986aad6e9a72f542e31344cfb7c94cbab | [
"Apache-2.0"
] | 27 | 2020-06-03T17:34:41.000Z | 2022-03-31T01:17:34.000Z | transformers/tests/tokenization_xlnet_test.py | deepbluesea/transformers | 11a2317986aad6e9a72f542e31344cfb7c94cbab | [
"Apache-2.0"
] | 61 | 2020-04-25T21:48:11.000Z | 2022-03-23T02:39:10.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 49.093458 | 128 | 0.61146 | 4,224 | 0.801975 | 0 | 0 | 0 | 0 | 0 | 0 | 1,380 | 0.262009 |
f442619ffa1142c65bd44ce29ca3a9c6c0e0aea7 | 5,153 | py | Python | preprocess/utils/liftOver_vcf.py | Rongtingting/xcltk | 2e86207c45a1caa7f905a89e1c121c3c203eab2d | [
"Apache-2.0"
] | null | null | null | preprocess/utils/liftOver_vcf.py | Rongtingting/xcltk | 2e86207c45a1caa7f905a89e1c121c3c203eab2d | [
"Apache-2.0"
] | null | null | null | preprocess/utils/liftOver_vcf.py | Rongtingting/xcltk | 2e86207c45a1caa7f905a89e1c121c3c203eab2d | [
"Apache-2.0"
] | 2 | 2021-01-26T02:07:32.000Z | 2021-02-03T03:56:55.000Z | # forked from https://github.com/single-cell-genetics/cellSNP
## A python wrap of UCSC liftOver function for vcf file
## UCSC liftOver binary and hg19 to hg38 chain file:
## https://genome.ucsc.edu/cgi-bin/hgLiftOver
## http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver
## http://hgdownload.soe.ucsc.edu/gol... | 33.901316 | 83 | 0.581603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,284 | 0.249175 |
f442ad3274e1d03978bf00cca2923623d11978bb | 8,842 | py | Python | pomodorr/frames/tests/test_consumers.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | null | null | null | pomodorr/frames/tests/test_consumers.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | 15 | 2020-04-11T18:30:57.000Z | 2020-07-05T09:37:43.000Z | pomodorr/frames/tests/test_consumers.py | kamil559/pomodorr | 232e6e98ff3481561dd1235794b3960066713210 | [
"MIT"
] | null | null | null | import json
import pytest
from channels.db import database_sync_to_async
from channels.testing import WebsocketCommunicator
from pytest_lazyfixture import lazy_fixture
from pomodorr.frames import statuses
from pomodorr.frames.models import DateFrame
from pomodorr.frames.routing import frames_application
from pomodorr... | 39.123894 | 120 | 0.774259 | 0 | 0 | 0 | 0 | 5,228 | 0.591269 | 7,811 | 0.883397 | 1,184 | 0.133906 |
f4430a5ed7a70794aa650554ee2233f1a76e4ce7 | 1,362 | py | Python | Bot/db_aps.py | FaHoLo/Fish_shop | b08018223705bca169dab9f39ec5a55f62822f0b | [
"MIT"
] | null | null | null | Bot/db_aps.py | FaHoLo/Fish_shop | b08018223705bca169dab9f39ec5a55f62822f0b | [
"MIT"
] | null | null | null | Bot/db_aps.py | FaHoLo/Fish_shop | b08018223705bca169dab9f39ec5a55f62822f0b | [
"MIT"
] | null | null | null | import logging
import os
import redis
import moltin_aps
_database = None
db_logger = logging.getLogger('db_logger')
async def get_database_connection():
global _database
if _database is None:
database_password = os.getenv('DB_PASSWORD')
database_host = os.getenv('DB_HOST')
databas... | 29.608696 | 99 | 0.737885 | 0 | 0 | 0 | 0 | 0 | 0 | 396 | 0.289474 | 232 | 0.169591 |
f4431b68372b44ad4517e0ab87e6c368a124ad83 | 142 | py | Python | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:54:15.000Z | 2021-03-03T13:54:15.000Z | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | null | null | null | backend/server/tables/__init__.py | shiv12095/realtimeviz | ee2bf10b5f9467212f9a9ce8957d80456ebd0259 | [
"MIT"
] | 1 | 2021-03-03T13:59:48.000Z | 2021-03-03T13:59:48.000Z | from .lime_bike_feed import LimeBikeFeed
from .lime_bike_trips import LimeBikeTrips
from .lime_bike_trips_analyze import LimeBikeTripsAnalyze
| 35.5 | 57 | 0.894366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
f444f9703d175494884baaba0472ab27a4d9a8a1 | 75,692 | py | Python | sapmon/payload/provider/sapnetweaver.py | gummadirajesh/AzureMonitorForSAPSolutions | 9f8e9dbd38141b5de4782d40556c4368f6ad8d0b | [
"MIT"
] | null | null | null | sapmon/payload/provider/sapnetweaver.py | gummadirajesh/AzureMonitorForSAPSolutions | 9f8e9dbd38141b5de4782d40556c4368f6ad8d0b | [
"MIT"
] | null | null | null | sapmon/payload/provider/sapnetweaver.py | gummadirajesh/AzureMonitorForSAPSolutions | 9f8e9dbd38141b5de4782d40556c4368f6ad8d0b | [
"MIT"
] | null | null | null | # Python modules
import json
import logging
from datetime import datetime, timedelta, timezone
from time import time
from typing import Any, Callable
import re
import requests
from requests import Session
from threading import Lock
# SOAP Client modules
from zeep import Client
from zeep import helpers
from zeep.transp... | 51.702186 | 175 | 0.624716 | 74,243 | 0.980857 | 0 | 0 | 0 | 0 | 0 | 0 | 29,146 | 0.385061 |
f4458a3941886161e8e7b509e9445b16e1094e76 | 24 | py | Python | docker_squash/version.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 513 | 2016-04-04T21:44:14.000Z | 2022-03-27T06:18:26.000Z | docker_squash/version.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 106 | 2016-04-01T11:53:20.000Z | 2022-03-31T00:35:31.000Z | docker_squash/version.py | pombredanne/docker-scripts | ecee9f921b22cd44943197635875572185dd015d | [
"MIT"
] | 75 | 2016-05-11T01:08:47.000Z | 2022-03-25T01:20:06.000Z | version = "1.0.10.dev0"
| 12 | 23 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 0.541667 |
f4480752faba119871fef4e77c8c713728e07b1e | 3,294 | py | Python | example_usage/example_list_errors.py | oceanprotocol/plecos | ae532df8539e5c327cca57fbc1ea1b1193916cd1 | [
"Apache-2.0"
] | 1 | 2019-03-15T14:43:38.000Z | 2019-03-15T14:43:38.000Z | example_usage/example_list_errors.py | oceanprotocol/plecos | ae532df8539e5c327cca57fbc1ea1b1193916cd1 | [
"Apache-2.0"
] | 26 | 2019-06-04T08:49:42.000Z | 2022-02-07T02:06:42.000Z | example_usage/example_list_errors.py | oceanprotocol/Plecos | 25b9a3f1698ab2c65ca82ac69ecd1f461c55a581 | [
"Apache-2.0"
] | 1 | 2019-03-12T18:31:55.000Z | 2019-03-12T18:31:55.000Z | from pathlib import Path
import plecos
import json
print(plecos.__version__)
#%%
path_to_json_local = Path("~/ocn/plecos/plecos/samples/sample_metadata_local.json").expanduser()
path_to_json_remote = Path("~/ocn/plecos/plecos/samples/sample_metadata_remote.json").expanduser()
path_to_broken_json = Path("~/ocn/plecos/pl... | 26.564516 | 120 | 0.649059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,748 | 0.530662 |
f448729d42d0a606df0321be7509a9b2530f28d6 | 2,180 | py | Python | pangloss/backend.py | CLRafaelR/pangloss | 920c509381a8d7831471fc3f22a07e58b53b8c0e | [
"MIT"
] | null | null | null | pangloss/backend.py | CLRafaelR/pangloss | 920c509381a8d7831471fc3f22a07e58b53b8c0e | [
"MIT"
] | 1 | 2020-06-11T21:08:30.000Z | 2020-09-20T03:36:06.000Z | pangloss/backend.py | CLRafaelR/pangloss | 920c509381a8d7831471fc3f22a07e58b53b8c0e | [
"MIT"
] | 1 | 2021-03-11T21:11:34.000Z | 2021-03-11T21:11:34.000Z | import re
import panflute as pf
from functools import partial
from pangloss.util import smallcapify, break_plain
# regular expression for label formats
label_re = re.compile(r'\{#ex:(\w+)\}')
gb4e_fmt_labelled = """
\\ex\\label{{ex:{label}}}
\\gll {} \\\\
{} \\\\
\\trans {}
"""
gb4e_fmt = """
\\ex
\\gll {} \\\\
{}... | 23.44086 | 78 | 0.601835 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 917 | 0.420642 |
f4496e9806f5e5781ad656efc22821170a6cd22c | 3,702 | py | Python | tests/unit/discovery/test_py_spec.py | xavfernandez/virtualenv | dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86 | [
"MIT"
] | 1 | 2020-02-25T15:08:59.000Z | 2020-02-25T15:08:59.000Z | tests/unit/discovery/test_py_spec.py | xavfernandez/virtualenv | dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86 | [
"MIT"
] | null | null | null | tests/unit/discovery/test_py_spec.py | xavfernandez/virtualenv | dd37c7d2af8a21026f4d4b7f43142e4e1e0faf86 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import itertools
import os
import sys
from copy import copy
import pytest
from virtualenv.discovery.py_spec import PythonSpec
def test_bad_py_spec():
text = "python2.3.4.5"
spec = PythonSpec.from_string_spec(text)
assert text in repr(spec)
as... | 31.913793 | 117 | 0.679633 | 0 | 0 | 0 | 0 | 983 | 0.265532 | 0 | 0 | 257 | 0.069422 |
f44a0eaa8a605413b612c82d10265dde71bd9d5d | 2,251 | py | Python | plugins/module_utils/definitions/trigger_image_activation.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | plugins/module_utils/definitions/trigger_image_activation.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | plugins/module_utils/definitions/trigger_image_activation.py | robertcsapo/dnacenter-ansible | 33f776f8c0bc7113da73191c301dd1807e6b4a43 | [
"MIT"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
module_definition = json.loads(
"""{
"family": "software_image_management_swim",
"name": "trigger_image_activation",
"operations": {
"post": [
"trigger_software_image_activation"
... | 29.618421 | 66 | 0.330964 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,111 | 0.937805 |
f44ab2c0f0cd8c386e07e21d67f94743e0fb707b | 3,966 | py | Python | minecraft_launcher_lib/fabric.py | bopchik/Simple-minecraft-mod-launcher | 52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9 | [
"BSD-2-Clause"
] | 1 | 2021-06-17T18:19:41.000Z | 2021-06-17T18:19:41.000Z | minecraft_launcher_lib/fabric.py | bopchik/Simple-minecraft-mod-launcher | 52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9 | [
"BSD-2-Clause"
] | null | null | null | minecraft_launcher_lib/fabric.py | bopchik/Simple-minecraft-mod-launcher | 52e4e8ec351b0bac7eb4fe707f21de8da14b9ac9 | [
"BSD-2-Clause"
] | 3 | 2021-06-17T18:19:44.000Z | 2021-06-17T22:18:34.000Z | from .helper import download_file, get_user_agent
from .install import install_minecraft_version
from typing import List, Dict, Union
from xml.dom import minidom
import subprocess
import requests
import tempfile
import random
import os
def get_all_minecraft_versions() -> List[Dict[str,Union[str,bool]]]:
"""
Re... | 39.66 | 152 | 0.739536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,488 | 0.375189 |
f44b19520f8c0f088d9bcd431d1e1bf360a73146 | 2,354 | py | Python | Strand Sort.py | Nishkarsh-Tripathi/Sorting-algorithms- | cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0 | [
"Apache-2.0"
] | 5 | 2020-03-29T16:26:18.000Z | 2020-11-23T15:37:23.000Z | Strand Sort.py | Nishkarsh-Tripathi/Sorting-algorithms | cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0 | [
"Apache-2.0"
] | null | null | null | Strand Sort.py | Nishkarsh-Tripathi/Sorting-algorithms | cda25f1a8e7fb5e25e59e69e78f000421b0e4eb0 | [
"Apache-2.0"
] | null | null | null | # STRAND SORT
# It is a recursive comparison based sorting technique which sorts in increasing order.
# It works by repeatedly pulling sorted sub-lists out of the list to be sorted and merging them
# with a result array.
# Algorithm:
# Create a empty strand (list) and append the first element to it popping it from th... | 26.449438 | 101 | 0.657179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,555 | 0.660578 |
f44cdd7cc2616d5398119b8bf5c750adca9d4192 | 10,915 | py | Python | gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | gamestonk_terminal/cryptocurrency/overview/pycoingecko_model.py | minhhoang1023/GamestonkTerminal | 195dc19b491052df080178c0cc6a9d535a91a704 | [
"MIT"
] | null | null | null | """CoinGecko model"""
__docformat__ = "numpy"
# pylint: disable=C0301, E1101
import logging
import re
from typing import Any, List
import numpy as np
import pandas as pd
from pycoingecko import CoinGeckoAPI
from gamestonk_terminal.cryptocurrency.dataframe_helpers import (
create_df_index,
long_number_format... | 25.034404 | 316 | 0.624462 | 0 | 0 | 0 | 0 | 8,866 | 0.812277 | 0 | 0 | 4,743 | 0.43454 |
f44d14e6df3a58dd087e5855ff51ca5785dc0dff | 20,399 | py | Python | docker/messein/board-import-app/app.py | sourceperl/tk-dashboard | 015ececc670902b02284749ac59f354db4304e48 | [
"MIT"
] | null | null | null | docker/messein/board-import-app/app.py | sourceperl/tk-dashboard | 015ececc670902b02284749ac59f354db4304e48 | [
"MIT"
] | null | null | null | docker/messein/board-import-app/app.py | sourceperl/tk-dashboard | 015ececc670902b02284749ac59f354db4304e48 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from configparser import ConfigParser
from datetime import datetime
import urllib.parse
import hashlib
import io
import json
import logging
import os
import re
import time
from xml.dom import minidom
import feedparser
import requests
import schedule
import PIL.Image
import PIL.ImageDraw
import P... | 40.076621 | 110 | 0.622776 | 367 | 0.01799 | 0 | 0 | 17,233 | 0.844755 | 0 | 0 | 6,274 | 0.307549 |
f44d3d2bcc982ad4f8edfb7eb180227db0f5fa05 | 19,687 | py | Python | fsleyes_widgets/widgetlist.py | pauldmccarthy/fsleyes-widgets | cb27899a0f665efe3f1c6ca1f89349507e004378 | [
"Apache-2.0"
] | 1 | 2018-11-04T11:18:46.000Z | 2018-11-04T11:18:46.000Z | fsleyes_widgets/widgetlist.py | pauldmccarthy/fsleyes-widgets | cb27899a0f665efe3f1c6ca1f89349507e004378 | [
"Apache-2.0"
] | 2 | 2018-09-24T15:01:56.000Z | 2020-01-20T10:39:37.000Z | fsleyes_widgets/widgetlist.py | pauldmccarthy/fsleyes-widgets | cb27899a0f665efe3f1c6ca1f89349507e004378 | [
"Apache-2.0"
] | 1 | 2017-12-09T09:02:07.000Z | 2017-12-09T09:02:07.000Z | #!/usr/bin/env python
#
# widgetlist.py - A widget which displays a list of groupable widgets.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides the :class:`WidgetList` class, which displays a list
of widgets.
"""
import wx
import wx.lib.newevent as wxevent
import wx.lib.scrolledpanel... | 31.05205 | 79 | 0.584701 | 18,870 | 0.958501 | 0 | 0 | 0 | 0 | 0 | 0 | 7,303 | 0.370955 |
f44da748e4ab13e359126b052ffbda6e65cd72ff | 1,441 | py | Python | setup.py | TransactPRO/gw3-python-client | 77a9395c13f75467385227461b57ce85f4730ce5 | [
"MIT"
] | 1 | 2018-03-13T00:10:05.000Z | 2018-03-13T00:10:05.000Z | setup.py | TransactPRO/gw3-python-client | 77a9395c13f75467385227461b57ce85f4730ce5 | [
"MIT"
] | 1 | 2020-08-05T08:25:14.000Z | 2020-08-05T08:25:14.000Z | setup.py | TransactPRO/gw3-python-client | 77a9395c13f75467385227461b57ce85f4730ce5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import setuptools
MAINTAINER_NAME = 'Transact Pro'
MAINTAINER_EMAIL = 'support@transactpro.lv'
URL_GIT = 'https://github.com/TransactPRO/gw3-python-client'
try:
import pypandoc
LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError, RuntimeError):... | 28.82 | 75 | 0.693963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 775 | 0.537821 |
f44db94e38c8e52a26896847a590eaee7cd80693 | 2,359 | py | Python | social_auth_mitxpro/backends_test.py | mitodl/social-auth-mitxpro | 8cae8bbe900b25f724b24f783d06de7b853a1366 | [
"BSD-3-Clause"
] | null | null | null | social_auth_mitxpro/backends_test.py | mitodl/social-auth-mitxpro | 8cae8bbe900b25f724b24f783d06de7b853a1366 | [
"BSD-3-Clause"
] | 37 | 2019-03-06T17:43:26.000Z | 2022-03-21T05:18:10.000Z | social_auth_mitxpro/backends_test.py | mitodl/social-auth-mitxpro | 8cae8bbe900b25f724b24f783d06de7b853a1366 | [
"BSD-3-Clause"
] | null | null | null | """Tests for our backend"""
from urllib.parse import urljoin
import pytest
from social_auth_mitxpro.backends import MITxProOAuth2
# pylint: disable=redefined-outer-name
@pytest.fixture
def strategy(mocker):
"""Mock strategy"""
return mocker.Mock()
@pytest.fixture
def backend(strategy):
"""MITxProOAu... | 29.4875 | 86 | 0.680797 | 0 | 0 | 0 | 0 | 716 | 0.303518 | 0 | 0 | 771 | 0.326833 |
f450452cbcef41209866e35540c53f785f67820d | 1,183 | py | Python | Scripts/simulation/careers/detective/detective_crime_scene.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/careers/detective/detective_crime_scene.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | Scripts/simulation/careers/detective/detective_crime_scene.py | velocist/TS4CheatsInfo | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | [
"Apache-2.0"
] | null | null | null | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\careers\detective\detective_crime_scene.py
# Compiled at: 2015-02-08 03:00:54
# Size of source mod 2... | 42.25 | 107 | 0.72612 | 693 | 0.585799 | 0 | 0 | 0 | 0 | 0 | 0 | 406 | 0.343195 |
f450583ef2fc87d70603f2a691c77577371d8626 | 11,640 | py | Python | classifier/interpretation_exp.py | methylgrammarlab/proj_scwgbs | 287196898796eb617fef273bfaf9e978a57047dc | [
"MIT"
] | null | null | null | classifier/interpretation_exp.py | methylgrammarlab/proj_scwgbs | 287196898796eb617fef273bfaf9e978a57047dc | [
"MIT"
] | null | null | null | classifier/interpretation_exp.py | methylgrammarlab/proj_scwgbs | 287196898796eb617fef273bfaf9e978a57047dc | [
"MIT"
] | null | null | null | """
Code adapted from https://github.com/ohlerlab/DeepRiPe with changes
Extract information and graphs from the Integrated gradients output
"""
import argparse
import os
import sys
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from classifier.plotseqlogo import seqlogo_fig
from commons imp... | 36.489028 | 109 | 0.617526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3,149 | 0.270533 |
f452f54dd600820476b6e9842531fd00913972e2 | 3,921 | py | Python | scripts/pythonutils/autorepr.py | shulinye/dotfiles | a342512c33ca102d03921cc653ee4605d0cf9617 | [
"MIT"
] | 2 | 2015-01-16T22:07:10.000Z | 2015-11-09T06:45:44.000Z | scripts/pythonutils/autorepr.py | shulinye/dotfiles | a342512c33ca102d03921cc653ee4605d0cf9617 | [
"MIT"
] | 4 | 2015-07-08T19:13:47.000Z | 2015-08-31T16:04:36.000Z | scripts/pythonutils/autorepr.py | shulinye/dotfiles | a342512c33ca102d03921cc653ee4605d0cf9617 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from collections import OrderedDict
from functools import partial
from ordered_set import OrderedSet
import inspect
import itertools
import types
from .utils import walk_getattr
__all__ = ['autoinit', 'autorepr', 'TotalCompareByKey']
def autoinit(obj=None, *args, params=None, **kwargs):
"""T... | 40.42268 | 116 | 0.602907 | 1,029 | 0.262433 | 0 | 0 | 0 | 0 | 0 | 0 | 1,186 | 0.302474 |
f4537a07a1d5765ef6c894d899d3fcdd3ed64dab | 10,051 | py | Python | v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-01T15:46:43.000Z | 2021-07-23T16:26:48.000Z | v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 1 | 2019-06-29T03:40:05.000Z | 2021-06-13T01:15:16.000Z | v1.0.0.test/toontown/estate/DistributedGardenPlotAI.py | TTOFFLINE-LEAK/ttoffline | bb0e91704a755d34983e94288d50288e46b68380 | [
"MIT"
] | 4 | 2019-07-28T21:18:46.000Z | 2021-02-25T06:37:25.000Z | from direct.directnotify import DirectNotifyGlobal
from toontown.estate import GardenGlobals
from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
FLOWER_X_OFFSETS = (
None, (0, ), (-1.5, 1.5), (-3.4, 0, 3.5))
class DistributedGardenPlotAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.d... | 49.029268 | 195 | 0.639936 | 9,819 | 0.976918 | 0 | 0 | 0 | 0 | 0 | 0 | 1,007 | 0.100189 |