hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6fcc2a2fdacd2a22f891e4c2ee4f20a75d5a6130 | 1,398 | py | Python | sa/profiles/Cisco/SCOS/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sa/profiles/Cisco/SCOS/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sa/profiles/Cisco/SCOS/profile.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ---------------------------------------------------------------------
# Vendor: Cisco
# OS: SCOS
# ---------------------------------------------------------------------
# Copyright (C) 2007-2012 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NO... | 38.833333 | 89 | 0.537196 |
6fccd64c6d5968278f8f06dd0c3bc69ffe2d9072 | 4,825 | py | Python | airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 8,092 | 2016-04-27T20:32:29.000Z | 2019-01-05T07:39:33.000Z | airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 2,961 | 2016-05-05T07:16:16.000Z | 2019-01-05T08:47:59.000Z | airflow/providers/amazon/aws/example_dags/example_hive_to_dynamodb.py | npodewitz/airflow | 511ea702d5f732582d018dad79754b54d5e53f9d | [
"Apache-2.0"
] | 3,546 | 2016-05-04T20:33:16.000Z | 2019-01-05T05:14:26.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 36.278195 | 96 | 0.732228 |
6fcd19005d9f0c8dc04e8be2bcd4a496b3ee5923 | 74 | py | Python | tle_download/__init__.py | cognitive-space/tle-download | 86e9859eed1e87bf93f33471a665ad2567ebccca | [
"MIT"
] | null | null | null | tle_download/__init__.py | cognitive-space/tle-download | 86e9859eed1e87bf93f33471a665ad2567ebccca | [
"MIT"
] | null | null | null | tle_download/__init__.py | cognitive-space/tle-download | 86e9859eed1e87bf93f33471a665ad2567ebccca | [
"MIT"
] | null | null | null | __version__ = "0.1.0"
from tle_download.main import get_tles, write_tles
| 18.5 | 50 | 0.783784 |
6fcf8180fcc5543d1eb052a5cecb72e8028c0a9e | 4,125 | py | Python | bmi203_hw3/methods.py | cjmathy/bmi203_hw3 | 7d785e12be048a2870b90d704f18d2391f210aec | [
"Apache-2.0"
] | null | null | null | bmi203_hw3/methods.py | cjmathy/bmi203_hw3 | 7d785e12be048a2870b90d704f18d2391f210aec | [
"Apache-2.0"
] | null | null | null | bmi203_hw3/methods.py | cjmathy/bmi203_hw3 | 7d785e12be048a2870b90d704f18d2391f210aec | [
"Apache-2.0"
] | null | null | null | import numpy as np
import random
| 28.061224 | 270 | 0.667394 |
6fcfd483955455d5e0edc10b34fa44d33f3eefa6 | 4,346 | py | Python | custom_components/netatmo/select.py | mauriziosacca/netatmo_custom | 149a211d7cd6b87db012c5dabd12f34db302f066 | [
"MIT"
] | 5 | 2020-08-07T11:35:49.000Z | 2020-09-19T03:27:47.000Z | custom_components/netatmo/select.py | mauriziosacca/netatmo_custom | 149a211d7cd6b87db012c5dabd12f34db302f066 | [
"MIT"
] | 4 | 2020-06-14T06:11:05.000Z | 2020-07-22T10:15:39.000Z | custom_components/netatmo/select.py | mauriziosacca/netatmo_custom | 149a211d7cd6b87db012c5dabd12f34db302f066 | [
"MIT"
] | 2 | 2020-06-13T23:04:41.000Z | 2020-07-05T14:13:49.000Z | """Support for the Netatmo climate schedule selector."""
from __future__ import annotations
import logging
from homeassistant.components.select import SelectEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import a... | 32.192593 | 87 | 0.631615 |
6fcfd615a77be7f31719c843dfcd485b0a7a9fe7 | 349 | py | Python | Olympiad Solutions/URI/1943.py | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/1943.py | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/1943.py | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | # Ivan Carvalho
# Solution to https://www.urionlinejudge.com.br/judge/problems/view/1943
#!/usr/bin/env python2.7
# encoding : utf-8
e = int(raw_input())
if e == 1:
print "Top 1"
elif e <= 3:
print "Top 3"
elif e <= 5:
print "Top 5"
elif e <= 10:
print "Top 10"
elif e <= 25:
print "Top 25"
elif e <= 50:
print "To... | 17.45 | 72 | 0.633238 |
6fd077e82e7625e41bd526705fa44002dd980b86 | 21,889 | py | Python | skbot/ignition/sdformat/bindings/v15/physics.py | FirefoxMetzger/ropy | c1bcebda223f3af0b6d35e3f4c26d8fd9d26577a | [
"Apache-2.0"
] | 6 | 2021-03-24T05:54:45.000Z | 2021-07-20T21:03:21.000Z | skbot/ignition/sdformat/bindings/v15/physics.py | FirefoxMetzger/scikit-bot | ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9 | [
"Apache-2.0"
] | 31 | 2021-08-12T08:12:58.000Z | 2022-03-21T23:16:36.000Z | skbot/ignition/sdformat/bindings/v15/physics.py | FirefoxMetzger/scikit-bot | ee6f1d3451a3c61a6fa122cc42efc4dd67afc9c9 | [
"Apache-2.0"
] | 1 | 2021-07-20T20:13:49.000Z | 2021-07-20T20:13:49.000Z | from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "sdformat/v1.5/physics.xsd"
| 35.707993 | 822 | 0.457673 |
6fd0b30bf860cf4cb13764228ffc837786f5279e | 4,826 | py | Python | lib/surface/help.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/surface/help.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | lib/surface/help.py | bshaffer/google-cloud-sdk | f587382fd112f238c0d6d5ca3dab8f52d2b5c5f9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*- #
# Copyright 2013 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 requir... | 33.513889 | 80 | 0.715292 |
6fd10f3af083decdb2efd072cc80a08a18e55c62 | 66 | py | Python | algocoin/__init__.py | dendisuhubdy/algo-coin | e324f971cc0db5ebc29d04224d2fdeee13a31ac1 | [
"Apache-2.0"
] | 252 | 2017-09-01T21:36:08.000Z | 2022-01-08T15:48:31.000Z | algocoin/__init__.py | dendisuhubdy/algo-coin | e324f971cc0db5ebc29d04224d2fdeee13a31ac1 | [
"Apache-2.0"
] | 75 | 2017-10-10T01:01:19.000Z | 2020-05-04T11:03:20.000Z | algocoin/__init__.py | dendisuhubdy/algo-coin | e324f971cc0db5ebc29d04224d2fdeee13a31ac1 | [
"Apache-2.0"
] | 61 | 2017-08-31T07:22:25.000Z | 2022-01-08T15:48:38.000Z | from .main import main as run # noqa: F401
__version__ = '0.0.3'
| 22 | 43 | 0.681818 |
6fd18ba88e62fdb096046d7f14533a962dedc716 | 283 | py | Python | mmrazor/models/architectures/components/backbones/__init__.py | HIT-cwh/mmrazor | 2dad24044d7f1dad88f20221f8fc071dd40fdd4f | [
"Apache-2.0"
] | 553 | 2021-12-23T11:43:35.000Z | 2022-03-31T01:04:20.000Z | mmrazor/models/architectures/components/backbones/__init__.py | HIT-cwh/mmrazor | 2dad24044d7f1dad88f20221f8fc071dd40fdd4f | [
"Apache-2.0"
] | 113 | 2021-12-23T12:09:06.000Z | 2022-03-30T10:13:42.000Z | mmrazor/models/architectures/components/backbones/__init__.py | HIT-cwh/mmrazor | 2dad24044d7f1dad88f20221f8fc071dd40fdd4f | [
"Apache-2.0"
] | 76 | 2021-12-23T11:48:39.000Z | 2022-03-29T11:24:35.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from .darts_backbone import DartsBackbone
from .searchable_mobilenet import SearchableMobileNet
from .searchable_shufflenet_v2 import SearchableShuffleNetV2
__all__ = ['DartsBackbone', 'SearchableShuffleNetV2', 'SearchableMobileNet']
| 40.428571 | 76 | 0.844523 |
6fd19f63f1a65c7260c9a3e5a8928272b7a43f33 | 2,013 | py | Python | tools/ideabuck/scripts/generate_grammar_kit.py | thelvis4/buck | dd55ad3373c1dc01d83bc3780dfc205a923c8088 | [
"Apache-2.0"
] | 1 | 2021-06-14T22:35:29.000Z | 2021-06-14T22:35:29.000Z | tools/ideabuck/scripts/generate_grammar_kit.py | thelvis4/buck | dd55ad3373c1dc01d83bc3780dfc205a923c8088 | [
"Apache-2.0"
] | null | null | null | tools/ideabuck/scripts/generate_grammar_kit.py | thelvis4/buck | dd55ad3373c1dc01d83bc3780dfc205a923c8088 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2018-present Facebook, 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 applica... | 29.602941 | 82 | 0.718331 |
6fd2040d5d7a06ef6b0a4c0bd8f53d00185458f8 | 5,639 | py | Python | d_parser/d_spider_24int.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | d_parser/d_spider_24int.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | 2 | 2018-03-28T19:47:46.000Z | 2021-12-13T20:56:31.000Z | d_parser/d_spider_24int.py | Holovin/D_GrabDemo | 6adb03fb42ae03e7896eb2eacb342cf9660feb92 | [
"MIT"
] | null | null | null | from lxml import html
from d_parser.d_spider_common import DSpiderCommon
from d_parser.helpers.re_set import Ree
from helpers.url_generator import UrlGenerator
from d_parser.helpers.stat_counter import StatCounter as SC
VERSION = 29
# Warn: Don't remove task argument even if not use it (it's break grab and spider ... | 36.380645 | 144 | 0.563575 |
6fd40b146434a9e17e7620f9be3907c90f0f31db | 2,007 | py | Python | agents/displays/mcts_display.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | agents/displays/mcts_display.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | agents/displays/mcts_display.py | johink/willsmith | a6bdfff2e3b12770100811002867bf3ed64ad6d3 | [
"MIT"
] | null | null | null | from tkinter import Label, GROOVE
from willsmith.gui_display_controller import GUIDisplayController
| 33.45 | 93 | 0.652217 |
6fd4802c9f5de417a2846d954a84224c9c4296eb | 9,461 | py | Python | mrgcn.py | bretthannigan/relational-gcn | 61219cdee2c244682680ac0d7371758dcb9cea96 | [
"MIT"
] | null | null | null | mrgcn.py | bretthannigan/relational-gcn | 61219cdee2c244682680ac0d7371758dcb9cea96 | [
"MIT"
] | null | null | null | mrgcn.py | bretthannigan/relational-gcn | 61219cdee2c244682680ac0d7371758dcb9cea96 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import logging
import argparse
from time import time
import toml
from data.io.knowledge_graph import KnowledgeGraph
from data.io.tarball import Tarball
from data.io.tsv import TSV
from data.utils import is_readable, is_writable
from embeddings import graph_structure
from tasks.node_classification ... | 38.45935 | 105 | 0.51559 |
6fd6455ab81b55e483148e73eb93742490544d5f | 9,343 | py | Python | core.py | aminPial/Overwatch-Streaming-Automation | 5d382e979980e99cebadd802eef999601833dc48 | [
"MIT"
] | 1 | 2020-03-21T04:32:14.000Z | 2020-03-21T04:32:14.000Z | core.py | aminPial/Overwatch-Streaming-Automation | 5d382e979980e99cebadd802eef999601833dc48 | [
"MIT"
] | null | null | null | core.py | aminPial/Overwatch-Streaming-Automation | 5d382e979980e99cebadd802eef999601833dc48 | [
"MIT"
] | null | null | null | import argparse, time, os, cv2, shutil, datetime, math, subprocess, pickle, multiprocessing
from actn import *
ap = argparse.ArgumentParser()
# for help -> python alpha.py --help
ap.add_argument("-f", "--file", required=True,
help="name of the file")
ap.add_argument("-o", "--output", required=True,
... | 33.851449 | 146 | 0.558172 |
6fd71b1757e46f6f90fe0e76c1023674c1eb24fe | 2,168 | py | Python | reports/ipam-reports/ip-primary-missing.py | ryanmerolle/reports | 9f69eb088884033c4cc85ce43c528e964b5a8b41 | [
"MIT"
] | null | null | null | reports/ipam-reports/ip-primary-missing.py | ryanmerolle/reports | 9f69eb088884033c4cc85ce43c528e964b5a8b41 | [
"MIT"
] | 3 | 2022-01-30T17:51:00.000Z | 2022-01-30T17:52:16.000Z | reports/ipam-reports/ip-primary-missing.py | ryanmerolle/reports | 9f69eb088884033c4cc85ce43c528e964b5a8b41 | [
"MIT"
] | null | null | null | from dcim.choices import DeviceStatusChoices
from dcim.models import Device
from extras.reports import Report
| 41.692308 | 90 | 0.497694 |
6fd82d73cc91d48c575559a3f1137c753ea8bb0d | 3,940 | py | Python | runtime/bots/irc/main.py | AKhilRaghav0/dovenetwork | accf19fc4942d5e177d1f4d1302c40c9f979c391 | [
"MIT"
] | null | null | null | runtime/bots/irc/main.py | AKhilRaghav0/dovenetwork | accf19fc4942d5e177d1f4d1302c40c9f979c391 | [
"MIT"
] | null | null | null | runtime/bots/irc/main.py | AKhilRaghav0/dovenetwork | accf19fc4942d5e177d1f4d1302c40c9f979c391 | [
"MIT"
] | null | null | null | import socket
import random
import os
import requests
import re
import github
import minecraft
import string
import sys
HOST = "xeroxirc.net"
PORT = 6667
NICK = "ak_sus"
#PASSWORD = os.getenv("PASSWORD")
CHANNEL = "#BlockySurvival"
SERVER = ""
readbuffer = ""
s = socket.socket()
s.connect((HOST, PORT))
send(bytes("NICK... | 60.615385 | 190 | 0.612437 |
6fd8ba3787eb3badc7089b8d33f9dd05d0100188 | 3,456 | py | Python | evaluate.py | PhilippMarquardt/Amazing-Semantic-Segmentation | 9ca17b71a7bd9e4f4d433fe3bb50105bad564df4 | [
"Apache-2.0"
] | null | null | null | evaluate.py | PhilippMarquardt/Amazing-Semantic-Segmentation | 9ca17b71a7bd9e4f4d433fe3bb50105bad564df4 | [
"Apache-2.0"
] | null | null | null | evaluate.py | PhilippMarquardt/Amazing-Semantic-Segmentation | 9ca17b71a7bd9e4f4d433fe3bb50105bad564df4 | [
"Apache-2.0"
] | null | null | null | """
The file defines the evaluate process on target dataset.
@Author: Yang Lu
@Github: https://github.com/luyanger1799
@Project: https://github.com/luyanger1799/amazing-semantic-segmentation
"""
from sklearn.metrics import multilabel_confusion_matrix
from amazingutils.helpers import *
from amazingutils.utils import l... | 36 | 116 | 0.672743 |
6fd965866bb7ccf36c6dbb4a056de13696d6bd75 | 6,524 | py | Python | examples/pso_trail/demo_gpso.py | gmjustforfun/code | 7551909edf61bddfeafdff223c2a3390661dc62f | [
"MIT"
] | null | null | null | examples/pso_trail/demo_gpso.py | gmjustforfun/code | 7551909edf61bddfeafdff223c2a3390661dc62f | [
"MIT"
] | null | null | null | examples/pso_trail/demo_gpso.py | gmjustforfun/code | 7551909edf61bddfeafdff223c2a3390661dc62f | [
"MIT"
] | null | null | null | from pso.GPSO import GPSO
import numpy as np
import time
import pandas as pd
np.random.seed(42)
# f1
# f2
# f3
# f4
# f5
# f6
# f7
def Rosenbrock(p):
'''
-2.048<=xi<=2.048
(1,...,1)0
:param p:
:return:
'''
n_dim = len(p)
res = 0
for i in range(n_dim - 1):
r... | 28.995556 | 113 | 0.566524 |
6fdb320f11ce21ba2207772e25516617a4f09f64 | 310 | py | Python | setup.py | Juniper/contrail-server-manager | 61a586495b4819904887b5dccb9288b9cf3d2ad5 | [
"Apache-2.0"
] | 12 | 2015-07-28T15:31:51.000Z | 2019-03-03T23:39:10.000Z | setup.py | Juniper/contrail-server-manager | 61a586495b4819904887b5dccb9288b9cf3d2ad5 | [
"Apache-2.0"
] | 4 | 2017-01-25T05:24:17.000Z | 2019-04-03T00:25:13.000Z | setup.py | Juniper/contrail-server-manager | 61a586495b4819904887b5dccb9288b9cf3d2ad5 | [
"Apache-2.0"
] | 33 | 2015-01-07T10:01:28.000Z | 2020-07-26T08:22:53.000Z | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
from setuptools import setup
import setuptools
setup(
name='contrail-server-manager',
version='0.1dev',
packages=setuptools.find_packages(exclude=["*.pyc"]),
zip_safe=False,
long_description="Server Manager package",
)
| 20.666667 | 64 | 0.716129 |
6fdc3aa267ad82108937792e25090869d2290abd | 6,272 | py | Python | Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null | Modules/Loadable/Markups/Testing/Python/MarkupsSceneViewRestoreTestManyLists.py | TheInterventionCentre/NorMIT-Plan-App | 765ed9a5dccc1cc134b65ccabe93fc132baeb2ea | [
"MIT"
] | null | null | null |
# Test restoring a scene with multiple lists with different number
# of fiducials
# first fiducial list
displayNode1 = slicer.vtkMRMLMarkupsDisplayNode()
slicer.mrmlScene.AddNode(displayNode1)
fidNode1 = slicer.vtkMRMLMarkupsFiducialNode()
fidNode1.SetName("FidNode1")
slicer.mrmlScene.AddNode(fidNode1)
fidNode1.Set... | 37.333333 | 151 | 0.772162 |
6fdd8bc73e2b49aa962aeebacd2ae774e4162d17 | 1,013 | py | Python | segmentfault/apps/msg/consumer.py | Yookyiss/segmentfault | 8fb7890c8b650ac34541a8fb14c3cd9bef98d120 | [
"MIT"
] | null | null | null | segmentfault/apps/msg/consumer.py | Yookyiss/segmentfault | 8fb7890c8b650ac34541a8fb14c3cd9bef98d120 | [
"MIT"
] | 12 | 2020-02-12T01:14:42.000Z | 2022-03-11T23:54:43.000Z | segmentfault/apps/msg/consumer.py | Yookyiss/segmentfault | 8fb7890c8b650ac34541a8fb14c3cd9bef98d120 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# @Time : 2019/7/21 12:35 PM
# @Author : __wutonghe__
# docs https://channels.readthedocs.io/en/latest/tutorial/part_3.html#rewrite-the-consumer-to-be-asynchronous
from channels.generic.websocket import AsyncWebsocketConsumer
import json
| 30.69697 | 119 | 0.669299 |
6fe090a4e22c0963ebcb0f7db477cda0fa848e0e | 2,618 | py | Python | tests/utils/test_interpolator.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | tests/utils/test_interpolator.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | tests/utils/test_interpolator.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | import eagerpy as ep
import numpy as np
from scipy.interpolate import RegularGridInterpolator
import hypney
tl = ep.numpy
def test_regular_grid_interpolator():
"""Adapted from
https://github.com/sbarratt/torch_interpolations/blob/master/tests/test_grid_interpolator.py
"""
points = [tl.arange(-0.5, 2... | 33.564103 | 137 | 0.632544 |
6fe12a816ae34998a3fcf2329f909ed39bda660d | 8,451 | py | Python | python/database.py | bvmeggelen/routino | b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8 | [
"X11",
"MIT"
] | 1 | 2016-02-12T20:26:31.000Z | 2016-02-12T20:26:31.000Z | python/database.py | bvmeggelen/routino | b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8 | [
"X11",
"MIT"
] | 2 | 2019-01-16T10:00:19.000Z | 2019-02-03T10:53:32.000Z | python/database.py | bvmeggelen/routino | b6bcc47be6ba4a90353a5b140ca9996aaa17d2b8 | [
"X11",
"MIT"
] | null | null | null | #!/usr/bin/python3
##########################################
# Routino database access from Python.
#
# Part of the Routino routing software.
##########################################
# This file Copyright 2018 Andrew M. Bishop
#
# This program is free software: you can redistribute it and/or modify
# it under the te... | 30.956044 | 156 | 0.587504 |
6fe133c49876165e512b3f8ef38f50888917b203 | 475 | py | Python | vcsver/tests/test_util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | 1 | 2020-12-23T19:22:51.000Z | 2020-12-23T19:22:51.000Z | vcsver/tests/test_util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | null | null | null | vcsver/tests/test_util.py | janneronkko/vcsver | 77020e296a8239ee142213642504c03b9064653f | [
"MIT"
] | null | null | null | import io
from .. import util
| 19.791667 | 66 | 0.614737 |
6fe228d5ef8bd389e1153721d4a2bf62938a548d | 820 | py | Python | matrixFuncs/determinant.py | AmaarMarfatia/MatrixFunctions | c115dd58c273dc791dfd56316c855e601b0d94cc | [
"MIT"
] | null | null | null | matrixFuncs/determinant.py | AmaarMarfatia/MatrixFunctions | c115dd58c273dc791dfd56316c855e601b0d94cc | [
"MIT"
] | null | null | null | matrixFuncs/determinant.py | AmaarMarfatia/MatrixFunctions | c115dd58c273dc791dfd56316c855e601b0d94cc | [
"MIT"
] | null | null | null |
matA = [[1,2,3],[4,5,6],[7,8,15]]
print(determinant(matA)) | 28.275862 | 65 | 0.486585 |
6fe25b4c2678c24198e66f7fedfb9fb15fdcf64a | 5,498 | py | Python | pysnmp/BAY-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/BAY-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/BAY-STACK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module BAY-STACK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAY-STACK-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:19:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | 130.904762 | 836 | 0.790833 |
6fe276f59396e1213dd3856def48f978483f24dc | 2,184 | py | Python | priv/flatex/flatex.py | w495/survey-cbvr | 861db7b9020a4c5809af5c147cfd7387a3a856ed | [
"MIT"
] | 1 | 2016-08-15T22:37:03.000Z | 2016-08-15T22:37:03.000Z | priv/flatex/flatex.py | w495/survey-cbvr | 861db7b9020a4c5809af5c147cfd7387a3a856ed | [
"MIT"
] | null | null | null | priv/flatex/flatex.py | w495/survey-cbvr | 861db7b9020a4c5809af5c147cfd7387a3a856ed | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# This "flattens" a LaTeX document by replacing all
# \input{X} lines w/ the text actually contained in X. See
# associated README.md for details.
# Use as a python module in a python script by saying import flatex then flatex.main(in file, out file)
import os
import re
import sys
de... | 31.2 | 106 | 0.641026 |
6fe3cc82a26ac5744b2544116ad6a32d14b35afa | 30 | py | Python | sigal/plugins/encrypt/__init__.py | fidergo-stephane-gourichon/sigal | b1f2e947700e618425e170e8758b1fbb82c91acb | [
"MIT"
] | null | null | null | sigal/plugins/encrypt/__init__.py | fidergo-stephane-gourichon/sigal | b1f2e947700e618425e170e8758b1fbb82c91acb | [
"MIT"
] | null | null | null | sigal/plugins/encrypt/__init__.py | fidergo-stephane-gourichon/sigal | b1f2e947700e618425e170e8758b1fbb82c91acb | [
"MIT"
] | null | null | null | from .encrypt import register
| 15 | 29 | 0.833333 |
6fe4383a2b514d6df56ab04d2ab236c4e1f75e15 | 1,600 | py | Python | pull_1m/pull_v2.py | tlh45342/polygon-pull | 1fc59d07d37ea56be5db4856f25ac1d9eca7e810 | [
"Apache-2.0"
] | null | null | null | pull_1m/pull_v2.py | tlh45342/polygon-pull | 1fc59d07d37ea56be5db4856f25ac1d9eca7e810 | [
"Apache-2.0"
] | null | null | null | pull_1m/pull_v2.py | tlh45342/polygon-pull | 1fc59d07d37ea56be5db4856f25ac1d9eca7e810 | [
"Apache-2.0"
] | null | null | null | import datetime
import os
import pandas
from polygon.rest.client import RESTClient
# ----------------------------
daystr = "2021-09-10"
df = pull_day("LC", daystr)
fname = r"M:\data\out.csv"
print("Writing: ", fname)
df.to_csv (fname, index = False, header=True) | 34.042553 | 113 | 0.56 |
6fe47402ae7ebb99a7865e69f0ddb0204cb01079 | 1,595 | py | Python | pwython/__main__.py | Adwaith-Rajesh/Pwython | f734066e251373c7b1634c27617089f9fe0ac79a | [
"Unlicense"
] | null | null | null | pwython/__main__.py | Adwaith-Rajesh/Pwython | f734066e251373c7b1634c27617089f9fe0ac79a | [
"Unlicense"
] | null | null | null | pwython/__main__.py | Adwaith-Rajesh/Pwython | f734066e251373c7b1634c27617089f9fe0ac79a | [
"Unlicense"
] | null | null | null | from random import choice, randint
from re import sub, split, findall
from string import ascii_letters
from subprocess import PIPE, Popen
from sys import argv, executable, stderr
from .responses import pronouns, reactions, remarks
if __name__ == "__main__":
main()
| 29.537037 | 112 | 0.573041 |
6fe49f0a6289892c3834db40f35fd362645dee89 | 6,966 | py | Python | botnet/fabfile.py | MrScytheLULZ/Simple-python-cnc | 23adc7ae553239a0c23da63d6eb97da24054fd93 | [
"MIT"
] | 23 | 2016-05-31T22:42:07.000Z | 2022-03-30T13:37:44.000Z | botnet/fabfile.py | MrScytheLULZ/Simple-python-cnc | 23adc7ae553239a0c23da63d6eb97da24054fd93 | [
"MIT"
] | null | null | null | botnet/fabfile.py | MrScytheLULZ/Simple-python-cnc | 23adc7ae553239a0c23da63d6eb97da24054fd93 | [
"MIT"
] | 18 | 2017-03-15T08:22:33.000Z | 2020-11-14T23:37:06.000Z | import os
from fabric.api import env, run, sudo, execute, local, settings, \
hide, open_shell, parallel, serial, put
from fabric.decorators import hosts
from fabric.contrib.console import confirm
import fabric.colors as fab_col
import paramiko
import getpass
from tabulate import tabulate
file_hosts = "hosts.txt"
... | 28.904564 | 80 | 0.611111 |
6fe5e32a34a80c26893983ec1a48a618f1bae5f3 | 781 | py | Python | shared.py | gattis/magnum-py | 98027eee373296030a118681a449629c57d85426 | [
"Unlicense"
] | null | null | null | shared.py | gattis/magnum-py | 98027eee373296030a118681a449629c57d85426 | [
"Unlicense"
] | null | null | null | shared.py | gattis/magnum-py | 98027eee373296030a118681a449629c57d85426 | [
"Unlicense"
] | null | null | null |
objects = {}
| 27.892857 | 112 | 0.690141 |
6fe5fbc85c69cdd93c1fbe4aaa0233fcbcd08383 | 10,398 | py | Python | appengine/cr-buildbucket/legacy/api_common.py | xinghun61/infra | b5d4783f99461438ca9e6a477535617fadab6ba3 | [
"BSD-3-Clause"
] | 2 | 2021-04-13T21:22:18.000Z | 2021-09-07T02:11:57.000Z | appengine/cr-buildbucket/legacy/api_common.py | xinghun61/infra | b5d4783f99461438ca9e6a477535617fadab6ba3 | [
"BSD-3-Clause"
] | 16 | 2020-09-07T11:55:09.000Z | 2022-03-02T05:47:58.000Z | appengine/cr-buildbucket/legacy/api_common.py | xinghun61/infra | b5d4783f99461438ca9e6a477535617fadab6ba3 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
from google.appengine.ext import ndb
from google.protobuf import json_format
from google.protobuf import struct_pb2
from protorpc import message... | 31.413897 | 79 | 0.726486 |
6fe6702a87b9963548f65391cbbfe3151ca980e8 | 1,606 | py | Python | src/probnum/random_variables/__init__.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | src/probnum/random_variables/__init__.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | 2 | 2020-12-28T19:37:16.000Z | 2020-12-28T19:37:31.000Z | src/probnum/random_variables/__init__.py | admdev8/probnum | 792b6299bac247cf8b1b5056756f0f078855d83a | [
"MIT"
] | null | null | null | """
This package implements random variables. Random variables are the primary in- and
outputs of probabilistic numerical methods. A generic signature of such methods looks
like this:
.. highlight:: python
.. code-block:: python
randvar_out, info = probnum_method(problem, randvar_in, **kwargs)
"""
from ._dirac ... | 30.301887 | 85 | 0.797011 |
6fe83234101021db05245c3a1a51c329dc0916b4 | 6,147 | py | Python | test/acceptance/features/steps/generic_testapp.py | multi-arch/service-binding-operator | a92b303d45a06e8c4396ae80721e1cc5b9019e4a | [
"Apache-2.0"
] | null | null | null | test/acceptance/features/steps/generic_testapp.py | multi-arch/service-binding-operator | a92b303d45a06e8c4396ae80721e1cc5b9019e4a | [
"Apache-2.0"
] | null | null | null | test/acceptance/features/steps/generic_testapp.py | multi-arch/service-binding-operator | a92b303d45a06e8c4396ae80721e1cc5b9019e4a | [
"Apache-2.0"
] | null | null | null | from app import App
import requests
import json
import polling2
from behave import step
from openshift import Openshift
from util import substitute_scenario_id
from string import Template
| 45.198529 | 160 | 0.738572 |
6fe90908102c482823f4162b72dbc1d35bfe2cbb | 8,033 | py | Python | SKY130_PDK/gen_param.py | ALIGN-analoglayout/ALIGN-pdk-sky130 | ffddd848656f09cc03f210d7b44b5ffbd1ab228f | [
"BSD-3-Clause"
] | null | null | null | SKY130_PDK/gen_param.py | ALIGN-analoglayout/ALIGN-pdk-sky130 | ffddd848656f09cc03f210d7b44b5ffbd1ab228f | [
"BSD-3-Clause"
] | null | null | null | SKY130_PDK/gen_param.py | ALIGN-analoglayout/ALIGN-pdk-sky130 | ffddd848656f09cc03f210d7b44b5ffbd1ab228f | [
"BSD-3-Clause"
] | null | null | null | import json
import logging
from math import sqrt, floor, ceil, log10
from copy import deepcopy
logger = logging.getLogger(__name__)
| 45.642045 | 142 | 0.563675 |
6fe94897b6016b8d63c8281d624fe928a95dab1f | 1,804 | py | Python | forcephot/throttles.py | lukeshingles/atlasserver | 87c8e437891a1516ac1fadb84d1d9b796dc5a367 | [
"MIT"
] | 5 | 2020-11-06T11:55:07.000Z | 2021-09-28T22:27:28.000Z | forcephot/throttles.py | lukeshingles/atlasserver | 87c8e437891a1516ac1fadb84d1d9b796dc5a367 | [
"MIT"
] | 21 | 2020-11-03T13:26:30.000Z | 2022-02-18T10:50:52.000Z | forcephot/throttles.py | lukeshingles/atlasserver | 87c8e437891a1516ac1fadb84d1d9b796dc5a367 | [
"MIT"
] | null | null | null | from rest_framework.throttling import SimpleRateThrottle
| 34.037736 | 77 | 0.644678 |
6fea6ea2847af9fb33f26ea132b770aa2ffca311 | 9,206 | py | Python | dot_vim/plugged/ultisnips/test/test_SnippetOptions.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | 10 | 2020-07-21T21:59:54.000Z | 2021-07-19T11:01:47.000Z | dot_vim/plugged/ultisnips/test/test_SnippetOptions.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | null | null | null | dot_vim/plugged/ultisnips/test/test_SnippetOptions.py | gabefgonc/san-francisco-rice-dotfiles | 60ff3539f34ecfff6d7bce895497e2a3805910d4 | [
"MIT"
] | 1 | 2021-01-30T18:17:01.000Z | 2021-01-30T18:17:01.000Z | # encoding: utf-8
from test.vim_test_case import VimTestCase as _VimTest
from test.constant import *
from test.util import running_on_windows
# Tests for Bug #691575
| 25.360882 | 86 | 0.647078 |
6fef2e1b0042f7afa10afa7bd70caee5d7662859 | 3,119 | py | Python | Solver.py | kazemisoroush/JCL | a752e8b445e270dab7597d96956c2c52d53665dc | [
"MIT"
] | null | null | null | Solver.py | kazemisoroush/JCL | a752e8b445e270dab7597d96956c2c52d53665dc | [
"MIT"
] | null | null | null | Solver.py | kazemisoroush/JCL | a752e8b445e270dab7597d96956c2c52d53665dc | [
"MIT"
] | null | null | null | from scipy.optimize import minimize
| 29.149533 | 113 | 0.588971 |
6ff10fab31eb05859eb44845cd805cd024038463 | 9,444 | py | Python | scope/device/spectra.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | null | null | null | scope/device/spectra.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | null | null | null | scope/device/spectra.py | drew-sinha/rpc-scope | 268864097b5b7d123a842f216adc446ec6b32d01 | [
"MIT"
] | null | null | null | # This code is licensed under the MIT License (see LICENSE file for details)
import threading
import time
from ..util import smart_serial
from ..util import property_device
from ..util import state_stack
from ..config import scope_configuration
from . import iotool
LAMP_DAC_COMMANDS = {
'uv': _make_dac_bytes(0x1... | 42.927273 | 159 | 0.66529 |
6ff1787c0118af1f7695392c705c973f44490257 | 352 | py | Python | src/rics/utility/perf/__init__.py | rsundqvist/rics | c67ff6703facb3170535dcf173d7e55734cedbc6 | [
"MIT"
] | 1 | 2022-02-24T22:12:13.000Z | 2022-02-24T22:12:13.000Z | src/rics/utility/perf/__init__.py | rsundqvist/rics | c67ff6703facb3170535dcf173d7e55734cedbc6 | [
"MIT"
] | 26 | 2022-02-24T21:08:51.000Z | 2022-03-19T19:55:26.000Z | src/rics/utility/perf/__init__.py | rsundqvist/rics | c67ff6703facb3170535dcf173d7e55734cedbc6 | [
"MIT"
] | null | null | null | """Performance testing utility."""
from ._format_perf_counter import format_perf_counter
from ._multi_case_timer import MultiCaseTimer
from ._util import plot_run, to_dataframe
from ._wrappers import run_multivariate_test
__all__ = [
"MultiCaseTimer",
"run_multivariate_test",
"format_perf_counter",
"p... | 23.466667 | 53 | 0.769886 |
6ff20bebb27acf09aac86317bb08657cf322d1a8 | 1,951 | py | Python | LinkPrediction/pruning.py | x-zho14/Unified-LTH-GNN | edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55 | [
"MIT"
] | 29 | 2021-02-17T02:46:54.000Z | 2022-03-18T02:09:03.000Z | LinkPrediction/pruning.py | x-zho14/Unified-LTH-GNN | edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55 | [
"MIT"
] | 1 | 2021-09-03T13:30:50.000Z | 2021-09-03T13:30:50.000Z | LinkPrediction/pruning.py | x-zho14/Unified-LTH-GNN | edbb2f9aaa7cb363424dcfcb2ce198cfb66f3d55 | [
"MIT"
] | 10 | 2021-04-01T16:27:03.000Z | 2022-03-07T09:20:38.000Z | import numpy as np
import torch
from sklearn.metrics import roc_auc_score
from sklearn.metrics import average_precision_score
def get_roc_score(edges_pos, edges_neg, embeddings, adj_sparse):
"from https://github.com/tkipf/gae"
score_matrix = np.dot(embeddings, embeddings.T)
# Store positive edg... | 34.839286 | 104 | 0.672476 |
6ff236eea364203b4294e15e6410629f2aeb3886 | 3,143 | py | Python | imap_wrapper.py | tbrownaw/rss-imap | 41d930d778017a9d60feed1688f9f2c7a94b94a6 | [
"MIT"
] | 2 | 2016-09-28T19:44:53.000Z | 2021-09-17T11:36:24.000Z | imap_wrapper.py | tbrownaw/rss-imap | 41d930d778017a9d60feed1688f9f2c7a94b94a6 | [
"MIT"
] | null | null | null | imap_wrapper.py | tbrownaw/rss-imap | 41d930d778017a9d60feed1688f9f2c7a94b94a6 | [
"MIT"
] | null | null | null | import email
import logging
import re
from imapclient import IMAPClient
| 34.538462 | 81 | 0.610563 |
6ff24a30aea978a6baf63da8c2c0d8819e5f801c | 19 | py | Python | beeline/version.py | noam-stein/beeline-python | a5ae7b30d9abebc681524f1087c404fb2e2b915f | [
"Apache-2.0"
] | null | null | null | beeline/version.py | noam-stein/beeline-python | a5ae7b30d9abebc681524f1087c404fb2e2b915f | [
"Apache-2.0"
] | null | null | null | beeline/version.py | noam-stein/beeline-python | a5ae7b30d9abebc681524f1087c404fb2e2b915f | [
"Apache-2.0"
] | null | null | null | VERSION = '2.11.2'
| 9.5 | 18 | 0.578947 |
6ff5a9c769828d3ebb1466ef2f609d93dfafa30f | 2,527 | py | Python | genie/seg.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | null | null | null | genie/seg.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | null | null | null | genie/seg.py | karawoo/Genie | d39451655ec3632df6002c1d73b17dacba2a8720 | [
"MIT"
] | 1 | 2022-01-20T16:33:19.000Z | 2022-01-20T16:33:19.000Z | import logging
import os
import pandas as pd
from .example_filetype_format import FileTypeFormat
from . import process_functions
logger = logging.getLogger(__name__)
| 40.111111 | 143 | 0.61852 |
6ff60de2cd7ad626ba0327a1b10d9c7e29a27101 | 3,150 | py | Python | serve/api/predict.py | HalleyYoung/musicautobot | 075afba70a57ebacfcd8d2bf9dc178a93c05a116 | [
"MIT"
] | 402 | 2019-07-31T00:37:10.000Z | 2022-03-27T22:21:29.000Z | serve/api/predict.py | HalleyYoung/musicautobot | 075afba70a57ebacfcd8d2bf9dc178a93c05a116 | [
"MIT"
] | 26 | 2019-08-20T13:44:30.000Z | 2022-01-27T10:42:28.000Z | serve/api/predict.py | HalleyYoung/musicautobot | 075afba70a57ebacfcd8d2bf9dc178a93c05a116 | [
"MIT"
] | 81 | 2019-08-14T06:55:55.000Z | 2022-03-19T09:49:15.000Z | import sys
from . import app
sys.path.append(str(app.config['LIB_PATH']))
from musicautobot.music_transformer import *
from musicautobot.config import *
from flask import Response, send_from_directory, send_file, request, jsonify
from .save import to_s3
import torch
import traceback
torch.set_num_threads(4)
data = ... | 35 | 113 | 0.672381 |
6ff6a8b26ae79b9bbc49d8449424fa04eace814f | 1,086 | py | Python | tests/test_user.py | meisnate12/trakt.py | 37da6f64a4f82c6600a61e388458190590f86f29 | [
"MIT"
] | 147 | 2015-01-07T11:27:26.000Z | 2022-02-21T19:57:44.000Z | tests/test_user.py | meisnate12/trakt.py | 37da6f64a4f82c6600a61e388458190590f86f29 | [
"MIT"
] | 90 | 2015-01-11T14:38:22.000Z | 2021-10-03T12:18:13.000Z | tests/test_user.py | meisnate12/trakt.py | 37da6f64a4f82c6600a61e388458190590f86f29 | [
"MIT"
] | 61 | 2015-01-09T12:32:09.000Z | 2022-02-03T00:50:36.000Z | from __future__ import absolute_import, division, print_function
from tests.core import mock
from trakt import Trakt
from httmock import HTTMock
import pytest
| 22.163265 | 64 | 0.601289 |
6ff6e195cda0b39ff8fca0cbb3168fe50f6be0ec | 12,983 | py | Python | main.py | mohamed-seyam/Image-Mixer- | f2a2c3d5808e1c8485c851f3a27cbed7249ad073 | [
"MIT"
] | null | null | null | main.py | mohamed-seyam/Image-Mixer- | f2a2c3d5808e1c8485c851f3a27cbed7249ad073 | [
"MIT"
] | null | null | null | main.py | mohamed-seyam/Image-Mixer- | f2a2c3d5808e1c8485c851f3a27cbed7249ad073 | [
"MIT"
] | null | null | null | import sys
import PyQt5.QtWidgets as qtw
import PyQt5.QtCore as qtc
from Image import Image
from main_layout import Ui_MainWindow
import logging
import os
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
formatter = logging.Formatter('%(levelname)s:%(name)s:%(asctime)s - %(message)s')
file_handler ... | 47.907749 | 303 | 0.632828 |
6ff8202663f6030215b86bce2a40c9dd2290ed53 | 1,029 | py | Python | main_project/tienda_lissa_app/forms.py | NahuelA/TiendaLissa_Django | 72599e7cb20e1ebe346b484836e2200b69389281 | [
"MIT"
] | null | null | null | main_project/tienda_lissa_app/forms.py | NahuelA/TiendaLissa_Django | 72599e7cb20e1ebe346b484836e2200b69389281 | [
"MIT"
] | null | null | null | main_project/tienda_lissa_app/forms.py | NahuelA/TiendaLissa_Django | 72599e7cb20e1ebe346b484836e2200b69389281 | [
"MIT"
] | null | null | null | from django import forms
# Form for create sales | 42.875 | 85 | 0.543246 |
6ff8a222216fa1ac81945884dc109adff1cb0094 | 2,159 | py | Python | src/vargenpath/pipeline.py | AldisiRana/VarGenPath | ff7285f5165855f8427de9ec30ade2a8fb1f0ca3 | [
"MIT"
] | null | null | null | src/vargenpath/pipeline.py | AldisiRana/VarGenPath | ff7285f5165855f8427de9ec30ade2a8fb1f0ca3 | [
"MIT"
] | 3 | 2019-11-11T12:34:03.000Z | 2019-11-13T13:37:40.000Z | src/vargenpath/pipeline.py | AldisiRana/VarGenPath | ff7285f5165855f8427de9ec30ade2a8fb1f0ca3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Pipeline for VarGenPath"""
from typing import Optional
from .constants import LINKSET_PATH, FILE_TYPES
from .utils import (
get_cytoscape_connection, get_associated_genes, var_genes_network, extend_vargen_network, save_session, save_image,
save_network
)
def get_vargenpath_network... | 39.981481 | 119 | 0.727652 |
6ff8f022a6fe57527d82ea4903beacbf84f7acb1 | 1,485 | py | Python | ott/examples/fairness/models.py | MUCDK/ott | f6c79d964d275aed12a7f9b66aa2b118423dff71 | [
"Apache-2.0"
] | 232 | 2021-01-18T15:05:20.000Z | 2022-03-26T01:22:01.000Z | ott/examples/fairness/models.py | RamonYeung/ott | 800de80d6b2a0faf4fc7977b0673674468c70e3f | [
"Apache-2.0"
] | 20 | 2021-02-25T04:38:34.000Z | 2022-01-24T16:21:25.000Z | ott/examples/fairness/models.py | RamonYeung/ott | 800de80d6b2a0faf4fc7977b0673674468c70e3f | [
"Apache-2.0"
] | 29 | 2021-02-25T04:40:25.000Z | 2022-01-29T18:31:17.000Z | # coding=utf-8
# Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 27.5 | 74 | 0.676768 |
6ff9bf08b760f07cf353cf2bb85e608d4d99b8bc | 699 | py | Python | src/create_hbjsons.py | karim-daw/pollination-app | ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8 | [
"MIT"
] | null | null | null | src/create_hbjsons.py | karim-daw/pollination-app | ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8 | [
"MIT"
] | null | null | null | src/create_hbjsons.py | karim-daw/pollination-app | ed87f3dbc2d93d25568707d6a6ad0ee35c5109b8 | [
"MIT"
] | null | null | null | from models import shoe_box
# run
if __name__ == "__main__":
# create models
createHBjsons()
| 19.416667 | 76 | 0.53505 |
6ffae9b25573e5f7348c89e03b62b498cbca2ea9 | 184 | py | Python | reikna/core/__init__.py | ringw/reikna | 0f27f86e35a9f06405de2d99580f766a1b504562 | [
"MIT"
] | 122 | 2015-05-01T12:42:34.000Z | 2021-09-30T22:47:59.000Z | lib/python/reikna-0.7.5/reikna/core/__init__.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 42 | 2015-05-04T16:55:47.000Z | 2021-09-18T04:53:34.000Z | lib/python/reikna-0.7.5/reikna/core/__init__.py | voxie-viewer/voxie | d2b5e6760519782e9ef2e51f5322a3baa0cb1198 | [
"MIT"
] | 14 | 2015-05-01T19:22:52.000Z | 2021-09-30T22:48:03.000Z | from reikna.core.signature import Type, Annotation, Parameter, Signature
from reikna.core.computation import Computation
from reikna.core.transformation import Transformation, Indices
| 46 | 72 | 0.858696 |
6ffbf82ddb4fd7b31865d27adb16c802d9e91417 | 1,234 | py | Python | docs/setup/mysite/models/__init__.py | pauleveritt/pyramid_sqltraversal | 1853b3b30fc9bdd453ce5c74b6a67668b21c5321 | [
"MIT"
] | 6 | 2015-10-21T20:39:42.000Z | 2016-09-03T15:37:28.000Z | docs/setup/mysite/models/__init__.py | pauleveritt/pyramid_sqltraversal | 1853b3b30fc9bdd453ce5c74b6a67668b21c5321 | [
"MIT"
] | 1 | 2015-11-30T19:18:29.000Z | 2015-12-01T08:23:08.000Z | docs/setup/mysite/models/__init__.py | pauleveritt/pyramid_sqltraversal | 1853b3b30fc9bdd453ce5c74b6a67668b21c5321 | [
"MIT"
] | null | null | null | from sqlalchemy import engine_from_config
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy.schema import MetaData
import zope.sqlalchemy
from .node import Node
NAMING_CONVENTION = {
"ix": 'ix_%(column_0_label)s',
"uq": "uq_%(table_name)s_%(column_0... | 27.422222 | 72 | 0.723663 |
6ffc37d2645887ce4dd7940f03465b3689f39751 | 458 | py | Python | nngen/onnx/shape.py | RyusukeYamano/nngen | 9ed1f7fb83908794aa94d70287d89545d45fe875 | [
"Apache-2.0"
] | 207 | 2019-11-12T11:42:25.000Z | 2022-03-20T20:32:17.000Z | nngen/onnx/shape.py | RyusukeYamano/nngen | 9ed1f7fb83908794aa94d70287d89545d45fe875 | [
"Apache-2.0"
] | 31 | 2019-11-25T07:33:30.000Z | 2022-03-17T12:34:34.000Z | nngen/onnx/shape.py | RyusukeYamano/nngen | 9ed1f7fb83908794aa94d70287d89545d45fe875 | [
"Apache-2.0"
] | 29 | 2019-11-07T02:25:48.000Z | 2022-03-12T16:22:57.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
| 28.625 | 85 | 0.713974 |
6fff99cc890883af4358d405c2662b44fb123105 | 17,072 | py | Python | nales/NDS/interfaces.py | Jojain/Nales | dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9 | [
"MIT"
] | 5 | 2022-03-07T23:21:42.000Z | 2022-03-29T17:40:36.000Z | nales/NDS/interfaces.py | Jojain/Nales | dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9 | [
"MIT"
] | 3 | 2022-03-29T17:33:27.000Z | 2022-03-29T17:40:10.000Z | nales/NDS/interfaces.py | Jojain/Nales | dc1073967ba1a8c5bbc226dbfe7b2fb8afd44bd9 | [
"MIT"
] | null | null | null | import typing
from typing import (
Any,
Callable,
Dict,
Iterable,
List,
Literal,
Optional,
Set,
Tuple,
Union,
)
from ncadquery import Workplane
from OCP.Quantity import Quantity_NameOfColor
from OCP.TCollection import TCollection_ExtendedString
from OCP.TDataStd import TDataStd_... | 30.594982 | 126 | 0.606666 |
b501613aec75d3cca56c1a86620e64aefbb4d375 | 5,134 | py | Python | plane_1.0/plane/hero.py | misaka46/Aircraft-war | f83cdc5237c01889d109c32b1e27aaaf2c118b94 | [
"MIT"
] | null | null | null | plane_1.0/plane/hero.py | misaka46/Aircraft-war | f83cdc5237c01889d109c32b1e27aaaf2c118b94 | [
"MIT"
] | null | null | null | plane_1.0/plane/hero.py | misaka46/Aircraft-war | f83cdc5237c01889d109c32b1e27aaaf2c118b94 | [
"MIT"
] | null | null | null | from flyingObject import FlyingObject
from bullet import Bullet
import random
| 31.304878 | 110 | 0.494351 |
b5017203cb6c1ccd2ec216b379d968a6634173ea | 21,118 | py | Python | chip9-emulator/emulator.py | Quphoria/CHIP9 | 1ead51ea717e30e927f9b2b811fadd0b0571d354 | [
"MIT"
] | 1 | 2021-12-12T21:52:27.000Z | 2021-12-12T21:52:27.000Z | chip9-emulator/emulator.py | Quphoria/CHIP9 | 1ead51ea717e30e927f9b2b811fadd0b0571d354 | [
"MIT"
] | null | null | null | chip9-emulator/emulator.py | Quphoria/CHIP9 | 1ead51ea717e30e927f9b2b811fadd0b0571d354 | [
"MIT"
] | null | null | null | import sys
import pygame as pg
import numpy as np
import random
import time
pic = np.zeros(shape=(128,64))
width = 128
height = 64
refresh_rate = 60
interval = 1 / refresh_rate
bootrom_file = "bootrom0"
rom_file = "rom"
# rom_file = "hello_world"
debug = False
pg.display.init()
display = pg.display.set_mode((width*4... | 23.997727 | 134 | 0.516479 |
b501d27bf56c98bbd366b6f8bf399a623a2e87f1 | 1,423 | py | Python | Burp/lib/data.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 1,628 | 2017-08-07T17:27:17.000Z | 2022-03-28T18:43:34.000Z | Burp/lib/data.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 48 | 2017-08-08T11:56:48.000Z | 2021-04-08T18:01:31.000Z | Burp/lib/data.py | wisdark/HUNT | 9b128913f62e01ed9e82db1e1eee79e4b88385fb | [
"Apache-2.0"
] | 328 | 2017-08-08T05:12:48.000Z | 2022-03-31T15:15:20.000Z | from __future__ import print_function
import json
import os
| 26.849057 | 99 | 0.595924 |
b502452c7fbc49bc12b35532d369cf96f4db27dd | 851 | py | Python | twisted/test/stdio_test_write.py | engdan77/otis_app | 6c6ea8da47d580e91a794663338572cf2a7368b6 | [
"MIT"
] | null | null | null | twisted/test/stdio_test_write.py | engdan77/otis_app | 6c6ea8da47d580e91a794663338572cf2a7368b6 | [
"MIT"
] | 1 | 2022-03-04T17:40:22.000Z | 2022-03-04T17:40:22.000Z | twisted/test/stdio_test_write.py | cpdean/twisted | e502df17e0704de42dc38b6e171ebbc7daf52c8a | [
"Unlicense",
"MIT"
] | null | null | null | # -*- test-case-name: twisted.test.test_stdio.StandardInputOutputTests.test_write -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTests.test_write} to test that
ITransport.write() works for process tr... | 25.787879 | 85 | 0.72738 |
b504bcac5479aa4c47a0573d3779bba648bf5ec4 | 4,133 | py | Python | pyweb/overload.py | DrDaveD/wlcg-wpad | 9947173b770c385376e02763b1462911b0af6d7c | [
"BSD-3-Clause"
] | null | null | null | pyweb/overload.py | DrDaveD/wlcg-wpad | 9947173b770c385376e02763b1462911b0af6d7c | [
"BSD-3-Clause"
] | 2 | 2016-06-24T17:24:19.000Z | 2020-10-23T12:33:03.000Z | pyweb/overload.py | DrDaveD/wlcg-wpad | 9947173b770c385376e02763b1462911b0af6d7c | [
"BSD-3-Clause"
] | 1 | 2020-09-07T11:21:53.000Z | 2020-09-07T11:21:53.000Z | # calculate the load on each org
import threading
# cannot use from wpad_dispatch here, have to import whole module,
# because of circular dependency
import wpad_dispatch
from wpad_utils import *
from wlcg_wpad import getiporg
orgcleanminutes = 5
orgcleantime = 0
# Minute records keep track of the number of requ... | 37.917431 | 127 | 0.605129 |
b50625d78235e9ce3f4c2da0638ea06afe91b30f | 865 | py | Python | test/bulk_insert.py | jfcarter2358/Ceres | cdfd92f9b1a71345a0b634722bc6c2be7f78cd91 | [
"MIT"
] | null | null | null | test/bulk_insert.py | jfcarter2358/Ceres | cdfd92f9b1a71345a0b634722bc6c2be7f78cd91 | [
"MIT"
] | null | null | null | test/bulk_insert.py | jfcarter2358/Ceres | cdfd92f9b1a71345a0b634722bc6c2be7f78cd91 | [
"MIT"
] | null | null | null | import requests
from datetime import datetime
import time
headers = {
'Content-Type': 'application/json'
}
with open('test/logs.txt', 'r') as f:
logs = f.read().split('\n')
levels = ['INFO', 'WARN', 'DEBUG', 'ERROR', 'TRACE']
messages = []
for i in range(0, len(logs)):
if i % 100 == 0:
print('{... | 22.763158 | 81 | 0.528324 |
b50682e6cffc6dbeabe21d64aa2a3d1319871a0b | 1,282 | py | Python | tests/test_jsons.py | jrinks/greater-chicago-food-despository | 67255aec807a1bb026d8ae2172b2bf353bb2cc46 | [
"MIT"
] | null | null | null | tests/test_jsons.py | jrinks/greater-chicago-food-despository | 67255aec807a1bb026d8ae2172b2bf353bb2cc46 | [
"MIT"
] | null | null | null | tests/test_jsons.py | jrinks/greater-chicago-food-despository | 67255aec807a1bb026d8ae2172b2bf353bb2cc46 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.path.abspath(''))
# Raises linting error because not at top of file
# Not sure how to resolve this with the pathing
from src import uploadJson # noqa: E402
import src.config as config # noqa: E402
# Taking out of commission until new geojson format requested developed
# def te... | 28.488889 | 71 | 0.670047 |
b5068529d2a14e7fea802599be5ae03e8acda2e9 | 12,939 | py | Python | tetris.py | AkshayRaul/Python-Scripts | 52f1f9d329634830507fa7eeb885cb8d9c8afd88 | [
"MIT"
] | null | null | null | tetris.py | AkshayRaul/Python-Scripts | 52f1f9d329634830507fa7eeb885cb8d9c8afd88 | [
"MIT"
] | null | null | null | tetris.py | AkshayRaul/Python-Scripts | 52f1f9d329634830507fa7eeb885cb8d9c8afd88 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""
Code is personal property of the owner.Rights reserved by the user only.
Codes on https://github.com/kt97679/tetris
Attempt to spread the open source knowledge :)
"""
import sys
import select
import tty
import termios
import random
import os
import time
import fcntl
if (sys.hexversion >> 16) ... | 28.626106 | 102 | 0.558312 |
b508d14c18fba6ec3f26029dc4d010c75e52591f | 11,471 | py | Python | cucm.py | PresidioCode/cucm-exporter | 8771042afcb2f007477f7b47c1516092c621da2e | [
"MIT"
] | 10 | 2020-10-06T01:12:41.000Z | 2022-02-14T03:03:25.000Z | cucm.py | bradh11/cucm-exporter | 8771042afcb2f007477f7b47c1516092c621da2e | [
"MIT"
] | 1 | 2020-10-14T13:47:36.000Z | 2020-10-17T03:06:25.000Z | cucm.py | PresidioCode/cucm-exporter | 8771042afcb2f007477f7b47c1516092c621da2e | [
"MIT"
] | 4 | 2020-10-13T16:19:46.000Z | 2022-03-08T19:29:34.000Z | import time
import json
def export_users(ucm_axl):
"""
retrieve users from ucm
"""
try:
user_list = ucm_axl.get_users(
tagfilter={
"userid": "",
"firstName": "",
"lastName": "",
"directoryUri": "",
"tel... | 40.677305 | 154 | 0.555488 |
b50af19fbfd3dbcdc0b721d01520bacb09232597 | 256 | py | Python | web.backend/config.py | Forevka/YTDownloader | fff92bfc13b70843472ec6cce13ed6609d89433a | [
"MIT"
] | 1 | 2020-10-27T05:31:51.000Z | 2020-10-27T05:31:51.000Z | web.backend/config.py | Forevka/YTDownloader | fff92bfc13b70843472ec6cce13ed6609d89433a | [
"MIT"
] | null | null | null | web.backend/config.py | Forevka/YTDownloader | fff92bfc13b70843472ec6cce13ed6609d89433a | [
"MIT"
] | null | null | null | host = "localhost"
port = 9999
dboptions = {
"host": "194.67.198.163",
"user": "postgres",
"password": "werdwerd2012",
"database": "zno_bot",
'migrate': True
}
API_PATH = '/api/'
API_VERSION = 'v1'
API_URL = API_PATH + API_VERSION
| 14.222222 | 32 | 0.597656 |
b50d91bfd6f0c80409d4587612832b09f44bae48 | 829 | py | Python | ml_train.py | ElvinOuyang/LearningFlask | eb94355c971897dc06943b8cfdbcdd0f0da44f51 | [
"MIT"
] | null | null | null | ml_train.py | ElvinOuyang/LearningFlask | eb94355c971897dc06943b8cfdbcdd0f0da44f51 | [
"MIT"
] | null | null | null | ml_train.py | ElvinOuyang/LearningFlask | eb94355c971897dc06943b8cfdbcdd0f0da44f51 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
from sklearn.datasets import load_iris
from sklearn.naive_bayes import GaussianNB
import pickle
def train_iris_nb():
"""Train a GaussianNB model on iris dataset."""
X, y_train = load_iris(return_X_y=True, as_frame=True)
colnames = X.columns
X_train = X.values
... | 25.90625 | 58 | 0.683957 |
b50dc3fa0e49a34e31b885324c803f179d4c5bd2 | 746 | py | Python | UFOscrapy/UFOscrapy/pipelines.py | anaheino/Ufo-sightings-map | 64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc | [
"MIT"
] | null | null | null | UFOscrapy/UFOscrapy/pipelines.py | anaheino/Ufo-sightings-map | 64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc | [
"MIT"
] | null | null | null | UFOscrapy/UFOscrapy/pipelines.py | anaheino/Ufo-sightings-map | 64af02093f97737cbbdfd8af9e1aeb4d8aa8fcdc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .parserules import parseAll
| 22.606061 | 66 | 0.430295 |
b50e4ff7686cf0dbd4629ae146083491535bb7be | 1,028 | py | Python | precompressed/context_processors.py | EightMedia/django-precompressed | 1b135b4784a96948237f93bf0648d3ab747fcfb3 | [
"MIT"
] | 4 | 2015-05-05T06:58:35.000Z | 2018-10-15T18:53:50.000Z | precompressed/context_processors.py | EightMedia/django-precompressed | 1b135b4784a96948237f93bf0648d3ab747fcfb3 | [
"MIT"
] | 2 | 2015-02-04T10:48:00.000Z | 2020-01-27T15:36:39.000Z | precompressed/context_processors.py | EightMedia/django-precompressed | 1b135b4784a96948237f93bf0648d3ab747fcfb3 | [
"MIT"
] | 1 | 2019-02-20T20:40:04.000Z | 2019-02-20T20:40:04.000Z | # *****************************************************************************
# precompressed/context_processors.py
# *****************************************************************************
"""
A set of request processors that return dictionaries to be merged into a
template context. Each function takes the re... | 30.235294 | 79 | 0.539883 |
b51221f86b651bcc587032cb289ea216ea969861 | 6,612 | py | Python | Code/pytorchFwdModel.py | mChataign/smileCompletion | 1bde2dd9fada2194c79cb3599bc9e9139cde6ee5 | [
"BSD-3-Clause"
] | 4 | 2021-01-06T13:53:39.000Z | 2021-12-16T21:23:13.000Z | Code/pytorchFwdModel.py | mChataign/smileCompletion | 1bde2dd9fada2194c79cb3599bc9e9139cde6ee5 | [
"BSD-3-Clause"
] | null | null | null | Code/pytorchFwdModel.py | mChataign/smileCompletion | 1bde2dd9fada2194c79cb3599bc9e9139cde6ee5 | [
"BSD-3-Clause"
] | 2 | 2021-01-06T20:53:15.000Z | 2021-12-29T08:59:31.000Z | #Import modules
import os
import pandas as pd
import numpy as np
from pandas import DatetimeIndex
import dask
import scipy
import time
import glob
import torch
import torch.nn as nn
from live_plotter import live_plotter
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
from functools impo... | 43.788079 | 141 | 0.57078 |
b5122d95a7d1bf2036d53b90080cc31fd62623ab | 911 | py | Python | quickstart.py | s-samarth/Learning-Tensorflow | a46d8be1a741de5a0f366af83b8534cefcf0b615 | [
"MIT"
] | null | null | null | quickstart.py | s-samarth/Learning-Tensorflow | a46d8be1a741de5a0f366af83b8534cefcf0b615 | [
"MIT"
] | null | null | null | quickstart.py | s-samarth/Learning-Tensorflow | a46d8be1a741de5a0f366af83b8534cefcf0b615 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
from tensorflow import keras
import warnings
warnings.filterwarnings('ignore')
mnist = tf.keras.datasets.mnist
(X_train, y_train), (X_test, y_test) = mnist.load_data()
X_train, X_test = X_train / 255.0, X_test / 255.0
X_train.shape = (60000, 28, 28)
model = tf.keras.Sequen... | 27.606061 | 70 | 0.728869 |
b512b2de6527126b947a320b79c117609580ec75 | 114 | py | Python | pyquil/__init__.py | ftripier/pyquil | 573d5ae64bbc594917ad46885fca0d8f5f3fe0e9 | [
"Apache-2.0"
] | null | null | null | pyquil/__init__.py | ftripier/pyquil | 573d5ae64bbc594917ad46885fca0d8f5f3fe0e9 | [
"Apache-2.0"
] | null | null | null | pyquil/__init__.py | ftripier/pyquil | 573d5ae64bbc594917ad46885fca0d8f5f3fe0e9 | [
"Apache-2.0"
] | null | null | null | __version__ = "2.1.0.dev0"
from pyquil.quil import Program
from pyquil.api import list_quantum_computers, get_qc
| 22.8 | 53 | 0.807018 |
b513b3e8cf7e95cf1452eb5dac904886fb0f42d5 | 1,546 | py | Python | equation_solution.py | free-free/Algorithm | 174b6bc7a73f5ec1393149d238fc4496b2baedaa | [
"Apache-2.0"
] | 7 | 2015-11-15T05:34:33.000Z | 2021-04-29T00:39:08.000Z | equation_solution.py | free-free/Algorithm | 174b6bc7a73f5ec1393149d238fc4496b2baedaa | [
"Apache-2.0"
] | null | null | null | equation_solution.py | free-free/Algorithm | 174b6bc7a73f5ec1393149d238fc4496b2baedaa | [
"Apache-2.0"
] | null | null | null | #!/bin/env python3.5
import math
# binary seperation
# tan line method
if __name__ == '__main__':
print(binary_seperation(test_func,[0,1] ))
print(tanline(test_func, df_test_func, [0,1]))
| 20.342105 | 57 | 0.467012 |
b5141515336b431125ee2d8bfb2d41e31fd83729 | 3,428 | py | Python | test/test_sparql/test_sparql_parser.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 3 | 2015-05-15T02:18:21.000Z | 2019-02-12T03:14:46.000Z | test/test_sparql/test_sparql_parser.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 1 | 2015-11-05T15:18:36.000Z | 2015-11-05T16:44:04.000Z | test/test_sparql/test_sparql_parser.py | trishnaguha/rdfextras | c66b30de4a3b9cb67090add06cb8a9cf05d2c545 | [
"BSD-3-Clause"
] | 4 | 2015-11-05T07:24:41.000Z | 2022-01-18T07:54:43.000Z | import unittest
from rdflib import Graph
tests = [
("basic",
"""\
SELECT ?name
WHERE { ?a <http://xmlns.com/foaf/0.1/name> ?name }"""),
("simple_prefix",
"""\
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name
WHERE { ?a foaf:name ?name }"""),
("base_statement",
"""\
... | 25.774436 | 66 | 0.540548 |
b514465b893f2b24e5e74f092847f939b1d7ff56 | 1,228 | py | Python | day1.py | derek-elliott/aoc2018 | b7fed374e94665cb70eff413297b2e3865f835c4 | [
"MIT"
] | null | null | null | day1.py | derek-elliott/aoc2018 | b7fed374e94665cb70eff413297b2e3865f835c4 | [
"MIT"
] | null | null | null | day1.py | derek-elliott/aoc2018 | b7fed374e94665cb70eff413297b2e3865f835c4 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
print(f'Part 1: {part_one()}\nPart 2: {part_two()}')
| 25.583333 | 56 | 0.566775 |
b5155fe82e40d2b63e9f83d54603790af7163224 | 5,122 | py | Python | file_sync_tool/transfer/process.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/transfer/process.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | file_sync_tool/transfer/process.py | jackd248/file-sync-tool | 68fbca562f232c2bc064f546d9eade20a2ae456f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: future_fstrings -*-
from db_sync_tool.utility import mode, system, output, helper
from db_sync_tool.remote import client as remote_client
from file_sync_tool.transfer import utility
def transfer_files():
"""
Transfering configured files between clients
:return:
""... | 44.53913 | 117 | 0.639594 |
82ecef2ff3628afa85b6185c93f911d25a8014e1 | 5,635 | py | Python | src/main/python/Training+Data+Analysis.py | sully90/dp-search-service | efc6a94dad1c5b3fc898da9ced1606aa345c7ecd | [
"MIT"
] | null | null | null | src/main/python/Training+Data+Analysis.py | sully90/dp-search-service | efc6a94dad1c5b3fc898da9ced1606aa345c7ecd | [
"MIT"
] | null | null | null | src/main/python/Training+Data+Analysis.py | sully90/dp-search-service | efc6a94dad1c5b3fc898da9ced1606aa345c7ecd | [
"MIT"
] | null | null | null |
# coding: utf-8
# # Training Set Analysis
# The purpose of this notebook is to compute the kernel density estimate of the PDF between the judgement and each feature in a training set, in order to estimate how each feature is performing.
#
# # TODO
# Modify features to use custom function score queries, and use ML to... | 31.836158 | 208 | 0.525998 |
82ef5f165b2867c26c9995bbb6a7009f9e7374ac | 3,623 | py | Python | src/utility_lib/collection_utilities/collection_utilities.py | DonalChilde/utility_lib | 9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545 | [
"MIT"
] | null | null | null | src/utility_lib/collection_utilities/collection_utilities.py | DonalChilde/utility_lib | 9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545 | [
"MIT"
] | null | null | null | src/utility_lib/collection_utilities/collection_utilities.py | DonalChilde/utility_lib | 9cf1cc142e5fcbf99f9f2e9bf6099520cc3eb545 | [
"MIT"
] | null | null | null | from operator import attrgetter, itemgetter
from typing import (
Sequence,
Any,
Tuple,
Union,
List,
Iterable,
Dict,
Callable,
NamedTuple,
)
SortSpec = NamedTuple("SortSpec", [("sort_key", Union[str, int]), ("reversed", bool)])
def index_list_of_objects(
data: Iterable[Uni... | 27.44697 | 95 | 0.629865 |
82efe2ac2a9247e0f62ea4de8994ddbcc198a68c | 368 | py | Python | manage_it/catalog/admin.py | ShangShungInstitute/django-manage-it | 13cb23b57ce3577db7f69250741bcbfe82b69a57 | [
"MIT",
"Unlicense"
] | 1 | 2015-01-20T14:34:32.000Z | 2015-01-20T14:34:32.000Z | manage_it/catalog/admin.py | ShangShungInstitute/django-manage-it | 13cb23b57ce3577db7f69250741bcbfe82b69a57 | [
"MIT",
"Unlicense"
] | null | null | null | manage_it/catalog/admin.py | ShangShungInstitute/django-manage-it | 13cb23b57ce3577db7f69250741bcbfe82b69a57 | [
"MIT",
"Unlicense"
] | null | null | null | from django.contrib import admin
from models import Location, ItemTemplate, Log, Inventory, Supplier
admin.site.register(Location)
admin.site.register(ItemTemplate, ItemTemplateAdmin)
admin.site.register(Log)
admin.site.register(Inventory)
admin.site.register(Supplier)
| 24.533333 | 67 | 0.807065 |
82f077676382d093577f0c067da14ea95e4000cd | 1,557 | py | Python | core_get/actions/module.py | core-get/core-get | 8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7 | [
"MIT"
] | null | null | null | core_get/actions/module.py | core-get/core-get | 8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7 | [
"MIT"
] | null | null | null | core_get/actions/module.py | core-get/core-get | 8fb960e4e51d0d46b5e3b2f4832eb4a39e0e60f7 | [
"MIT"
] | null | null | null | from typing import Dict, Type
from injector import Module, Binder
from core_get.actions.action import Action
from core_get.actions.init.init import Init
from core_get.actions.init.init_options import InitOptions
from core_get.actions.install.install import Install
from core_get.actions.install.install_options import ... | 39.923077 | 80 | 0.787412 |
82f09047154f2ff625d401ca2b201a78ede23eab | 8,773 | py | Python | venv/Lib/site-packages/direct/particles/ParticleEffect.py | ferris77/pacman | 9d793146189630b4305af0bc7af65ce822b3998f | [
"MIT"
] | null | null | null | venv/Lib/site-packages/direct/particles/ParticleEffect.py | ferris77/pacman | 9d793146189630b4305af0bc7af65ce822b3998f | [
"MIT"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | Lib/site-packages/direct/particles/ParticleEffect.py | fochoao/cpython | 3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9 | [
"bzip2-1.0.6",
"0BSD"
] | 1 | 2021-04-09T00:02:59.000Z | 2021-04-09T00:02:59.000Z |
from panda3d.core import *
# Leave these imports in, they may be used by ptf files.
from panda3d.physics import *
from . import Particles
from . import ForceGroup
from direct.directnotify import DirectNotifyGlobal
| 33.484733 | 94 | 0.596831 |
82f2ce225147eef11b48a4a976040f87c859485c | 7,566 | py | Python | orchestra/contrib/payments/models.py | udm88/django-orchestra | 49c84f13a8f92427b01231615136549fb5be3a78 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/contrib/payments/models.py | ferminhg/django-orchestra | 49c84f13a8f92427b01231615136549fb5be3a78 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/contrib/payments/models.py | ferminhg/django-orchestra | 49c84f13a8f92427b01231615136549fb5be3a78 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from django.core.exceptions import ValidationError
from django.db import models
from django.utils.functional import cached_property
from django.utils.translation import ugettext_lazy as _
from jsonfield import JSONField
from orchestra.models.fields import PrivateFileField
from orchestra.models.queryset import group_by... | 35.85782 | 118 | 0.648163 |
82f6b63b42d651692733eea279e00b78a2b3c076 | 1,264 | py | Python | src/visualisation/draw_map.py | Aluriak/24hducode2016 | 629a3225c5a426d3deb472d67f0e0091904d1547 | [
"Unlicense"
] | null | null | null | src/visualisation/draw_map.py | Aluriak/24hducode2016 | 629a3225c5a426d3deb472d67f0e0091904d1547 | [
"Unlicense"
] | null | null | null | src/visualisation/draw_map.py | Aluriak/24hducode2016 | 629a3225c5a426d3deb472d67f0e0091904d1547 | [
"Unlicense"
] | null | null | null | # -*- coding: utf-8 -*-
##########
# IMPORT #
##########
import plotly.offline as py
import plotly.tools as tls
tls.set_credentials_file(username='ducktypers', api_key='fd81wnx3lh')
########
# MAIN #
########
def draw_map(lon, lat, text, titre='NO TITLE'):
"""
Take 3list as input, and the title of the map... | 25.28 | 90 | 0.476266 |
82f77b388ad6652721586ee5ac9c7649d9fe0b48 | 89,313 | py | Python | config/custom_components/mbapi2020/proto/acp_pb2.py | mhaack/home-assistant-conf | 7cb856bee67906ba066adffe2151f6b50b6b73ce | [
"MIT"
] | 28 | 2019-05-31T12:30:15.000Z | 2022-03-10T18:54:57.000Z | config/custom_components/mbapi2020/proto/acp_pb2.py | mhaack/home-assistant-conf | 7cb856bee67906ba066adffe2151f6b50b6b73ce | [
"MIT"
] | 2 | 2020-04-15T20:02:42.000Z | 2021-03-09T19:45:21.000Z | config/custom_components/mbapi2020/proto/acp_pb2.py | mhaack/home-assistant-conf | 7cb856bee67906ba066adffe2151f6b50b6b73ce | [
"MIT"
] | 2 | 2021-03-31T08:27:19.000Z | 2021-04-30T15:13:24.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: acp.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf im... | 43.631168 | 14,931 | 0.740687 |
82f79bc5bf128b18eacd7d7a60bb82df70b8c973 | 5,632 | py | Python | src/promnesia/sources/reddit.py | seanbreckenridge/promnesia-fork | 92ac664176c8101672cbab90ea6964c360ff287e | [
"MIT"
] | 2 | 2018-06-04T05:59:02.000Z | 2019-08-25T21:45:07.000Z | src/promnesia/sources/reddit.py | seanbreckenridge/promnesia-fork | 92ac664176c8101672cbab90ea6964c360ff287e | [
"MIT"
] | 1 | 2019-07-14T13:23:45.000Z | 2019-07-14T13:23:45.000Z | src/promnesia/sources/reddit.py | seanbreckenridge/promnesia-fork | 92ac664176c8101672cbab90ea6964c360ff287e | [
"MIT"
] | null | null | null | '''
Uses HPI [[https://github.com/karlicoss/HPI/blob/master/doc/MODULES.org#myreddit][reddit]] module
'''
from itertools import chain
from typing import Set, Optional
from ..common import Visit, Loc, extract_urls, Results, logger
# mostly here so we can keep track of how the user
# wants to render markdown
impor... | 32.182857 | 133 | 0.588956 |
82f8c42e4b7f145f7c76d62522e5c2d2fdd59996 | 8,992 | py | Python | puwifi.py | SaicharanKandukuri/logmein | 9946488fb61093bf2394254da056d2ebd290e83a | [
"MIT"
] | 4 | 2021-12-01T12:07:49.000Z | 2022-03-16T15:11:57.000Z | puwifi.py | SaicharanKandukuri/puwifi | 9946488fb61093bf2394254da056d2ebd290e83a | [
"MIT"
] | 10 | 2021-12-01T11:41:04.000Z | 2022-03-16T16:12:36.000Z | puwifi.py | SaicharanKandukuri/logmein | 9946488fb61093bf2394254da056d2ebd290e83a | [
"MIT"
] | 2 | 2021-11-29T16:16:22.000Z | 2021-11-30T05:06:05.000Z | import optparse
import sys
from sys import getsizeof
import logging
from signal import signal, SIGINT
import time
import requests
# MIT License
#
# Copyright (c) 2022 SaicharanKandukuri
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation file... | 36.702041 | 98 | 0.585187 |
82fa552a0171833c0c07fa00ed134b17a1330763 | 2,974 | py | Python | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | 2 | 2017-12-06T00:58:05.000Z | 2020-05-27T21:00:59.000Z | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | null | null | null | sphinxsimulink/diagram/application.py | dekalinowski/sphinx-simulink | f86daf2efdd7b0c84307bfb17c23efff0c72a8a9 | [
"MIT"
] | 2 | 2020-01-24T09:17:11.000Z | 2020-04-02T10:15:02.000Z | """
sphinx-simulink.application
~~~~~~~~~~~~~~~~~~~~~~~
Embed Simulink diagrams on your documentation.
:copyright:
Copyright 2016 by Dennis Edward Kalinowski <dekalinowski@gmail.com>.
:license:
MIT, see LICENSE for details.
"""
import matlab.engine
import os
from sphinx.errors import S... | 23.983871 | 78 | 0.613652 |
82fb854e5de1301c151e67839d828f2c3db87864 | 221 | py | Python | bentoml/pytorch_lightning.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 1 | 2021-06-12T17:04:07.000Z | 2021-06-12T17:04:07.000Z | bentoml/pytorch_lightning.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | 4 | 2021-05-16T08:06:25.000Z | 2021-11-13T08:46:36.000Z | bentoml/pytorch_lightning.py | francoisserra/BentoML | 213e9e9b39e055286f2649c733907df88e6d2503 | [
"Apache-2.0"
] | null | null | null | from ._internal.frameworks.pytorch_lightning import load
from ._internal.frameworks.pytorch_lightning import save
from ._internal.frameworks.pytorch_lightning import load_runner
__all__ = ["load", "load_runner", "save"]
| 36.833333 | 63 | 0.828054 |
82fd258b0956b6fcb923493f7bbd91bb6546c5c0 | 335 | py | Python | bugex_online/bugex_webapp/templatetags/custom_tags.py | fkleon/bugex-online | bf0687ff6167d66980eb44adcdb14e8fc65d9504 | [
"Apache-2.0"
] | null | null | null | bugex_online/bugex_webapp/templatetags/custom_tags.py | fkleon/bugex-online | bf0687ff6167d66980eb44adcdb14e8fc65d9504 | [
"Apache-2.0"
] | 7 | 2020-06-30T23:15:12.000Z | 2022-02-01T00:57:38.000Z | bugex_online/bugex_webapp/templatetags/custom_tags.py | fkleon/bugex-online | bf0687ff6167d66980eb44adcdb14e8fc65d9504 | [
"Apache-2.0"
] | null | null | null | from django import template
from django.conf import settings
register = template.Library()
| 22.333333 | 82 | 0.707463 |
82fd4ff37849618d568dd247a4ca0ff25544b1fd | 13,195 | py | Python | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 5 | 2020-08-06T04:28:27.000Z | 2022-03-23T09:10:29.000Z | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 4 | 2020-11-28T07:23:40.000Z | 2022-03-28T08:57:07.000Z | CreateRobot.py | KonstantinosAng/KinectPython | cb2c7822dd9ef959230d9488aaa3de8ec1816e08 | [
"MIT"
] | 1 | 2020-10-18T02:39:55.000Z | 2020-10-18T02:39:55.000Z | """
Author: Konstantinos Angelopoulos
Date: 04/02/2020
All rights reserved.
Feel free to use and modify and if you like it give it a star.
Import the Robot's Step Files and Color/Scale/Assemble them using the instructions in /RoboDK/KUKA/KUKA LWR IV+ Description
(for Original=kuka_lwr_model_description.json, for custo... | 55.209205 | 177 | 0.649564 |
82fd84aa8cc3e3cc7d56b2efc824a18ff2e55d25 | 368 | py | Python | tests/Parser/701isNotSubtitleFile_test.py | Bas-Man/TVShowFile | 2f341c97dcbe52eee0c0e71752173c9e9442450c | [
"MIT"
] | null | null | null | tests/Parser/701isNotSubtitleFile_test.py | Bas-Man/TVShowFile | 2f341c97dcbe52eee0c0e71752173c9e9442450c | [
"MIT"
] | null | null | null | tests/Parser/701isNotSubtitleFile_test.py | Bas-Man/TVShowFile | 2f341c97dcbe52eee0c0e71752173c9e9442450c | [
"MIT"
] | null | null | null | import unittest
from context import parser
if __name__ == '__main__':
unittest.main()
| 19.368421 | 64 | 0.69837 |
82fdd7e670db27270125e392ffe7dfc17727a77e | 10,668 | py | Python | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | archdiffer/tests/tests_rest_routes.py | Kratochvilova/archdiffer | 06f2ef0bb232b1ffe46e9d50575c4b79b1cff191 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of Archdiffer and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""
Created on Sat May 12 20:39:46 2018
@author: Pavla Kratochvilova <pavla.kratochvilova@gmail.com>
"""
from random import choice
from datetime import datetime
from ... | 32.036036 | 79 | 0.522778 |
82ff0515b3da6ec57b02cf613a0fd6672311351d | 150 | py | Python | src/posts/templatetags/urlify.py | thunderoy/blogger | 8102d11c04fbc98a31298ebfdb75023e9207109f | [
"MIT"
] | null | null | null | src/posts/templatetags/urlify.py | thunderoy/blogger | 8102d11c04fbc98a31298ebfdb75023e9207109f | [
"MIT"
] | null | null | null | src/posts/templatetags/urlify.py | thunderoy/blogger | 8102d11c04fbc98a31298ebfdb75023e9207109f | [
"MIT"
] | null | null | null | from urllib.parse import quote
from django import template
register = template.Library() | 18.75 | 30 | 0.78 |
82ff896e3d6c189f07e2be0a44d052ed10938137 | 330 | py | Python | producto/migrations/0004_auto_20180611_2350.py | JohanVasquez/crud-venta-libre | 557f82b5d88c42480020a65cc6034348ff20efce | [
"MIT"
] | null | null | null | producto/migrations/0004_auto_20180611_2350.py | JohanVasquez/crud-venta-libre | 557f82b5d88c42480020a65cc6034348ff20efce | [
"MIT"
] | null | null | null | producto/migrations/0004_auto_20180611_2350.py | JohanVasquez/crud-venta-libre | 557f82b5d88c42480020a65cc6034348ff20efce | [
"MIT"
] | null | null | null | # Generated by Django 2.0.6 on 2018-06-11 23:50
from django.db import migrations
| 18.333333 | 48 | 0.593939 |
d2013debcc235b195c7f8a356464f5f2511b9b80 | 4,173 | py | Python | service_matcher_app/service_matcher/models.py | City-of-Turku/PaohServiceMatchEngine | 39f580003f9c0d10708acd93644f796f764ec2f0 | [
"MIT"
] | null | null | null | service_matcher_app/service_matcher/models.py | City-of-Turku/PaohServiceMatchEngine | 39f580003f9c0d10708acd93644f796f764ec2f0 | [
"MIT"
] | null | null | null | service_matcher_app/service_matcher/models.py | City-of-Turku/PaohServiceMatchEngine | 39f580003f9c0d10708acd93644f796f764ec2f0 | [
"MIT"
] | null | null | null | from datetime import datetime
from pydantic import BaseModel
from typing import Optional, List
from fastapi import Query
| 29.595745 | 148 | 0.671699 |
d20192a90dd1bce99c4dd2075229189ba55979b5 | 6,481 | py | Python | src/test/testcases/testPSUReadSbeMem.py | open-power/sbe | 0208243c5bbd68fa36464397fa46a2940c827edf | [
"Apache-2.0"
] | 9 | 2017-03-21T08:34:24.000Z | 2022-01-25T06:00:51.000Z | src/test/testcases/testPSUReadSbeMem.py | sumant8098/sbe | 0208243c5bbd68fa36464397fa46a2940c827edf | [
"Apache-2.0"
] | 17 | 2016-11-04T00:46:43.000Z | 2021-04-13T16:31:11.000Z | src/test/testcases/testPSUReadSbeMem.py | sumant8098/sbe | 0208243c5bbd68fa36464397fa46a2940c827edf | [
"Apache-2.0"
] | 17 | 2017-03-24T11:52:56.000Z | 2022-01-25T06:00:49.000Z | # IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/test/testcases/testPSUReadSbeMem.py $
#
# OpenPOWER sbe Project
#
# Contributors Listed Below - COPYRIGHT 2017,2019
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you... | 38.123529 | 144 | 0.494214 |
d202532cd5f882629e4b1ca88d649d9dd76cb423 | 9,780 | py | Python | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | null | null | null | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | 5 | 2021-06-30T11:24:14.000Z | 2021-08-04T12:53:00.000Z | biobb_ml/clustering/clustering_predict.py | bioexcel/biobb_ml | f99346ef7885d3a62de47dab738a01db4b27467a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""Module containing the ClusteringPredict class and the command line interface."""
import argparse
import pandas as pd
import joblib
from biobb_common.generic.biobb_object import BiobbObject
from sklearn.preprocessing import StandardScaler
from biobb_common.configuration import settings
from b... | 52.864865 | 354 | 0.645194 |
d2025b2a20a97cda599aa94a7ddf6c498a1acbae | 121 | py | Python | treeviz_test.py | larsga/sprake | 32598651b2fb514b18aab4f82ffba89d606a7b74 | [
"Apache-2.0"
] | 1 | 2022-01-26T08:50:33.000Z | 2022-01-26T08:50:33.000Z | treeviz_test.py | larsga/sprake | 32598651b2fb514b18aab4f82ffba89d606a7b74 | [
"Apache-2.0"
] | null | null | null | treeviz_test.py | larsga/sprake | 32598651b2fb514b18aab4f82ffba89d606a7b74 | [
"Apache-2.0"
] | null | null | null |
from sprake import treeviz
# we don't actually have any meaningful tests that we can do, but at least
# we can do this
| 20.166667 | 74 | 0.752066 |
d2037084e3cebaba8f3eced7b0c24bf337957571 | 1,926 | py | Python | build/scripts/gen_mx_table.py | r1nadeg/04_catboost | 6755bbbd1496540b92ded57eea1974f64bef87c5 | [
"Apache-2.0"
] | null | null | null | build/scripts/gen_mx_table.py | r1nadeg/04_catboost | 6755bbbd1496540b92ded57eea1974f64bef87c5 | [
"Apache-2.0"
] | null | null | null | build/scripts/gen_mx_table.py | r1nadeg/04_catboost | 6755bbbd1496540b92ded57eea1974f64bef87c5 | [
"Apache-2.0"
] | 1 | 2018-08-06T14:13:12.000Z | 2018-08-06T14:13:12.000Z | import sys
tmpl = """
#include "yabs_mx_calc_table.h"
#include <kernel/matrixnet/mn_sse.h>
#include <library/archive/yarchive.h>
#include <util/memory/blob.h>
#include <util/generic/hash.h>
#include <util/generic/ptr.h>
#include <util/generic/singleton.h>
using namespace NMatrixnet;
extern "C" {
extern const ... | 25.342105 | 160 | 0.576324 |