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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c576551072f708a32f1945826e72ae5d21285cce | 2,605 | py | Python | scripts/multiprocess_tokenizer/worker.py | talolard/vampire | e2ae46112fda237b072453c9f1c5e89bd7b4135b | [
"Apache-2.0"
] | null | null | null | scripts/multiprocess_tokenizer/worker.py | talolard/vampire | e2ae46112fda237b072453c9f1c5e89bd7b4135b | [
"Apache-2.0"
] | null | null | null | scripts/multiprocess_tokenizer/worker.py | talolard/vampire | e2ae46112fda237b072453c9f1c5e89bd7b4135b | [
"Apache-2.0"
] | null | null | null | import typing
from typing import Any
import json
import os
from multiprocessing import Process, Queue
from allennlp.data.tokenizers.word_splitter import SpacyWordSplitter
from spacy.tokenizer import Tokenizer
import spacy
from tqdm.auto import tqdm
import time
nlp = spacy.load("en")
class TokenizingWorker(Process):... | 28.315217 | 97 | 0.6119 | 1,171 | 0.44952 | 0 | 0 | 0 | 0 | 0 | 0 | 230 | 0.088292 |
c578aaaded2e7b75110f4c69848a9fb001f45ff0 | 5,823 | py | Python | MC-Fisher.py | hosua/Minecraft-Fisher | 416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e | [
"MIT"
] | null | null | null | MC-Fisher.py | hosua/Minecraft-Fisher | 416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e | [
"MIT"
] | null | null | null | MC-Fisher.py | hosua/Minecraft-Fisher | 416c476cd6e5ef0c6bb978aacd9816aa9ba36f7e | [
"MIT"
] | null | null | null | # For larger scale projects, I really should learn to use classes... lol
from PIL import ImageGrab, ImageTk, Image
import keyboard
import pyautogui
import tkinter as tk
import os
import time, datetime
import text_redirect as TR
import sys
# GUI stuff
TITLE = "Minecraft-Fisher - Made by Hoswoo"
DARK_BLUE = '#0A3D62'
L... | 34.052632 | 127 | 0.665636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,856 | 0.318736 |
3d63dfe6fe9f0bef4a7c9bfd9c4a5ff955fbcafe | 1,248 | py | Python | ModelAnalysis/biomodel_iterator.py | BioModelTools/ModelAnalysis | 89d6426ec9fbbb6836897889266848793d109dcc | [
"MIT"
] | null | null | null | ModelAnalysis/biomodel_iterator.py | BioModelTools/ModelAnalysis | 89d6426ec9fbbb6836897889266848793d109dcc | [
"MIT"
] | 3 | 2017-09-04T20:06:45.000Z | 2017-09-07T01:57:45.000Z | ModelAnalysis/biomodel_iterator.py | BioModelTools/ModelAnalysis | 89d6426ec9fbbb6836897889266848793d109dcc | [
"MIT"
] | null | null | null | """
Iterates through a collection of BioModels
"""
from sbml_shim import SBMLShim
import sys
import os.path
################################################
# Classes that count pattern occurrences
################################################
class BiomodelIterator(object):
def __init__(self, path, excludes=Non... | 25.469388 | 80 | 0.584936 | 945 | 0.757212 | 0 | 0 | 0 | 0 | 0 | 0 | 533 | 0.427083 |
3d640bec431e81affc07c61301d5e5f1d49c75e8 | 411 | py | Python | app/domain/company/models.py | JBizarri/fast-api-crud | 3eb0391c1a1f2e054092de717b73898c7efed5cb | [
"MIT"
] | null | null | null | app/domain/company/models.py | JBizarri/fast-api-crud | 3eb0391c1a1f2e054092de717b73898c7efed5cb | [
"MIT"
] | null | null | null | app/domain/company/models.py | JBizarri/fast-api-crud | 3eb0391c1a1f2e054092de717b73898c7efed5cb | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, List
from sqlalchemy import Column, String
from sqlalchemy.orm import relationship
from ...database import BaseModel
if TYPE_CHECKING:
from ..user.models import User
class Company(BaseModel):
name: str = Column(String)
users: List[U... | 20.55 | 63 | 0.737226 | 165 | 0.40146 | 0 | 0 | 0 | 0 | 0 | 0 | 28 | 0.068127 |
3d66a81186dceebace0295ecba9cdcb9533d8966 | 1,913 | py | Python | tools/captcha_image_downloader.py | metormaon/signum-py | 7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c | [
"MIT"
] | null | null | null | tools/captcha_image_downloader.py | metormaon/signum-py | 7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c | [
"MIT"
] | 1 | 2020-08-01T23:28:38.000Z | 2020-08-01T23:28:38.000Z | tools/captcha_image_downloader.py | metormaon/signum-py | 7c6eaf11025f77c4cfbe6fb9aa77b5dadb485d8c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from os import path
from google_images_download import google_images_download
for keyword in [
"dog", "cat", "bird", "elephant", "fork", "knife", "spoon", "carrot", "orange", "turnip", "tomato", "potato",
"water", "hair", "table", "chair", "house", "factory", "microwave", "cigarette", ... | 51.702703 | 119 | 0.526398 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,074 | 0.561422 |
3d6b7691e8c5eed4e135eafd2eed629b0d7310de | 4,752 | py | Python | ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 38 | 2021-09-18T15:33:28.000Z | 2022-02-21T17:29:08.000Z | ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 4 | 2022-01-02T14:46:12.000Z | 2022-02-16T18:39:41.000Z | ott2butKAMA1/jessetkdata/dnafiles/BNB-USDT 2018-02-15 2021-01-01.py | ysdede/jesse_strategies | ade9f4ba42cec11207c766d267b9d8feb8bce648 | [
"CC0-1.0"
] | 11 | 2021-10-19T06:21:43.000Z | 2022-02-21T17:29:10.000Z | dnas = [
['jVXfX<', 37, 64, 24.67, 14, 7, -4.53, {'ott_len': 42, 'ott_percent': 508, 'stop_loss': 263, 'risk_reward': 65, 'chop_rsi_len': 31, 'chop_bandwidth': 83}],
['o:JK9p', 50, 62, 32.74, 37, 8, -0.2, {'ott_len': 45, 'ott_percent': 259, 'stop_loss': 201, 'risk_reward': 41, 'chop_rsi_len': 12, 'chop_bandwidth': 274}... | 144 | 159 | 0.619529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,526 | 0.531566 |
3d6d1e7bb92fb8ada9eb142b244859a83f2f343d | 2,909 | py | Python | modules/winrm/isodate/__init__.py | frankyrumple/smc | 975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6 | [
"MIT"
] | null | null | null | modules/winrm/isodate/__init__.py | frankyrumple/smc | 975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6 | [
"MIT"
] | null | null | null | modules/winrm/isodate/__init__.py | frankyrumple/smc | 975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6 | [
"MIT"
] | null | null | null | ##############################################################################
# Copyright 2009, Gerhard Weis
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code ... | 51.946429 | 78 | 0.77243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,687 | 0.579924 |
3d6fef82415cc33c1f679313aef262f6b3b670a9 | 17,848 | py | Python | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | 3 | 2019-08-04T03:05:51.000Z | 2021-04-24T02:35:05.000Z | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | null | null | null | sbvat/utils.py | thudzj/BVAT | 2c7073cb7967583035eece7f4819821b313d73e6 | [
"MIT"
] | 1 | 2019-12-29T13:49:22.000Z | 2019-12-29T13:49:22.000Z | import numpy as np
import pickle as pkl
import networkx as nx
import scipy.sparse as sp
from scipy.sparse.linalg.eigen.arpack import eigsh
import sys
import tensorflow as tf
import os
import time
import json
from networkx.readwrite import json_graph
from sklearn.metrics import f1_score
import multiprocessing
def parse... | 38.218415 | 200 | 0.601244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,531 | 0.141809 |
3d71bcc45f53747aca6197878307201d4f4b2564 | 506 | py | Python | tags/models.py | yuyuyuhaoshi/Blog-BE | a485d5159076d619d4fd6019fe9b96ac04020d4d | [
"Apache-2.0"
] | null | null | null | tags/models.py | yuyuyuhaoshi/Blog-BE | a485d5159076d619d4fd6019fe9b96ac04020d4d | [
"Apache-2.0"
] | null | null | null | tags/models.py | yuyuyuhaoshi/Blog-BE | a485d5159076d619d4fd6019fe9b96ac04020d4d | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.utils.timezone import now
from django.contrib.auth.models import User
from utils.base_model import SoftDeletionModel
class Tag(SoftDeletionModel):
name = models.CharField('标题名', max_length=100, unique=True, blank=False, null=False)
created_time = models.DateTimeField(... | 26.631579 | 88 | 0.717391 | 362 | 0.69084 | 0 | 0 | 0 | 0 | 0 | 0 | 39 | 0.074427 |
3d71fa9e2abe22d155154c76e5151b1d3926e5d7 | 1,410 | py | Python | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | null | null | null | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | 11 | 2021-02-17T21:16:36.000Z | 2022-01-14T22:49:27.000Z | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | 1 | 2021-06-24T15:10:03.000Z | 2021-06-24T15:10:03.000Z | """
Runs a pre-check of a staging area to identify issues that might cause the
snapshot or indexing processes to fail.
"""
import argparse
import sys
from hca.staging_area_validator import StagingAreaValidator
def _parse_args(argv):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--... | 38.108108 | 84 | 0.592199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 486 | 0.344681 |
3d7257323cd6a29d01231ce12bd9760e4b104696 | 6,621 | py | Python | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import random
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from app.api.util.web_request import WebRequest, USER_AGENT_PC, USER_AGENT_MOBILE
class SpiderWebDriver(object):
def __init__(sel... | 37.196629 | 144 | 0.564718 | 2,312 | 0.328829 | 0 | 0 | 0 | 0 | 0 | 0 | 2,395 | 0.340634 |
3d7270ed2ccd3fdf53730944e85357d2c3e72251 | 2,879 | py | Python | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | import unittest
import main
import re
class MatrixRowsVerification(unittest.TestCase):
def setUp(self):
self.matrix1 = {0: [1, 2, 3], 1: [4, 5, 6]}
self.matrix2 = {0: [1, 2], 1: [3, 4], 2: [5, 6]}
def test_getRowsType(self):
self.assertIsInstance(main.getRows(self.matrix1), int, 'wrong... | 38.905405 | 118 | 0.632511 | 2,779 | 0.965266 | 0 | 0 | 0 | 0 | 0 | 0 | 513 | 0.178187 |
3d73ea7a25229da399450bef857ee8338b98b235 | 1,210 | py | Python | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 17 | 2015-02-10T12:18:22.000Z | 2018-03-23T05:28:51.000Z | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 3 | 2015-01-12T17:32:20.000Z | 2016-12-13T23:55:38.000Z | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 3 | 2015-02-06T09:58:09.000Z | 2016-01-04T23:46:28.000Z | import os
from setuptools import setup
def read(fname):
filename = os.path.join(os.path.dirname(__file__), fname)
return open(filename).read().replace('#', '')
setup(
name="livedumper",
version="0.3.0",
author="Thiago Kenji Okada",
author_email="[email protected]",
description=("Liv... | 31.842105 | 61 | 0.613223 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 661 | 0.546281 |
3d75f72f3f1eb09ca962b85e8adb34487fcfe9b8 | 2,862 | py | Python | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | 2 | 2021-03-10T13:13:46.000Z | 2021-03-11T09:03:33.000Z | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | null | null | null | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import csv
import cv2
img_w = 0
img_h = 0
def relativ2pixel(detection, frameHeight, frameWidth):
center_x, center_y = int(detection[0] * frameWidth), int(detection[1] * frameHeight)
width, height = int(detection[2] * frameWidth), int(detection[3] * frameHeight)
... | 28.336634 | 123 | 0.589099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 874 | 0.305381 |
3d770d3cc83356d38e93ea226253df080988393a | 8,687 | py | Python | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 262 | 2020-05-05T21:25:17.000Z | 2022-03-22T09:11:15.000Z | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 22 | 2020-05-07T21:20:42.000Z | 2022-02-25T02:44:50.000Z | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 18 | 2020-05-06T07:21:43.000Z | 2022-02-08T09:49:23.000Z | #! /urs/bin/env python
# Copyright 2017-2020 Fitbit, Inc
# SPDX-License-Identifier: Apache-2.0
#####################################################################
# This script post-processes the XCode project generated
# by CMake, so that it no longer contains absolute paths.
# It also remaps UUIDs so that they ar... | 44.778351 | 138 | 0.610568 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5,041 | 0.580292 |
3d780dd389a1180a4ebe2e338ba4584066d6c9fa | 3,091 | py | Python | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | 2 | 2020-03-16T17:18:20.000Z | 2020-10-19T05:11:19.000Z | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | null | null | null | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | null | null | null | #!/bin/python3
# Application for getting early US visa interview:
# The tool will Scrape the CGI website and check
# available date before the current appointment date,
# if a date is available, the program will beep.
# NOTE: SET THESE GLOBAL VARIABLES BEFORE USE
# COOKIE: After you login, there is a `cookie`
# ... | 38.160494 | 413 | 0.591071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,552 | 0.502103 |
3d781809d6d69006559cbf3b7edc3aab98c386ee | 815 | py | Python | LeetCode/lc960.py | SryImNoob/ProblemSet-1 | 70a4bf1519110ce4918b76b6b456520f713fa446 | [
"MIT"
] | null | null | null | LeetCode/lc960.py | SryImNoob/ProblemSet-1 | 70a4bf1519110ce4918b76b6b456520f713fa446 | [
"MIT"
] | null | null | null | LeetCode/lc960.py | SryImNoob/ProblemSet-1 | 70a4bf1519110ce4918b76b6b456520f713fa446 | [
"MIT"
] | 2 | 2019-06-05T03:42:26.000Z | 2020-10-14T05:57:37.000Z | def createArray(dims) :
if len(dims) == 1:
return [0 for _ in range(dims[0])]
return [createArray(dims[1:]) for _ in range(dims[0])]
def f(A, x, y):
m = len(A)
for i in range(m):
if A[i][x] > A[i][y]:
return 0
return 1
class Solution(object):
def minDeletionSize(self, A):
... | 23.970588 | 55 | 0.402454 | 542 | 0.665031 | 0 | 0 | 0 | 0 | 0 | 0 | 62 | 0.076074 |
3d7952d5919e3aadff896edcbf8705b6c7253f29 | 3,883 | py | Python | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | null | null | null | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | 4 | 2021-04-08T16:38:32.000Z | 2021-04-12T08:36:59.000Z | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | 1 | 2021-04-02T11:09:05.000Z | 2021-04-02T11:09:05.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33.188034 | 112 | 0.64409 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,346 | 0.346639 |
3d7a603d1af477e68cfea29362bbe8cb1160699c | 10,713 | py | Python | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from mock import patch
from custom.icds_reports.ucr.tests.test_base_form_ucr import BaseFormsTest
@patch('custom.icds_reports.ucr.expressions._get_user_location_id',
lambda user_id: 'qwe56poiuytr4xcvbnmkjfghwerffdaa')
@patch('corehq.apps.locations.ucr_expressions._get_location_type_name',
lambda loc_id... | 39.677778 | 74 | 0.493419 | 10,134 | 0.945954 | 0 | 0 | 10,608 | 0.990199 | 0 | 0 | 4,891 | 0.456548 |
3d7ab6cf1374f5cd2e87a03c6e24173bb82d35b7 | 2,898 | py | Python | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research 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 applicab... | 35.341463 | 118 | 0.733954 | 1,203 | 0.415114 | 0 | 0 | 1,156 | 0.398896 | 0 | 0 | 1,133 | 0.390959 |
3d7b2d7375396a8c241a8c99281ec5431deb5055 | 1,257 | py | Python | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 37 | 2017-05-12T02:32:26.000Z | 2019-05-03T14:43:08.000Z | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 11 | 2017-08-27T03:36:18.000Z | 2018-10-28T01:31:12.000Z | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 15 | 2019-06-13T11:29:12.000Z | 2022-02-28T06:40:14.000Z | from inqry.system_specs import win_physical_disk
UNIQUE_ID_OUTPUT = """
UniqueId
--------
{256a2559-ce63-5434-1bee-3ff629daa3a7}
{4069d186-f178-856e-cff3-ba250c28446d}
{4da19f06-2e28-2722-a0fb-33c02696abcd}
50014EE20D887D66
eui.0025384161B6798A
5000C5007A75E216
500A07510F1A545C
ATA LITEONIT LMT-256M6M mSATA 256GB ... | 43.344828 | 125 | 0.638823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 734 | 0.58393 |
3d7ca16d1d0cb0fd5ce512de12142e0f598017a2 | 572 | py | Python | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | import time # NOQA
from app import db
class Link(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String)
url = db.Column(db.String)
description = db.Column(db.String)
type = db.Column(db.Integer)
enabled = db.Column(db.Boolean)
createtime = db.Column(db.DateTi... | 27.238095 | 63 | 0.63986 | 530 | 0.926573 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0.01049 |
3d7e43dc6fabcfe8138a99da18574265d9a525c8 | 1,786 | py | Python | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.find_list_command import FindListCommand
from... | 49.611111 | 93 | 0.594625 | 1,152 | 0.645017 | 0 | 0 | 0 | 0 | 0 | 0 | 137 | 0.076708 |
3d7f09d4c114419bab9ec9c8e10674cc7fff831b | 1,745 | py | Python | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from django.urls import reverse_lazy
from ..models import PHOTO_MODEL, UploadedPhotoModel, IMAGE_SIZES
from .model_factories import get_image_file, get_zip_file
import time
from uuid import uuid4
class UploadPhotoApiViewTest(TestCase):
def check_photo_ok_and_delete(self, photo):
... | 39.659091 | 109 | 0.719198 | 1,513 | 0.867049 | 0 | 0 | 0 | 0 | 0 | 0 | 214 | 0.122636 |
3d81056b0a805d88fa50d75883361df24c0f7eae | 16,756 | py | Python | app.py | cherishsince/PUBG_USB | f9b06d213a0fe294afe4cf2cf6dccce4bb363062 | [
"MulanPSL-1.0"
] | 46 | 2020-07-04T13:33:40.000Z | 2022-03-29T13:42:29.000Z | app.py | kiminh/PUBG_USB | f3a1fa1aedce751fc48aeefd60699a1f02a29a70 | [
"MulanPSL-1.0"
] | 1 | 2020-09-01T01:58:29.000Z | 2020-09-06T11:45:46.000Z | app.py | kiminh/PUBG_USB | f3a1fa1aedce751fc48aeefd60699a1f02a29a70 | [
"MulanPSL-1.0"
] | 21 | 2020-07-08T07:53:56.000Z | 2022-02-02T23:43:56.000Z | import os
import time
from PIL import Image
import pyscreenshot as ImageGrab
import resource
from drive import box_drive64
from util import image_util, data_config_parser
from util.data_parser import read_data
from weapon import weapon, page_check, weapon_selection, left_right_correction
import environment
import thr... | 28.691781 | 107 | 0.59334 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4,599 | 0.251147 |
3d81143199d30bf1afb752289d20dfe6d3a3f506 | 16,009 | py | Python | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | null | null | null | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-01T16:56:58.000Z | 2022-02-27T14:32:32.000Z | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | null | null | null | from concurrent.futures import ALL_COMPLETED, ThreadPoolExecutor, as_completed
import csv
import dearpygui.dearpygui as dpg
from os.path import isfile, isdir, join
import pyperclip
import subprocess
import sys
from tempfile import gettempdir
from traceback import print_exc
import core
import extruct
import utilio
fro... | 37.757075 | 151 | 0.639578 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,543 | 0.158848 |
3d82652d7d5f527c23d139f61d27dabd1f54a20e | 3,813 | py | Python | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... | 38.515152 | 79 | 0.702072 | 0 | 0 | 362 | 0.094938 | 0 | 0 | 0 | 0 | 2,299 | 0.602937 |
3d83dae1b7cb47bf096db3ece76a46efed3fa5a8 | 1,835 | py | Python | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2019-03-08T03:06:43.000Z | 2019-03-08T03:06:43.000Z | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:54:28.000Z | 2020-10-29T19:54:28.000Z | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from asdf import yamlutil
from asdf.versioning import AsdfSpec
from ..types import AstronomyDataModelType
from ..fixed_location import FixedLocation
class FixedLocationType(AstronomyDataModelType):
name = 'datamodel/fixed_loca... | 40.777778 | 96 | 0.683924 | 1,594 | 0.868665 | 0 | 0 | 1,340 | 0.730245 | 0 | 0 | 374 | 0.203815 |
3d85f7e617337855186eb9a6630f328826ed38ef | 868 | py | Python | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 13:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_remove_profile_caption_alter_profile_profile_pic_and_more'),
]
operations = [
migrations.Create... | 34.72 | 117 | 0.623272 | 742 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0 | 180 | 0.207373 |
3d8734a866fbee3cba78ae6db665c5cbc41ba2ea | 440 | py | Python | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | 3 | 2020-02-11T23:31:01.000Z | 2021-06-10T21:04:34.000Z | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null |
from .seed_assessment_type import seed_assessment
from .seed_question import seed_question
from .seed_answer import seed_answer
from .seed_user import seed_user
from .seed_score import seed_score
from .seed_assessment_name import seed_assessment_name
class Seeder(object):
def seed_all(self):
seed_assess... | 24.444444 | 54 | 0.752273 | 186 | 0.422727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3d89564a5d0fa853d134b34b86a84b5003e24ceb | 328 | py | Python | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | from pandas import DataFrame
from contek_tusk.table import Table
class MetricData:
def __init__(self, table: Table, df: DataFrame) -> None:
self._table = table
self._df = df
def get_table(self) -> Table:
return self._table
def get_data_frame(self) -> DataFrame:
return s... | 19.294118 | 60 | 0.655488 | 259 | 0.789634 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3d8aee839cc7a45416c287f7da1460240d9b1dd8 | 28 | py | Python | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 22 | 2020-10-10T18:25:04.000Z | 2021-11-09T18:56:34.000Z | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 1 | 2020-11-10T03:50:05.000Z | 2020-11-10T03:50:05.000Z | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 2 | 2020-10-10T16:09:42.000Z | 2021-03-10T16:43:11.000Z | from .inlinec import inlinec | 28 | 28 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3d90245ccc4e47d064d2a5aa4296f527b42e0ce2 | 3,360 | py | Python | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | """
SpaceCRAFT - Astro Pi competition[http://astro-pi.org/] entry
Conceived by Hannah Belshaw
Created by Martin O'Hanlon[http://www.stuffaboutcode.com]
For the Raspberry Pi Foundation[https://www.raspberrypi.org]
mcastropi.py
A movable minecraft model of a Raspberry Pi with an Astro Pi on top
"""
from minec... | 37.752809 | 74 | 0.535714 | 2,622 | 0.780357 | 0 | 0 | 0 | 0 | 0 | 0 | 858 | 0.255357 |
3d9080c01f26c55604e47fcbe8181d860f113c89 | 1,444 | py | Python | utils/pack_images.py | 1mplex/segmentation_image_augmentation | bd93c1589078247c0c7aff8556afc16a7e15be39 | [
"MIT"
] | 15 | 2020-07-21T08:57:38.000Z | 2022-01-24T21:59:10.000Z | utils/pack_images.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 1 | 2021-02-15T21:24:11.000Z | 2021-02-15T21:24:11.000Z | utils/pack_images.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 9 | 2021-07-01T02:42:22.000Z | 2022-01-24T21:59:12.000Z | import copy
import math
import numpy as np
# import rpack
from rectpack import newPacker
from rectpack.maxrects import MaxRectsBssf
def _change_dim_order(sizes):
return [[s[1], s[0]] for s in sizes]
# def get_pack_coords(sizes):
# # list of [height, width] i.e. img.shape order
# sizes = _change_dim_ord... | 22.5625 | 66 | 0.629501 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 233 | 0.161357 |
3d90bec081e48c3692736a49abca5a861a8e0892 | 626 | py | Python | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | # DD.MM.YYYY (DD — номер дня, MM — номер месяца, YYYY — номер года)
import re
import datetime
def is_task_current(task, date):
result = None
groups = re.match('([0-9]{1,2}).([0-9]{1,2}).([0-9]{4})', task['condition'])
type_is_correct = groups != None
if type_is_correct:
task... | 26.083333 | 91 | 0.600639 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 160 | 0.242424 |
3d92ede6e5d24bbbfeb9c757cc08cd7affa9cd34 | 268 | py | Python | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-01-17T15:49:03.000Z | 2021-01-17T15:49:03.000Z | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | null | null | null | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-03-07T15:31:06.000Z | 2021-03-07T15:31:06.000Z | from setuptools import setup
setup(
name='pyons',
version='1.0',
author="Andrey Larionov",
author_email="[email protected]",
license="MIT",
py_modules=['pyons'],
install_requires=[
],
tests_requires=[
'pytest',
],
)
| 15.764706 | 39 | 0.589552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 70 | 0.261194 |
3d95e63a148b7fb62965e71316967e479358de64 | 2,262 | py | Python | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 4 | 2016-09-19T03:54:31.000Z | 2021-03-27T23:06:34.000Z | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 1 | 2017-08-01T15:04:57.000Z | 2017-08-08T22:02:46.000Z | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 6 | 2015-08-24T09:37:41.000Z | 2018-12-26T19:40:42.000Z | #! /usr/bin/env python3.2
import re
def _subpre(text):
list=re.split('(<pre>|</pre>)',text)
for i in range(len(list)):
# begin of pre
if i%4==1:
list[i]='\n\n '
# in pre
elif i%4==2:
list[i]=re.sub('<p>|<br>|\n\n', '\n\n ',list[i])
# end of pre
elif i%4==3:
list[i]=... | 29 | 183 | 0.517683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 667 | 0.294872 |
3d9613c4bf3516cfc004d7af07118d7c31dd361e | 2,572 | py | Python | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | 1 | 2018-04-18T19:10:06.000Z | 2018-04-18T19:10:06.000Z | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | null | null | null | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | 1 | 2018-04-29T08:48:00.000Z | 2018-04-29T08:48:00.000Z |
class Encoder:
def __init__(self, encoding = {}):
self.encoding = encoding
def updateEncoding(self,string1,string2):
list1 = str.split(string1)
list2 = str.split(string2)
self.encoding = {}
for i in range(len(list1)):
self.encoding[list1[i]] = list2[i]
... | 28.263736 | 154 | 0.626361 | 864 | 0.335404 | 0 | 0 | 0 | 0 | 0 | 0 | 1,182 | 0.458851 |
3d97e3a10c2e5eda50ea446fddb6d02e4af4f7fc | 543 | py | Python | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 9 | 2015-07-23T06:35:59.000Z | 2020-06-01T04:33:56.000Z | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 28 | 2015-10-16T19:09:58.000Z | 2019-02-28T21:09:54.000Z | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 5 | 2015-10-15T22:56:10.000Z | 2018-11-13T20:44:39.000Z | from requests.adapters import HTTPAdapter, DEFAULT_POOLBLOCK
from requests.packages.urllib3.poolmanager import PoolManager
class TribAdapter(HTTPAdapter):
def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK):
self._pool_connections = connections
self._pool_maxsize = maxsize
... | 38.785714 | 78 | 0.664825 | 417 | 0.767956 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 0.012891 |
3d9a1b0edafd4fb0b37e8206295d03027352213c | 18 | py | Python | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | null | null | null | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | 2 | 2019-12-24T01:54:21.000Z | 2019-12-24T02:23:54.000Z | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | null | null | null | from .phc import * | 18 | 18 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3d9ccca595c0005acda152685faed3168eed5797 | 14,006 | py | Python | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | 3 | 2020-03-23T14:00:35.000Z | 2020-09-24T13:56:18.000Z | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | import sympy as sym
import torch
import torch.nn as nn
import torch.nn.functional as F
class LambdaLayer(nn.Module):
"""
Layer that applies a given function on the input
"""
def __init__(self, lambd):
super(LambdaLayer, self).__init__()
self.lambd = lambd
def forward(self, x):
... | 43.228395 | 141 | 0.628873 | 13,898 | 0.992289 | 0 | 0 | 3,252 | 0.232186 | 0 | 0 | 5,129 | 0.3662 |
3d9d90c223017d9e1ce9c0cffb8a666b613826f2 | 1,326 | py | Python | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | 1 | 2021-09-21T00:00:25.000Z | 2021-09-21T00:00:25.000Z | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | null | null | null | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | 5 | 2020-07-20T18:43:59.000Z | 2020-11-03T22:49:17.000Z | import movies
def action_handler(action, parameters, return_var):
return_values = {}
if action == 'trendings':
return_values = get_trendings(parameters, return_var)
elif action == 'search':
return_values = search_movies(parameters, return_var)
return {
'skills': {
... | 28.212766 | 78 | 0.630468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 334 | 0.251885 |
3d9dc45f332b2fb283e892734ee2a5da821f63dd | 118 | py | Python | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | 1 | 2019-04-18T13:43:15.000Z | 2019-04-18T13:43:15.000Z | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | null | null | null | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | null | null | null | lista = list(range(0,10001))
for cont in range(0,10001):
print(lista[cont])
for valor in lista:
print(valor) | 16.857143 | 28 | 0.669492 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3d9e72965d75f1eba7d57fa18ca18b2a64265bc7 | 8,282 | py | Python | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | 1 | 2020-12-05T15:45:48.000Z | 2020-12-05T15:45:48.000Z | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | 2 | 2021-03-18T07:37:28.000Z | 2021-07-27T14:45:14.000Z | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | null | null | null | import spacy
from spacy.lang.ro import Romanian
from typing import Dict, List, Iterable
from nltk import sent_tokenize
import re
# JSON Example localhost:8081/spacy application/json
# {
# "lang" : "en",
# "blocks" : ["După terminarea oficială a celui de-al doilea război mondial, în conformitate cu discursul lu... | 42.255102 | 584 | 0.579087 | 3,699 | 0.442305 | 0 | 0 | 0 | 0 | 0 | 0 | 4,080 | 0.487863 |
3da0bfcdf3a8e5f3c1aebf2e4b45b14e05c629a8 | 1,375 | py | Python | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# comando con argumentos
# y procesamiento de una imagen
# enviada por el usuario
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from io import BytesIO
from PIL import Image
import cv2 as cv
import skimage.io as io
updater = Updater('api token del bot')
def sendImag... | 28.061224 | 85 | 0.722182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 183 | 0.133091 |
3da10758c9f1e0fdc4bba0b279e9579ff6f1b0c5 | 1,236 | py | Python | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | 1 | 2022-03-23T10:18:17.000Z | 2022-03-23T10:18:17.000Z | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | null | null | null | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | null | null | null | from sklearn.preprocessing import StandardScaler, LabelEncoder, MinMaxScaler, OneHotEncoder
import numpy as np
import pandas as pd
import tqdm
"""
Class for Preprocessing CICIDS2017 Data represented as rows
"""
class CICIDSPreprocessor:
def __init__(self):
self.to_delete_columns = ['Flow ID', ' Timestamp... | 33.405405 | 91 | 0.670712 | 1,021 | 0.826052 | 0 | 0 | 0 | 0 | 0 | 0 | 112 | 0.090615 |
3da195067ff01ae97b234bc41093431b6cebf500 | 646 | py | Python | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
from netmiko import ConnectHandler
from getpass import getpass
from pprint import pprint
# Code so automated tests will run properly
# Check for environment variable, if that fails, use getpass().
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
my_device = {
"dev... | 30.761905 | 88 | 0.733746 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 304 | 0.470588 |
3da20b359813d6186015461736f4d52256b59084 | 2,793 | py | Python | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python3
#
# Tests if the HES1 Michaelis-Menten toy model runs.
#
# This file is part of PINTS (https://github.com/pints-team/pints/) which is
# released under the BSD 3-clause license. See accompanying LICENSE.md for
# copyright notice and full license details.
#
import unittest
import numpy as np
impor... | 38.260274 | 78 | 0.653419 | 2,396 | 0.857859 | 0 | 0 | 0 | 0 | 0 | 0 | 550 | 0.196921 |
3da3144e79a3871eba136a301ca02449b8340d18 | 390 | py | Python | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | 1 | 2019-12-10T08:01:58.000Z | 2019-12-10T08:01:58.000Z | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | null | null | null | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | null | null | null | from . base import Actions, get_users
def get_followers(username, password, victim_username, proxies=None):
return get_users(username, password, victim_username, proxies=proxies, relation=Actions.followers)
def get_followings(username, password, victim_username, proxies=None):
return get_users(username, pas... | 39 | 103 | 0.810256 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3da323f7d830c432cc131d570a30ac74ba6392bd | 1,636 | py | Python | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | import requests
import os
from user_data import UserData
import json
class DataManager:
"""This class is responsible for talking to the Google Sheet."""
def __init__(self) -> None:
self.SHEETY_URL = f"https://api.sheety.co/{os.environ['SHEETY_SHEET_ID']}/pythonFlightDeals"
self.sheet_data = {... | 34.808511 | 110 | 0.630807 | 1,564 | 0.95599 | 0 | 0 | 0 | 0 | 0 | 0 | 432 | 0.264059 |
3da40761377898e0edc360572dbd5d864963e85c | 4,232 | py | Python | crime_data/resources/incidents.py | 18F/crime-data-api | 3e8cab0fad4caac1d7d8ef1b62ae7a1441752c6c | [
"CC0-1.0"
] | 51 | 2016-09-16T00:37:56.000Z | 2022-01-22T03:48:24.000Z | crime_data/resources/incidents.py | harrisj/crime-data-api | 9b49b5cc3cd8309dda888f49356ee5168c43851a | [
"CC0-1.0"
] | 605 | 2016-09-15T19:16:49.000Z | 2018-01-18T20:46:39.000Z | crime_data/resources/incidents.py | harrisj/crime-data-api | 9b49b5cc3cd8309dda888f49356ee5168c43851a | [
"CC0-1.0"
] | 12 | 2018-01-18T21:15:34.000Z | 2022-02-17T10:09:40.000Z | from webargs.flaskparser import use_args
from itertools import filterfalse
from crime_data.common import cdemodels, marshmallow_schemas, models, newmodels
from crime_data.common.base import CdeResource, tuning_page, ExplorerOffenseMapping
from crime_data.extensions import DEFAULT_MAX_AGE
from flask.ext.cachecontrol imp... | 41.087379 | 157 | 0.708176 | 3,755 | 0.887287 | 0 | 0 | 2,906 | 0.686673 | 0 | 0 | 618 | 0.14603 |
3da4a9becaa6b35a7f34b4f9c1a6f2e59d92599e | 1,522 | py | Python | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | 3 | 2019-04-05T14:16:17.000Z | 2021-06-25T20:53:03.000Z | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | 6 | 2019-04-04T20:20:16.000Z | 2021-09-27T21:04:39.000Z | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | null | null | null | import copy
from deploy_config_generator.utils import yaml_dump
from deploy_config_generator.output import kube_common
class OutputPlugin(kube_common.OutputPlugin):
NAME = 'kube_kong_consumer'
DESCR = 'Kubernetes KongConsumer output plugin'
FILE_EXT = '.yaml'
DEFAULT_CONFIG = {
'fields': {
... | 31.061224 | 130 | 0.532194 | 1,399 | 0.919185 | 0 | 0 | 0 | 0 | 0 | 0 | 280 | 0.183968 |
3da7fc4300dabd09ec4c470043ea127780e60a3b | 2,450 | py | Python | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | 1 | 2021-12-07T08:02:30.000Z | 2021-12-07T08:02:30.000Z | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | import numpy as np
class MeanShift:
def __init__(self, radius=2):
self.radius = radius
def fit(self, data):
centroids = self.initialize_starting_centroids(data)
self.centroids = self.make_centroids(centroids, data)
def initialize_starting_centroids(self, data):
centroids ... | 34.027778 | 87 | 0.646122 | 2,427 | 0.990612 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 0.009388 |
3da83d4179e3c0fa03b23a086938541e7c9c090e | 931 | py | Python | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 12 | 2019-04-30T16:07:42.000Z | 2021-12-08T08:02:09.000Z | src/tentaclio/clients/athena_client.py | octoenergy/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 74 | 2019-04-25T11:18:22.000Z | 2022-01-18T11:31:14.000Z | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 4 | 2019-05-05T13:13:21.000Z | 2022-01-14T00:33:07.000Z | """AWS Athena query client.
Overrides the `get_df` convenience methods for loading a DataFrame using PandasCursor,
which is more performant than using sql alchemy functions.
"""
import pandas as pd
from pyathena.pandas_cursor import PandasCursor
from . import decorators, sqla_client
__all__ = ["AthenaClient"]
cl... | 32.103448 | 86 | 0.736842 | 612 | 0.657358 | 0 | 0 | 343 | 0.368421 | 0 | 0 | 361 | 0.387755 |
3da995d5085338f00dd3653e93f80c4fa924f8b7 | 3,592 | py | Python | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | 11 | 2018-03-27T17:24:35.000Z | 2021-09-21T05:49:11.000Z | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | 64 | 2018-01-24T16:34:42.000Z | 2020-03-23T13:34:07.000Z | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | null | null | null | import pytest
from conflow.merge import merge_factory
from conflow.node import Node, NodeList, NodeMap
def test_merge_node_node(default_config):
base = Node('base', 'node_A')
other = Node('other', 'node_B')
assert merge_factory(base, other, default_config) == other
def test_merge_node_nodelist(default_... | 26.218978 | 69 | 0.58686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 527 | 0.146715 |
3da9ac46abe5207f20db155757f945a1d90d40c8 | 864 | py | Python | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2020 dlilien <dlilien@hozideh>
#
# Distributed under terms of the MIT license.
"""
"""
import numpy as np
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
from .cartopy_overrides import SPS
# import shapely.geometry as sgeom
U... | 24.685714 | 76 | 0.665509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 256 | 0.295954 |
3daa549e10afe7d4f29dbdbe102676caed6653f5 | 1,010 | py | Python | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.test import TestCase
from robber import expect
from toast.serializers import ToastDesktopSerializer, ToastMobileSerializer
from toast.factories import ToastFactory
class ToastDesktopSerializerTestCase(TestCase):
def test_serialization(self):
toast = ToastFactory(
name='CR',
... | 31.5625 | 112 | 0.634653 | 827 | 0.818812 | 0 | 0 | 0 | 0 | 0 | 0 | 301 | 0.29802 |
3daa64b4b3b876de59fee4ffa1f0970c52c6d7f9 | 12,063 | py | Python | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | 1 | 2021-09-30T06:38:54.000Z | 2021-09-30T06:38:54.000Z | """
KPI ADV
=======
Script to execute an inventory and otap benchmark for the
advertiser feature.
.. Copyright:
Copyright 2019 Wirepas Ltd under Apache License, Version 2.0.
See file LICENSE for full license details.
"""
import queue
import random
import datetime
import importlib
... | 32.340483 | 120 | 0.607643 | 6,397 | 0.530299 | 0 | 0 | 0 | 0 | 0 | 0 | 2,219 | 0.183951 |
3dac942409c65786150bee242bc747d471fc5414 | 1,608 | py | Python | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | import doctest
def leven_distance(iterable1: str or list, iterable2: str or list) -> int:
"""Takes two strings or lists and will find the Levenshtein distance
between the two.
Both iterables must be same type (str or list) for proper functionality.
If given strings, function will find distance per c... | 29.777778 | 77 | 0.559701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 686 | 0.426617 |
3dada60e0249d722b9efc92d356114b02e3e0c6c | 18,496 | py | Python | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | from .utils import *
class Filter(object):####TODO add logging
def __init__(self, measure, cutting_rule):
"""
Basic univariate filter class with chosen(even custom) measure and cutting rule
:param measure:
Examples
--------
>>> f=Filter("PearsonCorr", GLOB_CR[... | 37.670061 | 118 | 0.579477 | 17,515 | 0.946757 | 0 | 0 | 14,736 | 0.796541 | 0 | 0 | 4,979 | 0.269135 |
3dae0fc03c90ecfa32dc4ecfd3dd9dd3da1ccb4d | 457 | py | Python | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | 2 | 2020-07-28T08:40:06.000Z | 2022-02-16T23:04:58.000Z | from PyQuantum.TC3.Cavity import Cavity
from PyQuantum.TC3.Hamiltonian3 import Hamiltonian3
capacity = {
'0_1': 2,
'1_2': 2,
}
wc = {
'0_1': 0.2,
'1_2': 0.3,
}
wa = [0.2] * 3
g = {
'0_1': 1,
'1_2': 200,
}
cv = Cavity(wc=wc, wa=wa, g=g, n_atoms=3, n_levels=3)
# cv.wc_info()
# cv.wa_info()
#... | 13.848485 | 60 | 0.603939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 83 | 0.181619 |
3daf0b7c2684b25ee98648b971b2e1076b2cf00c | 1,058 | py | Python | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | 1 | 2020-05-18T15:55:09.000Z | 2020-05-18T15:55:09.000Z | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | null | null | null | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | null | null | null | # https://stackoverflow.com/questions/31921313/matplotlib-animation-moving-square
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib import animation
x = [0, 1, 2]
y = [0, 10, 20]
y2 = [40, 30, 20]
colors = ['r','b','g','orange']
fig = plt.figure()
plt.axis('equal')
plt.grid()
ax = f... | 25.190476 | 81 | 0.614367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 105 | 0.099244 |
3daf498d7521399146cf380a60792cc98a71c488 | 6,145 | py | Python | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | import sys
import warnings
if not sys.warnoptions:
warnings.simplefilter("ignore")
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
from sklearn.naive_bayes import MultinomialNB
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from ... | 34.138889 | 300 | 0.682832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2,250 | 0.366151 |
3daf789bd0a2214d01837395979045b5721435c8 | 16,895 | py | Python | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN – European Organization for Nuclear Research
#
# 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... | 48.409742 | 123 | 0.674223 | 15,534 | 0.919335 | 0 | 0 | 0 | 0 | 0 | 0 | 9,696 | 0.57383 |
3db22ed381d2b08ee0407932f289e02567c77fca | 1,268 | py | Python | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 Zhang, Chen. 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 re... | 42.266667 | 80 | 0.69795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 826 | 0.65142 |
3db26a9a64ef3907fd6d3bfdd43c6b7c844f6a0f | 303 | py | Python | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | 9 | 2021-03-19T08:05:00.000Z | 2022-03-12T00:15:53.000Z | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Mood
class MoodSerializer(serializers.ModelSerializer):
class Meta:
model = Mood
fields = ['profile', 'characteristic', 'latitude', 'longitude', 'image', 'location']
read_only_fields = ['latitude', 'longitude']
| 23.307692 | 92 | 0.686469 | 234 | 0.772277 | 0 | 0 | 0 | 0 | 0 | 0 | 84 | 0.277228 |
3db6b1a2ad7d586c5f66023f21c351a35d9fd997 | 7,604 | py | Python | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 2 | 2016-06-06T03:26:49.000Z | 2017-08-06T18:12:33.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 60 | 2016-03-19T16:01:27.000Z | 2016-06-23T16:26:10.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | null | null | null | import json
import requests
import unittest
import Utilities
# Precondiciones:
# Intereses:
# No debe haber ningun usuario en el Shared que tenga "interesUnico"
#
Address = "http://localhost:8000"
#Tal vez mandar las URIs a sus respectivas clases
URIResgistro = "/registro"
URILogin = "/login"
URIPedirCandidato = ... | 43.451429 | 233 | 0.768017 | 6,607 | 0.868885 | 0 | 0 | 0 | 0 | 0 | 0 | 1,495 | 0.196607 |
3db6b5d6bbd126263b54d30034f80a8d201b13af | 3,639 | py | Python | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 1 | 2019-11-26T17:49:19.000Z | 2019-11-26T17:49:19.000Z | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 54 | 2018-12-12T18:02:31.000Z | 2022-03-28T19:14:25.000Z | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 4 | 2020-03-02T22:59:38.000Z | 2021-12-09T15:49:00.000Z | import datetime
import cStringIO
import psycopg2
from shapely.wkb import loads
import numpy as np
import sys
from geopandas import read_postgis
import matplotlib
matplotlib.use("agg")
from pyiem.plot import MapPlot
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from matplotlib.collections impor... | 25.992857 | 74 | 0.622424 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1,346 | 0.369882 |
3db72a55f192a9c9ab68f0478ca0ffc316b36c78 | 1,053 | py | Python | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 15 | 2019-02-12T23:26:09.000Z | 2021-12-21T08:53:58.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 2 | 2019-01-23T21:13:12.000Z | 2019-06-28T15:45:51.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 6 | 2019-01-23T20:22:50.000Z | 2022-02-03T03:27:04.000Z | from datetime import datetime, timedelta
class IterDates(object):
def __init__(self, start: datetime, stop: datetime, step: timedelta):
self.start = start
self.stop = stop
self.step = step
self.value = (self.start, self.start + self.step)
def __iter__(self):
return se... | 26.325 | 79 | 0.624881 | 1,006 | 0.955366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3db739475a32d4a4cd03afcbff8864712c35cad0 | 193 | py | Python | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | cont = 1
while True:
t = int(input('Quer saber a tabuada de que numero ? '))
if t < 0:
break
for c in range (1, 11):
print(f'{t} X {c} = {t * c}')
print('Obrigado!') | 24.125 | 59 | 0.507772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 72 | 0.373057 |
3db86f3d8bdc658afbe080624e5b8f952805ce4b | 1,172 | py | Python | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | import random as rd
def genPass(num , length):
print ("Password Generator")
print ("===================\n")
numpass=num
lenpass=length
AlphaLcase=[ chr(m) for m in range(65, 91)]
AlphaCcase=[ chr(n) for n in range(97, 123)]
Intset=[ chr(p) for p in range(48,58)]
listsetpass=[]
for j... | 35.515152 | 59 | 0.617747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 45 | 0.038396 |
3db8e72e1423808652d32817702cb2ec2246d0ea | 5,413 | py | Python | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 2 | 2020-06-03T20:19:33.000Z | 2021-04-29T08:05:09.000Z | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 41 | 2020-06-09T11:11:37.000Z | 2022-03-20T21:18:42.000Z | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 9 | 2020-05-27T19:04:55.000Z | 2021-11-01T12:57:55.000Z | from datetime import date, datetime, timedelta
from matplotlib import pyplot as plt, dates as mdates
from matplotlib.ticker import MaxNLocator
from helpers import programmes_helper
filename = 'offers.png'
class OffersService:
def __init__(self, db_conn):
self.db_conn = db_conn
async def generate_gra... | 41.320611 | 114 | 0.585258 | 5,131 | 0.947903 | 0 | 0 | 0 | 0 | 5,035 | 0.930168 | 1,027 | 0.189728 |
3db9d9cd9e40d9cc018a319420be1ba7e9abac3d | 11,397 | py | Python | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Andrew Klychkov (@Andersson007) <[email protected]>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''... | 33.919643 | 137 | 0.623761 | 5,973 | 0.524085 | 0 | 0 | 0 | 0 | 0 | 0 | 5,922 | 0.51961 |
3dbac19444fd45965d236a4f1e5266c9a002aefd | 1,586 | py | Python | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 10 | 2020-05-28T07:09:02.000Z | 2021-04-18T07:38:01.000Z | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 4 | 2020-11-13T18:51:09.000Z | 2022-02-10T01:58:16.000Z | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 4 | 2020-05-29T05:05:18.000Z | 2021-04-22T01:33:17.000Z | """
Copyright (C) king.com Ltd 2019
https://github.com/king/s3vdc
License: MIT, https://raw.github.com/king/s3vdc/LICENSE.md
"""
import tensorflow as tf
def _session_config() -> tf.ConfigProto:
"""Constructs a session config specifying gpu memory usage.
Returns:
tf.ConfigProto -- session config.
... | 31.098039 | 104 | 0.708071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 816 | 0.514502 |
3dbaf6caeb51e514bda230b2abe9f5f3e8537dce | 974 | py | Python | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | from pycontacts import AddressBook
from pycontacts.models import Person
from pycontacts.managers import (
EmailAddressManager,
GroupManager,
PhoneNumberManager,
PersonManager,
StreetAddressManager,
)
def test_create_book():
book = AddressBook()
assert book._store is not None
assert isi... | 29.515152 | 74 | 0.776181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3dbc71f9f330f9191f0001053d461bd694f61316 | 46,266 | py | Python | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=no-value-for-parameter,too-many-nested-blocks
import contextlib
import datetime
import functools
import re
from abc import abstractmethod
import sqlalchemy as sa
from sqlalchemy import event, exc, func, select
from sqlalchemy.ext import declarative
from sqlalchemy.ext import hy... | 37.371567 | 99 | 0.626162 | 41,819 | 0.903882 | 222 | 0.004798 | 8,912 | 0.192625 | 0 | 0 | 8,992 | 0.194354 |
3dbe95131f682ae91ac5d0ab7098a4da9541c391 | 267 | py | Python | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
seq = 'ACGACGCAGGAGGAGAGTTTCAGAGATCACGAATACATCCATATTACCCAGAGAGAG'
w = 11
for i in range(len(seq) - w + 1):
count = 0
for j in range(i, i + w):
if seq[j] == 'G' or seq[j] == 'C':
count += 1
print(f'{i} {seq[i:i+w]} {(count / w) : .4f}')
| 26.7 | 65 | 0.595506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 126 | 0.47191 |
3dbf87737162b90ca8a50c6b75c42c1a4829f712 | 6,159 | py | Python | test/test_auth.py | tjones-commits/server-client-python | b9309fb79564de9f28196b929ee77b0e77a8f504 | [
"CC0-1.0",
"MIT"
] | 470 | 2016-09-14T23:38:48.000Z | 2022-03-31T07:59:53.000Z | test/test_auth.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 772 | 2016-09-09T18:15:44.000Z | 2022-03-31T22:01:08.000Z | test/test_auth.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 346 | 2016-09-10T00:05:00.000Z | 2022-03-30T18:55:47.000Z | import unittest
import os.path
import requests_mock
import tableauserverclient as TSC
TEST_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
SIGN_IN_XML = os.path.join(TEST_ASSET_DIR, 'auth_sign_in.xml')
SIGN_IN_IMPERSONATE_XML = os.path.join(TEST_ASSET_DIR, 'auth_sign_in_impersonate.xml')
SIGN_IN_ERROR_X... | 49.272 | 117 | 0.664069 | 5,776 | 0.937815 | 0 | 0 | 0 | 0 | 0 | 0 | 1,116 | 0.181198 |
3dbfa17a77ec527273235935d102cd0d8f5bcbb2 | 7,991 | py | Python | gym_flock/envs/old/flocking.py | katetolstaya/gym-flock | 3236d1dafcb1b9be0cf78b471672e8becb2d37af | [
"MIT"
] | 19 | 2019-07-29T22:19:58.000Z | 2022-01-27T04:38:38.000Z | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | null | null | null | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | 5 | 2019-10-03T14:44:49.000Z | 2021-12-09T20:39:39.000Z | import gym
from gym import spaces, error, utils
from gym.utils import seeding
import numpy as np
import configparser
from os import path
import matplotlib.pyplot as plt
from matplotlib.pyplot import gca
font = {'family': 'sans-serif',
'weight': 'bold',
'size': 14}
class FlockingEnv(gym.Env):
def... | 36.99537 | 134 | 0.585659 | 7,705 | 0.96421 | 0 | 0 | 0 | 0 | 0 | 0 | 2,324 | 0.290827 |
3dc00d2a0bc2efe282c87c91e5370202da55e278 | 3,010 | py | Python | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | 8 | 2021-05-20T18:39:35.000Z | 2022-02-25T23:24:21.000Z | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | dod-advana/gamechanger-crawlers | e0113111a39f78bd13f70fa4b3359a688f7dc6e8 | [
"MIT"
] | 4 | 2021-06-14T13:46:46.000Z | 2022-03-02T02:01:49.000Z | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | 4 | 2021-06-30T22:18:52.000Z | 2021-11-17T22:43:27.000Z | import scrapy
import re
from urllib.parse import urljoin, urlencode, parse_qs
from dataPipelines.gc_scrapy.gc_scrapy.items import DocItem
from dataPipelines.gc_scrapy.gc_scrapy.GCSpider import GCSpider
type_and_num_regex = re.compile(r"([a-zA-Z].*) (\d.*)")
class ArmyReserveSpider(GCSpider):
name = "Army_Reserve... | 34.597701 | 94 | 0.571429 | 2,748 | 0.912957 | 2,313 | 0.768439 | 104 | 0.034551 | 0 | 0 | 641 | 0.212957 |
3dc01664c6a8e4d90955ec90294ebb0c1cb73629 | 4,036 | py | Python | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | import logging
import mimetypes
import os
from twisted.internet import defer
from lbrynet.core import file_utils
from lbrynet.file_manager.EncryptedFileCreator import create_lbry_file
log = logging.getLogger(__name__)
class Publisher(object):
def __init__(self, session, lbry_file_manager, wallet, certificate_i... | 51.088608 | 117 | 0.631318 | 3,703 | 0.917493 | 3,318 | 0.822101 | 3,399 | 0.84217 | 0 | 0 | 638 | 0.158077 |
3dc0b7210fc8b7d9ca8c5c2087a4723a81de890a | 10,498 | py | Python | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 27 | 2021-04-28T04:51:02.000Z | 2022-03-04T08:57:03.000Z | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 4 | 2021-10-30T13:28:33.000Z | 2022-02-19T01:09:47.000Z | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 3 | 2021-10-30T10:18:02.000Z | 2022-01-16T08:44:43.000Z | import sys,os
from torch.autograd import Variable
import torch.optim as optim
from tensorboardX import SummaryWriter
import torch
import time
import shutil
from torch.utils.data import DataLoader
import csv
from samp_net import EMDLoss, AttributeLoss, SAMPNet
from config import Config
from cadb_dataset import CADBData... | 40.689922 | 130 | 0.561155 | 9,075 | 0.86445 | 0 | 0 | 0 | 0 | 0 | 0 | 916 | 0.087255 |
3dc12e0ce591217b149c51e1d38a5ca5547d4627 | 3,282 | py | Python | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | import keras
import keras.backend as K
class Combine(keras.layers.Layer):
"""Combine layer
This layer recombines the output of its internal layers
#Arguments
layers: A list of Keras layers
output_spec: A list of integer lists, indices from each layer in 'layers'
that make up each outp... | 33.151515 | 109 | 0.59415 | 3,240 | 0.987203 | 0 | 0 | 286 | 0.087142 | 0 | 0 | 865 | 0.263559 |
3dc274928408de034cf930f3d624022d965d5166 | 4,308 | py | Python | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 12 | 2021-05-20T12:49:52.000Z | 2022-01-12T02:15:33.000Z | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 14 | 2021-05-25T09:28:33.000Z | 2021-09-10T07:54:45.000Z | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 3 | 2021-05-25T12:58:36.000Z | 2022-02-18T04:19:21.000Z | import pygame
from pygame.mixer import music
from pystage.core.assets import SoundManager
from pystage.core._base_sprite import BaseSprite
import time
class _Sound(BaseSprite):
# Like for costumes and backdrops, we need a class structure here.
# Plus a global sound manager.
def __init__(self):
su... | 35.02439 | 92 | 0.668524 | 4,153 | 0.96402 | 0 | 0 | 0 | 0 | 0 | 0 | 973 | 0.225859 |
3dc364b351e4b86533cd7ac27b461f7ca088a0a9 | 2,126 | py | Python | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | 1 | 2015-09-09T08:48:03.000Z | 2015-09-09T08:48:03.000Z | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | null | null | null | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | 1 | 2020-04-12T19:00:12.000Z | 2020-04-12T19:00:12.000Z | from django.test import TestCase
from django.test.runner import DiscoverRunner
class DiscoverRunnerTest(TestCase):
def test_dotted_test_module(self):
count = DiscoverRunner().build_suite(
["test_discovery_sample.tests_sample"],
).countTestCases()
self.assertEqual(count, 3)
... | 30.811594 | 83 | 0.676388 | 2,044 | 0.96143 | 0 | 0 | 0 | 0 | 0 | 0 | 453 | 0.213076 |
3dc48feaabd6085099581154d9df3a8f76e956ee | 1,265 | py | Python | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Basic permissions module."""
from sqlalchemy import or_
class SystemWideRoles(object):
"""List of system wide roles."""
# pylint: disable=too-few-public-methods
SUPERUSER = u"Superuser"
ADMINI... | 25.816327 | 78 | 0.67747 | 263 | 0.207905 | 0 | 0 | 0 | 0 | 0 | 0 | 549 | 0.433992 |
3dc61360e96fb602ab782fcc77e9987334f638a2 | 2,075 | py | Python | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | null | null | null | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | null | null | null | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-02-16T14:04:15.000Z | 2022-02-16T14:04:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# import from future to make Python2 behave like Python3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_alias... | 27.302632 | 71 | 0.620723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 718 | 0.346024 |
3dc696f09fb0ebe8bc4f7011c19473f98ca4f506 | 335 | py | Python | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | from django.contrib import admin
from rango.models import Category, Page
admin.site.register(Page)
admin.site.register(Category)
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug':('name',)}
class PageAdmin(admin.ModelAdmin):
list_display = ('title',
'cate... | 22.333333 | 45 | 0.668657 | 188 | 0.561194 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 0.101493 |
3dc6d3255aa8efde45efdc9453d22aa71f26740f | 1,334 | py | Python | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 35 | 2015-03-07T13:30:58.000Z | 2022-02-14T11:44:48.000Z | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 101 | 2015-03-18T03:07:57.000Z | 2019-02-07T12:06:42.000Z | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 76 | 2015-01-08T10:33:03.000Z | 2021-05-11T08:45:50.000Z | #!/usr/bin/env python
from os.path import join, dirname
from cloudify import ctx
ctx.download_resource(
join('components', 'utils.py'),
join(dirname(__file__), 'utils.py'))
import utils # NOQA
# Most images already ship with the following packages:
#
# python-setuptools
# python-backports
# python-b... | 31.761905 | 73 | 0.709145 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 810 | 0.607196 |
3dc72f281f6a609f6178afd5c15a1c8b5b592cd3 | 278 | py | Python | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 3 | 2022-03-08T19:02:41.000Z | 2022-03-16T23:04:37.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 5 | 2022-03-17T02:16:52.000Z | 2022-03-18T02:55:25.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | null | null | null | from .models import ReservedName
def gen_master(apps, scheme_editor):
reserved_names = ['co', 'com', 'example', 'go', 'gov', 'icann', 'ne', 'net', 'nic', 'or', 'org', 'whois', 'www']
for reserved_name in reserved_names:
ReservedName(name=reserved_name).save()
| 34.75 | 116 | 0.647482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 69 | 0.248201 |
3dc7b5b71b827c183978d2d97338bcdc701937fb | 5,180 | py | Python | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | null | null | null | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | null | null | null | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | 2 | 2021-05-24T16:04:55.000Z | 2021-09-16T13:58:48.000Z | # Copyright (c) 2021, CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribu... | 43.166667 | 107 | 0.663127 | 3,053 | 0.589382 | 0 | 0 | 0 | 0 | 0 | 0 | 1,652 | 0.318919 |
3dc7bf9b590e7454e8a84ae7d5b2f66655fcd2d8 | 9,121 | py | Python | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | from numpy.random import random
import random
root = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="... | 36.338645 | 559 | 0.621642 | 1,061 | 0.116325 | 0 | 0 | 0 | 0 | 0 | 0 | 7,904 | 0.866572 |
3dc93ff9707b2d135f50553fa063389f067d2b73 | 803 | py | Python | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 11,396 | 2017-09-07T04:56:02.000Z | 2022-03-31T13:56:17.000Z | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 11,046 | 2017-09-07T09:30:46.000Z | 2022-03-31T20:28:01.000Z | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 3,592 | 2017-09-07T04:14:31.000Z | 2022-03-31T23:53:09.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def add_webhook_notification_template_fields(apps, schema_editor):
# loop over all existing webhook notification templates and make
# sure they have the new "http_method" field filled in with "POST"
Notificat... | 30.884615 | 98 | 0.731009 | 238 | 0.296389 | 0 | 0 | 0 | 0 | 0 | 0 | 242 | 0.30137 |
3dca45f1cb27867b123a5f15fcfde334028fa3ca | 7,964 | py | Python | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | from typing import Tuple, Union
from aiohttp import web
from ogc_edr_lib.ogc_api import OgcApi
import logging
from ogc_edr_lib.ogc_api_collection_metadata_get_queries import (
OgcApiCollectionMetadataGetQueries)
from ogc_edr_lib.ogc_api_collection_metadata_list_data_items import (
OgcApiCollectionMetadataListD... | 63.206349 | 1,561 | 0.708815 | 7,470 | 0.937971 | 0 | 0 | 0 | 0 | 0 | 0 | 6,372 | 0.8001 |
3dca6b4523ea884f293c6a6b346cc8182bedf764 | 28 | py | Python | tunga/preprocessing/__init__.py | tahtaciburak/tunga | e71a4fa393d692779ab6d674673c5674d7287dac | [
"MIT"
] | 5 | 2020-07-31T19:26:46.000Z | 2020-10-23T11:49:06.000Z | tunga/preprocessing/__init__.py | tunga-ml/tunga | 823fd762054fd513300025cbb1fc799f7e3cf6b1 | [
"MIT"
] | null | null | null | tunga/preprocessing/__init__.py | tunga-ml/tunga | 823fd762054fd513300025cbb1fc799f7e3cf6b1 | [
"MIT"
] | 1 | 2021-09-10T08:24:13.000Z | 2021-09-10T08:24:13.000Z | from .normalization import * | 28 | 28 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
3dccadbdd4f7bd09cd826b80f7957d192a7141e5 | 800 | py | Python | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 545 | 2019-04-23T12:54:21.000Z | 2022-03-28T07:59:43.000Z | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 109 | 2019-05-21T13:48:27.000Z | 2022-03-18T21:10:32.000Z | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 44 | 2019-05-15T19:04:01.000Z | 2022-01-31T04:12:59.000Z | #!/usr/bin/env python
import os
import sys
import subprocess
from django.core.management import execute_from_command_line
FLAKE8_ARGS = ['django_restql', 'tests', 'setup.py', 'runtests.py']
WARNING_COLOR = '\033[93m'
END_COLOR = '\033[0m'
def flake8_main(args):
print('Running flake8 code linting')
ret = su... | 22.857143 | 69 | 0.67375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 246 | 0.3075 |
3dccba1140ab8bafa4d46c818af6ac8d4201bac2 | 17,549 | py | Python | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016 Civic Knowledge. This file is licensed under the terms of the
# Revised BSD License, included in this distribution as LICENSE
"""
Parser for the Simple Data Package format. The parser consists of several iterable generator
objects.
"""
NO_TERM = '<no_term>' # No parent term -- no '.' -- in ter... | 30.573171 | 108 | 0.570004 | 15,030 | 0.856459 | 3,405 | 0.194028 | 1,476 | 0.084107 | 0 | 0 | 5,744 | 0.327312 |
3dcde3d12d8ff748623472b864c1c6d69f5873ea | 1,462 | py | Python | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | angry-tony/ceph-lcm-decapod | 535944d3ee384c3a7c4af82f74041b0a7792433f | [
"Apache-2.0"
] | 41 | 2016-11-03T16:40:17.000Z | 2019-05-23T08:39:17.000Z | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | Mirantis/ceph-lcm | fad9bad0b94f2ef608362953583b10a54a841d24 | [
"Apache-2.0"
] | 30 | 2016-10-14T10:54:46.000Z | 2017-10-20T15:58:01.000Z | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | angry-tony/ceph-lcm-decapod | 535944d3ee384c3a7c4af82f74041b0a7792433f | [
"Apache-2.0"
] | 28 | 2016-09-17T01:17:36.000Z | 2019-07-05T03:32:54.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Mirantis Inc.
#
# 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 ... | 25.649123 | 69 | 0.685363 | 484 | 0.331053 | 0 | 0 | 399 | 0.272914 | 0 | 0 | 674 | 0.461012 |
3dce78da1f7ce43271310900e0dcc23b81e61a1a | 1,135 | py | Python | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | 6 | 2017-01-31T19:18:59.000Z | 2020-04-21T17:20:56.000Z | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | null | null | null | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | 3 | 2017-09-20T21:18:36.000Z | 2020-07-29T10:00:30.000Z | # take a bunch of model_0 model_1 etc files and merge them alphabetically
from settings import *
# for each file, load the file into one giant list
# call sort on the list
# write this output somewhere else
for timestep in range(START_IDX,NUM_TIMES):
model = dict()
#Add the full vocabulary to the dictionary
... | 26.395349 | 81 | 0.639648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 423 | 0.372687 |
3dd07bf478788d856c11476ddb5329b455ea6168 | 5,428 | py | Python | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | 2 | 2021-05-25T16:17:25.000Z | 2021-07-16T06:30:27.000Z | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | null | null | null | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021, SIDN Labs
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# list of conditions and the fol... | 40.507463 | 147 | 0.680545 | 2,045 | 0.37675 | 0 | 0 | 0 | 0 | 0 | 0 | 2,238 | 0.412307 |