hexsha stringlengths 40 40 | size int64 1 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 239 | max_stars_repo_name stringlengths 5 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 239 | max_issues_repo_name stringlengths 5 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 239 | max_forks_repo_name stringlengths 5 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.03M | avg_line_length float64 1 958k | max_line_length int64 1 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a212cd846ad07e2bd4850b890c2752ed5981518 | 116,442 | py | Python | python/ccxt/async_support/okex3.py | quadency/ccxt | 12d45145825e48cff0dde577a8048afe96ede233 | [
"MIT"
] | 1 | 2020-09-29T05:46:16.000Z | 2020-09-29T05:46:16.000Z | python/ccxt/async_support/okex3.py | quadency/ccxt | 12d45145825e48cff0dde577a8048afe96ede233 | [
"MIT"
] | null | null | null | python/ccxt/async_support/okex3.py | quadency/ccxt | 12d45145825e48cff0dde577a8048afe96ede233 | [
"MIT"
] | 1 | 2020-06-09T04:29:45.000Z | 2020-06-09T04:29:45.000Z | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
# -----------------------------------------------------------------------------
try... | 44.579632 | 493 | 0.459319 |
4a212d476b567312cd0b4718a3d5cf008f66524c | 575 | py | Python | selenium_test.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Struckdown | a75d4282b6c4e3e05653edcef76fd1c9c1401c07 | [
"MIT"
] | null | null | null | selenium_test.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Struckdown | a75d4282b6c4e3e05653edcef76fd1c9c1401c07 | [
"MIT"
] | 1 | 2021-06-01T22:52:08.000Z | 2021-06-01T22:52:08.000Z | selenium_test.py | cmput401-fall2018/web-app-ci-cd-with-travis-ci-Struckdown | a75d4282b6c4e3e05653edcef76fd1c9c1401c07 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def test_home():
driver = webdriver.Chrome()
driver.get("http://127.0.0.1:8000")
elem = driver.find_element_by_id("name")
assert elem != None
elem = driver.find_element_by_id("about")
assert elem != None
elem = driver.find_element_b... | 27.380952 | 55 | 0.751304 |
4a212e395bde35e2318e6e9425076d0448d48050 | 2,297 | py | Python | python_study/07linkedlist/linked_list.py | xuyang7952/algo | 0c3cabcdc1aaa3dcb51edc51cf4dea3dce405959 | [
"Apache-2.0"
] | null | null | null | python_study/07linkedlist/linked_list.py | xuyang7952/algo | 0c3cabcdc1aaa3dcb51edc51cf4dea3dce405959 | [
"Apache-2.0"
] | null | null | null | python_study/07linkedlist/linked_list.py | xuyang7952/algo | 0c3cabcdc1aaa3dcb51edc51cf4dea3dce405959 | [
"Apache-2.0"
] | null | null | null | """
1) Reverse singly-linked list
2) Detect cycle in a list
3) Merge two sorted lists
4) Remove nth node from the end
5) Find middle node
Author: Xuyang
"""
from typing import Optional
class Node:
def __init__(self, data: int, next=None):
self.data = data
self._next = ne... | 23.20202 | 88 | 0.591641 |
4a212ec0df02c48d8c7382a9be3dd1e7b4f66dd0 | 36,580 | py | Python | saleor/core/utils/random_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 3 | 2019-01-24T11:41:58.000Z | 2019-11-10T13:12:24.000Z | saleor/core/utils/random_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 11 | 2021-03-30T14:26:57.000Z | 2022-03-12T00:51:07.000Z | saleor/core/utils/random_data.py | angeles-ricardo-89/saleor | 5fab7a883d025bff83320fbdd557ed7afa2923a9 | [
"BSD-3-Clause"
] | 12 | 2019-03-21T03:24:58.000Z | 2022-01-13T10:55:34.000Z | import itertools
import json
import os
import random
import unicodedata
import uuid
from collections import defaultdict
from typing import Type, Union
from unittest.mock import patch
from django.conf import settings
from django.contrib.auth.models import Group, Permission
from django.contrib.sites.models import Site
f... | 29.95905 | 88 | 0.606288 |
4a212ee66405528c538c7b2fb36f584f01c8d30b | 1,946 | py | Python | personal_finance/config/personal_finance.py | fderyckel/personal_finance | dd4f8f19ad1b6accd608b4999ddf85e20e1c85ec | [
"MIT"
] | 4 | 2021-01-10T05:34:04.000Z | 2021-11-15T19:35:54.000Z | personal_finance/config/personal_finance.py | adityaduggal/personal_finance | dd4f8f19ad1b6accd608b4999ddf85e20e1c85ec | [
"MIT"
] | null | null | null | personal_finance/config/personal_finance.py | adityaduggal/personal_finance | dd4f8f19ad1b6accd608b4999ddf85e20e1c85ec | [
"MIT"
] | 7 | 2019-07-30T15:10:28.000Z | 2021-11-15T19:35:56.000Z | from frappe import _
def get_data():
return [
{
"label": _("Transaction Masters"),
"items": [
{
"type": "doctype",
"name": "Income Expense Entry",
},
{
"type": "doctype",
... | 26.297297 | 56 | 0.270812 |
4a212f92c3c488c4cd383afb0a4a8007675ab7cf | 5,788 | py | Python | src/fedservice/rp/__init__.py | rohe/fedservice | 1460d21217b804cac0f38fa26ffa24bee7cf6dad | [
"Apache-2.0"
] | 3 | 2018-11-28T12:01:31.000Z | 2020-12-16T21:43:29.000Z | src/fedservice/rp/__init__.py | rohe/fedservice | 1460d21217b804cac0f38fa26ffa24bee7cf6dad | [
"Apache-2.0"
] | 13 | 2020-02-10T15:33:37.000Z | 2022-02-01T16:43:36.000Z | src/fedservice/rp/__init__.py | rohe/fedservice | 1460d21217b804cac0f38fa26ffa24bee7cf6dad | [
"Apache-2.0"
] | 4 | 2019-05-29T10:04:48.000Z | 2020-10-14T09:52:53.000Z | import logging
from typing import Optional
from cryptojwt.key_jar import init_key_jar
import oidcrp
from oidcrp import rp_handler
from oidcrp.oauth2 import Client
from oidcrp.util import lower_or_upper
from fedservice import create_federation_entity
logger = logging.getLogger(__name__)
class RPHandler(rp_handler.R... | 38.845638 | 100 | 0.617484 |
4a2131471d7308e533a6f0a2797fa99568967904 | 1,738 | py | Python | app/user/serializers.py | Busterflint/recipe-app-ap1 | 6d073c244ef5abde49de313019974293c5c5ee38 | [
"MIT"
] | null | null | null | app/user/serializers.py | Busterflint/recipe-app-ap1 | 6d073c244ef5abde49de313019974293c5c5ee38 | [
"MIT"
] | null | null | null | app/user/serializers.py | Busterflint/recipe-app-ap1 | 6d073c244ef5abde49de313019974293c5c5ee38 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object."""
class Meta:
model = get_user_model()
fields = ('... | 33.423077 | 77 | 0.643843 |
4a2131819f013f2edfb099e59fa60316b8d7fa51 | 20,254 | py | Python | highcharts/highstock/options.py | Jbrunn/python-highcharts | a4c488ae5c2e125616efad5a722f3dfd8a9bc450 | [
"MIT"
] | 370 | 2015-10-07T20:13:10.000Z | 2022-03-31T03:43:17.000Z | highcharts/highstock/options.py | Jbrunn/python-highcharts | a4c488ae5c2e125616efad5a722f3dfd8a9bc450 | [
"MIT"
] | 67 | 2016-03-14T12:18:44.000Z | 2022-02-24T09:24:31.000Z | highcharts/highstock/options.py | Jbrunn/python-highcharts | a4c488ae5c2e125616efad5a722f3dfd8a9bc450 | [
"MIT"
] | 159 | 2016-02-25T15:07:52.000Z | 2022-03-12T13:04:14.000Z | # -*- coding: UTF-8 -*-
from past.builtins import basestring
from .highstock_types import OptionTypeError, Series, SeriesOptions
from .common import Formatter, Events, Position, ContextButton, Options3d, ResetZoomButton, \
Labels, PlotBands, PlotLines, Title, Items, Navigation, Handles, Background, Breaks, \
D... | 34.445578 | 130 | 0.555841 |
4a2131b65e9de878ce757a14f7183edcbd491e79 | 499 | py | Python | setup.py | amran-quantum/test | beb1f8e4d0ebe9862e199a70e06da42a9141b054 | [
"MIT"
] | null | null | null | setup.py | amran-quantum/test | beb1f8e4d0ebe9862e199a70e06da42a9141b054 | [
"MIT"
] | null | null | null | setup.py | amran-quantum/test | beb1f8e4d0ebe9862e199a70e06da42a9141b054 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("requirements.txt") as f:
install_requires = f.read().strip().split("\n")
# get version from __version__ variable in test_app/__init__.py
from test_app import __version__ as version
setup(
name="test_app",
version=version,
description="test app",
author="amr... | 24.95 | 63 | 0.785571 |
4a2132893071b90b44af29d67a8f02142a4c3b2b | 5,891 | py | Python | test/completion/arrays.py | perrinjerome/jedi | 00b220516de9a7d4e1ea313e0474840ca2e8d8c1 | [
"MIT"
] | 1 | 2020-12-18T21:45:22.000Z | 2020-12-18T21:45:22.000Z | test/completion/arrays.py | perrinjerome/jedi | 00b220516de9a7d4e1ea313e0474840ca2e8d8c1 | [
"MIT"
] | null | null | null | test/completion/arrays.py | perrinjerome/jedi | 00b220516de9a7d4e1ea313e0474840ca2e8d8c1 | [
"MIT"
] | null | null | null | # -----------------
# basic array lookups
# -----------------
#? int()
[1,""][0]
#? str()
[1,""][1]
#? int() str()
[1,""][2]
#? int() str()
[1,""][20]
#? int() str()
[1,""][str(hello)]
a = list()
#? list()
[a][0]
#? list()
[[a,a,a]][2][100]
c = [[a,""]]
#? str()
c[0][1]
b = [6,7]
#? int()
b[8-7]
# Something unre... | 12.022449 | 90 | 0.444576 |
4a21332de5e15983dd300e0ced515750bc34d905 | 2,435 | py | Python | ytelapi/models/body_54.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/models/body_54.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | ytelapi/models/body_54.py | Ytel-Inc/YtelAPI-Python | 139dc02d93e74c78b6c3d91e3002ae98e2270223 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
ytelapi
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
"""
class Body54(object):
"""Implementation of the 'body_54' model.
TODO: type model description here.
Attributes:
page (int): The page count to retrieve... | 28.647059 | 84 | 0.545791 |
4a2133f1c96719b3f7b7bbf336d75b2727428833 | 11,347 | py | Python | train_frcnn.py | vaishnavi-naik/keras-frcnn | d980e50a7da8097bc947be1bd8bed45f057c5289 | [
"Apache-2.0"
] | null | null | null | train_frcnn.py | vaishnavi-naik/keras-frcnn | d980e50a7da8097bc947be1bd8bed45f057c5289 | [
"Apache-2.0"
] | null | null | null | train_frcnn.py | vaishnavi-naik/keras-frcnn | d980e50a7da8097bc947be1bd8bed45f057c5289 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
import random
import pprint
import sys
import time
import numpy as np
from optparse import OptionParser
import pickle
import re
import traceback
import os
from tensorflow.keras import backend as K
from tensorflow.keras.optimizers import Adam, SGD, RMSprop
from tensorflow.keras.layers i... | 38.205387 | 191 | 0.738081 |
4a2133fce1828764d1ba495c762ea09ddcc60a86 | 2,140 | py | Python | pysm/tests/test_mpi_smoothing.py | xgarrido/pysm | a47162bddd0a9edefa8ea3fe57f38f3b78e27fd9 | [
"MIT"
] | null | null | null | pysm/tests/test_mpi_smoothing.py | xgarrido/pysm | a47162bddd0a9edefa8ea3fe57f38f3b78e27fd9 | [
"MIT"
] | null | null | null | pysm/tests/test_mpi_smoothing.py | xgarrido/pysm | a47162bddd0a9edefa8ea3fe57f38f3b78e27fd9 | [
"MIT"
] | null | null | null | import pytest
import numpy as np
import healpy as hp
import pysm
import pysm.units as u
try:
from mpi4py import MPI
except ImportError:
pytest.skip("mpi4py failed to import, skip MPI tests", allow_module_level=True)
try:
import libsharp
except ImportError:
pytest.skip(
"libsharp failed to impo... | 27.435897 | 87 | 0.639252 |
4a2134137313b1b4e62c5828b0b7dcc85ce82751 | 411 | py | Python | core/migrations/0006_task_completed.py | firminoneto11/bright-cities-todo | 74a3ebdc82699c0ffa1fcd39fa6b82248495a1dc | [
"MIT"
] | null | null | null | core/migrations/0006_task_completed.py | firminoneto11/bright-cities-todo | 74a3ebdc82699c0ffa1fcd39fa6b82248495a1dc | [
"MIT"
] | null | null | null | core/migrations/0006_task_completed.py | firminoneto11/bright-cities-todo | 74a3ebdc82699c0ffa1fcd39fa6b82248495a1dc | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-12 13:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20210612_0908'),
]
operations = [
migrations.AddField(
model_name='task',
name='completed',
... | 21.631579 | 79 | 0.610706 |
4a21342f961cfdc129e9cfcfdb4ac52377b4b275 | 8,254 | py | Python | models/base_model.py | mkecera/InstColorization | 14b5d7084912014a668b81a704619529dc63ccb1 | [
"MIT"
] | null | null | null | models/base_model.py | mkecera/InstColorization | 14b5d7084912014a668b81a704619529dc63ccb1 | [
"MIT"
] | null | null | null | models/base_model.py | mkecera/InstColorization | 14b5d7084912014a668b81a704619529dc63ccb1 | [
"MIT"
] | null | null | null | import os
import torch
from collections import OrderedDict
from . import networks
import skimage
from util import util
from skimage import io, img_as_ubyte, metrics
import numpy as np
class BaseModel():
# modify parser to add command line options,
# and also change the default values if needed
@staticmet... | 42.112245 | 117 | 0.591713 |
4a2134b8c04689ff39436baddfda427023663478 | 9,413 | py | Python | appengine/flexible/tasks/snippets.py | HoleCat/echarlosperros | b67460de0467e05b42a763c4430b26ecfd97c2aa | [
"Apache-2.0"
] | null | null | null | appengine/flexible/tasks/snippets.py | HoleCat/echarlosperros | b67460de0467e05b42a763c4430b26ecfd97c2aa | [
"Apache-2.0"
] | null | null | null | appengine/flexible/tasks/snippets.py | HoleCat/echarlosperros | b67460de0467e05b42a763c4430b26ecfd97c2aa | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 30.963816 | 75 | 0.626793 |
4a2134e05d81734f48f43758e42e5254cbab2119 | 134,907 | py | Python | astropy/io/fits/tests/test_table.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | 1 | 2020-05-10T21:17:24.000Z | 2020-05-10T21:17:24.000Z | astropy/io/fits/tests/test_table.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | null | null | null | astropy/io/fits/tests/test_table.py | bastianbeischer/astropy | 6054cc78b22a6bcd4b37fdfdec02f5331b957355 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see PYFITS.rst
import contextlib
import copy
import gc
import pickle
import re
import pytest
import numpy as np
from numpy import char as chararray
try:
import objgraph
HAVE_OBJGRAPH = True
except ImportError:
HAVE_OBJGRAPH = False
from astropy.io import f... | 40.162846 | 106 | 0.563714 |
4a2135a70f9b99a5d077588fea10553d7f201abc | 557 | py | Python | odin_securities/queries/gets/__init__.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 13 | 2017-02-04T08:41:10.000Z | 2020-06-09T12:43:09.000Z | odin_securities/queries/gets/__init__.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 1 | 2020-11-15T05:32:18.000Z | 2020-11-15T05:32:18.000Z | odin_securities/queries/gets/__init__.py | JamesBrofos/Odin-Securities | a07d3a21bcd3f78513ef394d4e8b620b7ca7fad8 | [
"MIT"
] | 9 | 2017-02-05T21:51:44.000Z | 2020-03-23T10:55:11.000Z | from .symbols import symbols
from .id_for_portfolio import id_for_portfolio
from .id_for_symbol import id_for_symbol
from .id_for_vendor import id_for_vendor
from .id_for_fund import id_for_fund
from .prices import prices
from .actions import actions
from .standard_sessions import standard_sessions
from .symbols_for_ve... | 39.785714 | 66 | 0.879713 |
4a2136d62beaaf726f187234c0e4ae0c2626a955 | 1,535 | py | Python | tests/test_types_itp_quartairstratigrafie.py | rebot/pydov | 1d5f0080440f4e0f983c8087aed9aec1624ba906 | [
"MIT"
] | null | null | null | tests/test_types_itp_quartairstratigrafie.py | rebot/pydov | 1d5f0080440f4e0f983c8087aed9aec1624ba906 | [
"MIT"
] | null | null | null | tests/test_types_itp_quartairstratigrafie.py | rebot/pydov | 1d5f0080440f4e0f983c8087aed9aec1624ba906 | [
"MIT"
] | null | null | null | """Module grouping tests for the
pydov.types.interpretaties.QuartairStratigrafie class."""
from pydov.types.interpretaties import QuartairStratigrafie
from pydov.util.dovutil import build_dov_url
from tests.abstract import AbstractTestTypes
location_wfs_getfeature = \
'tests/data/types/interpretaties/quartaire_str... | 37.439024 | 78 | 0.740065 |
4a2137fc201710e1215cf4d83a8c9d809c6aa9de | 628 | py | Python | mne/decoding/__init__.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 3 | 2021-01-04T08:45:56.000Z | 2021-05-19T12:25:59.000Z | mne/decoding/__init__.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 23 | 2017-09-12T11:08:26.000Z | 2019-10-04T11:11:29.000Z | mne/decoding/__init__.py | fmamashli/mne-python | 52f064415e7c9fa8fe243d22108dcdf3d86505b9 | [
"BSD-3-Clause"
] | 3 | 2019-01-28T13:48:00.000Z | 2019-07-10T16:02:11.000Z | """Decoding and encoding, including machine learning and receptive fields."""
from .transformer import (PSDEstimator, Vectorizer,
UnsupervisedSpatialFilter, TemporalFilter,
Scaler, FilterEstimator)
from .mixin import TransformerMixin
from .base import BaseEstimator, ... | 44.857143 | 77 | 0.778662 |
4a21381177d211e0812ad4107ef9ae72772adbbb | 2,414 | py | Python | home/models.py | Dogruyer/hospital-automation | e5faffce93c0bda475cd0dbd0e7ef0f55b11564d | [
"Apache-2.0"
] | null | null | null | home/models.py | Dogruyer/hospital-automation | e5faffce93c0bda475cd0dbd0e7ef0f55b11564d | [
"Apache-2.0"
] | null | null | null | home/models.py | Dogruyer/hospital-automation | e5faffce93c0bda475cd0dbd0e7ef0f55b11564d | [
"Apache-2.0"
] | null | null | null | from django.db import models
class Hasta(models.Model):
adi = models.CharField(max_length=100)
yas = models.IntegerField()
cinsiyet = models.CharField(max_length=100)
tc_kimlik_no = models.CharField(max_length=100)
class Hastane(models.Model):
adi = models.CharField(max_length=100)
lokasyon ... | 28.069767 | 51 | 0.73198 |
4a2139a5ccd5b1d9e30f9257efd2c07085656034 | 5,970 | py | Python | api_extractor_config.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | api_extractor_config.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | api_extractor_config.py | SigmaAdvancedAnalytics/hydra | bf392dfb0e458d1156f52aa206629c1d1636d7a3 | [
"MIT"
] | null | null | null | from sqlalchemy import *
DEBUG = False
# ***************************************************************************
# > BE VERY CAREFUL ABOUT CREATE_TABLES.
# > WHEN SET TO TRUE IT WILL DROP ALL THE EXISTING TABLES AND CREATES NEW ONES.
# ***********************************************************************... | 39.8 | 102 | 0.562647 |
4a2139e2da72ffd9befb49e1f916c7bc5931c139 | 3,241 | py | Python | LogAnalysis/PreProcess/eNodeB_CMAC_Log.py | WenPeiyu/LianjiaSpider | 9d4fd31df0120c756fbbd625b66f2fee4fe17891 | [
"MIT"
] | null | null | null | LogAnalysis/PreProcess/eNodeB_CMAC_Log.py | WenPeiyu/LianjiaSpider | 9d4fd31df0120c756fbbd625b66f2fee4fe17891 | [
"MIT"
] | null | null | null | LogAnalysis/PreProcess/eNodeB_CMAC_Log.py | WenPeiyu/LianjiaSpider | 9d4fd31df0120c756fbbd625b66f2fee4fe17891 | [
"MIT"
] | null | null | null | # 导入模块
import pandas as pd
import re
import time
import sys
import os
# 路径地址
# FilePath = r"d:/data/"
# OriginFile = FilePath + r"BPN_3_40_3_104201810241801_output.txt"
# FixedCSV = FilePath + r"Fixed.csv"
# ErrorFile = FilePath + r"Error.txt"
# LogOutput = FilePath + r"LogOutput.xlsx"
FilePath = os.path.split(os.path... | 34.115789 | 89 | 0.531009 |
4a213a6864005a954d5b5f00e7e6c07d8eb38f52 | 444 | py | Python | blog/models.py | BkrmDahal/newsapp | 5b8a00072662db31a87f7975dcdf8e5bb6068235 | [
"MIT"
] | 1 | 2018-05-11T16:30:55.000Z | 2018-05-11T16:30:55.000Z | blog/models.py | BkrmDahal/newsapp | 5b8a00072662db31a87f7975dcdf8e5bb6068235 | [
"MIT"
] | null | null | null | blog/models.py | BkrmDahal/newsapp | 5b8a00072662db31a87f7975dcdf8e5bb6068235 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Stories(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
summary = models.TextField()
tag = models.CharField(max_length = 200)
image_url = models.URLField()
url = models.URLField()
source ... | 27.75 | 47 | 0.695946 |
4a213a7a146c86ba996872fb2f9a6e31494f23ce | 59,595 | py | Python | python/paddle/fluid/layers/sequence_lod.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | python/paddle/fluid/layers/sequence_lod.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/layers/sequence_lod.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-09-24T11:23:36.000Z | 2021-09-24T11:23:36.000Z | # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 40.874486 | 162 | 0.545801 |
4a213abf2882edb3eab0db456d246f2f9011c0c2 | 685 | py | Python | carpyncho2/webproject/migrations/0005_auto_20161025_2357.py | carpyncho/yeolde_carpyncho | fba72ebf9d4a3e4e4ea18160310058c6812a0457 | [
"BSD-3-Clause"
] | null | null | null | carpyncho2/webproject/migrations/0005_auto_20161025_2357.py | carpyncho/yeolde_carpyncho | fba72ebf9d4a3e4e4ea18160310058c6812a0457 | [
"BSD-3-Clause"
] | 2 | 2020-06-05T19:37:26.000Z | 2020-06-05T19:40:38.000Z | carpyncho2/webproject/migrations/0005_auto_20161025_2357.py | carpyncho/yeolde_carpyncho | fba72ebf9d4a3e4e4ea18160310058c6812a0457 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-10-25 23:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webproject', '0004_auto_20160228_2217'),
]
operations = [
migrations.AlterFi... | 26.346154 | 108 | 0.608759 |
4a213b966f2b5fb377bb724c4bb3f4bd04bcb57c | 23,503 | py | Python | tests/test_modules/test_ADCore/test_hdfwriterpart.py | thomascobb/pymalcolm | 801f8fe6217c0c028b5edc87fa0aef9d60b91d9d | [
"Apache-2.0"
] | null | null | null | tests/test_modules/test_ADCore/test_hdfwriterpart.py | thomascobb/pymalcolm | 801f8fe6217c0c028b5edc87fa0aef9d60b91d9d | [
"Apache-2.0"
] | null | null | null | tests/test_modules/test_ADCore/test_hdfwriterpart.py | thomascobb/pymalcolm | 801f8fe6217c0c028b5edc87fa0aef9d60b91d9d | [
"Apache-2.0"
] | null | null | null | import os
import shutil
from xml.etree import ElementTree
import cothread
from mock import MagicMock, call, patch
from scanpointgenerator import CompoundGenerator, LineGenerator, SpiralGenerator
from malcolm.core import Context, Future, Process, TimeoutError
from malcolm.modules.ADCore.blocks import hdf_writer_block
... | 44.597723 | 88 | 0.643918 |
4a213b9f6526a9a193d0ca40c8a18de360095ba1 | 22,968 | py | Python | python/ccxt/test/test_async.py | Dan-krm/ccxt | 2ed8b7b8598e2934559822d81a8d14885b4d4ad3 | [
"MIT"
] | 1 | 2021-11-16T15:45:34.000Z | 2021-11-16T15:45:34.000Z | python/ccxt/test/test_async.py | Dan-krm/ccxt | 2ed8b7b8598e2934559822d81a8d14885b4d4ad3 | [
"MIT"
] | null | null | null | python/ccxt/test/test_async.py | Dan-krm/ccxt | 2ed8b7b8598e2934559822d81a8d14885b4d4ad3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import argparse
import asyncio
import json
# import logging
import os
import sys
import time # noqa: F401
from os import _exit
from traceback import format_tb
# ------------------------------------------------------------------------------
# logging.basicConfig(level=logging.INFO)
# ---------... | 34.958904 | 297 | 0.563871 |
4a213c29113e5e23af2caf7fbcb807be3d0166d2 | 14,286 | py | Python | python/paddle/fluid/tests/unittests/test_fused_elemwise_activation_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | python/paddle/fluid/tests/unittests/test_fused_elemwise_activation_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | python/paddle/fluid/tests/unittests/test_fused_elemwise_activation_op.py | jichangjichang/Paddle | 4fa3cee5499c6df0ad6043b0cfa220d09f2034e8 | [
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | 41.77193 | 94 | 0.628937 |
4a213d13ddf9d37a0d3d1ff753d588d277f2dd24 | 19,467 | py | Python | tests/rest/media/v1/test_media_storage.py | lukaslihotzki/synapse | 1dfdc87b9bb07cc3c958dde7f41f2af4322477e5 | [
"Apache-2.0"
] | 2 | 2021-07-07T10:21:41.000Z | 2021-12-28T00:13:20.000Z | tests/rest/media/v1/test_media_storage.py | lukaslihotzki/synapse | 1dfdc87b9bb07cc3c958dde7f41f2af4322477e5 | [
"Apache-2.0"
] | 2 | 2021-12-17T21:45:54.000Z | 2021-12-29T20:12:09.000Z | tests/rest/media/v1/test_media_storage.py | lukaslihotzki/synapse | 1dfdc87b9bb07cc3c958dde7f41f2af4322477e5 | [
"Apache-2.0"
] | 1 | 2021-06-16T23:25:48.000Z | 2021-06-16T23:25:48.000Z | # Copyright 2018 New Vector 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 in writin... | 33.738302 | 90 | 0.612216 |
4a213d85cc6b7a2b7712bd07675947f5d25a6f42 | 42,958 | py | Python | tests/core/test_playback.py | queyenth/mopidy | c010d5d53a00bbc1d576e78433607a14211795e8 | [
"Apache-2.0"
] | null | null | null | tests/core/test_playback.py | queyenth/mopidy | c010d5d53a00bbc1d576e78433607a14211795e8 | [
"Apache-2.0"
] | null | null | null | tests/core/test_playback.py | queyenth/mopidy | c010d5d53a00bbc1d576e78433607a14211795e8 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import unittest
import mock
import pykka
from mopidy import backend, core
from mopidy.internal import deprecation
from mopidy.internal.models import PlaybackState
from mopidy.models import Track
from tests import dummy_audio
class TestPlaybackProvider(back... | 32.842508 | 79 | 0.654127 |
4a213da75f8561f233d4f33fc4b9f7dfc94097a8 | 2,403 | py | Python | openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0147.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0147.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/GUC/CONNECTIONAUTHENTICATION/Opengauss_Function_Guc_Connectionauthentication_Case0147.py | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | """
Copyright (c) 2022 Huawei Technologies Co.,Ltd.
openGauss is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 35.338235 | 84 | 0.667915 |
4a213ddc075250f7922f857fe5cfe4f8195b39d7 | 1,876 | py | Python | docs/source/neo/example/sample4.py | BSathvik/neo-python | 90eddde0128f8ba41207d88fd68041682e307315 | [
"MIT"
] | 387 | 2017-07-17T18:25:54.000Z | 2021-11-18T06:19:47.000Z | docs/source/neo/example/sample4.py | BSathvik/neo-python | 90eddde0128f8ba41207d88fd68041682e307315 | [
"MIT"
] | 967 | 2017-08-19T15:48:03.000Z | 2021-06-01T21:42:39.000Z | docs/source/neo/example/sample4.py | BSathvik/neo-python | 90eddde0128f8ba41207d88fd68041682e307315 | [
"MIT"
] | 286 | 2017-07-17T03:44:36.000Z | 2021-11-18T06:19:32.000Z |
from boa.interop.Neo.Runtime import GetTrigger,CheckWitness
from boa.interop.Neo.Storage import Get,Put,Delete,GetContext
from boa.interop.Neo.TriggerType import Application, Verification
OWNER = b'\x03\x19\xe0)\xb9%\x85w\x90\xe4\x17\x85\xbe\x9c\xce\xc6\xca\xb1\x98\x96'
def Main(operation, addr, value):
print("... | 28 | 99 | 0.624733 |
4a213edb3ecbd1f0d886d4a2085a829c062eef39 | 6,135 | py | Python | tests/test_parameters.py | pywr/pywr-next | b3f95da7b57a3ee62bb9320f6ceaa9bbadb0548c | [
"Apache-2.0"
] | null | null | null | tests/test_parameters.py | pywr/pywr-next | b3f95da7b57a3ee62bb9320f6ceaa9bbadb0548c | [
"Apache-2.0"
] | 5 | 2021-07-29T21:51:17.000Z | 2022-02-07T13:15:03.000Z | tests/test_parameters.py | pywr/pywr-next | b3f95da7b57a3ee62bb9320f6ceaa9bbadb0548c | [
"Apache-2.0"
] | 1 | 2021-02-06T18:54:38.000Z | 2021-02-06T18:54:38.000Z | import pytest
import numpy as np
from pywr.model import Model
@pytest.fixture()
def simple_data():
return {
"timestepper": {"start": "2020-01-01", "end": "2020-12-31", "timestep": 1},
"nodes": [
{"name": "input1", "type": "input"},
{"name": "link1", "type": "link"},
... | 31.623711 | 101 | 0.392502 |
4a213fb447debf40c7d79b75d3d397c623221d32 | 6,159 | py | Python | riiid/validation.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | riiid/validation.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | riiid/validation.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | import os
import numpy as np
import pandas as pd
import itertools
import logging
class StartPicker:
def __init__(self, N, n):
self.N = N
self.n = n
self.length = N - n + 1
def get_prob(self, i):
if i < self.n:
return np.sqrt(self.n / (i + 1))
elif i > self... | 37.554878 | 154 | 0.637279 |
4a21400c0b3a35af0d4545fa2ae1537a7d197a4e | 1,023 | py | Python | synd.py | easybe/synd | 895a0958b5e50d6166ff28b32c7549bad7ebfff0 | [
"MIT"
] | null | null | null | synd.py | easybe/synd | 895a0958b5e50d6166ff28b32c7549bad7ebfff0 | [
"MIT"
] | null | null | null | synd.py | easybe/synd | 895a0958b5e50d6166ff28b32c7549bad7ebfff0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# SPDX-License-Identifier: MIT
"""Tiny Synology DiskStation daemon
The service will turn off the blinking LED at startup and shut the
system down when the power button is pressed.
"""
import os
import signal
import sys
from serial import Serial
UART_PORT = "/dev/ttyS1"
POWER_BUTTON_PRESSED =... | 22.23913 | 66 | 0.682307 |
4a21415032cb89e4ed3d24ff9cc7beb0cd14960c | 58,874 | py | Python | infoblox_netmri/api/broker/v3_7_0/auth_service_broker.py | NastyaArslanova/infoblox-netmri | 399d904399ba7958262c6f107fa3b0efdd55019b | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_7_0/auth_service_broker.py | NastyaArslanova/infoblox-netmri | 399d904399ba7958262c6f107fa3b0efdd55019b | [
"Apache-2.0"
] | null | null | null | infoblox_netmri/api/broker/v3_7_0/auth_service_broker.py | NastyaArslanova/infoblox-netmri | 399d904399ba7958262c6f107fa3b0efdd55019b | [
"Apache-2.0"
] | null | null | null | from ..broker import Broker
class AuthServiceBroker(Broker):
controller = "auth_services"
def show(self, **kwargs):
"""Shows the details for the specified auth service.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required... | 45.995313 | 551 | 0.579356 |
4a2141af21d8d1c6eba0ab39b2245625303abc85 | 15,143 | py | Python | microbepy/correlation/mutation_cooccurrence.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | 1 | 2019-05-04T00:31:05.000Z | 2019-05-04T00:31:05.000Z | microbepy/correlation/mutation_cooccurrence.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | null | null | null | microbepy/correlation/mutation_cooccurrence.py | ScienceStacks/MicrobEPy | 704435e66c58677bab24f27820458870092924e2 | [
"MIT"
] | null | null | null | """
Analyzes the co-occurrence of mutations in isolates.
Produces Combination Statistics - CoStatistic.
A combination is a group
of Isolates. Combination statistics are statistics about
a combination that summarize
- mutations common to the combination
- the average value of dependent variable(s)
- the range of... | 33.651111 | 74 | 0.66506 |
4a2141cfe7cd995686735b6a729ed68a9af47ea5 | 455 | py | Python | ams/ticket/migrations/0010_auto_20190117_1750.py | magnuspedro/ams | 72ef810d14d9a4724e781489d081140be6674d60 | [
"MIT"
] | null | null | null | ams/ticket/migrations/0010_auto_20190117_1750.py | magnuspedro/ams | 72ef810d14d9a4724e781489d081140be6674d60 | [
"MIT"
] | null | null | null | ams/ticket/migrations/0010_auto_20190117_1750.py | magnuspedro/ams | 72ef810d14d9a4724e781489d081140be6674d60 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.4 on 2019-01-17 17:50
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('ticket', '0009_auto_20190117_1740'),
]
operations = [
migrations.AlterField(
model_name='ticket',
name='... | 22.75 | 110 | 0.628571 |
4a214243064041a51b686d022ed84586e5237b26 | 4,027 | py | Python | test/functional/feature_notifications.py | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | 1 | 2021-12-30T23:58:45.000Z | 2021-12-30T23:58:45.000Z | test/functional/feature_notifications.py | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | null | null | null | test/functional/feature_notifications.py | Real-E-Coin/REC | 148063bd6afe431c565f3ae3e75f010b11b3d4e8 | [
"MIT"
] | 1 | 2022-01-10T22:13:20.000Z | 2022-01-10T22:13:20.000Z | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -alertnotify, -blocknotify and -walletnotify options."""
import os
from test_framework.test_f... | 44.252747 | 138 | 0.656072 |
4a21433e78f95509efeb11a344379828b876af20 | 1,826 | py | Python | docs/conf.py | Bixoto/PyMagento | 302ef79ab4bd00a22ad659751cebfba7e9173136 | [
"MIT"
] | 2 | 2021-12-21T16:43:05.000Z | 2022-01-21T09:15:54.000Z | docs/conf.py | Bixoto/PyMagento | 302ef79ab4bd00a22ad659751cebfba7e9173136 | [
"MIT"
] | null | null | null | docs/conf.py | Bixoto/PyMagento | 302ef79ab4bd00a22ad659751cebfba7e9173136 | [
"MIT"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
import ... | 29.934426 | 78 | 0.656079 |
4a214342722be17806ea5256089044939cd45180 | 1,515 | py | Python | main.py | gabrielcosi/patbot | 4f397e8cf94b30cdc248adc872568a64d0715767 | [
"MIT"
] | 1 | 2020-08-14T22:31:04.000Z | 2020-08-14T22:31:04.000Z | main.py | gabrielcosi/patbot | 4f397e8cf94b30cdc248adc872568a64d0715767 | [
"MIT"
] | null | null | null | main.py | gabrielcosi/patbot | 4f397e8cf94b30cdc248adc872568a64d0715767 | [
"MIT"
] | null | null | null | from selenium import webdriver
from time import sleep
class PatBot:
def __init__(self):
options = webdriver.ChromeOptions()
options.add_argument("--start-maximized")
self.driver = webdriver.Chrome(
executable_path='C:\webdrivers\chromedriver.exe', options=options)
user ... | 36.95122 | 79 | 0.605281 |
4a21437e98fd6246c02be63fe8d397039ecbe204 | 1,834 | py | Python | tools/EditFileVersions.py | gbishop/TarHeelGameplay | 4c14d8f1855fa560321e3e4d6cbfcf8320b9062b | [
"MIT"
] | null | null | null | tools/EditFileVersions.py | gbishop/TarHeelGameplay | 4c14d8f1855fa560321e3e4d6cbfcf8320b9062b | [
"MIT"
] | 35 | 2015-10-14T11:30:59.000Z | 2022-03-15T22:27:56.000Z | tools/EditFileVersions.py | gbishop/TarHeelGameplay | 4c14d8f1855fa560321e3e4d6cbfcf8320b9062b | [
"MIT"
] | 2 | 2018-10-12T13:08:47.000Z | 2019-02-08T22:59:32.000Z | """Edit files in Theme-build so that references are versioned to enable caching in production"""
import os.path as osp
import pickle
import hashlib
import re
import argparse
parser = argparse.ArgumentParser(description="Edit urls to include version numbers")
parser.add_argument("--staticHost", default="")
parser.add_... | 26.970588 | 96 | 0.623773 |
4a21444e6dba5430dcf21da27b6a929537e87497 | 4,866 | py | Python | cushead/generator/templates/templates.py | mrsantos321/customhead | bb70867afc34abe7a2ef76bb0f92c08d7ff38214 | [
"MIT"
] | 3 | 2019-10-08T06:02:23.000Z | 2020-01-22T09:14:35.000Z | cushead/generator/templates/templates.py | mrsantos321/cushead | bb70867afc34abe7a2ef76bb0f92c08d7ff38214 | [
"MIT"
] | 297 | 2019-08-22T19:45:23.000Z | 2022-03-26T02:30:25.000Z | cushead/generator/templates/templates.py | mrsantos321/cushead | bb70867afc34abe7a2ef76bb0f92c08d7ff38214 | [
"MIT"
] | 5 | 2019-09-25T02:35:04.000Z | 2021-03-31T04:23:47.000Z | """
Handle templates generation.
"""
from __future__ import annotations
import hashlib
import pathlib
import re
from typing import Any
from typing import List
from typing import Union
import jinja2
from cushead.generator import config as generator_config
from cushead.generator import files
from cushead.generator.tem... | 31.803922 | 120 | 0.609741 |
4a214511900da697506a7c9a9efda4e42b86be3e | 402 | py | Python | python/python_backup/PRAC_PYTHON/he.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | python/python_backup/PRAC_PYTHON/he.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | python/python_backup/PRAC_PYTHON/he.py | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | class palindrome:
def __init__(self):
self.a=""
def input(self,k1):
self.a=k1
def calculate(self):
f=0
j=len(k1)-1
while i<len(k1)/2:
if k1[i]!=k1[j]:
f=1
break
i=i+1
j=j-1
if f==0:
print "self.a is palindrome"
else:
print "self.a is not ... | 18.272727 | 38 | 0.534826 |
4a21454d3c018311d6dcc0caf4c806e4623d7d31 | 1,991 | py | Python | setup.py | ScottBrian/scottbrian_algo1 | 57cd8fc5674507db51b1c887d5f9a68462b0ca9d | [
"MIT"
] | null | null | null | setup.py | ScottBrian/scottbrian_algo1 | 57cd8fc5674507db51b1c887d5f9a68462b0ca9d | [
"MIT"
] | null | null | null | setup.py | ScottBrian/scottbrian_algo1 | 57cd8fc5674507db51b1c887d5f9a68462b0ca9d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 11 2020
@author: Scott Tuttle
"""
from pathlib import Path
from setuptools import setup, find_packages
with open('README.rst', 'r') as readme:
long_description = readme.read()
def get_version(rel_path):
target_path = Path(__file__).resol... | 34.929825 | 74 | 0.61326 |
4a21456da41b03b146d782b08774145c827b4736 | 2,712 | py | Python | setup.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 2 | 2016-05-19T05:51:15.000Z | 2017-10-13T13:43:00.000Z | setup.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 93 | 2016-03-26T20:34:01.000Z | 2021-03-25T21:41:57.000Z | setup.py | XENON1T/cax | 06de9290851904695275fd34d7c74e2c9eb7fe59 | [
"0BSD"
] | 2 | 2017-05-19T03:47:09.000Z | 2018-12-19T18:10:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
PROJECT = 'cax'
VERSION = '5.2.1'
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'checksumdir', 'scp', '... | 35.684211 | 302 | 0.613938 |
4a2145b06c10a85214d0ac16b32ea169da729813 | 138 | py | Python | module2/__init__.py | axel-sirota/advanced-generator-and-coroutines | fbb4f869b030a05dc10b4a49e9a091068d11e194 | [
"MIT"
] | 5 | 2020-08-04T16:44:14.000Z | 2021-08-21T02:23:03.000Z | module2/__init__.py | axel-sirota/advanced-generator-and-coroutines | fbb4f869b030a05dc10b4a49e9a091068d11e194 | [
"MIT"
] | 1 | 2021-03-21T16:33:58.000Z | 2021-03-21T16:33:58.000Z | module2/__init__.py | axel-sirota/advanced-generator-and-coroutines | fbb4f869b030a05dc10b4a49e9a091068d11e194 | [
"MIT"
] | 4 | 2020-10-22T11:40:15.000Z | 2022-01-30T19:42:07.000Z | from .mybomb import MyBomb
from .mybombgenerator import mybomb
from .mybomblazy import MyNotLazyBomb, mylazygenerator
from .demo import *
| 27.6 | 54 | 0.833333 |
4a214616bd4366c468657f58380de515e761ad49 | 474 | py | Python | symposion/utils/signup.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 154 | 2015-01-17T02:29:24.000Z | 2022-03-20T20:37:24.000Z | symposion/utils/signup.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 316 | 2015-01-10T04:01:50.000Z | 2020-09-30T20:18:08.000Z | symposion/utils/signup.py | azkarmoulana/pycon | 931388e6f640c35b892bb4b2d12581ba7ec8cf4e | [
"BSD-3-Clause"
] | 89 | 2015-01-10T05:25:21.000Z | 2022-02-27T03:28:59.000Z | import hashlib
import random
from django.contrib.auth.models import User
def generate_username(email):
def random_username():
h = hashlib.sha1(email).hexdigest()[:25]
# don't ask
n = random.randint(1, (10 ** (5 - 1)) - 1)
return "%s%d" % (h, n)
while True:
try:
... | 23.7 | 50 | 0.582278 |
4a21464cc305215f2b5ee383ef5911935ecc8d06 | 11,760 | py | Python | stackinabox/stack.py | BenjamenMeyer/stackInABox | 005a3e3f40ae7b7f14fae24d07768731e0ac948e | [
"Apache-2.0"
] | 5 | 2015-02-02T22:02:55.000Z | 2016-02-03T21:58:12.000Z | stackinabox/stack.py | TestInABox/stackInABox | 15586e61a2013b6f4997c652e8412a1784f8fc93 | [
"Apache-2.0"
] | 43 | 2016-05-07T04:08:52.000Z | 2022-03-16T23:43:36.000Z | stackinabox/stack.py | TestInABox/stackInABox | 15586e61a2013b6f4997c652e8412a1784f8fc93 | [
"Apache-2.0"
] | 3 | 2016-05-05T18:05:36.000Z | 2022-03-23T17:41:41.000Z | """
Stack-In-A-Box: Stack Management
"""
import logging
import re
import threading
import uuid
import six
logger = logging.getLogger(__name__)
class ServiceAlreadyRegisteredError(Exception):
"""StackInABoxService with the same name already registered."""
pass
class StackInABox(object):
"""Stack-In-A-... | 34.486804 | 79 | 0.571854 |
4a2146ace877b7d3ce4b26f14beab8d093ea025c | 4,193 | py | Python | MDRSREID/Loss_Meter/Multi_Seg_loss.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 43 | 2020-09-20T09:40:04.000Z | 2022-03-29T11:25:22.000Z | MDRSREID/Loss_Meter/Multi_Seg_loss.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 19 | 2020-10-05T05:35:38.000Z | 2021-12-10T03:17:31.000Z | MDRSREID/Loss_Meter/Multi_Seg_loss.py | nickhuang1996/HJL-re-id | 107b25f31c961f360f69560cfddd78dfc0da3291 | [
"MIT"
] | 18 | 2020-10-01T14:41:53.000Z | 2021-09-02T06:57:57.000Z | from MDRSREID.Loss_Meter import Loss
import torch.nn as nn
import torch
from MDRSREID.utils.meter import RecentAverageMeter as Meter
class MultiSegLoss(Loss):
def __init__(self, cfg, tb_writer=None):
super(MultiSegLoss, self).__init__(cfg, tb_writer=tb_writer)
self.criterion = torch.nn.CrossEntrop... | 39.186916 | 156 | 0.5917 |
4a2149b1775b602d06d564b36324658cae787149 | 33,507 | py | Python | pyqtgraph/parametertree/Parameter.py | ltirrell/pyqtgraph | 4a24598bcb631ecaf1140c44afba1e62be8ce1ab | [
"MIT"
] | 1 | 2021-05-31T06:43:22.000Z | 2021-05-31T06:43:22.000Z | pyqtgraph/parametertree/Parameter.py | ltirrell/pyqtgraph | 4a24598bcb631ecaf1140c44afba1e62be8ce1ab | [
"MIT"
] | null | null | null | pyqtgraph/parametertree/Parameter.py | ltirrell/pyqtgraph | 4a24598bcb631ecaf1140c44afba1e62be8ce1ab | [
"MIT"
] | 1 | 2022-02-21T03:09:29.000Z | 2022-02-21T03:09:29.000Z | # -*- coding: utf-8 -*-
from ..Qt import QtGui, QtCore
import os, weakref, re
from ..pgcollections import OrderedDict
from ..python2_3 import asUnicode, basestring
from .ParameterItem import ParameterItem
PARAM_TYPES = {}
PARAM_NAMES = {}
def registerParameterType(name, cls, override=False):
global PARAM_TYPES
... | 41.88375 | 164 | 0.564449 |
4a214bcb08b890a74ae6bb21efe3f78829125023 | 663 | py | Python | python_speech_features_cuda/_acc/__init__.py | vkola-lab/python_speech_features_cuda | 51948be5b3acbe26a57e11aee9a1fbacba1b6b39 | [
"MIT"
] | 6 | 2020-08-05T04:03:12.000Z | 2021-04-06T07:45:57.000Z | python_speech_features_cuda/_acc/__init__.py | vkola-lab/python_speech_features_cuda | 51948be5b3acbe26a57e11aee9a1fbacba1b6b39 | [
"MIT"
] | null | null | null | python_speech_features_cuda/_acc/__init__.py | vkola-lab/python_speech_features_cuda | 51948be5b3acbe26a57e11aee9a1fbacba1b6b39 | [
"MIT"
] | null | null | null | """
Created on Mon Aug 10 09:25:14 2020
@author: cxue2
"""
from .. import env
if env.is_numba_available:
from ._jit import _jit_preemp_frmsig
from ._jit import _jit_powdiv
from ._jit import _jit_sum
from ._jit import _jit_mul
from ._jit import _jit_rplzro_log
from ._jit import _jit_rplzro
els... | 22.1 | 40 | 0.689291 |
4a214ca13dc21d98f0d35535dcd7ebe6890a226a | 24,668 | py | Python | Exp 4 4 with USRCAT/evolution_functions.py | Mattarian/GAD-USRCAT | 306a21e8afbeff3d8b56ae4641ac1195a12f2036 | [
"Apache-2.0"
] | null | null | null | Exp 4 4 with USRCAT/evolution_functions.py | Mattarian/GAD-USRCAT | 306a21e8afbeff3d8b56ae4641ac1195a12f2036 | [
"Apache-2.0"
] | null | null | null | Exp 4 4 with USRCAT/evolution_functions.py | Mattarian/GAD-USRCAT | 306a21e8afbeff3d8b56ae4641ac1195a12f2036 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import rdkit
import shutil
import multiprocessing
from rdkit import Chem
from rdkit.Chem import Draw
from rdkit.Chem import MolFromSmiles as smi2mol
from rdkit.Chem import MolToSmiles as mol2smi
from rdkit.Chem import Descriptors
from rdkit.Chem import rdMolDescriptors
fr... | 36.383481 | 269 | 0.602927 |
4a214d874a85e32246d9e82fe1348dd3bbe0d8ad | 7,002 | py | Python | docs/zh_CN/conf.py | youqingxiaozhua/mmclassification | 65bbabbb7e78544864b845e7fd09a90d4f897d5c | [
"Apache-2.0"
] | 1 | 2022-03-17T02:39:08.000Z | 2022-03-17T02:39:08.000Z | docs/zh_CN/conf.py | youqingxiaozhua/mmclassification | 65bbabbb7e78544864b845e7fd09a90d4f897d5c | [
"Apache-2.0"
] | null | null | null | docs/zh_CN/conf.py | youqingxiaozhua/mmclassification | 65bbabbb7e78544864b845e7fd09a90d4f897d5c | [
"Apache-2.0"
] | null | null | null | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 30.710526 | 79 | 0.618109 |
4a214dc6b51db5505d119767abc081d62621ab2f | 4,953 | py | Python | nipyapi/registry/apis/config_api.py | Zyrix/nipyapi | d00221ba50bd83e21133d6e4d4b56741ead6822a | [
"Apache-2.0"
] | null | null | null | nipyapi/registry/apis/config_api.py | Zyrix/nipyapi | d00221ba50bd83e21133d6e4d4b56741ead6822a | [
"Apache-2.0"
] | null | null | null | nipyapi/registry/apis/config_api.py | Zyrix/nipyapi | d00221ba50bd83e21133d6e4d4b56741ead6822a | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Apache NiFi Registry REST API
The REST API provides an interface to a registry with operations for saving, versioning, reading NiFi flows and components.
OpenAPI spec version: 0.7.0
Contact: dev@nifi.apache.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"... | 35.378571 | 127 | 0.578841 |
4a214e794d2163c899280555b7597074b0a3e235 | 3,468 | py | Python | examples/unsupervised_quality_estimation/meteor.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 35 | 2021-05-08T09:23:31.000Z | 2022-03-25T06:19:48.000Z | examples/unsupervised_quality_estimation/meteor.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 10 | 2021-11-14T12:28:48.000Z | 2022-02-28T14:13:40.000Z | examples/unsupervised_quality_estimation/meteor.py | fairseq-FT/fairseq | 18725499144c1bba7c151b796ba774e59d36eaa9 | [
"MIT"
] | 14 | 2021-05-17T06:55:01.000Z | 2022-03-28T12:07:42.000Z | # 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.
import argparse
import math
import os
import subprocess
import sys
import tempfile
from collections import defaultdict
from itertools import c... | 31.527273 | 105 | 0.633506 |
4a214f10698062861f6fe0935f75dcf9ce43683c | 36,632 | py | Python | docker-privnet/neo-python/unsafeprompt.py | rodoufu/neocompiler.io | fba364d66571bd7d5254087ec644d00bbcf31ec2 | [
"MIT"
] | 2 | 2019-06-30T00:09:24.000Z | 2021-03-25T14:02:14.000Z | docker-privnet/neo-python/unsafeprompt.py | rodoufu/neocompiler.io | fba364d66571bd7d5254087ec644d00bbcf31ec2 | [
"MIT"
] | null | null | null | docker-privnet/neo-python/unsafeprompt.py | rodoufu/neocompiler.io | fba364d66571bd7d5254087ec644d00bbcf31ec2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import datetime
import json
import os
import resource
import traceback
import logging
import time
import logzero
from prompt_toolkit import prompt
from prompt_toolkit.contrib.completers import WordCompleter
from prompt_toolkit.history import FileHistory
from prompt_toolkit.short... | 38.03946 | 168 | 0.525224 |
4a214fc2e6d3262078dc514c158bbe08968eefe1 | 665 | py | Python | mod/httpserver.py | rbxnk/fips | b1bd5f33f04d48f080e621d27214c254149924ca | [
"MIT"
] | null | null | null | mod/httpserver.py | rbxnk/fips | b1bd5f33f04d48f080e621d27214c254149924ca | [
"MIT"
] | null | null | null | mod/httpserver.py | rbxnk/fips | b1bd5f33f04d48f080e621d27214c254149924ca | [
"MIT"
] | null | null | null | """wrap SimpleHTTPServer and prevent Ctrl-C stack trace output"""
import sys
if sys.version_info > (3, 0):
import http.server as SimpleHTTPServer
import socketserver as SocketServer
else:
import SimpleHTTPServer
import SocketServer
import log
try :
log.colored(log.GREEN, 'serving on http://local... | 26.6 | 98 | 0.738346 |
4a214fcf44deca28ad3f9bd7188804edb3393aec | 11,730 | py | Python | easier68k/core/opcodes/subq.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | null | null | null | easier68k/core/opcodes/subq.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | null | null | null | easier68k/core/opcodes/subq.py | bpas247/Easier68k | 30a39883f1e73cd2bd848cf7bd356c96b8664ff4 | [
"MIT"
] | null | null | null | from ...core.enum.ea_mode import EAMode
from ...core.enum.op_size import OpSize
from ...core.enum import ea_mode_bin
from ...core.enum.ea_mode_bin import parse_ea_from_binary
from ...simulator.m68k import M68K
from ...core.opcodes.opcode import Opcode
from ...core.util.split_bits import split_bits
from ...core.util imp... | 34.198251 | 114 | 0.599744 |
4a21508fc1af87a19d37c02da2dc7d22ce43f4e2 | 3,181 | py | Python | examples/references/segmentation/pascal_voc2012/configs/train/baseline_resnet101.py | ryanwongsa/ignite | 948532834c2c60a6fae35d9754d5a8e74faceeb4 | [
"BSD-3-Clause"
] | 1 | 2020-09-18T18:28:30.000Z | 2020-09-18T18:28:30.000Z | examples/references/segmentation/pascal_voc2012/configs/train/baseline_resnet101.py | alxlampe/ignite | b53c6aeef87754b3cd3638c91172b386dc73af12 | [
"BSD-3-Clause"
] | null | null | null | examples/references/segmentation/pascal_voc2012/configs/train/baseline_resnet101.py | alxlampe/ignite | b53c6aeef87754b3cd3638c91172b386dc73af12 | [
"BSD-3-Clause"
] | null | null | null | # Basic training configuration
import os
from functools import partial
import cv2
import torch.nn as nn
import torch.optim as optim
import torch.optim.lr_scheduler as lrs
from torchvision.models.segmentation import deeplabv3_resnet101
import albumentations as A
from albumentations.pytorch import ToTensorV2 as ToTens... | 22.721429 | 93 | 0.662999 |
4a2151ec23787c17b45fb3a9fb18393327df4eaa | 1,873 | py | Python | alipay/aop/api/domain/AntfortuneContentCommunityDataSendModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 213 | 2018-08-27T16:49:32.000Z | 2021-12-29T04:34:12.000Z | alipay/aop/api/domain/AntfortuneContentCommunityDataSendModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 29 | 2018-09-29T06:43:00.000Z | 2021-09-02T03:27:32.000Z | alipay/aop/api/domain/AntfortuneContentCommunityDataSendModel.py | snowxmas/alipay-sdk-python-all | 96870ced60facd96c5bce18d19371720cbda3317 | [
"Apache-2.0"
] | 59 | 2018-08-27T16:59:26.000Z | 2022-03-25T10:08:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AntfortuneContentCommunityDataSendModel(object):
def __init__(self):
self._content = None
self._source_id = None
self._soure_type = None
@property
def content(sel... | 26.380282 | 71 | 0.584624 |
4a215240e0b2f4b25ed7e6f96f476d92784d7906 | 2,584 | py | Python | tests/strategies/test_custom_plugin.py | AJSVB/pytorch-lightning | 00211c1de3c5901789417263f14a36c846cc42d1 | [
"Apache-2.0"
] | 2 | 2019-11-24T10:28:10.000Z | 2020-06-20T12:57:35.000Z | tests/strategies/test_custom_plugin.py | AJSVB/pytorch-lightning | 00211c1de3c5901789417263f14a36c846cc42d1 | [
"Apache-2.0"
] | 1 | 2021-03-30T12:12:49.000Z | 2021-03-30T12:12:49.000Z | tests/strategies/test_custom_plugin.py | AJSVB/pytorch-lightning | 00211c1de3c5901789417263f14a36c846cc42d1 | [
"Apache-2.0"
] | 2 | 2022-02-11T08:26:13.000Z | 2022-03-21T03:48:34.000Z | # Copyright The PyTorch Lightning team.
#
# 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... | 38 | 103 | 0.765093 |
4a21528dc054baccbae222d427431546956ee748 | 159 | py | Python | figuregen/__init__.py | Mira-13/figure-gen | fd1b8814423dd34973a3fafe68ff5c0f95c08590 | [
"MIT"
] | 75 | 2020-09-17T17:17:17.000Z | 2022-01-21T14:28:14.000Z | figuregen/__init__.py | neshume/figure-gen | e4cb1d9ea1841980b4dc90953325e1a8c6dfb510 | [
"MIT"
] | 3 | 2020-09-29T11:51:35.000Z | 2020-10-22T15:27:40.000Z | figuregen/__init__.py | neshume/figure-gen | e4cb1d9ea1841980b4dc90953325e1a8c6dfb510 | [
"MIT"
] | 2 | 2020-10-24T05:57:49.000Z | 2022-03-14T17:06:02.000Z | # Import API functions
from .figuregen import *
from .element_data import *
from .matplot_lineplot import MatplotLinePlot
from .pgf_lineplot import PgfLinePlot | 31.8 | 45 | 0.836478 |
4a2153097afb36335b448ff6adb4136be7775334 | 402 | py | Python | map/migrations/0003_eventmodel_numberofattendees.py | zacharyyahn/CS3240_Project | 8f8ce4f787d7fc33721543ce05f0f650220fb11d | [
"Apache-2.0",
"Unlicense"
] | null | null | null | map/migrations/0003_eventmodel_numberofattendees.py | zacharyyahn/CS3240_Project | 8f8ce4f787d7fc33721543ce05f0f650220fb11d | [
"Apache-2.0",
"Unlicense"
] | null | null | null | map/migrations/0003_eventmodel_numberofattendees.py | zacharyyahn/CS3240_Project | 8f8ce4f787d7fc33721543ce05f0f650220fb11d | [
"Apache-2.0",
"Unlicense"
] | null | null | null | # Generated by Django 3.1.5 on 2021-04-14 03:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('map', '0002_auto_20210413_1835'),
]
operations = [
migrations.AddField(
model_name='eventmodel',
name='numberOfAtten... | 21.157895 | 57 | 0.614428 |
4a21532bfa3c393f32956ec86830a27349a79c60 | 280 | py | Python | setup.py | ThordurPall/fish_classifier | f28121fba92076e56fdfd047018176a92557ecff | [
"MIT"
] | 1 | 2021-06-17T11:34:25.000Z | 2021-06-17T11:34:25.000Z | setup.py | FrederikKromann/fish_classifier | f28121fba92076e56fdfd047018176a92557ecff | [
"MIT"
] | 3 | 2021-06-10T10:14:14.000Z | 2021-06-16T10:58:44.000Z | setup.py | FrederikKromann/fish_classifier | f28121fba92076e56fdfd047018176a92557ecff | [
"MIT"
] | 5 | 2021-06-10T09:24:55.000Z | 2021-06-24T09:35:19.000Z | from setuptools import find_packages, setup
setup(
name="src",
packages=find_packages(),
version="0.1.40",
description="A neural network fish classifier using a large-scale dataset for fish segmentation and classification",
author="DTU",
license="MIT",
)
| 25.454545 | 120 | 0.710714 |
4a21539dd182df4a418f2deffdcf94419f128146 | 1,531 | py | Python | src/updater/type.py | JamzumSum/AssetsUpdater | 05fc783fe116cab8d754c237356ee3b4fdd098f0 | [
"MIT"
] | 1 | 2021-09-28T11:51:02.000Z | 2021-09-28T11:51:02.000Z | src/updater/type.py | JamzumSum/AssetsUpdater | 05fc783fe116cab8d754c237356ee3b4fdd098f0 | [
"MIT"
] | null | null | null | src/updater/type.py | JamzumSum/AssetsUpdater | 05fc783fe116cab8d754c237356ee3b4fdd098f0 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod, abstractproperty
from dataclasses import dataclass
from typing import AsyncGenerator, Callable, List, Optional
Pred = Callable[["Release"], bool]
@dataclass(frozen=True)
class Asset:
from_tag: str
name: str
download_url: str
def __repr__(self) -> str:
ret... | 23.921875 | 82 | 0.595689 |
4a215441ee4c5debd75710a5a8decb50155a9f32 | 9,936 | py | Python | docs/source/conf.py | wblong/PVGeo-Copy | a7f143a037c3abddcc5b8f70f84a0dee38874bfc | [
"BSD-3-Clause"
] | null | null | null | docs/source/conf.py | wblong/PVGeo-Copy | a7f143a037c3abddcc5b8f70f84a0dee38874bfc | [
"BSD-3-Clause"
] | null | null | null | docs/source/conf.py | wblong/PVGeo-Copy | a7f143a037c3abddcc5b8f70f84a0dee38874bfc | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | 30.572308 | 176 | 0.657005 |
4a2155afc5c583d1d51e20dd47366a2b690d6d6c | 159,748 | py | Python | bqtools/tests/test_bqtools.py | kpr6/bqtools | cdafb108768ca60c77bcb9989108466b4d697a2d | [
"MIT"
] | null | null | null | bqtools/tests/test_bqtools.py | kpr6/bqtools | cdafb108768ca60c77bcb9989108466b4d697a2d | [
"MIT"
] | null | null | null | bqtools/tests/test_bqtools.py | kpr6/bqtools | cdafb108768ca60c77bcb9989108466b4d697a2d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This modules purpose is to test bqtools-json
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
import difflib
import json
import logging
import pprint
import unittest
from de... | 58.90413 | 414 | 0.345344 |
4a2156303981e21d5bacccd853fa7f2336077da9 | 461 | py | Python | Classes Programs/classEx.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | 1 | 2020-05-23T12:37:11.000Z | 2020-05-23T12:37:11.000Z | Classes Programs/classEx.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | null | null | null | Classes Programs/classEx.py | jarvis-1805/PYTHON-FILES | c12dc74f83dadb08acdf5d6260222c3ce8a91797 | [
"MIT"
] | null | null | null | class Person:
def __init__(self, fname, lname):
self.firstname = fname
self.lastname = lname
def printname(self):
print(self.firstname, self.lastname)
class Student(Person):
def __init__(self, fname, lname, year):
super().__init__(fname, lname)
self.graduationyear = year
def welcome(self)... | 25.611111 | 91 | 0.691974 |
4a215730e96f347a78ad088205eaeb58c7b5a933 | 1,931 | py | Python | src/generate_xml.py | AlvaroCavalcante/video2tfrecord | a77b6e999bbf0edbc254c0fa42549d9ab5f9013c | [
"MIT"
] | 1 | 2022-03-12T20:43:26.000Z | 2022-03-12T20:43:26.000Z | src/generate_xml.py | AlvaroCavalcante/video2tfrecord | a77b6e999bbf0edbc254c0fa42549d9ab5f9013c | [
"MIT"
] | null | null | null | src/generate_xml.py | AlvaroCavalcante/video2tfrecord | a77b6e999bbf0edbc254c0fa42549d9ab5f9013c | [
"MIT"
] | null | null | null | import xml.etree.cElementTree as ET
class AnnotationGenerator(object):
def __init__(self, xml_path):
self.xml_path = xml_path
def generate_xml_annotation(self, output_bbox, im_width, im_height, file_name):
try:
annotation = ET.Element('annotation')
ET.SubElement(annota... | 43.886364 | 112 | 0.559296 |
4a215732f86119f063de4bb0c02b22c06dfaba60 | 935 | py | Python | hdata/HighDenseTrainPatchMaker.py | beratkurar/page-segmentation-using-fcn | 1462fc66c019eb06d9b7bd2b2561d09d63476385 | [
"MIT"
] | null | null | null | hdata/HighDenseTrainPatchMaker.py | beratkurar/page-segmentation-using-fcn | 1462fc66c019eb06d9b7bd2b2561d09d63476385 | [
"MIT"
] | null | null | null | hdata/HighDenseTrainPatchMaker.py | beratkurar/page-segmentation-using-fcn | 1462fc66c019eb06d9b7bd2b2561d09d63476385 | [
"MIT"
] | 1 | 2018-12-26T13:10:26.000Z | 2018-12-26T13:10:26.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 30 07:43:28 2017
@author: B
"""
import random
import cv2
import os
patchSize=320
patchNumber=0
folder='train/'
lfolder='ltrain/'
i=0
while (i <1000):
pages=os.listdir(folder)
page_number=random.randint(0,19)
page_name=pages[page_number]
... | 23.375 | 78 | 0.604278 |
4a21590b8069da489bba84b2d9710172c74f6c83 | 2,013 | py | Python | DailyProgrammer/DP20180129A.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | 2 | 2020-12-23T18:59:22.000Z | 2021-04-14T13:16:09.000Z | DailyProgrammer/DP20180129A.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | DailyProgrammer/DP20180129A.py | DayGitH/Python-Challenges | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | [
"MIT"
] | null | null | null | """
[2018-01-29] Challenge #349 [Easy] Change Calculator
https://www.reddit.com/r/dailyprogrammer/comments/7ttiq5/20180129_challenge_349_easy_change_calculator/
# Description
You own a nice tiny mini-market that sells candies to children. You need to know if you'll be able to give the change
back to those little cute... | 37.981132 | 119 | 0.73075 |
4a2159cf211357e466196cf58da00274fd20a30b | 44 | py | Python | students/intro_set.py | jonleopard/hacktoberfest-1 | 00b5dabd33aaac1dbde273af6e882769b564df3b | [
"MIT"
] | 35 | 2018-10-06T07:32:31.000Z | 2021-10-08T06:27:40.000Z | students/intro_set.py | jonleopard/hacktoberfest-1 | 00b5dabd33aaac1dbde273af6e882769b564df3b | [
"MIT"
] | 26 | 2018-10-03T09:32:56.000Z | 2020-05-25T20:27:16.000Z | students/intro_set.py | jonleopard/hacktoberfest-1 | 00b5dabd33aaac1dbde273af6e882769b564df3b | [
"MIT"
] | 239 | 2018-10-03T09:09:57.000Z | 2021-10-20T16:43:56.000Z | list_new=[1,2,2,4,4,4]
print(set(list_new))
| 14.666667 | 22 | 0.681818 |
4a215a02ecdce9ac13c3dd8873a39e4cfc859ad6 | 29,316 | py | Python | repos/insightface/src/data.py | batermj/DeepVideoAnalytics | daad116b87370fce1799b7948af73b92f617cf41 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 1 | 2021-03-23T12:31:59.000Z | 2021-03-23T12:31:59.000Z | repos/insightface/src/data.py | batermj/DeepVideoAnalytics | daad116b87370fce1799b7948af73b92f617cf41 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | repos/insightface/src/data.py | batermj/DeepVideoAnalytics | daad116b87370fce1799b7948af73b92f617cf41 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import random
import logging
import sys
import sklearn
import datetime
import numpy as np
import cv2
import mxnet as mx
from mxnet import ndarray as nd
#from . import _ndarray_internal as _internal
#... | 38.27154 | 151 | 0.566517 |
4a215a5db8f927e389e10120934e5b5c717711e4 | 1,275 | py | Python | backend/users/models.py | Dragonfly-Co/django-shop-sample | 154cc3510767c468b76fbf98b501aab044c07e71 | [
"MIT"
] | null | null | null | backend/users/models.py | Dragonfly-Co/django-shop-sample | 154cc3510767c468b76fbf98b501aab044c07e71 | [
"MIT"
] | null | null | null | backend/users/models.py | Dragonfly-Co/django-shop-sample | 154cc3510767c468b76fbf98b501aab044c07e71 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
def _get_image_directory_path(self, instance) -> str:
# file will be uploaded to MEDIA_ROOT / user_<id>_<username>
return f'user_{instance.user.id}_{instance.user.username}'
class GenderChoices(models.TextChoices):
MALE = '... | 39.84375 | 113 | 0.73098 |
4a215a7c9bd152778c8e63f11e79876093746094 | 13,766 | py | Python | alfworld/agents/graph_map/slam_map.py | roy402/VSGM | 15844232b8eebb5ec7301a9a48a3210925114da9 | [
"MIT"
] | 6 | 2021-05-22T15:33:42.000Z | 2022-01-12T03:34:39.000Z | alfworld/agents/graph_map/slam_map.py | roy402/VSGM | 15844232b8eebb5ec7301a9a48a3210925114da9 | [
"MIT"
] | 1 | 2021-06-19T10:04:13.000Z | 2021-06-20T03:37:23.000Z | alfworld/agents/graph_map/slam_map.py | roy402/VSGM | 15844232b8eebb5ec7301a9a48a3210925114da9 | [
"MIT"
] | null | null | null | import torch
from sys import platform
if platform != "win32":
from torch_geometric.data import Data
else:
import open3d as o3d
import sys
import os
import numpy as np
import matplotlib.pyplot as plt
import quaternion
from scipy.spatial.transform import Rotation
sys.path.insert(0, os.path.join(os.environ['ALFWOR... | 42.619195 | 158 | 0.613613 |
4a215a9a2320467e5391d25656bae0b63d06b194 | 701 | py | Python | app/bond/__init__.py | BoostryJP/ibet-Issuer | efc599f8784be06588cf3ad8f239d36f24fdf3fa | [
"Apache-2.0"
] | 1 | 2021-06-16T03:38:07.000Z | 2021-06-16T03:38:07.000Z | app/bond/__init__.py | BoostryJP/ibet-Issuer | efc599f8784be06588cf3ad8f239d36f24fdf3fa | [
"Apache-2.0"
] | 17 | 2021-04-26T03:28:40.000Z | 2021-11-24T07:15:55.000Z | app/bond/__init__.py | BoostryJP/ibet-Issuer | efc599f8784be06588cf3ad8f239d36f24fdf3fa | [
"Apache-2.0"
] | 1 | 2021-05-30T14:09:11.000Z | 2021-05-30T14:09:11.000Z | """
Copyright BOOSTRY 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 in writing,
software distr... | 28.04 | 74 | 0.776034 |
4a215abd2e764a76be30195e943ba6a7744aa4ad | 47,618 | py | Python | tensorflow/python/framework/importer_test.py | JanX2/tensorflow | dd788dbbfa544c1ea4768940ac4300c22bb7e88e | [
"Apache-2.0"
] | 3 | 2017-12-04T07:45:22.000Z | 2018-04-20T06:53:17.000Z | tensorflow/python/framework/importer_test.py | JanX2/tensorflow | dd788dbbfa544c1ea4768940ac4300c22bb7e88e | [
"Apache-2.0"
] | null | null | null | tensorflow/python/framework/importer_test.py | JanX2/tensorflow | dd788dbbfa544c1ea4768940ac4300c22bb7e88e | [
"Apache-2.0"
] | 1 | 2020-05-14T06:13:24.000Z | 2020-05-14T06:13:24.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.808476 | 81 | 0.590869 |
4a215b55906797eb6376b9d1b3ea38e866f4a220 | 9,747 | py | Python | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/operations/_recommended_actions_operations.py | JianpingChen/azure-sdk-for-python | 3072fc8c0366287fbaea1b02493a50259c3248a2 | [
"MIT"
] | 3 | 2020-06-23T02:25:27.000Z | 2021-09-07T18:48:11.000Z | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/operations/_recommended_actions_operations.py | JianpingChen/azure-sdk-for-python | 3072fc8c0366287fbaea1b02493a50259c3248a2 | [
"MIT"
] | 510 | 2019-07-17T16:11:19.000Z | 2021-08-02T08:38:32.000Z | sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/operations/_recommended_actions_operations.py | JianpingChen/azure-sdk-for-python | 3072fc8c0366287fbaea1b02493a50259c3248a2 | [
"MIT"
] | 5 | 2019-09-04T12:51:37.000Z | 2020-09-16T07:28:40.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | 49.227273 | 230 | 0.663691 |
4a215bfe41fdf71a11d8d9170b9b0fe2fd5d4ab5 | 1,309 | py | Python | tests/test_pipeadiabaticsteam.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 19 | 2015-12-08T23:33:51.000Z | 2022-01-31T04:41:10.000Z | tests/test_pipeadiabaticsteam.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 2 | 2019-10-04T10:57:00.000Z | 2021-10-01T06:46:17.000Z | tests/test_pipeadiabaticsteam.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 7 | 2015-11-04T02:25:01.000Z | 2021-12-08T03:14:28.000Z | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.node import PipeAdiabaticSteam
log = logging.getLogger(__name__)
class TestPipeAdiabaticSteam(unittest.TestCase):
def setUp(self):
self.fd, self.path = tempfile.mks... | 28.456522 | 92 | 0.675325 |
4a215d88ab5cca64c293b6d6ed367a3195e8186b | 1,416 | py | Python | river/metrics/multioutput/macro.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 1,105 | 2019-01-24T15:15:30.000Z | 2020-11-10T18:27:00.000Z | river/metrics/multioutput/macro.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 328 | 2019-01-25T13:48:43.000Z | 2020-11-11T11:41:44.000Z | river/metrics/multioutput/macro.py | online-ml/creme | 60872844e6052b5ef20e4075aea30f9031377136 | [
"BSD-3-Clause"
] | 150 | 2019-01-29T19:05:21.000Z | 2020-11-11T11:50:14.000Z | import statistics
from collections import defaultdict
from copy import deepcopy
from functools import partial
from river import metrics, utils
from river.metrics.multioutput.base import MultiOutputMetric
__all__ = ["MacroAverage"]
class MacroAverage(MultiOutputMetric, metrics.base.WrapperMetric):
"""Macro-avera... | 28.32 | 92 | 0.683616 |
4a215db0348a33b42ac0add8888d44cddbdac6ca | 259 | py | Python | styling_tool/styling_tool/doctype/desk_icons/desk_icons.py | omaralhoori/frappe_styling_tool | d3b9fcdaff1a519ec9d950036957bbcf225b25a5 | [
"MIT"
] | null | null | null | styling_tool/styling_tool/doctype/desk_icons/desk_icons.py | omaralhoori/frappe_styling_tool | d3b9fcdaff1a519ec9d950036957bbcf225b25a5 | [
"MIT"
] | null | null | null | styling_tool/styling_tool/doctype/desk_icons/desk_icons.py | omaralhoori/frappe_styling_tool | d3b9fcdaff1a519ec9d950036957bbcf225b25a5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Omar Alhori and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class DeskIcons(Document):
pass
| 23.545455 | 50 | 0.772201 |
4a215db8ff07ba04a03ab00fa4d202481a32d0d9 | 8,642 | py | Python | qiskit/circuit/controlflow/for_loop.py | t-imamichi/qiskit-core | 8d2eeeac44f97af1e10514cdae4157e5923ff2e5 | [
"Apache-2.0"
] | 1,456 | 2017-08-05T16:33:05.000Z | 2018-06-05T04:15:35.000Z | qiskit/circuit/controlflow/for_loop.py | t-imamichi/qiskit-core | 8d2eeeac44f97af1e10514cdae4157e5923ff2e5 | [
"Apache-2.0"
] | 365 | 2017-08-04T06:09:16.000Z | 2018-06-05T08:33:37.000Z | qiskit/circuit/controlflow/for_loop.py | declanmillar/qiskit-terra | 43e4a72c9c1537dd3d220a52f7e56423dfdd926c | [
"Apache-2.0"
] | 463 | 2017-08-05T04:10:01.000Z | 2018-06-05T06:43:21.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 38.238938 | 100 | 0.634922 |
4a215e57c1f4e299e48764c4fb0d2cb8ee0a9f57 | 686 | py | Python | IWS/plugins/twilio/reqhandler.py | FlyingDiver/Indigo-Twilio | b912e83c8a62f62329d01881d719de5ae097037d | [
"MIT"
] | 1 | 2016-12-10T20:57:49.000Z | 2016-12-10T20:57:49.000Z | IWS/plugins/twilio/reqhandler.py | FlyingDiver/Indigo-Twilio | b912e83c8a62f62329d01881d719de5ae097037d | [
"MIT"
] | 9 | 2018-05-07T21:59:44.000Z | 2022-01-29T22:49:29.000Z | IWS/plugins/twilio/reqhandler.py | FlyingDiver/Indigo-Twilio | b912e83c8a62f62329d01881d719de5ae097037d | [
"MIT"
] | null | null | null | ####################
import cherrypy
from indigopy.basereqhandler import BaseRequestHandler
####################
def PluginName():
return u"Twilio Ping"
def PluginDescription():
return u"This is the Twilio-Indigo Ping Plugin."
def ShowOnControlPageList():
return False # if True, then above name/description is sh... | 26.384615 | 94 | 0.714286 |
4a215ed8332f244789aa52b2cfae4804b77159a4 | 411 | py | Python | runremotely/template.py | OdysseeT/ec2-jupyter-notebook | a64e1ea47a50db3de877a7b0cd8e63ead658ef21 | [
"Apache-2.0"
] | null | null | null | runremotely/template.py | OdysseeT/ec2-jupyter-notebook | a64e1ea47a50db3de877a7b0cd8e63ead658ef21 | [
"Apache-2.0"
] | null | null | null | runremotely/template.py | OdysseeT/ec2-jupyter-notebook | a64e1ea47a50db3de877a7b0cd8e63ead658ef21 | [
"Apache-2.0"
] | null | null | null | import pickle
import glob
print("Starting")
picklefiles = glob.glob("/home/ec2-user/*.tp")
print("[remote] Loading function {}".format(picklefiles[0]))
# Load on remote server
with open(picklefiles[0], 'rb') as f:
exec_model = pickle.load(f)
print("[remote] Model Loaded")
response = exec_model()#*args, **kwargs... | 22.833333 | 60 | 0.70073 |
4a215feb69df564b24ef1c7e3d0637241b264a67 | 397 | py | Python | backend/test_29221/wsgi.py | crowdbotics-apps/test-29221 | 238f1083416c60366294c473ebc57006b40f307c | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/test_29221/wsgi.py | crowdbotics-apps/test-29221 | 238f1083416c60366294c473ebc57006b40f307c | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | backend/test_29221/wsgi.py | crowdbotics-apps/test-29221 | 238f1083416c60366294c473ebc57006b40f307c | [
"FTL",
"AML",
"RSA-MD"
] | null | null | null | """
WSGI config for test_29221 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | 23.352941 | 78 | 0.788413 |
4a21600a57a26026265f28924cc22ecdc704f935 | 29,439 | py | Python | sdk/keyvault/azure-keyvault-keys/tests/test_crypto_client_async.py | jochen-ott-by/azure-sdk-for-python | 56193e95eac71933cbaebea56d63c48c4a01d333 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/test_crypto_client_async.py | jochen-ott-by/azure-sdk-for-python | 56193e95eac71933cbaebea56d63c48c4a01d333 | [
"MIT"
] | null | null | null | sdk/keyvault/azure-keyvault-keys/tests/test_crypto_client_async.py | jochen-ott-by/azure-sdk-for-python | 56193e95eac71933cbaebea56d63c48c4a01d333 | [
"MIT"
] | null | null | null | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import codecs
from datetime import datetime
import functools
import hashlib
import os
from unittest import mock
from azure.core.exceptions import HttpResponseError
from... | 48.820896 | 532 | 0.719556 |
4a216025c51b67ee54d2e5c59fbb17ffa0e38a71 | 5,193 | py | Python | pysnmp/ENTERASYS-AAA-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/ENTERASYS-AAA-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/ENTERASYS-AAA-POLICY-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module ENTERASYS-AAA-POLICY-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ENTERASYS-AAA-POLICY-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:48:43 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.... | 110.489362 | 798 | 0.77566 |
4a2160bc19d2ba87ba4fa9a43fed07b78b3a1f98 | 52 | py | Python | apps/lightrfp/__init__.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/lightrfp/__init__.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | apps/lightrfp/__init__.py | ExpoAshique/ProveBanking__s | f0b45fffea74d00d14014be27aa50fe5f42f6903 | [
"MIT"
] | null | null | null | default_app_config = 'lightrfp.apps.LightRFPConfig'
| 26 | 51 | 0.846154 |
4a2160c338c9048088586d2765ac90ba696710d5 | 1,107 | py | Python | preisach.py | cosmo-jana/numerics-physics-stuff | f5fb35c00c84ca713877e20c1d8186e76883cd28 | [
"MIT"
] | 1 | 2020-10-16T16:35:35.000Z | 2020-10-16T16:35:35.000Z | preisach.py | cosmo-jana/numerics-physics-stuff | f5fb35c00c84ca713877e20c1d8186e76883cd28 | [
"MIT"
] | null | null | null | preisach.py | cosmo-jana/numerics-physics-stuff | f5fb35c00c84ca713877e20c1d8186e76883cd28 | [
"MIT"
] | null | null | null | #encoding: utf-8
# Preisach simulation to model hysteresis curves
# * [1] F. Preisach, Über die magnetische Nachwirkung. Zeitschrift fuer Physik, 94:277-302, 1935
# Implemented after: June 2015, Markus Osterhoff
import numpy as np
import matplotlib.pyplot as plt
N = 32768 # number of hysterons
M = 2000 # number of s... | 24.065217 | 96 | 0.628726 |
4a21617ef98e97080e889a510b9ecff55a0fcd95 | 976 | py | Python | portfolio/2013_OrSys/settings.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2013_OrSys/settings.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | null | null | null | portfolio/2013_OrSys/settings.py | 0--key/lib | ba7a85dda2b208adc290508ca617bdc55a5ded22 | [
"Apache-2.0"
] | 5 | 2016-03-22T07:40:46.000Z | 2021-05-30T16:12:21.000Z | # this is MySQL credentials:
db_password = '7#iA!g!e^@Vk'
db_name = "orsys"
#
# this is users auth dictionary:
users = {
'Tony': {
'password': 'st0len', 'img': 'astronaut',
'role': 'superuser', 'email': 'a.s.kosinov@gmail.com',
'phoneNo': '+380667275551'
},
'Jake': {
'pa... | 27.885714 | 70 | 0.66291 |
4a2161c1b531473cc8d0a4488383b38a74b22242 | 5,348 | py | Python | sample_scripts/Gen10_Server_Update.py | LaudateCorpus1/iLOAmpPack-Redfish-API-Docs | 69e14512059c763d3ff39e45d0ba08de8a5a15a9 | [
"Apache-2.0"
] | 8 | 2018-09-26T04:08:58.000Z | 2022-01-15T22:24:26.000Z | sample_scripts/Gen10_Server_Update.py | LaudateCorpus1/iLOAmpPack-Redfish-API-Docs | 69e14512059c763d3ff39e45d0ba08de8a5a15a9 | [
"Apache-2.0"
] | 8 | 2019-12-19T09:42:24.000Z | 2022-02-26T04:15:34.000Z | sample_scripts/Gen10_Server_Update.py | LaudateCorpus1/iLOAmpPack-Redfish-API-Docs | 69e14512059c763d3ff39e45d0ba08de8a5a15a9 | [
"Apache-2.0"
] | 6 | 2019-01-09T16:23:57.000Z | 2021-07-23T17:03:06.000Z | #(C) Copyright [2021] Hewlett Packard Enterprise Development LP
#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 ... | 40.210526 | 121 | 0.731301 |
4a2162dfc0c809aae4a8de9454565d0973b98879 | 738 | py | Python | egta/envs/tragedy/tests/test_continuous.py | instadeepai/EGTA-NMARL | 544b2e0e4b5518edefc6819975f9de4573ff434c | [
"MIT"
] | 6 | 2020-12-09T06:50:50.000Z | 2022-01-29T19:15:06.000Z | egta/envs/tragedy/tests/test_continuous.py | instadeepai/EGTA-NMARL | 544b2e0e4b5518edefc6819975f9de4573ff434c | [
"MIT"
] | null | null | null | egta/envs/tragedy/tests/test_continuous.py | instadeepai/EGTA-NMARL | 544b2e0e4b5518edefc6819975f9de4573ff434c | [
"MIT"
] | 2 | 2020-10-21T17:17:29.000Z | 2021-02-14T11:20:07.000Z | import torch
from ..env import Continuous
def test_sampling():
test_low_high = [(0, 1), (-2, 1), (-23, 61), (200, 200.1)]
test_shapes = [(1,), (2,), (2,10), (100, 100)]
for shape in test_shapes:
for low, high in test_low_high:
temp_space = Continuous(low, high)
sample = te... | 32.086957 | 141 | 0.615176 |
4a216363174886bf8d55c1e6f952a72131f6b762 | 808 | py | Python | banksystem/manage.py | somacode1/Building.RESTfulAPIs.with.Django.1.11 | 70d1144b675e0e34191164e8ff4d0d6ab638be27 | [
"MIT"
] | 8 | 2019-02-01T14:10:45.000Z | 2022-03-17T12:05:09.000Z | banksystem/manage.py | somacode1/Building.RESTfulAPIs.with.Django.1.11 | 70d1144b675e0e34191164e8ff4d0d6ab638be27 | [
"MIT"
] | null | null | null | banksystem/manage.py | somacode1/Building.RESTfulAPIs.with.Django.1.11 | 70d1144b675e0e34191164e8ff4d0d6ab638be27 | [
"MIT"
] | 7 | 2019-02-01T14:12:17.000Z | 2022-03-06T20:57:43.000Z | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "banksystem.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... | 35.130435 | 77 | 0.643564 |
4a21645cd9d9b48890921ca06194e136d9b7a7ff | 3,105 | py | Python | visualiser/generators/okitResourceManagerGenerator.py | bnasslahsen/oci-designer-toolkit | 63343e8ecb17a0fe6ebb3c5b18e7c5607dd5c4bf | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | visualiser/generators/okitResourceManagerGenerator.py | bnasslahsen/oci-designer-toolkit | 63343e8ecb17a0fe6ebb3c5b18e7c5607dd5c4bf | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | visualiser/generators/okitResourceManagerGenerator.py | bnasslahsen/oci-designer-toolkit | 63343e8ecb17a0fe6ebb3c5b18e7c5607dd5c4bf | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2020, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
"""Provide Module Description
"""
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
__author__ = ["Andrew Hopkinson (Ora... | 47.045455 | 139 | 0.687923 |
4a216553a94601f2bdd46a09246772c627fc9caf | 2,478 | py | Python | octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 129 | 2015-06-23T08:06:23.000Z | 2022-03-31T12:38:20.000Z | octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 6 | 2016-05-20T11:05:27.000Z | 2021-03-23T06:05:52.000Z | octavia/tests/unit/controller/worker/v2/flows/test_l7policy_flows.py | zhangi/octavia | e68c851fecf55e1b5ffe7d5b849f729626af28a3 | [
"Apache-2.0"
] | 166 | 2015-07-15T16:24:05.000Z | 2022-03-02T20:54:36.000Z | # Copyright 2016 Blue Box, an IBM Company
#
# 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 ... | 35.913043 | 75 | 0.752623 |
4a21655643a41c6228fffbdac99c678c1969e4cf | 3,679 | py | Python | jonathan_steward_automation/jonathan_steward_automation/JuniperConfig.py | gjonathansteward/FYP-network-automation | f8c43bd5f4e142e655248e26e497be2d383459db | [
"MIT"
] | 1 | 2018-05-11T12:54:16.000Z | 2018-05-11T12:54:16.000Z | jonathan_steward_automation/jonathan_steward_automation/JuniperConfig.py | gjonathansteward/FYP-network-automation | f8c43bd5f4e142e655248e26e497be2d383459db | [
"MIT"
] | null | null | null | jonathan_steward_automation/jonathan_steward_automation/JuniperConfig.py | gjonathansteward/FYP-network-automation | f8c43bd5f4e142e655248e26e497be2d383459db | [
"MIT"
] | null | null | null | from jnpr.junos import Device
from jnpr.junos.utils.config import Config
from jnpr.junos.exception import ConnectError
from jnpr.junos.exception import ConfigLoadError
from jnpr.junos.exception import CommitError
from lxml.etree import XMLSyntaxError
import time
from common_tasks import print_error
def Juniper_connec... | 36.425743 | 110 | 0.633052 |
4a216579c028a5325d227c81b723172b4be81da4 | 277 | py | Python | settings_files/create_jobs/gamess_dft.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | 7 | 2020-06-05T01:55:09.000Z | 2021-12-20T19:32:36.000Z | settings_files/create_jobs/gamess_dft.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | null | null | null | settings_files/create_jobs/gamess_dft.py | tommason14/monash2018 | 8fc2de97172130ed5d532deb6f5bcca39ef3a6e3 | [
"MIT"
] | 8 | 2020-06-06T10:03:17.000Z | 2022-03-18T14:47:33.000Z | from autochem import Settings, GamessJob
import glob
xyz=glob.glob('*xyz')[0]
sett=Settings()
sett.input.mp2=None
sett.input.contrl.mplevl=None
sett.input.contrl.dfttyp='m062x'
sett.input.dft.method='grid'
GamessJob(using=xyz, fmo=True, frags_in_subdir=True, settings=sett)
| 21.307692 | 67 | 0.779783 |
4a2165f141335972539daba6c4714d2481c4c7b6 | 1,030 | py | Python | python27/win32/Lib/site-packages/oss2/__init__.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 69 | 2015-12-28T07:02:51.000Z | 2022-03-31T13:36:42.000Z | python36/unix/lib/oss2/__init__.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 23 | 2016-03-04T10:43:24.000Z | 2021-03-17T09:58:19.000Z | python27/win32/Lib/site-packages/oss2/__init__.py | aliyun/oss-ftp | 1670b67b6ce726314ca0081841567934435128d4 | [
"MIT"
] | 24 | 2016-02-29T11:45:47.000Z | 2021-12-24T08:41:37.000Z | __version__ = '2.1.1'
from . import models, exceptions
from .api import Service, Bucket
from .auth import Auth, AnonymousAuth, StsAuth
from .http import Session, CaseInsensitiveDict
from .iterators import (BucketIterator, ObjectIterator,
MultipartUploadIterator, ObjectUploadIterator, PartIte... | 38.148148 | 120 | 0.834951 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.