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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a92d260f5ba3c3243955569573ecad3cecaf8e9 | 2,079 | py | Python | bcloud-snap/bcloud-3.9.1/bcloud/hasher.py | jiaxiaolei/my_snap_demo | 0444077c763e029eb67af7242537cebb3c3d6aa4 | [
"Apache-2.0"
] | null | null | null | bcloud-snap/bcloud-3.9.1/bcloud/hasher.py | jiaxiaolei/my_snap_demo | 0444077c763e029eb67af7242537cebb3c3d6aa4 | [
"Apache-2.0"
] | 4 | 2019-11-20T02:45:19.000Z | 2019-12-03T03:14:15.000Z | bcloud-snap/bcloud-3.9.1/bcloud/hasher.py | jiaxiaolei/my_snap_demo | 0444077c763e029eb67af7242537cebb3c3d6aa4 | [
"Apache-2.0"
] | null | null | null |
# Copyright (C) 2014-2015 LiuLang <gsushzhsosgsu@gmail.com>
# Use of this source code is governed by GPLv3 license that can be found
# in http://www.gnu.org/licenses/gpl-3.0.html
import hashlib
import os
import zlib
CHUNK = 2 ** 20
| 21.65625 | 72 | 0.556037 |
8a92dd9cacd718af3ee73590efc1c1d73a3833aa | 12,093 | py | Python | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 11 | 2018-08-28T09:16:02.000Z | 2021-11-08T09:39:15.000Z | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 2 | 2019-08-29T03:27:24.000Z | 2020-07-24T02:45:39.000Z | beansdbadmin/core/client.py | ariesdevil/beansdbadmin | 3165087ef57b7511ab84fbc50cf16eb8f54d83cd | [
"BSD-3-Clause"
] | 4 | 2019-05-10T12:10:31.000Z | 2020-07-17T03:22:02.000Z | #!/usr/bin/python
# encoding: utf-8
'''a rich client
1. for one server (instead of multi like in libmc.Client)
2. encapsulate @, ?, gc ...
use is instead of libmc.Client
'''
import telnetlib
import logging
import libmc
import string
import urllib
import itertools
import warnings
from collections import defaul... | 30.308271 | 103 | 0.561399 |
8a963372962a426bfe2a29c3f4ef8694684f359b | 1,448 | py | Python | Simulator/Geometry/RectOverlap.py | cuixiongyi/RBE595 | fc5c6aa6c479eb14186a9168e47724b7b3d06cde | [
"MIT"
] | null | null | null | Simulator/Geometry/RectOverlap.py | cuixiongyi/RBE595 | fc5c6aa6c479eb14186a9168e47724b7b3d06cde | [
"MIT"
] | null | null | null | Simulator/Geometry/RectOverlap.py | cuixiongyi/RBE595 | fc5c6aa6c479eb14186a9168e47724b7b3d06cde | [
"MIT"
] | null | null | null | import matplotlib.pyplot
__author__ = 'xiongyi'
line1 = [(200, 100), (200, 400)]
line2 = [(190, 190), (210, 210)]
if __name__ == '__main__':
matplotlib.pyplot.plot((line1[0][0],line1[1][0]),(line1[0][1],line1[1][1]))
matplotlib.pyplot.hold(True)
matplotlib.pyplot.plot((line2[0][0],line2[1][0]),(line2[0][1... | 26.814815 | 79 | 0.566989 |
8a96a020d6c369841c24ae3ddad9a09c8b54550c | 4,434 | py | Python | gino/loader.py | p4l1ly/gino | bbe63ed841bf989a0f47b6cae64db85b0b606794 | [
"BSD-3-Clause"
] | null | null | null | gino/loader.py | p4l1ly/gino | bbe63ed841bf989a0f47b6cae64db85b0b606794 | [
"BSD-3-Clause"
] | null | null | null | gino/loader.py | p4l1ly/gino | bbe63ed841bf989a0f47b6cae64db85b0b606794 | [
"BSD-3-Clause"
] | null | null | null | from sqlalchemy import select
from sqlalchemy.schema import Column
from .declarative import Model
class ModelLoader(Loader):
class AliasLoader(ModelLoader):
class ColumnLoader(Loader):
class TupleLoader(Loader):
class CallableLoader(Loader):
class ValueLoader(Loader):
| 28.063291 | 79 | 0.570591 |
8a9705a2e78a0cfbf1bbd48dd0bfdf9b979f2917 | 3,751 | py | Python | emission/clients/choice/choice.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | emission/clients/choice/choice.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | 1 | 2017-08-31T19:54:16.000Z | 2017-08-31T19:54:16.000Z | emission/clients/choice/choice.py | Andrew-Tan/e-mission-server | 91d59bee86e63d803e401f10f4b6a2502effedda | [
"BSD-3-Clause"
] | null | null | null | # Standard imports
import logging
import math
import json
from uuid import UUID
from datetime import datetime, timedelta
import time
# Our imports
from emission.core.get_database import get_trip_db, get_section_db
import emission.analysis.result.carbon as carbon
import emission.core.common as common
import emission.ne... | 39.484211 | 103 | 0.724607 |
8a975211bf46410d2e2a9a98de298bed52013baa | 6,589 | py | Python | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | null | null | null | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | null | null | null | lib/formatter/text.py | ylafon/redbot | 87f4edcc8ccda35f556331abd1e76d5e9b79cdd0 | [
"Unlicense"
] | 1 | 2021-06-01T12:08:29.000Z | 2021-06-01T12:08:29.000Z | #!/usr/bin/env python
"""
HAR Formatter for REDbot.
"""
__author__ = "Jerome Renard <jerome.renard@gmail.com>"
__copyright__ = """\
Copyright (c) 2008-2010 Mark Nottingham
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")... | 33.277778 | 101 | 0.587039 |
8a9862396c2189c4e0deacb6232ab6ab3fc808e2 | 5,999 | py | Python | lib/ioe_pot.py | ifurusato/ros | 77b1361e78f68f00ba2d3e3db908bb5ce0f973f5 | [
"MIT"
] | 9 | 2020-10-12T08:49:55.000Z | 2021-07-23T14:20:05.000Z | lib/ioe_pot.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 12 | 2020-07-22T19:08:58.000Z | 2022-02-03T03:17:03.000Z | lib/ioe_pot.py | fanmuzhi/ros | 04534a35901341c4aaa9084bff3d46851795357d | [
"MIT"
] | 3 | 2020-07-19T20:43:19.000Z | 2022-03-02T09:15:51.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2021 by Murray Altheim. All rights reserved. This file is part
# of the Robot Operating System project, released under the MIT License. Please
# see the LICENSE file included as part of this package.
#
# author: Murray Altheim
# created: 2020-09-19
# ... | 44.437037 | 138 | 0.543091 |
8a98a3e8f4fe8ffe2c483dbdada681b7ff1782e2 | 490 | py | Python | stubs/micropython-esp32-1_12/urequests.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 38 | 2020-10-18T21:59:44.000Z | 2022-03-17T03:03:28.000Z | stubs/micropython-esp32-1_12/urequests.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 176 | 2020-10-18T14:31:03.000Z | 2022-03-30T23:22:39.000Z | stubs/micropython-esp32-1_12/urequests.py | RonaldHiemstra/micropython-stubs | d97f879b01f6687baaebef1c7e26a80909c3cff3 | [
"MIT"
] | 6 | 2020-12-28T21:11:12.000Z | 2022-02-06T04:07:50.000Z | """
Module: 'urequests' on esp32 1.12.0
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.12.0', version='v1.12 on 2019-12-20', machine='ESP32 module (spiram) with ESP32')
# Stubber: 1.3.2
usocket = None
| 12.564103 | 135 | 0.563265 |
8a995f399ed25fbe111acb3f8ad5749b538eef0a | 433 | py | Python | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | 1 | 2017-10-14T04:23:45.000Z | 2017-10-14T04:23:45.000Z | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | python/re_user.py | seckcoder/lang-learn | 1e0d6f412bbd7f89b1af00293fd907ddb3c1b571 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
#-*- coding=utf-8 -*-
#
# Copyright 2012 Jike Inc. All Rights Reserved.
# Author: liwei@jike.com
import re
from urlparse import urlparse
parse1()
| 22.789474 | 57 | 0.637413 |
8a9978555063ed5f44aba19723290d6745163dd2 | 2,806 | py | Python | TransactionBook/gui_kivy/generic/MultiSelectPopUp.py | LukHad/AccountBook | 8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8 | [
"MIT"
] | null | null | null | TransactionBook/gui_kivy/generic/MultiSelectPopUp.py | LukHad/AccountBook | 8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8 | [
"MIT"
] | null | null | null | TransactionBook/gui_kivy/generic/MultiSelectPopUp.py | LukHad/AccountBook | 8da3ebbd2a824efb9d50f7695ceaaa6cf2370cd8 | [
"MIT"
] | null | null | null | from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
from kivy.uix.anchorlayout import AnchorLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
import ma... | 35.075 | 125 | 0.679259 |
8a9a247a499b63acd31b3bc3a6e73d3d156a0e43 | 1,903 | py | Python | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | Assignment1/Part2/Bridge2.py | MormonJesus69420/Knowledge-Based-Systems-Project | 8b1e330c64dd58743513f3e48efb6569457beb94 | [
"WTFPL"
] | null | null | null | from dataclasses import dataclass, field
from typing import List
from Car2 import Car
| 28.833333 | 80 | 0.62743 |
8a9ada50ee04b4224d0c5731fe46fe28317d335c | 19,192 | py | Python | lib/tuner_interface.py | jefflundberg/locast2plex | 3ab747a13c47888507c08f17d0afacad09894019 | [
"MIT"
] | null | null | null | lib/tuner_interface.py | jefflundberg/locast2plex | 3ab747a13c47888507c08f17d0afacad09894019 | [
"MIT"
] | null | null | null | lib/tuner_interface.py | jefflundberg/locast2plex | 3ab747a13c47888507c08f17d0afacad09894019 | [
"MIT"
] | null | null | null | import subprocess
import threading
import time
import errno
import socket
import urllib
import pathlib
from io import StringIO
from http.server import BaseHTTPRequestHandler, HTTPServer
import lib.stations as stations
import lib.epg2xml as epg2xml
import lib.channels_m3u as channels_m3u
from lib.templates import templ... | 43.12809 | 169 | 0.546321 |
8a9cd2106529aad0ea2a1405ec139e1af2cab3e4 | 1,130 | py | Python | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py | dcs3spp/cookiecutter-django-api | d575dda07930743c05a27eb968489867831d97de | [
"Apache-1.1"
] | null | null | null | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py | dcs3spp/cookiecutter-django-api | d575dda07930743c05a27eb968489867831d97de | [
"Apache-1.1"
] | null | null | null | {{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/local/pages/views.py | dcs3spp/cookiecutter-django-api | d575dda07930743c05a27eb968489867831d97de | [
"Apache-1.1"
] | null | null | null | from django import template
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.template import loader
| 35.3125 | 71 | 0.718584 |
8a9d019bec9e50c7c8d759ea60e658149d43ef2a | 2,561 | py | Python | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-02-03T19:12:04.000Z | 2021-02-03T19:12:04.000Z | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | null | null | null | audiomentations/core/utils.py | jeongyoonlee/audiomentations | 7f0112ae310989430e0ef7eb32c4116114810966 | [
"MIT"
] | 1 | 2021-07-08T07:33:10.000Z | 2021-07-08T07:33:10.000Z | import os
from pathlib import Path
import numpy as np
AUDIO_FILENAME_ENDINGS = (".aiff", ".flac", ".m4a", ".mp3", ".ogg", ".opus", ".wav")
def get_file_paths(
root_path, filename_endings=AUDIO_FILENAME_ENDINGS, traverse_subdirectories=True
):
"""Return a list of paths to all files with the given filename ex... | 31.617284 | 132 | 0.689184 |
8a9d4177e423a6db85599cff72c82ba14d5a1522 | 883 | py | Python | algorithm/python/LeetCode/isValid.py | HoneyS2/meaningful | 78659de1ed74121db4ade211f6565ddc6d117041 | [
"MIT"
] | null | null | null | algorithm/python/LeetCode/isValid.py | HoneyS2/meaningful | 78659de1ed74121db4ade211f6565ddc6d117041 | [
"MIT"
] | null | null | null | algorithm/python/LeetCode/isValid.py | HoneyS2/meaningful | 78659de1ed74121db4ade211f6565ddc6d117041 | [
"MIT"
] | null | null | null | s = "([}}])"
stack = []
if len(s) % 2 == 1:
print(False)
exit()
for i in s:
if i == "(":
stack.append("(")
elif i == "[":
stack.append("[")
elif i == "{":
stack.append("{")
elif i == ")":
if len(stack) < 1:
print(False)
exit()
if... | 18.395833 | 28 | 0.347678 |
8a9d8f1b16e1dbb065ddd8280ce1c889563a6417 | 4,831 | py | Python | JupyterHTMLSlides/core.py | williamegomezo/JupyterSlides | 403fe15e360eb1d79bf813b923eb569a81ab0934 | [
"MIT"
] | 1 | 2019-07-26T20:59:47.000Z | 2019-07-26T20:59:47.000Z | JupyterHTMLSlides/core.py | williamegomezo/JupyterSlides | 403fe15e360eb1d79bf813b923eb569a81ab0934 | [
"MIT"
] | null | null | null | JupyterHTMLSlides/core.py | williamegomezo/JupyterSlides | 403fe15e360eb1d79bf813b923eb569a81ab0934 | [
"MIT"
] | null | null | null | import random
import string
import os
from IPython.display import display, HTML
from .utils import html_loader
from .utils import get_content
from jinja2 import Template
| 33.783217 | 100 | 0.580211 |
8a9e11dd86387cdd76e5db9dfd7ce9770e952aef | 30,203 | py | Python | tests/test_wallet.py | NickeZ/lightning | f376a9c24cc71d139393196dea86b5a39aee7db8 | [
"MIT"
] | 1 | 2020-05-07T22:28:20.000Z | 2020-05-07T22:28:20.000Z | tests/test_wallet.py | satoshinakamoto007/lightning | ff968e773074061d6f76cb81c6c61a1047ffaef1 | [
"MIT"
] | 1 | 2020-05-03T00:56:31.000Z | 2020-05-03T00:56:31.000Z | tests/test_wallet.py | satoshinakamoto007/lightning | ff968e773074061d6f76cb81c6c61a1047ffaef1 | [
"MIT"
] | null | null | null | from decimal import Decimal
from fixtures import * # noqa: F401,F403
from fixtures import TEST_NETWORK
from flaky import flaky # noqa: F401
from pyln.client import RpcError, Millisatoshi
from utils import (
only_one, wait_for, sync_blockheight, EXPERIMENTAL_FEATURES, COMPAT,
VALGRIND
)
import os
import pytes... | 40.704852 | 130 | 0.65957 |
8a9ed02f0755897cb2a1b2ac5fabcbb264f6bbee | 18,025 | py | Python | microbepy/plot/mutation_plot.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | 1 | 2019-05-04T00:31:05.000Z | 2019-05-04T00:31:05.000Z | microbepy/plot/mutation_plot.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | null | null | null | microbepy/plot/mutation_plot.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | null | null | null | """Provides plots of mutations for Isolates and Lines."""
from microbepy.common import constants as cn
from microbepy.common.dataframe_sorter import DataframeSorter
from microbepy.common.isolate import Isolate
from microbepy.common import util
from microbepy.correlation import genome_correlation
from microbepy.data.m... | 35.62253 | 78 | 0.676782 |
8a9ed7740bcb98fbae13ca6bc7e08c9cb1a32fd1 | 4,384 | py | Python | semantic-segmentation/deeplabv3plus/dataset_utils.py | shikisawamura/nnabla-examples | baf4e4cc620dedbf4368683325c0fb868676850d | [
"Apache-2.0"
] | 1 | 2020-08-03T12:49:25.000Z | 2020-08-03T12:49:25.000Z | semantic-segmentation/deeplabv3plus/dataset_utils.py | takuseno/nnabla-examples | 070d25078ad3d5458744dbfd390cdd926e20e573 | [
"Apache-2.0"
] | null | null | null | semantic-segmentation/deeplabv3plus/dataset_utils.py | takuseno/nnabla-examples | 070d25078ad3d5458744dbfd390cdd926e20e573 | [
"Apache-2.0"
] | 1 | 2020-04-25T06:11:28.000Z | 2020-04-25T06:11:28.000Z | # Copyright (c) 2017 Sony Corporation. 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 applicabl... | 38.79646 | 334 | 0.619297 |
8a9edfbe7de3c135419c8254312b876a5177e47f | 10,044 | py | Python | train.py | shamilcm/fairseq-py | ceb2f1200c9e5b8bf42a1033e7638d3e8586609a | [
"BSD-3-Clause"
] | 1 | 2021-04-20T07:33:12.000Z | 2021-04-20T07:33:12.000Z | train.py | shamilcm/fairseq-py | ceb2f1200c9e5b8bf42a1033e7638d3e8586609a | [
"BSD-3-Clause"
] | null | null | null | train.py | shamilcm/fairseq-py | ceb2f1200c9e5b8bf42a1033e7638d3e8586609a | [
"BSD-3-Clause"
] | 3 | 2018-04-20T11:00:16.000Z | 2020-04-25T09:31:14.000Z | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
#
import collections
import os
imp... | 44.052632 | 129 | 0.616587 |
8a9f03cac960929d8e8a292c8e92367e90e1a3eb | 7,311 | py | Python | storm_control/sc_library/log_timing.py | jeffmoffitt/storm-control | 522add1e196e0b7964f574481fd90c20a74b575e | [
"MIT"
] | null | null | null | storm_control/sc_library/log_timing.py | jeffmoffitt/storm-control | 522add1e196e0b7964f574481fd90c20a74b575e | [
"MIT"
] | null | null | null | storm_control/sc_library/log_timing.py | jeffmoffitt/storm-control | 522add1e196e0b7964f574481fd90c20a74b575e | [
"MIT"
] | 1 | 2020-11-10T06:39:18.000Z | 2020-11-10T06:39:18.000Z | #!/usr/bin/env python
"""
This parses a log file series (i.e. log, log.1, log.2, etc..) and
outputs timing and call frequency information for HAL messages.
Hazen 5/18
"""
from datetime import datetime
import os
pattern = '%Y-%m-%d %H:%M:%S,%f'
def getIterable(dict_or_list):
"""
Returns an iterable given a... | 27.90458 | 93 | 0.548078 |
8a9f1f85d541893b6f50e7a4580e2b294f4022fb | 1,830 | py | Python | django_simple_jsonschema/management/commands/check_schema.py | 38elements/django-simple-jsonschema | ab08aaa3453c40a41d443869643113f23eb40db6 | [
"MIT"
] | 1 | 2017-04-27T20:15:46.000Z | 2017-04-27T20:15:46.000Z | django_simple_jsonschema/management/commands/check_schema.py | 38elements/django-simple-jsonschema | ab08aaa3453c40a41d443869643113f23eb40db6 | [
"MIT"
] | null | null | null | django_simple_jsonschema/management/commands/check_schema.py | 38elements/django-simple-jsonschema | ab08aaa3453c40a41d443869643113f23eb40db6 | [
"MIT"
] | 2 | 2016-02-20T10:53:09.000Z | 2018-07-12T14:47:01.000Z | from django.core.management.base import BaseCommand
from django.utils import termcolors
from jsonschema import Draft4Validator
from jsonschema.exceptions import SchemaError
import json
| 35.192308 | 96 | 0.572678 |
8aa0f73f3e1949691f35856c47f4d0a99caef5b9 | 4,247 | py | Python | lib/interface.py | keke185321/combine-copy- | de2eba77d8db5c9c1908aac1262590b80c2348ce | [
"Apache-2.0"
] | null | null | null | lib/interface.py | keke185321/combine-copy- | de2eba77d8db5c9c1908aac1262590b80c2348ce | [
"Apache-2.0"
] | null | null | null | lib/interface.py | keke185321/combine-copy- | de2eba77d8db5c9c1908aac1262590b80c2348ce | [
"Apache-2.0"
] | null | null | null | import cv2, time
import numpy as np
import Tkinter
"""
Wraps up some interfaces to opencv user interface methods (displaying
image frames, event handling, etc).
If desired, an alternative UI could be built and imported into get_pulse.py
instead. Opencv is used to perform much of the data analysis, but there is no
re... | 31.932331 | 82 | 0.533318 |
8aa1a1e63a87d2e580e76379c3a2ac6b8f3e051d | 16,125 | py | Python | nltk/tag/brill.py | FGDBTKD/nltk | 384e46e82789c7f47a7fb521ef976f82c3c4c3fb | [
"Apache-2.0"
] | null | null | null | nltk/tag/brill.py | FGDBTKD/nltk | 384e46e82789c7f47a7fb521ef976f82c3c4c3fb | [
"Apache-2.0"
] | null | null | null | nltk/tag/brill.py | FGDBTKD/nltk | 384e46e82789c7f47a7fb521ef976f82c3c4c3fb | [
"Apache-2.0"
] | 1 | 2019-10-18T08:58:45.000Z | 2019-10-18T08:58:45.000Z | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Transformation-based learning
#
# Copyright (C) 2001-2018 NLTK Project
# Author: Marcus Uneson <marcus.uneson@gmail.com>
# based on previous (nltk2) version by
# Christopher Maloof, Edward Loper, Steven Bird
# URL: <http://nltk.org/>
# For license information, see... | 37.941176 | 107 | 0.57631 |
8aa1f2759e7626cdb380e9f05aa634b55bf1bbc2 | 7,812 | py | Python | superglue_parsers/wsc.py | agentsolaris/xlnn | 0ab07d1ac526cadc2964379aef0a44927e0618eb | [
"Apache-2.0"
] | null | null | null | superglue_parsers/wsc.py | agentsolaris/xlnn | 0ab07d1ac526cadc2964379aef0a44927e0618eb | [
"Apache-2.0"
] | null | null | null | superglue_parsers/wsc.py | agentsolaris/xlnn | 0ab07d1ac526cadc2964379aef0a44927e0618eb | [
"Apache-2.0"
] | null | null | null | import json
import logging
import sys
import numpy as np
import torch
from task_config import SuperGLUE_LABEL_MAPPING
from snorkel.mtl.data import MultitaskDataset
sys.path.append("..") # Adds higher directory to python modules path.
logger = logging.getLogger(__name__)
TASK_NAME = "WSC"
| 33.101695 | 88 | 0.592422 |
8aa22dad95839c5aa4e52f5c6ec5b084424226d6 | 1,534 | py | Python | simplimental/simplimental.py | TimmyCarbone/simplimental | e46a0e63ce33e36b1e4ca3a473ad15d0732614ed | [
"MIT"
] | 2 | 2015-11-25T15:12:05.000Z | 2017-06-22T16:36:58.000Z | simplimental/simplimental.py | TimmyCarbone/simplimental | e46a0e63ce33e36b1e4ca3a473ad15d0732614ed | [
"MIT"
] | null | null | null | simplimental/simplimental.py | TimmyCarbone/simplimental | e46a0e63ce33e36b1e4ca3a473ad15d0732614ed | [
"MIT"
] | null | null | null | import re
import json
__all__ = ["Simplimental"]
| 21.605634 | 72 | 0.612777 |
8aa2d7e8d015afdc94844a8b1cce4b350015d579 | 3,637 | py | Python | Python/Examples/Macros/SettingsAxesOptimization.py | archformco/RoboDK-API | b3d0cad6a83f505811e2be273453ccb4579324f1 | [
"MIT"
] | 161 | 2018-03-23T01:27:08.000Z | 2022-03-23T12:18:35.000Z | Python/Examples/Macros/SettingsAxesOptimization.py | OxideDevX/RoboDK-API | 50357c38b2fcf58cf82d9b7bf61021cb900fd358 | [
"MIT"
] | 26 | 2018-11-19T10:18:58.000Z | 2022-03-28T18:37:11.000Z | Python/Examples/Macros/SettingsAxesOptimization.py | OxideDevX/RoboDK-API | 50357c38b2fcf58cf82d9b7bf61021cb900fd358 | [
"MIT"
] | 85 | 2018-03-22T19:25:35.000Z | 2022-03-30T04:46:59.000Z | # This example shows how to read or modify the Axes Optimization settings using the RoboDK API and a JSON string.
# You can select "Axes optimization" in a robot machining menu or the robot parameters to view the axes optimization settings.
# It is possible to update the axes optimization settings attached to a robot o... | 28.414063 | 133 | 0.62854 |
8aa372fac8202953aac93a2529989a1508f2b506 | 1,072 | py | Python | tests/test_grammar.py | Vipul97/SLR-Parser | 3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd | [
"MIT"
] | 5 | 2018-10-30T04:09:46.000Z | 2020-03-17T04:47:06.000Z | tests/test_grammar.py | Vipul97/SLR-Parser | 3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd | [
"MIT"
] | null | null | null | tests/test_grammar.py | Vipul97/SLR-Parser | 3de5609235d173d29ad9bd9ed7bdfe2a813ab1bd | [
"MIT"
] | 5 | 2019-06-16T20:16:46.000Z | 2020-04-14T06:44:32.000Z | from slr_parser.grammar import Grammar
import unittest
if __name__ == '__main__':
unittest.main()
| 29.777778 | 114 | 0.488806 |
8aa50b5f8d204a63672c266b3319435ba3678601 | 2,686 | py | Python | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | insight/migrations/0001_initial.py | leonhead/chess-insight | b893295719df21b4fee10d4e7b01639ded8b42b4 | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-09-08 07:43
from django.db import migrations, models
import django.db.models.deletion
| 41.323077 | 127 | 0.562919 |
8aa613f84bb4cdd381d01e4e99ee1eab1597c53c | 1,732 | py | Python | tests/test_merge.py | jmerizia/parallel-pytorch | d27b2fd145d25f1329a039c99b8895783bfc71e5 | [
"MIT"
] | null | null | null | tests/test_merge.py | jmerizia/parallel-pytorch | d27b2fd145d25f1329a039c99b8895783bfc71e5 | [
"MIT"
] | null | null | null | tests/test_merge.py | jmerizia/parallel-pytorch | d27b2fd145d25f1329a039c99b8895783bfc71e5 | [
"MIT"
] | null | null | null | import torch
import numpy as np
from mpi4py import MPI
from parallel_pytorch.ops import tensor_merge
from parallel_pytorch.utils import abort_on_exception
def run_all():
test_1()
test_2()
if __name__ == '__main__':
run_all()
| 29.355932 | 103 | 0.561778 |
8aa6533a09d6a4b3ba6f06626bf481622c2da357 | 542 | py | Python | day07/main.py | tebriel/aoc2021 | 65ca19be3ad66dc52eee9ca31cf12306695a24e9 | [
"Unlicense"
] | null | null | null | day07/main.py | tebriel/aoc2021 | 65ca19be3ad66dc52eee9ca31cf12306695a24e9 | [
"Unlicense"
] | null | null | null | day07/main.py | tebriel/aoc2021 | 65ca19be3ad66dc52eee9ca31cf12306695a24e9 | [
"Unlicense"
] | null | null | null | """Day 07"""
if __name__ == '__main__':
process('test.txt')
process('input.txt')
| 25.809524 | 74 | 0.573801 |
8aa6ff7f14bd0c2736eb3afb641dd73452250888 | 1,276 | py | Python | src/ceres_infer/utils.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | null | null | null | src/ceres_infer/utils.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | null | null | null | src/ceres_infer/utils.py | pritchardlabatpsu/cga | 0a71c672b1348cebc724560643fd908d636fc133 | [
"MIT"
] | 1 | 2022-02-08T01:06:20.000Z | 2022-02-08T01:06:20.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
utilities
@author: boyangzhao
"""
import pandas as pd
import re
| 24.075472 | 96 | 0.530564 |
8aa76a43878c4baa56da24cd2df4e08dd1f12800 | 4,779 | py | Python | MAIN/Screens/Settings/category_2/__init__.py | aragubas/fogoso | bd24e049ee994410320e87fb3706c95bd8c9801f | [
"Apache-2.0"
] | null | null | null | MAIN/Screens/Settings/category_2/__init__.py | aragubas/fogoso | bd24e049ee994410320e87fb3706c95bd8c9801f | [
"Apache-2.0"
] | null | null | null | MAIN/Screens/Settings/category_2/__init__.py | aragubas/fogoso | bd24e049ee994410320e87fb3706c95bd8c9801f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3.7
# Copyright 2020 Aragubas
#
# 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... | 42.669643 | 306 | 0.765432 |
8aa779160503c74402f97032140e39891a948a62 | 1,279 | py | Python | tests/test_toggle.py | ConnectionMaster/robotpy-wpilib-utilities | b62e563c7df113e9e513a36b9039f47f34157be1 | [
"BSD-3-Clause"
] | 14 | 2015-10-20T02:56:17.000Z | 2020-03-17T04:44:12.000Z | tests/test_toggle.py | robotpy/robotpy-wpilib-utilities | 80f753a1d315d234d6ecdd79be544ec01ca091ae | [
"BSD-3-Clause"
] | 107 | 2015-01-26T23:47:10.000Z | 2022-03-16T13:57:36.000Z | tests/test_toggle.py | ConnectionMaster/robotpy-wpilib-utilities | b62e563c7df113e9e513a36b9039f47f34157be1 | [
"BSD-3-Clause"
] | 21 | 2016-01-01T01:44:40.000Z | 2022-03-15T18:00:35.000Z | from robotpy_ext.control.toggle import Toggle
from robotpy_ext.misc.precise_delay import NotifierDelay
| 23.685185 | 56 | 0.689601 |
8aa8401fd27f8fa99c12308b325e2e4f0cfa3068 | 2,872 | py | Python | tests/test.py | kjanik70/tflearn | db5176773299b67a2a75c5889fb2aba7fd0fea8a | [
"MIT"
] | 10,882 | 2016-03-31T16:03:11.000Z | 2022-03-26T03:00:27.000Z | tests/test.py | min0355/tflearn | db5176773299b67a2a75c5889fb2aba7fd0fea8a | [
"MIT"
] | 1,079 | 2016-04-02T06:14:16.000Z | 2022-02-27T10:04:47.000Z | tests/test.py | min0355/tflearn | db5176773299b67a2a75c5889fb2aba7fd0fea8a | [
"MIT"
] | 3,014 | 2016-03-31T16:03:26.000Z | 2022-03-30T20:36:53.000Z | '''
This file contains test cases for tflearn
'''
import tensorflow.compat.v1 as tf
import tflearn
import unittest
if __name__ == "__main__":
unittest.main() | 30.88172 | 82 | 0.547354 |
8aaa6ef648c6ab0a8f38e3df5ebf0a4f712b233a | 2,313 | py | Python | infrastructure-provisioning/src/general/api/install_libs.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 66 | 2020-10-03T08:36:48.000Z | 2022-03-20T23:16:20.000Z | infrastructure-provisioning/src/general/api/install_libs.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 48 | 2019-02-28T12:11:33.000Z | 2020-09-15T08:27:08.000Z | infrastructure-provisioning/src/general/api/install_libs.py | roolrd/incubator-datalab | 2045207ecd1b381193f1a1ec143cc968716ad989 | [
"Apache-2.0"
] | 44 | 2019-01-14T10:31:55.000Z | 2020-09-22T17:53:33.000Z | #!/usr/bin/python3
# *****************************************************************************
#
# 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 ... | 35.584615 | 105 | 0.565932 |
8aab4acf40735c2dc3547887c3be02d0b2808eff | 1,584 | py | Python | model_zoo/official/nlp/bert_thor/src/evaluation_config.py | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 55 | 2020-12-17T10:26:06.000Z | 2022-03-28T07:18:26.000Z | model_zoo/official/nlp/bert_thor/src/evaluation_config.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | 1 | 2020-12-29T06:46:38.000Z | 2020-12-29T06:46:38.000Z | model_zoo/official/nlp/bert_thor/src/evaluation_config.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | 14 | 2021-01-29T02:39:47.000Z | 2022-03-23T05:00:26.000Z | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 28.8 | 78 | 0.693813 |
8aad801ac3abc226337a71ef38e5ff434b1f3490 | 1,052 | py | Python | portal/apps/core/management/commands/sync_articleviewedby.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 8 | 2020-12-15T17:11:08.000Z | 2021-12-13T22:08:33.000Z | portal/apps/core/management/commands/sync_articleviewedby.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 28 | 2020-12-15T17:34:03.000Z | 2022-02-01T04:09:10.000Z | portal/apps/core/management/commands/sync_articleviewedby.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 7 | 2020-12-15T19:59:17.000Z | 2021-11-24T16:47:06.000Z | # -*- coding: utf-8 -*-
# utopia-cms 2020. Anbal Pacheco.
from django.core.management import BaseCommand
from django.db.utils import IntegrityError
from apps import core_articleviewedby_mdb
from core.models import ArticleViewedBy
| 37.571429 | 114 | 0.640684 |
8aad8dc0d7dead55101c7087ad08700bb763b130 | 7,900 | py | Python | examples/minkunet.py | dendisuhubdy/MinkowskiEngine | a1cdcba68ef925bfefed2fe161f62e1ec78573b9 | [
"MIT"
] | 1 | 2019-05-12T00:06:10.000Z | 2019-05-12T00:06:10.000Z | examples/minkunet.py | dendisuhubdy/MinkowskiEngine | a1cdcba68ef925bfefed2fe161f62e1ec78573b9 | [
"MIT"
] | null | null | null | examples/minkunet.py | dendisuhubdy/MinkowskiEngine | a1cdcba68ef925bfefed2fe161f62e1ec78573b9 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from torch.optim import SGD
import MinkowskiEngine as ME
from MinkowskiEngine.modules.resnet_block import BasicBlock, Bottleneck
from examples.common import data_loader
from examples.resnet import ResNetBase
if __name__ == '__main__':
# loss and network
cr... | 30.501931 | 80 | 0.603291 |
8aad8de20813d57dc973493fe2b63ad495089392 | 549 | py | Python | setup.py | swfrench/nginx-access-tailer | 5e060396ca749935c622e8e9c50b659b39e3675b | [
"BSD-3-Clause"
] | null | null | null | setup.py | swfrench/nginx-access-tailer | 5e060396ca749935c622e8e9c50b659b39e3675b | [
"BSD-3-Clause"
] | null | null | null | setup.py | swfrench/nginx-access-tailer | 5e060396ca749935c622e8e9c50b659b39e3675b | [
"BSD-3-Clause"
] | null | null | null | """TODO."""
from setuptools import setup
setup(
name='nginx-access-tailer',
version='0.1',
author='swfrench',
url='https://github.com/swfrench/nginx-tailer',
packages=['nginx_access_tailer',],
license='BSD three-clause license',
entry_points={
'console_scripts': ['nginx-access-tail... | 24.954545 | 87 | 0.626594 |
8aae1314a34df4a8c2038ff3f05e19541e560962 | 2,489 | py | Python | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | tests/integration/test_cmk_describe.py | oglok/CPU-Manager-for-Kubernetes | 503f37dcb20452699ce789b6628fa3ebeb9ffb54 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | 21.273504 | 74 | 0.451185 |
8aaee662db93c29bfc4e01c664b5f8c132a76382 | 1,331 | py | Python | setup.py | richardARPANET/persistent-celery-beat-scheduler | d2cbdd12394eec282ccb97ac5ff894353c2e4ffd | [
"Apache-2.0"
] | 4 | 2018-04-04T13:03:08.000Z | 2018-04-16T18:50:45.000Z | setup.py | richardARPANET/persistent-celery-beat-scheduler | d2cbdd12394eec282ccb97ac5ff894353c2e4ffd | [
"Apache-2.0"
] | null | null | null | setup.py | richardARPANET/persistent-celery-beat-scheduler | d2cbdd12394eec282ccb97ac5ff894353c2e4ffd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*
import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
with open('requirements.txt') as f:
install_requires = f.read().splitlines()
setup(
name... | 31.690476 | 90 | 0.643877 |
8aafa8be4338ac950ec6be097349874901cbc17e | 3,807 | py | Python | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | 1 | 2019-07-19T18:09:38.000Z | 2019-07-19T18:09:38.000Z | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | tests/test_client.py | mgobec/python-memcached | 8ea5fe5fca3a4f0d1201ca9aa50f9701c1baab01 | [
"Apache-2.0"
] | null | null | null | import collections
import unittest
import driver
from driver.protocol import *
_server = ('localhost', 11211)
_dead_retry = 30
_socket_timeout = 3
_max_receive_size = 4096
def _raise_exception(message):
raise Exception(message)
| 34.609091 | 105 | 0.677699 |
8ab02ecbf400acde29e043cc50c322067db1b570 | 1,654 | py | Python | GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py | Preethinaidu14/greyatom-python-for-data-science | 5b758dd6123d9fc50031c43771b30d69e366c044 | [
"MIT"
] | null | null | null | GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py | Preethinaidu14/greyatom-python-for-data-science | 5b758dd6123d9fc50031c43771b30d69e366c044 | [
"MIT"
] | null | null | null | GREYATOM-PROJECT----DATA--WRANGLING-WITH-PANDAS/code.py | Preethinaidu14/greyatom-python-for-data-science | 5b758dd6123d9fc50031c43771b30d69e366c044 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
path
# code starts here
bank = pd.read_csv(path)
categorical_var = bank.select_dtypes(include = 'object')
print(categorical_var)
numerical_var = bank.select_dtypes(include = 'number')
print(numerical_var)
# code... | 19.458824 | 105 | 0.688634 |
8ab2d6d56bce4e65f9e2921fdc0ec8fdc7ecb7fb | 855 | py | Python | venv/Lib/site-packages/patsy/test_regressions.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 710 | 2015-01-07T20:08:59.000Z | 2022-03-08T14:30:13.000Z | venv/Lib/site-packages/patsy/test_regressions.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 142 | 2015-01-07T02:20:27.000Z | 2021-11-15T04:23:02.000Z | venv/Lib/site-packages/patsy/test_regressions.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 101 | 2015-01-15T16:35:12.000Z | 2022-02-19T06:50:02.000Z | # This file is part of Patsy
# Copyright (C) 2013 Nathaniel Smith <njs@pobox.com>
# See file LICENSE.txt for license information.
# Regression tests for fixed bugs (when not otherwise better covered somewhere
# else)
from patsy import (EvalEnvironment, dmatrix, build_design_matrices,
PatsyError, Or... | 34.2 | 78 | 0.645614 |
8ab404c67e6f07e674ae9c5b07f6e6e0e0f914ac | 7,764 | py | Python | skimage/io/_plugins/pil_plugin.py | smheidrich/scikit-image | e9cf8b850c4c2800cc221be6f1dfff6a2a32a4eb | [
"BSD-3-Clause"
] | 3 | 2019-02-28T16:05:36.000Z | 2020-04-03T17:29:07.000Z | Lib/site-packages/skimage/io/_plugins/pil_plugin.py | caiyongji/Anaconda-py36.5-tensorflow-built-env | f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2 | [
"PSF-2.0"
] | 26 | 2020-03-24T18:07:06.000Z | 2022-03-12T00:12:27.000Z | Lib/site-packages/skimage/io/_plugins/pil_plugin.py | caiyongji/Anaconda-py36.5-tensorflow-built-env | f4eb40b5ca3f49dfc929ff3ad2b4bb877e9663e2 | [
"PSF-2.0"
] | 3 | 2019-12-31T23:21:40.000Z | 2020-04-03T17:29:08.000Z | __all__ = ['imread', 'imsave']
import numpy as np
from PIL import Image
from ...util import img_as_ubyte, img_as_uint
def imread(fname, dtype=None, img_num=None, **kwargs):
"""Load an image from file.
Parameters
----------
fname : str or file
File name or file-like-object.
dtype : numpy ... | 29.861538 | 93 | 0.579341 |
8ab47b215dd213a094ad1c94dce6a5f882e00bd7 | 695 | py | Python | examples/tellurium-files/linearChain.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | 1 | 2019-06-19T04:40:33.000Z | 2019-06-19T04:40:33.000Z | examples/tellurium-files/linearChain.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | null | null | null | examples/tellurium-files/linearChain.py | ShaikAsifullah/distributed-tellurium | 007e9b3842b614edd34908c001119c6da1d41897 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Linear chain of reactions.
"""
from __future__ import print_function, division
import tellurium as te
model = '''
model feedback()
// Reactions:
J0: $X0 -> S1; (VM1 * (X0 - S1/Keq1))/(1 + X0 + S1 + S4^h);
J1: S1 -> S2; (10 * S1 - 2 * S2) / (1 + S1 + S2);
J2: S2 -> S3; (10 * S2... | 24.821429 | 64 | 0.515108 |
8ab58aaa336c1e253b3a0048b5e6954db5635335 | 276 | py | Python | backend/app/schemas/__init__.py | kommurisaikumar/savings-manager-server | ed699abddf3cecdd4056aaee0129fbb1ef3762f6 | [
"MIT"
] | null | null | null | backend/app/schemas/__init__.py | kommurisaikumar/savings-manager-server | ed699abddf3cecdd4056aaee0129fbb1ef3762f6 | [
"MIT"
] | null | null | null | backend/app/schemas/__init__.py | kommurisaikumar/savings-manager-server | ed699abddf3cecdd4056aaee0129fbb1ef3762f6 | [
"MIT"
] | null | null | null | from .users import User, UserCreate, UserUpdate
from .transactions import Transaction, TransactionCreate, TransactionUpdate
from .accounts import Account, AccountList, AccountSingle, AccountCreate, AccountUpdate
from .categories import Category, CategoryCreate, CategoryUpdate | 69 | 87 | 0.858696 |
8ab7c4d71edafc2000970ee8f5e485db6a4fa978 | 872 | py | Python | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/super/super_with_arguments.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 463 | 2015-01-15T08:17:42.000Z | 2022-03-28T15:10:20.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/super/super_with_arguments.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 52 | 2015-01-06T02:43:59.000Z | 2022-03-14T11:15:21.000Z | vimfiles/bundle/vim-python/submodules/pylint/tests/functional/s/super/super_with_arguments.py | ciskoinch8/vimrc | 5bf77a7e7bc70fac5173ab2e9ea05d7dda3e52b8 | [
"MIT"
] | 249 | 2015-01-07T22:49:49.000Z | 2022-03-18T02:32:06.000Z |
def method_accepting_cls(cls, self):
# Using plain `super()` is not valid here, since there's no `__class__` cell found
# (Exact exception would be 'RuntimeError: super(): __class__ cell not found')
# Instead, we expect to *not* see a warning about `super-with-arguments`.
# Explicitly passing `cl... | 24.222222 | 86 | 0.65711 |
8ab863848d8379f82bfc5f650de33e10615f3285 | 8,132 | py | Python | machine.py | yukti07/Dell_Hire_hack | 9422b7aaa0b96292191b4b880c0a8fb772fd1864 | [
"MIT"
] | null | null | null | machine.py | yukti07/Dell_Hire_hack | 9422b7aaa0b96292191b4b880c0a8fb772fd1864 | [
"MIT"
] | null | null | null | machine.py | yukti07/Dell_Hire_hack | 9422b7aaa0b96292191b4b880c0a8fb772fd1864 | [
"MIT"
] | null | null | null | import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import LabelEncoder
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
from flask import flash
import numpy as np
| 47.835294 | 405 | 0.684702 |
8ab8993b826c4cf13cc7b962623c2d00cc2adcf7 | 6,435 | py | Python | TM-GCN-master/experiment_bitcoin_baseline_link_prediction.py | OsmanMalik/TM-GCN | 31b19a538f264f6c30b5503ecefb497ee865b4d7 | [
"Apache-2.0"
] | 14 | 2020-11-04T17:10:19.000Z | 2022-03-04T07:48:22.000Z | TM-GCN-master/experiment_bitcoin_baseline_link_prediction.py | OsmanMalik/TM-GCN | 31b19a538f264f6c30b5503ecefb497ee865b4d7 | [
"Apache-2.0"
] | 2 | 2021-09-06T09:38:12.000Z | 2021-09-06T09:50:52.000Z | TensorGCN-master/experiment_bitcoin_baseline_link_prediction.py | NaimahmedNesaragi/TM-GCN | 275d057a7261d8e6b544dad66b7daa7943d11c4f | [
"Apache-2.0"
] | 6 | 2021-01-11T23:42:39.000Z | 2022-01-31T08:37:13.000Z | # This version of the bitcoin experiment imports data preprocessed in Matlab, and uses the GCN baseline
# The point of this script is to do link prediction
# Imports and aliases
import pickle
import torch as t
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.datasets as datas... | 45.638298 | 191 | 0.707537 |
8ab94a7177eff40dfe2d54daa4adb7bbd8788e95 | 1,084 | py | Python | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | elm_mnist/elm_mnist.py | ahara/-blog | 926ae4808ede6efb1e64381a19a210235a97ac36 | [
"MIT"
] | null | null | null | import cPickle
import numpy as np
from elm import ELMClassifier
from sklearn import linear_model
if __name__ == '__main__':
# Load data sets
train_x, train_y, val_x, val_y, test_x, test_y = get_datasets(load_mnist())
# Build ELM
cls = ELMClassifier(n_hidden=7000,
alpha=0.93,
... | 32.848485 | 85 | 0.621771 |
8abb81ca4107a0dafeae1ce248a3690886bc60c3 | 1,960 | py | Python | Coding_Part/bob.py | qizhu8/CSCI6230-HW02 | c889c0532db7ff4f25e134937469e5e6181416f0 | [
"Apache-2.0"
] | null | null | null | Coding_Part/bob.py | qizhu8/CSCI6230-HW02 | c889c0532db7ff4f25e134937469e5e6181416f0 | [
"Apache-2.0"
] | null | null | null | Coding_Part/bob.py | qizhu8/CSCI6230-HW02 | c889c0532db7ff4f25e134937469e5e6181416f0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python3
from PKC_Classes import NetworkUser, KDC
from DES import DES
from RSA_Class import RSA
import socket
import os
import sys
import threading
import time
if sys.version_info[0] < 3:
raise Exception("Must be using Python 3")
bob = NetworkUser('Alice', DES(), RSA(9973, ... | 26.849315 | 69 | 0.694388 |
8abbc734ea1294bef8b90bd4c5b933a5890bb4db | 10,257 | py | Python | proj/scripts/cluster/baselines/triplets_greyscale.py | zqma/IIC | 9d4e30b51535c6ca381389d9c22ce45be4d11883 | [
"MIT"
] | null | null | null | proj/scripts/cluster/baselines/triplets_greyscale.py | zqma/IIC | 9d4e30b51535c6ca381389d9c22ce45be4d11883 | [
"MIT"
] | null | null | null | proj/scripts/cluster/baselines/triplets_greyscale.py | zqma/IIC | 9d4e30b51535c6ca381389d9c22ce45be4d11883 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
import itertools
import os
import pickle
import sys
from datetime import datetime
import matplotlib
import numpy as np
import torch
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import proj.archs as archs
from proj.utils.cluster.general import config_to_... | 33.963576 | 82 | 0.632641 |
8abc0d6dcbf21ec8770db13b5b8c148d9b2c8d8e | 1,607 | py | Python | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 41 | 2019-11-28T16:58:41.000Z | 2022-01-28T21:11:16.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notification-api | b1c1064f291eb860b494c3fa65ac256ad70bf47c | [
"MIT"
] | 1,083 | 2019-07-08T12:57:24.000Z | 2022-03-08T18:53:40.000Z | migrations/versions/0084_add_job_stats.py | cds-snc/notifier-api | 90b385ec49efbaee7e607516fc7d9f08991af813 | [
"MIT"
] | 9 | 2020-01-24T19:56:43.000Z | 2022-01-27T21:36:53.000Z | """empty message
Revision ID: 0084_add_job_stats
Revises: 0083_add_perm_types_and_svc_perm
Create Date: 2017-05-12 13:16:14.147368
"""
# revision identifiers, used by Alembic.
revision = "0084_add_job_stats"
down_revision = "0083_add_perm_types_and_svc_perm"
import sqlalchemy as sa
from alembic import op
from sqlal... | 35.711111 | 96 | 0.683261 |
8abc2535fb59574434dff13ed4c596ed4d606f9e | 4,279 | py | Python | addons/twofactor/tests/test_models.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 11 | 2018-12-11T16:39:40.000Z | 2022-02-26T09:51:32.000Z | addons/twofactor/tests/test_models.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 52 | 2018-04-13T05:03:21.000Z | 2022-03-22T02:56:19.000Z | addons/twofactor/tests/test_models.py | tsukaeru/RDM-osf.io | 2dc3e539322b6110e51772f8bd25ebdeb8e12d0e | [
"Apache-2.0"
] | 16 | 2018-07-09T01:44:51.000Z | 2021-06-30T01:57:16.000Z | import unittest
from future.moves.urllib.parse import urlparse, urljoin, parse_qs
import pytest
from addons.twofactor.tests.utils import _valid_code
from nose.tools import (assert_equal, assert_false, assert_is_none,
assert_is_not_none, assert_true)
from osf_tests.factories import UserFactory
... | 32.416667 | 78 | 0.646646 |
8abd39aa48321431318051d54854247571fa2704 | 311 | py | Python | betterloader/standard_transforms.py | BinItAI/BetterLoader | 29ebcc22b53db6417a4b14d95f0a1e7f5afe7af8 | [
"MIT"
] | 39 | 2020-08-11T09:58:08.000Z | 2022-02-24T19:22:42.000Z | betterloader/standard_transforms.py | BinItAI/BetterLoader | 29ebcc22b53db6417a4b14d95f0a1e7f5afe7af8 | [
"MIT"
] | 21 | 2020-08-11T09:58:46.000Z | 2021-05-10T12:50:12.000Z | betterloader/standard_transforms.py | BinItAI/BetterLoader | 29ebcc22b53db6417a4b14d95f0a1e7f5afe7af8 | [
"MIT"
] | 2 | 2020-10-29T14:51:01.000Z | 2021-01-08T09:40:34.000Z | import numpy as np
from torchvision import transforms
np.random.seed(1) | 19.4375 | 37 | 0.678457 |
8abed448e30652e384272b8cc640eedca2d718cf | 1,708 | py | Python | lanedet/runner/utils/net_utils.py | ztjsw/lanedet | c957e1f70695e39063231612637e22fcad2769f5 | [
"Apache-2.0"
] | 1 | 2021-05-22T09:36:17.000Z | 2021-05-22T09:36:17.000Z | lanedet/runner/utils/net_utils.py | ztjsw/lanedet | c957e1f70695e39063231612637e22fcad2769f5 | [
"Apache-2.0"
] | null | null | null | lanedet/runner/utils/net_utils.py | ztjsw/lanedet | c957e1f70695e39063231612637e22fcad2769f5 | [
"Apache-2.0"
] | null | null | null | import torch
import os
from torch import nn
import numpy as np
import torch.nn.functional
from termcolor import colored
from .logger import get_logger
| 34.16 | 84 | 0.648712 |
8abf08c703d4b07df642c217bba0fae7c6cdc10b | 141 | py | Python | hexafuel_oil/hexafuel_oil_app/apps.py | zante95/Hexafuel-Oil | 41dc4c9d855c74d4bb7dd86f3ac3fb1db27b663b | [
"MIT"
] | null | null | null | hexafuel_oil/hexafuel_oil_app/apps.py | zante95/Hexafuel-Oil | 41dc4c9d855c74d4bb7dd86f3ac3fb1db27b663b | [
"MIT"
] | null | null | null | hexafuel_oil/hexafuel_oil_app/apps.py | zante95/Hexafuel-Oil | 41dc4c9d855c74d4bb7dd86f3ac3fb1db27b663b | [
"MIT"
] | null | null | null | from django.apps import AppConfig #pragma: no cover
| 23.5 | 56 | 0.77305 |
8ac004a4f19bb41d9cfa8a39529011d30c5a08dc | 5,455 | py | Python | main.py | jonodrew/matchex | 531e7cd1c328cb9dc34b601a06648bd2c3e709e6 | [
"MIT"
] | null | null | null | main.py | jonodrew/matchex | 531e7cd1c328cb9dc34b601a06648bd2c3e709e6 | [
"MIT"
] | null | null | null | main.py | jonodrew/matchex | 531e7cd1c328cb9dc34b601a06648bd2c3e709e6 | [
"MIT"
] | null | null | null | from __future__ import division
from timeit import default_timer as timer
import csv
import numpy as np
import itertools
from munkres import Munkres, print_matrix, make_cost_matrix
import sys
from classes import *
from functions import *
from math import sqrt
import Tkinter as tk
import tkFileDialog as filedialog
root... | 30.646067 | 88 | 0.698075 |
8ac00891cba917dcea99bd7701a43788bba03334 | 3,142 | py | Python | pip_info/setup.py | 95616ARG/SyReNN | 19abf589e84ee67317134573054c648bb25c244d | [
"MIT"
] | 36 | 2019-08-19T06:17:52.000Z | 2022-03-11T09:02:40.000Z | pip_info/setup.py | 95616ARG/SyReNN | 19abf589e84ee67317134573054c648bb25c244d | [
"MIT"
] | 8 | 2020-04-09T20:59:04.000Z | 2022-03-11T23:56:50.000Z | pip_info/setup.py | 95616ARG/SyReNN | 19abf589e84ee67317134573054c648bb25c244d | [
"MIT"
] | 4 | 2021-01-13T11:17:55.000Z | 2021-06-28T19:36:04.000Z | """Setup script for PySyReNN.
Adapted from:
https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/
"""
import codecs
import os
import re
from setuptools import setup, find_packages
###################################################################
NAME = "pysyrenn"
PACKAGES = [
"syrenn_prot... | 30.803922 | 77 | 0.595799 |
8ac046daf66291ca73b420ce81a183abc787e157 | 51 | py | Python | neptune/generated/swagger_client/path_constants.py | jiji-online/neptune-cli | 50cf680a80d141497f9331ab7cdaee49fcb90b0c | [
"Apache-2.0"
] | null | null | null | neptune/generated/swagger_client/path_constants.py | jiji-online/neptune-cli | 50cf680a80d141497f9331ab7cdaee49fcb90b0c | [
"Apache-2.0"
] | null | null | null | neptune/generated/swagger_client/path_constants.py | jiji-online/neptune-cli | 50cf680a80d141497f9331ab7cdaee49fcb90b0c | [
"Apache-2.0"
] | null | null | null | REST_PATH = u""
WS_PATH = u"/api/notifications/v1"
| 17 | 34 | 0.705882 |
8ac1dd9d7bf008d9dc5cac34b41e0856589877ec | 358 | py | Python | load/__init__.py | andrewp-as-is/load.py | 6ad643d82379a63f9c79d0dd994101ff0b490183 | [
"Unlicense"
] | null | null | null | load/__init__.py | andrewp-as-is/load.py | 6ad643d82379a63f9c79d0dd994101ff0b490183 | [
"Unlicense"
] | null | null | null | load/__init__.py | andrewp-as-is/load.py | 6ad643d82379a63f9c79d0dd994101ff0b490183 | [
"Unlicense"
] | null | null | null | __all__ = ["load"]
import imp
import importlib
def load(name, path):
"""Load and initialize a module implemented as a Python source file and return its module object"""
if hasattr(importlib, "machinery"):
loader = importlib.machinery.SourceFileLoader(name, path)
return loader.load_module()
... | 25.571429 | 103 | 0.709497 |
8ac22e55a9c9778c66e3a1d86342cccdc465c6de | 4,117 | py | Python | pygears/svgen/modules/sieve.py | Risto97/pygears | 19393e85101a16762cb3bbbf3010946ef69217f2 | [
"MIT"
] | null | null | null | pygears/svgen/modules/sieve.py | Risto97/pygears | 19393e85101a16762cb3bbbf3010946ef69217f2 | [
"MIT"
] | null | null | null | pygears/svgen/modules/sieve.py | Risto97/pygears | 19393e85101a16762cb3bbbf3010946ef69217f2 | [
"MIT"
] | null | null | null | import itertools
from pygears.common.sieve import sieve
from pygears.svgen.inst import SVGenInstPlugin
from pygears.svgen.svmod import SVModuleGen
from functools import partial
from pygears.svgen.svgen import SVGenPlugin
from pygears.svgen.util import svgen_visitor
from pygears.core.hier_node import HierVisitorBase
fr... | 32.674603 | 83 | 0.589264 |
8ac2a36b9aed8734fe00d975f21caf0ecc7d8aef | 5,461 | py | Python | examples/my_model_test.py | gzpyy/qlib | 56fdd028c8296c75f2a32bdb51869f010dd4f6d1 | [
"MIT"
] | null | null | null | examples/my_model_test.py | gzpyy/qlib | 56fdd028c8296c75f2a32bdb51869f010dd4f6d1 | [
"MIT"
] | null | null | null | examples/my_model_test.py | gzpyy/qlib | 56fdd028c8296c75f2a32bdb51869f010dd4f6d1 | [
"MIT"
] | null | null | null | #encoding=utf-8
import qlib
import pandas as pd
import pickle
import xgboost as xgb
import numpy as np
import re
from qlib.constant import REG_US
from qlib.utils import exists_qlib_data, init_instance_by_config
from qlib.workflow import R
from qlib.workflow.record_temp import SignalRecord, PortAnaRecord
from qlib.utils... | 33.29878 | 190 | 0.655741 |
8ac2e2407dd1965a468039faf082dce81ec81f6c | 109 | py | Python | realfastapi/routes/endpoints/default.py | wborbajr/RealFastAPI | d97ca994c4c164387632cda814e80c026435a9f7 | [
"MIT"
] | null | null | null | realfastapi/routes/endpoints/default.py | wborbajr/RealFastAPI | d97ca994c4c164387632cda814e80c026435a9f7 | [
"MIT"
] | null | null | null | realfastapi/routes/endpoints/default.py | wborbajr/RealFastAPI | d97ca994c4c164387632cda814e80c026435a9f7 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
router = APIRouter()
| 12.111111 | 29 | 0.669725 |
8ac30fc95afe68d34f716111b4aac384fefa954a | 2,291 | py | Python | graphzoom/embed_methods/dgi/execute.py | junhoher/GraphZoom | 5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a | [
"MIT"
] | 16 | 2019-10-18T06:31:29.000Z | 2021-09-23T12:46:19.000Z | graphzoom/embed_methods/dgi/execute.py | junhoher/GraphZoom | 5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a | [
"MIT"
] | 7 | 2019-10-18T06:36:32.000Z | 2022-02-10T01:37:04.000Z | graphzoom/embed_methods/dgi/execute.py | junhoher/GraphZoom | 5073b49a34badf7bc6c25bd2a6cc6c78b4ee7d5a | [
"MIT"
] | 4 | 2019-11-15T12:47:11.000Z | 2021-02-15T07:26:24.000Z | import numpy as np
import scipy.sparse as sp
import torch
import torch.nn as nn
import networkx as nx
import time
from embed_methods.dgi.models import DGI, LogReg
from embed_methods.dgi.utils import process
| 24.634409 | 109 | 0.656482 |
8ac447e8327f451aa635702a06c66e0d74dc0eb1 | 1,668 | py | Python | tools/ci/deploy_to_github_release.py | rodb70/RDMnet | 94d17e1dfda2d1f56b120f6342231c43bf6862b0 | [
"Apache-2.0"
] | 30 | 2018-07-16T15:54:19.000Z | 2021-11-21T21:17:36.000Z | tools/ci/deploy_to_github_release.py | rodb70/RDMnet | 94d17e1dfda2d1f56b120f6342231c43bf6862b0 | [
"Apache-2.0"
] | 27 | 2019-04-12T22:45:25.000Z | 2021-08-13T15:20:04.000Z | tools/ci/deploy_to_github_release.py | rodb70/RDMnet | 94d17e1dfda2d1f56b120f6342231c43bf6862b0 | [
"Apache-2.0"
] | 12 | 2019-06-28T19:28:58.000Z | 2021-11-17T12:10:44.000Z | """Deploys binaries to a GitHub release given the specified tag name."""
import argparse
import os
import time
from github import Github
THIS_FILE_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
GH_REPO_IDENT = "ETCLabs/RDMnet"
GH_USERNAME = "svc-etclabs"
GH_API_TOKEN = os.getenv("SVC_ETCLABS_REPO_TOKEN")
de... | 29.785714 | 82 | 0.682854 |
8ac489649919e5a666b90d4e91cad4bcbdd5e983 | 1,513 | py | Python | matchms/filtering/add_losses.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | matchms/filtering/add_losses.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | matchms/filtering/add_losses.py | maximskorik/matchms | 922f5afaef123a793194bdd74391027477cbb844 | [
"Apache-2.0"
] | null | null | null | import logging
import numpy
from ..Fragments import Fragments
from ..typing import SpectrumType
logger = logging.getLogger("matchms")
def add_losses(spectrum_in: SpectrumType, loss_mz_from=0.0, loss_mz_to=1000.0) -> SpectrumType:
"""Derive losses based on precursor mass.
Parameters
----------
spect... | 35.186047 | 109 | 0.639128 |
8ac8388c155952144c99a47c3c6e38eeff168835 | 10,829 | py | Python | cornflow_client/schema/dictSchema.py | baobabsoluciones/cornflow-client | f9996f0b841885d26639cb63c8ba6090387de57f | [
"MIT"
] | 3 | 2021-05-12T11:21:26.000Z | 2022-02-22T19:23:46.000Z | cornflow_client/schema/dictSchema.py | baobabsoluciones/cornflow-client | f9996f0b841885d26639cb63c8ba6090387de57f | [
"MIT"
] | 17 | 2021-03-14T17:09:46.000Z | 2022-02-28T19:12:37.000Z | cornflow_client/schema/dictSchema.py | baobabsoluciones/cornflow-client | f9996f0b841885d26639cb63c8ba6090387de57f | [
"MIT"
] | 2 | 2020-10-03T20:00:19.000Z | 2022-03-24T11:52:22.000Z | import re
from .dict_functions import gen_schema, ParameterSchema, sort_dict
from cornflow_client.constants import JSON_TYPES, DATASCHEMA
| 35.739274 | 117 | 0.559793 |
8ac83a9b0ffc4d89a43ceecc29a99652f8c7e2f2 | 5,869 | py | Python | rspub/util/test/test_resourcefilter.py | EHRI/rspub-core | 1f6b0c84825037b7df442ae0d258d5d897ff6905 | [
"Apache-2.0"
] | 1 | 2017-02-01T15:03:29.000Z | 2017-02-01T15:03:29.000Z | rspub/util/test/test_resourcefilter.py | EHRI/rspub-core | 1f6b0c84825037b7df442ae0d258d5d897ff6905 | [
"Apache-2.0"
] | 3 | 2017-02-15T12:25:22.000Z | 2017-04-10T13:51:54.000Z | rspub/util/test/test_resourcefilter.py | EHRI/rspub-core | 1f6b0c84825037b7df442ae0d258d5d897ff6905 | [
"Apache-2.0"
] | 3 | 2017-02-15T09:04:39.000Z | 2021-06-21T09:01:59.000Z | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import platform
import unittest
import rspub.util.resourcefilter as rf
| 35.143713 | 80 | 0.645596 |
8ac88b2d708e6c6e6407bbbd9d9661fb3c6143fd | 495 | py | Python | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | molecule/ubuntu/tests/test_grafana.py | fiaasco/grafana | 6a5963e43033d88b5bb4760d47755da1069ec26b | [
"MIT"
] | null | null | null | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_package(host):
""" check if packages are installed
"""
assert host.package('grafana').is_installed
def test_service(host)... | 24.75 | 63 | 0.739394 |
8ac941eb3b632a517433fbaf339a5dae04e7e556 | 6,534 | py | Python | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | 1 | 2020-11-20T07:09:00.000Z | 2020-11-20T07:09:00.000Z | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | null | null | null | heatsink.py | sww1235/heatsink-calc | 3f28ac33b629ab5a12ddea4964f6dbe7dbc3e759 | [
"MIT"
] | null | null | null | """Class representations of heatsinks."""
import math
from scipy import constants as const
from materials import Aluminium_6063 as aluminium
| 44.148649 | 78 | 0.520814 |
8ac9b0e158167d7f3345bc07a8dd57de92905440 | 66 | py | Python | scripts/get_file_name_as_variable.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | scripts/get_file_name_as_variable.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | scripts/get_file_name_as_variable.py | amin-henteti/airflow-dags | eb1e9a1a77d3c868e031cbe7420eae952ce5e767 | [
"Apache-2.0"
] | null | null | null | import inspect
foo() | 13.2 | 31 | 0.621212 |
8ac9d8732422cf52f01f2fd448863e8bbd5e7b4d | 2,879 | py | Python | sovrin/test/did/helper.py | sovrin-foundation/old-sovrin | d4e705054b7252c62fea00114060035c6eb314a4 | [
"Apache-2.0"
] | 3 | 2017-07-19T14:26:31.000Z | 2020-05-16T16:09:37.000Z | sovrin/test/did/helper.py | sovrin-foundation/old-sovrin | d4e705054b7252c62fea00114060035c6eb314a4 | [
"Apache-2.0"
] | null | null | null | sovrin/test/did/helper.py | sovrin-foundation/old-sovrin | d4e705054b7252c62fea00114060035c6eb314a4 | [
"Apache-2.0"
] | 3 | 2017-10-28T08:19:00.000Z | 2021-06-06T10:48:55.000Z | import base58
from plenum.common.signer_did import DidSigner
from plenum.common.verifier import DidVerifier
from plenum.common.eventually import eventually
from plenum.test.helper import assertEquality
from sovrin.common.identity import Identity
MsgForSigning = {'sender': 'Mario', 'msg': 'Lorem ipsum'}
| 35.109756 | 79 | 0.733241 |
8aca0af3be9ee2ea88050772027c439546656c4a | 3,651 | py | Python | tests/test_EdiblesSpectrum.py | jancami/edibles | 51263b24c5e8aef786692011289b906a810ad2f7 | [
"MIT"
] | 8 | 2020-04-15T10:44:48.000Z | 2021-06-21T15:58:19.000Z | tests/test_EdiblesSpectrum.py | jancami/edibles | 51263b24c5e8aef786692011289b906a810ad2f7 | [
"MIT"
] | 100 | 2020-05-08T13:20:41.000Z | 2022-01-11T20:04:52.000Z | tests/test_EdiblesSpectrum.py | jancami/edibles | 51263b24c5e8aef786692011289b906a810ad2f7 | [
"MIT"
] | 8 | 2020-05-27T00:39:39.000Z | 2021-06-23T14:07:16.000Z | import astropy
import datetime
import numpy as np
from edibles.utils.edibles_spectrum import EdiblesSpectrum
if __name__ == "__main__":
filename = "HD170740_w860_redl_20140915_O12.fits"
testEdiblesSpectrum(filename=filename)
| 34.443396 | 80 | 0.707751 |
8acad105c230508195bd3af6419dc374a38241b0 | 6,670 | py | Python | swift/common/ondisk.py | citrix-openstack-build/swift | 34340ddf49a84f3b3398012c2b60be1215033559 | [
"Apache-2.0"
] | 1 | 2016-03-14T23:38:37.000Z | 2016-03-14T23:38:37.000Z | swift/common/ondisk.py | vimeo/swift | 5eea524d3ea6d29c2b6f34927c0130090e7ed44d | [
"Apache-2.0"
] | null | null | null | swift/common/ondisk.py | vimeo/swift | 5eea524d3ea6d29c2b6f34927c0130090e7ed44d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2010-2013 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 36.054054 | 79 | 0.625487 |
8acb675f5ab5c65b02ffbf255720c5176625a170 | 1,923 | py | Python | .OLD_FILES/dossiers2_old1/custom/cache.py | KIHestad/WoT-Dossier-Parser-Create-Struct | 9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e | [
"MIT"
] | null | null | null | .OLD_FILES/dossiers2_old1/custom/cache.py | KIHestad/WoT-Dossier-Parser-Create-Struct | 9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e | [
"MIT"
] | null | null | null | .OLD_FILES/dossiers2_old1/custom/cache.py | KIHestad/WoT-Dossier-Parser-Create-Struct | 9eadeeead59b7b6cf78dc6a1e1e89fe2dffb260e | [
"MIT"
] | 2 | 2021-11-10T19:12:57.000Z | 2022-03-13T10:04:48.000Z | # uncompyle6 version 2.11.3
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)]
# Embedded file name: scripts/common/dossiers2/custom/cache.py
import nations
from items import vehicles
_g_cache = {} | 40.0625 | 148 | 0.693708 |
8acb71f44d08977a58d847a4d25a262b4cc3e603 | 35,471 | py | Python | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | 2 | 2019-02-13T11:30:08.000Z | 2021-02-14T04:20:44.000Z | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | src/parser.py | harkiratbehl/PyGM | e0a4e0b865afb607dfa0525ca386bfbe77bb6508 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from code import TreeNode
from code import ThreeAddressCode
from lexer import tokens
from random import *
from symbol_table import SymbolTable
from symbol_table import SymbolTableNode
import logging
import ply.lex as lex
import ply.yacc as yacc
import sys
from codegen import convert_tac
from code... | 29.050778 | 172 | 0.5361 |
8acb8cd4dc2d6e35f38c30493bd708782f4c4cfd | 3,400 | py | Python | render_video.py | frostburn/branch-cut-mandelbrot | 26c4d2db75a32b9190d40a09ebfb8a67fc4829e8 | [
"MIT"
] | null | null | null | render_video.py | frostburn/branch-cut-mandelbrot | 26c4d2db75a32b9190d40a09ebfb8a67fc4829e8 | [
"MIT"
] | null | null | null | render_video.py | frostburn/branch-cut-mandelbrot | 26c4d2db75a32b9190d40a09ebfb8a67fc4829e8 | [
"MIT"
] | null | null | null | import argparse
import imageio
import progressbar
from _routines import ffi, lib
from pylab import *
from random import Random
RESOLUTIONS = {
"2160p": (3840, 2160),
"1440p": (2560, 1440),
"1080p": (1920, 1080),
"720p": (1280, 720),
"480p": (854, 480),
"360p": (640, 360),
"240p": (426, 240)... | 34.693878 | 113 | 0.627059 |
8accb038864b63aa2e837e9fa4c1312771a520cd | 1,238 | py | Python | tests/mqtt/test_subscribe.py | smurfix/hbmqtt | 914440cd18b43fbe56496a73bb1259132811c539 | [
"MIT"
] | null | null | null | tests/mqtt/test_subscribe.py | smurfix/hbmqtt | 914440cd18b43fbe56496a73bb1259132811c539 | [
"MIT"
] | null | null | null | tests/mqtt/test_subscribe.py | smurfix/hbmqtt | 914440cd18b43fbe56496a73bb1259132811c539 | [
"MIT"
] | null | null | null | # Copyright (c) 2015 Nicolas JOUANIN
#
# See the file license.txt for copying permission.
import anyio
import unittest
from hbmqtt.mqtt.subscribe import SubscribePacket, SubscribePayload
from hbmqtt.mqtt.packet import PacketIdVariableHeader
from hbmqtt.mqtt.constants import QOS_1, QOS_2
from hbmqtt.adapters import Buf... | 35.371429 | 83 | 0.671244 |
8ace9182901a299fe90834f06095914657f35b9c | 8,392 | py | Python | examples/cmrc2018_example/main.trainer.py | fangd123/TextBrewer | 866f4363d9bd964f00aa60b0db5e9252a7905448 | [
"Apache-2.0"
] | 1,121 | 2020-03-02T02:24:00.000Z | 2022-03-31T06:33:49.000Z | examples/cmrc2018_example/main.trainer.py | fangd123/TextBrewer | 866f4363d9bd964f00aa60b0db5e9252a7905448 | [
"Apache-2.0"
] | 85 | 2020-03-04T09:46:17.000Z | 2022-03-30T09:33:35.000Z | examples/cmrc2018_example/main.trainer.py | fangd123/TextBrewer | 866f4363d9bd964f00aa60b0db5e9252a7905448 | [
"Apache-2.0"
] | 200 | 2020-03-02T07:23:21.000Z | 2022-03-30T08:26:24.000Z | import logging
logging.basicConfig(
format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
datefmt='%Y/%m/%d %H:%M:%S',
level=logging.INFO,
)
logger = logging.getLogger("Main")
import os,random
import numpy as np
import torch
from processing import convert_examples_to_features, read_squad_exam... | 45.362162 | 130 | 0.674094 |
8ad1153bc4951b73c09bcd9a5a044f2aeefb38fb | 13,832 | py | Python | gym/gym/benchmarks/__init__.py | youngwoon/DnC-RL-Tensorflow | 02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f | [
"MIT"
] | 9 | 2019-02-01T22:45:57.000Z | 2022-01-08T16:13:24.000Z | gym/gym/benchmarks/__init__.py | youngwoon/DnC-RL-Tensorflow | 02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f | [
"MIT"
] | null | null | null | gym/gym/benchmarks/__init__.py | youngwoon/DnC-RL-Tensorflow | 02dc2750fe301a01e3bd68b1e56fc7fd754c2f3f | [
"MIT"
] | 1 | 2020-04-07T20:09:48.000Z | 2020-04-07T20:09:48.000Z | # EXPERIMENTAL: all may be removed soon
from gym.benchmarks import scoring
from gym.benchmarks.registration import benchmark_spec, register_benchmark, registry, register_benchmark_view # imports used elsewhere
register_benchmark(
id='Atari200M',
scorer=scoring.TotalReward(),
name='Atari200M',
view_gr... | 28.286299 | 135 | 0.510049 |
8ad19946c7489c1b3a99e589e195e1b73244786f | 9,538 | py | Python | hypnettorch/data/timeseries/preprocess_audioset.py | pennfranc/hypnettorch | 69d4c455028289ebe3d040af0955d909a9fef3ae | [
"Apache-2.0"
] | 31 | 2021-10-20T19:38:41.000Z | 2022-03-28T08:23:32.000Z | hypnettorch/data/timeseries/preprocess_audioset.py | pennfranc/hypnettorch | 69d4c455028289ebe3d040af0955d909a9fef3ae | [
"Apache-2.0"
] | 2 | 2022-02-14T08:25:43.000Z | 2022-03-26T18:10:52.000Z | hypnettorch/data/timeseries/preprocess_audioset.py | pennfranc/hypnettorch | 69d4c455028289ebe3d040af0955d909a9fef3ae | [
"Apache-2.0"
] | 5 | 2021-11-04T10:10:29.000Z | 2022-03-21T09:00:22.000Z | #!/usr/bin/env python3
# Copyright 2020 Benjamin Ehret
#
# 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 ... | 32.889655 | 80 | 0.68463 |
8ad1bc3d3021f0317b2b318ccf03355bd2585dd4 | 13,844 | py | Python | Posts/viewsAPI.py | CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution | 63c0ba2a03f0b462e3673ce7a4bf6bae7999440c | [
"Apache-2.0"
] | 3 | 2021-12-11T13:43:56.000Z | 2022-03-31T02:36:05.000Z | Posts/viewsAPI.py | CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution | 63c0ba2a03f0b462e3673ce7a4bf6bae7999440c | [
"Apache-2.0"
] | 9 | 2021-10-01T22:46:57.000Z | 2021-12-16T18:01:31.000Z | Posts/viewsAPI.py | CMPUT404-Fa21-Organization/CMPUT404-Project-Social-Distribution | 63c0ba2a03f0b462e3673ce7a4bf6bae7999440c | [
"Apache-2.0"
] | 2 | 2021-12-16T16:37:10.000Z | 2021-12-16T20:30:12.000Z | from django.conf import settings
from django.core import serializers
from django.utils import timezone
import requests
from Posts.commentModel import Comments
#from Posts.commentView import add_Comment
from rest_framework import status
from rest_framework.decorators import api_view, authentication_classes, permission_c... | 38.455556 | 306 | 0.621063 |
8ad1ee45a7daa21c8e394ff77552f61ad841514d | 3,753 | py | Python | workers/tests/test_array_element.py | Open-EO/openeo-sentinelhub-python-driver | 92f990f098065ffb658eba6dca291dd1d5fc70f2 | [
"Apache-2.0"
] | 2 | 2019-12-03T12:49:47.000Z | 2020-10-25T20:14:39.000Z | workers/tests/test_array_element.py | Open-EO/openeo-sentinelhub-python-driver | 92f990f098065ffb658eba6dca291dd1d5fc70f2 | [
"Apache-2.0"
] | 5 | 2019-12-03T10:32:48.000Z | 2020-10-09T13:07:39.000Z | workers/tests/test_array_element.py | Open-EO/openeo-sentinelhub-python-driver | 92f990f098065ffb658eba6dca291dd1d5fc70f2 | [
"Apache-2.0"
] | 4 | 2020-03-06T14:51:52.000Z | 2020-11-24T10:30:18.000Z | import pytest
import sys, os
import xarray as xr
import numpy as np
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import process
from process._common import ProcessArgumentInvalid, ProcessArgumentRequired
###################################
# tests:
##################################... | 40.354839 | 145 | 0.662137 |
8ad221c93a5fce8d825d0b6b80fc2f401b373d9b | 7,627 | py | Python | gn/gn_to_bp.py | despairblue/esy-skia | 1c81aac298602f8e872c1079db92868199b6394f | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | gn/gn_to_bp.py | despairblue/esy-skia | 1c81aac298602f8e872c1079db92868199b6394f | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | gn/gn_to_bp.py | despairblue/esy-skia | 1c81aac298602f8e872c1079db92868199b6394f | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | #!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Generate Android.bp for Skia from GN configuration.
import json
import os
import pprint
import string
import subprocess
import tempfile
import gn_to_bp_utils
... | 25.006557 | 78 | 0.556051 |
8ad263d1cb0c4c04603f5f92c314ea18d8d73526 | 1,681 | py | Python | python/ray/autoscaler/tags.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 21,382 | 2016-09-26T23:12:52.000Z | 2022-03-31T21:47:45.000Z | python/ray/autoscaler/tags.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 19,689 | 2016-09-17T08:21:25.000Z | 2022-03-31T23:59:30.000Z | python/ray/autoscaler/tags.py | firebolt55439/ray | 215300b070628c06f0106906fc6c03bd70ebf140 | [
"Apache-2.0"
] | 4,114 | 2016-09-23T18:54:01.000Z | 2022-03-31T15:07:32.000Z | """The Ray autoscaler uses tags/labels to associate metadata with instances."""
# Tag for the name of the node
TAG_RAY_NODE_NAME = "ray-node-name"
# Tag for the kind of node (e.g. Head, Worker). For legacy reasons, the tag
# value says 'type' instead of 'kind'.
TAG_RAY_NODE_KIND = "ray-node-type"
NODE_KIND_HEAD = "he... | 40.02381 | 79 | 0.781678 |
8ad27d34811f9ef90b1af846c18b262998179e76 | 1,523 | py | Python | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | tests/generation_test.py | stefan-feltmann/lands | b2f1fc3aab4895763160a135d085a17dceb5f58e | [
"MIT"
] | null | null | null | import unittest
from worldengine.plates import Step, center_land, world_gen
from worldengine.world import World
from tests.draw_test import TestBase
if __name__ == '__main__':
unittest.main()
| 35.418605 | 80 | 0.690085 |
8ad69b4670dd35b6830ae32d5cbb71d9e32dff45 | 1,427 | py | Python | tests/test_models/test_components/test_discriminators/test_light_cnn.py | ChenShuwei1001/mmediting | 285e629fe9da8a13c7538a6bb3347e8870cd7201 | [
"Apache-2.0"
] | null | null | null | tests/test_models/test_components/test_discriminators/test_light_cnn.py | ChenShuwei1001/mmediting | 285e629fe9da8a13c7538a6bb3347e8870cd7201 | [
"Apache-2.0"
] | 1 | 2021-08-05T16:20:39.000Z | 2021-08-05T16:20:39.000Z | tests/test_models/test_components/test_discriminators/test_light_cnn.py | ChenShuwei1001/mmediting | 285e629fe9da8a13c7538a6bb3347e8870cd7201 | [
"Apache-2.0"
] | null | null | null | import pytest
import torch
from mmedit.models.builder import build_component
from mmedit.models.components.discriminators.light_cnn import MaxFeature
| 27.980392 | 72 | 0.613174 |
8ad728c2bc84ac4630b400804d13c8940597431e | 4,727 | py | Python | src/consumer.py | ssichynskyi/web_metrics_posting | 26f104d2fdf31c2d029bac5a4d5337db42df86f5 | [
"MIT"
] | null | null | null | src/consumer.py | ssichynskyi/web_metrics_posting | 26f104d2fdf31c2d029bac5a4d5337db42df86f5 | [
"MIT"
] | null | null | null | src/consumer.py | ssichynskyi/web_metrics_posting | 26f104d2fdf31c2d029bac5a4d5337db42df86f5 | [
"MIT"
] | null | null | null | import json
import logging
from typing import Iterable
from kafka import KafkaConsumer
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
# I've used this example:
# https://github.com/aiven/aiven-examples/blob/master/kafka/python/consumer_example.py
# as well as Aiven Kafka tutorials
| 36.643411 | 97 | 0.610324 |
76d15f9d93efb01c92547e696339173cf885a335 | 18,576 | py | Python | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null | pp2_model.py | BetterManlinfeng/hyperclasspptwo | 053e9cf8445911e285ac723bdfbceb1cb384ed2e | [
"Apache-2.0"
] | null | null | null |
from tensorflow.keras import *
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers, Sequential,regularizers
from tensorflow.keras.layers import Dropout
# from tensorflow.keras import *
# 3x3kernel_initializer='he_normal','glorot_normal'
from tensorflow.python.keras.... | 39.02521 | 191 | 0.596307 |
76d272f048a94a1ab146a49618ff07c96686a509 | 3,364 | py | Python | medi/inference/utils.py | yuan-xy/medi | ffa416b73eb2fbffbae7a27b6eccc267b061ed0f | [
"MIT"
] | 3 | 2020-05-27T08:42:26.000Z | 2021-12-04T08:54:08.000Z | medi/inference/utils.py | yuan-xy/medi | ffa416b73eb2fbffbae7a27b6eccc267b061ed0f | [
"MIT"
] | null | null | null | medi/inference/utils.py | yuan-xy/medi | ffa416b73eb2fbffbae7a27b6eccc267b061ed0f | [
"MIT"
] | null | null | null | """ A universal module with functions / classes without dependencies. """
import sys
import contextlib
import functools
import re
import os
from medi._compatibility import reraise
_sep = os.path.sep
if os.path.altsep is not None:
_sep += os.path.altsep
_path_re = re.compile(r'(?:\.[^{0}]+|[{0}]__init__\.py)$'.fo... | 29 | 82 | 0.671819 |
76d2dd0a16c26b25219d0d5220bf5e490de12769 | 1,627 | py | Python | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 16 | 2017-03-15T18:00:35.000Z | 2018-07-30T14:44:53.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 40 | 2017-03-29T20:04:25.000Z | 2019-10-21T16:56:15.000Z | run.py | Bioconductor/bioc_git_transition | 9ca29f9e8058b755163e12bf9324ec1063d0182d | [
"MIT"
] | 4 | 2017-05-08T11:39:07.000Z | 2017-08-17T14:18:03.000Z | """Bioconductor run git transition code.
This module assembles the classes for the SVN --> Git transition
can be run in a sequential manner.
It runs the following aspects fo the Bioconductor transition.
Note: Update the SVN dump
1. Run Bioconductor Software package transition
2. Run Bioconductor Experiment Data pac... | 30.12963 | 69 | 0.754149 |
76d39eed393350171c588f61022e00d384bb01c9 | 53,515 | py | Python | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | third_party/google-endpoints/dogpile/cache/region.py | tingshao/catapult | a8fe19e0c492472a8ed5710be9077e24cc517c5c | [
"BSD-3-Clause"
] | 698 | 2015-06-02T19:18:35.000Z | 2022-03-29T16:57:15.000Z | from __future__ import with_statement
from .. import Lock, NeedRegenerationException
from ..util import NameRegistry
from . import exception
from ..util import PluginLoader, memoized_property, coerce_string_conf
from .util import function_key_generator, function_multi_key_generator
from .api import NO_VALUE, CachedValu... | 36.429544 | 82 | 0.606652 |
76d437c1b037e1c3fe1a171bd9eb231c53d36fc1 | 645 | py | Python | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | projectparallelprogrammeren/codesimulatie.py | fury106/ProjectParallelProgrammeren | fd3c198edaca5bcb19d8e665561e8cd14824e894 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Module projectparallelprogrammeren.codesimulatie
=================================================================
Deze module simuleert alles.
"""
import projectparallelprogrammeren
def simulatie():
"""
Deze functie voert alle versies uit zodat deze vergeleken kunnen worden qua timi... | 23.035714 | 84 | 0.674419 |
76d4b9d4643322713c59c30a22d968f034c3d591 | 2,361 | py | Python | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 32 | 2021-01-18T03:52:17.000Z | 2022-02-17T20:43:39.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 12 | 2021-02-06T08:12:08.000Z | 2021-12-11T23:17:41.000Z | test/test_aes.py | haruhi-dl/haruhi-dl | 0526e2add4c263209cad55347efa9a2dfe6c3fa6 | [
"Unlicense"
] | 6 | 2021-01-29T16:46:31.000Z | 2022-01-20T18:40:03.000Z | #!/usr/bin/env python
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from haruhi_dl.aes import aes_decrypt, aes_encrypt, aes_cbc_decrypt, aes_cbc_encrypt, aes_decrypt_text
from haruh... | 36.890625 | 102 | 0.671326 |
76d6a858fdb2f760a40ddaceed8b3a0b06e85a87 | 14,566 | py | Python | layouts/layout_simulation_procedure.py | KEHUIYAO/coral-sampling-tool | 731cc22fbf5e4045e894b894547ad52c270e3fb1 | [
"MIT"
] | 5 | 2022-03-29T04:41:22.000Z | 2022-03-29T12:17:35.000Z | layouts/layout_simulation_procedure.py | KEHUIYAO/coral-sampling-tool | 731cc22fbf5e4045e894b894547ad52c270e3fb1 | [
"MIT"
] | null | null | null | layouts/layout_simulation_procedure.py | KEHUIYAO/coral-sampling-tool | 731cc22fbf5e4045e894b894547ad52c270e3fb1 | [
"MIT"
] | null | null | null | import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
def generate_dropdown_selection():
"return a Div containing the dropdown selection box"
return dcc.Dropdown(
id='dropdown_select_process',
style={"display": "none"},
options=[... | 49.376271 | 1,301 | 0.506316 |
76d73eb99aeff1e081d5c5783ce96e09453f8979 | 4,046 | py | Python | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | 2 | 2020-03-03T15:29:50.000Z | 2022-02-21T12:45:24.000Z | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | null | null | null | tests/unit/detection/test_detection_notebooks.py | titipakorn/computervision-recipes | 815435763c0cdce991b7511fd8d39f71c64ccea8 | [
"MIT"
] | 2 | 2020-05-06T14:07:00.000Z | 2022-03-21T19:54:32.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# This test is based on the test suite implemented for Recommenders project
# https://github.com/Microsoft/Recommenders/tree/master/tests
import papermill as pm
import pytest
import scrapbook as sb
from utils_cv.common.data... | 29.532847 | 75 | 0.686357 |
76d787aa0fb3effb59ce8288a064c7de0d40a573 | 524 | py | Python | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | configs/HDR/hdr/retinanet_r50_fpn_1x_coco_hdr_minmax_glob_gamma_2.py | ismailkocdemir/mmdetection | 4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823 | [
"Apache-2.0"
] | null | null | null | _base_ = [
'../retinanet_r50_fpn_1x_coco.py',
'../../_base_/datasets/hdr_detection_minmax_glob_gamma.py',
]
# optimizer
# lr is set for a batch size of 8
optimizer = dict(type='SGD', lr=0.0005, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None) # dict(grad_clip=dict(max_norm=35, norm_t... | 26.2 | 88 | 0.694656 |