hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b4d30ba7b64ff02f650dd0c66ad4a347ee50d820
3,536
py
Python
hicprediction/scripts/createFakeMatrices.py
MasterprojectRK/HiCPrediction
9b7da97f09b037e0669948ec3ab14e1e78efc5e2
[ "MIT" ]
1
2020-08-24T08:24:04.000Z
2020-08-24T08:24:04.000Z
hicprediction/scripts/createFakeMatrices.py
MasterprojectRK/HiCPrediction
9b7da97f09b037e0669948ec3ab14e1e78efc5e2
[ "MIT" ]
null
null
null
hicprediction/scripts/createFakeMatrices.py
MasterprojectRK/HiCPrediction
9b7da97f09b037e0669948ec3ab14e1e78efc5e2
[ "MIT" ]
1
2020-09-04T11:59:08.000Z
2020-09-04T11:59:08.000Z
import os os.environ['NUMEXPR_MAX_THREADS'] = '16' os.environ['NUMEXPR_NUM_THREADS'] = '8' import cooler import pandas as pd import sys import click from scipy import sparse import numpy as np @click.option('--outfile','-o',type=click.Path(writable=True),help="name/path of cooler file to write", required=True) @click....
44.759494
149
0.693439
8128caa4d1f9ceb14ec53fd29d6bbd5bd6c5e4b0
314
py
Python
Sieve_of_Erastothenes/isunitha98selvan.py
baroood/Hacktoberfest-2k17
87383df4bf705358866a5a4120dd678a3f2acd3e
[ "MIT" ]
28
2017-10-04T19:42:26.000Z
2021-03-26T04:00:48.000Z
Sieve_of_Erastothenes/isunitha98selvan.py
baroood/Hacktoberfest-2k17
87383df4bf705358866a5a4120dd678a3f2acd3e
[ "MIT" ]
375
2017-09-28T02:58:37.000Z
2019-10-31T09:10:38.000Z
Sieve_of_Erastothenes/isunitha98selvan.py
baroood/Hacktoberfest-2k17
87383df4bf705358866a5a4120dd678a3f2acd3e
[ "MIT" ]
519
2017-09-28T02:40:29.000Z
2021-02-15T08:29:17.000Z
def primes(n): p=[True for i in range(n)] x=int(n**(1/2)) for i in range(2,x+1): if p[i] is True: j=i*i k=1 while j < n: p[j]=False j=i*i+k*i k=k+1 for i in range(2,n): if p[i] is True: print(i) def main(): n=int(input("Enter n ")); primes(n) if __name__=='__main__': main()
13.083333
27
0.525478
26e0147c60974d194801591d5ef3e2885fcdb753
622
py
Python
server/models/clusters.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
null
null
null
server/models/clusters.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
3
2020-12-31T08:03:30.000Z
2021-03-30T06:39:50.000Z
server/models/clusters.py
avielfedida/RoboAdvisor
ca8ba3c479f5fd3ae1e468f11f09ecf08e2a0cf9
[ "MIT" ]
1
2021-06-20T09:13:03.000Z
2021-06-20T09:13:03.000Z
from app.extensions import db from sqlalchemy.orm import relationship class Cluster(db.Model): # Define the table name __tablename__ = 'clusters' # Set columns for the table title = db.Column('title', db.String, primary_key=True) description = db.Column('description', db.String) image_path = ...
28.272727
59
0.651125
4acb9da15721d63b99dfb5475dc3b31e0d4be694
356
py
Python
eval_test.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
6
2020-01-15T02:53:40.000Z
2021-12-26T07:13:27.000Z
eval_test.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
2
2020-04-14T21:40:22.000Z
2021-02-20T05:48:37.000Z
eval_test.py
whitmell/pytalk
e5a95f1b406d4fb0580392cabe3279de26ffee84
[ "Apache-2.0" ]
3
2020-05-14T21:21:21.000Z
2022-01-28T03:57:14.000Z
from doctalk.talk import * def save_summary_and_keywords(document,summary_file,keyword_file) : T=Talker(from_file=document) T.save_summary(summary_file) T.save_keywords(keyword_file) def go() : ''' saves summary and keywords, one line each to files of your choice''' save_summary_and_keywords('examples/bfr.t...
32.363636
78
0.769663
5dca59a6a55dd609caef6c6c126d12d816dd4363
2,203
py
Python
topics_and_summary/tests/test_summarization_model.py
CarlosSanabriaM/topics_and_summary
a22179a90b75f8584c91ce1a6c38f286c2cb5b30
[ "MIT" ]
null
null
null
topics_and_summary/tests/test_summarization_model.py
CarlosSanabriaM/topics_and_summary
a22179a90b75f8584c91ce1a6c38f286c2cb5b30
[ "MIT" ]
null
null
null
topics_and_summary/tests/test_summarization_model.py
CarlosSanabriaM/topics_and_summary
a22179a90b75f8584c91ce1a6c38f286c2cb5b30
[ "MIT" ]
null
null
null
import unittest from topics_and_summary.models.summarization import TextRank from topics_and_summary.tests.paths import SAVED_OBJECTS_PATH from topics_and_summary.utils import load_obj_from_disk class TestSummarizationModel(unittest.TestCase): def test_get_k_best_sentences_of_text(self): text = """The b...
57.973684
117
0.746709
47deaef6e6a929a89e84f6ee221094c8630f485a
6,687
py
Python
test-python/test_schriftlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
test-python/test_schriftlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
test-python/test_schriftlich.py
jupfi81/NotenManager
ee96a41088bb898c025aed7b3c904741cb71d004
[ "MIT" ]
null
null
null
""" Teste die Module von my_stat.py""" import unittest import tempfile import csv import bewerte.schriftlich as schriftlich class Testschriftlich(unittest.TestCase): """ Teste die Funktionen schriftlich.mittelwert """ def test_init(self): """ Teste die __init__(self) Funktion. """ test = sch...
41.534161
88
0.546134
d044e68917fcdc447d77db750a53ea8c01a725c0
223
py
Python
mephisto/abstractions/providers/mock/provider_type.py
anchit/Mephisto
e9ae83ce310e1b5a8a90557dc94736d1e297a2a3
[ "MIT" ]
167
2020-06-15T21:25:19.000Z
2022-03-31T20:58:19.000Z
mephisto/abstractions/providers/mock/provider_type.py
anchit/Mephisto
e9ae83ce310e1b5a8a90557dc94736d1e297a2a3
[ "MIT" ]
364
2020-06-22T17:02:18.000Z
2022-03-31T23:40:35.000Z
mephisto/abstractions/providers/mock/provider_type.py
anchit/Mephisto
e9ae83ce310e1b5a8a90557dc94736d1e297a2a3
[ "MIT" ]
47
2020-07-26T18:03:21.000Z
2022-03-31T07:46:45.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. PROVIDER_TYPE = "mock"
27.875
65
0.748879
602eb6e311e93d6e2694b544cf02b751ff8902a1
1,263
py
Python
WebBrickLibs/brisa/core/system.py
AndyThirtover/wb_gateway
69f9c870369085f4440033201e2fb263a463a523
[ "BSD-3-Clause" ]
null
null
null
WebBrickLibs/brisa/core/system.py
AndyThirtover/wb_gateway
69f9c870369085f4440033201e2fb263a463a523
[ "BSD-3-Clause" ]
null
null
null
WebBrickLibs/brisa/core/system.py
AndyThirtover/wb_gateway
69f9c870369085f4440033201e2fb263a463a523
[ "BSD-3-Clause" ]
null
null
null
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php or see LICENSE file. # Copyright 2007-2008 Brisa Team <brisa-develop@garage.maemo.org> # Copyright 2007 daemonize function at # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012 """ Daemonize tool. """ import os import sy...
27.456522
73
0.608076
03c812989482650c0725cdaac32313550fc61905
529
py
Python
mainssensor/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
mainssensor/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
mainssensor/urls.py
rickvanderzwet/makerspaceleiden-crm
a36d5073d4c49bbf46580ca9bbda5d80593d2d84
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render from django.urls import path from . import views urlpatterns = [ path('api/v1/mainssensor/resolve/<int:tag>', views.resolve, name='resolve'), path('api/v1/mainssensor/resolve', views.resolve, name='resolve'), path('mainsensors', views.index, name='mainsindex'), pa...
33.0625
80
0.706994
d545b2148eb60491df37cbec95b4b37c5ac4c3d0
49,184
py
Python
tests/test_wsdl.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
3
2017-04-01T16:05:52.000Z
2019-07-26T14:32:26.000Z
tests/test_wsdl.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
null
null
null
tests/test_wsdl.py
yvdlima/python-zeep
aae3def4385b0f8922e0e83b9cdcd68b2263f739
[ "MIT" ]
2
2020-11-18T09:49:46.000Z
2021-07-08T14:02:03.000Z
import io import pytest import requests_mock from defusedxml import DTDForbidden, EntitiesForbidden from lxml import etree from pretend import stub from six import StringIO from tests.utils import DummyTransport, assert_nodes_equal from zeep import Client, Settings, wsdl from zeep.transports import Transport @pytes...
37.37386
144
0.566099
5ab464c99e542f76dfcff71b151392a33ad9dac6
1,471
py
Python
qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/jupyterhub/files/02-spawner.py
ericdatakelly/qhub
3275843543e1388e0d4b45c9bc542f5de10a716f
[ "BSD-3-Clause" ]
null
null
null
qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/jupyterhub/files/02-spawner.py
ericdatakelly/qhub
3275843543e1388e0d4b45c9bc542f5de10a716f
[ "BSD-3-Clause" ]
null
null
null
qhub/template/stages/07-kubernetes-services/modules/kubernetes/services/jupyterhub/files/02-spawner.py
ericdatakelly/qhub
3275843543e1388e0d4b45c9bc542f5de10a716f
[ "BSD-3-Clause" ]
null
null
null
# remove after next kubespawner release past 1/20/2022 # https://github.com/jupyterhub/kubespawner/pull/558 import kubernetes.client.models kubernetes.client.models.V1EndpointPort = kubernetes.client.models.CoreV1EndpointPort from kubespawner import KubeSpawner import z2jh cdsdashboards = z2jh.get_config("custom.cds...
36.775
85
0.783141
7a97b1787d87b315fafff63c1f24fba81f4f64ca
2,001
py
Python
migrations/versions/73e5bda5115e_votes_migration.py
ndanu-josy/Pitches
bfa9b2b7acc186b4f3e9ced8495bbc5a1381681b
[ "MIT" ]
null
null
null
migrations/versions/73e5bda5115e_votes_migration.py
ndanu-josy/Pitches
bfa9b2b7acc186b4f3e9ced8495bbc5a1381681b
[ "MIT" ]
null
null
null
migrations/versions/73e5bda5115e_votes_migration.py
ndanu-josy/Pitches
bfa9b2b7acc186b4f3e9ced8495bbc5a1381681b
[ "MIT" ]
null
null
null
"""Votes Migration Revision ID: 73e5bda5115e Revises: 162cc5d1ce75 Create Date: 2021-06-13 21:20:16.494703 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '73e5bda5115e' down_revision = '162cc5d1ce75' branch_labels = None depends_on = None def upgrade(): ...
35.105263
90
0.673163
afb70112fbbaa57e85c262c52bf3484abbb6c18b
1,435
py
Python
iconlist.py
GhostBSD/software-station
d58ff3f4ede76e82f48ac3848843dabdc21569bd
[ "BSD-3-Clause" ]
1
2017-03-17T14:31:58.000Z
2017-03-17T14:31:58.000Z
iconlist.py
GhostBSD/software-station
d58ff3f4ede76e82f48ac3848843dabdc21569bd
[ "BSD-3-Clause" ]
null
null
null
iconlist.py
GhostBSD/software-station
d58ff3f4ede76e82f48ac3848843dabdc21569bd
[ "BSD-3-Clause" ]
1
2018-04-13T14:26:14.000Z
2018-04-13T14:26:14.000Z
#!/usr/local/bin/python3 from gi.repository import Gtk from gi.repository.GdkPixbuf import Pixbuf import glob import os found = glob.glob('/usr/local/share/icons/mate/24x24/*/*png') icons = [] for f in found: base = os.path.basename(f) icons.append(os.path.splitext(base)[0]) class IconViewWindow(Gtk.Windo...
26.090909
123
0.61115
a6f3b12c1e92881358e42104f89bb3a803f8eaec
6,337
py
Python
sdk/python/pulumi_azure_native/providerhub/skus_nested_resource_type_second.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/providerhub/skus_nested_resource_type_second.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/providerhub/skus_nested_resource_type_second.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ...
47.646617
475
0.669244
b5c5215ccdfe9acd1b53da40b3c1614e7ed5e134
7,884
py
Python
aiida_vasp/parsers/content_parsers/kpoints.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
3
2016-11-18T07:19:57.000Z
2016-11-28T08:28:38.000Z
aiida_vasp/parsers/content_parsers/kpoints.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
aiida_vasp/parsers/content_parsers/kpoints.py
DropD/aiida_vasp
9967f5501a6fc1c67981154068135cec7be5396a
[ "MIT" ]
null
null
null
""" The ``KPOINTS`` parser interface. ----------------------------- Contains the parsing interfaces to parsevasp used to parse ``KPOINTS`` content. """ import numpy as np from parsevasp.kpoints import Kpoints, Kpoint from aiida_vasp.parsers.content_parsers.base import BaseFileParser from aiida_vasp.utils.aiida_utils ...
32.85
129
0.60515
f14391a3174539add5c20bc71d0a46dcd7909e0a
1,200
py
Python
py/hash/hash_files.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
2
2019-09-22T05:33:37.000Z
2019-09-22T06:36:24.000Z
py/hash/hash_files.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
1
2019-10-22T21:07:17.000Z
2019-10-22T21:07:17.000Z
py/hash/hash_files.py
isfaaghyth/buck
cad8f7ac2de2c9a4f08ce66180db677e44d61aee
[ "Apache-2.0" ]
1
2019-10-22T20:43:48.000Z
2019-10-22T20:43:48.000Z
#!/usr/bin/env python # Copyright 2016-present Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28.571429
77
0.670833
18cf39bc2af67b8a4e3625932059944ad1c91085
186
py
Python
tests/test_net.py
jgornet/NeuroTorch
86e32934821f3b7fea9155b83493a2dffcf45442
[ "BSD-3-Clause" ]
2
2019-04-01T18:45:44.000Z
2020-09-03T20:25:44.000Z
tests/test_net.py
jgornet/NeuroTorch
86e32934821f3b7fea9155b83493a2dffcf45442
[ "BSD-3-Clause" ]
null
null
null
tests/test_net.py
jgornet/NeuroTorch
86e32934821f3b7fea9155b83493a2dffcf45442
[ "BSD-3-Clause" ]
3
2018-10-31T20:02:35.000Z
2019-02-19T20:45:34.000Z
import unittest from neurotorch.nets.netcollector import NetCollector class TestNet(unittest.TestCase): def test_load_net(self): test = NetCollector().get_module("RSUNet")
23.25
53
0.763441
11eff26125ec743c419eb8613333185728fc5723
1,309
py
Python
quickpay_api_client/tests/client_tests.py
mstendorf/quickpay-python-client
22350742859ba534662283d0251100a51d726db0
[ "MIT" ]
7
2015-06-27T12:17:13.000Z
2020-07-07T19:40:31.000Z
quickpay_api_client/tests/client_tests.py
mstendorf/quickpay-python-client
22350742859ba534662283d0251100a51d726db0
[ "MIT" ]
13
2015-06-28T07:11:34.000Z
2022-02-15T12:18:06.000Z
quickpay_api_client/tests/client_tests.py
mstendorf/quickpay-python-client
22350742859ba534662283d0251100a51d726db0
[ "MIT" ]
10
2015-06-27T11:46:06.000Z
2020-01-03T21:07:02.000Z
from nose.tools import assert_equal, assert_raises from quickpay_api_client.api import QPApi from quickpay_api_client import QPClient from mock import MagicMock class TestQPClient(object): def setup(self): self.client = QPClient('foobar') self.api = self.client.api self.api.perform = MagicM...
32.725
76
0.687548
9e7789d90fb54d3c36299506b66e694a84f1bb4d
5,080
py
Python
groups/managers.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
1
2017-09-29T23:58:02.000Z
2017-09-29T23:58:02.000Z
groups/managers.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
51
2015-03-30T08:58:15.000Z
2022-01-13T00:40:17.000Z
groups/managers.py
incuna/incuna-groups
148c181faf66fe73792cb2c5bbf5500ba61aa22d
[ "BSD-2-Clause" ]
null
null
null
import datetime from django.apps import apps from django.contrib.auth import get_user_model from django.db import models from polymorphic.managers import PolymorphicManager, PolymorphicQuerySet DEFAULT_WITHIN_DAYS = apps.get_app_config('groups').default_within_days class WithinDaysQuerySetMixin: """ A mixi...
37.080292
89
0.707677
d822434ccc46753735af8091255db568031245c8
6,482
py
Python
library/nsxt_virtual_ip.py
dmnt3d/ansible-for-nsxt
4055e8d6fc7a530078406d6a8c0f9a759b49f3a3
[ "BSD-2-Clause" ]
4
2020-12-22T18:39:33.000Z
2021-08-05T00:35:57.000Z
library/nsxt_virtual_ip.py
dmnt3d/ansible-for-nsxt
4055e8d6fc7a530078406d6a8c0f9a759b49f3a3
[ "BSD-2-Clause" ]
null
null
null
library/nsxt_virtual_ip.py
dmnt3d/ansible-for-nsxt
4055e8d6fc7a530078406d6a8c0f9a759b49f3a3
[ "BSD-2-Clause" ]
1
2021-05-21T15:14:12.000Z
2021-05-21T15:14:12.000Z
#!/usr/bin/env python # # Copyright 2019 VMware, Inc. # SPDX-License-Identifier: BSD-2-Clause OR GPL-3.0-only # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ...
42.927152
177
0.705184
d43a63ba9adc382ce5ece92d9ee17cc52b749177
5,665
py
Python
sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
1
2020-02-26T13:19:06.000Z
2020-02-26T13:19:06.000Z
sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
sdk/AsposeEmailCloudSdk/models/enum_with_custom_of_instant_messenger_category.py
aspose-email-cloud/aspose-email-cloud-python
c5c13839cbbbfa5b6617bd1aedf3cf30cd664227
[ "MIT" ]
null
null
null
# coding: utf-8 # ---------------------------------------------------------------------------- # <copyright company="Aspose" file="EnumWithCustomOfInstantMessengerCategory.py"> # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved. # </copyright> # <summary> # Permission is hereby granted, free of ch...
35.628931
177
0.608297
7415a483a982a505e7a12a6f79d3763f684c827e
5,227
py
Python
src/lib/snowboydetect.py
georgsp/mdmTerminal2
50255ff72ec35d6a7d567f0c15d02d82a0476670
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib/snowboydetect.py
georgsp/mdmTerminal2
50255ff72ec35d6a7d567f0c15d02d82a0476670
[ "Apache-2.0", "MIT" ]
null
null
null
src/lib/snowboydetect.py
georgsp/mdmTerminal2
50255ff72ec35d6a7d567f0c15d02d82a0476670
[ "Apache-2.0", "MIT" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.10 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. import builtins as __builtin__ import os _snowboydetect = None SnowboyDetect_swigregister = None def _load_module...
31.299401
118
0.689879
4c5a55e387e907e21f07bc91217b0e091527f12f
24
py
Python
pyble/const/profile/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
14
2015-03-30T23:11:36.000Z
2020-04-07T00:57:12.000Z
pyble/const/profile/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
3
2016-05-17T06:11:07.000Z
2017-05-15T16:43:09.000Z
pyble/const/profile/scan_parameters.py
bgromov/PyBLEWrapper
8a5d016e65b3c259391ddc97c371ab4b1b5c61b5
[ "MIT" ]
11
2016-03-11T08:53:03.000Z
2019-03-11T21:32:13.000Z
NAME="Scan Parameters"
8
22
0.75
922dc361327034d451c88491a5dbb66aecfcdf0c
3,401
py
Python
nova/tests/test_configdrive2.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
nova/tests/test_configdrive2.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
nova/tests/test_configdrive2.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Michael Still and Canonical Inc # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http:...
33.343137
78
0.593061
db5322908eb6d1e3ff50b056f30820c74204d9ab
1,648
py
Python
code/rsa.py
brianshen0522/Crypto
cb422350c650308cbdcfb56e68aac61c46cb06bd
[ "MIT" ]
null
null
null
code/rsa.py
brianshen0522/Crypto
cb422350c650308cbdcfb56e68aac61c46cb06bd
[ "MIT" ]
null
null
null
code/rsa.py
brianshen0522/Crypto
cb422350c650308cbdcfb56e68aac61c46cb06bd
[ "MIT" ]
null
null
null
from Crypto import Random from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 as Signature_pkcs1_v1_5 from Crypto.Hash import SHA import base64 import os import json def create (): random_generator = Random.new().read print("creating key pair") rsa = RSA.generate(1024, random_generator...
34.333333
164
0.648665
abd5ca5f4648b0af4fe5304f01fa4b6ad1533ef4
380
py
Python
visualise.py
shreshthtuli/k-Means-clustering-parallel
7651323dc952a42b0f7af2efce38af0926317a91
[ "MIT" ]
1
2020-05-07T15:25:28.000Z
2020-05-07T15:25:28.000Z
visualise.py
shreshthtuli/k-Means-clustering-parallel
7651323dc952a42b0f7af2efce38af0926317a91
[ "MIT" ]
null
null
null
visualise.py
shreshthtuli/k-Means-clustering-parallel
7651323dc952a42b0f7af2efce38af0926317a91
[ "MIT" ]
null
null
null
from csv import reader from sys import argv import numpy as np; from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt infile=reader(open(argv[1]),delimiter=" "); data=np.array([[int(a) for a in b] for b in infile]) fig = plt.figure() ax = fig.add_subplot(1, 1, 1) ax = fig.gca(projection='3d') ax.sca...
23.75
53
0.697368
acfa38e03ba39040d001f9c6171a12f63220143e
3,236
py
Python
profiles_project/settings.py
rpothamLearner/profiles-rest-api
f0b6dca464ea64fe2db633bca575627d3280194d
[ "MIT" ]
null
null
null
profiles_project/settings.py
rpothamLearner/profiles-rest-api
f0b6dca464ea64fe2db633bca575627d3280194d
[ "MIT" ]
null
null
null
profiles_project/settings.py
rpothamLearner/profiles-rest-api
f0b6dca464ea64fe2db633bca575627d3280194d
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.480315
91
0.69932
7c3d13fdbb24d9dc259b49b967b522e23741a798
9,247
py
Python
network/efficientnet.py
pandamax/carrier-of-tricks-for-classification-pytorch
4c29088b113aea4b6308fb9935243276233f3763
[ "MIT" ]
84
2020-06-24T16:01:22.000Z
2022-02-24T05:17:51.000Z
network/efficientnet.py
hoya012/bag-of-tricks-for-classification-pytorch
d788d7a4e5007da9c410bdd3ef7ce3766d2ba0cd
[ "MIT" ]
1
2021-05-31T07:33:37.000Z
2021-05-31T07:33:37.000Z
network/efficientnet.py
hoya012/bag-of-tricks-for-classification-pytorch
d788d7a4e5007da9c410bdd3ef7ce3766d2ba0cd
[ "MIT" ]
15
2020-07-09T15:49:33.000Z
2021-10-21T11:01:07.000Z
import torch import torch.nn as nn import math import os def init_weights(m): """Performs ResNet-style weight initialization.""" if isinstance(m, nn.Conv2d): # Note that there is no bias due to BN fan_out = m.kernel_size[0] * m.kernel_size[1] * m.out_channels m.weight.data.normal_(mean=...
31.99654
110
0.562561
61562b65ac8a329f929cf906082d8b3281a3b9cc
1,184
py
Python
grib_api/examples/python/grib_print_data.py
dovlan/GribApi.XP
3ef3e1cc629a5398237830c562fa729416fa9673
[ "Apache-2.0" ]
1
2018-12-13T18:34:46.000Z
2018-12-13T18:34:46.000Z
grib_api/examples/python/grib_print_data.py
dovlan/GribApi.XP
3ef3e1cc629a5398237830c562fa729416fa9673
[ "Apache-2.0" ]
1
2018-01-12T10:55:41.000Z
2018-12-29T23:53:01.000Z
grib_api/examples/python/grib_print_data.py
dovlan/GribApi.XP
3ef3e1cc629a5398237830c562fa729416fa9673
[ "Apache-2.0" ]
3
2018-02-27T05:30:19.000Z
2019-10-30T11:15:47.000Z
# # Copyright 2005-2017 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovern...
23.215686
78
0.646115
bc772ba90fcaacb91a41a841d7db8a286f531b50
630
py
Python
util/PotzDB.py
Potzerus/Dorothy
9971c342339e9eb61e5fbf4aa11ae1530555004f
[ "MIT" ]
null
null
null
util/PotzDB.py
Potzerus/Dorothy
9971c342339e9eb61e5fbf4aa11ae1530555004f
[ "MIT" ]
null
null
null
util/PotzDB.py
Potzerus/Dorothy
9971c342339e9eb61e5fbf4aa11ae1530555004f
[ "MIT" ]
null
null
null
import csv def get(file, header: str, value) -> list: with file as file: reader = csv.reader(file.read().split("\n")) headers = reader.__next__() for i, _header in enumerate(headers): if header == _header: header = i break results = [] ...
28.636364
97
0.534921
db7525df038e8d08da8491d41b2a4a89fce9feb9
2,728
py
Python
auditlog/mixins.py
lsaavedr/django-auditlog
5220656c462d3e4e9228a6982444cbfde0391559
[ "MIT" ]
null
null
null
auditlog/mixins.py
lsaavedr/django-auditlog
5220656c462d3e4e9228a6982444cbfde0391559
[ "MIT" ]
null
null
null
auditlog/mixins.py
lsaavedr/django-auditlog
5220656c462d3e4e9228a6982444cbfde0391559
[ "MIT" ]
null
null
null
import json from django import urls as urlresolvers from django.conf import settings from django.urls.exceptions import NoReverseMatch from django.utils.html import format_html from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from auditlog.models import LogEntry MA...
32.86747
80
0.56195
fa4ed14dfc1137ce31afc81fcea28c994fcb8981
4,762
py
Python
notebooks/dataset.py
dimitrios-ebi/gene_symbol_classifier
fe415f719fda4619041b9fe0639996c92e0f12a8
[ "Apache-2.0" ]
null
null
null
notebooks/dataset.py
dimitrios-ebi/gene_symbol_classifier
fe415f719fda4619041b9fe0639996c92e0f12a8
[ "Apache-2.0" ]
null
null
null
notebooks/dataset.py
dimitrios-ebi/gene_symbol_classifier
fe415f719fda4619041b9fe0639996c92e0f12a8
[ "Apache-2.0" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.12.0 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # %% imp...
14.047198
90
0.647417
1faff2e8481185d777bc64ab9b76cdd9d16872d1
5,104
py
Python
tbl_to_sed_CSI_2264_2014.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
tbl_to_sed_CSI_2264_2014.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
10
2018-03-14T08:44:12.000Z
2018-11-13T13:45:53.000Z
tbl_to_sed_CSI_2264_2014.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Abstract: This is a program for convert the SED data of source in CSI 2264 2014 region in IPAC Infrared Science Archive (IRSA) to AI model readable format. Usage: tbl_to_sed_CSI_2264_2014.py [CSI_2264 2014 table] Output: 1. The SED of sources in JHK, IRAC, and MIPS 2. ...
43.254237
95
0.524295
2d239359e0c7f1edcdce17dfd01d9be3402158f1
2,050
py
Python
app/query_Twitter.py
zhangyuchen584/careerfair_demo
73362c733532935bf14640d55f17862cc54c2075
[ "MIT" ]
null
null
null
app/query_Twitter.py
zhangyuchen584/careerfair_demo
73362c733532935bf14640d55f17862cc54c2075
[ "MIT" ]
null
null
null
app/query_Twitter.py
zhangyuchen584/careerfair_demo
73362c733532935bf14640d55f17862cc54c2075
[ "MIT" ]
null
null
null
from BaseHTTPServer import BaseHTTPRequestHandler import urlparse, json import logging import cgi ## import argparse import requests import json #import visdom import numpy as np logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) class GetHandler(BaseHTTPReque...
32.03125
92
0.618049
f5ea470beacbb04bb39321edc1396d687a5fa71d
4,523
py
Python
src/daipedemo/gold/feature_store/features/dynamic_run_date.py
daipe-ai/daipe-demo-databricks
74f563de6a6281914d789c18713f4f9f5fdb2f7a
[ "MIT" ]
1
2021-03-31T11:29:56.000Z
2021-03-31T11:29:56.000Z
src/daipedemo/gold/feature_store/features/dynamic_run_date.py
daipe-ai/daipe-demo-databricks
74f563de6a6281914d789c18713f4f9f5fdb2f7a
[ "MIT" ]
1
2022-01-11T08:10:24.000Z
2022-01-11T08:10:24.000Z
src/daipedemo/gold/feature_store/features/dynamic_run_date.py
daipe-ai/daipe-demo-databricks
74f563de6a6281914d789c18713f4f9f5fdb2f7a
[ "MIT" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Creating features with dynamic `run_date` # MAGIC # MAGIC Return to <a href="$../../../_index">index page</a> # MAGIC # MAGIC In this notebook we explore how to write features which work with both `static` a `dynamic` `run_date` columns. # COMMAND ---------- # MAGI...
29.37013
123
0.684059
1c421365662f9c384e027d6403a99b7bfe2c0777
152
py
Python
slnee_quality/slnee_quality/doctype/request/test_request.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/request/test_request.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
slnee_quality/slnee_quality/doctype/request/test_request.py
erpcloudsystems/slnee_quality
ad81f029a795ee073768c7c933cd91e61b6df059
[ "MIT" ]
null
null
null
# Copyright (c) 2021, erpcloud.systems and Contributors # See license.txt # import frappe import unittest class TestRequest(unittest.TestCase): pass
16.888889
55
0.782895
0e784b2907bf322ee85f08e09839afac9dc1579d
5,546
py
Python
src/models/changepoint/changepoint_tuning.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
1
2022-01-27T07:03:20.000Z
2022-01-27T07:03:20.000Z
src/models/changepoint/changepoint_tuning.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
null
null
null
src/models/changepoint/changepoint_tuning.py
RiceD2KLab/TCH_CardiacSignals_F20
ea6e84703086ddb7bfc5ba164aa67acdc9e78b7d
[ "BSD-2-Clause" ]
null
null
null
""" Contains functions to aid in hyperparameter tuning for the changepoint algorithm The main function is roc_curve, which generates an ROC curve based on the output fo the changepoint algorithm """ from src.models.changepoint.cusum import * import matplotlib.pyplot as plt from sklearn import metrics import numpy as np...
36.728477
133
0.687883
09077c3f5b61b63d8128bcbf26601247d1a8fbc6
999
py
Python
tests/strategyease_sdk/uqer/test_transaction.py
skylovead/StrategyEase-Python-SDK
d3c0d0f4a99c24ab9cc842e59891822e80606a2c
[ "MIT" ]
574
2016-11-20T11:57:31.000Z
2019-05-07T02:51:48.000Z
tests/strategyease_sdk/uqer/test_transaction.py
xusl/StrategyEase-Python-SDK
b52fa1ce6f6f60e65f3523ed824ebdd8b871a4e0
[ "MIT" ]
10
2017-01-01T06:59:28.000Z
2018-11-09T08:07:37.000Z
tests/strategyease_sdk/uqer/test_transaction.py
xusl/StrategyEase-Python-SDK
b52fa1ce6f6f60e65f3523ed824ebdd8b871a4e0
[ "MIT" ]
249
2016-11-20T13:30:48.000Z
2019-05-11T04:43:21.000Z
# -*- coding: utf-8 -*- import json import os import unittest from datetime import datetime from strategyease_sdk.uqer.transaction import UqerTransaction class TransactionTest(unittest.TestCase): def setUp(self): dir_path = os.path.dirname(os.path.realpath(__file__)) with open('{}/../../sample_da...
38.423077
97
0.673674
dfd05f40f2f8f74bc6bdeaa77f472143170cfe5d
171
py
Python
boa3_test/test_sc/contract_interface_test/ContractInterfaceTooManyArguments.py
CityOfZion/neo3-boa
c31fadce597abd5e0bdea76985e35c7004ab9d39
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/contract_interface_test/ContractInterfaceTooManyArguments.py
CityOfZion/neo3-boa
c31fadce597abd5e0bdea76985e35c7004ab9d39
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/contract_interface_test/ContractInterfaceTooManyArguments.py
CityOfZion/neo3-boa
c31fadce597abd5e0bdea76985e35c7004ab9d39
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from boa3.builtin import contract @contract('0x0102030405060708090A0B0C0D0E0F1011121314', '123') class ContractInterface: @staticmethod def foo(): pass
17.1
62
0.736842
3d199c830a2033e85458f96ddd06fe0e5118b47b
3,311
py
Python
models/FastText.py
shark803/Text-Classification-Pytorch
c44e8fd770b05f32bb0650e550bd1294041744d8
[ "MIT" ]
1
2020-03-09T16:27:22.000Z
2020-03-09T16:27:22.000Z
models/FastText.py
shark803/Text-Classification-Pytorch
c44e8fd770b05f32bb0650e550bd1294041744d8
[ "MIT" ]
null
null
null
models/FastText.py
shark803/Text-Classification-Pytorch
c44e8fd770b05f32bb0650e550bd1294041744d8
[ "MIT" ]
null
null
null
# coding: UTF-8 import torch import torch.nn as nn import torch.nn.functional as F import numpy as np class Config(object): """配置参数""" def __init__(self, dataset, embedding): self.model_name = 'FastText' self.train_path = dataset + '/rawData/train.txt' # 训练集 ...
47.985507
103
0.518272
c95972967bb9014ed42a2575a1695e618b070774
876
py
Python
submarine-sdk/pysubmarine/submarine/job/__init__.py
danielthank/submarine
0bf5b71163fa366b1f91e7d9c5b6e4ce02b827b1
[ "Apache-2.0" ]
1
2020-05-10T09:31:00.000Z
2020-05-10T09:31:00.000Z
submarine-sdk/pysubmarine/submarine/job/__init__.py
danielthank/submarine
0bf5b71163fa366b1f91e7d9c5b6e4ce02b827b1
[ "Apache-2.0" ]
null
null
null
submarine-sdk/pysubmarine/submarine/job/__init__.py
danielthank/submarine
0bf5b71163fa366b1f91e7d9c5b6e4ce02b827b1
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use t...
46.105263
74
0.789954
3d0b830703d1f452b7c7d8eb869bf31c08cf95eb
10,705
py
Python
prepare_run.py
PennBBL/qsiprep_fw
3f04f81faf2d8b0d37d518ffcdc5657f06e6c142
[ "BSD-3-Clause" ]
null
null
null
prepare_run.py
PennBBL/qsiprep_fw
3f04f81faf2d8b0d37d518ffcdc5657f06e6c142
[ "BSD-3-Clause" ]
2
2019-06-05T19:29:24.000Z
2019-11-07T18:10:04.000Z
prepare_run.py
PennBBL/qsiprep_fw
3f04f81faf2d8b0d37d518ffcdc5657f06e6c142
[ "BSD-3-Clause" ]
1
2019-11-07T16:51:57.000Z
2019-11-07T16:51:57.000Z
#!/usr/local/miniconda/bin/python import sys import logging from zipfile import ZipFile from pathlib import PosixPath from fw_heudiconv.cli import export import flywheel # logging stuff logging.basicConfig(level=logging.INFO) logger = logging.getLogger('qsiprep-gear') logger.info("=======: QSIPrep :=======") # Gathe...
40.549242
90
0.64269
1d2a5b011e0bc209c335f389be506cc4b0630c92
1,023
py
Python
Chapter12/Activity12.01/development.py
iamrochit/The-Artificial-Intelligence-Infrastructure-Workshop
c161d515936e8b104dddead7cafa1dbe2693c13c
[ "MIT" ]
18
2020-04-06T19:19:06.000Z
2022-02-07T09:31:00.000Z
Chapter12/Activity12.01/development.py
iamrochit/The-Artificial-Intelligence-Infrastructure-Workshop
c161d515936e8b104dddead7cafa1dbe2693c13c
[ "MIT" ]
10
2021-12-10T01:48:46.000Z
2022-01-04T16:47:18.000Z
Chapter12/Activity12.01/development.py
iamrochit/The-Artificial-Intelligence-Infrastructure-Workshop
c161d515936e8b104dddead7cafa1dbe2693c13c
[ "MIT" ]
22
2020-03-03T17:48:40.000Z
2022-02-14T18:07:04.000Z
import pickle import pandas as pd # load the datasets train = pd.read_csv('../../Datasets/Titanic/train.csv') test = pd.read_csv('../../Datasets/Titanic/test.csv') # prepare the dataset train.Sex = train.Sex.map({'male': 0, 'female': 1}) y = train.Pclass.copy() # use the values in the Pclass column as output target...
30.088235
107
0.705767
1439766d4eecee6d0a170e0f4ec51037eb43fd1d
1,844
py
Python
rastervision_core/rastervision/core/data/label_store/chip_classification_geojson_store.py
theoway/raster-vision
dab675517f904771e2ce8c052494f8a6f1ddc026
[ "Apache-2.0" ]
1,577
2017-05-22T14:22:00.000Z
2022-03-31T02:03:25.000Z
rastervision_core/rastervision/core/data/label_store/chip_classification_geojson_store.py
theoway/raster-vision
dab675517f904771e2ce8c052494f8a6f1ddc026
[ "Apache-2.0" ]
933
2017-05-09T20:25:02.000Z
2022-03-31T10:22:59.000Z
rastervision_core/rastervision/core/data/label_store/chip_classification_geojson_store.py
monocilindro/raster-vision
fc181a6f31f085affa1ee12f0204bdbc5a6bf85a
[ "Apache-2.0" ]
336
2017-05-15T16:30:44.000Z
2022-03-28T06:19:33.000Z
from rastervision.pipeline.file_system import json_to_file from rastervision.core.data.label import ChipClassificationLabels from rastervision.core.data.label_store import LabelStore from rastervision.core.data.label_store.utils import boxes_to_geojson from rastervision.core.data.label_source import ( ChipClassific...
36.156863
79
0.689805
b6e1855c9830808490a506a4ba96b600ad0874d6
694
py
Python
Latte/ex15.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
1
2021-10-15T05:43:19.000Z
2021-10-15T05:43:19.000Z
Latte/ex15.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
null
null
null
Latte/ex15.py
Latte-inc/Learn-Python3.6
f3568cf2f8413f8730c2297bc39ae890bb82d962
[ "CC0-1.0" ]
1
2022-01-13T10:34:55.000Z
2022-01-13T10:34:55.000Z
# 这个练习是比较重要的,在这里我们将学到新的方法 读取文件 # 知识点涉及 函数 read(读取) open(打开) # 时间 2020/05/19 17:31 # 一厢情愿,有始无终 from sys import argv # 通俗点就是将 sys 软件包中的 模块(module)引入脚本 script, filename = argv # 将参数赋予变量值 txt = open(filename,encoding='utf-8') # 这里使用了函数 open(name,encoding='..')来打开文件 # 此处是个很重要的知识点 当编译器报错提示 Unicode ERROR XXXX.....
24.785714
53
0.68732
a74cf6c8ef5d8ff9a253a0bf2d68cbdd20f7e4ea
2,254
py
Python
source/conf.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "MIT" ]
1
2021-01-08T18:22:13.000Z
2021-01-08T18:22:13.000Z
source/conf.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "MIT" ]
null
null
null
source/conf.py
nimalec/Magno
016bed1c2fb8275ac76ece3d0b7f39c4ebc45551
[ "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 -------------------------------------------------------------- # If ex...
35.777778
86
0.679681
7e0063a58aa843bce379f8a832739bc95bb8b474
9,251
py
Python
tests/archived/_test_simulator.py
mochazi/viztracer
33c59d0f7820c6dc5834deb71d0c823e8c37e4f0
[ "Apache-2.0" ]
20
2020-08-06T02:52:18.000Z
2020-08-12T02:21:02.000Z
tests/archived/_test_simulator.py
mochazi/viztracer
33c59d0f7820c6dc5834deb71d0c823e8c37e4f0
[ "Apache-2.0" ]
1
2020-08-07T02:41:16.000Z
2020-08-10T11:03:11.000Z
tests/archived/_test_simulator.py
mochazi/viztracer
33c59d0f7820c6dc5834deb71d0c823e8c37e4f0
[ "Apache-2.0" ]
2
2020-08-06T23:38:33.000Z
2020-08-09T08:21:42.000Z
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/gaogaotiantian/viztracer/blob/master/NOTICE.txt import os import sys import subprocess from .package_env import package_matrix from .util import get_json_file_path, adapt_json_file, generate_json from .ba...
35.174905
124
0.572587
a470423d797f5a743bd26b8f350608c8a995121d
802
py
Python
lib/factories/transaction_factories.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
3
2018-06-30T12:10:50.000Z
2021-09-18T16:10:12.000Z
lib/factories/transaction_factories.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
null
null
null
lib/factories/transaction_factories.py
tuaris/TidePool
5d44fa11a7de3f5c05130d0ad4030671806cd501
[ "BSD-3-Clause" ]
9
2017-04-12T22:59:49.000Z
2021-09-18T16:10:25.000Z
from lib.core.standard import CTransaction from lib.core.extended import CPosTransaction from lib.core.extended import CPosTransactionMessage from lib.core.extended import CTransactionMessage class TransactionFactory(object): def new_transaction(self): return CTransaction() def build_transaction(self, data): # ...
28.642857
55
0.816708
86c5c555c6f20cbf5df82cf817a2663d67861420
684
py
Python
commands/indexer/reverseindexer.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-21T22:00:24.000Z
2022-01-21T22:00:24.000Z
commands/indexer/reverseindexer.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
40
2022-01-18T21:20:54.000Z
2022-03-31T20:56:44.000Z
commands/indexer/reverseindexer.py
1757WestwoodRobotics/2022-RapidReact
b6d9cf203fd35e93dc5d26ba2d6889e2a9edb137
[ "MIT" ]
1
2022-01-28T02:46:38.000Z
2022-01-28T02:46:38.000Z
from commands2 import CommandBase from subsystems.indexersubsystem import IndexerSubsystem class ReverseIndexer(CommandBase): def __init__(self, indexer: IndexerSubsystem): CommandBase.__init__(self) self.setName(__class__.__name__) self.indexer = indexer self.addRequirements([self...
27.36
56
0.666667
8a61eecf182ac499bfaff0e34ab2e25eb6131cf3
515
py
Python
ridt/config/__init__.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
null
null
null
ridt/config/__init__.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
9
2020-09-18T08:22:39.000Z
2021-07-20T09:39:59.000Z
ridt/config/__init__.py
riskaware-ltd/ridt
c0288a2f814b2749bdf73de7157f7477ca271aff
[ "MIT" ]
1
2021-06-22T21:53:20.000Z
2021-06-22T21:53:20.000Z
from .ridtconfig import RIDTConfig from .ridtconfig import Point from .ridtconfig import Line from .ridtconfig import Plane from .ridtconfig import InstantaneousSource from .ridtconfig import InfiniteDurationSource from .ridtconfig import FixedDurationSource from .configfileparser import ConfigFileParser from .confi...
27.105263
55
0.860194
04e2f52c9073443bd5baecb55c6c2ad6b8d26c51
27,526
py
Python
pydevices/RfxDevices/FLIRSC65X.py
consorzio-rfx/mdsplus
81cdbfc759d92b101d84328e6eb7b3a6e6e22103
[ "BSD-2-Clause" ]
null
null
null
pydevices/RfxDevices/FLIRSC65X.py
consorzio-rfx/mdsplus
81cdbfc759d92b101d84328e6eb7b3a6e6e22103
[ "BSD-2-Clause" ]
null
null
null
pydevices/RfxDevices/FLIRSC65X.py
consorzio-rfx/mdsplus
81cdbfc759d92b101d84328e6eb7b3a6e6e22103
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list ...
40.779259
206
0.622757
184777eb388958d17b21b40bcc14c3ca08b696ac
6,658
py
Python
indico_chat_bot/bot.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
null
null
null
indico_chat_bot/bot.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
2
2016-09-05T14:08:43.000Z
2016-09-07T08:27:43.000Z
indico_chat_bot/bot.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
2
2016-08-18T09:20:04.000Z
2016-08-18T09:22:28.000Z
import atexit import hashlib import hmac import re import os import sys import time import typing as t from datetime import datetime, timedelta import click import requests from loguru import logger from pytz import utc from urllib.parse import urlencode, urljoin from . import notifiers from .util import read_config,...
30.401826
115
0.603184
e8b1b447339f3e5a0ca353b198587b1dac97d700
23,315
py
Python
pysnmp-with-texts/T11-FC-SP-ZONING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/T11-FC-SP-ZONING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/T11-FC-SP-ZONING-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 T11-FC-SP-ZONING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/T11-FC-SP-ZONING-MIB # Produced by pysmi-0.3.4 at Wed May 1 15:15:10 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (defau...
165.35461
2,119
0.805962
515a16228e17d3fd71ce093f6be7515252820c1d
4,398
py
Python
arch/unitroot/critical_values/simulation/dfgls_critical_values_simulation.py
alejandro-cermeno/arch
3ef8dc38f9fd2a3759c2224ce8b8bb2b91e52d8a
[ "NCSA" ]
1
2021-11-27T18:15:30.000Z
2021-11-27T18:15:30.000Z
arch/unitroot/critical_values/simulation/dfgls_critical_values_simulation.py
jimmyzac/arch
5e09e76054624f4126931afb353c942303e23ad3
[ "NCSA" ]
null
null
null
arch/unitroot/critical_values/simulation/dfgls_critical_values_simulation.py
jimmyzac/arch
5e09e76054624f4126931afb353c942303e23ad3
[ "NCSA" ]
null
null
null
""" Critical value simulation for the Dickey-Fuller GLS model. Similar in design to MacKinnon (2010). Makes use of parallel_fun in statsmodels which works best when joblib is installed. """ from __future__ import annotations import datetime from typing import Optional, cast import numpy as np from numpy.linalg impo...
26.178571
87
0.50955
3e91fa7746c5692b90af3ba9f8653481143dd19d
6,711
py
Python
setup.py
justinmayer/django-improved-user
e701f7285c9581e9a012f0a0b330a4bb07f22f0c
[ "BSD-2-Clause" ]
null
null
null
setup.py
justinmayer/django-improved-user
e701f7285c9581e9a012f0a0b330a4bb07f22f0c
[ "BSD-2-Clause" ]
null
null
null
setup.py
justinmayer/django-improved-user
e701f7285c9581e9a012f0a0b330a4bb07f22f0c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 """Django Improved User :website: https://github.com/jambonsw/django-improved-user/ :copyright: Copyright 2018 JamBon Software :license: Simplified BSD, see LICENSE for details. """ from distutils.command.check import check as CheckCommand # noqa: N812 from operator import attrgetter from os.p...
33.38806
82
0.595738
70f69b629790636551e573c180f61957d1f159f8
1,518
py
Python
WeichatSrv/syncDatabase.py
StanleyLeiSun/RadishCareCenter
0ad520e2354ed907d2ffa97e6d6daef5caa4b015
[ "MIT" ]
null
null
null
WeichatSrv/syncDatabase.py
StanleyLeiSun/RadishCareCenter
0ad520e2354ed907d2ffa97e6d6daef5caa4b015
[ "MIT" ]
4
2021-06-08T19:06:58.000Z
2022-03-11T23:21:33.000Z
WeichatSrv/syncDatabase.py
StanleyLeiSun/RadishCareCenter
0ad520e2354ed907d2ffa97e6d6daef5caa4b015
[ "MIT" ]
null
null
null
import pyodbc import csv from dbWrapper import RobertLogMSSQL import config from sys import argv def importDatabase(): rlSQL = RobertLogMSSQL(host=config.db_server,user=config.db_user,pwd=config.db_pwd,db="robertlog") with open("rawmsg.csv", 'r', encoding='utf-8') as cvsin: fRawMsg = csv.reader(cvsin, ...
38.923077
102
0.652174
bb78f83187a56c1b7b3e52e7837b73e182d7302c
6,125
py
Python
utils/api/api.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
1
2021-12-30T03:04:07.000Z
2021-12-30T03:04:07.000Z
utils/api/api.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
null
null
null
utils/api/api.py
codehub-is/OnlineJudge
7156e4246b65176eaad8f16442cf535aa993f4b1
[ "MIT" ]
9
2021-05-20T04:02:13.000Z
2022-03-21T11:12:42.000Z
import functools import json import logging from django.db.models import F, Case, When, FloatField from django.http import HttpResponse, QueryDict from django.utils.decorators import method_decorator from django.views.decorators.csrf import csrf_exempt from django.views.generic import View logger = logging.getLogger(...
31.410256
86
0.611265
f4e14df02c7cef2958708062b3004b33f05c784f
13,253
py
Python
brainless/DataFrameVectorizer.py
loaiabdalslam/Brainless
d363e0d713fc9b024a4fac990b9c39cd59769454
[ "MIT" ]
1
2020-02-28T12:12:21.000Z
2020-02-28T12:12:21.000Z
brainless/DataFrameVectorizer.py
loaiabdalslam/Brainless
d363e0d713fc9b024a4fac990b9c39cd59769454
[ "MIT" ]
null
null
null
brainless/DataFrameVectorizer.py
loaiabdalslam/Brainless
d363e0d713fc9b024a4fac990b9c39cd59769454
[ "MIT" ]
null
null
null
# Modified version of scikit-learn's DictVectorizer import numbers from array import array import numpy as np import pandas as pd import scipy.sparse as sp from sklearn.base import BaseEstimator, TransformerMixin from brainless.utils import CustomLabelEncoder bad_values = { float('nan'), float('inf'), fl...
40.160606
99
0.571871
7f904f4e4bb6ddab7c98285ceee3fcdc5e8235c0
1,642
py
Python
mult/multdiv.py
artemkin/sandbox
0287e95d81c070f1399c5b0ceacdc37867075aec
[ "BSD-2-Clause" ]
null
null
null
mult/multdiv.py
artemkin/sandbox
0287e95d81c070f1399c5b0ceacdc37867075aec
[ "BSD-2-Clause" ]
null
null
null
mult/multdiv.py
artemkin/sandbox
0287e95d81c070f1399c5b0ceacdc37867075aec
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import random def input_int(title, f=(lambda x: x)): while True: try: return f(int(raw_input(title + ': '))) except ValueError: print('Ошибка. Попробуй еще раз...') def check_bound(x, lower...
24.878788
100
0.546894
795add50370a966d27392a6f16f18d6da45d3a9f
3,160
py
Python
nbgrader/server_extensions/formgrader/base.py
omelnikov/nbgrader
66984e5732c98bd15733c027601a62fca6a46222
[ "BSD-3-Clause" ]
1,116
2015-01-20T19:22:24.000Z
2022-03-31T22:05:10.000Z
nbgrader/server_extensions/formgrader/base.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
1,166
2015-01-08T21:50:31.000Z
2022-03-31T05:15:01.000Z
nbgrader/server_extensions/formgrader/base.py
jld23/nbgrader
07a38cd8ed12ab33870bdd42f0bf35aa1252b0db
[ "BSD-3-Clause" ]
337
2015-02-06T01:28:00.000Z
2022-03-29T06:52:38.000Z
import os import json import functools from tornado import web from notebook.base.handlers import IPythonHandler from ...api import Gradebook from ...apps.api import NbGraderAPI class BaseHandler(IPythonHandler): @property def base_url(self): return super(BaseHandler, self).base_url.rstrip("/") ...
26.554622
78
0.601899
68ea816059c2722c373e8ac39dacdccc9badbbb5
1,696
py
Python
phishGNN/models/gcn.py
TristanBilot/phishGNN
69293337640cf87cf4363167b3342dd3ca3fd1b0
[ "MIT" ]
null
null
null
phishGNN/models/gcn.py
TristanBilot/phishGNN
69293337640cf87cf4363167b3342dd3ca3fd1b0
[ "MIT" ]
null
null
null
phishGNN/models/gcn.py
TristanBilot/phishGNN
69293337640cf87cf4363167b3342dd3ca3fd1b0
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.nn import Linear, ModuleList from torch_geometric.nn import GCNConv from torch_geometric.nn import global_mean_pool class GCN(torch.nn.Module): def __init__( self, in_channels=None, hidden_channels=32, out_channels=None, ...
23.887324
77
0.574882
de04ccdc961290d523242eb9a5c7c7ac65e1af75
1,100
py
Python
setup.py
antonhibl/q2-chemistry
9d240410c825f30dcf00f352e56b894d7fed3269
[ "BSD-3-Clause" ]
1
2021-07-28T18:55:04.000Z
2021-07-28T18:55:04.000Z
setup.py
antonhibl/q2-chemistry
9d240410c825f30dcf00f352e56b894d7fed3269
[ "BSD-3-Clause" ]
null
null
null
setup.py
antonhibl/q2-chemistry
9d240410c825f30dcf00f352e56b894d7fed3269
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # -----------------------------------------------------...
35.483871
107
0.525455
e158dd8b04db0b7ccee339dc7401c8ab13b49919
3,993
py
Python
TP1/4.h.py
NicolasFerragamo/pdstestbench
e87f1a0000f7a0b9593dccd4b0f6fa256ca67438
[ "MIT" ]
null
null
null
TP1/4.h.py
NicolasFerragamo/pdstestbench
e87f1a0000f7a0b9593dccd4b0f6fa256ca67438
[ "MIT" ]
null
null
null
TP1/4.h.py
NicolasFerragamo/pdstestbench
e87f1a0000f7a0b9593dccd4b0f6fa256ca67438
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 21 19:14:07 2019 @author: nico """ #%% importo los paquetes necesarios import os import matplotlib.pyplot as plt import numpy as np import pandas as pd import sys sys.path.append('/home/nico/Documentos/facultad/6to_nivel/pds/git/pdstestbench') fro...
29.577778
151
0.630854
2c473e9063a2d9474f913c2996b82cf153785914
576
py
Python
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
party_parrot/_slack_parrots.py
tylercroberts/PartyParrot
89894ea054a466f2ec1c5a620fd312cdc2008a77
[ "BSD-3-Clause" ]
null
null
null
""" Parrots ~~~~~~~ """ from party_parrot._utils import get_parrots slack_parrots = """ :aussie_parrot: :blonde_sassy_parrot: :bored_parrot: :chill_parrot: :christmas_parrot: :coffee_parrot: :confused_parrot: :conga_parrot: :dark_beer_parrot: :deal_with_it_parrot: :angel_parrot: :fieri_parrot: :goth_parrot: ...
32
107
0.776042
196069925bb1d65e15540c3c3b8f056d86d8df32
8,555
py
Python
src/contractExtractor/wastefulContractsExtractor/wastefulContractsExtractor.py
xf97/HuangGai
40a349be6102d5eb63893fb914659405ae162d93
[ "MIT" ]
23
2020-09-20T02:10:44.000Z
2022-03-22T12:58:13.000Z
src/contractExtractor/wastefulContractsExtractor/wastefulContractsExtractor.py
contractshark/HuangGai
1b26f77b043aa5903774420964c61ab370eb6c7a
[ "MIT" ]
3
2020-09-22T15:28:33.000Z
2022-01-22T07:48:53.000Z
src/contractExtractor/wastefulContractsExtractor/wastefulContractsExtractor.py
contractshark/HuangGai
1b26f77b043aa5903774420964c61ab370eb6c7a
[ "MIT" ]
5
2021-07-15T02:45:09.000Z
2022-03-21T13:36:40.000Z
#!/usr/bin/python #-*- coding: utf-8 -*- ''' 此文件用于从数据集中抽取可能包含或可以注入的 浪费的合约bug 的合约 ''' ''' 抽取标准: 1. 可能考虑多态 2. 最终的函数要有转钱出去的语句,必须是外部可以调用的  3. 记录使用的身份验证或者直接把(require/assert或者牵扯到msg.sender/tx.origin)这些语句的位置记录下来 换个思路-是不是插入语句更稳妥 ''' ''' bug标记在转出钱的语句位置 ''' import sys import os from random import randint import re import sub...
31.452206
190
0.691525
c1f76b620043cd06ac4eec5059d4a88158f23cdf
6,846
py
Python
src/eques_elf/eques_local.py
lgo/eques-elf-python
e9081de48df5733133732372e6e5ec3144c2a288
[ "MIT" ]
null
null
null
src/eques_elf/eques_local.py
lgo/eques-elf-python
e9081de48df5733133732372e6e5ec3144c2a288
[ "MIT" ]
null
null
null
src/eques_elf/eques_local.py
lgo/eques-elf-python
e9081de48df5733133732372e6e5ec3144c2a288
[ "MIT" ]
null
null
null
""" eques_local provides local network commands for the Eques Elf smart plug. Support commands include: - Discovery broadcast - Status query - Toggle on or off Original author: iamckn Source code adapted from https://github.com/iamckn/eques/blob/master/exploit/equeslocal.go """ from __future__ import annotations imp...
29.765217
90
0.695297
3040ce5f969674f3af66a80e12abca62ad410ff7
6,025
py
Python
SciDataTool/Methods/VectorField/get_xyz_along.py
SebGue/SciDataTool
88c9e3e3fe9a974798932009734501ce88a9c5ef
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/get_xyz_along.py
SebGue/SciDataTool
88c9e3e3fe9a974798932009734501ce88a9c5ef
[ "Apache-2.0" ]
null
null
null
SciDataTool/Methods/VectorField/get_xyz_along.py
SebGue/SciDataTool
88c9e3e3fe9a974798932009734501ce88a9c5ef
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from numpy import zeros from SciDataTool.Functions.conversions import pol2cart from SciDataTool.Functions import AxisError def get_xyz_along(self, *args, unit="SI", is_norm=False, axis_data=[]): """Returns the list of the cartesian (comp_x,comp_y,comp_z) components of the field, using co...
39.638158
132
0.610124
9a5778d556ff42a30b662fb762ca04a90386ad92
1,428
py
Python
example/article/tests/utils.py
rosscdh/django-fluent-comments
ef455b22cb568e79868ba5dcab5b0c249282b46b
[ "Apache-2.0" ]
null
null
null
example/article/tests/utils.py
rosscdh/django-fluent-comments
ef455b22cb568e79868ba5dcab5b0c249282b46b
[ "Apache-2.0" ]
null
null
null
example/article/tests/utils.py
rosscdh/django-fluent-comments
ef455b22cb568e79868ba5dcab5b0c249282b46b
[ "Apache-2.0" ]
null
null
null
from functools import wraps import fluent_comments from fluent_comments import appsettings from fluent_comments.moderation import FluentCommentsModerator def override_appsettings(**settings): """ Temporary override the appsettings. """ def _dec(func): @wraps(func) def _inner(*args, **...
35.7
100
0.714986
c5a3232f60ebd699319798489ba3a60674da4af0
12,907
py
Python
EventsPortal.py
elixirhub/events-portal-scraping-scripts
0d4afac817377dfb3f77ce24c7339b7750b83bc0
[ "MIT" ]
null
null
null
EventsPortal.py
elixirhub/events-portal-scraping-scripts
0d4afac817377dfb3f77ce24c7339b7750b83bc0
[ "MIT" ]
null
null
null
EventsPortal.py
elixirhub/events-portal-scraping-scripts
0d4afac817377dfb3f77ce24c7339b7750b83bc0
[ "MIT" ]
null
null
null
__author__ = 'chuqiao' import urllib2 from bs4 import BeautifulSoup from urlparse import urljoin import re import logging import pysolr from urlparse import urlparse import arrow from httplib import BadStatusLine from socket import error as SocketError import errno import ConfigParser import sys def logger(): ...
31.712531
99
0.627024
87a34b8599267e160a98875771b0382dd68dc0e8
8,494
py
Python
docusign_esign/models/text_custom_field.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
58
2017-10-18T23:06:57.000Z
2021-04-15T23:14:58.000Z
docusign_esign/models/text_custom_field.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-10-27T05:54:09.000Z
2021-04-29T22:06:17.000Z
docusign_esign/models/text_custom_field.py
joekohlsdorf/docusign-esign-python-client
40407544f79c88716d36fabf36f65c3ef1a5c3ba
[ "MIT" ]
49
2017-09-16T07:23:41.000Z
2021-05-07T20:21:20.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.gi...
29.803509
140
0.591947
6e777d85a1ea89fe44ecabca6004a90ca6ec963b
386
py
Python
python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/step_by_step/torch_client.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/step_by_step/torch_client.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/step_by_step/torch_client.py
NCLPhD/FedML
ffa15262ee963b9c856f34f0b2202f4dfeb3a76b
[ "Apache-2.0" ]
null
null
null
import fedml from fedml.cross_silo import Client if __name__ == "__main__": args = fedml.init() # init device device = fedml.device.get_device(args) # load data dataset, output_dim = fedml.data.load(args) # load model model = fedml.model.create(args, output_dim) # start training ...
18.380952
49
0.663212
468ba3be893b41dd4add05a40f37f944608415a6
3,404
py
Python
tipfy/appengine/xmpp.py
pombreda/tipfy
900e5a31a5d24107efa8dfacd89fd69d207cf470
[ "BSD-3-Clause" ]
23
2015-02-15T22:35:04.000Z
2021-11-17T11:39:24.000Z
permit/lib/dist/tipfy/appengine/xmpp.py
stanlee321/pysolper
5fa7a5424281ddac2957821b6e1cdc42a0931387
[ "Apache-2.0" ]
null
null
null
permit/lib/dist/tipfy/appengine/xmpp.py
stanlee321/pysolper
5fa7a5424281ddac2957821b6e1cdc42a0931387
[ "Apache-2.0" ]
3
2016-03-21T15:57:28.000Z
2020-11-26T02:26:19.000Z
# -*- coding: utf-8 -*- """ tipfy.appengine.xmpp ~~~~~~~~~~~~~~~~~~~~ XMPP webapp handler classes. This module provides handler classes for XMPP bots, including both basic messaging functionality and a command handler for commands such as: "/foo bar". Ported from the original `App Eng...
32.113208
79
0.64718
dfa38f33505ebd6678ee5b3e60df04cd0a0364e1
736
py
Python
lapin_bringup/setup.py
ThotAlion/lapin_src
7a67da79d595030f5d73ec0361c6d43e348377fb
[ "MIT" ]
null
null
null
lapin_bringup/setup.py
ThotAlion/lapin_src
7a67da79d595030f5d73ec0361c6d43e348377fb
[ "MIT" ]
null
null
null
lapin_bringup/setup.py
ThotAlion/lapin_src
7a67da79d595030f5d73ec0361c6d43e348377fb
[ "MIT" ]
null
null
null
import os from glob import glob from setuptools import setup package_name = 'lapin_bringup' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name...
25.37931
74
0.633152
8ffbaf9cd22bfcaccbdddef7092829014bc30c2c
580
py
Python
ssdcoin/wallet/puzzles/p2_m_of_n_delegate_direct.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
7
2021-07-20T16:54:56.000Z
2021-11-05T10:05:07.000Z
ssdcoin/wallet/puzzles/p2_m_of_n_delegate_direct.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
2
2021-07-23T15:26:36.000Z
2021-08-18T17:37:50.000Z
ssdcoin/wallet/puzzles/p2_m_of_n_delegate_direct.py
ZeDon-SP/ssdcoin-blockchain
310b461fa43e26305771322438206d9a5fc00f7a
[ "Apache-2.0" ]
null
null
null
""" Pay to m of n direct This puzzle program is like p2_delegated_puzzle except instead of one public key, it includes N public keys, any M of which needs to sign the delegated puzzle. """ from ssdcoin.types.blockchain_format.program import Program from .load_clvm import load_clvm MOD = load_clvm("p2_m_of_n_delegat...
27.619048
81
0.784483
0c1798936408b6886763918686bc5998a277da86
6,640
py
Python
data_utils/datasets/_utils.py
leviome/yolo_1_pytorch
e18705cbf22034d97e043e5faa22466c129238d5
[ "MIT" ]
28
2020-09-07T07:23:34.000Z
2022-03-26T09:17:51.000Z
data_utils/datasets/_utils.py
WWWzk/yolo_1_pytorch
e18705cbf22034d97e043e5faa22466c129238d5
[ "MIT" ]
2
2021-04-07T06:05:54.000Z
2021-04-08T09:06:07.000Z
data_utils/datasets/_utils.py
WWWzk/yolo_1_pytorch
e18705cbf22034d97e043e5faa22466c129238d5
[ "MIT" ]
9
2020-09-13T06:34:04.000Z
2022-03-14T06:18:10.000Z
import cv2 import numpy as np import math import random import torch from PIL import Image def get_max_overlap(box1, box2): # get overlap lt = np.maximum(box1[None, :2], box2[:, :2]) # [N,2] rb = np.minimum(box1[None, 2:], box2[:, 2:]) # [N,2] TO_REMOVE = 1 wh = np.clip(rb - lt, TO_REMOVE, None...
33.366834
114
0.544428
900d96932b8c62dedf8d9206d8e472fbe7b4657f
251
py
Python
LXD/plugins/Advertisement.py
qzhsjz/LXDbot
2c2cf96b0082d76ab06c525206ab85525aa1cf10
[ "MIT" ]
3
2020-08-28T10:16:11.000Z
2021-08-06T05:15:03.000Z
LXD/plugins/Advertisement.py
luoxiandu/LXDbot
2c2cf96b0082d76ab06c525206ab85525aa1cf10
[ "MIT" ]
null
null
null
LXD/plugins/Advertisement.py
luoxiandu/LXDbot
2c2cf96b0082d76ab06c525206ab85525aa1cf10
[ "MIT" ]
null
null
null
import nonebot from LXD.services.DBSvr import DB import json __plugin_name__ = 'LXD.Advertisement' db = DB() bot = nonebot.get_bot() @bot.server_app.route('/getadv', methods=['GET']) async def getadv(): return json.dumps(db.getAdvertisements())
20.916667
49
0.737052
eca14d481cf4ea2acc90cf9e42e3a769069e2821
15,969
py
Python
superset/connectors/druid/views.py
ekmixon/superset
540277ebb108ccaf7937a173f6cfde90f2e72813
[ "Apache-2.0" ]
2
2021-09-13T07:20:49.000Z
2021-11-14T20:06:47.000Z
superset/connectors/druid/views.py
ekmixon/superset
540277ebb108ccaf7937a173f6cfde90f2e72813
[ "Apache-2.0" ]
43
2021-01-05T03:28:49.000Z
2022-02-28T13:15:33.000Z
superset/connectors/druid/views.py
ekmixon/superset
540277ebb108ccaf7937a173f6cfde90f2e72813
[ "Apache-2.0" ]
1
2021-08-28T09:49:15.000Z
2021-08-28T09:49:15.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.879908
88
0.630785
9d7cf7aa42873177277b5851c00b57f0f03c4f4b
1,892
py
Python
setup.py
miltonfajardo/python-embedded-launcher
e742640b4cc0552480a1ceedd7c0bdbacfa1e122
[ "BSD-3-Clause" ]
1
2019-06-06T19:37:40.000Z
2019-06-06T19:37:40.000Z
setup.py
miltonfajardo/python-embedded-launcher
e742640b4cc0552480a1ceedd7c0bdbacfa1e122
[ "BSD-3-Clause" ]
null
null
null
setup.py
miltonfajardo/python-embedded-launcher
e742640b4cc0552480a1ceedd7c0bdbacfa1e122
[ "BSD-3-Clause" ]
null
null
null
# setup.py for python-embedded-launcher # # (C) 2016-2019 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause import subprocess import sys try: from setuptools import setup except ImportError: from distutils.core import setup if 'sdist' in sys.argv[1:] or 'bdist_wheel' in sys.argv[1:...
35.698113
107
0.636364
fb207f506fafcd31c0341e15c0b2447e050d4538
53,748
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_network_interfaces_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_network_interfaces_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
226
2019-07-24T07:57:21.000Z
2019-10-15T01:07:24.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/operations/_network_interfaces_operations.py
iscai-msft/azure-sdk-for-python
83715b95c41e519d5be7f1180195e2fba136fc0f
[ "MIT" ]
null
null
null
# 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 ...
49.21978
338
0.680323
35c7abf5e53fd031811b3907a1c078c8c79acdb8
1,572
py
Python
venv/lib/python3.6/site-packages/phonenumbers/data/region_AG.py
exdeam/opencrm
dfdcfdf99f0b42eb3959171927cb6574583f5ee0
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/phonenumbers/data/region_AG.py
exdeam/opencrm
dfdcfdf99f0b42eb3959171927cb6574583f5ee0
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/phonenumbers/data/region_AG.py
exdeam/opencrm
dfdcfdf99f0b42eb3959171927cb6574583f5ee0
[ "MIT" ]
1
2020-09-08T14:45:34.000Z
2020-09-08T14:45:34.000Z
"""Auto-generated file, do not edit by hand. AG metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AG = PhoneMetadata(id='AG', country_code=1, international_prefix='011', general_desc=PhoneNumberDesc(national_number_pattern='(?:268|[58]\\d\\d|900)\\d{7}', possible_l...
98.25
195
0.744275
7dbfcae895f79b81adb596ed6da0380dd90ea3d1
3,166
py
Python
MovieRecommendation-Spider/DouBanSpider/DouBanSpider/items.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
5
2021-01-06T02:23:11.000Z
2022-03-19T08:43:51.000Z
MovieRecommendation-Spider/DouBanSpider/DouBanSpider/items.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
null
null
null
MovieRecommendation-Spider/DouBanSpider/DouBanSpider/items.py
pengchenyu111/MovieRecommendation
31f4f8dfa2ee387e45ef8e30a1121a83d6114233
[ "Apache-2.0" ]
1
2020-12-03T05:43:53.000Z
2020-12-03T05:43:53.000Z
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class DoubanspiderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass # 电影简要信息,主要是拿到其豆瓣id class MovieBriefIntroduction(s...
35.977273
65
0.67151
d2565c1db4529033c89c29ed1b9f0e888b1fe79a
2,088
py
Python
pairwise_jsd.py
84adam/python3-nlp
977c79e7d207e6d49b5c50c837f454d7b13db681
[ "MIT" ]
null
null
null
pairwise_jsd.py
84adam/python3-nlp
977c79e7d207e6d49b5c50c837f454d7b13db681
[ "MIT" ]
null
null
null
pairwise_jsd.py
84adam/python3-nlp
977c79e7d207e6d49b5c50c837f454d7b13db681
[ "MIT" ]
3
2021-05-21T12:11:05.000Z
2022-03-11T06:05:45.000Z
import numpy as np from scipy.spatial import distance # requires equal dimension numpy arrays def pairwise_jsd(Z): Z_dist = distance.pdist(Z, 'jensenshannon') return Z_dist # interpolate missing values from topic probability distributions # then run pairwise_jsd() def interp_pairwise_jsd(t_dist): Z = np.array(...
25.156627
113
0.657088
c3b1b7cf3ce2502239e2ab92ebc023381e74999f
1,374
py
Python
examples/miniapps/services_v2/example/services.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/services_v2/example/services.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/services_v2/example/services.py
vlad-ghita/python-dependency-injector
5cf5bdda24851dd97cfa0f5054f4a8c35ddac014
[ "BSD-3-Clause" ]
null
null
null
"""Example business services module.""" class BaseService(object): """Service base class.""" class UsersService(BaseService): """Users service.""" def __init__(self, logger, db): """Initializer.""" self.logger = logger self.db = db def get_user_by_id(self, uid): """...
26.941176
79
0.588792
87dfd90190f57ecec468663b2009c79d9c393cd1
176
py
Python
output/models/ms_data/datatypes/facets/short/short_min_exclusive005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/short/short_min_exclusive005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/short/short_min_exclusive005_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.datatypes.facets.short.short_min_exclusive005_xsd.short_min_exclusive005 import ( FooType, Test, ) __all__ = [ "FooType", "Test", ]
17.6
108
0.715909
d6e915e197e2b3b1ed34f5f9f5e5d7dce10f2dcc
1,345
py
Python
setup.py
dgtorpheas/electrumx
dac9239d2a52e718d58b3445434feadbb36f8fd5
[ "MIT" ]
null
null
null
setup.py
dgtorpheas/electrumx
dac9239d2a52e718d58b3445434feadbb36f8fd5
[ "MIT" ]
null
null
null
setup.py
dgtorpheas/electrumx
dac9239d2a52e718d58b3445434feadbb36f8fd5
[ "MIT" ]
1
2018-08-24T00:03:23.000Z
2018-08-24T00:03:23.000Z
import setuptools version = '1.6' setuptools.setup( name='electrumX', version=version, scripts=['electrumx_server', 'electrumx_rpc'], python_requires='>=3.6', # via environment variables, in which case I've tested with 15.0.4 # "x11_hash" package (1.4) is required to sync DASH network. # "t...
38.428571
71
0.638662
9825d9844a1ba2f47f8f3e6f861d19f88f7d3fd0
46,836
py
Python
openapi-python-client/openapi_client/api/task_local_variable_api.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/api/task_local_variable_api.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
openapi-python-client/openapi_client/api/task_local_variable_api.py
yanavasileva/camunda-bpm-examples
051f8f28c62845e68ce4059ab64264c5a0bdc009
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Camunda BPM REST API OpenApi Spec for Camunda BPM REST API. # noqa: E501 The version of the OpenAPI document: 7.13.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library i...
50.743229
928
0.614378
afe60d88fc751857565fd081376040ea092883c2
265
py
Python
accounts/urls.py
Gerard-007/musicalpacks
ef12c7281b395268ac53247fd34c3499f7a0569a
[ "MIT" ]
null
null
null
accounts/urls.py
Gerard-007/musicalpacks
ef12c7281b395268ac53247fd34c3499f7a0569a
[ "MIT" ]
7
2020-06-05T20:23:21.000Z
2022-03-11T23:45:33.000Z
accounts/urls.py
Gerard-007/musicalpacks
ef12c7281b395268ac53247fd34c3499f7a0569a
[ "MIT" ]
null
null
null
from django.conf.urls import url from accounts import views urlpatterns = [ # url(r'^login/', views.LoginView.as_view(), name='login'), url(r'^logout/', views.LogoutView.as_view(), name='logout'), url(r'^signup/', views.SignupView.as_view(), name='signup'), ]
24.090909
61
0.69434
3a527687eca593c9222a7b6cd98648de564425e5
161
py
Python
homesecurity/homesecurity/urls.py
Nahid-Hassan/home-security
07569557bc84b15f890e2365494fc8f08a22b013
[ "Apache-2.0" ]
null
null
null
homesecurity/homesecurity/urls.py
Nahid-Hassan/home-security
07569557bc84b15f890e2365494fc8f08a22b013
[ "Apache-2.0" ]
null
null
null
homesecurity/homesecurity/urls.py
Nahid-Hassan/home-security
07569557bc84b15f890e2365494fc8f08a22b013
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('lfr.urls')) ]
20.125
37
0.68323
569a472dd088a9431e2d4830f0ef4028e7eedb09
548
py
Python
0551-0600/0592-FractionAdditionAndSubtraction/FractionAdditionAndSubtraction.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
3
2018-04-12T05:13:52.000Z
2018-04-15T05:11:51.000Z
0551-0600/0592-FractionAdditionAndSubtraction/FractionAdditionAndSubtraction.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
null
null
null
0551-0600/0592-FractionAdditionAndSubtraction/FractionAdditionAndSubtraction.py
Sun-Zhen/leetcode
57fe0de95881255393e0d6817e75bfae8f5744dc
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ @author: Alden @email: sunzhenhy@gmail.com @date: 2018/4/18 @version: 1.0.0.0 """ class Solution(object): def fractionAddition(self, expression): """ :type expression: str :rtype: str """ a = b = None for i, v in enumerate(expression): ...
20.296296
44
0.567518
432004078441cd2bb172f7a2c65711fe318726b9
1,324
py
Python
pyecobee/objects/electricity.py
kstough/Pyecobee
c7299f03ea7a4516d1b215fa9906edf1bf2bda2c
[ "MIT" ]
1
2019-04-30T00:57:48.000Z
2019-04-30T00:57:48.000Z
pyecobee/objects/electricity.py
kstough/Pyecobee
c7299f03ea7a4516d1b215fa9906edf1bf2bda2c
[ "MIT" ]
null
null
null
pyecobee/objects/electricity.py
kstough/Pyecobee
c7299f03ea7a4516d1b215fa9906edf1bf2bda2c
[ "MIT" ]
null
null
null
""" This module is home to the Electricity class """ from pyecobee.ecobee_object import EcobeeObject class Electricity(EcobeeObject): """ This class has been auto generated by scraping https://www.ecobee.com/home/developer/api/documentation/v1/objects/Electricity.shtml Attribute names have been gener...
31.52381
106
0.700151
a1ce4b2b2b8800b3c1b60aa50bc0b098773f6bad
747
py
Python
LCS MAX.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
LCS MAX.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
LCS MAX.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #Program to find the longest common subsequence, in a sequence. #LCS for input Sequences ABCDGH and AEDFHR is ADH of length 3. #LCS for input Sequences AGGTAB and GXTXAYB is GTAB of length 4. S='ABCDGH' T='AEDFHR' S='AGGTAB' T='GXTXAYB' S='MZJAWXU' T='XMJYAUZ' matrix=[[0 for y in range(l...
14.647059
64
0.621151
48fb0c296e77af7a9f7c959b0aba34303320ce28
4,514
py
Python
lib/eco/incparser/test/test_lrtolalr.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
54
2015-01-19T14:54:28.000Z
2022-02-06T14:55:03.000Z
lib/eco/incparser/test/test_lrtolalr.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
228
2015-01-27T15:53:13.000Z
2020-01-16T10:35:15.000Z
lib/eco/incparser/test/test_lrtolalr.py
softdevteam/eco
fdca886f13e9487f8293f50bf1fd5f02389e0fd3
[ "MIT" ]
12
2015-05-15T01:49:01.000Z
2020-01-11T10:19:39.000Z
# Copyright (c) 2012--2013 King's College London # Created by the Software Development Team <http://soft-dev.org/> # # 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, inclu...
29.122581
78
0.615419
ef2113cc58f8e2f0f41f8cc6bd406103b97da807
3,092
py
Python
p11.py
alpatine/project-euler-python
d731d2deebff4bfb812811921f56da7b984652c0
[ "MIT" ]
null
null
null
p11.py
alpatine/project-euler-python
d731d2deebff4bfb812811921f56da7b984652c0
[ "MIT" ]
null
null
null
p11.py
alpatine/project-euler-python
d731d2deebff4bfb812811921f56da7b984652c0
[ "MIT" ]
null
null
null
from typing import List from math import prod def p11(grid: List[List[int]], length: int) -> int: max_product = 0 rows = len(grid) cols = len(grid[0]) for rowId in range(rows): for colId in range(cols): # check right if colId + length <= cols: product = ...
54.245614
95
0.444373
e100926ee391a2cff4dd1c203d346876b401d9e1
3,848
py
Python
autodist/strategy/all_reduce_strategy.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
autodist/strategy/all_reduce_strategy.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
autodist/strategy/all_reduce_strategy.py
big-data-lab-umbc/autodist
c8514b27cf5608f35254b63c4ac8093c7295a8e7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Petuum. 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 law or agre...
42.285714
116
0.661123
648dec5a2bf91a31868a3500301ccd6c5537a054
1,405
py
Python
src/modules/site/base/views/maintenance.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
3
2022-02-09T07:04:37.000Z
2022-03-11T02:46:35.000Z
src/modules/site/base/views/maintenance.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
4
2022-01-28T22:28:08.000Z
2022-02-11T21:47:15.000Z
src/modules/site/base/views/maintenance.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
1
2022-01-11T03:39:02.000Z
2022-01-11T03:39:02.000Z
from threading import Thread from flask import jsonify, Blueprint, request, flash, abort, render_template from logzero import logger from caendr.services.cloud.cron import verify_cron_req_origin from caendr.api.strain import generate_bam_bai_download_script, get_joined_strain_list from caendr.models.error import APIDe...
33.452381
105
0.780071
50e59d04c5ad04aecfee2ebc0b759d4d4420b43b
401
py
Python
clientside/whiteelement/wsgi.py
gauthamzz/vimana
e446c14a4b8586fdd2b8ea2744db0a3274cac091
[ "MIT" ]
6
2019-04-08T15:09:30.000Z
2020-08-11T02:44:50.000Z
clientside/whiteelement/wsgi.py
gauthamzz/vimana
e446c14a4b8586fdd2b8ea2744db0a3274cac091
[ "MIT" ]
14
2019-04-10T11:08:18.000Z
2022-02-26T01:39:42.000Z
clientside/whiteelement/wsgi.py
gauthamzz/vimana
e446c14a4b8586fdd2b8ea2744db0a3274cac091
[ "MIT" ]
2
2019-02-07T17:17:49.000Z
2019-08-12T10:46:30.000Z
""" WSGI config for whiteelement 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.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
23.588235
78
0.790524
b6484573684c4bced2a3d2cf1e3e8b88d68e5d57
818
py
Python
shadowsocks_manager/shadowsocks_manager/celery.py
alexzhangs/shadowsocks-manager
211be82a796ee124075687b99c3af5018d6cca2c
[ "MIT" ]
5
2019-09-26T10:47:12.000Z
2022-03-31T10:33:27.000Z
shadowsocks_manager/shadowsocks_manager/celery.py
alexzhangs/shadowsocks-manager
211be82a796ee124075687b99c3af5018d6cca2c
[ "MIT" ]
4
2019-09-26T10:53:53.000Z
2021-04-03T18:14:19.000Z
shadowsocks_manager/shadowsocks_manager/celery.py
alexzhangs/shadowsocks-manager
211be82a796ee124075687b99c3af5018d6cca2c
[ "MIT" ]
1
2021-03-30T07:25:27.000Z
2021-03-30T07:25:27.000Z
# py2.7 and py3 compatibility imports from __future__ import absolute_import, unicode_literals from __future__ import print_function import os from celery import Celery # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shadowsocks_manager.settings') a...
31.461538
79
0.788509
b0b8f69b25e3fdf066092962ea03760b8c60502f
187
py
Python
src/sentry/search/__init__.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/search/__init__.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
src/sentry/search/__init__.py
Casecommons/sentry
b69a2373a658c5c775671fe9985c3fa4f2eafcfd
[ "BSD-3-Clause" ]
null
null
null
""" sentry.search ~~~~~~~~~~~~~ :copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from .base import * # NOQA
18.7
75
0.647059
f1c6a2b23aa1706fe1cfb27540552b4c574cbd8f
6,795
py
Python
src/backend.py
a358003542/galaxy_blizzard_plugin
83a9a25c826528ff08e20a57ea9c342bdda96269
[ "MIT" ]
null
null
null
src/backend.py
a358003542/galaxy_blizzard_plugin
83a9a25c826528ff08e20a57ea9c342bdda96269
[ "MIT" ]
null
null
null
src/backend.py
a358003542/galaxy_blizzard_plugin
83a9a25c826528ff08e20a57ea9c342bdda96269
[ "MIT" ]
null
null
null
import asyncio import requests import functools import logging logging.getLogger("urllib3").setLevel(logging.WARNING) from http import HTTPStatus from galaxy.api.errors import ( AccessDenied, AuthenticationRequired, BackendTimeout, BackendNotAvailable, BackendError, NetworkError, UnknownError ) from consts ...
41.687117
138
0.655335
5ee403f70d3b0be07a1e956bee5d537a0779576f
278
py
Python
tests/fixtures/app_wrong_extra_file/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
tests/fixtures/app_wrong_extra_file/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
tests/fixtures/app_wrong_extra_file/app.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
from pathlib import Path from flask import Flask APP_DIR = Path(__file__).parent app = Flask(__name__) freeze_config = {'extra_files': {'bin_range.dat': {'wrong-map-key': 'AAECAwQFBgcICQ=='} } }
21.384615
61
0.514388