hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
793f0e1647881b1e34f40a457f912611bda2613c
1,913
py
Python
contrib/devtools/check-doc.py
cxccoin/cxc
afef248557cb315a99453a0622d502c79528ca57
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
cxccoin/cxc
afef248557cb315a99453a0622d502c79528ca57
[ "MIT" ]
null
null
null
contrib/devtools/check-doc.py
cxccoin/cxc
afef248557cb315a99453a0622d502c79528ca57
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: ...
42.511111
301
0.690538
793f0e538dac32c7bd2067f089e31a80fb30376c
1,827
py
Python
src/my/kadenze/lesson1/GaussianTF.py
AlfredNeverKog/BrainCarya
2ee065a1fbface0c993c3ddfd0ca2cea236bbad5
[ "MIT" ]
null
null
null
src/my/kadenze/lesson1/GaussianTF.py
AlfredNeverKog/BrainCarya
2ee065a1fbface0c993c3ddfd0ca2cea236bbad5
[ "MIT" ]
null
null
null
src/my/kadenze/lesson1/GaussianTF.py
AlfredNeverKog/BrainCarya
2ee065a1fbface0c993c3ddfd0ca2cea236bbad5
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf sess = tf.InteractiveSession() #open eval sigma = 3.0 mean = 0 def gaus(x): y = (1 / (sigma * tf.sqrt(2.0 * 3.14))) * tf.exp(tf.neg((tf.pow(x - mean, 2.0)) / (2 * tf.pow(sigma, 2.0)))) return y def geus2d(): x = tf.linspace(-5.0,5...
26.867647
116
0.539683
793f0e538efd2fecfd7d60e59f1f5d83e9acedf4
31,307
py
Python
nltk/parse/transitionparser.py
oplatek/nltk
7216fb5aac79153c14015a5a234d34c2327c3188
[ "Apache-2.0" ]
null
null
null
nltk/parse/transitionparser.py
oplatek/nltk
7216fb5aac79153c14015a5a234d34c2327c3188
[ "Apache-2.0" ]
null
null
null
nltk/parse/transitionparser.py
oplatek/nltk
7216fb5aac79153c14015a5a234d34c2327c3188
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Arc-Standard and Arc-eager Transition Based Parsers # # Author: Long Duong <longdt219@gmail.com> # # Copyright (C) 2001-2015 NLTK Project # URL: <http://nltk.org/> # For license information, see LICENSE.TXT import tempfile import pickle from os import remove from copy import deepcopy from ...
40.553109
233
0.544032
793f0e5c2d0d697eb55583645c21f6e4f7579522
13,089
py
Python
wand/sequence.py
Harmon758/wand
84bd4a20a315b76b467d5c62ffabc4f7577e9008
[ "MIT" ]
null
null
null
wand/sequence.py
Harmon758/wand
84bd4a20a315b76b467d5c62ffabc4f7577e9008
[ "MIT" ]
null
null
null
wand/sequence.py
Harmon758/wand
84bd4a20a315b76b467d5c62ffabc4f7577e9008
[ "MIT" ]
null
null
null
""":mod:`wand.sequence` --- Sequences ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 0.3.0 """ import contextlib import ctypes import numbers from .api import libmagick, library from .compat import abc, binary, xrange from .image import BaseImage, ImageProperty from .version import MAGICK_VERSION_INFO __al...
36.358333
79
0.577813
793f0eb02919f318cc40fb7e889280e3a7f56dce
14,171
py
Python
circews/classes/label_gen.py
ratschlab/circEWS
b2b1f00dac4f5d46856a2c7abe2ca4f12d4c612d
[ "MIT" ]
34
2020-03-17T16:42:00.000Z
2022-03-29T15:53:24.000Z
circews/classes/label_gen.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
3
2020-07-30T22:37:10.000Z
2021-08-10T00:02:30.000Z
circews/classes/label_gen.py
ranxiao/circEWS
1e52880c268f8f763bbc16763131634ffc217153
[ "MIT" ]
14
2020-04-22T01:13:54.000Z
2021-11-27T20:23:41.000Z
''' Class wrapper for label generation, transforming an input data-frame with endpoints and an input data-frame with imputed data to a Pandas data-frame with labels ''' import os import sys import os.path import ipdb import numpy as np import scipy as sp import pandas as pd import circews.functions.labels as bern_l...
50.610714
175
0.71851
793f102c8b2e5840be88ab1fb3ea0d779a0aae37
729
py
Python
django-rgd-3d/rgd_3d/tasks/jobs.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
3
2020-03-10T14:47:07.000Z
2020-05-05T16:55:27.000Z
django-rgd-3d/rgd_3d/tasks/jobs.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
13
2020-04-14T14:36:06.000Z
2020-05-07T15:03:42.000Z
django-rgd-3d/rgd_3d/tasks/jobs.py
Kitware/ResonantGeoData
6d111cbe1d57df2cd230edcf4724f6e33471f5ff
[ "Apache-2.0" ]
1
2020-03-03T15:47:52.000Z
2020-03-03T15:47:52.000Z
from celery import shared_task from django.conf import settings from rgd.tasks import helpers @shared_task(time_limit=settings.CELERY_TASK_TIME_LIMIT) def task_read_mesh_3d_file(pc_file_pk): from rgd_3d.models import Mesh3D from .etl import read_mesh_3d_file pc_file = Mesh3D.objects.get(pk=pc_file_pk) ...
30.375
87
0.81893
793f114feffb6c289f02087c1bbc337882a29f15
21,057
py
Python
test/commands/extended/get_inputs_test.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
2
2018-02-21T12:04:41.000Z
2018-04-01T18:56:18.000Z
test/commands/extended/get_inputs_test.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
null
null
null
test/commands/extended/get_inputs_test.py
plenarius/iota.lib.py
ac6167dadb8b60a64b33eeb9db755be32c7cef12
[ "MIT" ]
3
2018-02-19T09:35:44.000Z
2018-04-01T19:16:26.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, \ unicode_literals from unittest import TestCase import filters as f from filters.test import BaseFilterTestCase from iota import Address, BadApiResponse, Iota, TransactionHash from iota.adapter import MockAdapter from iota.commands.e...
25.64799
77
0.615662
793f11a323c838c9c22bb59415e95e956ce554ee
3,679
py
Python
lino/sandbox/bcss/test2.py
NewRGB/lino
43799e42107169ff173d3b8bc0324d5773471499
[ "BSD-2-Clause" ]
1
2019-11-13T19:38:50.000Z
2019-11-13T19:38:50.000Z
lino/sandbox/bcss/test2.py
khchine5/lino
64f7ca9c9b83459b5b9f26174e5e3c26a137459d
[ "BSD-2-Clause" ]
null
null
null
lino/sandbox/bcss/test2.py
khchine5/lino
64f7ca9c9b83459b5b9f26174e5e3c26a137459d
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- u""" Send a SOAP request to the :term: `BCSS` server using Dave Kuhlmann's :term:`generateDS` (version 2.6a). Continued from :mod:`lino.sandbox.bcss.test`. File :file:`SSDNRequest.py` has been modified manually for <any> support according to Dave's instructions. When running this script you n...
27.661654
78
0.686056
793f11c62f9f5f0a4337cd125a7bf924a6ddd631
46,402
py
Python
pandas/tests/io/excel/test_writers.py
quanghm/pandas
4441b3361998168a9f3621aae067a9d5b050516d
[ "BSD-3-Clause" ]
1
2019-12-04T21:29:15.000Z
2019-12-04T21:29:15.000Z
pandas/tests/io/excel/test_writers.py
quanghm/pandas
4441b3361998168a9f3621aae067a9d5b050516d
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/io/excel/test_writers.py
quanghm/pandas
4441b3361998168a9f3621aae067a9d5b050516d
[ "BSD-3-Clause" ]
null
null
null
from datetime import date, datetime, timedelta from functools import partial from io import BytesIO import os import numpy as np import pytest from pandas.compat import PY36 import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame, Index, MultiIndex, get_option, set_option import pa...
36.251563
88
0.569329
793f134743c6e9f10011a85535c64afbd76dafc4
9,429
py
Python
models/layers/mesh_pool.py
KathaRies/MeshCNN
be73736890c49d175cde80830a28352946e23611
[ "MIT" ]
null
null
null
models/layers/mesh_pool.py
KathaRies/MeshCNN
be73736890c49d175cde80830a28352946e23611
[ "MIT" ]
null
null
null
models/layers/mesh_pool.py
KathaRies/MeshCNN
be73736890c49d175cde80830a28352946e23611
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from threading import Thread from MeshCNN.models.layers.mesh_union import MeshUnion import numpy as np from heapq import heappop, heapify class MeshPool(nn.Module): def __init__(self, target, multi_thread=False): super(MeshPool, self).__init__() self.__out_targe...
42.09375
99
0.616608
793f14cc4fbfc1d4bf66467bdeab0c9602c83876
8,488
py
Python
python/plugin/grad_shafranov.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
1
2021-10-21T17:15:26.000Z
2021-10-21T17:15:26.000Z
python/plugin/grad_shafranov.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
null
null
null
python/plugin/grad_shafranov.py
NegriLuca/pigasus
d5057b771f81cfa05bb08ea4b0fd99088150cd7a
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- #!/usr/bin/env python import numpy as np from sympy import * from sympy.matrices import * from scipy.optimize import root from matplotlib import pyplot as plt from scipy.integrate import quad #from poisson_nonlin import poisson_picard as PDE_picard #__all__ = ['genPoints', 'genFigure', 'genDo...
28.38796
100
0.441447
793f15eaf6f3343a2197c422e4d07ee2591e0b19
2,797
py
Python
setup.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
2
2020-01-13T14:41:08.000Z
2020-01-29T10:21:04.000Z
setup.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
1
2018-05-29T14:47:55.000Z
2018-05-29T14:47:55.000Z
setup.py
dougPhilips/python-seleniumpm
4ddff760cd4486bfd48efdb77e33fb4574dc0e5d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import re import sys from codecs import open # from distutils.core import setup from setuptools import setup from setuptools.command.test import test as TestCommand class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")] def initi...
31.426966
105
0.643547
793f166fb7139249a2431c93cf6b711a8cf1984c
4,726
py
Python
awswrangler/_utils.py
mbeacom/aws-data-wrangler
2e018ec3d0d2eaf073f759be65cfd75ee2bdce10
[ "Apache-2.0" ]
null
null
null
awswrangler/_utils.py
mbeacom/aws-data-wrangler
2e018ec3d0d2eaf073f759be65cfd75ee2bdce10
[ "Apache-2.0" ]
null
null
null
awswrangler/_utils.py
mbeacom/aws-data-wrangler
2e018ec3d0d2eaf073f759be65cfd75ee2bdce10
[ "Apache-2.0" ]
null
null
null
"""Internal (private) Utilities Module.""" import logging import math import os from typing import Any, Dict, Generator, List, Optional, Tuple import boto3 # type: ignore import botocore.config # type: ignore import numpy as np # type: ignore import psycopg2 # type: ignore import s3fs # type: ignore logger: log...
29.17284
110
0.636479
793f16d137e3d92249c3ab3f63fd587fc84dc916
10,479
py
Python
StandardDataSets/1_5/collada/library_formulas/formula/multi_formula/multi_formula.py
KhronosGroup/COLLADA-CTS
61f2a560cbb2a06ee62da8025241f6b08d06bfd9
[ "MIT" ]
20
2015-03-19T08:02:57.000Z
2020-10-16T15:16:11.000Z
StandardDataSets/1_5/collada/library_formulas/formula/multi_formula/multi_formula.py
Acidburn0zzz/COLLADA-CTS
39a36188cf8710bbc003df43ed70b965eb4386bd
[ "MIT" ]
4
2017-04-19T18:42:05.000Z
2017-06-17T03:03:28.000Z
StandardDataSets/1_5/collada/library_formulas/formula/multi_formula/multi_formula.py
Acidburn0zzz/COLLADA-CTS
39a36188cf8710bbc003df43ed70b965eb4386bd
[ "MIT" ]
10
2015-03-26T02:52:24.000Z
2022-02-24T08:43:48.000Z
# Copyright (c) 2012 The Khronos Group Inc. # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and /or associated documentation files (the "Materials "), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publ...
54.578125
467
0.672583
793f1705a54f2706f329ff204674ee2afef842ae
9,690
py
Python
fhir/resources/STU3/endpoint.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/endpoint.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
fhir/resources/STU3/endpoint.py
chgl/fhir.resources
35b22314642640c0b25960ab5b2855e7c51749ef
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/Endpoint Release: STU3 Version: 3.0.2 Revision: 11917 Last updated: 2019-10-24T11:53:00+11:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pydantic.errors ...
39.713115
93
0.616512
793f17b586efd56a280155231d7a9545ba3fc0bc
13,393
py
Python
xcube/core/store/storepool.py
dcs4cop/xcube
c615df539d286d3adbd588886659602487bf5efa
[ "MIT" ]
97
2018-06-26T13:02:55.000Z
2022-03-26T21:03:13.000Z
xcube/core/store/storepool.py
dcs4cop/xcube
c615df539d286d3adbd588886659602487bf5efa
[ "MIT" ]
524
2018-11-09T12:00:08.000Z
2022-03-31T17:00:13.000Z
xcube/core/store/storepool.py
dcs4cop/xcube
c615df539d286d3adbd588886659602487bf5efa
[ "MIT" ]
15
2019-07-09T08:46:03.000Z
2022-02-07T18:47:34.000Z
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # 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...
37.620787
81
0.656164
793f181ddde1a6f6da053fd3c531f8ac30573c89
18,553
py
Python
masters/master.chromium.lkgr/master_lkgr_cfg.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
null
null
null
masters/master.chromium.lkgr/master_lkgr_cfg.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
null
null
null
masters/master.chromium.lkgr/master_lkgr_cfg.py
yjbanov/chromium_build
22e3872f14dbf367cd787caa638f3ac948eac7d7
[ "BSD-3-Clause" ]
1
2020-07-23T11:05:06.000Z
2020-07-23T11:05:06.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from master import gitiles_poller from master import master_config from master.factory import annotator_factory from master.factory import chromium_facto...
41.04646
118
0.65957
793f18ceaeedbcf29e81fc01885ef9e83ce200fd
394
py
Python
jobs/49-kafka-producer.py
Parthi10/Pyspark
a7943010f2af768d33051e09979c892c02bf0610
[ "MIT" ]
7
2019-03-14T04:50:47.000Z
2020-02-04T14:04:33.000Z
jobs/49-kafka-producer.py
Ranjan90/learn-pyspark
91152497eb733c3cf53ffa910dc9fc3948b01ad1
[ "MIT" ]
null
null
null
jobs/49-kafka-producer.py
Ranjan90/learn-pyspark
91152497eb733c3cf53ffa910dc9fc3948b01ad1
[ "MIT" ]
4
2019-12-04T18:24:56.000Z
2022-02-14T15:56:19.000Z
# kafka lessons, using kafka-python module # pip3 install kafka-python from kafka import KafkaProducer, KafkaConsumer, TopicPartition from time import sleep from json import dumps producer=KafkaProducer(bootstrap_servers=['localhost:9092'],value_serializer=lambda x:dumps(x).encode('utf-8')) for e in range(1000): ...
30.307692
111
0.758883
793f1999021f052b64f7bf18f16dbb33f5708b5a
27,448
py
Python
ai/models/pytorch/boundingBoxes/retinanet.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
1
2021-04-26T22:50:52.000Z
2021-04-26T22:50:52.000Z
ai/models/pytorch/boundingBoxes/retinanet.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
null
null
null
ai/models/pytorch/boundingBoxes/retinanet.py
junxnone/aerial_wildlife_detection
0eebed2aaf926ceb212b6a2b7a75bb0a82b28a88
[ "MIT" ]
2
2021-04-15T17:26:40.000Z
2021-04-15T17:26:53.000Z
''' RetinaNet trainer for PyTorch. 2019-20 Benjamin Kellenberger ''' import io import json from tqdm import tqdm import torch from torch.utils.data import DataLoader from ..genericPyTorchModel import GenericPyTorchModel from .. import parse_transforms from ..functional._retinanet import DEFAULT_OPTIONS, col...
48.323944
183
0.580771
793f1a535385e33397327f9f0c80090845ea1172
5,365
py
Python
dna_features_viewer/GraphicRecord/BokehPlottableMixin.py
ATayls/DnaFeaturesViewer
6ace5cdff96bf995aa26167868b0dbb47f5f5952
[ "MIT" ]
1
2020-12-12T16:55:58.000Z
2020-12-12T16:55:58.000Z
dna_features_viewer/GraphicRecord/BokehPlottableMixin.py
ATayls/DnaFeaturesViewer
6ace5cdff96bf995aa26167868b0dbb47f5f5952
[ "MIT" ]
null
null
null
dna_features_viewer/GraphicRecord/BokehPlottableMixin.py
ATayls/DnaFeaturesViewer
6ace5cdff96bf995aa26167868b0dbb47f5f5952
[ "MIT" ]
null
null
null
try: from bokeh.plotting import figure, ColumnDataSource from bokeh.models import Range1d, HoverTool BOKEH_AVAILABLE = True except ImportError: BOKEH_AVAILABLE = False try: import pandas as pd PANDAS_AVAILABLE = True except ImportError: PANDAS_AVAILABLE = False import matplotlib.pyplot a...
30.657143
85
0.440261
793f1aeac96ebabef7debb23b3e338780abe24d6
4,456
py
Python
source/conf.py
zozer/Denizen-Beginners-Guide
a98bcdcaf19c3aa1e4e07b18e703f679d5d04001
[ "MIT" ]
1
2022-01-25T17:07:56.000Z
2022-01-25T17:07:56.000Z
source/conf.py
Hydroxycobalamin/Denizen-Beginners-Guide
a98bcdcaf19c3aa1e4e07b18e703f679d5d04001
[ "MIT" ]
null
null
null
source/conf.py
Hydroxycobalamin/Denizen-Beginners-Guide
a98bcdcaf19c3aa1e4e07b18e703f679d5d04001
[ "MIT" ]
null
null
null
# for custom dScript lexer from pygments.lexer import RegexLexer, include from pygments import token from sphinx.highlighting import lexers # for markdown support import recommonmark from recommonmark.transform import AutoStructify # Project Info project = "Denizen Beginner's Guide" copyright = '2019-2022 The Denizen...
39.087719
104
0.494614
793f1ba0d7a2bbcded8640df566a00d926bcf53b
1,140
py
Python
kaaf/generate-example.py
itdagene-ntnu/kvittering
86b308f77957214d726efdcae6f6f63491fb73ed
[ "MIT" ]
null
null
null
kaaf/generate-example.py
itdagene-ntnu/kvittering
86b308f77957214d726efdcae6f6f63491fb73ed
[ "MIT" ]
null
null
null
kaaf/generate-example.py
itdagene-ntnu/kvittering
86b308f77957214d726efdcae6f6f63491fb73ed
[ "MIT" ]
null
null
null
import argparse import base64 from handler import create_pdf, modify_data default_data = { "date": "11-03-2020", "amount": "153 kr", "name": "Lar", "accountNumber": "010101010101", "group": "Bankett", "occasion": "Teste litt", "comment": "pls", } def main(data, out): data = modify_da...
22.8
78
0.614035
793f1bbb6691bde58493df5c316ec4a1cea26b84
3,395
py
Python
tests/frontend_api/test_dropout.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
13
2018-03-17T00:27:18.000Z
2020-06-18T01:36:34.000Z
tests/frontend_api/test_dropout.py
MUTTERSCHIFF/ngraph-neon
762e8ea639cdc671311ee4929bd1ee8cdf83e8bb
[ "Apache-2.0" ]
20
2018-03-17T14:49:04.000Z
2018-04-19T17:47:38.000Z
tests/frontend_api/test_dropout.py
NervanaSystems/ngraph-neon
8988ab90ee81c8b219ea5c374702e56d7f383302
[ "Apache-2.0" ]
5
2018-03-23T22:47:17.000Z
2020-10-21T16:15:02.000Z
# ****************************************************************************** # Copyright 2014-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
31.146789
80
0.617968
793f1d4ad9be684cc95190eb52f100b48762750c
180
py
Python
Strings/1632.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Strings/1632.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Strings/1632.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
three = ['A', 'E', 'I', 'O', 'S', 'a', 'e', 'i', 'o', 's'] for k in range(int(input())): res = 1 for w in input(): if w in three: res *= 3 else: res *= 2 print(res)
15
58
0.438889
793f1e8f6c80710317409b148a236e3460db2f6d
7,482
py
Python
mppsolar/protocols/jkabstractprotocol.py
trixing/mpp-solar
52ccb79776dae2430437fb96c7870cdb31ab0aa5
[ "MIT" ]
null
null
null
mppsolar/protocols/jkabstractprotocol.py
trixing/mpp-solar
52ccb79776dae2430437fb96c7870cdb31ab0aa5
[ "MIT" ]
null
null
null
mppsolar/protocols/jkabstractprotocol.py
trixing/mpp-solar
52ccb79776dae2430437fb96c7870cdb31ab0aa5
[ "MIT" ]
null
null
null
import logging import struct from .abstractprotocol import AbstractProtocol from .protocol_helpers import crc8 log = logging.getLogger("jkAbstractProtocol") SOR = bytes.fromhex("55aaeb90") COMMANDS = { "getInfo": { "name": "getInfo", "command_code": "97", "record_type": "3", "de...
42.754286
618
0.59984
793f1f17cdb1e1992aa6cbbe20efaf0c63bc962d
7,115
py
Python
nova/virt/libvirt/designer.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
1
2019-11-07T03:11:37.000Z
2019-11-07T03:11:37.000Z
nova/virt/libvirt/designer.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
null
null
null
nova/virt/libvirt/designer.py
gyliu513/nova
14e974a5f77c72a9bb44c6801746abb2eda8e91d
[ "Apache-2.0" ]
1
2021-01-11T04:07:52.000Z
2021-01-11T04:07:52.000Z
# Copyright (C) 2013 Red Hat, 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 applicable law or ...
33.247664
78
0.683767
793f1f92a023de607058fa0c23401ce8f56710a5
1,186
py
Python
src/dialogs/statisticDialog.py
Alopex4/spruce
2bf0bae18fe9b0d13691f2ee926071635cbe7c6f
[ "MIT" ]
1
2019-07-04T10:32:07.000Z
2019-07-04T10:32:07.000Z
src/dialogs/statisticDialog.py
Alopex4/spruce
2bf0bae18fe9b0d13691f2ee926071635cbe7c6f
[ "MIT" ]
null
null
null
src/dialogs/statisticDialog.py
Alopex4/spruce
2bf0bae18fe9b0d13691f2ee926071635cbe7c6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys from PyQt5 import QtWidgets from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import \ NavigationToolbar2QT as NavigationToolbar import matplotlib.pyplot as plt class StatisticDialog(Q...
29.65
80
0.687184
793f1fe8577bea5ecfff49dc479bb6daedf262b0
46,285
py
Python
wrappers/trace.py
Joshua-Ashton/apitrace
2353c8654941f6c599183287a7235a91ee83c038
[ "MIT" ]
47
2020-11-08T15:20:49.000Z
2021-08-16T01:41:49.000Z
wrappers/trace.py
Joshua-Ashton/apitrace
2353c8654941f6c599183287a7235a91ee83c038
[ "MIT" ]
null
null
null
wrappers/trace.py
Joshua-Ashton/apitrace
2353c8654941f6c599183287a7235a91ee83c038
[ "MIT" ]
1
2020-11-18T06:37:31.000Z
2020-11-18T06:37:31.000Z
########################################################################## # # Copyright 2008-2010 VMware, Inc. # All Rights Reserved. # # 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 withou...
41.886878
186
0.554024
793f20d12b8a9c08ade34dc804b61036c60f49ba
180
py
Python
Lectures_Codes/examples-05/lecture05/own_exception.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-05/lecture05/own_exception.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Lectures_Codes/examples-05/lecture05/own_exception.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class MyException(Exception): pass def foo(): raise MyException try: foo() except MyException: print('MyException occurred') raise
10.588235
33
0.661111
793f20e0419588065fc50db89767482d8e304723
395
py
Python
scripting/asgi.py
Kgermando/es-script
f1b10ecf2c805e8875a025e7033c724e236f6cd1
[ "Apache-2.0" ]
null
null
null
scripting/asgi.py
Kgermando/es-script
f1b10ecf2c805e8875a025e7033c724e236f6cd1
[ "Apache-2.0" ]
null
null
null
scripting/asgi.py
Kgermando/es-script
f1b10ecf2c805e8875a025e7033c724e236f6cd1
[ "Apache-2.0" ]
null
null
null
""" ASGI config for scripting project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
793f20e70eecdb8eac8a88f8342dcadd5572ed6e
4,023
py
Python
trainTripleClassification.py
lualiu/GanforKGE
29f68704cda5e58501c1ded635cd3ecae936d4bb
[ "Apache-2.0" ]
null
null
null
trainTripleClassification.py
lualiu/GanforKGE
29f68704cda5e58501c1ded635cd3ecae936d4bb
[ "Apache-2.0" ]
null
null
null
trainTripleClassification.py
lualiu/GanforKGE
29f68704cda5e58501c1ded635cd3ecae936d4bb
[ "Apache-2.0" ]
null
null
null
import argparse import os from preprocess.TripleClassificationData import TripleClassificationData from train.TrainTripleClassification import TrainTripleClassifcation from utils.readmodel import * os.environ["CUDA_VISIBLE_DEVICES"] = '3' FLAGS = None def main(FLAGS): data = TripleClassificationData( os.p...
38.314286
124
0.706189
793f21c96ec032a51fe3251e0e20e4ab3d18ae85
391
py
Python
ToDoApp/ToDoApp/asgi.py
AldarKose-dev/ToDoApp
38a74cf89245c829f7bfdb9beedc7a1c5effeb16
[ "MIT" ]
null
null
null
ToDoApp/ToDoApp/asgi.py
AldarKose-dev/ToDoApp
38a74cf89245c829f7bfdb9beedc7a1c5effeb16
[ "MIT" ]
null
null
null
ToDoApp/ToDoApp/asgi.py
AldarKose-dev/ToDoApp
38a74cf89245c829f7bfdb9beedc7a1c5effeb16
[ "MIT" ]
null
null
null
""" ASGI config for ToDoApp project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
23
78
0.785166
793f2291de3c441ac9051fa9398c71f78ea830b0
7,269
py
Python
scheduled_bots/geneprotein/__init__.py
gtsueng/scheduled-bots
e041905e4c5bf4e25d348474575cce91f78a0733
[ "MIT" ]
6
2017-05-04T01:04:26.000Z
2022-03-04T12:22:17.000Z
scheduled_bots/geneprotein/__init__.py
gtsueng/scheduled-bots
e041905e4c5bf4e25d348474575cce91f78a0733
[ "MIT" ]
55
2017-03-14T21:16:44.000Z
2022-03-02T12:39:14.000Z
scheduled_bots/geneprotein/__init__.py
gtsueng/scheduled-bots
e041905e4c5bf4e25d348474575cce91f78a0733
[ "MIT" ]
13
2017-02-10T21:40:06.000Z
2022-01-18T01:27:52.000Z
######### # Helper functions ######### type_of_gene_map = {'ncRNA': 'Q427087', 'snRNA': 'Q284578', 'snoRNA': 'Q284416', 'rRNA': 'Q215980', 'tRNA': 'Q201448', 'pseudo': 'Q277338', 'protein-coding': 'Q7...
28.505882
101
0.448342
793f2295752c3d0f0e9672042e24426226712328
232
py
Python
python/exercise/gcd.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
1
2021-01-24T02:07:34.000Z
2021-01-24T02:07:34.000Z
python/exercise/gcd.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
python/exercise/gcd.py
kindrabbit/programming
2c9b7e24e33ecc174c2efb51727b3886ebc00acf
[ "Apache-2.0" ]
null
null
null
def gcd(x,y): if x > y: divisor = y else: divisor = x while divisor > 0: if x % divisor == 0 and y % divisor == 0: break divisor -= 1 return divisor print(gcd(15600,2400))
19.333333
49
0.478448
793f245481588dd838d9f16d2a0e180aa6749262
2,894
py
Python
src/model/speech2gesture.py
chahuja/mix-stage
6f47626ce46bd9b28c45d1255b328b17b3650c4f
[ "MIT" ]
16
2020-07-14T10:13:59.000Z
2022-03-23T09:28:42.000Z
src/model/speech2gesture.py
chahuja/mix-stage
6f47626ce46bd9b28c45d1255b328b17b3650c4f
[ "MIT" ]
6
2020-11-16T09:21:02.000Z
2021-10-04T17:02:33.000Z
src/model/speech2gesture.py
chahuja/mix-stage
6f47626ce46bd9b28c45d1255b328b17b3650c4f
[ "MIT" ]
4
2020-08-23T20:05:13.000Z
2021-08-09T16:30:12.000Z
import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import pdb from .layers import * import torch import torch.nn as nn class Speech2Gesture_G(nn.Module): ''' Baseline: http://people.eecs.berkeley.edu/~shir...
38.078947
120
0.637526
793f24cff86942dc36718fb5ed92cbac0dcaf179
626
py
Python
migrations/versions/2020_07_25_6f1c5993e9f0_remove_sticker_id.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
82
2018-11-13T05:39:44.000Z
2022-01-18T17:08:44.000Z
migrations/versions/2020_07_25_6f1c5993e9f0_remove_sticker_id.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
25
2018-12-02T18:45:52.000Z
2022-03-21T22:54:19.000Z
migrations/versions/2020_07_25_6f1c5993e9f0_remove_sticker_id.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
23
2019-01-22T20:04:50.000Z
2022-02-01T14:57:28.000Z
"""Remove sticker.id Revision ID: 6f1c5993e9f0 Revises: ad326c5b7733 Create Date: 2020-07-25 16:37:23.543659 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "6f1c5993e9f0" down_revision = "ad326c5b7733" branch_labels = None depends_on = None def upgrade(): ...
18.411765
74
0.629393
793f253100b05f175a0c76f64ae9385c8b7135b7
12,500
py
Python
neural_sp/models/lm/transformer_xl.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
577
2018-09-17T14:39:34.000Z
2022-03-29T10:48:09.000Z
neural_sp/models/lm/transformer_xl.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
221
2019-04-21T01:44:09.000Z
2022-02-10T02:08:47.000Z
neural_sp/models/lm/transformer_xl.py
ishine/neural_sp
7995613541d994976b00d80dcc12e2835163acfb
[ "Apache-2.0" ]
139
2019-01-09T02:18:00.000Z
2022-03-29T07:40:08.000Z
# Copyright 2020 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """TransformerXL language model.""" import copy import logging import math import os import random import shutil import torch import torch.nn as nn from neural_sp.models.lm.lm_base import LMBase from neur...
40.453074
106
0.59584
793f26338078051928fc23f06a3e2202d7db0e95
3,346
py
Python
test/infrastructure/dns_server/servers_test.py
sasjafor/scion
cdcbd186d1350ad78f365556b771ada522bd33ed
[ "Apache-2.0" ]
1
2018-03-18T14:46:34.000Z
2018-03-18T14:46:34.000Z
test/infrastructure/dns_server/servers_test.py
sasjafor/scion
cdcbd186d1350ad78f365556b771ada522bd33ed
[ "Apache-2.0" ]
null
null
null
test/infrastructure/dns_server/servers_test.py
sasjafor/scion
cdcbd186d1350ad78f365556b771ada522bd33ed
[ "Apache-2.0" ]
1
2018-03-14T14:59:57.000Z
2018-03-14T14:59:57.000Z
# Copyright 2015 ETH Zurich # # 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, sof...
35.978495
76
0.711297
793f2684c93a63e4fb9e1cee2a0469da29b5c593
5,223
py
Python
w2v_cnn+lstm.py
mosalen/Keras-Spam-Detection-with-CNN-W2V
0a2660c50de1d6e37175b30b3e45689bce8aa58c
[ "MIT" ]
null
null
null
w2v_cnn+lstm.py
mosalen/Keras-Spam-Detection-with-CNN-W2V
0a2660c50de1d6e37175b30b3e45689bce8aa58c
[ "MIT" ]
null
null
null
w2v_cnn+lstm.py
mosalen/Keras-Spam-Detection-with-CNN-W2V
0a2660c50de1d6e37175b30b3e45689bce8aa58c
[ "MIT" ]
null
null
null
#coding:utf-8 import sys import keras VECTOR_DIR = 'D:/TBdata/baike26g_news13g_novel229g_128.bin' #'D:/first/text_classification/wiki.zh.vector.bin' MAX_SEQUENCE_LENGTH = 200 EMBEDDING_DIM = 128 VALIDATION_SPLIT = 0.2 TEST_SPLIT = 0.2 print ('(1) load texts...') train_texts = open('D:/TBdata/我的语料库/random/01/traint...
31.089286
106
0.712809
793f2706c65bbcbfde7e2cff5dd24f6cc2654e34
3,162
py
Python
life/button.py
DavidY-Li/cell-life
8fd38331f4f917cad787766676311615def8c8c7
[ "MIT" ]
2
2021-03-05T01:26:57.000Z
2021-03-05T02:37:06.000Z
life/button.py
DavidY-Li/cell-life
8fd38331f4f917cad787766676311615def8c8c7
[ "MIT" ]
null
null
null
life/button.py
DavidY-Li/cell-life
8fd38331f4f917cad787766676311615def8c8c7
[ "MIT" ]
null
null
null
import pygame # Button class for easier generation of buttons class Button: def __init__( self, primary, hover_color, x, y, width, height, text, font=18, padding=13, secondary_text="", on_click=None, font_colo...
30.114286
74
0.485136
793f274382c8aa2f9665f22640fe90d51f2872ba
10,414
py
Python
make_postcards.py
BoiseStatePlanetary/eleanor
823cfb8e9972b0600cfe20e6a66b5956a9a177d5
[ "MIT" ]
null
null
null
make_postcards.py
BoiseStatePlanetary/eleanor
823cfb8e9972b0600cfe20e6a66b5956a9a177d5
[ "MIT" ]
null
null
null
make_postcards.py
BoiseStatePlanetary/eleanor
823cfb8e9972b0600cfe20e6a66b5956a9a177d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["make_postcards"] import os import glob import tqdm import fitsio import numpy as np from time import strftime from astropy.wcs import WCS from astropy.table import Table from astropy.stats import SigmaClip from ...
39.44697
107
0.561456
793f2756b9c7d0b9d69bd4021c55367ec6d1eb26
12,514
py
Python
lumin/nn/metrics/reg_eval.py
matthewfeickert/lumin
00c5f9f3d8a630d780ce09017ff13eb27485534c
[ "Apache-2.0" ]
null
null
null
lumin/nn/metrics/reg_eval.py
matthewfeickert/lumin
00c5f9f3d8a630d780ce09017ff13eb27485534c
[ "Apache-2.0" ]
null
null
null
lumin/nn/metrics/reg_eval.py
matthewfeickert/lumin
00c5f9f3d8a630d780ce09017ff13eb27485534c
[ "Apache-2.0" ]
null
null
null
import numpy as np from typing import Optional, Callable import pandas as pd from statsmodels.stats.weightstats import DescrStatsW from fastcore.all import store_attr from ...utils.statistics import bootstrap_stats from .eval_metric import EvalMetric, OldEvalMetric from ..data.fold_yielder import FoldYielder __all__ ...
47.222642
154
0.644398
793f276e9e9b3130b7c530884a8d4c02b75c072d
14,772
py
Python
src/google/appengine/api/mail_service_pb2.py
asriniva/appengine-python-standard
8a5abedfe99b27a4dcb31fd47d3ba7b62fd0e47c
[ "Apache-2.0" ]
28
2021-01-06T19:55:21.000Z
2022-03-28T09:41:08.000Z
src/google/appengine/api/mail_service_pb2.py
asriniva/appengine-python-standard
8a5abedfe99b27a4dcb31fd47d3ba7b62fd0e47c
[ "Apache-2.0" ]
13
2021-06-17T09:38:17.000Z
2022-03-11T01:12:33.000Z
src/google/appengine/api/mail_service_pb2.py
asriniva/appengine-python-standard
8a5abedfe99b27a4dcb31fd47d3ba7b62fd0e47c
[ "Apache-2.0" ]
28
2021-03-09T19:27:37.000Z
2022-01-21T21:18:52.000Z
#!/usr/bin/env python # # Copyright 2007 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.728814
1,275
0.752031
793f2818c34a262f9f300b0a7458aac23aee1372
1,485
py
Python
indico/modules/events/registration/models/legacy_mapping.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
1
2021-06-11T20:02:10.000Z
2021-06-11T20:02:10.000Z
indico/modules/events/registration/models/legacy_mapping.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
indico/modules/events/registration/models/legacy_mapping.py
bkmgit/indico
d77ee121e35880a416b9b05e6098ea912d870b5c
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2022 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.db import db from indico.util.string import format_repr class LegacyRegistrationMapping...
26.052632
112
0.642424
793f2b848c3758a8f7dae311e7d721594f8e8f09
3,424
py
Python
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
189
2019-05-27T08:20:10.000Z
2022-03-28T09:29:22.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
60
2019-06-11T15:07:48.000Z
2022-03-25T02:31:23.000Z
setup.py
HEmile/problog
576b6fd305f72b12125111c8d4d62cf8a7bbda0f
[ "Apache-2.0" ]
33
2019-07-03T13:14:24.000Z
2022-02-20T01:07:15.000Z
#! /usr/bin/env python import sys import os version_file = os.path.join( os.path.abspath(os.path.dirname(__file__)), "problog/version.py" ) version = {} with open(version_file) as fp: exec(fp.read(), version) version = version["version"] if __name__ == "__main__" and len(sys.argv) == 1: from problog im...
29.517241
88
0.561332
793f2cc756a4b80f4e78a2eefce83882b069e043
2,338
py
Python
var/spack/repos/builtin/packages/r-multtest/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/r-multtest/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/r-multtest/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RMulttest(RPackage): """Resampling-based multiple hypothesis testing. Non-parametr...
51.955556
79
0.738238
793f2f9e1987b7b3c549474b98984dc48944b865
6,978
py
Python
findspark.py
minrk/find-spark
527323546f5d8dd4a2365cac0af795825d222fa4
[ "BSD-3-Clause" ]
null
null
null
findspark.py
minrk/find-spark
527323546f5d8dd4a2365cac0af795825d222fa4
[ "BSD-3-Clause" ]
null
null
null
findspark.py
minrk/find-spark
527323546f5d8dd4a2365cac0af795825d222fa4
[ "BSD-3-Clause" ]
null
null
null
"""Find spark home, and initialize by adding pyspark to sys.path. If SPARK_HOME is defined, it will be used to put pyspark on sys.path. Otherwise, common locations for spark will be searched. """ from glob import glob import os import sys __version__ = "2.0.1" def find(): """Find a local spark installation. ...
31.29148
100
0.637002
793f2fef9eea3ee2742a0bc7edf1951ba95d15fa
2,465
py
Python
data/p4VQE/R4/benchmark/startQiskit252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit252.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.388889
118
0.634483
793f31411e745ceabbdce63800bb38c149c8c434
2,568
py
Python
simplemonitor/Alerters/ses.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
373
2015-12-21T02:39:21.000Z
2022-03-08T10:49:43.000Z
simplemonitor/Alerters/ses.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
910
2015-10-13T08:16:38.000Z
2022-03-29T12:16:52.000Z
simplemonitor/Alerters/ses.py
cgroschupp/simplemonitor
0d4cb4823193bdd93c3f9176eea3bfab07007be1
[ "BSD-3-Clause" ]
196
2015-03-24T19:15:42.000Z
2022-02-06T22:39:55.000Z
""" SimpleMonitor alerts via Amazon Simple Email Service """ import os from typing import Any, Dict, cast import boto3 from botocore.exceptions import ClientError from ..Monitors.monitor import Monitor from .alerter import Alerter, AlertLength, AlertType, register @register class SESAlerter(Alerter): """Send e...
33.350649
87
0.633956
793f32812fdf13fae3277facb837cda35c49043d
611
py
Python
HardwareTests/AsynchronousTests/_x__asynchTests.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
HardwareTests/AsynchronousTests/_x__asynchTests.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
HardwareTests/AsynchronousTests/_x__asynchTests.py
JetStarBlues/Nand-2-Tetris
c27b5c2ac659f1edb63d36d89bf87e226bc5672c
[ "MIT" ]
null
null
null
''' In the spirit of http://www.diveintopython3.net/unit-testing.html http://www.diveintopython3.net/refactoring.html The tutorials show how maintainable and refactorable code becomes when use tests ''' '''------------------------------ Imports ------------------------------''' # Built ins import ...
26.565217
84
0.569558
793f329b122ec6bf32fbd5745d939b3b133ab25f
10,179
py
Python
contrib/spendfrom/spendfrom.py
puzcoin/scap-coin
6a1c0dee69c59b0dc168f8419d7d97b33f75c867
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
puzcoin/scap-coin
6a1c0dee69c59b0dc168f8419d7d97b33f75c867
[ "MIT" ]
null
null
null
contrib/spendfrom/spendfrom.py
puzcoin/scap-coin
6a1c0dee69c59b0dc168f8419d7d97b33f75c867
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Use the raw transactions API to spend SCAPs received on particular addresses, # and send any change back to that same address. # # Example usage: # spendfrom.py # Lists available funds # spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00 # # Assumes it will talk to a safecapitald or sa...
37.981343
111
0.637784
793f33d0502d3ba9b1c600eae12927fe9ce00e48
2,154
py
Python
homeassistant/components/scheduler/time.py
mikiec84/home-assistant
d9e3c02df3a2690e74d1b606e8db0a4dd686e872
[ "MIT" ]
null
null
null
homeassistant/components/scheduler/time.py
mikiec84/home-assistant
d9e3c02df3a2690e74d1b606e8db0a4dd686e872
[ "MIT" ]
null
null
null
homeassistant/components/scheduler/time.py
mikiec84/home-assistant
d9e3c02df3a2690e74d1b606e8db0a4dd686e872
[ "MIT" ]
null
null
null
""" homeassistant.components.scheduler.time ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ An event in the scheduler component that will call the service every specified day at the time specified. A time event need to have the type 'time', which service to call and at which time. { "type": "time", "service": "switch....
30.771429
74
0.65506
793f342c2a5a9ae58d181863697d533850a8e69d
2,889
py
Python
test/functional/test_framework/address.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
null
null
null
test/functional/test_framework/address.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
null
null
null
test/functional/test_framework/address.py
pbitmonkey/bitmonkey-debug
f48bab02e88b1fcf445c59380e6fda018d86f462
[ "MIT" ]
1
2020-11-04T06:59:13.000Z
2020-11-04T06:59:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2019 The bitmonkey Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Encode and decode BASE58, P2PKH and P2SH addresses.""" from .script import hash256, hash160, sha256,...
31.747253
94
0.69055
793f34a8c1176e95220dbfeacd683d9d6ce72032
4,857
py
Python
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/user.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
1
2019-02-04T21:07:06.000Z
2019-02-04T21:07:06.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/user.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
9
2020-03-24T16:32:57.000Z
2022-03-11T23:37:22.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/user.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
39.487805
336
0.640107
793f36a021d93be1cc38ee4a5c3bd4655d8331b2
1,069
py
Python
tests/console/commands/self/utils.py
zEdS15B3GCwq/poetry
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
[ "MIT" ]
7,258
2018-02-28T16:23:08.000Z
2019-12-11T18:27:58.000Z
tests/console/commands/self/utils.py
zEdS15B3GCwq/poetry
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
[ "MIT" ]
1,608
2018-02-28T15:31:35.000Z
2019-12-11T20:00:05.000Z
tests/console/commands/self/utils.py
zEdS15B3GCwq/poetry
2afe9840533aacfe561d3fdf65c6fb2e790d89b1
[ "MIT" ]
597
2018-03-07T15:07:46.000Z
2019-12-11T16:36:22.000Z
from __future__ import annotations from pathlib import Path from typing import TYPE_CHECKING from poetry.factory import Factory if TYPE_CHECKING: from tomlkit.container import Table as TOMLTable def get_self_command_dependencies(locked: bool = True) -> TOMLTable: from poetry.console.commands.self.self_com...
31.441176
88
0.782039
793f382f6306325ed08e967eb555c8cf08a6a80c
1,690
py
Python
PY2/colorprint/methods.py
apua/colorprint
4c8b22c21447b587dc827be83feb79084504cdaa
[ "WTFPL" ]
null
null
null
PY2/colorprint/methods.py
apua/colorprint
4c8b22c21447b587dc827be83feb79084504cdaa
[ "WTFPL" ]
10
2015-02-10T04:00:30.000Z
2015-03-01T06:20:36.000Z
PY2/colorprint/methods.py
apua/colorprint
4c8b22c21447b587dc827be83feb79084504cdaa
[ "WTFPL" ]
null
null
null
""" Provide `print` and `pprint` methods. """ from __future__ import print_function from .attributes import attr_names def colorform(values): attrs = ';'.join(map(str, values)) return '\033[{}m{{}}\033[m'.format(attrs) class ColorPrint: _print = print def __init__(self, values=()): self....
28.166667
76
0.584615
793f390d2399e48bd918f6bb5edba794588572ce
4,439
py
Python
source/streaming/geh_stream/batch_operations/monitor_batch.py
Energinet-DataHub/geh-timeseries
24e92e7664e3d3774f941973ed7563837385748a
[ "Apache-2.0" ]
5
2021-04-23T08:10:57.000Z
2021-12-17T03:14:03.000Z
source/streaming/geh_stream/batch_operations/monitor_batch.py
Energinet-DataHub/geh-timeseries
24e92e7664e3d3774f941973ed7563837385748a
[ "Apache-2.0" ]
335
2021-04-14T19:10:40.000Z
2022-03-28T13:02:20.000Z
source/streaming/geh_stream/batch_operations/monitor_batch.py
Energinet-DataHub/geh-timeseries
24e92e7664e3d3774f941973ed7563837385748a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Energinet DataHub A/S # # Licensed under the Apache License, Version 2.0 (the "License2"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
54.134146
160
0.76301
793f3958c64d201d39067caade8e62218c818fd5
25,896
py
Python
sklearn/manifold/_spectral_embedding.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
199
2020-08-27T09:03:21.000Z
2021-11-09T11:21:07.000Z
sklearn/manifold/_spectral_embedding.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
4
2020-01-28T20:43:24.000Z
2020-11-12T15:59:34.000Z
sklearn/manifold/_spectral_embedding.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
18
2018-03-29T00:01:38.000Z
2021-10-10T12:11:37.000Z
"""Spectral Embedding.""" # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Wei LI <kuantkid@gmail.com> # License: BSD 3 clause import warnings import numpy as np from scipy import sparse from scipy.linalg import eigh from scipy.sparse.linalg import eigsh from scipy.sparse.csgraph import connected_...
38.026432
88
0.632646
793f395eee1807f59e4a98aa2758da1839fb2ff7
10,425
py
Python
rpython/rlib/rtime.py
SeraphRoy/PyPy-Functional
e825dce7f7c484fa666566974a93ed5d59fb73be
[ "Apache-2.0", "OpenSSL" ]
4
2019-02-11T06:58:43.000Z
2020-03-15T14:12:32.000Z
rpython/rlib/rtime.py
murtyjones/kiwi-pypy
1419c7de61a11b2d29602b25506cb3b4f225996e
[ "Apache-2.0", "OpenSSL" ]
null
null
null
rpython/rlib/rtime.py
murtyjones/kiwi-pypy
1419c7de61a11b2d29602b25506cb3b4f225996e
[ "Apache-2.0", "OpenSSL" ]
null
null
null
""" RPython implementations of time.time(), time.clock(), time.select(). """ import sys import math import time as pytime from rpython.translator.tool.cbuild import ExternalCompilationInfo from rpython.rtyper.tool import rffi_platform from rpython.rtyper.lltypesystem import rffi, lltype from rpython.rlib.objectmodel i...
37.5
80
0.601631
793f3ae350c49f6b306a0375b3a9fd12e1920a61
780
py
Python
src/stories/_return.py
sashgorokhov-forks/stories
ae0596cd1c6eb2b159bc652706d28ed934af1507
[ "BSD-2-Clause" ]
null
null
null
src/stories/_return.py
sashgorokhov-forks/stories
ae0596cd1c6eb2b159bc652706d28ed934af1507
[ "BSD-2-Clause" ]
null
null
null
src/stories/_return.py
sashgorokhov-forks/stories
ae0596cd1c6eb2b159bc652706d28ed934af1507
[ "BSD-2-Clause" ]
null
null
null
from ._repr import namespace_representation class Result(object): def __init__(self, value=None): self.value = value def __repr__(self): return self.__class__.__name__ + "(" + repr(self.value) + ")" class Success(object): def __init__(self, **kwargs): self.kwargs = kwargs d...
22.941176
87
0.615385
793f3b91c4332ee2098cb644b7df4aab959f35f6
6,468
py
Python
tests/ut/python/parallel/test_gather_v2.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/ut/python/parallel/test_gather_v2.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/ut/python/parallel/test_gather_v2.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
37.387283
102
0.672696
793f3e436ca884b945e0fc70a026fe990f696426
9,988
py
Python
key_word_num/cifar100vgg.py
Carrie2001/Chinese-poems-generation-based-on-pictures
63e180c207bde1559b290e79e70b0fa0ce8b0c33
[ "MIT" ]
1
2022-01-14T17:27:28.000Z
2022-01-14T17:27:28.000Z
key_word_num/cifar100vgg.py
Carrie2001/Chinese-poems-generation-based-on-pictures
63e180c207bde1559b290e79e70b0fa0ce8b0c33
[ "MIT" ]
null
null
null
key_word_num/cifar100vgg.py
Carrie2001/Chinese-poems-generation-based-on-pictures
63e180c207bde1559b290e79e70b0fa0ce8b0c33
[ "MIT" ]
null
null
null
from __future__ import print_function import keras from keras.datasets import cifar100 from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D, BatchNormalization from keras i...
36.586081
120
0.651382
793f3e5587c2648c5cce05606c8889bfe6e2c709
1,835
py
Python
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
1
2017-12-31T18:09:06.000Z
2017-12-31T18:09:06.000Z
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
argumentosSimple.py
sanxofon/basicnlp3
289415ec07fae69af04a8354bb9a9801cad564b8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Hay diversas maneras de recibir información del usuario en la terminal Para pedir información al usuario DURANTE la ejecución de un script podemos usar la función "raw_input" (python2) o "input" (python3) y guardar la respuesta en una variable como se puede ver en el ...
42.674419
110
0.751499
793f3e6b9bbb0a8d3be5a1c24757484d5404acfc
314
py
Python
test/tests/globals.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/tests/globals.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/tests/globals.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
def f(): z = 1 print x # non-builtin, but defined print True # builtin, redefined print False # builtin, not redefined print z # local try: print y # non-builtin, not defined except NameError, e: print e x = 2 z = 2 True = "new_true" f() assert globals() is globals()
17.444444
42
0.595541
793f3e7d2f44e76c3ded0b4e42a09eda0736a12d
3,183
py
Python
samples/summarize-bot/siatl/logger/plotting.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/siatl/logger/plotting.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/siatl/logger/plotting.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
import numpy from visdom import Visdom # import matplotlib.pyplot as plt # import seaborn as sns class Visualizer: def __init__(self, env="main", server="http://localhost", port=8097, base_url="/", http_proxy_host=None, http_pro...
37.447059
76
0.395853
793f3ee0bc60e3479f3565b56c6638783a2f4424
6,910
py
Python
tests/lib/metrics_test.py
rjlohan/cloudformation-cli-python-plugin
f195602b2402407ccc5b6210771d14db5d9e25ca
[ "Apache-2.0" ]
null
null
null
tests/lib/metrics_test.py
rjlohan/cloudformation-cli-python-plugin
f195602b2402407ccc5b6210771d14db5d9e25ca
[ "Apache-2.0" ]
null
null
null
tests/lib/metrics_test.py
rjlohan/cloudformation-cli-python-plugin
f195602b2402407ccc5b6210771d14db5d9e25ca
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member from datetime import datetime from unittest.mock import MagicMock, call, patch import boto3 from cloudformation_cli_python_lib.interface import Action, MetricTypes, StandardUnit from cloudformation_cli_python_lib.metrics import ( MetricPublisher, MetricsPublisherProxy, format_di...
35.255102
87
0.578437
793f3f226957800f284fd84218d3621c3074c95c
473
py
Python
testing/gomodules/setup.py
pytogo/setuptools-golang
953b869874ad45e4929287119912a22885993fc4
[ "MIT" ]
64
2016-08-16T22:32:43.000Z
2022-03-22T09:15:35.000Z
testing/gomodules/setup.py
pytogo/setuptools-golang
953b869874ad45e4929287119912a22885993fc4
[ "MIT" ]
25
2017-01-30T04:26:00.000Z
2022-03-08T15:22:58.000Z
testing/gomodules/setup.py
pytogo/setuptools-golang
953b869874ad45e4929287119912a22885993fc4
[ "MIT" ]
18
2016-07-12T21:08:25.000Z
2022-03-22T09:15:40.000Z
from setuptools import Extension from setuptools import setup setup( name='gomod', ext_modules=[Extension('gomodules', ['reversemsg.go'])], build_golang={ 'root': 'github.com/asottile/setuptools-golang/testing/gomodules', }, # Would do this, but we're testing *our* implementation and this ...
29.5625
74
0.697674
793f41ce42c72b98acbc170a04df212c8b9a1f03
12,518
py
Python
modules/dbnd/src/dbnd/_core/tracking/script_tracking_manager.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
224
2020-01-02T10:46:37.000Z
2022-03-02T13:54:08.000Z
modules/dbnd/src/dbnd/_core/tracking/script_tracking_manager.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
16
2020-03-11T09:37:58.000Z
2022-01-26T10:22:08.000Z
modules/dbnd/src/dbnd/_core/tracking/script_tracking_manager.py
databand-ai/dbnd
0370409e38773be8812088622953a3aa306eb564
[ "Apache-2.0" ]
24
2020-03-24T13:53:50.000Z
2022-03-22T11:55:18.000Z
import atexit import logging import os import sys import typing from subprocess import list2cmdline from typing import Optional from dbnd._core.configuration import get_dbnd_project_config from dbnd._core.configuration.config_value import ConfigValuePriority from dbnd._core.configuration.dbnd_config import config fro...
34.772222
118
0.679661
793f420c1d852fcb66de2fbd169c54bf7364ba2f
22,183
py
Python
source/gui/ui_main_window.py
playboy8/starquant
21ff009167251209492e61ce1cb523e141946127
[ "Apache-2.0" ]
322
2019-04-03T15:31:46.000Z
2022-03-21T13:32:06.000Z
source/gui/ui_main_window.py
synasy/starquant
c00cad64d1de2da05081b3dc320ef264c6295e08
[ "Apache-2.0" ]
11
2019-04-03T15:32:09.000Z
2021-12-19T13:14:58.000Z
source/gui/ui_main_window.py
synasy/starquant
c00cad64d1de2da05081b3dc320ef264c6295e08
[ "Apache-2.0" ]
110
2019-04-03T15:54:58.000Z
2022-03-25T09:26:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from queue import Queue from PyQt5 import QtCore, QtWidgets, QtGui from datetime import datetime import requests import itchat from source.common.constant import EventType import pyqtgraph.console # from source.trade.order_manager import OrderManager from source.trade.risk...
40.186594
137
0.629807
793f422e84f7b52e1886f562ffa9bef115e9eca2
13,086
py
Python
UnsupervisedMT/NMT/src/utils.py
zsl-nlp/DeepOffense-Unsupervised
3c6f18eefd1d7302ba2c77eeb1a3ab47d7991fc4
[ "RSA-MD" ]
null
null
null
UnsupervisedMT/NMT/src/utils.py
zsl-nlp/DeepOffense-Unsupervised
3c6f18eefd1d7302ba2c77eeb1a3ab47d7991fc4
[ "RSA-MD" ]
null
null
null
UnsupervisedMT/NMT/src/utils.py
zsl-nlp/DeepOffense-Unsupervised
3c6f18eefd1d7302ba2c77eeb1a3ab47d7991fc4
[ "RSA-MD" ]
null
null
null
# Copyright (c) 2018-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # import os import re import sys import pickle import random import inspect import argparse import subprocess from logging import...
35.177419
141
0.620816
793f429f6e9af7f4c46a188d1c7ee66cde711bb9
82,317
py
Python
src/transformers/modeling_utils.py
cbrochtrup/transformers
c89bdfbe720bc8f41c7dc6db5473a2cb0955f224
[ "Apache-2.0" ]
1
2020-11-30T09:01:57.000Z
2020-11-30T09:01:57.000Z
src/transformers/modeling_utils.py
cbrochtrup/transformers
c89bdfbe720bc8f41c7dc6db5473a2cb0955f224
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_utils.py
cbrochtrup/transformers
c89bdfbe720bc8f41c7dc6db5473a2cb0955f224
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
48.393298
197
0.628048
793f43e9bbe35f198038b988a0026eeaaf685976
1,367
py
Python
asv_bench/benchmarks/tslibs/tz_convert.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
28,899
2016-10-13T03:32:12.000Z
2022-03-31T21:39:05.000Z
asv_bench/benchmarks/tslibs/tz_convert.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
31,004
2016-10-12T23:22:27.000Z
2022-03-31T23:17:38.000Z
asv_bench/benchmarks/tslibs/tz_convert.py
Pawel-Kranzberg/pandas
6f90cb3d7bd5891d15a427252fba00027ca6084d
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
15,149
2016-10-13T03:21:31.000Z
2022-03-31T18:46:47.000Z
import numpy as np from pytz import UTC from pandas._libs.tslibs.tzconversion import tz_localize_to_utc from .tslib import ( _sizes, _tzs, tzlocal_obj, ) try: old_sig = False from pandas._libs.tslibs.tzconversion import tz_convert_from_utc except ImportError: old_sig = True from pandas._l...
27.897959
82
0.643745
793f446389f44cfedb0528d0e08a4d921537d099
3,567
py
Python
bmtk/simulator/filternet/lgnmodel/fitfuns.py
aaberbach/bmtk
42aa70ce2003227a32df6ce5a95420dbf4bdfbd4
[ "BSD-3-Clause" ]
216
2017-10-03T17:02:42.000Z
2022-03-20T03:35:48.000Z
bmtk/simulator/filternet/lgnmodel/fitfuns.py
moekay/bmtk
6efdf6387d2a6badf276b917ee15d238daeae883
[ "BSD-3-Clause" ]
70
2017-10-05T00:50:41.000Z
2022-03-30T18:55:01.000Z
bmtk/simulator/filternet/lgnmodel/fitfuns.py
moekay/bmtk
6efdf6387d2a6badf276b917ee15d238daeae883
[ "BSD-3-Clause" ]
97
2017-10-03T22:15:06.000Z
2022-03-23T21:03:26.000Z
import os from math import * import numpy as np import numpy.fft as npft def makeFitStruct_GLM(dtsim, kbasprs, nkt, flag_exp): gg = {} gg['k'] = [] gg['dc'] = 0 gg['kt'] = np.zeros((nkt,1)) gg['ktbas'] = [] gg['kbasprs'] = kbasprs gg['dt'] = dtsim nkt = nkt if ...
26.227941
120
0.537707
793f4538cfa2fd90aafcc0ec1cc494c786b444b8
399
py
Python
exam_system/exam_system/wsgi.py
hiruthikj/exam-system
952cb87bd43b31f6337aac1f1e57e05a68e7c531
[ "Apache-2.0" ]
3
2020-11-16T17:32:56.000Z
2021-04-07T14:16:24.000Z
exam_system/exam_system/wsgi.py
hiruthikj/exam-system
952cb87bd43b31f6337aac1f1e57e05a68e7c531
[ "Apache-2.0" ]
null
null
null
exam_system/exam_system/wsgi.py
hiruthikj/exam-system
952cb87bd43b31f6337aac1f1e57e05a68e7c531
[ "Apache-2.0" ]
1
2020-11-03T17:10:20.000Z
2020-11-03T17:10:20.000Z
""" WSGI config for exam_system 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
23.470588
78
0.789474
793f4901f11f8ce15bfae1fbab52409dfb3f3408
1,689
py
Python
template_main.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
1
2021-04-02T15:33:12.000Z
2021-04-02T15:33:12.000Z
template_main.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
null
null
null
template_main.py
cristi161/eecvf
519c488bd47f697ef51e88823f7a751a52677b88
[ "MIT" ]
1
2021-08-14T09:07:22.000Z
2021-08-14T09:07:22.000Z
import Application import Benchmarking import MachineLearning import config_main as CONFIG import Utils def main(): """ """ Application.delete_folder_appl_out() Application.set_input_image_folder('TestData/smoke_test') Application.do_get_image_job('RAW') Application.set_number_w...
36.717391
108
0.725281
793f492f83d33ed72b3febc88c8295eadd9fa588
626
py
Python
pangolin/core/utils.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
pangolin/core/utils.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
pangolin/core/utils.py
skylifewww/pangolinreact
8d8a45fd15c442618f2ed1ecab15e2e2ab4b7a3a
[ "MIT" ]
null
null
null
import re from purl import URL from django.utils.encoding import force_text def intspace(value): """ 45570 => 45 570 450840 => 450 840 1450000 => 1 450 000 """ orig = force_text(value) new = re.sub(r'^(-?\d+)(\d{3})', '\g<1> \g<2>', orig) if orig == new: return new return...
22.357143
93
0.600639
793f4a7e12c070ae92b4f0aca450098f97affa3a
824
py
Python
main.py
vtalks/pipeline
b075836f16157c7096eebc9cfd9c43301e137a61
[ "Apache-2.0" ]
1
2018-07-07T11:56:44.000Z
2018-07-07T11:56:44.000Z
main.py
vtalks/pipeline
b075836f16157c7096eebc9cfd9c43301e137a61
[ "Apache-2.0" ]
null
null
null
main.py
vtalks/pipeline
b075836f16157c7096eebc9cfd9c43301e137a61
[ "Apache-2.0" ]
null
null
null
import logging import handlers from scheduler import Scheduler logger = logging.getLogger(__name__) if __name__ == "__main__": logging.basicConfig(level=logging.INFO) logger.info('Starting the pipeline-scheduler ...') scheduler = Scheduler() scheduler.event_loop.run_until_complete(scheduler.boostra...
31.692308
89
0.756068
793f4a81ef79023606ac7ae384e0c32cd776b55f
364
py
Python
Ago-Dic-2021/viera-rodriguez-david/P2_Practica2/ejercicio3/insertar.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
41
2017-09-26T09:36:32.000Z
2022-03-19T18:05:25.000Z
Ago-Dic-2021/viera-rodriguez-david/P2_Practica2/ejercicio3/insertar.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
67
2017-09-11T05:06:12.000Z
2022-02-14T04:44:04.000Z
Ago-Dic-2021/viera-rodriguez-david/P2_Practica2/ejercicio3/insertar.py
AnhellO/DAS_Sistemas
07b4eca78357d02d225d570033d05748d91383e3
[ "MIT" ]
210
2017-09-01T00:10:08.000Z
2022-03-19T18:05:12.000Z
import redis import json with open('mock_data.json') as json_file: data=json.load(json_file) redis_client = redis.Redis(host='redis_db', port=6379) for i in data: redis_client.set("id":i['id'],"first_name":i['first_name'],"last_name":i['last_name'],"email":i['email'],"gender":i['gender'],"ip_address":i['ip_a...
36.4
194
0.708791
793f4b64337c9c02f062b13d7aa505fae1af9b98
1,042
py
Python
manage.py
pmrowla/gumiya
cdfac7d79d3ebac28df40ec6aa011a5400c52112
[ "MIT" ]
null
null
null
manage.py
pmrowla/gumiya
cdfac7d79d3ebac28df40ec6aa011a5400c52112
[ "MIT" ]
13
2017-08-21T10:00:09.000Z
2021-12-31T04:00:56.000Z
manage.py
pmrowla/gumiya
cdfac7d79d3ebac28df40ec6aa011a5400c52112
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
34.733333
77
0.661228
793f4b77dd50381abffc82d03fee8bc36e746dab
5,824
py
Python
imaginaire/evaluation/fid.py
hw07216/imaginaire
87c774114622e39488a5ea8a7728b1a20896afb9
[ "RSA-MD" ]
3,308
2020-07-15T17:50:13.000Z
2022-03-31T14:53:31.000Z
imaginaire/evaluation/fid.py
hw07216/imaginaire
87c774114622e39488a5ea8a7728b1a20896afb9
[ "RSA-MD" ]
132
2020-09-20T17:36:28.000Z
2022-03-28T12:40:03.000Z
src/imaginaire/evaluation/fid.py
livingbio/imaginaire-fsvid2vid
d82c87aced50afd44fd162491ba5b59056b74034
[ "RSA-MD" ]
370
2020-09-29T00:34:08.000Z
2022-03-30T04:12:48.000Z
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md import os import numpy as np import torch from scipy import linalg from imaginaire.evaluation.common import load_or...
40.444444
98
0.656593
793f4bf548b2a00de86bbc6012dc0aab3561c179
4,420
py
Python
mvpa2/clfs/mass.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
mvpa2/clfs/mass.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
mvpa2/clfs/mass.py
mortonne/PyMVPA
98644c5cd9733edd39fac746ea7cf67398674645
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ### ### ###...
35.934959
107
0.608597
793f4d32abb0d655ca3928b7dc629f44feb64313
597
py
Python
AtC_Beg_Con_121-130/ABC125/C.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_121-130/ABC125/C.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Beg_Con_121-130/ABC125/C.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
n = int(input()) a = [int(m) for m in input().split()] a.sort() m0 = a[0] m1 = a[1] def make_divisors(n): divisors = [] for i in range(1, int(n**0.5)+1): if n % i == 0: divisors.append(i) if i != n // i: divisors.append(n//i) # divisors.sort() return divi...
17.558824
37
0.460637
793f4d8824080d792b37111e66c4bf62a0261fcd
619
py
Python
tflite_model_train.py
RadXGH/face-detect-cam
e3e6ad268b89e5e15ce190cff66e5322ad73bfe6
[ "MIT" ]
null
null
null
tflite_model_train.py
RadXGH/face-detect-cam
e3e6ad268b89e5e15ce190cff66e5322ad73bfe6
[ "MIT" ]
null
null
null
tflite_model_train.py
RadXGH/face-detect-cam
e3e6ad268b89e5e15ce190cff66e5322ad73bfe6
[ "MIT" ]
null
null
null
from tflite_model_maker import image_classifier, config from tflite_model_maker.image_classifier import DataLoader # Load input data specific to an on-device ML app. data = DataLoader.from_folder('./test-models/') train_data, test_data = data.split(0.9) # Customize the TensorFlow model. model = image_classifi...
38.6875
103
0.783522
793f4d98c1bd3b273f3082b72333acb792e87866
194
py
Python
example/configure/app.py
dmsimard/dynaconf
ec394ab07e3b522879c8be678c65ebeb05fc2b59
[ "MIT" ]
null
null
null
example/configure/app.py
dmsimard/dynaconf
ec394ab07e3b522879c8be678c65ebeb05fc2b59
[ "MIT" ]
null
null
null
example/configure/app.py
dmsimard/dynaconf
ec394ab07e3b522879c8be678c65ebeb05fc2b59
[ "MIT" ]
null
null
null
# coding: utf-8 from dynaconf import settings settings.configure(settings_module='/tmp/configure_test/settings.py') assert settings.MESSAGE == 'Hello from tmp' print(settings.MESSAGE) # noqa
24.25
69
0.783505
793f4e76ff70fda32ac46dc07bc631fe107b9120
1,039
py
Python
auto_cat_namer/catscanner.py
onhernandes/auto-cat-namer
929e38296777a9453de7a13fbe70e9dbfa0f8ede
[ "MIT" ]
null
null
null
auto_cat_namer/catscanner.py
onhernandes/auto-cat-namer
929e38296777a9453de7a13fbe70e9dbfa0f8ede
[ "MIT" ]
null
null
null
auto_cat_namer/catscanner.py
onhernandes/auto-cat-namer
929e38296777a9453de7a13fbe70e9dbfa0f8ede
[ "MIT" ]
null
null
null
import cv2 from pathlib import Path import os ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) HAARS_FILENAME = "./haarcascade_frontalcatface_extended.xml" HAARS_FILE = os.path.join(ROOT_DIR, HAARS_FILENAME) def write_name_to_image(name, image_path, output_path): image_path = Path(image_path).reso...
32.46875
82
0.6718
793f4e781d383842e97fa3f900a2b40e93ab21c8
19,645
py
Python
venv/lib/python3.6/site-packages/tensorflow_core/lite/experimental/microfrontend/ops/gen_audio_microfrontend_op.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/lib/python3.6/site-packages/tensorflow_core/lite/experimental/microfrontend/ops/gen_audio_microfrontend_op.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/tensorflow_core/lite/experimental/microfrontend/ops/gen_audio_microfrontend_op.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: audio_microfrontend_op.cc """ import collections from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager ...
49.987277
451
0.684093
793f4f713ae5c8bbbe662aa5a3676fc9662662a1
50,239
py
Python
swift/obj/replicator.py
kipdoudou/swift
ade5b80952a72afce4333fe6d98285173d68af3e
[ "Apache-2.0" ]
null
null
null
swift/obj/replicator.py
kipdoudou/swift
ade5b80952a72afce4333fe6d98285173d68af3e
[ "Apache-2.0" ]
null
null
null
swift/obj/replicator.py
kipdoudou/swift
ade5b80952a72afce4333fe6d98285173d68af3e
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # 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 agree...
44.816236
101
0.544119
793f4fa9330aef58dd327dbb81b7deb52469c87b
11,887
py
Python
data/scripts/scenarios.py
natkaratkova/covid19_scenarios
40e646ef23453a2b7555529523deb9f18cc5a88d
[ "MIT" ]
null
null
null
data/scripts/scenarios.py
natkaratkova/covid19_scenarios
40e646ef23453a2b7555529523deb9f18cc5a88d
[ "MIT" ]
null
null
null
data/scripts/scenarios.py
natkaratkova/covid19_scenarios
40e646ef23453a2b7555529523deb9f18cc5a88d
[ "MIT" ]
null
null
null
import sys import csv import os import json import numpy as np import multiprocessing as multi import yaml from uuid import uuid4 sys.path.append('..') import generated.types as schema from datetime import datetime from scipy.stats import linregress from paths import TMP_CASES, BASE_PATH, JSON_DIR, FIT_PARAMETERS, S...
38.846405
133
0.581223
793f516d4699261499753318831fcad4ce3feaad
10,597
py
Python
tests/morph_colors_extractor2/create_tests_white_dunes.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
475
2015-01-02T07:49:46.000Z
2022-03-17T04:01:47.000Z
tests/morph_colors_extractor2/create_tests_white_dunes.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
3
2015-03-06T10:51:03.000Z
2019-09-10T19:39:39.000Z
tests/morph_colors_extractor2/create_tests_white_dunes.py
duhnnie/3-dreams-of-black
15aded97f57a82e5a4c95c4e74bcd603b3fc6e1e
[ "Apache-2.0" ]
130
2015-01-15T02:08:21.000Z
2021-12-20T19:15:22.000Z
import glob import os.path # ################################################################## # Config # ################################################################## JSFILES = "results/*.js" HTMLPATH = "html" # ################################################################## # Templates # #################...
26.426434
170
0.58224
793f518135929dcbaae53ea02568aef584a8727d
3,160
py
Python
tensorflow_model_analysis/eval_saved_model/example_trainers/fixed_prediction_estimator.py
robertwb/model-analysis
e081016a1c81f17057ad3714f867832632899504
[ "Apache-2.0" ]
1
2019-03-24T15:09:56.000Z
2019-03-24T15:09:56.000Z
tensorflow_model_analysis/eval_saved_model/example_trainers/fixed_prediction_estimator.py
robertwb/model-analysis
e081016a1c81f17057ad3714f867832632899504
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/eval_saved_model/example_trainers/fixed_prediction_estimator.py
robertwb/model-analysis
e081016a1c81f17057ad3714f867832632899504
[ "Apache-2.0" ]
1
2020-04-12T14:29:27.000Z
2020-04-12T14:29:27.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.725275
76
0.721203
793f525142b70949e9399d08be8c605a23ae6c27
6,924
py
Python
interp2D.py
jsasaki-utokyo/model2roms
f2dbe56cd4c3ecfbb88177ed0ff34db48c148b8d
[ "MIT" ]
null
null
null
interp2D.py
jsasaki-utokyo/model2roms
f2dbe56cd4c3ecfbb88177ed0ff34db48c148b8d
[ "MIT" ]
null
null
null
interp2D.py
jsasaki-utokyo/model2roms
f2dbe56cd4c3ecfbb88177ed0ff34db48c148b8d
[ "MIT" ]
1
2021-11-27T06:37:53.000Z
2021-11-27T06:37:53.000Z
from __future__ import print_function import datetime import logging import extrapolate as ex import numpy as np try: import ESMF except ImportError: logging.error("[M2R_interp2D] Could not find module ESMF") pass __author__ = 'Trond Kristiansen' __email__ = 'me@trondkristiansen.com' __created__ = datet...
43.275
121
0.589977
793f52634034db09a1026145b87cf7c97e8f6a23
3,411
py
Python
components/studio/api/serializers.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
components/studio/api/serializers.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
components/studio/api/serializers.py
ScilifelabDataCentre/stackn
00a65a16ff271f04548b3ff475c72dacbfd916df
[ "Apache-2.0" ]
null
null
null
from rest_framework.serializers import ModelSerializer from models.models import Model, ModelLog, Metadata from reports.models import Report, ReportGenerator from projects.models import Project, Volume from deployments.models import DeploymentInstance, DeploymentDefinition from datasets.models import Dataset, FileMode...
34.11
127
0.652888
793f527ce99807276d93cb9dc120c52c326a7255
1,601
py
Python
common/src/stack/command/stack/commands/remove/appliance/firewall/__init__.py
shivanshs9/stacki
258740748281dfe89b0f566261eaf23102f91aa4
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/appliance/firewall/__init__.py
shivanshs9/stacki
258740748281dfe89b0f566261eaf23102f91aa4
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/remove/appliance/firewall/__init__.py
shivanshs9/stacki
258740748281dfe89b0f566261eaf23102f91aa4
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2018 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
27.603448
71
0.686446
793f528d0e5cd75e4dfe98336de4cb68acf63e75
10,677
py
Python
flair/models/sequence_tagger_utils/viterbi.py
adriensas/flair
f01b0e7ff9a87d3862acae50aeaffdc8e8b8ac21
[ "MIT" ]
1
2022-02-06T04:04:27.000Z
2022-02-06T04:04:27.000Z
flair/models/sequence_tagger_utils/viterbi.py
adriensas/flair
f01b0e7ff9a87d3862acae50aeaffdc8e8b8ac21
[ "MIT" ]
null
null
null
flair/models/sequence_tagger_utils/viterbi.py
adriensas/flair
f01b0e7ff9a87d3862acae50aeaffdc8e8b8ac21
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np import torch import torch.nn from torch.nn.functional import softmax from torch.nn.utils.rnn import pack_padded_sequence import flair from flair.data import Dictionary, Label, List START_TAG: str = "<START>" STOP_TAG: str = "<STOP>" class ViterbiLoss(torch.nn.Module): ...
43.938272
119
0.631263
793f52dc26724b68376dd0adda737ab5129343a6
48
py
Python
sitesearch/api/wsgi.py
lanceleonard/redis-sitesearch
7115d5a5b470bf716d1e7d56c8e8fd311138b601
[ "MIT" ]
8,217
2015-03-06T19:30:57.000Z
2022-03-30T14:54:36.000Z
sitesearch/api/wsgi.py
lanceleonard/redis-sitesearch
7115d5a5b470bf716d1e7d56c8e8fd311138b601
[ "MIT" ]
1,637
2015-03-06T21:27:17.000Z
2022-03-31T06:27:19.000Z
sitesearch/api/wsgi.py
lanceleonard/redis-sitesearch
7115d5a5b470bf716d1e7d56c8e8fd311138b601
[ "MIT" ]
1,064
2015-03-07T15:32:24.000Z
2022-03-25T17:23:40.000Z
from .app import create_app app = create_app()
12
27
0.75
793f53bb3a3c705d6ae8a4ef52204a87ed2beae2
1,258
py
Python
setup.py
miss-tais/djsettings
d345a42f4fd565b1666cefcc0a39d6ef201c3452
[ "BSD-3-Clause" ]
null
null
null
setup.py
miss-tais/djsettings
d345a42f4fd565b1666cefcc0a39d6ef201c3452
[ "BSD-3-Clause" ]
null
null
null
setup.py
miss-tais/djsettings
d345a42f4fd565b1666cefcc0a39d6ef201c3452
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='djsettings', version...
30.682927
78
0.618442
793f53cec431c41e054ee8da73e0cea3274bbb8f
15,249
py
Python
template/rdchiral/main.py
sw32-seo/GTA
86b102a14b78f6c8b50d742a56445c748e59b51e
[ "MIT" ]
5
2021-09-30T16:28:48.000Z
2022-03-30T05:20:27.000Z
template/rdchiral/main.py
sw32-seo/GTA
86b102a14b78f6c8b50d742a56445c748e59b51e
[ "MIT" ]
null
null
null
template/rdchiral/main.py
sw32-seo/GTA
86b102a14b78f6c8b50d742a56445c748e59b51e
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import os import rdkit.Chem as Chem import rdkit.Chem.AllChem as AllChem from rdkit.Chem.rdchem import ChiralType, BondType, BondDir from rdchiral.utils import vprint from rdchiral.initialization import rdchiralReaction, rdchiralReactants from rdchiral.chiral import te...
49.833333
144
0.543314
793f55e90cd151aa6bbf69518cca52fb63a369f6
146
py
Python
helios/discounts/admin.py
panosl/helios
22ceb736709aaa336def81d801797d72321a737e
[ "BSD-3-Clause" ]
2
2021-01-26T02:37:19.000Z
2021-12-02T14:15:22.000Z
helios/discounts/admin.py
panosl/helios
22ceb736709aaa336def81d801797d72321a737e
[ "BSD-3-Clause" ]
null
null
null
helios/discounts/admin.py
panosl/helios
22ceb736709aaa336def81d801797d72321a737e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from helios.discounts.models import CategoryPercentageDiscount admin.site.register(CategoryPercentageDiscount)
24.333333
62
0.876712
793f56a76698d707fef66084e47a3a2196add0ed
15,501
py
Python
apysc/_event/custom_event_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_event/custom_event_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
apysc/_event/custom_event_interface.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
null
null
null
"""Class implementation for the custom event interface. """ from typing import Any from typing import Callable from typing import Dict from typing import Optional from typing import Union from apysc._event.custom_event_type import CustomEventType from apysc._event.event import Event from apysc._event.handl...
39.746154
78
0.580156
793f56cec6e8ab34d3da15bfcb874e00c841072b
668
py
Python
mayan/apps/authentication/templatetags/authentication_tags.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
2
2021-09-12T19:41:19.000Z
2021-09-12T19:41:20.000Z
mayan/apps/authentication/templatetags/authentication_tags.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
37
2021-09-13T01:00:12.000Z
2021-10-02T03:54:30.000Z
mayan/apps/authentication/templatetags/authentication_tags.py
CMU-313/fall-2021-hw2-451-unavailable-for-legal-reasons
0e4e919fd2e1ded6711354a0330135283e87f8c7
[ "Apache-2.0" ]
1
2021-09-22T13:17:30.000Z
2021-09-22T13:17:30.000Z
from django.template import Library from ..literals import ( USER_IMPERSONATE_VARIABLE_ID, USER_IMPERSONATE_VARIABLE_PERMANENT ) register = Library() @register.simple_tag(takes_context=True) def authentication_impersonation_check(context): request = getattr(context, 'request', None) if req...
27.833333
95
0.714072