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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be0fe0b9b27dc32e6433b7115d2cc69a3736598b | 362 | py | Python | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 128 | 2021-03-04T21:54:04.000Z | 2022-03-17T22:53:20.000Z | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 4 | 2021-03-07T21:18:12.000Z | 2021-09-24T13:09:39.000Z | custom_components/snowtire/__init__.py | borys-kupar/smart-home | f9c5ac949106e09278b97f49d5e08f0d495b24ef | [
"MIT"
] | 15 | 2021-03-05T07:29:31.000Z | 2022-03-31T10:07:06.000Z | #
# Copyright (c) 2020, Andrey "Limych" Khrolenok <andrey@khrolenok.ru>
# Creative Commons BY-NC-SA 4.0 International Public License
# (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/)
#
"""
The Snowtire binary sensor.
For more details about this platform, please refer to the documentation at
h... | 30.166667 | 74 | 0.743094 |
be0fff91b15ea92d0c10da9f061370eeda2b8af8 | 23,079 | py | Python | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 3,019 | 2015-01-04T23:19:03.000Z | 2022-03-31T12:55:46.000Z | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 818 | 2015-01-05T10:15:57.000Z | 2022-03-07T19:30:28.000Z | tests/test_bayes_classifier.py | manishgit138/pomegranate | 3457dcefdd623483b8efec7e9d87fd1bf4c115b0 | [
"MIT"
] | 639 | 2015-01-05T04:16:42.000Z | 2022-03-29T11:08:00.000Z | from __future__ import (division)
from pomegranate import *
from pomegranate.io import DataGenerator
from pomegranate.io import DataFrameGenerator
from nose.tools import with_setup
from nose.tools import assert_almost_equal
from nose.tools import assert_equal
from nose.tools import assert_not_equal
from nose.tools im... | 32.597458 | 126 | 0.716669 |
be10e301876952317779fb802d1ea27b44f1342a | 2,188 | py | Python | ks_engine/variable_scoring.py | FilippoRanza/ks.py | 47d909fb70fec50f8d3174855bf5d0c05527bf03 | [
"MIT"
] | 2 | 2021-01-29T11:45:39.000Z | 2022-03-10T03:17:12.000Z | ks_engine/variable_scoring.py | Optimization-Algorithms/ks.py | 44890d33a744c5c4865b96f97efc1e5241b719b1 | [
"MIT"
] | 1 | 2020-05-12T16:18:34.000Z | 2020-05-12T16:18:34.000Z | ks_engine/variable_scoring.py | Optimization-Algorithms/ks.py | 44890d33a744c5c4865b96f97efc1e5241b719b1 | [
"MIT"
] | 1 | 2021-01-29T11:45:45.000Z | 2021-01-29T11:45:45.000Z | #! /usr/bin/python
from .solution import Solution
try:
import gurobipy
except ImportError:
print("Gurobi not found: error ignored to allow tests")
def callback_factory(scoring: AbstactVariableScoring):
if isinstance(scoring, VariableRanking):
output = __build_callback__(scoring)
else:
... | 27.012346 | 86 | 0.65128 |
be139101ad7d93480666b4065956e230585c96d9 | 1,180 | py | Python | src/fetchcode/vcs/pip/_internal/utils/entrypoints.py | quepop/fetchcode | ac2461bdf7a249d8815987b4d421dbc615c043b9 | [
"Apache-2.0"
] | 7 | 2019-10-04T07:27:41.000Z | 2021-06-07T04:39:18.000Z | src/fetchcode/vcs/pip/_internal/utils/entrypoints.py | quepop/fetchcode | ac2461bdf7a249d8815987b4d421dbc615c043b9 | [
"Apache-2.0"
] | 64 | 2019-10-07T12:40:56.000Z | 2022-02-17T18:44:37.000Z | src/fetchcode/vcs/pip/_internal/utils/entrypoints.py | quepop/fetchcode | ac2461bdf7a249d8815987b4d421dbc615c043b9 | [
"Apache-2.0"
] | 16 | 2019-10-04T08:48:12.000Z | 2021-06-11T01:22:56.000Z | import sys
from fetchcode.vcs.pip._internal.cli.main import main
from fetchcode.vcs.pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Optional, List
def _wrapper(args=None):
# type: (Optional[List[str]]) -> int
"""Central wrapper for all old entrypoints.
... | 36.875 | 79 | 0.710169 |
be145918e072dc9949c9e4a6667701e412064948 | 7,896 | py | Python | Support/Make_Documentation.py | bvbohnen/x4-projects | 2c9db75a720ddb52ddb9e4160c330d7bb1986aa3 | [
"MIT"
] | 24 | 2020-04-11T18:43:01.000Z | 2022-02-23T11:02:02.000Z | Support/Make_Documentation.py | abouquet/x4-projects | 27ba6d2faaab95cfb9114bccb41fadbfe56443b7 | [
"MIT"
] | 10 | 2020-04-11T07:50:33.000Z | 2022-03-31T05:01:35.000Z | Support/Make_Documentation.py | abouquet/x4-projects | 27ba6d2faaab95cfb9114bccb41fadbfe56443b7 | [
"MIT"
] | 8 | 2020-04-24T05:21:55.000Z | 2022-03-26T03:02:13.000Z | '''
Support for generating documentation readmes for the extensions.
Extracts from decorated lua block comments and xml comments.
'''
from pathlib import Path
from lxml import etree
import sys
from itertools import chain
project_dir = Path(__file__).resolve().parents[1]
# Set up an import from the customizer for som... | 31.967611 | 86 | 0.58498 |
be14596b5522e0877a99c1e6b243c1003263e5ff | 71 | py | Python | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | null | null | null | Chapter 2 - Variables & Data Types/05_pr_set_add_two_no.py | alex-dsouza777/Python-Basics | 8f1c406f2319cd65b5d54dfea990d09fa69d9adf | [
"MIT"
] | 1 | 2021-04-21T10:23:08.000Z | 2021-04-21T10:23:08.000Z | #Addition of two numbers
a = 30
b = 17
print("Sum of a and b is",a + b) | 17.75 | 32 | 0.633803 |
be15fa91cd3274065ddb261552f8c0f2ea292fcd | 2,960 | py | Python | curso 1/04 - caixa de texto/a4.py | andersonssh/aprendendo-pyqt5 | d15ad7378d4573410c11fc39042df19048c656e4 | [
"MIT"
] | null | null | null | curso 1/04 - caixa de texto/a4.py | andersonssh/aprendendo-pyqt5 | d15ad7378d4573410c11fc39042df19048c656e4 | [
"MIT"
] | null | null | null | curso 1/04 - caixa de texto/a4.py | andersonssh/aprendendo-pyqt5 | d15ad7378d4573410c11fc39042df19048c656e4 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import (QApplication,
QMainWindow,
QPushButton,
QToolTip,
QLabel,
QLineEdit)
from PyQt5 import QtGui
if __name__ == '__main__':
app = QA... | 31.489362 | 140 | 0.591216 |
be18b88ab1937677b7e3d5583d09538c7f91bce2 | 2,460 | py | Python | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | pdf2write.py | codeunik/stylus_labs_write_pdf_importer | 25d7aa037647a86284c24527bda7b222cf95bb62 | [
"MIT"
] | null | null | null | import base64
import os
import sys
import PyPDF2
svg = '''<svg id="write-document" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect id="write-doc-background" width="100%" height="100%" fill="#808080"/>
<defs id="write-defs">
<script type="text/writeconfig">
<int name="docFormatVer... | 37.846154 | 230 | 0.667073 |
be18cd8c90ebbd40ae9aadcbac8dd9bce504b9ec | 2,462 | py | Python | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 22 | 2020-06-09T18:46:56.000Z | 2021-09-28T02:11:42.000Z | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 19 | 2020-06-03T06:34:57.000Z | 2021-01-26T07:36:17.000Z | py_headless_daw/project/having_parameters.py | hq9000/py-headless-daw | 33e08727c25d3f00b2556adf5f25c9f7ff4d4304 | [
"MIT"
] | 1 | 2020-06-18T09:25:21.000Z | 2020-06-18T09:25:21.000Z | from typing import Dict, List, cast
from py_headless_daw.project.parameter import Parameter, ParameterValueType, ParameterRangeType
| 35.681159 | 107 | 0.644598 |
be193942a6e1e90e82121a1e52ce25e1006effc3 | 488 | py | Python | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 9 | 2018-10-31T11:38:18.000Z | 2021-11-23T19:20:54.000Z | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 3 | 2018-11-01T10:28:53.000Z | 2022-03-21T17:40:05.000Z | wasatch/ROI.py | adiravishankara/Wasatch.PY | 058b3de2c9399e9aea6347fa360f9c7dbbf296aa | [
"MIT"
] | 4 | 2018-08-03T08:46:08.000Z | 2022-03-23T01:09:27.000Z | ##
# This class encapsulates a Region Of Interest, which may be either horizontal
# (pixels) or vertical (rows/lines).
| 27.111111 | 79 | 0.622951 |
be19a958423363abc9e04beed1c7e6d4e8b02233 | 8,562 | py | Python | examples/python/oled_ssd1327.py | whpenner/upm | 3168c61d8613da62ecc7598517a1decf533d5fe7 | [
"MIT"
] | 1 | 2017-09-22T01:41:30.000Z | 2017-09-22T01:41:30.000Z | bsp/intel/peripheral/libupm/examples/python/oled_ssd1327.py | Keneral/ahardware | 9a8a025f7c9471444c9e271bbe7f48182741d710 | [
"Unlicense"
] | null | null | null | bsp/intel/peripheral/libupm/examples/python/oled_ssd1327.py | Keneral/ahardware | 9a8a025f7c9471444c9e271bbe7f48182741d710 | [
"Unlicense"
] | 1 | 2018-02-24T19:09:04.000Z | 2018-02-24T19:09:04.000Z | #!/usr/bin/python
# Author: Zion Orent <zorent@ics.com>
# Copyright (c) 2015 Intel Corporation.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limi... | 45.063158 | 77 | 0.68512 |
be1bdf6fe279b2f8b2c141f3279c61f47199ae18 | 898 | py | Python | digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py | juansdev/digital_image_processing | a0fe429c0664d81063dc76502a3e4874eea901a7 | [
"MIT"
] | 1 | 2022-03-22T03:37:44.000Z | 2022-03-22T03:37:44.000Z | digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py | juansdev/digital_image_processing | a0fe429c0664d81063dc76502a3e4874eea901a7 | [
"MIT"
] | null | null | null | digital_image_processing/algorithms/edge_detection_algorithms/threshold/adaptive_thresholding_methods/__init__.py | juansdev/digital_image_processing | a0fe429c0664d81063dc76502a3e4874eea901a7 | [
"MIT"
] | null | null | null | from .bernsen import bernsen_thresholding_method
from .bradley_roth import bradley_thresholding_method
from .contrast import contrast_thresholding_method
from .feng import feng_thresholding_method
from .gaussian import threshold_value_gaussian
from .johannsen import johannsen_thresholding_method
from .kapur import kapu... | 44.9 | 58 | 0.894209 |
be1d04203f18e6f16b60a723e614122b48a08671 | 1,097 | py | Python | data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/be1d04203f18e6f16b60a723e614122b48a08671celeryconfig.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | import os
from kombu import Queue, Exchange
## Broker settings.
BROKER_URL = os.getenv('BROKER_URL', 'amqp://guest:guest@localhost:5672')
#BROKER_URL = "amqp://guest:guest@localhost:5672/"
#BROKER_URL = os.getenv('BROKER_URL', 'redis://guest@localhost:6379')
#BROKER_HOST = "localhost"
#BROKER_PORT = 27017
#BROKER_TRA... | 30.472222 | 76 | 0.739289 |
be1d72eb89ee80a827a9a1150e2c759579770b36 | 21,106 | py | Python | timesheet.py | dgollub/timesheet-google-thingy | 3ffab402444dba520ff3416b2327f6d2ceeeac39 | [
"MIT"
] | null | null | null | timesheet.py | dgollub/timesheet-google-thingy | 3ffab402444dba520ff3416b2327f6d2ceeeac39 | [
"MIT"
] | null | null | null | timesheet.py | dgollub/timesheet-google-thingy | 3ffab402444dba520ff3416b2327f6d2ceeeac39 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
#
from __future__ import print_function
import csv
import os
import re
import sys
import arrow
from gsheets import Sheets
CURRENT_PATH = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
DEBUG = os.environ.get('DEBUG', "0") == "1"
AS_CSV = os.environ.get('CSV', "0") == "1"
COL... | 34.6 | 158 | 0.588032 |
be1da4c3a9cd8b6f92a68b6f9d9dd0277f9d55ce | 7,578 | py | Python | league/game.py | Orpheon/All-in | 016901953904250226f388422318ef2f739bf82e | [
"MIT"
] | null | null | null | league/game.py | Orpheon/All-in | 016901953904250226f388422318ef2f739bf82e | [
"MIT"
] | null | null | null | league/game.py | Orpheon/All-in | 016901953904250226f388422318ef2f739bf82e | [
"MIT"
] | null | null | null | import numpy as np
import pickle
import treys
import constants
FULL_DECK = np.array(treys.Deck.GetFullDeck())
| 44.05814 | 133 | 0.684613 |
be1dddb28d3c0ea4aa8ef940a579e9c73af88093 | 2,487 | py | Python | cms/admin/views.py | miloprice/django-cms | c6f548f0983a7488609e07a57552b47675d8d78e | [
"BSD-3-Clause"
] | null | null | null | cms/admin/views.py | miloprice/django-cms | c6f548f0983a7488609e07a57552b47675d8d78e | [
"BSD-3-Clause"
] | null | null | null | cms/admin/views.py | miloprice/django-cms | c6f548f0983a7488609e07a57552b47675d8d78e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from cms.models import Page, Title, CMSPlugin, Placeholder
from cms.utils import get_language_from_request
from django.http import Http404
from django.shortcuts import get_object_or_404
| 36.573529 | 101 | 0.62686 |
be1f1730e3c83173cbfa65bc65d2316eb598bfbe | 4,127 | py | Python | delete.py | lvwuyunlifan/crop | 7392d007a8271ff384c5c66ed5717afbc4172b4d | [
"Apache-2.0"
] | null | null | null | delete.py | lvwuyunlifan/crop | 7392d007a8271ff384c5c66ed5717afbc4172b4d | [
"Apache-2.0"
] | null | null | null | delete.py | lvwuyunlifan/crop | 7392d007a8271ff384c5c66ed5717afbc4172b4d | [
"Apache-2.0"
] | null | null | null | import os
from PIL import Image, ImageFilter
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# import seaborn as sns
import pandas as pd
import numpy as np
import random
train_path = './AgriculturalDisease_trainingset/'
valid_path = './AgriculturalDisease_validationset/'
if __name__ == '__main__':
... | 35.886957 | 83 | 0.557063 |
be1f5618419f3d6206980e4841ac306ca5a5ac13 | 854 | py | Python | 数据分析/matplotlib/03.demo.py | likedeke/python-spider-study | 09bee3cbe833234a86efcc28d62ace000e2fbb4b | [
"Apache-2.0"
] | 1 | 2021-08-20T11:47:51.000Z | 2021-08-20T11:47:51.000Z | 数据分析/matplotlib/03.demo.py | likedeke/python-spider-study | 09bee3cbe833234a86efcc28d62ace000e2fbb4b | [
"Apache-2.0"
] | null | null | null | 数据分析/matplotlib/03.demo.py | likedeke/python-spider-study | 09bee3cbe833234a86efcc28d62ace000e2fbb4b | [
"Apache-2.0"
] | null | null | null | # - - - - - - - - - - -
# @author like
# @since 2021-02-23 11:08
# @email 980650920@qq.com
#
from matplotlib import pyplot as plt
from matplotlib import rc
from matplotlib import font_manager
import random
x = range(0, 120)
y = [random.randint(20, 35) for i in range(120)]
plt.figure(figsize=(20, 8), dpi=80)
plt.... | 23.722222 | 80 | 0.696721 |
be1f96521bb4c93e3fbc514880ddde1a151dfa0d | 1,351 | py | Python | testing/vcs/test_vcs_isoline_labels.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 62 | 2018-03-30T15:46:56.000Z | 2021-12-08T23:30:24.000Z | testing/vcs/test_vcs_isoline_labels.py | xylar/cdat | 8a5080cb18febfde365efc96147e25f51494a2bf | [
"BSD-3-Clause"
] | 114 | 2018-03-21T01:12:43.000Z | 2021-07-05T12:29:54.000Z | testing/vcs/test_vcs_isoline_labels.py | CDAT/uvcdat | 5133560c0c049b5c93ee321ba0af494253b44f91 | [
"BSD-3-Clause"
] | 14 | 2018-06-06T02:42:47.000Z | 2021-11-26T03:27:00.000Z | import os, sys, cdms2, vcs, vcs.testing.regression as regression
dataset = cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
data = dataset("clt")
canvas = regression.init()
isoline = canvas.createisoline()
isoline.label="y"
texts=[]
colors = []
for i in range(10):
text = canvas.createtext()
text.color = 50 +... | 29.369565 | 87 | 0.721688 |
be204f98e2c8943df601cdf5f75bb96f08fc6392 | 34,671 | py | Python | src/Python_version/ICE_py36.py | ds-utilities/ICE | 9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f | [
"MIT"
] | 2 | 2019-08-05T08:26:38.000Z | 2020-05-16T14:10:00.000Z | src/Python_version/ICE_py36.py | postyear/ICE | 9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f | [
"MIT"
] | null | null | null | src/Python_version/ICE_py36.py | postyear/ICE | 9461bbb8d6c7b3d3b32eac8ee29bd4ae3ccb286f | [
"MIT"
] | 2 | 2020-05-16T14:10:01.000Z | 2021-02-09T20:05:46.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 5 05:47:03 2018
@author: zg
"""
import numpy as np
#from scipy import io
import scipy.io
#import pickle
from sklearn.model_selection import StratifiedKFold
#import sklearn
from scipy.sparse import spdiags
from scipy.spatial import distance
#impo... | 31.348101 | 93 | 0.551123 |
be20c61ee255e8ce67c5713e68e8dff144cc5ef4 | 44,105 | py | Python | xc/common/utils/prjxray_routing_import.py | FireFox317/symbiflow-arch-defs | f0e7b4212544e1d55da776fb7a2ff79117e01454 | [
"ISC"
] | 1 | 2020-09-23T17:57:07.000Z | 2020-09-23T17:57:07.000Z | xc/common/utils/prjxray_routing_import.py | tcal-x/symbiflow-arch-defs | 1e513ac778371608c51fa86a98e54279e3c74752 | [
"ISC"
] | null | null | null | xc/common/utils/prjxray_routing_import.py | tcal-x/symbiflow-arch-defs | 1e513ac778371608c51fa86a98e54279e3c74752 | [
"ISC"
] | null | null | null | #!/usr/bin/env python3
""" Imports 7-series routing fabric to the rr graph.
For ROI configurations, this also connects the synthetic IO tiles to the routing
node specified.
Rough structure:
Add rr_nodes for CHANX and CHANY from the database. IPIN and OPIN rr_nodes
should already be present from the input rr_graph.
... | 30.375344 | 90 | 0.590114 |
be20fd972c9533d7359e606c8ff9c31f5c519ad2 | 17,854 | py | Python | testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py | andrewbowen19/ClusterEclipsingBinaries | e554cb6bb613e0d3703314e50fcf5289f50bf572 | [
"MIT"
] | null | null | null | testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py | andrewbowen19/ClusterEclipsingBinaries | e554cb6bb613e0d3703314e50fcf5289f50bf572 | [
"MIT"
] | null | null | null | testing/onQuest/longClusters/m67/OLD-analyseEBLSSTm67.py | andrewbowen19/ClusterEclipsingBinaries | e554cb6bb613e0d3703314e50fcf5289f50bf572 | [
"MIT"
] | null | null | null | #########################
#########################
# Need to account for limit in input period
#########################
#########################
# Baseline M67 long script -- NO crowding
# New script copied from quest - want to take p and ecc from each population (all, obs, rec) and put them into separate file
# Do... | 35.284585 | 213 | 0.641089 |
be21dcede1ec1af84c0ccb9e8297bd042d23271a | 1,712 | py | Python | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 13 | 2015-11-30T15:49:45.000Z | 2022-02-08T16:11:30.000Z | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 640 | 2015-02-11T18:55:47.000Z | 2022-03-31T14:12:23.000Z | CondTools/BeamSpot/test/BeamSpotRcdPrinter_cfg.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 51 | 2015-08-11T21:01:40.000Z | 2022-03-30T07:31:34.000Z | import FWCore.ParameterSet.Config as cms
import os
process = cms.Process("summary")
process.MessageLogger = cms.Service( "MessageLogger",
debugModules = cms.untracked.vstring( "*" ),
cout = cms.untracked.PSet( threshold = cms.untracked.string( ... | 38.044444 | 110 | 0.733645 |
be237e880ccb11dff8fac9488a75005cce1dd897 | 381 | py | Python | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | 2 | 2021-05-13T18:02:00.000Z | 2022-03-30T19:53:38.000Z | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | null | null | null | django/authentication/api/urls.py | NAVANEETHA-BS/Django-Reactjs-Redux-Register-login-logout-Homepage--Project | f29ed189b988a2d46d76b3c58cf77d1ed58ca64d | [
"MIT"
] | null | null | null | from django.urls import path
from rest_framework_simplejwt.views import (
TokenObtainPairView,
TokenRefreshView,
TokenVerifyView
)
urlpatterns = [
path('obtain/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('... | 29.307692 | 77 | 0.734908 |
be23b9cced5e521037b8711e7bde05f5d17925f0 | 7,257 | py | Python | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | null | null | null | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | null | null | null | yue/core/explorer/ftpsource.py | nsetzer/YueMusicPlayer | feaf6fe5c046b1a7f6b7774d4e86a2fbb1e431cf | [
"MIT"
] | 1 | 2019-03-06T14:29:27.000Z | 2019-03-06T14:29:27.000Z |
from ftplib import FTP,error_perm, all_errors
import posixpath
from io import BytesIO,SEEK_SET
from .source import DataSource
import sys
import re
reftp = re.compile('(ssh|ftp)\:\/\/(([^@:]+)?:?([^@]+)?@)?([^:]+)(:[0-9]+)?\/(.*)')
| 27.384906 | 83 | 0.539893 |
be23cbbbbbb53c2c62b109846cda81e757eb1b58 | 14,527 | py | Python | tests/engine/knowledge_base.py | roshanmaskey/plaso | 637856f578eb4bc81f62b97d7f483f69314e7f47 | [
"Apache-2.0"
] | 1,253 | 2015-01-02T13:58:02.000Z | 2022-03-31T08:43:39.000Z | tests/engine/knowledge_base.py | roshanmaskey/plaso | 637856f578eb4bc81f62b97d7f483f69314e7f47 | [
"Apache-2.0"
] | 3,388 | 2015-01-02T11:17:58.000Z | 2022-03-30T10:21:45.000Z | tests/engine/knowledge_base.py | roshanmaskey/plaso | 637856f578eb4bc81f62b97d7f483f69314e7f47 | [
"Apache-2.0"
] | 376 | 2015-01-20T07:04:54.000Z | 2022-03-04T23:53:00.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the knowledge base."""
import unittest
from plaso.containers import artifacts
from plaso.engine import knowledge_base
from tests import test_lib as shared_test_lib
if __name__ == '__main__':
unittest.main()
| 37.153453 | 79 | 0.748537 |
be247dcc0b3afb4ed9e9527cdfcf9da7e14edb83 | 2,244 | py | Python | Problems/Dynamic Programming/140. Word Break II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Dynamic Programming/140. Word Break II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | Problems/Dynamic Programming/140. Word Break II.py | BYJRK/LeetCode-Solutions | 008467e1717309066a519acb8623d2f84071b64a | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/word-break-ii/
from typing import List
s = Solution()
print(s.wordBreak_dfs('catsanddog', ["cat", "cats", "and", "sand", "dog"]))
print(s.wordBreak_dfs('pineapplepenapple', [
"apple", "pen", "applepen", "pine", "pineapple"]))
# text = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | 29.142857 | 162 | 0.483512 |
be260edf2b0780a31f443fdc8e024043c1398df0 | 30,595 | py | Python | neutron/tests/unit/db/test_migration.py | banhr/neutron | 4b3e73648327ce9f4d3437986a8663372f577f1b | [
"Apache-2.0"
] | 1 | 2018-07-04T07:59:31.000Z | 2018-07-04T07:59:31.000Z | neutron/tests/unit/db/test_migration.py | weiqiLee/neutron | ddc72ebd41a0e7804b33a21583d3add008191229 | [
"Apache-2.0"
] | null | null | null | neutron/tests/unit/db/test_migration.py | weiqiLee/neutron | ddc72ebd41a0e7804b33a21583d3add008191229 | [
"Apache-2.0"
] | 1 | 2018-08-28T17:13:16.000Z | 2018-08-28T17:13:16.000Z | # Copyright 2012 New Dream Network, LLC (DreamHost)
# 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
#
# ... | 40.469577 | 79 | 0.610557 |
be26276b9a7545ff4607b3e77287b80155ccbf7d | 959 | py | Python | withdrawal/floor_ceiling.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 23 | 2016-09-07T06:13:37.000Z | 2022-02-17T23:49:03.000Z | withdrawal/floor_ceiling.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | withdrawal/floor_ceiling.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 12 | 2016-06-30T17:27:39.000Z | 2021-12-12T07:54:27.000Z | from decimal import Decimal
from .abc import WithdrawalStrategy
# Bengen's Floor-to-Ceiling, as described in McClung's Living Off Your Money
| 30.935484 | 91 | 0.693431 |
be2647506be1ffc3fcefa8eacc15a737776b73ab | 8,288 | py | Python | 20190426/6_BME280_WiFi/bme280.py | rcolistete/MicroPython_MiniCurso_ProjOrientado | c82affe833587141c4c05ee08ea84b095bfe845f | [
"MIT"
] | null | null | null | 20190426/6_BME280_WiFi/bme280.py | rcolistete/MicroPython_MiniCurso_ProjOrientado | c82affe833587141c4c05ee08ea84b095bfe845f | [
"MIT"
] | null | null | null | 20190426/6_BME280_WiFi/bme280.py | rcolistete/MicroPython_MiniCurso_ProjOrientado | c82affe833587141c4c05ee08ea84b095bfe845f | [
"MIT"
] | null | null | null | """
MicroPython driver for Bosh BME280 temperature, pressure and humidity I2C sensor:
https://www.bosch-sensortec.com/bst/products/all_products/bme280
Authors: Nelio Goncalves Godoi, Roberto Colistete Jr
Version: 3.1.2 @ 2018/04
License: MIT License (https://opensource.org/licenses/MIT)
"""
import time
from ustruct im... | 33.554656 | 81 | 0.558518 |
be2674ce54565aac0c872fd9c167bb04e3da2fda | 9,749 | py | Python | airflow/contrib/secrets/hashicorp_vault.py | colpal/airfloss | 1857cf309b69d4c2d60e9bb67f731eb01d0ecda1 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | airflow/contrib/secrets/hashicorp_vault.py | colpal/airfloss | 1857cf309b69d4c2d60e9bb67f731eb01d0ecda1 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 7 | 2020-10-05T18:20:16.000Z | 2022-02-01T00:54:35.000Z | airflow/contrib/secrets/hashicorp_vault.py | colpal/airfloss | 1857cf309b69d4c2d60e9bb67f731eb01d0ecda1 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-21T03:22:43.000Z | 2020-10-21T03:22:43.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... | 40.452282 | 102 | 0.647656 |
be27d0cf506bd514ef2b8fd412eba196789b1b66 | 6,347 | py | Python | Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py | AdamCoscia/eve-trajectory-mining | 134f142a5665f66fbf92aada8dd6252fab64ddff | [
"MIT"
] | null | null | null | Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py | AdamCoscia/eve-trajectory-mining | 134f142a5665f66fbf92aada8dd6252fab64ddff | [
"MIT"
] | null | null | null | Trajectory_Mining/Bag_of_Words/Comp_Corr_KD_CosDist/comp_dist_partialKD.py | AdamCoscia/eve-trajectory-mining | 134f142a5665f66fbf92aada8dd6252fab64ddff | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Computes distance between killmails by text similarity.
Edit Distance Metrics
- Levenshtein Distance
- Damerau-Levenshtein Distance
- Jaro Distance
- Jaro-Winkler Distance
- Match Rating Approach Comparison
- Hamming Distance
Vector Distance Metrics
- Jaccard Similarity
- Cosine Distance
W... | 37.556213 | 92 | 0.669293 |
be28146fdfcf8ed2a16239294869650841f46a74 | 1,181 | py | Python | src/chess/utils.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | null | null | null | src/chess/utils.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | 6 | 2020-08-13T13:02:58.000Z | 2022-02-10T02:21:49.000Z | src/chess/utils.py | Dalkio/custom-alphazero | e24ee8c646a37bf9509b99ca6c96d3f6e69ee4db | [
"MIT"
] | null | null | null | import numpy as np
from itertools import product
from typing import List
from src.config import ConfigChess
from src.chess.board import Board
from src.chess.move import Move
| 36.90625 | 99 | 0.686706 |
be2868ed0261dc37f256c2a99990b52d127544a4 | 1,845 | py | Python | multirotor.py | christymarc/mfac | 29449a0c79e618059fa6f67ae7ab76711543c513 | [
"MIT"
] | null | null | null | multirotor.py | christymarc/mfac | 29449a0c79e618059fa6f67ae7ab76711543c513 | [
"MIT"
] | null | null | null | multirotor.py | christymarc/mfac | 29449a0c79e618059fa6f67ae7ab76711543c513 | [
"MIT"
] | 1 | 2022-03-01T05:00:02.000Z | 2022-03-01T05:00:02.000Z | from random import gauss
| 27.132353 | 86 | 0.566938 |
be286e006cd7ef8775677a3d599b4cc9bc55f723 | 6,329 | py | Python | stpmex/client.py | cuenca-mx/stpmex-python | 93f630cd05cea927b32f5aeb5f9b958c4ee91af9 | [
"MIT"
] | 37 | 2019-01-06T02:52:38.000Z | 2022-03-17T21:19:48.000Z | stpmex/client.py | cuenca-mx/stpmex-python | 93f630cd05cea927b32f5aeb5f9b958c4ee91af9 | [
"MIT"
] | 204 | 2018-09-05T22:55:33.000Z | 2022-03-31T23:21:13.000Z | stpmex/client.py | cuenca-mx/stpmex-python | 93f630cd05cea927b32f5aeb5f9b958c4ee91af9 | [
"MIT"
] | 20 | 2018-09-17T15:29:51.000Z | 2022-02-03T06:29:32.000Z | import re
from typing import Any, ClassVar, Dict, List, NoReturn, Union
from cryptography.exceptions import UnsupportedAlgorithm
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from requests import Response, Session
from .exc import (
AccountDoesNo... | 34.026882 | 78 | 0.618739 |
be288cac85f4b858cc1c87f0fce298bec6844670 | 4,770 | py | Python | aql/tests/types/aql_test_list_types.py | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/tests/types/aql_test_list_types.py | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/tests/types/aql_test_list_types.py | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | import sys
import os.path
import timeit
sys.path.insert( 0, os.path.normpath(os.path.join( os.path.dirname( __file__ ), '..') ))
from aql_tests import skip, AqlTestCase, runLocalTests
from aql.util_types import UniqueList, SplitListType, List, ValueListType
#//=======================================================... | 27.413793 | 88 | 0.469182 |
be2a32ef4dd37c381a36c7a58f2812962caeb4d5 | 502 | py | Python | logger_application/logger.py | swatishayna/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | 1 | 2022-03-24T20:26:44.000Z | 2022-03-24T20:26:44.000Z | logger_application/logger.py | surajaiswal13/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | null | null | null | logger_application/logger.py | surajaiswal13/OnlineEDAAutomation | a1bfe8b1dee51a4872529a98f6e1136922329e3e | [
"MIT"
] | 2 | 2022-02-08T16:35:32.000Z | 2022-03-04T06:56:54.000Z | from datetime import datetime
from src.utils import uploaded_file
import os
| 27.888889 | 143 | 0.621514 |
be2a7a241325332e4117c63de7ba8c5d1c491871 | 332 | py | Python | metasync/params.py | dstarikov/metavault | 1933cc6cd828ee9c594a45a78238a9a319de0143 | [
"MIT"
] | 1 | 2019-05-28T15:59:35.000Z | 2019-05-28T15:59:35.000Z | metasync/params.py | dstarikov/metavault | 1933cc6cd828ee9c594a45a78238a9a319de0143 | [
"MIT"
] | null | null | null | metasync/params.py | dstarikov/metavault | 1933cc6cd828ee9c594a45a78238a9a319de0143 | [
"MIT"
] | null | null | null | # config params
KB = 1024
MB = 1024*KB
GB = 1024*MB
# name of meta root dir
META_DIR = ".metasync"
# batching time for daemon
SYNC_WAIT = 3
# blob size
BLOB_UNIT = 32*MB
# Increase of Paxos proposal number
PAXOS_PNUM_INC = 10
# authentication directory
import os
AUTH_DIR = os.path.join(os.path.expanduser("~"), "... | 15.090909 | 61 | 0.713855 |
be2be4ab8f891e1d119f0c6cbe7bc4c566727644 | 547 | py | Python | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | py/tests/test_valid_parentheses.py | Dragonway/LeetCode | 53ed9e9bcc1ed6955b013e0d37d2a684c2ec7135 | [
"MIT"
] | null | null | null | import unittest
from py.tests.utils import test
from py import valid_parentheses as vp
| 30.388889 | 46 | 0.521024 |
be2c413f1972d5571cb52206e64c8dffe9762a99 | 2,503 | py | Python | hitnet/hitnet.py | AchintyaSrivastava/HITNET-Stereo-Depth-estimation | 90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166 | [
"MIT"
] | 38 | 2021-09-05T13:59:11.000Z | 2022-03-28T14:18:30.000Z | hitnet/hitnet.py | AchintyaSrivastava/HITNET-Stereo-Depth-estimation | 90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166 | [
"MIT"
] | 3 | 2021-11-25T08:21:01.000Z | 2022-03-07T08:22:11.000Z | hitnet/hitnet.py | AchintyaSrivastava/HITNET-Stereo-Depth-estimation | 90654dafc8c8bdf5c17079d3cb8bf7ad6d3da166 | [
"MIT"
] | 5 | 2021-09-05T23:15:10.000Z | 2022-02-10T08:32:00.000Z | import tensorflow as tf
import numpy as np
import time
import cv2
from hitnet.utils_hitnet import *
drivingStereo_config = CameraConfig(0.546, 1000)
| 25.804124 | 96 | 0.742709 |
be2cf6688bc9f36adc898b8d1394b2bd6f967ed1 | 854 | py | Python | fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py | datamade/just-spaces | cc2b7d1518e5da65a403413d39a309fa3e2ac122 | [
"MIT"
] | 6 | 2019-04-09T06:52:31.000Z | 2021-08-31T04:31:59.000Z | fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py | datamade/just-spaces | cc2b7d1518e5da65a403413d39a309fa3e2ac122 | [
"MIT"
] | 176 | 2019-01-11T21:05:50.000Z | 2021-03-16T17:04:13.000Z | fobi_custom/plugins/form_elements/fields/intercept/household_tenure/fobi_form_elements.py | datamade/just-spaces | cc2b7d1518e5da65a403413d39a309fa3e2ac122 | [
"MIT"
] | 1 | 2019-05-10T15:30:25.000Z | 2019-05-10T15:30:25.000Z | from django import forms
from fobi.base import FormFieldPlugin, form_element_plugin_registry
from .forms import HouseholdTenureForm
form_element_plugin_registry.register(HouseholdTenurePlugin)
| 29.448276 | 70 | 0.686183 |
076c3b7d76dce4361980237fd24f6e7d24b9f302 | 368 | py | Python | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/__init__.py | fullscreennl/monkeyswipe | c56192e202674dd5ab18023f6cf14cf51e95fbd0 | [
"MIT"
] | null | null | null | __all__ = ['EnemyBucketWithStar',
'Nut',
'Beam',
'Enemy',
'Friend',
'Hero',
'Launcher',
'Rotor',
'SpikeyBuddy',
'Star',
'Wizard',
'EnemyEquipedRotor',
'CyclingEnemyObject',
'Joi... | 21.647059 | 33 | 0.366848 |
076ca6ec3c064417c645687635c5d40cf01c07b7 | 29,159 | py | Python | code/trainer.py | mazzaAnt/StackGAN-v2 | dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0 | [
"MIT"
] | 1 | 2019-02-04T20:45:51.000Z | 2019-02-04T20:45:51.000Z | code/trainer.py | mazzaAnt/StackGAN-v2 | dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0 | [
"MIT"
] | null | null | null | code/trainer.py | mazzaAnt/StackGAN-v2 | dcf696f34bc8e360179eec9e7f2e9e66eec8b9a0 | [
"MIT"
] | null | null | null | from __future__ import print_function
from six.moves import range
import torchvision.transforms as transforms
import torch.backends.cudnn as cudnn
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
import torchvision.utils as vutils
import numpy as np
import os
import ti... | 41.360284 | 116 | 0.540245 |
076cc2a993643184f8804f5d69cb1769c80c9cee | 5,654 | py | Python | spletni_vmesnik.py | LeaHolc/recepcija | bff9f804e795e45c2da214432042c0ae067783b0 | [
"MIT"
] | 1 | 2021-11-11T08:20:13.000Z | 2021-11-11T08:20:13.000Z | spletni_vmesnik.py | LeaHolc/recepcija | bff9f804e795e45c2da214432042c0ae067783b0 | [
"MIT"
] | null | null | null | spletni_vmesnik.py | LeaHolc/recepcija | bff9f804e795e45c2da214432042c0ae067783b0 | [
"MIT"
] | null | null | null | from bottle import TEMPLATE_PATH, route, run, template, redirect, get, post, request, response, auth_basic, Bottle, abort, error, static_file
import bottle
import controller
from controller import dobi_parcele_za_prikaz, dobi_info_parcele, dodaj_gosta_na_rezervacijo, naredi_rezervacijo, dobi_rezervacijo_po_id, zakljuci... | 37.693333 | 196 | 0.703926 |
076da057376eccf60a978162dbf694687eba8ff6 | 1,233 | py | Python | espnet/nets/pytorch_backend/transducer/initializer.py | magictron/espnet | 075cee8d586957241be3e54c47846fbb12a32310 | [
"Apache-2.0"
] | 2 | 2020-06-21T11:15:10.000Z | 2021-12-03T08:08:45.000Z | espnet/nets/pytorch_backend/transducer/initializer.py | magictron/espnet | 075cee8d586957241be3e54c47846fbb12a32310 | [
"Apache-2.0"
] | 1 | 2021-03-05T10:43:49.000Z | 2021-03-05T10:43:49.000Z | espnet/nets/pytorch_backend/transducer/initializer.py | magictron/espnet | 075cee8d586957241be3e54c47846fbb12a32310 | [
"Apache-2.0"
] | 2 | 2021-03-30T06:02:08.000Z | 2021-08-06T06:59:22.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Parameter initialization for transducer RNN/Transformer parts."""
import six
from espnet.nets.pytorch_backend.initialization import lecun_normal_init_parameters
from espnet.nets.pytorch_backend.initialization import set_forget_bias_to_one
from espnet.nets.pytorch_ba... | 31.615385 | 83 | 0.697486 |
076e350bd997dc6e64e333caef566c1b62991f65 | 970 | py | Python | evaluate.py | adelmassimo/EM-Algorithm-for-MMPP | 23ae031076a464bfba5286cf6b5a1fa5e1cc66b1 | [
"MIT"
] | null | null | null | evaluate.py | adelmassimo/EM-Algorithm-for-MMPP | 23ae031076a464bfba5286cf6b5a1fa5e1cc66b1 | [
"MIT"
] | null | null | null | evaluate.py | adelmassimo/EM-Algorithm-for-MMPP | 23ae031076a464bfba5286cf6b5a1fa5e1cc66b1 | [
"MIT"
] | null | null | null | import model
import numpy as np
import datasetReader as df
import main
# Number of traces loaded T
T = 1
# Generate traces
traces_factory = df.DatasetFactory()
traces_factory.createDataset(T)
traces = traces_factory.traces
P0 = np.matrix("[ .02 0;"
"0 0 0.5;"
"0 0 0]")
P1 = np.matrix(... | 23.095238 | 74 | 0.541237 |
076ea8e320bea4958c4967806ffb3361e0b72568 | 2,400 | py | Python | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Imaging/Core/Testing/Python/TestHSVToRGB.py | forestGzh/VTK | bc98327275bd5cfa95c5825f80a2755a458b6da8 | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Use the painter to draw using colors.
# This is not a pipeline object. It will support pipeline objects.
# Please do not use this object directly.
imageCanvas = vtk.vtkImageCanvasSource2D()
imageCanvas.SetNumb... | 34.285714 | 67 | 0.814583 |
076eec8de4f676b9d586492c7ab7750df189a96a | 296 | py | Python | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | kelas_2b/echa.py | barizraihan/belajarpython | 57df4c939600dd34a519599d6c78178bfb55063b | [
"MIT"
] | null | null | null | import csv
| 32.888889 | 93 | 0.567568 |
076f84eca9f11a3725b25d5cf7a8fa60fb6dd720 | 3,399 | py | Python | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 2,971 | 2019-10-16T23:53:16.000Z | 2022-03-31T20:58:24.000Z | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 2,851 | 2020-01-10T16:23:44.000Z | 2022-03-31T22:14:53.000Z | tests/test_handler_surface_distance.py | dyollb/MONAI | 9084c452c48095c82c71d4391b3684006e5a3c56 | [
"Apache-2.0"
] | 614 | 2020-01-14T19:18:01.000Z | 2022-03-31T14:06:14.000Z | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | 35.778947 | 120 | 0.692262 |
077018ad315b121efadde62952dbcb47369a343a | 2,368 | py | Python | benchmarks/eval.py | rom1mouret/anoflows | 42381c06b8897e4510e73cda87ea97ea3f4a5579 | [
"Apache-2.0"
] | null | null | null | benchmarks/eval.py | rom1mouret/anoflows | 42381c06b8897e4510e73cda87ea97ea3f4a5579 | [
"Apache-2.0"
] | null | null | null | benchmarks/eval.py | rom1mouret/anoflows | 42381c06b8897e4510e73cda87ea97ea3f4a5579 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import sys
import logging
import yaml
import pandas as pd
import numpy as np
from collections import defaultdict
from sklearn.model_selection import train_test_split
from sklearn.ensemble import IsolationForest
from sklearn.impute import SimpleImputer
from anoflows.hpo import find_best_flows
... | 29.234568 | 94 | 0.678209 |
07702a9eb4e9374ca232b483bdbecbfbdb1917c5 | 840 | py | Python | pydantic/version.py | jamescurtin/pydantic | 4f8f9396906a094626b770fb7cc8eecf03770ffe | [
"MIT"
] | 1 | 2020-02-25T15:28:47.000Z | 2020-02-25T15:28:47.000Z | pydantic/version.py | jamescurtin/pydantic | 4f8f9396906a094626b770fb7cc8eecf03770ffe | [
"MIT"
] | 1 | 2020-01-17T17:12:45.000Z | 2020-01-17T17:12:45.000Z | pydantic/version.py | jamescurtin/pydantic | 4f8f9396906a094626b770fb7cc8eecf03770ffe | [
"MIT"
] | 1 | 2020-12-19T18:00:19.000Z | 2020-12-19T18:00:19.000Z | __all__ = ['VERSION', 'version_info']
VERSION = '1.4a1'
| 27.096774 | 101 | 0.589286 |
0770f2a922548842dd4151e55d3fc69c6cf5b84c | 2,319 | py | Python | spire/core/registry.py | siq/spire | 6365590277e9a6bfb6e4e0df5b2b47dba0f71711 | [
"Linux-OpenIB"
] | null | null | null | spire/core/registry.py | siq/spire | 6365590277e9a6bfb6e4e0df5b2b47dba0f71711 | [
"Linux-OpenIB"
] | 1 | 2016-09-15T16:19:27.000Z | 2016-09-15T16:20:06.000Z | spire/core/registry.py | siq/spire | 6365590277e9a6bfb6e4e0df5b2b47dba0f71711 | [
"Linux-OpenIB"
] | null | null | null | from scheme import Structure
__all__ = ('Configurable', 'Registry')
| 34.61194 | 93 | 0.581285 |
07710c963c7c958684d4d5e192f36678ee929e23 | 231 | py | Python | oslo_devsupport/model/__init__.py | berrange/oslo.devsupport | 463c5842e95c5f8a7009ab1041f290e3a1050a06 | [
"Apache-1.1"
] | null | null | null | oslo_devsupport/model/__init__.py | berrange/oslo.devsupport | 463c5842e95c5f8a7009ab1041f290e3a1050a06 | [
"Apache-1.1"
] | null | null | null | oslo_devsupport/model/__init__.py | berrange/oslo.devsupport | 463c5842e95c5f8a7009ab1041f290e3a1050a06 | [
"Apache-1.1"
] | null | null | null |
from .command import *
from .database import *
from .entrypoint import *
from .group import *
from .http import *
from .messaging import *
from .method import *
from .operation import *
from .stack import *
from .threads import *
| 19.25 | 25 | 0.735931 |
0771ae571980aa4669298ae5f48b1ac83a19af96 | 2,953 | py | Python | scripts/extract.py | nng555/fairseq | c9730a125825a85f33042e1b9fd1959b8ca829e5 | [
"MIT"
] | 2 | 2020-10-05T08:52:01.000Z | 2021-03-03T15:26:35.000Z | scripts/extract.py | nng555/fairseq | c9730a125825a85f33042e1b9fd1959b8ca829e5 | [
"MIT"
] | null | null | null | scripts/extract.py | nng555/fairseq | c9730a125825a85f33042e1b9fd1959b8ca829e5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Extracts random constraints from reference files."""
import argparse
import random
import sys
from sacrebleu imp... | 31.752688 | 88 | 0.529292 |
0773947b769d5f943efc051b2beaf2ee562da724 | 1,231 | py | Python | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | AppImageBuilder/commands/file.py | gouchi/appimage-builder | 40e9851c573179e066af116fb906e9cad8099b59 | [
"MIT"
] | null | null | null | # Copyright 2020 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | 31.564103 | 80 | 0.685621 |
0775eae440b3ed8a8de73f26dfbbc57343a6323d | 6,670 | py | Python | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | text_selection/analyse_zenon_scrape.py | dainst/chronoi-corpus-processing | 7f508a7572e1022c4c88d1477db029e6619a1f0c | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import csv
import furl
import json
import re
import sys
from collections import defaultdict
if __name__ == '__main__':
parser = argparse.ArgumentParser(
description="Process a file with zenon json records and print some informatio... | 40.670732 | 192 | 0.669715 |
07773d417997f41786d66f2eb9103478a102aad8 | 2,578 | py | Python | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:27.000Z | 2019-12-20T14:13:27.000Z | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | null | null | null | src/python/twitter/pants/targets/java_antlr_library.py | wfarner/commons | 42988a7a49f012665174538cca53604c7846ee86 | [
"Apache-2.0"
] | 1 | 2019-12-20T14:13:29.000Z | 2019-12-20T14:13:29.000Z | # ==================================================================================================
# Copyright 2012 Twitter, Inc.
# --------------------------------------------------------------------------------------------------
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | 44.448276 | 100 | 0.588053 |
0777dbaeb86425a933c2accd81e0d8dadd226bab | 3,092 | py | Python | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | bigml/tests/create_pca_steps_bck.py | devs-cloud/python_ml | 05d90f5ce1862a5d2d8ff99d2e46446dc1d5af3c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2018-2020 BigML
#
# 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 requi... | 32.893617 | 83 | 0.698254 |
077860d7dfef7192b10ddd84d4a9115cb45934f6 | 290 | py | Python | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | config.py | Pasmikh/quiz_please_bot | 2b619b359d8021be57b404525013c53403d6cde1 | [
"MIT"
] | null | null | null | days_of_week = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday', 'Sunday']
operation = ''
options = ['Info', 'Check-in/Out', 'Edit games', 'Back']
admins = ['admin1_telegram_nickname', 'admin2_telegram_nickname']
avail_days = []
TOKEN = 'bot_token'
group_id = id_of_group_chat | 41.428571 | 88 | 0.713793 |
0778705078ff1aa67fe1ad3d2a88bc9581c13e09 | 2,331 | py | Python | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 4 | 2021-06-14T10:37:58.000Z | 2021-12-30T17:49:17.000Z | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | null | null | null | Chapter 8/sandwich-maker.py | ostin-r/automate-boring-stuff-solutions | 78f0a2981e6520ff2907285e666168a0f35eba02 | [
"FTL"
] | 1 | 2021-07-29T15:26:54.000Z | 2021-07-29T15:26:54.000Z | '''
Austin Richards 2/20/21
sandwich-maker.py uses pyinputplus to validate user input for sandwich preferences
'''
import pyinputplus as ip
def get_cost(food_name):
'''gets the cost of items in sandwich_builder'''
food_dict = {
'sourdough':1.75,
'rye':2.0,
'wheat':1.50,
'whi... | 33.3 | 96 | 0.62248 |
0778aa1b06b2fda0447a13db0a273ce1b3e6b40f | 2,021 | py | Python | tests/core/test_headerupdater.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | 1 | 2020-06-18T01:38:55.000Z | 2020-06-18T01:38:55.000Z | tests/core/test_headerupdater.py | My-Novel-Management/storybuilder | 1f36e56a74dbb55a25d60fce3ce81f3c650f521a | [
"MIT"
] | 143 | 2019-11-13T00:21:11.000Z | 2020-08-15T05:47:41.000Z | tests/core/test_headerupdater.py | My-Novel-Management/storybuilderunite | c003d3451e237f574c54a87ea7d4fd8da8e833be | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
HeaderUpdater class test
========================
'''
import unittest
from tests.testutils import print_testtitle, validate_with_fail
from builder.commands.scode import SCode, SCmd
from builder.containers.chapter import Chapter
from builder.containers.episode import Episode
from builder.con... | 33.131148 | 66 | 0.597724 |
0778ae783c1f5257a96e5e0972a23c96938e6782 | 682 | py | Python | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | 1 | 2019-03-11T19:12:12.000Z | 2019-03-11T19:12:12.000Z | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | null | null | null | dotsDB/test_vlen_datasets.py | aernesto/Lab_DotsDB_Utilities | d8458b4126d80daeb5084234889fc6674158ea0f | [
"MIT"
] | 1 | 2019-10-31T20:10:12.000Z | 2019-10-31T20:10:12.000Z | import numpy as np
import h5py
filename = "test_vlen_datasets_np_bool.h5"
rows = [np.array([np.True_, np.False_]),
np.array([np.True_, np.True_, np.False_])]
f = h5py.File(filename, 'x') # create file, fails if exists
vlen_data_type = h5py.special_dtype(vlen=np.bool_)
dset = f.create_dataset("vlen_matrix",... | 22.733333 | 60 | 0.590909 |
0779ab4524c7785b80eb2c94fee42447c65c7dbc | 8,824 | py | Python | utils.py | g4idrijs/CardiacUltrasoundPhaseEstimation | 6bd2e157240133b6e306a7ca931d3d3b96647b88 | [
"Apache-2.0"
] | 1 | 2020-11-17T16:14:06.000Z | 2020-11-17T16:14:06.000Z | utils.py | g4idrijs/CardiacUltrasoundPhaseEstimation | 6bd2e157240133b6e306a7ca931d3d3b96647b88 | [
"Apache-2.0"
] | null | null | null | utils.py | g4idrijs/CardiacUltrasoundPhaseEstimation | 6bd2e157240133b6e306a7ca931d3d3b96647b88 | [
"Apache-2.0"
] | 1 | 2020-06-28T09:19:02.000Z | 2020-06-28T09:19:02.000Z | import os, time
import numpy as np
import scipy.signal
import scipy.misc
import scipy.ndimage.filters
import matplotlib.pyplot as plt
import PIL
from PIL import ImageDraw
import angles
import cv2
import SimpleITK as sitk
def fig2data(fig):
"""
@brief Convert a Matplotlib figure to a 4... | 24.241758 | 79 | 0.592248 |
077a977fb0ed578109f21b4a8ba0c330e1e23efb | 1,441 | py | Python | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | weasyl/emailer.py | akash143143/weasyl | be42a2313e657e97c4a48432379e37b6a3d4a4af | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import re
from email.mime.text import MIMEText
from smtplib import SMTP
from weasyl import define, macro
EMAIL_ADDRESS = re.compile(r"^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+\Z")
def normalize_address(address):
"""
Converts an e-mail address to a consistent re... | 26.685185 | 134 | 0.646079 |
077ab159d3a90c5c7c3094919ba408b1a2cadaa4 | 663 | py | Python | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | 1 | 2021-07-31T10:06:50.000Z | 2021-07-31T10:06:50.000Z | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | 1 | 2021-05-05T18:15:48.000Z | 2021-05-05T18:15:48.000Z | tests/test_missing_process.py | ricklupton/sphinx_probs_rdf | bcae27a37162c1a4c4b329af6759a0b5b52cab7a | [
"MIT"
] | null | null | null | import pytest
from rdflib import Graph, Namespace, Literal
from rdflib.namespace import RDF, RDFS
from sphinx_probs_rdf.directives import PROBS
SYS = Namespace("http://example.org/system/")
| 36.833333 | 153 | 0.764706 |
077afe0d8f015a761ad56ef674705600c184e8fe | 1,721 | py | Python | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | analysis_functionarcademix.py | thekushalpokhrel/Python_Programs_SoftDev_DataAnalysis | e56e0e853aca4367ebf99ae18e920b80f39bd133 | [
"MIT"
] | null | null | null | #analysis function for three level game
| 30.732143 | 72 | 0.613016 |
077b64f9f341be6f03c89ac88afd5ce1383da321 | 2,246 | py | Python | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | 3 | 2022-02-24T15:46:43.000Z | 2022-03-30T13:17:03.000Z | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | null | null | null | Hello_Cone.py | TechnoTanuki/Python_BMP | d6f7e7a4b74f7d6e8761d618c156d37c97726038 | [
"MIT"
] | null | null | null | notice = """
Cone Demo
-----------------------------------
| Copyright 2022 by Joel C. Alcarez |
| [joelalcarez1975@gmail.com] |
|-----------------------------------|
| We make absolutely no warranty |
| of any kind, expressed or implied |
|-----------------------------------|
| This g... | 38.724138 | 109 | 0.548531 |
077c2964f05f1e340c5f354633e006236a1d9021 | 2,001 | py | Python | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | analysis/training_curve_6D.py | AndrewKirby2/data_synthesis | 656858137a348fd5dcb57bcd04bdfece2b9eac1b | [
"MIT"
] | null | null | null | """ Plot a training curve for the 6D data simulator of CT*
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import RBF, WhiteKernel, Matern
from sklearn.metrics imp... | 34.5 | 92 | 0.733633 |
077cc03c99f16d778bcf96bc07a8e66081bca025 | 5,210 | py | Python | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 28 | 2015-04-03T05:01:14.000Z | 2021-12-31T00:29:40.000Z | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 3 | 2017-03-20T15:47:24.000Z | 2017-05-21T16:07:22.000Z | website/raspac.py | tpudlik/RaspAC | e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677 | [
"MIT"
] | 8 | 2015-08-27T07:33:08.000Z | 2018-09-27T21:54:49.000Z | import sqlite3
import subprocess, datetime
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
from contextlib import closing
from tquery import get_latest_record
from config import *
app = Flask(__name__)
app.config.from_object(__name__)... | 37.482014 | 87 | 0.616507 |
077cca840f68935d92c69072c7307ddde041c399 | 818 | py | Python | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | 1 | 2021-01-05T01:52:31.000Z | 2021-01-05T01:52:31.000Z | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | 2 | 2020-07-03T07:54:46.000Z | 2020-07-03T07:59:08.000Z | tests/util_test.py | NLESC-JCER/pyspectra | b7ece1fff537039f3306b23e00812aa1c8ffc729 | [
"Apache-2.0"
] | null | null | null | """Helper functions to tests."""
import numpy as np
def norm(vs: np.array) -> float:
"""Compute the norm of a vector."""
return np.sqrt(np.dot(vs, vs))
def create_random_matrix(size: int) -> np.array:
"""Create a numpy random matrix."""
return np.random.normal(size=size ** 2).reshape(size, size)
... | 27.266667 | 68 | 0.640587 |
077e6b7b62074f7defc4bfc023b3cef03e6c40c9 | 1,046 | py | Python | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | 12 | 2020-04-21T01:09:14.000Z | 2022-01-13T08:42:03.000Z | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | null | null | null | solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py | leetcode-notebook/wonz | 9ffd2ce9b5f3a544ee958f5a0673215afd176c2b | [
"MIT"
] | 4 | 2020-03-31T03:06:16.000Z | 2021-07-06T07:27:44.000Z | from typing import List
if __name__ == "__main__":
nums = [2, 3, 1, 0, 2, 5, 3]
print(Solution().findRepeatNumber(nums)) | 26.15 | 63 | 0.43499 |
07800b91cf15e2b3fdf48ab87571db57cf0566dc | 1,702 | py | Python | examples/test_network.py | Charles-Peeke/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 4 | 2020-11-17T00:31:40.000Z | 2021-11-11T01:56:27.000Z | examples/test_network.py | Charles-Peeke/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 1 | 2020-10-12T17:41:40.000Z | 2020-10-12T17:41:40.000Z | examples/test_network.py | jdk514/gwu_nn | 3f5e9937abf2bfb81a74a2d6f3653a661e705f67 | [
"MIT"
] | 5 | 2020-11-12T21:13:35.000Z | 2021-11-30T22:15:28.000Z | import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from gwu_nn.gwu_network import GWUNetwork
from gwu_nn.layers import Dense
from gwu_nn.activation_layers import Sigmoid
np.random.seed(8)
num_obs = 8000
# Create our features to draw from two distinct 2D... | 30.392857 | 91 | 0.675676 |
07806fd3652fda3f2cbc32b699b1c68679d17f6c | 6,227 | py | Python | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | scattering/van_hove.py | XiaoboLinlin/scattering | 0173b63f3243bdbcccfa562dbf5e3714920cded2 | [
"MIT"
] | null | null | null | import itertools as it
import numpy as np
import mdtraj as md
from progressbar import ProgressBar
from scattering.utils.utils import get_dt
from scattering.utils.constants import get_form_factor
def compute_van_hove(trj, chunk_length, water=False,
r_range=(0, 1.0), bin_width=0.005, n_bins=None,... | 36.629412 | 117 | 0.604464 |
07807421fe3926d24423bc71ab071f0fe56cfec8 | 785 | py | Python | nn_benchmark/networks/__init__.py | QDucasse/nn_benchmark | 0a32db241e75853c7d78dccf6d7b6940e5a0e4d0 | [
"MIT"
] | 18 | 2020-06-10T10:30:55.000Z | 2022-02-21T08:28:00.000Z | nn_benchmark/networks/__init__.py | QDucasse/nn_benchmark | 0a32db241e75853c7d78dccf6d7b6940e5a0e4d0 | [
"MIT"
] | 29 | 2020-06-24T09:09:55.000Z | 2021-09-09T10:10:21.000Z | nn_benchmark/networks/__init__.py | QDucasse/nn_benchmark | 0a32db241e75853c7d78dccf6d7b6940e5a0e4d0 | [
"MIT"
] | 2 | 2020-10-30T23:36:42.000Z | 2021-09-07T12:58:06.000Z | # -*- coding: utf-8 -*-
# nn_benchmark
# author - Quentin Ducasse
# https://github.com/QDucasse
# quentin.ducasse@ensta-bretagne.org
from __future__ import absolute_import
__all__ = ["lenet","lenet5","quant_lenet5",
"quant_cnv", "quant_tfc",
"mobilenetv1","quant_mobilenetv1",
"vggnet... | 28.035714 | 48 | 0.614013 |
078077ca30c799c1dd1930850adac76494c46916 | 820 | py | Python | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | Section1_Basics/contours.py | NeeharikaDva/opencv_course | 234515ab59a1228c8dfd3c69f310dbc1d86c6089 | [
"MIT"
] | null | null | null | #pylint:disable=no-member
import cv2 as cv
import numpy as np
img = cv.imread('/Users/webileapp/Desktop/niharika_files/projects/opencv_course_master/Resources/Photos/cats.jpg')
cv.imshow('Cats', img)
#
blank = np.zeros(img.shape[:2], dtype='uint8')
cv.imshow('Blank', blank)
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)... | 27.333333 | 114 | 0.729268 |
078092a018208fa66acdafddfde2bd709ed8859d | 51 | py | Python | mmdet/ops/fcosr_tools/__init__.py | RangeKing/FCOSR | b92f0cee2e89d6a268884bacd02fb28881cd44a4 | [
"Apache-2.0"
] | 38 | 2021-11-23T02:58:47.000Z | 2022-03-21T08:16:59.000Z | mmdet/ops/fcosr_tools/__init__.py | RangeKing/FCOSR | b92f0cee2e89d6a268884bacd02fb28881cd44a4 | [
"Apache-2.0"
] | 15 | 2021-12-06T07:51:04.000Z | 2022-03-29T11:35:29.000Z | mmdet/ops/fcosr_tools/__init__.py | RangeKing/FCOSR | b92f0cee2e89d6a268884bacd02fb28881cd44a4 | [
"Apache-2.0"
] | 12 | 2021-11-23T02:58:50.000Z | 2022-03-24T01:18:23.000Z | from . import fcosr_tools
__all__ = ['fcosr_tools'] | 25.5 | 25 | 0.764706 |
0780e5ec41de515a271f19ff0412527f1e12bd8f | 287 | py | Python | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | health_care/health_care/doctype/practitioner/practitioner.py | Jnalis/frappe-health-care | ed347c216f568cc044c1365965d35945697cf7dc | [
"MIT"
] | null | null | null | # Copyright (c) 2022, Juve and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
| 28.7 | 77 | 0.777003 |
07827562174365b2eae2774f05f5a4b7e0a35d24 | 1,617 | py | Python | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | null | null | null | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | 9 | 2020-10-11T13:55:12.000Z | 2020-12-09T16:28:06.000Z | install-hooks.py | JustasGau/DonjinKrawler | faff50dcfcebf82028c9af10434359f975247d33 | [
"MIT"
] | null | null | null | import sys
from os import path
import urllib; from urllib.request import urlretrieve
from subprocess import call
if __name__ == "__main__":
if (len(sys.argv) < 2):
print("Enter a directory to install hooks")
else:
if (path.exists(sys.argv[1])):
install_hooks(sys.argv[1])
| 52.16129 | 150 | 0.678417 |
078375b28d8a3c360255f33574ef015988b175c4 | 3,962 | py | Python | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | 09_MicroServer_Cookies/micro_server.py | Rockfish/PythonCourse | 1d650e49950d1987d052028139fcdfcb0bbfcc70 | [
"MIT"
] | null | null | null | """
Micro webapp based on WebOb, Jinja2, WSGI with a simple router
"""
import os
import hmac
import hashlib
import mimetypes
from wsgiref.simple_server import WSGIServer, WSGIRequestHandler
from webob import Request
from webob import Response
from jinja2 import Environment, FileSystemLoader
| 33.576271 | 100 | 0.649419 |
0784261b13ef0cb016c21f71e6bc994a164d136e | 2,234 | py | Python | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2017-07-14T19:22:39.000Z | 2017-07-14T19:22:39.000Z | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 6 | 2021-02-02T23:08:48.000Z | 2021-09-08T02:47:17.000Z | apps/addons/management/commands/jetpackers.py | clouserw/olympia | 1d5755b08a526372ec66e6bc64ab636018181969 | [
"BSD-3-Clause"
] | 1 | 2021-03-13T00:33:12.000Z | 2021-03-13T00:33:12.000Z | import logging
from django.core import mail
from django.conf import settings
from django.core.management.base import BaseCommand
import amo.utils
from users.models import UserProfile
log = logging.getLogger('z.mailer')
FROM = settings.DEFAULT_FROM_EMAIL
SUBJECT = 'Instructions for Automatic Upgrade to Add-on SDK... | 34.369231 | 80 | 0.717995 |
07851008cd92498c823e9a48b615278bda99bf7d | 49,605 | py | Python | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 160 | 2015-09-09T00:07:34.000Z | 2022-03-15T22:22:49.000Z | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 414 | 2015-08-25T20:22:09.000Z | 2022-03-31T13:01:10.000Z | astroplan/constraints.py | edose/astroplan | b3cf55340c50ccf69ec363889c1fe8ff2f93cada | [
"BSD-3-Clause"
] | 90 | 2015-08-27T20:53:48.000Z | 2022-01-25T06:11:16.000Z | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Specify and constraints to determine which targets are observable for
an observer.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
# Standard library
from abc import ABCMeta, abstractme... | 37.353163 | 100 | 0.617579 |
078516b1582562801fbf63851c5ac10efbd5d833 | 6,191 | py | Python | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | backend/views.py | Raulios/django-blog | ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2 | [
"MIT"
] | null | null | null | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.core.urlresolvers import reverse
from django.shortcuts import render
from django.http import HttpResponseRedirect
from core.models import Po... | 25.166667 | 75 | 0.663059 |
0785423db820435be27b39e1842db52b66a25a8e | 2,953 | py | Python | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | tiktorch/server/session/process.py | FynnBe/tiktorch | 60c6fa9700e7ff73e44338e8755c56c6e8846f2f | [
"MIT"
] | null | null | null | import dataclasses
import io
import multiprocessing as _mp
import uuid
import zipfile
from concurrent.futures import Future
from multiprocessing.connection import Connection
from typing import List, Optional, Tuple
import numpy
from tiktorch import log
from tiktorch.rpc import Shutdown
from tiktorch.rpc import mp as ... | 30.132653 | 105 | 0.691162 |
078596cc2ee665e19eee2250f95d62feca0bd3b2 | 1,816 | py | Python | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | from openpype.modules.ftrack.lib import BaseEvent
from openpype.modules.ftrack.lib.avalon_sync import CUST_ATTR_ID_KEY
from openpype.modules.ftrack.event_handlers_server.event_sync_to_avalon import (
SyncToAvalonEvent
)
def register(session):
'''Register plugin. Called when used as an plugin.'''
DelAvalo... | 33.018182 | 80 | 0.562225 |
0785a9ecd33b25242a059e89ddfae1ca8b3c0298 | 518 | py | Python | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 17 | 2015-02-10T07:10:29.000Z | 2021-05-14T22:24:45.000Z | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 459 | 2015-03-31T18:24:23.000Z | 2022-03-30T19:44:40.000Z | tests/workflow/test_workflow_ingest_accepted_submission.py | elifesciences/elife-bot | d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9 | [
"MIT"
] | 9 | 2015-04-18T16:57:31.000Z | 2020-10-30T11:49:13.000Z | import unittest
import tests.settings_mock as settings_mock
from tests.activity.classes_mock import FakeLogger
from workflow.workflow_IngestAcceptedSubmission import workflow_IngestAcceptedSubmission
| 34.533333 | 88 | 0.783784 |
078638d293ec315b963165f9210a9060b0e09180 | 2,436 | py | Python | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | go/token/views.py | lynnUg/vumi-go | 852f906c46d5d26940bd6699f11488b73bbc3742 | [
"BSD-3-Clause"
] | null | null | null | from urllib import urlencode
import urlparse
from django.shortcuts import Http404, redirect
from django.contrib.auth.views import logout
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from vumi.utils import load_class_by_strin... | 35.304348 | 79 | 0.70197 |
078810f30530e12e24a60251c7822cc072db8c3d | 1,142 | py | Python | typogrify/templatetags/typogrify_tags.py | tylerbutler/typogrify | 7b7a67348a2d51400fd38c0b61e30e34ca98994e | [
"BSD-3-Clause"
] | null | null | null | typogrify/templatetags/typogrify_tags.py | tylerbutler/typogrify | 7b7a67348a2d51400fd38c0b61e30e34ca98994e | [
"BSD-3-Clause"
] | null | null | null | typogrify/templatetags/typogrify_tags.py | tylerbutler/typogrify | 7b7a67348a2d51400fd38c0b61e30e34ca98994e | [
"BSD-3-Clause"
] | null | null | null | from typogrify.filters import amp, caps, initial_quotes, smartypants, titlecase, typogrify, widont, TypogrifyError
from functools import wraps
from django.conf import settings
from django import template
from django.utils.safestring import mark_safe
from django.utils.encoding import force_unicode
register = template.... | 27.853659 | 114 | 0.69965 |
0789092717eaaad8fa74b92820df7d2a61d9ba9b | 18,065 | py | Python | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 7 | 2021-08-02T09:58:08.000Z | 2022-03-17T21:13:34.000Z | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 2 | 2021-08-09T14:57:38.000Z | 2022-03-28T13:25:19.000Z | bvbabel/vmr.py | carbrock/bvbabel | baac12d106455e34d9924309eadb4df991d3d8c9 | [
"MIT"
] | 4 | 2021-08-09T07:45:59.000Z | 2022-03-22T23:02:15.000Z | """Read, write, create Brainvoyager VMR file format."""
import struct
import numpy as np
from bvbabel.utils import (read_variable_length_string,
write_variable_length_string)
# =============================================================================
def read_vmr(filename):
"""Read... | 45.049875 | 79 | 0.546305 |
0789c9270fff78d0b163f2215a2a6a958e9cdb11 | 2,279 | py | Python | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 399 | 2017-05-30T05:12:48.000Z | 2022-01-29T05:53:08.000Z | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 187 | 2018-03-16T23:44:43.000Z | 2021-12-14T21:19:54.000Z | example/image-classification/test_score.py | Vikas-kum/incubator-mxnet | ba02bf2fe2da423caa59ddb3fd5e433b90b730bf | [
"Apache-2.0"
] | 107 | 2017-05-30T05:53:22.000Z | 2021-06-24T02:43:31.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.174603 | 78 | 0.662571 |
078a7ff149f5f6902b3df48444c9f900c3b57349 | 139,271 | py | Python | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | 7 | 2018-05-10T08:16:31.000Z | 2018-05-15T00:59:26.000Z | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | 1 | 2018-05-15T00:15:35.000Z | 2018-05-15T13:40:19.000Z | verticapy/vcolumn.py | vertica/vertica_ml_python | 9e82dba94afe8447bfa2492f343af6669128e2fb | [
"Apache-2.0"
] | null | null | null | # (c) Copyright [2018-2022] Micro Focus or one of its affiliates.
# 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... | 34.261009 | 378 | 0.486139 |
078a84b6d5f9b27e924368e0c1490273227caf78 | 6,918 | py | Python | booktags/flaskapp/book/views.py | MagicSword/Booktags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | null | null | null | booktags/flaskapp/book/views.py | MagicSword/Booktags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | 9 | 2019-12-20T15:24:38.000Z | 2021-12-13T20:28:48.000Z | booktags/flaskapp/book/views.py | MagicSword/BookTags | 44142e19aec5ce75266233964d7ab21503bbe57c | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
example.py
~~~~~~~~~
A simple command line application to run flask apps.
:copyright: 2019 Miller
:license: BSD-3-Clause
"""
# Known bugs that can't be fixed here:
# - synopsis() cannot be prevented from clobbering existing
# loaded modules.
... | 30.746667 | 88 | 0.645273 |
078ba56d9b68af88a26ed1e2d4bb4466a1a8bcb9 | 429 | py | Python | narwhallet/core/kws/http/enumerations/mediatypes.py | Snider/narwhallet | 0d528763c735f1e68b8264e302854d41e7cf1956 | [
"MIT"
] | 3 | 2021-12-29T11:25:13.000Z | 2022-01-16T13:57:17.000Z | narwhallet/core/kws/http/enumerations/mediatypes.py | Snider/narwhallet | 0d528763c735f1e68b8264e302854d41e7cf1956 | [
"MIT"
] | null | null | null | narwhallet/core/kws/http/enumerations/mediatypes.py | Snider/narwhallet | 0d528763c735f1e68b8264e302854d41e7cf1956 | [
"MIT"
] | 1 | 2022-01-16T13:57:20.000Z | 2022-01-16T13:57:20.000Z | from enum import Enum
| 23.833333 | 68 | 0.613054 |
078c924330df0f8ffe4dba08335fcd4ca824b7c3 | 125 | py | Python | electrondiffraction/__init__.py | drix00/ElectronDiffraction | 9dc258d90d0b73745b904b1bb6e1e3e794403a27 | [
"Apache-2.0"
] | 1 | 2020-07-23T12:24:09.000Z | 2020-07-23T12:24:09.000Z | python/xraynomenclature/xraynomenclature/__init__.py | drix00/xray-nomenclature | 92d3e15b9ebb505482a084522c6639ba09bbdd02 | [
"Apache-2.0"
] | null | null | null | python/xraynomenclature/xraynomenclature/__init__.py | drix00/xray-nomenclature | 92d3e15b9ebb505482a084522c6639ba09bbdd02 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = """Hendrix Demers"""
__email__ = 'hendrix.demers@mail.mcgill.ca'
__version__ = '0.1.0'
| 20.833333 | 43 | 0.648 |
078df566472a507b372dad23be527536aa2fa29f | 4,082 | py | Python | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2015-09-07T17:19:40.000Z | 2015-09-07T17:19:40.000Z | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2016-01-05T13:18:16.000Z | 2016-01-05T14:16:57.000Z | storelet.py | markembling/storelet | 9951368e2f143855d2c14509bdb8cf796d6e54b8 | [
"BSD-3-Clause"
] | 1 | 2019-02-21T09:20:48.000Z | 2019-02-21T09:20:48.000Z | import os
import logging
from tempfile import mkstemp, mkdtemp
from shutil import rmtree
from zipfile import ZipFile, ZIP_DEFLATED
from datetime import datetime
from boto.s3.connection import S3Connection
from boto.s3.key import Key
__version__ = "0.1.8"
__author__ = "Mark Embling"
__email__ = "mark@markembling.info"
... | 36.123894 | 82 | 0.607055 |
078eac42052a5c2213460643ce82f3d54d3402ee | 963 | py | Python | apps/delivery/migrations/0001_initial.py | jimforit/lagou | 165593a15597012092b5e0ba34158fbc1d1c213d | [
"MIT"
] | 2 | 2019-03-11T03:58:19.000Z | 2020-03-06T06:45:28.000Z | apps/delivery/migrations/0001_initial.py | jimforit/lagou | 165593a15597012092b5e0ba34158fbc1d1c213d | [
"MIT"
] | 5 | 2020-06-05T20:04:20.000Z | 2021-09-08T00:53:52.000Z | apps/delivery/migrations/0001_initial.py | jimforit/lagou | 165593a15597012092b5e0ba34158fbc1d1c213d | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2019-03-08 13:03
from django.db import migrations, models
| 33.206897 | 157 | 0.559709 |
078f93641653dd1d0323ab98d96a9fc89761a30c | 721 | py | Python | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2018-02-24T10:51:07.000Z | 2018-02-24T10:51:07.000Z | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | null | null | null | elementary/date-and-time-convertor.py | vargad/exercises | 1a2fc2557672749d590ebdf596f99f53405320a1 | [
"MIT"
] | 1 | 2019-02-13T21:41:07.000Z | 2019-02-13T21:41:07.000Z | #!/usr/bin/env python3
if __name__ == '__main__':
print(date_time("01.01.2018 00:00"))
assert date_time("01.01.2018 00:00") == "1 January 2018 year 0 hours 0 minutes"
assert date_time("04.08.1984 08:15") == "4 August 1984 year 8 hours 15 minutes"
assert date_time("17.12.1990 07:42") == "17 December 199... | 51.5 | 153 | 0.62552 |
078fda9e491f07fc6685fbdf4be7377dd5f3e4a3 | 10,361 | py | Python | lbry/wallet/server/peer.py | snapperVibes/lbry-sdk | 77a51d1ad43404e5dc52af715a7bebfaeb3fee16 | [
"MIT"
] | 2 | 2021-04-14T07:37:37.000Z | 2021-05-18T13:20:11.000Z | lbry/wallet/server/peer.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | lbry/wallet/server/peer.py | lucianolb76/lbry-sdk | 0c09f24cbf5bd0959dedca63363ff7ffadd45d66 | [
"MIT"
] | null | null | null | # Copyright (c) 2017, Neil Booth
#
# All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the r... | 34.194719 | 78 | 0.599266 |
078fed475eb9a6e7954859be5858da011d4c522e | 1,787 | py | Python | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | null | null | null | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | 24 | 2021-11-03T06:20:16.000Z | 2022-03-31T06:23:17.000Z | tests/components/deconz/test_diagnostics.py | aomann/core | 5e71e7b775461cd4849c36075c6a1459a7d0ad22 | [
"Apache-2.0"
] | null | null | null | """Test deCONZ diagnostics."""
from unittest.mock import patch
from pydeconz.websocket import STATE_RUNNING
from homeassistant.const import Platform
from .test_gateway import DECONZ_CONFIG, setup_deconz_integration
from tests.components.diagnostics import get_diagnostics_for_config_entry
| 32.490909 | 73 | 0.582541 |
079020088d5707b9fc6c67fde0c7358e446490f2 | 32,821 | py | Python | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | jax_md/partition.py | l1zp/jax-md | 2440794aebb1c77116459e2ec2051d537a94ecf4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 38.34229 | 85 | 0.681728 |
0790c876aeebfd734072b2709676f53a6053af06 | 964 | py | Python | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-19T11:46:48.000Z | 2021-11-19T11:46:48.000Z | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2021-11-22T07:48:03.000Z | 2021-11-22T07:48:03.000Z | rhucrl_experiments/evaluate/launch_evaluate_mass.py | sebascuri/rhucrl | 27663e1302f3bbc636dff28495c6f2667bb7c1da | [
"MIT"
] | 1 | 2022-03-26T10:18:01.000Z | 2022-03-26T10:18:01.000Z | """Run from rhucrl_experiments.evaluate folder."""
import socket
from lsf_runner import init_runner, make_commands
from rhucrl_experiments.evaluate.utilities import ENVIRONMENTS
RARL_DIR = "../../runs/RARLAgent"
ZERO_SUM_DIR = "../../runs/ZeroSumAgent"
SCRIPT = "evaluate_mass_change.py"
EXPERIMENTS = {
"supermod... | 37.076923 | 84 | 0.693983 |