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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8537620a5bf82804a246ab2547d10c4b6550e76c | 1,869 | py | Python | commit_analysis.py | Serfentum/xcms_finder | dff95fd9e4f9952a6ee365152005ff08b4132210 | [
"MIT"
] | null | null | null | commit_analysis.py | Serfentum/xcms_finder | dff95fd9e4f9952a6ee365152005ff08b4132210 | [
"MIT"
] | null | null | null | commit_analysis.py | Serfentum/xcms_finder | dff95fd9e4f9952a6ee365152005ff08b4132210 | [
"MIT"
] | null | null | null | from init_repo import init_repo
def find_commit(repo, local_repo, version, branch='master'):
"""
Find commit with specified version in the DESCRIPTION file in the xcms repo
This function checkout to specified version
:param repo: git.repo.base.Repo - repository object
:param local_repo: str - path... | 34.611111 | 79 | 0.620118 |
85380f6a877ccb17d787241d534302810a979279 | 833 | py | Python | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | 6 | 2021-05-20T14:46:23.000Z | 2022-01-24T07:07:55.000Z | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null | test_app/api/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null |
from rest_framework import viewsets
from rest_framework.viewsets import ModelViewSet
from rest_framework.permissions import DjangoModelPermissions
from ..models import Blog
from .serializers import BlogSerializer
from rest_framework import viewsets
from rest_framework.viewsets import ModelViewSet
from re... | 19.372093 | 61 | 0.798319 |
8538345ecf1e030047136088de8ec1b92a2a1fe0 | 4,963 | py | Python | mineral/core/samplers/path_sampler.py | brandontrabucco/jetpack | aa60488788b2e6fe1d09727943be043158a7af09 | [
"MIT"
] | 5 | 2019-07-14T07:34:32.000Z | 2019-08-16T17:41:13.000Z | mineral/core/samplers/path_sampler.py | brandontrabucco/mineral | aa60488788b2e6fe1d09727943be043158a7af09 | [
"MIT"
] | 7 | 2019-08-16T21:48:26.000Z | 2022-02-09T23:30:47.000Z | mineral/core/samplers/path_sampler.py | brandontrabucco/jetpack | aa60488788b2e6fe1d09727943be043158a7af09 | [
"MIT"
] | null | null | null | """Author: Brandon Trabucco, Copyright 2019"""
import numpy as np
import mineral as ml
from mineral.core.samplers.sampler import Sampler
| 46.820755 | 111 | 0.534959 |
853a017f65875a9f0f760904e9bc237db20aee8e | 1,498 | py | Python | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | 1 | 2021-06-17T05:09:00.000Z | 2021-06-17T05:09:00.000Z | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | usaspending_api/references/migrations/0055_auto_20170319_1841.py | toolness/usaspending-api | ed9a396e20a52749f01f43494763903cc371f9c2 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-03-19 18:41
from __future__ import unicode_literals
from django.db import migrations, models
| 39.421053 | 114 | 0.600134 |
853aff32749abe10e65c81dc6c692dcf146f2538 | 4,758 | py | Python | multauth/mixins.py | andrenerd/django-multiform-authentication | 4a8b94ebd660cc7afc7dcdedcc12344ef85e6615 | [
"MIT"
] | 7 | 2020-08-28T16:17:02.000Z | 2021-11-11T18:01:20.000Z | multauth/mixins.py | andrenerd/django-multiform-authentication | 4a8b94ebd660cc7afc7dcdedcc12344ef85e6615 | [
"MIT"
] | null | null | null | multauth/mixins.py | andrenerd/django-multiform-authentication | 4a8b94ebd660cc7afc7dcdedcc12344ef85e6615 | [
"MIT"
] | 2 | 2021-01-06T04:11:28.000Z | 2021-05-19T14:43:52.000Z | from importlib import import_module
from django.db import models
from django.db.models.signals import post_save
from django.utils.translation import gettext_lazy as _
from django.utils.module_loading import import_string
from django.conf import settings
from django_otp import devices_for_user
from .services import Us... | 29.012195 | 102 | 0.710593 |
853c2817f044574374a2b109c19369e6b2a57e22 | 557 | py | Python | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | bioinformatics_stronghold/subs.py | Wytamma/Rosalind | d3ffecc324f806df79c43bc9f89128b5d2a57dfb | [
"MIT"
] | null | null | null | SAMPLE_DATASET = """GATATATGCATATACTT
ATAT
"""
SAMPLE_OUTPUT = """2 4 10"""
def kmer_generator(string, n):
"""returns a generator for kmers of length n"""
return (string[i : i + n] for i in range(0, len(string)))
| 25.318182 | 82 | 0.633752 |
853e0192980cfe962127d3811be59e7c1f8a4d4c | 16,371 | py | Python | skyline_apiserver/schemas/extension.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | skyline_apiserver/schemas/extension.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | skyline_apiserver/schemas/extension.py | openstack/skyline-apiserver | 60144767cd5513bd581fbb8eac7791887d5b276f | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 99cloud
#
# 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, soft... | 31.123574 | 188 | 0.677601 |
853f29c6a778cb3edfb2156d8300f1cb5ddab4d1 | 3,777 | py | Python | task-1/main.py | kushkamisha/applied-programming | 152d4dbea3552a38b06a4c1bd85302f644b1a75f | [
"MIT"
] | null | null | null | task-1/main.py | kushkamisha/applied-programming | 152d4dbea3552a38b06a4c1bd85302f644b1a75f | [
"MIT"
] | null | null | null | task-1/main.py | kushkamisha/applied-programming | 152d4dbea3552a38b06a4c1bd85302f644b1a75f | [
"MIT"
] | null | null | null | import math
"""
(, ', )
, .
.
, - n
(2 < n < 108), n - .
. ' -
-.
"""
def insert(arr, x, order="descending"):
"""
Inserts element in the correct position in sorted array
(in the descending/ascending order of absolute values)
"""
... | 29.740157 | 80 | 0.545406 |
853f584d234a154a72a6a9e368831da5bba461ad | 3,531 | py | Python | util.py | timsliu/nimble-notifier | 5925faddeafda94df3dd31de6bc7df608d321b27 | [
"MIT"
] | null | null | null | util.py | timsliu/nimble-notifier | 5925faddeafda94df3dd31de6bc7df608d321b27 | [
"MIT"
] | null | null | null | util.py | timsliu/nimble-notifier | 5925faddeafda94df3dd31de6bc7df608d321b27 | [
"MIT"
] | null | null | null | # util.py
#
# utility functions common to multiple files
import json
import os
from pyzipcode import ZipCodeDatabase
import random
from geopy.geocoders import Nominatim
def address_to_coors(address):
'''converts an address string to lat lon coordiantes. Currently not
used due to being really slow'''
loca... | 30.973684 | 79 | 0.664967 |
854005657bfe33d29052924f10923a274658e20b | 770 | py | Python | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | SimCalorimetry/HcalZeroSuppressionProducers/python/NoHcalZeroSuppression_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | # Fragment to switch off HCAL zero suppression as an option
# by cmsDriver customisation
# to generate Unsuppressed digis, one has to set the following parameter:
# process.simHcalDigis.useConfigZSvalues = 1
# to generate suppressed digis, useConfigZSvalues should be set to 0
import FWCore.ParameterSet.Config as cms
| 36.666667 | 99 | 0.787013 |
85408df7a1a92f654df9c7a30b38b44f99bc7e2f | 6,355 | py | Python | tests/test_library.py | movermeyer/mopidy-oe1 | 9d0b31df13cfedc9af10cefe575d82d5b4407d0f | [
"Apache-2.0"
] | 9 | 2015-03-08T15:53:33.000Z | 2020-04-01T10:11:22.000Z | tests/test_library.py | movermeyer/mopidy-oe1 | 9d0b31df13cfedc9af10cefe575d82d5b4407d0f | [
"Apache-2.0"
] | 4 | 2015-04-05T23:45:14.000Z | 2019-12-08T16:29:35.000Z | tests/test_library.py | movermeyer/mopidy-oe1 | 9d0b31df13cfedc9af10cefe575d82d5b4407d0f | [
"Apache-2.0"
] | 5 | 2015-04-05T23:30:53.000Z | 2020-03-28T19:13:16.000Z | from __future__ import unicode_literals
import unittest
from mock import Mock
from mopidy.models import Ref
from mopidy_oe1.library import OE1LibraryProvider, OE1LibraryUri, OE1UriType
| 36.522989 | 76 | 0.636821 |
8547bbeb01aa565e14ef969ea9f1e8cba16d72c4 | 1,142 | py | Python | acdh_arche_pyutils/utils.py | acdh-oeaw/acdh-arche-pyutils | 1b7aa366f6a00504fad536f63266ab88d1e05bc4 | [
"MIT"
] | null | null | null | acdh_arche_pyutils/utils.py | acdh-oeaw/acdh-arche-pyutils | 1b7aa366f6a00504fad536f63266ab88d1e05bc4 | [
"MIT"
] | 3 | 2021-03-01T08:53:38.000Z | 2021-03-08T10:42:08.000Z | acdh_arche_pyutils/utils.py | acdh-oeaw/acdh-arche-pyutils | 1b7aa366f6a00504fad536f63266ab88d1e05bc4 | [
"MIT"
] | null | null | null | """Some utility functions module."""
def camel_to_snake(s):
""" converts CamelCase string to camel_case\
taken from https://stackoverflow.com/a/44969381
:param s: some string
:type s: str:
:return: a camel_case string
:rtype: str:
"""
no_camel = ''.join(['_'+c.low... | 22.392157 | 84 | 0.56655 |
8547d29f5b4d30e3e1f440fdaabe2db21e5b21af | 8,070 | py | Python | 60-Publish/combine_packages_xml.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | null | null | null | 60-Publish/combine_packages_xml.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | 9 | 2016-09-05T19:24:57.000Z | 2018-12-05T16:11:55.000Z | 60-Publish/combine_packages_xml.py | marble/Toolchain_RenderDocumentation | 1b206c0478b7418a628233e9e1fd36eeb4224185 | [
"MIT"
] | 2 | 2017-04-08T10:12:48.000Z | 2020-08-14T13:10:42.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Integrate two files known as 'packages.xml'.
Usage:
python combine_packages_xml.py FPATH_1 FPATH_2 >result.xml
Description:
The script reads FPATH_1 and updates the data with FPATH_2.
Entries are sorted by 'version+language'. The file timestamp
is set... | 31.647059 | 80 | 0.705204 |
8547dd8fc01f4fe84f90c45c7ee6972d940d2598 | 656 | py | Python | py/testdir_single_jvm/test_failswith512chunk.py | gigliovale/h2o | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 882 | 2015-05-22T02:59:21.000Z | 2022-02-17T05:02:48.000Z | py/testdir_single_jvm/test_failswith512chunk.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 1 | 2015-01-14T23:54:56.000Z | 2015-01-15T20:04:17.000Z | py/testdir_single_jvm/test_failswith512chunk.py | VonRosenchild/h2o-2 | be350f3f2c2fb6f135cc07c41f83fd0e4f521ac1 | [
"Apache-2.0"
] | 392 | 2015-05-22T17:04:11.000Z | 2022-02-22T09:04:39.000Z | import unittest, time, sys
# not needed, but in case you move it down to subdir
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_import as h2i
import h2o_browse as h2b
if __name__ == '__main__':
h2o.unit_main()
| 26.24 | 103 | 0.666159 |
85488ed0b60befa1b705284a61ff04bad970a5d8 | 1,537 | py | Python | modules/scripts/ceas_getMetaStats.py | baigal628/CHIPS | fce7e07af6975e924da78b45fd163d30643fb5e7 | [
"MIT"
] | 10 | 2021-03-17T14:35:00.000Z | 2022-01-26T19:46:17.000Z | modules/scripts/ceas_getMetaStats.py | baigal628/CHIPS | fce7e07af6975e924da78b45fd163d30643fb5e7 | [
"MIT"
] | 7 | 2021-03-25T19:15:40.000Z | 2022-03-25T20:57:52.000Z | modules/scripts/ceas_getMetaStats.py | baigal628/CHIPS | fce7e07af6975e924da78b45fd163d30643fb5e7 | [
"MIT"
] | 2 | 2021-05-11T13:18:16.000Z | 2021-09-29T13:03:54.000Z | #!/usr/bin/env python
"""Script to collect the peak distribution stats
Outputs:
Run,Total,Promoter,Exon,Intron,Intergenic
"""
import os
import sys
from optparse import OptionParser
if __name__=='__main__':
main()
| 29.557692 | 105 | 0.579701 |
8549134564863977a3c4bfb9d8118aebac691d7b | 1,799 | py | Python | Pytorch/label_GT.py | jercas/RetinaTextBoxes- | b0c9451423e6aad239cd3db49040aabe32246eea | [
"Apache-2.0"
] | 3 | 2019-08-18T10:35:39.000Z | 2020-03-16T09:09:55.000Z | Pytorch/label_GT.py | jercas/RetinaTextBoxes- | b0c9451423e6aad239cd3db49040aabe32246eea | [
"Apache-2.0"
] | null | null | null | Pytorch/label_GT.py | jercas/RetinaTextBoxes- | b0c9451423e6aad239cd3db49040aabe32246eea | [
"Apache-2.0"
] | 1 | 2019-09-20T03:25:50.000Z | 2019-09-20T03:25:50.000Z | import os
import glob
from PIL import Image, ImageDraw
# ground truth directory
gt_text_dir = './DB/PLATE/gt' #"./DB/ICDAR2015/test/gt" #"./DB/ICDAR2015/train/gt"
# original images directory
image_dir = './DB/PLATE/*.jpg'#"./DB/ICDAR2015/test/*.jpg" #"./DB/ICDAR2015/train/*.jpg"
imgDirs = []
imgLists = glob.glob(imag... | 35.27451 | 112 | 0.698722 |
854b1541397add642ff164071731a7ebd027896e | 3,764 | py | Python | checks.d/unbound.py | cclauss/datadog-checks | 247e4e4d55c7fba9ab3dae7741459e0a90682dff | [
"MIT"
] | null | null | null | checks.d/unbound.py | cclauss/datadog-checks | 247e4e4d55c7fba9ab3dae7741459e0a90682dff | [
"MIT"
] | null | null | null | checks.d/unbound.py | cclauss/datadog-checks | 247e4e4d55c7fba9ab3dae7741459e0a90682dff | [
"MIT"
] | null | null | null | import subprocess
from checks import AgentCheck
| 30.601626 | 110 | 0.522582 |
854b72957d998596a5f541b0a721a124e5fae503 | 834 | py | Python | running_modes/configurations/reinforcement_learning/reinforcement_learning_components.py | lilleswing/Reinvent-1 | ac4e3e6fa6379c6f4af883478dfd1b3407933ada | [
"Apache-2.0"
] | 183 | 2020-04-04T02:01:15.000Z | 2022-03-30T21:56:56.000Z | running_modes/configurations/reinforcement_learning/reinforcement_learning_components.py | lilleswing/Reinvent-1 | ac4e3e6fa6379c6f4af883478dfd1b3407933ada | [
"Apache-2.0"
] | 39 | 2020-04-05T15:19:56.000Z | 2022-03-09T12:58:21.000Z | running_modes/configurations/reinforcement_learning/reinforcement_learning_components.py | lilleswing/Reinvent-1 | ac4e3e6fa6379c6f4af883478dfd1b3407933ada | [
"Apache-2.0"
] | 70 | 2020-04-05T19:25:43.000Z | 2022-02-22T12:04:39.000Z | from dataclasses import dataclass
from reinvent_scoring.scoring.diversity_filters.reinvent_core.diversity_filter_parameters import \
DiversityFilterParameters
from reinvent_scoring.scoring.scoring_function_parameters import ScoringFunctionParameters
from running_modes.configurations.reinforcement_learning.incepti... | 43.894737 | 110 | 0.878897 |
854bc8d4fea1c0697b53a28aa6aca0e2e116f9d7 | 1,136 | py | Python | torch/legacy/nn/SoftPlus.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null | torch/legacy/nn/SoftPlus.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null | torch/legacy/nn/SoftPlus.py | UmaTaru/run | be29e4d41a4de3dee27cd6796801bfe51382d294 | [
"MIT"
] | null | null | null | import torch
from .Module import Module
| 29.128205 | 78 | 0.53257 |
854c4ace7dd41e0b2f8f3d4d85b1b2398adda6af | 918 | py | Python | setup.py | johannesdo/ipcbridge | cc4683c7bdf694c16b4bc9f75680096ecbd30d6c | [
"BSD-3-Clause"
] | 1 | 2016-06-18T12:23:24.000Z | 2016-06-18T12:23:24.000Z | setup.py | johannesdo/ipcbridge | cc4683c7bdf694c16b4bc9f75680096ecbd30d6c | [
"BSD-3-Clause"
] | null | null | null | setup.py | johannesdo/ipcbridge | cc4683c7bdf694c16b4bc9f75680096ecbd30d6c | [
"BSD-3-Clause"
] | null | null | null | ### hack to avoid hardlinking through python setup.py sdist - doesn't work on vboxfs
import os
del os.link
###
from distutils.core import setup, Extension
#
# https://docs.python.org/3.3/extending/building.html#building
#
module1 = Extension('ipcbridge',
define_macros = [('MAJOR_VERSION', '0'),
... | 30.6 | 84 | 0.553377 |
854d562cee13c308705ffad86e7d347f9640ff22 | 4,177 | py | Python | backend/api/v1/watersheds/db_models.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | backend/api/v1/watersheds/db_models.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | backend/api/v1/watersheds/db_models.py | bcgov-c/wally | 264bc5d40f9b5cf293159f1bc0424cfd9ff8aa06 | [
"Apache-2.0"
] | null | null | null | import geoalchemy2
from sqlalchemy import String, Column, DateTime, ARRAY, TEXT, Integer, ForeignKey, Boolean, Numeric
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy.dialects.postgresql import UUID, JSONB
from api.db.base_class import BaseTable, BaseAudit... | 49.72619 | 116 | 0.712234 |
854d959499f5ba7af65b77307e2c02e1c5f3b38c | 8,653 | py | Python | SPBS-SR/EvalSememePre_SPWE.py | clpl/BabelNet-Sememe-Prediction | 5ee38b5d51049bae28a2855423263c8f4d2ff53e | [
"MIT"
] | 18 | 2019-12-05T04:23:38.000Z | 2022-02-09T17:14:12.000Z | SPBS-SR/EvalSememePre_SPWE.py | clpl/BabelNet-Sememe-Prediction | 5ee38b5d51049bae28a2855423263c8f4d2ff53e | [
"MIT"
] | 3 | 2019-12-24T15:38:15.000Z | 2020-07-24T10:19:13.000Z | SPBS-SR/EvalSememePre_SPWE.py | clpl/BabelNet-Sememe-Prediction | 5ee38b5d51049bae28a2855423263c8f4d2ff53e | [
"MIT"
] | 3 | 2020-07-15T01:58:27.000Z | 2021-01-14T16:10:01.000Z | # coding:utf8
'''
synsetembeddingSPWE
synset()embeddingsynsetsynset
'''
import sys
import os
import numpy as np
from numpy import linalg
import time
import random
outputMode = eval(sys.argv[1])
def ReadSysnetSememe(fileName):
'''
sysnet
'''
start = time.clock()
synsetSemem... | 33.153257 | 100 | 0.600254 |
854d9e0505daf1075732eeef6cfc7c83a7b3d0b0 | 334 | py | Python | core/system.py | aweimeow/statuslook | c29c1cc3402a83a5221dc90462ea071d70d19d63 | [
"MIT"
] | 1 | 2021-05-07T07:12:26.000Z | 2021-05-07T07:12:26.000Z | core/system.py | aweimeow/StatusMonitor | c29c1cc3402a83a5221dc90462ea071d70d19d63 | [
"MIT"
] | null | null | null | core/system.py | aweimeow/StatusMonitor | c29c1cc3402a83a5221dc90462ea071d70d19d63 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# -*- coding: utf-8 -*-
import re
from subprocess import Popen, PIPE
| 23.857143 | 78 | 0.598802 |
854dd1415de5c1e58f83251d4f4db87422bbe901 | 3,706 | py | Python | data/process_data.py | DanielDaCosta/RNN-Keras | b78db17ddc86b959ac1ac8978d2179cc5e1ff11f | [
"MIT"
] | 9 | 2020-05-03T00:55:43.000Z | 2022-01-31T12:20:45.000Z | data/process_data.py | DanielDaCosta/disaster-webapp | 44cf13c473b2f3784f272b0ce33665f46120529f | [
"MIT"
] | null | null | null | data/process_data.py | DanielDaCosta/disaster-webapp | 44cf13c473b2f3784f272b0ce33665f46120529f | [
"MIT"
] | 3 | 2020-12-24T22:05:16.000Z | 2021-12-27T20:58:59.000Z | import pandas as pd
from sqlalchemy import create_engine
import sys
def load_data(messages_filepath, categories_filepath):
"""Function for importing data from CSV files
Params:
messages_filepath (string): path to messages.csv
categories_filepath (string): path to categories.csv
Returns:
... | 32.79646 | 79 | 0.664058 |
854fdde526834e08e26472f28a424f5190846da7 | 7,541 | py | Python | tests/test_visualization.py | adamshephard/tiatoolbox | 28c32648bc1f3e842c7b241637fd25af290386e6 | [
"BSD-3-Clause"
] | null | null | null | tests/test_visualization.py | adamshephard/tiatoolbox | 28c32648bc1f3e842c7b241637fd25af290386e6 | [
"BSD-3-Clause"
] | null | null | null | tests/test_visualization.py | adamshephard/tiatoolbox | 28c32648bc1f3e842c7b241637fd25af290386e6 | [
"BSD-3-Clause"
] | null | null | null | """Tests for visualization."""
import copy
import pathlib
import joblib
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pytest
from tiatoolbox.utils.visualization import (
overlay_prediction_contours,
overlay_prediction_mask,
overlay_probability_map,
plot_graph,
)
from tia... | 39.899471 | 86 | 0.653229 |
855190f1de222e7ef32199045c069e0e23fbb0c7 | 1,419 | py | Python | pycle/bicycle-scrapes/aamhwbike/denemeler.py | fusuyfusuy/School-Projects | 8e38f19da90f63ac9c9ec91e550fc5aaab3d0234 | [
"MIT"
] | null | null | null | pycle/bicycle-scrapes/aamhwbike/denemeler.py | fusuyfusuy/School-Projects | 8e38f19da90f63ac9c9ec91e550fc5aaab3d0234 | [
"MIT"
] | null | null | null | pycle/bicycle-scrapes/aamhwbike/denemeler.py | fusuyfusuy/School-Projects | 8e38f19da90f63ac9c9ec91e550fc5aaab3d0234 | [
"MIT"
] | null | null | null | import os
from bs4 import BeautifulSoup
bicycle = {'Price':'------','Brand':'------','Model':'------','Frame': '------', 'Color': '------', 'Size': '------', 'Fork': '------', 'Headset': '------', 'Stem': '------', 'Handlebar': '------', 'Grips': '------', 'Rear Derailleur': '------', 'Front Derailleur': '------', 'Sh... | 48.931034 | 701 | 0.478506 |
85521f7db79b6ea604976a34b2994626002d4d08 | 3,470 | py | Python | payu/subcommands/run_cmd.py | dkhutch/payu | 85b7cdb7d52005e5048aa144538c68cf5aa2d944 | [
"Apache-2.0"
] | null | null | null | payu/subcommands/run_cmd.py | dkhutch/payu | 85b7cdb7d52005e5048aa144538c68cf5aa2d944 | [
"Apache-2.0"
] | null | null | null | payu/subcommands/run_cmd.py | dkhutch/payu | 85b7cdb7d52005e5048aa144538c68cf5aa2d944 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Standard Library
import os
import argparse
# Local
import payu
from payu import cli
from payu.experiment import Experiment
from payu.laboratory import Laboratory
import payu.subcommands.args as args
title = 'run'
parameters = {'description': 'Run the model experiment'}
arguments = [args.model, arg... | 29.40678 | 77 | 0.667723 |
855287858d2411a052a3c215300b839617bb2a3d | 896 | py | Python | Aula14ex/ex02.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | 1 | 2020-11-28T14:48:03.000Z | 2020-11-28T14:48:03.000Z | Aula14ex/ex02.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | null | null | null | Aula14ex/ex02.py | danicon/MD2-Curso_Python | 77a2eb2d123eb1359dd7c84360c83bf3b3033ab4 | [
"MIT"
] | null | null | null | n1 = float(input('Primeiro nmero: '))
n2 = float(input('Segundo nmero: '))
opcao = 0
while opcao != 5:
print()
print(''' [1]Somar
[2]Multiplicar
[3]Maior
[4]Novos nmeros
[5]Sair do programa''')
print()
opcao = int(input('Escolha uma opo: '))
if opcao == 1:
... | 26.352941 | 48 | 0.493304 |
85547594c62fffbc4f2f4eaa47f200d444e0da77 | 4,767 | py | Python | validator903/datastore.py | kws/quality-lac-data-beta-validator | 638ecc986dfd31d0569e8faa48d0c7e8cfe3f7ed | [
"MIT"
] | null | null | null | validator903/datastore.py | kws/quality-lac-data-beta-validator | 638ecc986dfd31d0569e8faa48d0c7e8cfe3f7ed | [
"MIT"
] | null | null | null | validator903/datastore.py | kws/quality-lac-data-beta-validator | 638ecc986dfd31d0569e8faa48d0c7e8cfe3f7ed | [
"MIT"
] | null | null | null | import datetime
import logging
import os
from pathlib import Path
from typing import Dict, Any
import numpy as np
from copy import copy
import pandas as pd
import qlacref_authorities
from pandas import DataFrame
from qlacref_postcodes import Postcodes
logger = logging.getLogger(__name__)
la_df = pd.DataFrame.from_re... | 40.058824 | 131 | 0.699601 |
85555d370982e1458f4b4957aa368e80824c0d07 | 8,353 | py | Python | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 1 | 2020-09-19T21:56:40.000Z | 2020-09-19T21:56:40.000Z | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | null | null | null | automation/models.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 5 | 2020-09-18T18:53:03.000Z | 2020-10-21T14:42:00.000Z | from app.persian import PersianCalendar
from django.db import models
from .enums import UnitNameEnum,ProductRequestStatusEnum,LetterStatusEnum,AgentRoleEnum
from app.enums import ColorEnum,IconsEnum,EmployeeEnum,DegreeLevelEnum
from django.shortcuts import reverse
from app.settings import ADMIN_URL
from django.utils.tr... | 43.963158 | 151 | 0.709565 |
85560f8e9667df8da60f39cf544982e14c620c44 | 69 | py | Python | test/integration/samples_in/percent_numerics.py | krajkumard/flynt | ebe437edf5b3d812d43d2e8662eef36cc230dcd9 | [
"MIT"
] | null | null | null | test/integration/samples_in/percent_numerics.py | krajkumard/flynt | ebe437edf5b3d812d43d2e8662eef36cc230dcd9 | [
"MIT"
] | null | null | null | test/integration/samples_in/percent_numerics.py | krajkumard/flynt | ebe437edf5b3d812d43d2e8662eef36cc230dcd9 | [
"MIT"
] | null | null | null | a, b, c, d, e = tuple(range(5))
print('%d %f %e %g %s' % (a,b,c,d,e)) | 34.5 | 37 | 0.449275 |
855639cc0a04b3c6e819ec29c78c848da7561279 | 808 | py | Python | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | ok2_backend/KNSQueries/migrations/0002_auto_20210123_1519.py | moshe742/ok2-backend | 03243a296c3ef753dee2173b589a2d01bd36d2e0 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.3 on 2021-01-23 15:19
from django.db import migrations, models
| 24.484848 | 51 | 0.553218 |
85571e69d446a26ec440cc004659052d27052590 | 490 | py | Python | main.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | 2 | 2019-02-25T02:02:24.000Z | 2020-02-22T09:35:33.000Z | main.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | null | null | null | main.py | JiangNanMax/qp12306 | 9161d6129f67003cc4e3557a1e0a3a066a7dfa76 | [
"MIT"
] | null | null | null | from PyQt5.Qt import *
from Login_Pane import LoginPane
from Query_Pane import QueryPane
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
login_pane = LoginPane()
login_pane.show()
query_pane = QueryPane()
login_pane.success_login.connect(success_login_slot)
sys.exit... | 18.846154 | 56 | 0.687755 |
855d0d377a4884169e577594bea2ceed6663e3ea | 10,982 | py | Python | paper/figures/symmetric-widefield.py | talonchandler/dipsim | 04904871924276fd1662ca15b7224166d271c0d8 | [
"MIT"
] | null | null | null | paper/figures/symmetric-widefield.py | talonchandler/dipsim | 04904871924276fd1662ca15b7224166d271c0d8 | [
"MIT"
] | null | null | null | paper/figures/symmetric-widefield.py | talonchandler/dipsim | 04904871924276fd1662ca15b7224166d271c0d8 | [
"MIT"
] | null | null | null | from dipsim import multiframe, util
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.patches as patches
import os; import time; start = time.time(); print('Running...')
import matplotlib.gridspec as gridspec
# Main input parameters
col_labels = ['Geometry\n (NA = 0.6, $\\beta=80{}... | 43.579365 | 189 | 0.649882 |
855e12d4846d6066ca80faa302d770e52bf51d3f | 1,550 | py | Python | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | apps/common/behaviors/uploadable.py | yudame/prakti-api | 9d00c1dd155f80839248e611e0d63b1c70041758 | [
"Unlicense"
] | null | null | null | import json
import uuid
from jsonfield import JSONField
from django.db import models
| 30.392157 | 79 | 0.601935 |
855f7cb89772ea3d4d64fcd054158faff330adb1 | 438 | py | Python | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | 1 | 2021-06-28T07:20:03.000Z | 2021-06-28T07:20:03.000Z | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | null | null | null | dash_oyku/models.py | efebuyuk/jd_intern_project | a8db7ddc8f434d6148b743f6c8c6b071f29e1a41 | [
"MIT"
] | null | null | null | from django.db import models
from django.db.models import IntegerField, Model, JSONField
| 31.285714 | 59 | 0.6621 |
8560c60cca6cd792878efc3571e144c29766b1a6 | 2,560 | py | Python | flowws_structure_pretraining/analysis/BondDenoisingVisualizer.py | klarh/flowws-structure-pretraining | d54103d30df98ed846768d6e0ed851edcd53bfcc | [
"MIT"
] | null | null | null | flowws_structure_pretraining/analysis/BondDenoisingVisualizer.py | klarh/flowws-structure-pretraining | d54103d30df98ed846768d6e0ed851edcd53bfcc | [
"MIT"
] | null | null | null | flowws_structure_pretraining/analysis/BondDenoisingVisualizer.py | klarh/flowws-structure-pretraining | d54103d30df98ed846768d6e0ed851edcd53bfcc | [
"MIT"
] | null | null | null | import functools
import flowws
from flowws import Argument as Arg
import plato
from plato import draw
import numpy as np
from .internal import GeneratorVisualizer
from ..FileLoader import FileLoader
| 30.47619 | 88 | 0.564453 |
85612d53ae43be6eecac0c5b27b18f645c00be3f | 884 | py | Python | adv/ieyasu.py.means.py | betairylia/dl | 4eb06837b13decc569066a43b58e205f3b716ff8 | [
"Apache-2.0"
] | null | null | null | adv/ieyasu.py.means.py | betairylia/dl | 4eb06837b13decc569066a43b58e205f3b716ff8 | [
"Apache-2.0"
] | null | null | null | adv/ieyasu.py.means.py | betairylia/dl | 4eb06837b13decc569066a43b58e205f3b716ff8 | [
"Apache-2.0"
] | null | null | null | import adv_test
from adv import *
from adv import ieyasu
from module.bleed import mBleed
import slot
if __name__ == '__main__':
conf = {}
conf['acl'] = """
`s1
`s2, seq=5 and this.bleed._static['stacks'] > 0
`s3
"""
adv_test.test(module(), conf, verbose=-2, mass=0)
exi... | 22.1 | 55 | 0.557692 |
8562733f27ea610d16fcd52df19107d6be1d4bfd | 1,605 | py | Python | GNN/Social-LSTM/visual.py | geneprophet/VGAE | b5ca4f6987c2376cd04bff047716d2e8c7ae97b9 | [
"MIT"
] | null | null | null | GNN/Social-LSTM/visual.py | geneprophet/VGAE | b5ca4f6987c2376cd04bff047716d2e8c7ae97b9 | [
"MIT"
] | null | null | null | GNN/Social-LSTM/visual.py | geneprophet/VGAE | b5ca4f6987c2376cd04bff047716d2e8c7ae97b9 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import pickle
from scipy.stats import multivariate_normal
visual() | 28.660714 | 92 | 0.618069 |
856374982cb9759ac765f6af6f8238cbb7f34534 | 11,685 | py | Python | vocano/core.py | B05901022/VOCANO | 669b3faa2e3df4aaba84844496c7cb370b6feb1d | [
"MIT"
] | 30 | 2020-10-31T19:57:22.000Z | 2022-03-01T18:15:01.000Z | vocano/core.py | B05901022/VOCANO | 669b3faa2e3df4aaba84844496c7cb370b6feb1d | [
"MIT"
] | 2 | 2021-08-06T17:23:26.000Z | 2021-12-04T15:38:23.000Z | vocano/core.py | B05901022/VOCANO | 669b3faa2e3df4aaba84844496c7cb370b6feb1d | [
"MIT"
] | 2 | 2021-09-13T09:00:29.000Z | 2021-10-08T22:05:40.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 21 00:14:04 2020
@author: Austin Hsu
"""
import os
import torch
import numpy as np
import importlib
import pretty_midi
import platform
import scipy.io.wavfile as wavfile
from apex import amp
from pathlib import Path
from tqdm import tqdm
from google_drive_downloader imp... | 42.490909 | 167 | 0.605563 |
85639fd83916631dd01dd80381447689bb7331eb | 747 | py | Python | migrations/versions/7b5e889e7328_add_canceled_at_for_operations.py | cloud-gov/domain-broker | d1161cecd971202cb10449a29fedb83ef3cd83b0 | [
"CC0-1.0"
] | 5 | 2020-04-28T01:40:43.000Z | 2021-03-27T21:34:14.000Z | migrations/versions/7b5e889e7328_add_canceled_at_for_operations.py | cloud-gov/external-domain-broker | 7136ac0c10f5950315b77eddca60512129d4078d | [
"CC0-1.0"
] | 124 | 2020-04-23T20:24:15.000Z | 2022-02-28T16:59:34.000Z | migrations/versions/7b5e889e7328_add_canceled_at_for_operations.py | cloud-gov/domain-broker | d1161cecd971202cb10449a29fedb83ef3cd83b0 | [
"CC0-1.0"
] | 1 | 2020-06-10T02:43:21.000Z | 2020-06-10T02:43:21.000Z | """add canceled_at for operations
Revision ID: 7b5e889e7328
Revises: b671b2b52afb
Create Date: 2020-06-19 23:33:37.838852
"""
from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils
# revision identifiers, used by Alembic.
revision = "7b5e889e7328"
down_revision = "b671b2b52afb"
branch_labels = None
... | 22.636364 | 77 | 0.692102 |
85657a2ddc56ca2eb7b93d7db5aa3f9bbce9f5d6 | 12,429 | py | Python | ReferentialGym/datasets/MineRL_dataset.py | Near32/ReferentialGameGym | afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c | [
"MIT"
] | 19 | 2019-11-20T05:50:37.000Z | 2022-03-15T09:10:25.000Z | ReferentialGym/datasets/MineRL_dataset.py | Near32/ReferentialGameGym | afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c | [
"MIT"
] | null | null | null | ReferentialGym/datasets/MineRL_dataset.py | Near32/ReferentialGameGym | afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c | [
"MIT"
] | 5 | 2020-12-20T23:00:23.000Z | 2022-01-06T08:42:24.000Z | from typing import Dict, List, Tuple
import os
import numpy as np
import random
from tqdm import tqdm
import torch
import minerl
from PIL import Image
from .dataset import Dataset, shuffle
| 43.15625 | 151 | 0.583313 |
8566b8a5b3595851963ced67826b2b856256f968 | 9,397 | py | Python | backend/app/app/api/api_v1/endpoints/warehouse.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 3 | 2020-10-01T11:28:02.000Z | 2020-10-31T15:35:51.000Z | backend/app/app/api/api_v1/endpoints/warehouse.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | 1 | 2022-02-09T04:19:20.000Z | 2022-02-09T13:56:40.000Z | backend/app/app/api/api_v1/endpoints/warehouse.py | totalhack/zillion-web | e567c04d3564aec8105d54533d318b79d943c9c6 | [
"MIT"
] | null | null | null | from typing import Any, Dict
from fastapi import APIRouter, Depends, Response
from marshmallow.exceptions import ValidationError
from tlbx import st, pp, get_string_format_args, json
from zillion.core import InvalidFieldException, ZillionException
from zillion.model import zillion_engine, ReportSpecs
from zillion.repo... | 34.421245 | 103 | 0.647121 |
856869ea9b6dabe9d40a2462ee1d13b5b5eaa0b9 | 708 | py | Python | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | 1 | 2020-03-11T18:47:24.000Z | 2020-03-11T18:47:24.000Z | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | null | null | null | lib/cli_commands/validate_classifier.py | antonsuba/ids-test-environment-sdn | 0292931cc7d9897eea7aae8c3c23a690fde7d862 | [
"MIT"
] | 2 | 2018-11-26T11:31:37.000Z | 2019-02-20T14:23:44.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import yaml
import inspect
from importlib import import_module
DIRNAME = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
CONFIG = os.path.join(DIRNAME, '../../config/config.yml')
with open(CONFIG, 'r') as config_file:
cfg = yaml.load(config_fi... | 24.413793 | 65 | 0.659605 |
856e4c91f5ac6bb0743f0f72a293e80b96b180c7 | 160 | py | Python | sumy/constants.py | gsandeep1241/TextSummarizer | fc9af3cf3a74114db94a837d5d20c16a08f806be | [
"Apache-2.0"
] | null | null | null | sumy/constants.py | gsandeep1241/TextSummarizer | fc9af3cf3a74114db94a837d5d20c16a08f806be | [
"Apache-2.0"
] | 5 | 2020-03-24T16:36:34.000Z | 2021-12-13T19:53:21.000Z | sumy/constants.py | gsandeep1241/TextSummarizer | fc9af3cf3a74114db94a837d5d20c16a08f806be | [
"Apache-2.0"
] | null | null | null | PATH = '../DUC_data/DUC2006/duc2006_docs/'
GtPath = '../DUC_data/DUC2006/NISTeval/ROUGE/peers/'
googlePath = '../../../../../GoogleNews-vectors-negative300.bin' | 53.333333 | 64 | 0.69375 |
85731618bb69d50a2638e91ab9c3f9baea8598f6 | 950 | py | Python | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | demo/classification/fast_neural_network/mnist.py | DanielMorales9/LinearRegression | 7c905e5317a2eb4cc3b2cab275bbcec8e9db57f9 | [
"MIT"
] | null | null | null | from classification import FastNeuralNetwork
import os
import scipy.io as scio
from random import random
from numpy import mean, zeros, reshape, ceil
from numpy.random import shuffle, rand
from chart import NNChart
nnc = NNChart()
path = os.path.dirname(os.path.abspath(__file__))
data = scio.loadmat(path+"/data/data1... | 22.619048 | 79 | 0.652632 |
8573466a63736fc062740b429bb80f3aa6dae5da | 904 | py | Python | src/desc_data.py | centre-for-humanities-computing/NDHL-AHM20 | d669c958c95e3a1158fec0f1a145af9091094581 | [
"MIT"
] | null | null | null | src/desc_data.py | centre-for-humanities-computing/NDHL-AHM20 | d669c958c95e3a1158fec0f1a145af9091094581 | [
"MIT"
] | null | null | null | src/desc_data.py | centre-for-humanities-computing/NDHL-AHM20 | d669c958c95e3a1158fec0f1a145af9091094581 | [
"MIT"
] | null | null | null | #!/home/knielbo/virtenvs/ndhl/bin/python
"""
Describe feature distributions of (meta)data
@author: kln@cas.au.dk
"""
import os
import matplotlib.pyplot as plt
from util import load_pcl
from datetime import datetime
if __name__ == "__main__":
main() | 29.16129 | 71 | 0.621681 |
8575014135f313d08ce218ef0d1f31578bfa7bae | 20,842 | py | Python | beep/tests/test_maccor_to_biologic_mb.py | willpowelson/beep | f8df1e1105dec0dbb2df0b8aa2c525174a115411 | [
"Apache-2.0"
] | 1 | 2021-09-01T15:03:53.000Z | 2021-09-01T15:03:53.000Z | beep/tests/test_maccor_to_biologic_mb.py | lewis2222/beep | 39c4cb952294d3e5ebcd2c85877d538f50d91979 | [
"Apache-2.0"
] | 88 | 2021-03-29T07:39:41.000Z | 2022-03-28T17:06:19.000Z | beep/tests/test_maccor_to_biologic_mb.py | lewis2222/beep | 39c4cb952294d3e5ebcd2c85877d538f50d91979 | [
"Apache-2.0"
] | null | null | null | # Copyright [2020] [Toyota Research Institute]
#
# 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 agre... | 37.351254 | 114 | 0.528356 |
85783967cfc0d695bb89fab6270b7c499143c02d | 643 | py | Python | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | python base/mail.py | umaremdy/reishy | 060b26812cac88c0333c914fab409c3ca6647278 | [
"CC-BY-3.0"
] | null | null | null | from flask_mail import Mail, Message
from flask import Flask
app =Flask(__name__)
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_USERNAME'] = 'antoprince001@gmail.com'
app.config['MAIL_PASSWORD'] = 'gboyilovemylife100%'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_US... | 25.72 | 131 | 0.713841 |
857972f921b19c2125c74f46b18668c2929e209c | 9,802 | py | Python | tests/graph/utils.py | kvh/basis | 8d109ff5ccf2c30b1a11406827d2c1620691ad95 | [
"BSD-3-Clause"
] | 11 | 2020-05-29T20:56:48.000Z | 2021-09-22T15:44:42.000Z | tests/graph/utils.py | kvh/basis | 8d109ff5ccf2c30b1a11406827d2c1620691ad95 | [
"BSD-3-Clause"
] | null | null | null | tests/graph/utils.py | kvh/basis | 8d109ff5ccf2c30b1a11406827d2c1620691ad95 | [
"BSD-3-Clause"
] | null | null | null | import textwrap
from pathlib import Path
from dataclasses import dataclass, asdict
from typing import Any, Union, List, Dict, Collection, Set, Tuple
from basis.graph.builder import graph_manifest_from_yaml, GraphManifest
from basis.configuration.path import GraphEdge, NodeId, PortId
from basis.graph.configured_node im... | 31.619355 | 92 | 0.630688 |
8579ab2d188133f6cb7977ad583a7f079772059b | 8,909 | py | Python | tests/test_checkout_caching.py | HumanCellAtlas/data-store | 6b27d0f7e0110c62b3079151708689ab5145f15b | [
"MIT"
] | 46 | 2017-03-24T15:56:09.000Z | 2021-03-15T19:49:07.000Z | tests/test_checkout_caching.py | HumanCellAtlas/DCC | 6b27d0f7e0110c62b3079151708689ab5145f15b | [
"MIT"
] | 1,799 | 2017-04-04T17:54:28.000Z | 2020-11-19T12:30:13.000Z | tests/test_checkout_caching.py | HumanCellAtlas/DCC | 6b27d0f7e0110c62b3079151708689ab5145f15b | [
"MIT"
] | 13 | 2017-03-27T23:49:35.000Z | 2021-01-18T07:39:49.000Z | #!/usr/bin/env python
# coding: utf-8
import os
import sys
import unittest
import tempfile
import time
from google.cloud import storage
from unittest import mock
pkg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) # noqa
sys.path.insert(0, pkg_root) # noqa
from dss import Config, Replica, Buck... | 43.247573 | 108 | 0.669435 |
857a1a342199e6e969244060bb3ca1b798f9735f | 1,305 | py | Python | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | 3 | 2020-08-31T00:59:26.000Z | 2021-10-19T22:01:00.000Z | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | null | null | null | implementations/tesla/bin/responsehandlers.py | djsincla/SplunkModularInputsPythonFramework | 1dd215214f3d2644cb358e41f4105fe40cff5393 | [
"Apache-2.0"
] | 1 | 2020-01-09T03:55:51.000Z | 2020-01-09T03:55:51.000Z | #add your custom response handler class to this module
import json
import datetime
#the default handler , does nothing , just passes the raw output directly to STDOUT
... | 31.829268 | 104 | 0.564751 |
857cf532254d5eb773413152175963c0eb503248 | 1,466 | py | Python | python3/berrymq/adapter/fileobserver.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | python3/berrymq/adapter/fileobserver.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | python3/berrymq/adapter/fileobserver.py | shibukawa/berrymq | ab2f7127b80957e01e756f431554d3d8c8c85bb8 | [
"MIT"
] | null | null | null | from .. import berrymq
import os
import glob
import time
import threading
| 33.318182 | 78 | 0.602319 |
857da36d74564cf9aa71e473d4fb8329787ebfcc | 59 | py | Python | hoi3tools/config.py | jDan735/hoi3tools | 0bf8ba6b75e03e04733eecc09fc4c1c7c69a9447 | [
"MIT"
] | null | null | null | hoi3tools/config.py | jDan735/hoi3tools | 0bf8ba6b75e03e04733eecc09fc4c1c7c69a9447 | [
"MIT"
] | null | null | null | hoi3tools/config.py | jDan735/hoi3tools | 0bf8ba6b75e03e04733eecc09fc4c1c7c69a9447 | [
"MIT"
] | null | null | null | dirpath = "I:\\games\\HoI3 Remastered\\history\\provinces"
| 29.5 | 58 | 0.728814 |
857f323d2f3e2844445996516e560e7db9e046e1 | 4,250 | py | Python | mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/reservations/flags.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | null | null | null | mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/reservations/flags.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | 4 | 2020-07-21T12:51:46.000Z | 2022-01-22T10:29:25.000Z | mac/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/reservations/flags.py | bopopescu/cndw | ee432efef88a4351b355f3d6d5350defc7f4246b | [
"Apache-2.0"
] | 1 | 2020-07-25T18:17:57.000Z | 2020-07-25T18:17:57.000Z | # -*- coding: utf-8 -*- #
# 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 requir... | 34 | 98 | 0.724471 |
857f466842692bbbd88553c11ec4b35e6eef61ee | 82 | py | Python | lor_deckcodes/__init__.py | Rafalonso/LoRDeckCodesPython | 42b59090d7aa2a7818917e999a4361dff104ab92 | [
"MIT"
] | 16 | 2019-10-19T22:02:48.000Z | 2022-02-24T14:07:37.000Z | lor_deckcodes/__init__.py | mfrr/LoRDeckCodesPython | 3e3e4014da1be1d3e16cee431678f0042a678460 | [
"MIT"
] | 9 | 2020-04-26T14:08:08.000Z | 2021-08-25T15:53:35.000Z | lor_deckcodes/__init__.py | mfrr/LoRDeckCodesPython | 3e3e4014da1be1d3e16cee431678f0042a678460 | [
"MIT"
] | 9 | 2019-10-30T21:16:03.000Z | 2021-08-25T15:41:14.000Z | name = "lor_deckcodes"
from lor_deckcodes.models import LoRDeck, CardCodeAndCount
| 27.333333 | 58 | 0.841463 |
858049e4d57ecbc29c0f6fdecd2652e37463915d | 623 | py | Python | examples/server.py | munisisazade/redis-pub-sub | 782d556e2ebdd8839edaeef8678f94db0c4e6a54 | [
"MIT"
] | 2 | 2020-03-16T07:14:32.000Z | 2021-02-14T11:19:37.000Z | examples/server.py | munisisazade/redis-pub-sub | 782d556e2ebdd8839edaeef8678f94db0c4e6a54 | [
"MIT"
] | null | null | null | examples/server.py | munisisazade/redis-pub-sub | 782d556e2ebdd8839edaeef8678f94db0c4e6a54 | [
"MIT"
] | 2 | 2020-01-26T15:07:56.000Z | 2021-04-03T17:48:13.000Z | import os
from redisrpc import RedisRPC
# Add REDIS_URI application enviroment
os.environ.setdefault("REDIS_URI", "redis://:PpkJfHHNph9X5hB5@localhost:6379/0")
rpc = RedisRPC("channel_name") # rename what you want
# event lists
rpc.register(calc_square, "square") # event name default function name
rpc.registe... | 23.074074 | 80 | 0.739968 |
858308d7a05a912670000d8d3e18e21f420a6f30 | 418 | py | Python | LeetCode/MaximumPointsYouCanObtainFromCards.py | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/MaximumPointsYouCanObtainFromCards.py | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/MaximumPointsYouCanObtainFromCards.py | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | """
ranges from taking the first k to taking the last k, so try all the combinations, shifting one numbr at a time
"""
| 34.833333 | 110 | 0.633971 |
858477fb81ec87aea406b9c3e37a4cb272d6dd6a | 441 | py | Python | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | null | null | null | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 178 | 2017-11-17T19:14:31.000Z | 2021-12-15T07:43:29.000Z | scripts/hw-diags.py | 2Shirt/WizardK | 82a2e7f85c80a52f892c1553e7a45ec0174e7bc6 | [
"MIT"
] | 1 | 2017-11-17T19:32:36.000Z | 2017-11-17T19:32:36.000Z | #!/usr/bin/env python3
"""WizardKit: Hardware Diagnostics"""
# pylint: disable=invalid-name
# vim: sts=2 sw=2 ts=2
from docopt import docopt
import wk
if __name__ == '__main__':
try:
docopt(wk.hw.diags.DOCSTRING)
except SystemExit:
print('')
wk.std.pause('Press Enter to exit...')
raise
try:
... | 17.64 | 42 | 0.666667 |
8584ae1c5aab7faa348a572830afee0432e91071 | 1,055 | py | Python | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | slot/w/wand.py | mattkw/dl | 45bfc28ad9ff827045a3734730deb893a2436c09 | [
"Apache-2.0"
] | null | null | null | import slot
from slot import *
flame = wand5b1
wind = wand5b1
shadow = wand5b1
water = wand5b2
light = wand5b2
| 18.189655 | 35 | 0.412322 |
8586f20d81d871dcccdebbc919a4ef229a83d7c5 | 978 | py | Python | ai2business/datasets/sample_generator.py | SimonBOai/ai2business | 68b5e63841e2636310095184b453fe6450baf372 | [
"Apache-2.0"
] | null | null | null | ai2business/datasets/sample_generator.py | SimonBOai/ai2business | 68b5e63841e2636310095184b453fe6450baf372 | [
"Apache-2.0"
] | 24 | 2020-12-03T07:47:42.000Z | 2020-12-19T16:38:01.000Z | ai2business/datasets/sample_generator.py | Anselmoo/ai2business | 98af02afe5317e6a6271528e062f00118396645f | [
"Apache-2.0"
] | null | null | null | """Generates sample list of KPIs"""
from ai2business.datasets.data import database
def stock_market(indices: str = "DOWJONES") -> dict:
"""Returns all company names and ISIN for a given stock market.
Args:
indices (str, optional): Name of the stock market. Defaults to "DOWJONES".
Returns:
... | 27.942857 | 94 | 0.664622 |
8588525112b3883bbd9b701dec095f2efcbfd29f | 519 | py | Python | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | 5 | 2017-08-24T13:39:01.000Z | 2017-08-25T07:16:58.000Z | tests/server_generator/test_bottle_server_generator.py | mikaeilorfanian/client_server_generator | 784245563d3633396e01ba918197a1fe41a2205b | [
"MIT"
] | null | null | null | import requests
from server_generator.server_generator import MagicRouter
from tests.utils import start_test_bottle_app
| 23.590909 | 57 | 0.712909 |
8588e831301618d420f9f3e0e1b7e2cd3864e1c4 | 32,844 | py | Python | process_mimic.py | miggymigz/mimic-lstm | 872e4d888b8a01e7c674a3bc3f8267574dc07310 | [
"MIT"
] | null | null | null | process_mimic.py | miggymigz/mimic-lstm | 872e4d888b8a01e7c674a3bc3f8267574dc07310 | [
"MIT"
] | null | null | null | process_mimic.py | miggymigz/mimic-lstm | 872e4d888b8a01e7c674a3bc3f8267574dc07310 | [
"MIT"
] | null | null | null | from functools import reduce
from operator import add
import concurrent.futures
import csv
import fire
import math
import numpy as np
import os
import pandas as pd
import pickle
import re
## Utilities ##
## Proper Classes ##
def main(root='mimic_database', redo=False):
# ensure dataset directory exists
... | 40.398524 | 113 | 0.605072 |
858911bce2acf38510908b0689f1a35cfbe83da1 | 4,229 | py | Python | boss/code/GPy_wrappers/GPy_tree_kernel.py | henrymoss/BOSS | f19eaf7231ed007cce9e12fba0f7f936eb48cfdb | [
"Apache-2.0"
] | 16 | 2020-10-06T16:23:29.000Z | 2022-03-28T05:17:06.000Z | boss/code/GPy_wrappers/GPy_tree_kernel.py | henrymoss/BOSS | f19eaf7231ed007cce9e12fba0f7f936eb48cfdb | [
"Apache-2.0"
] | 2 | 2021-11-09T19:21:44.000Z | 2021-11-29T08:01:19.000Z | boss/code/GPy_wrappers/GPy_tree_kernel.py | henrymoss/BOSS | f19eaf7231ed007cce9e12fba0f7f936eb48cfdb | [
"Apache-2.0"
] | 4 | 2021-09-15T11:36:24.000Z | 2022-02-23T03:33:14.000Z | from GPy.kern import Kern
from GPy.core.parameterization import Param
import numpy as np
import sys
from paramz.transformations import Logexp
from ..kernels.tree.C_tree_kernel import wrapper_raw_SubsetTreeKernel
if __name__ == "__main__":
#Simple Demo
X=np.array([['(S (NP ns) (VP v))'],
... | 36.773913 | 142 | 0.563963 |
858a0cf0d14ee703329ac16399a65e3ed5de626f | 5,007 | py | Python | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | make_json.py | DewMaple/head_box | 27ac90511344bfa75b340d1db960365e9eb148c7 | [
"Apache-2.0",
"MIT"
] | null | null | null | # A tool for hand labelling images
# Generates an IDL file
# pass in the directory where you store your images and a filename, then select the points on the images
# every time you hit next a line is generated
# the clear button removes are selected points on the current image
# when all files in the directory are proc... | 29.627219 | 114 | 0.641102 |
858ae149edae9e40985dfbf616ae3be865530c4d | 1,261 | py | Python | EN4/analysis.py | jvdoorn/EN | 4ca3ec37ebff4d277677cfaea2b77daa60a54d82 | [
"MIT"
] | null | null | null | EN4/analysis.py | jvdoorn/EN | 4ca3ec37ebff4d277677cfaea2b77daa60a54d82 | [
"MIT"
] | 2 | 2022-01-13T03:44:55.000Z | 2022-03-12T00:56:18.000Z | EN4/analysis.py | jvdoorn/EN | 4ca3ec37ebff4d277677cfaea2b77daa60a54d82 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from scipy.io import wavfile
from common import balance, file_name, view, correction
# Read the audio file
rate, audio = wavfile.read(file_name)
audio = balance(audio)
count = audio.shape[0] # Number of data points
length = count / rate # Length of the recording (... | 31.525 | 81 | 0.682791 |
858bb8166e2d1dd3ef4f31caed28313a875347b9 | 2,212 | py | Python | tests/station_test.py | RobMackie/CheckMeIn | 2cb66b4fff7259fa038a2754878056af9dbca6f4 | [
"MIT"
] | 1 | 2020-10-22T13:22:39.000Z | 2020-10-22T13:22:39.000Z | tests/station_test.py | RobMackie/CheckMeIn | 2cb66b4fff7259fa038a2754878056af9dbca6f4 | [
"MIT"
] | 34 | 2018-07-05T18:18:37.000Z | 2022-03-12T01:01:03.000Z | tests/station_test.py | RobMackie/CheckMeIn | 2cb66b4fff7259fa038a2754878056af9dbca6f4 | [
"MIT"
] | 1 | 2021-09-06T04:12:43.000Z | 2021-09-06T04:12:43.000Z | import CPtest
| 33.515152 | 79 | 0.670434 |
859057f59f5a3d7d8891df072712ba56b2d182e9 | 17,051 | py | Python | dlex/tf/instance_v1.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/instance_v1.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | dlex/tf/instance_v1.py | dvtrung/dl-torch | b49e57d10d32bb223e2d7643f2579ccc32c63a9a | [
"MIT"
] | null | null | null | import logging
import os
import random
from collections import OrderedDict, namedtuple
from datetime import datetime
import tensorflow.compat.v1 as tf
from dlex import FrameworkBackend, TrainingProgress
from dlex.configs import Params
from dlex.datasets.tf import Dataset
from dlex.tf.models.base_v1 import BaseModelV1
... | 38.840547 | 121 | 0.573222 |
85908c15afe587db8551deda3b4c239f8d42664e | 145 | py | Python | moto/instance_metadata/models.py | chiemerieezechukwu/moto | 07b7d77611d345a99a253c366529822e1cc0b1ff | [
"Apache-2.0"
] | null | null | null | moto/instance_metadata/models.py | chiemerieezechukwu/moto | 07b7d77611d345a99a253c366529822e1cc0b1ff | [
"Apache-2.0"
] | null | null | null | moto/instance_metadata/models.py | chiemerieezechukwu/moto | 07b7d77611d345a99a253c366529822e1cc0b1ff | [
"Apache-2.0"
] | null | null | null | from moto.core import BaseBackend
instance_metadata_backend = InstanceMetadataBackend()
| 16.111111 | 53 | 0.827586 |
859208b5a93d0e79afb42da91a5ef97b75f19467 | 1,559 | py | Python | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | bonfire_led_pwm_tb.py | bonfireprocessor/bonfire-pwm | 2e28cb5c19454343122fc26589da86f17613f204 | [
"MIT"
] | null | null | null | from myhdl import *
from bonfire_led_pwm import bonfire_led_pwm
#from bonfire_led_pwm4 import bonfire_led_pwm4
from wishbone_bundle import *
from ClkDriver import *
numChannels=4
values=(2,0x00205070,0x00ffffff,0x00000000,0x00deadbe)
inst=led_pwm_tb()
#inst.convert(hdl='VHDL',name='bonfire_led_pwm_tb',path='tb')
#i... | 21.957746 | 76 | 0.652341 |
859249876ca19a024249e015e76aec296b5a74be | 699 | py | Python | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | 3 | 2020-10-29T20:21:53.000Z | 2021-08-17T18:52:23.000Z | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | null | null | null | setup.py | andypbarrett/Sunlight_under_seaice | 2c42c4f562ce27089a1d24cd4ff1740c5b7fa6b6 | [
"MIT"
] | 1 | 2021-02-26T17:33:23.000Z | 2021-02-26T17:33:23.000Z | from setuptools import setup
setup(
# Needed to silence warnings (and to be a worthwhile package)
name='sunderseaice',
url='',
author='Andy Barrett',
author_email='andypbarrett@gmail.com',
# Needed to actually package something
packages=setuptools.find_packages(),
# Needed for dependenc... | 33.285714 | 72 | 0.692418 |
8593641937c8bd0e1d07c1472f2db079062cd1fa | 1,294 | py | Python | pages/views.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | pages/views.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | pages/views.py | Ben-Peters/lnldb | 4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7 | [
"MIT"
] | null | null | null | import datetime
from django.shortcuts import get_object_or_404, render
from django.utils import timezone
from django.views.decorators.http import require_GET
from events.models import BaseEvent
from pages.models import Page
from processors import navs
def page(request, slug):
""" Generate custom page """
co... | 34.052632 | 97 | 0.72102 |
8593c4ce4caf899224de50db467b06bd079e9209 | 91 | py | Python | src/poliastro/tests/test_examples.py | aOrionis/poliastro | 7e73dbcafd837854dba8db1910477b6df3eace93 | [
"MIT"
] | 1 | 2018-12-09T18:33:52.000Z | 2018-12-09T18:33:52.000Z | src/poliastro/tests/test_examples.py | aOrionis/poliastro | 7e73dbcafd837854dba8db1910477b6df3eace93 | [
"MIT"
] | null | null | null | src/poliastro/tests/test_examples.py | aOrionis/poliastro | 7e73dbcafd837854dba8db1910477b6df3eace93 | [
"MIT"
] | 1 | 2021-11-24T12:00:27.000Z | 2021-11-24T12:00:27.000Z | # This line tests all the statements so far
from poliastro import examples # flake8: noqa
| 30.333333 | 46 | 0.78022 |
8594791d879179d2b9776fd3591fb68f07fc02f7 | 1,611 | py | Python | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | 2 | 2021-01-03T16:22:11.000Z | 2021-02-07T08:41:57.000Z | src/dx/share/scraper/crawl.py | lmmx/dx | 063e8f8cfc24dfdf09a12001b58b4017a75ea3e8 | [
"MIT"
] | null | null | null | from .parse_topics import topics
from .url_utils import base_url
from .time_utils import StopWatch
from .soup_processor import soup_from_response
from .soup_structure import AMSBookInfoPage
from sys import stderr
from time import sleep
__all__ = ["crawl"]
if __name__ == "__main__":
__main__()
| 35.021739 | 87 | 0.577281 |
8596577642909ff5d28c1201a1960fdb80b521ff | 3,347 | py | Python | alipay/aop/api/domain/DishRecommend.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/DishRecommend.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/DishRecommend.py | articuly/alipay-sdk-python-all | 0259cd28eca0f219b97dac7f41c2458441d5e7a6 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import simplejson as json
from alipay.aop.api.constant.ParamConstants import *
| 28.853448 | 79 | 0.58052 |
8597bb717cd9dbb832a4f653849811a40ea39f93 | 1,224 | py | Python | app/schemas/Recipe.py | koyokakijakarta/foodrecipe | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | 2 | 2021-08-02T13:40:56.000Z | 2021-08-04T22:18:02.000Z | app/schemas/Recipe.py | koyokakijakarta/foodrecipes | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | null | null | null | app/schemas/Recipe.py | koyokakijakarta/foodrecipes | cb8e3ce17140c2b2c524af6838f53359ec7f6dbd | [
"MIT"
] | null | null | null | from app import ma
from app.models import Recipe as RecipeModels
from app.schemas.Response import ResponseSchema
from marshmallow import validate, ValidationError, EXCLUDE, post_load
| 29.142857 | 104 | 0.706699 |
859824bfe879358b982186fe158fb3c8b563109e | 8,883 | py | Python | exec/evaluateSupervisedLearningNoPhysicsNoTerminal/2wolves1sheep/trainWolvesTwoCenterControlMultiTrees/generateCenterControlTrajectoryByCondition.py | ningtangla/trainCentrolControl | 66874876a035ad1814b472f03aa9e701f3bdcab7 | [
"MIT"
] | null | null | null | exec/evaluateSupervisedLearningNoPhysicsNoTerminal/2wolves1sheep/trainWolvesTwoCenterControlMultiTrees/generateCenterControlTrajectoryByCondition.py | ningtangla/trainCentrolControl | 66874876a035ad1814b472f03aa9e701f3bdcab7 | [
"MIT"
] | null | null | null | exec/evaluateSupervisedLearningNoPhysicsNoTerminal/2wolves1sheep/trainWolvesTwoCenterControlMultiTrees/generateCenterControlTrajectoryByCondition.py | ningtangla/trainCentrolControl | 66874876a035ad1814b472f03aa9e701f3bdcab7 | [
"MIT"
] | null | null | null | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..','..'))
import numpy as np
import pickle
import random
import json
from collections import OrderedDict
import itertools as it
from src.neuralNetwork.policyValueResNet import GenerateModel, Train, saveVariables, sampleData, Approximat... | 46.265625 | 192 | 0.72498 |
859a5e728bd0e3bd27cb8fe607b674dcf1bb3f58 | 471 | py | Python | estrutura-de-decisao/exercicio06.py | diegolinkk/exercicios-python-brasil | 3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5 | [
"MIT"
] | null | null | null | estrutura-de-decisao/exercicio06.py | diegolinkk/exercicios-python-brasil | 3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5 | [
"MIT"
] | null | null | null | estrutura-de-decisao/exercicio06.py | diegolinkk/exercicios-python-brasil | 3bf7bdf0e98cdd06c115eedae4fa01e0c25fdba5 | [
"MIT"
] | null | null | null | #Faa um Programa que leia trs nmeros e mostre o maior deles.
a = int(input("Digite o primeiro nmero: "))
b = int(input("Digite o segundo nmero: "))
c = int(input("DIgite o terceiro nmero: "))
primeiro = a
segundo = b
terceiro = c
if terceiro > segundo:
terceiro,segundo = segundo,terceiro
if segundo > primeiro:... | 23.55 | 64 | 0.707006 |
859aafab5afb402fc156c1e0795b29e20656f384 | 237 | py | Python | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | 1 | 2020-10-08T09:17:40.000Z | 2020-10-08T09:17:40.000Z | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | python3/hamming_distance.py | joshiaj7/CodingChallenges | f95dd79132f07c296e074d675819031912f6a943 | [
"MIT"
] | null | null | null | # leetcode | 19.75 | 53 | 0.392405 |
859b1d5614819d130ad938bbcedb7b369e053205 | 19 | py | Python | hello.py | NateLovallo/megafun | 86cb59414b84c95490255c97bfb42c109878e6bb | [
"MIT"
] | null | null | null | hello.py | NateLovallo/megafun | 86cb59414b84c95490255c97bfb42c109878e6bb | [
"MIT"
] | null | null | null | hello.py | NateLovallo/megafun | 86cb59414b84c95490255c97bfb42c109878e6bb | [
"MIT"
] | null | null | null | print 'hello you'
| 6.333333 | 17 | 0.684211 |
859d3b6184b3d2cda5b7dcece90631ae984e3f98 | 5,837 | py | Python | warden/csv_routes/routes.py | pathtoknowhere/warden | 3cff5378bf5e47132c3ddf38b9b9caf1085c7e46 | [
"MIT"
] | 27 | 2021-03-12T06:04:36.000Z | 2022-03-25T18:42:26.000Z | warden/csv_routes/routes.py | pathtoknowhere/warden | 3cff5378bf5e47132c3ddf38b9b9caf1085c7e46 | [
"MIT"
] | 6 | 2020-10-16T10:34:51.000Z | 2021-02-07T21:01:13.000Z | warden/csv_routes/routes.py | pathtoknowhere/warden | 3cff5378bf5e47132c3ddf38b9b9caf1085c7e46 | [
"MIT"
] | 5 | 2021-04-07T18:11:28.000Z | 2022-03-10T15:00:32.000Z | import csv
import hashlib
import logging
import secrets
import os
import pandas as pd
from datetime import datetime
import dateutil.parser as parser
from flask import (Blueprint, flash, redirect, render_template, request,
send_file, url_for, current_app)
from flask_login import current_user, login_... | 36.030864 | 102 | 0.566729 |
859f0a3ecd9b17907e6f6f30b1f44f95e70629b7 | 1,381 | py | Python | fred_crawler.py | Tyromancer/economics.py | 455bfb9ff73bb97350bb45cc21d95c5c5d61f34e | [
"Apache-2.0"
] | null | null | null | fred_crawler.py | Tyromancer/economics.py | 455bfb9ff73bb97350bb45cc21d95c5c5d61f34e | [
"Apache-2.0"
] | null | null | null | fred_crawler.py | Tyromancer/economics.py | 455bfb9ff73bb97350bb45cc21d95c5c5d61f34e | [
"Apache-2.0"
] | 1 | 2018-11-19T19:40:57.000Z | 2018-11-19T19:40:57.000Z | # Usage:
# Find and download fred series data
# then find the specific data on yyyy-mm-dd
import requests # used for downloading text files from FRED
import os # used for removing temporary text files
# Usage : download series data in the form of text file and extract data on given date
# param:
# se... | 26.557692 | 86 | 0.617668 |
859feea203697f32ac285b8c0bf0fe945f491827 | 4,279 | py | Python | CS116/a06-j4mai/a06-j4mai/a06q4.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | CS116/a06-j4mai/a06-j4mai/a06q4.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | CS116/a06-j4mai/a06-j4mai/a06q4.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | ##===============================================
## Jiadong Mai (20557203)
## CS 116 Winter 2018
## Assignment 06, Question 4
##===============================================
import check
# Question 4 - part a
# max_height(desc) consumes a Str, desc, and returns the maximum height reached
# max_height: Str -> N... | 28.718121 | 79 | 0.477915 |
85a10d2dd08da482ed963104ea04d787a16f282b | 2,888 | py | Python | paleomix/nodes/bedtools.py | jfy133/paleomix | f7f687f6f69b2faedd247a1d289d28657710a8c2 | [
"MIT"
] | null | null | null | paleomix/nodes/bedtools.py | jfy133/paleomix | f7f687f6f69b2faedd247a1d289d28657710a8c2 | [
"MIT"
] | null | null | null | paleomix/nodes/bedtools.py | jfy133/paleomix | f7f687f6f69b2faedd247a1d289d28657710a8c2 | [
"MIT"
] | null | null | null | #!/usr/bin/python
#
# Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com>
#
# 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
#... | 40.676056 | 86 | 0.668629 |
85a3072aae9e3b8d27f8bf5d2ee3424715f3b0cd | 1,161 | py | Python | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 3 | 2020-03-26T12:43:43.000Z | 2021-05-10T14:35:51.000Z | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 5 | 2021-04-08T21:15:15.000Z | 2022-02-10T11:03:12.000Z | hrsalespipes/api_integrations/migrations/0001_initial.py | hanztura/hrsalespipes | 77accf3132726ced05d84fa2a41891b841f310b8 | [
"Apache-2.0"
] | 1 | 2022-01-30T19:24:48.000Z | 2022-01-30T19:24:48.000Z | # Generated by Django 2.2.10 on 2020-04-30 07:25
from django.db import migrations, models
import django_extensions.db.fields
| 35.181818 | 124 | 0.587425 |
85a3235f9e4adb56bea4f0f8761857debed88189 | 3,214 | py | Python | examples/how_to/per_round_max_channel.py | haoxusci/starfish | d7bd856024c75f2ce41504406f2a663566c3814b | [
"MIT"
] | 164 | 2018-03-21T21:52:56.000Z | 2022-03-23T17:14:39.000Z | examples/how_to/per_round_max_channel.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 1,728 | 2018-03-15T23:16:09.000Z | 2022-03-12T00:09:18.000Z | examples/how_to/per_round_max_channel.py | lbgbox/starfish | 0e879d995d5c49b6f5a842e201e3be04c91afc7e | [
"MIT"
] | 66 | 2018-03-25T17:21:15.000Z | 2022-01-16T09:17:11.000Z | """
.. _howto_perroundmaxchannel:
Decoding Spots with :py:class:`.PerRoundMaxChannel`
===================================================
:py:class:`.PerRoundMaxChannel` is a :py:class:`.DecodeSpotsAlgorithm` that picks the channel with
maximum signal intensity for each round to construct a barcode and then matches t... | 47.264706 | 102 | 0.784692 |
85a35bbea18ed77b4c16abc34395e75e650abec6 | 2,352 | py | Python | aitools/proofs/builtin_provers.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 1 | 2020-05-02T19:44:18.000Z | 2020-05-02T19:44:18.000Z | aitools/proofs/builtin_provers.py | OneManEquipe/aitools | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | 29 | 2019-08-07T17:49:03.000Z | 2021-08-31T10:25:00.000Z | aitools/proofs/builtin_provers.py | OneManEquipe/thinkerino | 4b9508156371643f31d1d26608e42e3aafcb0153 | [
"MIT"
] | null | null | null | import logging
from aitools.logic.core import Expression, Variable, LogicObject
from aitools.logic.language import Language
from aitools.logic.unification import Substitution
from aitools.logic.utils import VariableSource
from aitools.proofs.components import HandlerArgumentMode, HandlerSafety
from aitools.proofs.know... | 47.04 | 121 | 0.770408 |
85a3bf99bd89d29e75b56757da028653fc09b2e4 | 545 | py | Python | Python/sum_prime.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1,428 | 2018-10-03T15:15:17.000Z | 2019-03-31T18:38:36.000Z | Python/sum_prime.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 1,162 | 2018-10-03T15:05:49.000Z | 2018-10-18T14:17:52.000Z | Python/sum_prime.py | kennethsequeira/Hello-world | 464227bc7d9778a4a2a4044fe415a629003ea77f | [
"MIT"
] | 3,909 | 2018-10-03T15:07:19.000Z | 2019-03-31T18:39:08.000Z | '''
Write a function sumprimes(l) that takes as input a list of integers l and retuns the sum of all the prime numbers in l.
Here are some examples to show how your function should work.
>>> sumprimes([3,3,1,13])
19
'''
| 23.695652 | 120 | 0.614679 |
85a5679ea55a61eae86d19df12cb920b82adecd1 | 2,021 | py | Python | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | note37/attr_test2.py | icexmoon/python-learning-notes | 838c91d896404290b89992b6517be1b6a79df41f | [
"MIT"
] | null | null | null | import abc
from typing import ValuesView
order = Order(1.5, 5, 'banana')
print(order.total())
print(vars(order))
order2 = Order(2, 3, '')
print(order2.total())
# 7.5
# {'quantity': 1.5, 'price': 5, 'des': 'banana'}
# Traceback (most recent call last):
# File "D:\workspace\python\python-learning-notes\note37\te... | 27.684932 | 89 | 0.644236 |
85a5d3ff6e11da5e852964d1671d1216824383ee | 12,368 | py | Python | installer.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | installer.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | installer.py | erick-dsnk/Electric | 7e8aad1f792321d7839717ed97b641bee7a4a64e | [
"Apache-2.0"
] | null | null | null | ######################################################################
# OFFICIAL ELECTRIC INSTALLER #
######################################################################
import os
os.system('pip install tqdm')
os.system('pip install requests')
os.system('pip install click')
... | 45.470588 | 182 | 0.567594 |
85a6b862d73f772c24afda8b67a184c63955c0aa | 1,870 | py | Python | MSTs/PrimsLazy.py | ketansahils/Algorithms_One | 7322048975c8c76f1d00e11d7cf94f72a9312901 | [
"BSD-3-Clause"
] | null | null | null | MSTs/PrimsLazy.py | ketansahils/Algorithms_One | 7322048975c8c76f1d00e11d7cf94f72a9312901 | [
"BSD-3-Clause"
] | null | null | null | MSTs/PrimsLazy.py | ketansahils/Algorithms_One | 7322048975c8c76f1d00e11d7cf94f72a9312901 | [
"BSD-3-Clause"
] | null | null | null | import sys, os
sys.path.insert(0, os.path.abspath('..'))
from WeekX.Queue import Queue
from MinPQ import MinPQ
from WEdge import WEdge
from EdgeWeightedGraph import EdgeWeightedGraph
if __name__ == '__main__':
a = EdgeWeightedGraph(8)
a.addEdge(WEdge(4,5,0.35))
a.addEdge(WEdge(1,2,0.36))
a.addEdge(WEdge(4,7,0.37))... | 23.08642 | 57 | 0.634225 |
85a7c5e579004d898b7f8971a2360ec60e5e245e | 1,126 | py | Python | packages/model_options.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | 8 | 2020-06-28T07:50:29.000Z | 2022-01-05T16:29:48.000Z | packages/model_options.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | null | null | null | packages/model_options.py | jphuart/swatplus-automatic-workflow | dd2eeb7f882eb2d4ab7e1e5265c10b9beb93ddc4 | [
"MIT"
] | 5 | 2020-06-28T07:50:31.000Z | 2021-08-16T07:09:59.000Z | '''
date : 31/03/2020
description : this module keeps information on print
objects used by editor
author : Celray James CHAWANDA
contact : celray.chawanda@outlook.com
licence : MIT 2020
'''
print_obj_lookup = {
"basin_wb" : "1",
"basin_nb" : "2",
"basin_ls" : "3",
"ba... | 22.52 | 52 | 0.480462 |
85a7f1b8ed6f27c77dfe3dc092f8787a6ff12615 | 1,017 | py | Python | examples/cursor.py | Dextroz/virustotal-python | cc45e08b9709e02570d644fb21a5d723c57449bd | [
"MIT"
] | 15 | 2019-03-24T16:49:09.000Z | 2020-03-23T13:56:53.000Z | examples/cursor.py | Dextroz/virustotal-python | cc45e08b9709e02570d644fb21a5d723c57449bd | [
"MIT"
] | 11 | 2019-04-11T17:43:53.000Z | 2020-04-27T16:51:45.000Z | examples/cursor.py | Dextroz/virustotal-python | cc45e08b9709e02570d644fb21a5d723c57449bd | [
"MIT"
] | 2 | 2019-06-26T10:39:41.000Z | 2020-01-05T14:43:02.000Z | """
The examples in this file are for virustotal-python version >=0.1.0
Use a cursor from the VirusTotal API JSON response to retrieve more results.
Documentation:
* v3 documentation - https://developers.virustotal.com/reference/collections
"""
from virustotal_python import Virustotal
API_KEY = "<VirusTotal API... | 29.911765 | 84 | 0.712881 |
85a8eea592075db3dcccddbe695f43785edf8bf5 | 5,334 | py | Python | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | cryptongo.py | manu9812/MongoDB | d8cdb217e00f598747d0eee3780c7edff63f25c8 | [
"Apache-2.0"
] | null | null | null | import pymongo
import requests
from collections import OrderedDict
from hashlib import sha512
API_URL = 'https://api.coinmarketcap.com/v2/ticker/'
API_URL_START = 'https://api.coinmarketcap.com/v2/ticker/?start={}'
API_URL_LISTINGS = 'https://api.coinmarketcap.com/v2/listings/'
def get_db_connection(uri):
"""
... | 31.011628 | 114 | 0.701162 |
85aaad8086c1464084670e1d9d0d929b49958353 | 132 | py | Python | zutils/cf_conventions.py | iosonobert/zutils | 02fe9b2c1d1596bf98ee9db2134402517d4a3732 | [
"BSD-2-Clause"
] | null | null | null | zutils/cf_conventions.py | iosonobert/zutils | 02fe9b2c1d1596bf98ee9db2134402517d4a3732 | [
"BSD-2-Clause"
] | 1 | 2021-11-21T05:47:03.000Z | 2021-12-10T00:28:05.000Z | zutils/cf_conventions.py | iosonobert/zutils | 02fe9b2c1d1596bf98ee9db2134402517d4a3732 | [
"BSD-2-Clause"
] | null | null | null | ## KEPT FOR BACK COMPAT
from .pyMOS import *
for i in np.arange(0, 10):
print('cf_conventions deprecated, use pyMOS instead.') | 22 | 58 | 0.704545 |
85abf5d3c4bbf5b17d80e56ec1a5590c02dc5d95 | 1,027 | py | Python | danmaku_robot/settings.py | elfgzp/bili_danmaku_robot | ea2bcb3cdd2926fb54d70725f560e2e9cc14607f | [
"MIT"
] | 3 | 2019-02-04T06:32:03.000Z | 2020-05-15T12:53:04.000Z | danmaku_robot/settings.py | elfgzp/bili_danmaku_robot | ea2bcb3cdd2926fb54d70725f560e2e9cc14607f | [
"MIT"
] | 4 | 2019-02-04T06:31:52.000Z | 2021-06-10T20:59:19.000Z | danmaku_robot/settings.py | elfgzp/bili_danmaku_robot | ea2bcb3cdd2926fb54d70725f560e2e9cc14607f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'gzp'
from danmaku_robot.models import RobotSettings
| 25.675 | 85 | 0.575463 |
85ad2537b77832e8f08534f10f0ee59e66b60cb1 | 3,098 | py | Python | src/Python/Widgets/OrientationMarkerWidget1.py | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 81 | 2020-08-10T01:44:30.000Z | 2022-03-23T06:46:36.000Z | src/Python/Widgets/OrientationMarkerWidget1.py | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 2 | 2020-09-12T17:33:52.000Z | 2021-04-15T17:33:09.000Z | src/Python/Widgets/OrientationMarkerWidget1.py | ajpmaclean/vtk-examples | 1a55fc8c6af67a3c07791807c7d1ec0ab97607a2 | [
"Apache-2.0"
] | 27 | 2020-08-17T07:09:30.000Z | 2022-02-15T03:44:58.000Z | #!/usr/bin/env python
# noinspection PyUnresolvedReferences
import vtkmodules.vtkInteractionStyle
# noinspection PyUnresolvedReferences
import vtkmodules.vtkRenderingOpenGL2
from vtkmodules.vtkCommonColor import vtkNamedColors
from vtkmodules.vtkFiltersSources import vtkSuperquadricSource
from vtkmodules.vtkIOXML impo... | 30.372549 | 90 | 0.751775 |
85b0727bf78ced43482d2f2348ea8955c8ae7a71 | 274 | py | Python | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | set.py | mghelton/snmp_research | 5cca96e94506e3aa10df8d45c3db4649071eee22 | [
"MIT"
] | null | null | null | from pysnmp.hlapi import *
g = setCmd(SnmpEngine(),
CommunityData('public'),
UdpTransportTarget(('192.168.61.6', 161)),
ContextData(),
ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysName', 0),'test'))
gen = next(g)
print(gen[3])
| 30.444444 | 74 | 0.583942 |
85b0908187bc68078d724437fdeed592ef6335ce | 3,909 | py | Python | custom_components/ryobi_gdo3/cover.py | Madj42/ryobi_gdo2 | 44b52a09aeb2e98df80c4d6be9c19603fdd5a74f | [
"Apache-2.0"
] | 6 | 2020-10-12T21:03:17.000Z | 2022-03-18T03:48:21.000Z | custom_components/ryobi_gdo3/cover.py | Madj42/ryobi_gdo2 | 44b52a09aeb2e98df80c4d6be9c19603fdd5a74f | [
"Apache-2.0"
] | 6 | 2021-04-25T11:01:39.000Z | 2022-03-31T20:04:55.000Z | custom_components/ryobi_gdo3/cover.py | Madj42/ryobi_gdo2 | 44b52a09aeb2e98df80c4d6be9c19603fdd5a74f | [
"Apache-2.0"
] | 7 | 2020-10-24T21:18:29.000Z | 2022-02-25T04:42:27.000Z | """
Ryobi platform for the cover component.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/cover.ryobi_gdo/
"""
import logging
import time
import voluptuous as vol
from datetime import timedelta
import homeassistant.helpers.config_validation as cv
from hom... | 30.302326 | 77 | 0.653364 |
85b0e1fc58fb93fa89127aff65fd7e5a22d465df | 2,994 | py | Python | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | subs/data.py | Alimo1029/Alimo1029-s-Blog | 41d28f83f2a475669535108f2c7f78713193d86c | [
"MIT"
] | null | null | null | #
#
import pymysql
#
# db, cursor = _init()
# print(C_user.addUser(db, cursor, 'limo1029', '20041123'))
# print(C_user.searchUser(db, cursor, 'limo1029asd', '20041123', '1282160815@qq.com', 1))
# print(C_user.delUser(db, cursor, 'limo1029')) | 27.981308 | 90 | 0.454242 |