hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
dc89f26a2363a34c9a404fbca34d5e521a9e60dc
436
py
Python
example_WriteBinary.py
teristam/openephys-fileIO
8089e7c4aff829c13a79656b8812a3d3e68eb1eb
[ "MIT" ]
1
2020-08-16T21:52:10.000Z
2020-08-16T21:52:10.000Z
example_WriteBinary.py
teristam/openephys-fileIO
8089e7c4aff829c13a79656b8812a3d3e68eb1eb
[ "MIT" ]
null
null
null
example_WriteBinary.py
teristam/openephys-fileIO
8089e7c4aff829c13a79656b8812a3d3e68eb1eb
[ "MIT" ]
null
null
null
#%% # Write data to the new binary format import sys sys.path.append("..") # Adds higher directory to python modules path. import numpy as np from pathlib import Path from openephys_fileIO import fileIO #%% Convert continuous data to flat binary outFolder = 'E:\\open-ephys-testdata\\M2_D23-binary' input_folder = 'E:...
22.947368
69
0.761468
16ee636f8a5cca184b3bcd872a8023e088899d07
393
py
Python
fizzsite/fizzsite/wsgi.py
hurhurhurt/Fizzle
53d780d501966f4a4010b0e395bd9f87bf67a489
[ "MIT" ]
null
null
null
fizzsite/fizzsite/wsgi.py
hurhurhurt/Fizzle
53d780d501966f4a4010b0e395bd9f87bf67a489
[ "MIT" ]
null
null
null
fizzsite/fizzsite/wsgi.py
hurhurhurt/Fizzle
53d780d501966f4a4010b0e395bd9f87bf67a489
[ "MIT" ]
null
null
null
""" WSGI config for fizzsite 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
23.117647
78
0.78626
c35e9d912be8ef95861cef217c6bb80df953d4e1
1,674
py
Python
jsonlog_cli/record.py
borntyping/legere
df26b01bb922b88c6674299ffe5ce62df226bddd
[ "MIT" ]
1
2019-09-25T07:59:39.000Z
2019-09-25T07:59:39.000Z
jsonlog_cli/record.py
borntyping/legere
df26b01bb922b88c6674299ffe5ce62df226bddd
[ "MIT" ]
3
2020-03-24T17:28:20.000Z
2020-10-01T09:40:26.000Z
jsonlog_cli/record.py
borntyping/jsonlog-cli
df26b01bb922b88c6674299ffe5ce62df226bddd
[ "MIT" ]
null
null
null
from __future__ import annotations import dataclasses import json import textwrap import typing import jsonlog log = jsonlog.getLogger(__name__) RecordKey = str RecordValue = typing.Union[None, str, int, float, bool, typing.Sequence, typing.Mapping] class RecordDict(dict, typing.Mapping[str, RecordValue]): ""...
26.15625
88
0.626643
66ff28995b6260e3daf2b26579420ae803ba2d49
6,148
py
Python
jetavator_mssql/services/MSSQLService.py
jetavator/jetavator_mssql
e90dfc4ab429c4d3339e7e33b0b2a9974d27689a
[ "Apache-2.0" ]
null
null
null
jetavator_mssql/services/MSSQLService.py
jetavator/jetavator_mssql
e90dfc4ab429c4d3339e7e33b0b2a9974d27689a
[ "Apache-2.0" ]
null
null
null
jetavator_mssql/services/MSSQLService.py
jetavator/jetavator_mssql
e90dfc4ab429c4d3339e7e33b0b2a9974d27689a
[ "Apache-2.0" ]
null
null
null
from typing import Iterable, Set import pandas import sqlalchemy from sqlalchemy.exc import ProgrammingError, DBAPIError from lazy_property import LazyProperty from jetavator.services import StorageService class MSSQLService(StorageService, register_as='mssql'): index_option_kwargs: Set[str] = {"mssql_cluster...
32.877005
120
0.543754
9d80ee21c70288f7372247aaf49091144a800949
3,209
py
Python
huobi/utils/input_checker.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
null
null
null
huobi/utils/input_checker.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
null
null
null
huobi/utils/input_checker.py
codemonkey89/huobi_Python
92b96679f6e239c785df7c4354a0a94deda2768f
[ "Apache-2.0" ]
null
null
null
import re import time from huobi.exception.huobi_api_exception import HuobiApiException reg_ex = "[ _`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。,、?]|\n|\t" def check_symbol(symbol): if not isinstance(symbol, str): raise HuobiApiException(HuobiApiException.INPUT_ERROR, "[Input] symbol mus...
40.620253
132
0.641633
ca116b5c9addb449e8ba5b3ad7e489858946b1af
11,370
py
Python
tests/test_connection.py
PerchLive/pyopenvidu
fa8ac55b446c94a026dbd73d67cc090810a8c3f1
[ "MIT" ]
null
null
null
tests/test_connection.py
PerchLive/pyopenvidu
fa8ac55b446c94a026dbd73d67cc090810a8c3f1
[ "MIT" ]
null
null
null
tests/test_connection.py
PerchLive/pyopenvidu
fa8ac55b446c94a026dbd73d67cc090810a8c3f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Tests for OpenViduConnection object""" import pytest from pyopenvidu import OpenVidu, OpenViduSessionDoesNotExistsError, OpenViduConnectionDoesNotExistsError from urllib.parse import urljoin from datetime import datetime URL_BASE = 'http://test.openvidu.io:4443/' SESSIONS = {"numberOfElemen...
48.798283
165
0.678012
e6880440b9f406a266e4838060fd528172d43f14
567
py
Python
examples/cookbook-plain/cookbook/recipes/models.py
CarlosMart626/graphene-django-authorization
8f6b30417868b447d68fe5bd1425385b285a604b
[ "MIT" ]
2
2017-11-17T18:32:49.000Z
2018-03-07T06:56:16.000Z
examples/cookbook-plain/cookbook/recipes/models.py
CarlosMart626/graphene-django-authorization
8f6b30417868b447d68fe5bd1425385b285a604b
[ "MIT" ]
2
2018-02-26T00:42:25.000Z
2018-02-26T00:42:41.000Z
examples/cookbook-plain/cookbook/recipes/models.py
CarlosMart626/graphene-django-authorization
8f6b30417868b447d68fe5bd1425385b285a604b
[ "MIT" ]
2
2018-02-26T00:34:50.000Z
2021-08-06T08:27:32.000Z
from django.db import models from cookbook.ingredients.models import Ingredient class Recipe(models.Model): title = models.CharField(max_length=100) instructions = models.TextField() class RecipeIngredient(models.Model): recipe = models.ForeignKey(Recipe, related_name='amounts') ingredient = models...
27
70
0.66843
922b0de15742c37e04bc9ca6f6c626c4962b2472
266
py
Python
rapidsms/contrib/httptester/urls.py
glosoftgroup/rsms
b1f9c9a471ed9595e02e2529fcc58bf23cc2ab34
[ "BSD-3-Clause" ]
null
null
null
rapidsms/contrib/httptester/urls.py
glosoftgroup/rsms
b1f9c9a471ed9595e02e2529fcc58bf23cc2ab34
[ "BSD-3-Clause" ]
null
null
null
rapidsms/contrib/httptester/urls.py
glosoftgroup/rsms
b1f9c9a471ed9595e02e2529fcc58bf23cc2ab34
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 from django.conf.urls import url from . import views urlpatterns = [ url(r"^$", views.generate_identity, name='httptester-index'), url(r"^(?P<identity>\d+)/$", views.message_tester, name='httptester') ]
20.461538
73
0.665414
d4dfd681ea310ff58a648ef14770c0833d429067
2,279
py
Python
logging/cloud-client/export_test.py
alexhaines123/googlecloudsqlexamples
06d9254ec77955c02f18cd79a57cdfbd64dbf8ea
[ "Apache-2.0" ]
2
2017-09-23T04:23:46.000Z
2021-06-11T01:23:06.000Z
logging/cloud-client/export_test.py
ryanmats/python-docs-samples
183a6186cd059c7ba24ef324614bc5fee08bff08
[ "Apache-2.0" ]
null
null
null
logging/cloud-client/export_test.py
ryanmats/python-docs-samples
183a6186cd059c7ba24ef324614bc5fee08bff08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
24.771739
74
0.69548
d52ce70db92a97578813a13fc77e13b059add127
12,735
py
Python
saharaclient/osc/v1/jobs.py
mail2nsrajesh/python-saharaclient
48e68c1c3a9e6737e24be2da88de8999a4609a51
[ "Apache-2.0" ]
null
null
null
saharaclient/osc/v1/jobs.py
mail2nsrajesh/python-saharaclient
48e68c1c3a9e6737e24be2da88de8999a4609a51
[ "Apache-2.0" ]
null
null
null
saharaclient/osc/v1/jobs.py
mail2nsrajesh/python-saharaclient
48e68c1c3a9e6737e24be2da88de8999a4609a51
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Mirantis 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 agreed to in writ...
33.077922
79
0.558382
353cd7e6cb26047e19d335d5cd12a27b970847aa
412
py
Python
tools/getDensity.py
DaylightingSociety/SocMap
c8e9f40efdcee2c765cd02b6398d948fecf6bd83
[ "BSD-3-Clause" ]
16
2018-06-25T04:02:50.000Z
2022-01-25T11:06:50.000Z
tools/getDensity.py
DaylightingSociety/SocMap
c8e9f40efdcee2c765cd02b6398d948fecf6bd83
[ "BSD-3-Clause" ]
26
2018-02-07T04:15:44.000Z
2020-10-08T15:39:28.000Z
tools/getDensity.py
DaylightingSociety/SocMap
c8e9f40efdcee2c765cd02b6398d948fecf6bd83
[ "BSD-3-Clause" ]
4
2018-02-13T18:38:21.000Z
2019-02-22T19:39:56.000Z
#!/usr/bin/env python3 import sys, os import igraph as ig """ This tools returns a density measurement for each map provided as an argument and prints the densities in order """ if __name__ == "__main__": if( len(sys.argv) < 2 ): print("USAGE: %s <map.gml> [map2.gml...]" % sys.argv[0]) sys.exit(1) for fname...
21.684211
78
0.65534
1464e4dffdf9883c6e522677c124d041b0d7d669
6,180
py
Python
setup.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
1
2021-11-30T12:07:21.000Z
2021-11-30T12:07:21.000Z
setup.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
null
null
null
setup.py
snsnlou/mars
6b8eec162eccc8bb980a98ca2cf1e6a4b866d302
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
37.005988
107
0.69288
1de29ca7efdc3a1c90102bcee38b257eb74a38bc
684
py
Python
marvin_teste_engine/prediction/predictor.py
cerliofaccojr/cancer-diagnosis-engine
08f1e8568579d7c31ec0772f214eca8c608649d8
[ "Apache-2.0" ]
null
null
null
marvin_teste_engine/prediction/predictor.py
cerliofaccojr/cancer-diagnosis-engine
08f1e8568579d7c31ec0772f214eca8c608649d8
[ "Apache-2.0" ]
null
null
null
marvin_teste_engine/prediction/predictor.py
cerliofaccojr/cancer-diagnosis-engine
08f1e8568579d7c31ec0772f214eca8c608649d8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 """Predictor engine action. Use this module to add the project main code. """ from .._compatibility import six from .._logging import get_logger from marvin_python_toolbox.engine_base import EngineBasePrediction import numpy as np __all__ = ['Predictor'] logger = get_logger('...
22.8
92
0.725146
c6b963f29e37ffe27aab01e874254619e986a6ab
7,071
py
Python
python/GafferUI/ScriptWindow.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ScriptWindow.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
python/GafferUI/ScriptWindow.py
davidsminor/gaffer
64f75654ce778105dd93fbaad0e4486a5577cd09
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
36.448454
136
0.721963
25457fde8d12d9b864c7b58ba528d92a8f01e1f9
16,442
py
Python
scrabble/char2ir.py
jbkoh/Scrabble
6d64be2e9c7d0392332592c804eb15c20a3e2516
[ "BSD-3-Clause" ]
6
2018-11-20T13:58:58.000Z
2020-07-10T13:43:37.000Z
scrabble/char2ir.py
jbkoh/Scrabble
6d64be2e9c7d0392332592c804eb15c20a3e2516
[ "BSD-3-Clause" ]
null
null
null
scrabble/char2ir.py
jbkoh/Scrabble
6d64be2e9c7d0392332592c804eb15c20a3e2516
[ "BSD-3-Clause" ]
2
2018-09-05T12:16:38.000Z
2022-03-18T07:29:41.000Z
import os from uuid import uuid4 from operator import itemgetter from pathlib import Path import pycrfsuite from bson.binary import Binary as BsonBinary import arrow import numpy as np import pandas as pd from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from sklearn.metrics import precision_recall...
40.398034
84
0.556502
8d8c7a7d53c547581dc44d4c03a4bf8c7755301c
5,888
py
Python
deprecated_nets/net_original.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
1
2022-02-24T20:39:46.000Z
2022-02-24T20:39:46.000Z
deprecated_nets/net_original.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
null
null
null
deprecated_nets/net_original.py
danielmk/pyDentateeLife2020
b4a9f2beaa0c74dbc9583e2cf228856612596f8a
[ "MIT" ]
4
2020-02-18T09:25:20.000Z
2021-11-20T23:52:29.000Z
# -*- coding: utf-8 -*- """ This module implements the class StandardNetwork. StandardNetwork creates a ring network as defined in Santhakumar et al. 2005 with some changes as in Yim et al. 2015. See StandardNetwork docstring for details. Created on Tue Nov 28 13:01:38 2017 @author: DanielM """ from neuron import h, ...
43.614815
135
0.492018
bb8b400ec722626b23eec551616958c0d96ed59d
1,115
py
Python
robeep/plugin/check_device_temperature.py
k-nii0211/rbp_agent
53724797ee7b579fc98d63809b9551867929476e
[ "MIT" ]
null
null
null
robeep/plugin/check_device_temperature.py
k-nii0211/rbp_agent
53724797ee7b579fc98d63809b9551867929476e
[ "MIT" ]
null
null
null
robeep/plugin/check_device_temperature.py
k-nii0211/rbp_agent
53724797ee7b579fc98d63809b9551867929476e
[ "MIT" ]
null
null
null
import logging _logger = logging.getLogger(__name__) try: from naoqi import ALProxy except ImportError, e: ALProxy = None _keys = [ "Head", "Battery", "HeadYaw", "HeadPitch", "LElbowYaw", "LElbowRoll", "RElbowYaw", "RElbowRoll", "LHand", "LWristYaw", "RHand", "...
20.272727
73
0.564126
e78ed0b050fc72838d1b718ba26762517b9c6605
6,226
py
Python
igibson/examples/vr/in_development/vr_hand_speed_benchmark.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
igibson/examples/vr/in_development/vr_hand_speed_benchmark.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
igibson/examples/vr/in_development/vr_hand_speed_benchmark.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
null
null
null
""" This demo can be used to benchmark how speedily the VR hand can be used. The aim is to put all the objects into the box on the left side of the table. You can use the left and right controllers to start/stop/reset the timer, as well as show/hide its display. The "overlay toggle" action and its corresponding butto...
40.69281
113
0.667523
2970f80fc9528c0b1b13373f13a8346aaead3d12
793
py
Python
json_checker/app.py
DKorytkin/JsonChecker
1a803c3d873db5a1139a55b7efb3b40d9c1b6891
[ "MIT" ]
5
2017-08-17T11:24:13.000Z
2017-08-21T09:45:29.000Z
json_checker/app.py
DKorytkin/JsonChecker
1a803c3d873db5a1139a55b7efb3b40d9c1b6891
[ "MIT" ]
179
2017-09-05T09:18:41.000Z
2022-03-31T17:20:03.000Z
json_checker/app.py
DKorytkin/json_checker
1a803c3d873db5a1139a55b7efb3b40d9c1b6891
[ "MIT" ]
null
null
null
import logging from typing import Any from json_checker.core.base import Base from json_checker.core.exceptions import CheckerError from json_checker.core.checkers import Validator from json_checker.core.reports import Report log = logging.getLogger(__name__) class Checker(Base): def validate(self, data: Any)...
26.433333
61
0.662043
5ab7a8594e1a34cca29b9d8d2339ca4f22dc603b
5,423
py
Python
src/olympia/abuse/migrations/0001_initial.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/abuse/migrations/0001_initial.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/abuse/migrations/0001_initial.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-12 13:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.manager import django.utils.timezone import olympia.amo.models class Migration(migrations.Migration): initial = True dependencie...
83.430769
520
0.628434
8a3ed843c9190aeb81eaa94c4bab49a1c3b8dbef
344
py
Python
test/test_config.py
cbjuan/test-textgenrnn
dc92d6b86f86a2d4811ecee64ccf3f9f8a8ca4c0
[ "Apache-2.0" ]
null
null
null
test/test_config.py
cbjuan/test-textgenrnn
dc92d6b86f86a2d4811ecee64ccf3f9f8a8ca4c0
[ "Apache-2.0" ]
4
2018-09-20T12:27:42.000Z
2018-10-15T15:29:37.000Z
test/test_config.py
GarridoLabs/test-textgenrnn
dc92d6b86f86a2d4811ecee64ccf3f9f8a8ca4c0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' @license Copyright(c) 2018, GarridoLabs and the project's contributors. This source code is licensed under the Apache License, Version 2.0 found in the LICENSE.txt file in the root directory of this source tree. ''' """ Configuration Variables to use in test mode """ skip_...
22.933333
79
0.703488
ccb4e835fb72f8ed6b931718ae0341a54abcd02a
75
py
Python
stilio/persistence/constants.py
fakegit/stilio
cf198b8ccadc7dcadc462ce83b801af00ef4e2f2
[ "Apache-2.0" ]
71
2019-10-09T17:18:12.000Z
2022-02-26T12:15:53.000Z
stilio/persistence/constants.py
fakegit/stilio
cf198b8ccadc7dcadc462ce83b801af00ef4e2f2
[ "Apache-2.0" ]
3
2019-10-16T17:52:48.000Z
2021-12-01T16:50:18.000Z
stilio/persistence/constants.py
fakegit/stilio
cf198b8ccadc7dcadc462ce83b801af00ef4e2f2
[ "Apache-2.0" ]
11
2020-01-21T09:09:14.000Z
2022-03-27T12:05:36.000Z
from stilio.persistence.torrents.models import Torrent MODELS = [Torrent]
18.75
54
0.813333
07d0f9c11a9c48e3107d1ff8042d89d0c44e2d28
432
py
Python
youtube/Config.py
youtube-py/youtube.py
9f8db2a4b831361088d6ca818cef4468be90117b
[ "MIT" ]
1
2020-12-14T11:57:22.000Z
2020-12-14T11:57:22.000Z
youtube/Config.py
youtube-py/youtube.py
9f8db2a4b831361088d6ca818cef4468be90117b
[ "MIT" ]
41
2021-01-15T13:18:46.000Z
2022-03-28T14:22:54.000Z
youtube/Config.py
youtube-py/youtube.py
9f8db2a4b831361088d6ca818cef4468be90117b
[ "MIT" ]
5
2020-12-06T18:06:05.000Z
2021-07-07T00:49:37.000Z
# -*- coding: utf-8 -*- """ youtube.py is really lite python liberary with fast downloader """ __title__ = "youtube.py" __version__ = "2.1.0" __author__ = "Mayank Gupta" __license__ = "MIT License" __copyright__ = "Copyright 2020 YouTube.py (Mayank Gupta)" __github__ = "https://github.com/youtube-py/youtube.py" __issu...
28.8
62
0.726852
ab5a645adac2c8489ae71b5085f0c444b06e8bc0
4,395
py
Python
app/models.py
LaurierCS/Pod4
1dd2fd34c874ff216fb181c9afc084be34630630
[ "MIT" ]
1
2022-03-29T16:41:33.000Z
2022-03-29T16:41:33.000Z
app/models.py
LaurierCS/Pod4
1dd2fd34c874ff216fb181c9afc084be34630630
[ "MIT" ]
null
null
null
app/models.py
LaurierCS/Pod4
1dd2fd34c874ff216fb181c9afc084be34630630
[ "MIT" ]
null
null
null
from django.db import models from django.db.models.fields import * from django.template.defaultfilters import slugify from django import forms from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField(User, related_name = 'profile', null=True, on_delete=models.CASCADE) ...
40.694444
147
0.721502
465128237c532d09d7eda02e6715109147a6013c
252
py
Python
code_all/day16/student_system/main.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day16/student_system/main.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
code_all/day16/student_system/main.py
testcg/python
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
[ "MIT" ]
null
null
null
from bll import StudentController from usl import StudentView # 如果当前是主模块,才执行入口逻辑 if __name__ == '__main__': try: controller = StudentController() view = StudentView(controller) view.main() except: print("程序出错")
21
40
0.654762
c18dccb908c2874c766331541dd8a0693ded4144
12,518
py
Python
classification/imaterialist_challenge_furniture_2018/models/inceptionresnetv2_ssd_like.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
11
2018-04-07T17:49:58.000Z
2022-03-15T07:18:18.000Z
classification/imaterialist_challenge_furniture_2018/models/inceptionresnetv2_ssd_like.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
classification/imaterialist_challenge_furniture_2018/models/inceptionresnetv2_ssd_like.py
vfdev-5/ignite-examples
fb15b59e2b159e1e2bc4628f8756055e9154f5c8
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn import Module, Linear, ModuleList, AdaptiveAvgPool2d, ReLU, Dropout from torch.nn.init import normal_, constant_ from pretrainedmodels.models.inceptionresnetv2 import inceptionresnetv2 class FurnitureInceptionResNetV4350SSDLike(nn.Module): def __init__(self, num_cl...
30.985149
105
0.581802
3f36cd1d051526c362e038da1090288b1b754e97
1,890
py
Python
tests/causal_estimators/test_linear_regression_estimator.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
null
null
null
tests/causal_estimators/test_linear_regression_estimator.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
null
null
null
tests/causal_estimators/test_linear_regression_estimator.py
leo-ware/dowhy
3a2a79e2159a7f29456dd419a3c90395a384364e
[ "MIT" ]
null
null
null
import pytest from dowhy.causal_estimators.linear_regression_estimator import LinearRegressionEstimator from .base import TestEstimator @pytest.mark.usefixtures("fixed_seed") class TestLinearRegressionEstimator(object): @pytest.mark.parametrize( [ "error_tolerance", "Estimator", "num_common_ca...
42
89
0.602646
27621b7222946c3a8da985800cb9df45d7463200
2,445
py
Python
project-obj/project_obj.py
HakkaTjakka/earth-reverse-engineering_github
6c52e69fcb33c5c06f634db874785d2454fa32a6
[ "Unlicense" ]
null
null
null
project-obj/project_obj.py
HakkaTjakka/earth-reverse-engineering_github
6c52e69fcb33c5c06f634db874785d2454fa32a6
[ "Unlicense" ]
null
null
null
project-obj/project_obj.py
HakkaTjakka/earth-reverse-engineering_github
6c52e69fcb33c5c06f634db874785d2454fa32a6
[ "Unlicense" ]
null
null
null
import numpy as np import sys from projection import projection EARTH_RADIUS = 6371000 if len(sys.argv)==3: # print (str(len(sys.argv))) print ('converting ' + sys.argv[1] + ' to ' + sys.argv[2]) with open(sys.argv[1]) as fd: lines = fd.read().splitlines() elif len(sys.argv)==1: with open("in.o...
26.576087
104
0.631084
dc334b8d5d354ff6b9bed9e3e1b0df4380def93c
2,872
py
Python
tests/taint_runner_test.py
kyriediculous/mythril
0c63d749fbb60f679e91fb6a45baa4bd232db608
[ "MIT" ]
1
2020-08-07T01:16:48.000Z
2020-08-07T01:16:48.000Z
tests/taint_runner_test.py
reserve-protocol/mythril
5d2de5d744243254cee2a2b8c5cb83ed060e312e
[ "MIT" ]
null
null
null
tests/taint_runner_test.py
reserve-protocol/mythril
5d2de5d744243254cee2a2b8c5cb83ed060e312e
[ "MIT" ]
1
2018-08-12T17:28:34.000Z
2018-08-12T17:28:34.000Z
import mock import pytest from pytest_mock import mocker from mythril.laser.ethereum.taint_analysis import * from mythril.laser.ethereum.svm import GlobalState, Node, Edge, LaserEVM, MachineState def test_execute_state(mocker): record = TaintRecord() record.stack = [True, False, True] state = GlobalState...
30.231579
86
0.694638
1b4d5c752e1bc303e7b313bad36a3936ab9353f7
2,571
py
Python
app/models/users.py
geekspeng/51-read
31d9697b50f57e66319870f403717f95a42cdc57
[ "MIT" ]
6
2018-10-02T13:01:28.000Z
2021-11-21T10:05:06.000Z
app/models/users.py
geekspeng/51-read
31d9697b50f57e66319870f403717f95a42cdc57
[ "MIT" ]
2
2020-03-16T14:06:27.000Z
2020-12-12T04:08:43.000Z
app/models/users.py
geekspeng/51-read
31d9697b50f57e66319870f403717f95a42cdc57
[ "MIT" ]
3
2021-06-28T13:27:08.000Z
2021-11-21T10:06:29.000Z
# -*- coding: utf-8 -*- # @Time : 2018/8/30 15:50 # @Author : geekspeng # @Email : geekspeng@icloud.com from datetime import datetime from hashlib import md5 from time import time import jwt from flask import current_app from flask_login import UserMixin from werkzeug.security import generate_password_hash, chec...
32.544304
76
0.644107
e4e73929c8ce3b10c26b6bd2bd78112e54f10ee5
40,212
py
Python
vyper/parser/expr.py
bumplzz69/vyper
ac52a4a4ad02f09a20facf0b31a85c0e8e72001b
[ "MIT" ]
null
null
null
vyper/parser/expr.py
bumplzz69/vyper
ac52a4a4ad02f09a20facf0b31a85c0e8e72001b
[ "MIT" ]
null
null
null
vyper/parser/expr.py
bumplzz69/vyper
ac52a4a4ad02f09a20facf0b31a85c0e8e72001b
[ "MIT" ]
3
2021-04-05T15:25:53.000Z
2021-04-05T15:26:13.000Z
import ast import warnings from vyper.exceptions import ( InvalidLiteralException, NonPayableViolationException, StructureException, TypeMismatchException, VariableDeclarationException, ParserException ) from vyper.parser.lll_node import LLLnode from vyper.parser import self_call from vyper.par...
51.225478
197
0.590321
ede0ea0a1955d40cf19fd9faa1243c25c3c9690f
5,471
py
Python
redshift_paper/code/conversions.py
jkadowaki/paper_plots
d52a4d8a5676d5d2e00fbda008c9ad7978e68d8c
[ "MIT" ]
null
null
null
redshift_paper/code/conversions.py
jkadowaki/paper_plots
d52a4d8a5676d5d2e00fbda008c9ad7978e68d8c
[ "MIT" ]
null
null
null
redshift_paper/code/conversions.py
jkadowaki/paper_plots
d52a4d8a5676d5d2e00fbda008c9ad7978e68d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from collections.abc import Iterable import numpy as np # Constants RAD2SEC = 206265 # Arcseconds in a Radian DEG2RAD = np.pi / 180 # Radians in a Degree MIN2SEC = 60 # (Arc)Seconds in a(n) (Arc)Minute DEG2SEC = 3600 # Arc-seconds in a Degree HOUR2DEG = 360/24 ...
36.231788
81
0.579602
7904bc1044928c7eaf3de1c8ab22b76106971ace
945
py
Python
saw-remote-api/python/tests/saw/test_llvm_array_swap.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
411
2015-06-09T22:00:47.000Z
2022-03-30T11:41:23.000Z
saw-remote-api/python/tests/saw/test_llvm_array_swap.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
1,151
2015-06-12T20:46:31.000Z
2022-03-23T02:56:32.000Z
saw-remote-api/python/tests/saw/test_llvm_array_swap.py
msaaltink/saw-script
2e4fc0603da85bb1b188d4739a3386e25eea50ab
[ "BSD-3-Clause" ]
65
2015-06-10T17:52:26.000Z
2022-02-10T18:17:06.000Z
from pathlib import Path import unittest from saw_client import * from saw_client.llvm import Contract, array, array_ty, void, i32 class ArraySwapContract(Contract): def specification(self): a0 = self.fresh_var(i32, "a0") a1 = self.fresh_var(i32, "a1") a = self.alloc(array_ty(2, i32), ...
27.794118
76
0.639153
dede81c59fbf6021e5fbcb63af84e1cff4e04d5d
1,107
py
Python
linear_regression_scripts.py
lucas-mascena/Numerical_Methods
e17a8564ed96e2ed7826de21c8340b597047b750
[ "MIT" ]
null
null
null
linear_regression_scripts.py
lucas-mascena/Numerical_Methods
e17a8564ed96e2ed7826de21c8340b597047b750
[ "MIT" ]
null
null
null
linear_regression_scripts.py
lucas-mascena/Numerical_Methods
e17a8564ed96e2ed7826de21c8340b597047b750
[ "MIT" ]
null
null
null
''' For-loop method to search for the parameters a and b of a straight line equation. ''' #data points and constants: x = [3,4,5,6,7,8] y = [0,7,17,26,35,45] n = len(x) #initial value of summation variables: sumx = sumxy = sumx2 = sumy = 0 for i in range(n): sumx += x[i] sumy += y[i] sumx2 +=...
26.357143
70
0.573622
156f6b186c546851ed61e1aebae622f907861fb4
1,535
py
Python
src/geocoding/slf/__init__.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
null
null
null
src/geocoding/slf/__init__.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
null
null
null
src/geocoding/slf/__init__.py
msgis/ngsi-timeseries-api
5cc7a8beab748cecfd5fba61740f3730361d4e31
[ "MIT" ]
1
2020-06-14T19:57:59.000Z
2020-06-14T19:57:59.000Z
""" Support for working with NGSI Simple Location Format (SLF) data. SLF is a lightweight format to represent simple 2D geometric figures such as points, lines and polygons that is used to encode NGSI entity locations as well as figures in NGSI geographical queries. You can read about it in the *"Geospatial properties ...
43.857143
79
0.793485
6e6b039c08ad9b6869a1d6170ea98dc65b860f76
37,210
py
Python
Competition-Solutions/Audio/GIZ NLP Agricultural Keyword Spotter/Solution 1/model_pl_A_cleaned.py
ZindiAfrica/Natural-Language-Processing-NLP-
41763b83677f1a4853af397a34d8a82fa9ac45fc
[ "MIT" ]
null
null
null
Competition-Solutions/Audio/GIZ NLP Agricultural Keyword Spotter/Solution 1/model_pl_A_cleaned.py
ZindiAfrica/Natural-Language-Processing-NLP-
41763b83677f1a4853af397a34d8a82fa9ac45fc
[ "MIT" ]
null
null
null
Competition-Solutions/Audio/GIZ NLP Agricultural Keyword Spotter/Solution 1/model_pl_A_cleaned.py
ZindiAfrica/Natural-Language-Processing-NLP-
41763b83677f1a4853af397a34d8a82fa9ac45fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Nov 13 00:08:10 2020 @author: Shiro all augmentation , no sampler, efficinetB7 + pseudo labels """ import librosa print(librosa.__version__) import scipy.io.wavfile from efficientnet_pytorch import EfficientNet from audiomentations import Compose, AddGaussianNoise, TimeStr...
45.322777
243
0.61556
a9c0e3ce940993472b58862516dbaf497869f0d8
5,521
py
Python
prediction.py
jfmalloy1/UltraMarathon_Prediction
8eef7bd2860ce255994d32a0150c09b3b655cee7
[ "MIT" ]
null
null
null
prediction.py
jfmalloy1/UltraMarathon_Prediction
8eef7bd2860ce255994d32a0150c09b3b655cee7
[ "MIT" ]
null
null
null
prediction.py
jfmalloy1/UltraMarathon_Prediction
8eef7bd2860ce255994d32a0150c09b3b655cee7
[ "MIT" ]
null
null
null
import pandas as pd import os from datetime import timedelta from torch.utils.data import Dataset from torch.utils.data import DataLoader from torch.utils.data import random_split from torch import Tensor from torch.nn import Linear from torch.nn import Sigmoid from torch.nn import Module from torch.optim import SGD fr...
31.016854
104
0.61094
2beab4fbd6c3f30291ee717f53a4dc0085faed8a
131,671
py
Python
TEST3D/GUI/0010801_page_skelbdy/log.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
TEST3D/GUI/0010801_page_skelbdy/log.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
TEST3D/GUI/0010801_page_skelbdy/log.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
71.405098
160
0.814561
1a8510ee599a6c29fb020f56cc93099a93989c2e
628
py
Python
appr/api/gevent_app.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
31
2017-07-05T07:25:31.000Z
2021-01-18T22:21:57.000Z
appr/api/gevent_app.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
48
2017-06-27T15:48:29.000Z
2021-01-26T21:02:27.000Z
appr/api/gevent_app.py
sergeyberezansky/appr
03168addf05c3efd779dad5168fb0a80d0512100
[ "Apache-2.0" ]
17
2017-07-05T07:25:38.000Z
2021-01-20T14:52:29.000Z
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import os from gevent.wsgi import WSGIServer from appr.api.app import create_app class GeventApp(object): def __init__(self, options=None): self.args_options = options or {} os.environ['APPR_DB_CLASS'] = self...
29.904762
87
0.678344
c207a5e135bb29ed6e8c8fd7c871ce0be75bcc50
6,580
py
Python
paleomix/tools/bam_stats/common.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
33
2015-04-08T10:44:19.000Z
2021-11-01T14:23:40.000Z
paleomix/tools/bam_stats/common.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
41
2015-07-17T12:46:16.000Z
2021-10-13T06:47:25.000Z
paleomix/tools/bam_stats/common.py
MikkelSchubert/paleomix
5c6414060088ba178ff1c400bdbd45d2f6b1aded
[ "MIT" ]
19
2015-01-23T07:09:39.000Z
2021-04-06T09:30:21.000Z
#!/usr/bin/python3 # # Copyright (c) 2012 Mikkel Schubert <MikkelSch@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights ...
32.254902
85
0.641185
98df0636e57380866d9e79323e37425519c7e325
1,936
py
Python
sector/types/blockchain_format/reward_chain_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
13
2021-07-06T12:45:25.000Z
2021-09-10T22:24:52.000Z
sector/types/blockchain_format/reward_chain_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
null
null
null
sector/types/blockchain_format/reward_chain_block.py
bithadder/sector-blockchain
ce63d162cd8c0c7c85ae64d6d6e8bede0a8675e6
[ "Apache-2.0" ]
6
2021-07-06T01:14:53.000Z
2021-07-18T05:33:02.000Z
from dataclasses import dataclass from typing import Optional from blspy import G2Element from sector.types.blockchain_format.proof_of_space import ProofOfSpace from sector.types.blockchain_format.sized_bytes import bytes32 from sector.types.blockchain_format.vdf import VDFInfo from sector.util.ints import uint8, uin...
35.2
81
0.768595
f06c9aba61c6e5a860c4ec69c42f50809f3800c6
3,369
py
Python
cathay/settings.py
calvin620707/CathayCsvConverter
1a4275383564b81b9fb5c6d045389e50c51ecce1
[ "MIT" ]
null
null
null
cathay/settings.py
calvin620707/CathayCsvConverter
1a4275383564b81b9fb5c6d045389e50c51ecce1
[ "MIT" ]
null
null
null
cathay/settings.py
calvin620707/CathayCsvConverter
1a4275383564b81b9fb5c6d045389e50c51ecce1
[ "MIT" ]
null
null
null
""" Django settings for cathay project. Generated by 'django-admin startproject' using Django 2.0.4. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import logging...
26.320313
97
0.697833
fb2fd8de619ebbc1cb45499a90f4c580d28658ec
2,007
py
Python
sdk/python/v1beta1/setup.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
sdk/python/v1beta1/setup.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
sdk/python/v1beta1/setup.py
ChenjunZou/katib
6a07daae796c29d24f63375cce71b75c4eee8d9c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 kubeflow.org. # # 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,...
37.867925
75
0.679621
575234fa05babc650cbca1802839304982af7745
525
py
Python
tests/conftest.py
timgates42/guv
d7bac2ca6a73cc2059969af08223b82f3e187922
[ "MIT" ]
120
2015-01-05T15:15:26.000Z
2020-07-28T11:25:10.000Z
tests/conftest.py
timgates42/guv
d7bac2ca6a73cc2059969af08223b82f3e187922
[ "MIT" ]
22
2015-01-12T21:52:32.000Z
2017-01-22T18:18:20.000Z
tests/conftest.py
timgates42/guv
d7bac2ca6a73cc2059969af08223b82f3e187922
[ "MIT" ]
13
2015-01-18T11:42:34.000Z
2021-07-15T10:59:22.000Z
import pytest from guv.greenio import socket from guv import listen @pytest.fixture(scope='session') def pub_addr(): """A working public address that is considered always available """ return 'gnu.org', 80 @pytest.fixture(scope='session') def fail_addr(): """An address that nothing is listening on ...
16.935484
67
0.670476
c492c9bd203df7564d1fe3bd1ebbd2371ccfd1cd
14,876
py
Python
export_pmd.py
ousttrue/blpymeshio
6f79c0b1c902f297ebb562cee633fbbab8790cd6
[ "MIT" ]
4
2019-10-02T20:46:18.000Z
2021-03-16T23:35:48.000Z
export_pmd.py
ousttrue/blpymeshio
6f79c0b1c902f297ebb562cee633fbbab8790cd6
[ "MIT" ]
3
2018-08-27T16:15:33.000Z
2020-05-19T17:29:50.000Z
export_pmd.py
ousttrue/blpymeshio
6f79c0b1c902f297ebb562cee633fbbab8790cd6
[ "MIT" ]
5
2019-05-13T18:23:39.000Z
2021-07-05T20:56:10.000Z
#!BPY # coding: utf-8 """ Name: 'MikuMikuDance model (.pmd)...' Blender: 248 Group: 'Export' Tooltip: 'Export PMD file for MikuMikuDance.' """ __author__= ["ousttrue"] __version__= "2.5" __url__=() __bpydoc__=""" pmd Importer This script exports a pmd model. 20100318: first implementation. 20100519: refactoring. ...
34.276498
98
0.59391
3264670301198a064e03858f5e315775f1ed2bef
20,987
py
Python
test/python/quantum_info/operators/test_operator.py
ma5x/qiskit-terra
7e1969297b1f9a40371dfa38cdc09487efbb1084
[ "Apache-2.0" ]
null
null
null
test/python/quantum_info/operators/test_operator.py
ma5x/qiskit-terra
7e1969297b1f9a40371dfa38cdc09487efbb1084
[ "Apache-2.0" ]
null
null
null
test/python/quantum_info/operators/test_operator.py
ma5x/qiskit-terra
7e1969297b1f9a40371dfa38cdc09487efbb1084
[ "Apache-2.0" ]
1
2020-02-27T14:05:24.000Z
2020-02-27T14:05:24.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.019928
90
0.593844
16d35d92117917030bf6fc3827316956afa3200e
3,383
py
Python
contrib/runners/orquesta_runner/tests/integration/test_expr_func_st2kv.py
shusugmt/st2
31da26badfb4ca3fb3e8cae07cfeec4791191afd
[ "Apache-2.0" ]
1
2020-11-09T21:05:33.000Z
2020-11-09T21:05:33.000Z
contrib/runners/orquesta_runner/tests/integration/test_wiring_functions_st2kv.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
3
2021-03-25T23:57:10.000Z
2021-03-26T00:01:05.000Z
contrib/runners/orquesta_runner/tests/integration/test_wiring_functions_st2kv.py
ellerbrock/st2
b3a0d9f82053c1fd5adb616dc8331bad427cd11f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed to the StackStorm, Inc ('StackStorm') 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 "Lice...
34.171717
77
0.658587
f75f9e1a84fb1952a0ef182a35374132cbae3978
4,078
py
Python
osm-adaptor/swagger_server/models/inline_response2001.py
kant/osslm-OpenSourceMANO-adaptor
191673aa1935be4f986b1c5edc642622a38fcc65
[ "Apache-2.0" ]
3
2017-11-17T08:12:14.000Z
2021-04-08T20:12:07.000Z
osm-adaptor/swagger_server/models/inline_response2001.py
kant/osslm-OpenSourceMANO-adaptor
191673aa1935be4f986b1c5edc642622a38fcc65
[ "Apache-2.0" ]
1
2017-11-16T14:42:08.000Z
2017-11-16T14:42:08.000Z
osm-adaptor/swagger_server/models/inline_response2001.py
kant/osslm-OpenSourceMANO-adaptor
191673aa1935be4f986b1c5edc642622a38fcc65
[ "Apache-2.0" ]
4
2018-01-18T02:36:09.000Z
2020-06-29T13:54:43.000Z
# coding: utf-8 from __future__ import absolute_import from .base_model_ import Model from datetime import date, datetime from typing import List, Dict from ..util import deserialize_model class InlineResponse2001(Model): """ NOTE: This class is auto generated by the swagger code generator program. Do no...
27.369128
108
0.603727
b01bd0b7a8f2511733197637a2633b678db5412f
3,286
py
Python
tests/dicom/test_dose.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
1
2020-12-20T14:13:56.000Z
2020-12-20T14:13:56.000Z
tests/dicom/test_dose.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
null
null
null
tests/dicom/test_dose.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
1
2020-12-20T14:14:00.000Z
2020-12-20T14:14:00.000Z
# Copyright (C) 2018 Matthew Jennings # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in wri...
34.957447
87
0.721546
aa7511e9b3db4eaa762aa5f44d6d88fb6e583289
12,998
py
Python
mplt/__init__.py
mizzbrumblebee/mplt
355f3010d7a4cd0d29c23552830d7146f1ad5e25
[ "MIT" ]
null
null
null
mplt/__init__.py
mizzbrumblebee/mplt
355f3010d7a4cd0d29c23552830d7146f1ad5e25
[ "MIT" ]
null
null
null
mplt/__init__.py
mizzbrumblebee/mplt
355f3010d7a4cd0d29c23552830d7146f1ad5e25
[ "MIT" ]
null
null
null
"""Set of niceties wrapping matplotlib """ __author__ = 'Craig Stringham' __version__ = 2.0 import matplotlib # in order to pass through and un-overloaded functions to pyplot from matplotlib.pyplot import * import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.path import Path as mpPat...
28.948775
135
0.571703
56a2baa6697fce72ecee974d7e880b45d8f9bf0d
1,603
py
Python
odp/api/routers/tag.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
odp/api/routers/tag.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
odp/api/routers/tag.py
SAEON/Open-Data-Platform
8509c39c6f65ba18518e825e2359213ec4c67af5
[ "MIT" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException from jschon import URI from sqlalchemy import select from starlette.status import HTTP_404_NOT_FOUND from odp import ODPScope from odp.api.lib.auth import Authorize from odp.api.lib.paging import Page, Paginator from odp.api.models import TagModel from odp.db impor...
25.046875
77
0.660012
140385f8cd0ca81ae687531b63687ab1aafed08b
2,317
py
Python
generate_tracks.py
DurbinLiu/deepfake-detection-challenge
c42f335ec861c7f2462cb0703ca53abf7b6a22a5
[ "Apache-2.0" ]
null
null
null
generate_tracks.py
DurbinLiu/deepfake-detection-challenge
c42f335ec861c7f2462cb0703ca53abf7b6a22a5
[ "Apache-2.0" ]
null
null
null
generate_tracks.py
DurbinLiu/deepfake-detection-challenge
c42f335ec861c7f2462cb0703ca53abf7b6a22a5
[ "Apache-2.0" ]
null
null
null
import os import yaml import tqdm import glob import pickle from tracker.iou_tracker import track_iou from detect_faces_on_videos import DETECTIONS_FILE_NAME, DETECTIONS_ROOT SIGMA_L = 0.3 SIGMA_H = 0.9 SIGMA_IOU = 0.3 T_MIN = 1 TRACKS_FILE_NAME = 'tracks.pkl' def get_tracks(detections): if l...
32.633803
111
0.665084
3e4ee7ffc8d84f1ca049a2eee95f245339beeb64
301
py
Python
Mundo 1 Fundamentos/ex012.py
costa53/curso_em_video_python3
4f859641324f8b35be56d807f40457d7dddc451f
[ "MIT" ]
1
2022-02-17T16:23:52.000Z
2022-02-17T16:23:52.000Z
Mundo 1 Fundamentos/ex012.py
costa53/curso_em_video_python3
4f859641324f8b35be56d807f40457d7dddc451f
[ "MIT" ]
null
null
null
Mundo 1 Fundamentos/ex012.py
costa53/curso_em_video_python3
4f859641324f8b35be56d807f40457d7dddc451f
[ "MIT" ]
null
null
null
# DESAFIO 012 # Faça um algoritmo que leia o preço de um produto e mostre seu novo preço, com 5% de desconto. pr = float(input('Qual é o preço do produto? R$')) desc = 5 pf = pr - (pr * desc / 100) print(f'O produto que custava R${pr:.2f}, na promoção com desconto de {desc}% vai custar R${pf:.2f}')
37.625
101
0.674419
c7f9ce9967a048b500e61ff70ff76da438293b78
5,022
py
Python
ECore_Copier_MM/transformation-Large/HepackageOUTeFactoryInstanceSolveRefEPackageEFactoryEPackageEFactory.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
ECore_Copier_MM/transformation-Large/HepackageOUTeFactoryInstanceSolveRefEPackageEFactoryEPackageEFactory.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
ECore_Copier_MM/transformation-Large/HepackageOUTeFactoryInstanceSolveRefEPackageEFactoryEPackageEFactory.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from core.himesis import Himesis class HepackageOUTeFactoryInstanceSolveRefEPackageEFactoryEPackageEFactory(Himesis): def __init__(self): """ Creates the himesis graph representing the AToM3 model HepackageOUTeFactoryInstanceSolveRefEPackageEFactoryEPackageEFactory. """ # Flag thi...
48.288462
298
0.544604
9bf3a0d83d4975996e74d32119e3cea15412e6cf
4,699
py
Python
bdscan/bdio.py
matthewb66/blackduck-scan-directguidance
00d7dc76fad67bc7df8765048f2b1b115a1f7d3c
[ "Apache-2.0" ]
null
null
null
bdscan/bdio.py
matthewb66/blackduck-scan-directguidance
00d7dc76fad67bc7df8765048f2b1b115a1f7d3c
[ "Apache-2.0" ]
null
null
null
bdscan/bdio.py
matthewb66/blackduck-scan-directguidance
00d7dc76fad67bc7df8765048f2b1b115a1f7d3c
[ "Apache-2.0" ]
null
null
null
# import argparse import glob # import hashlib import json import os # import random # import re # import shutil import sys import zipfile from bdscan import globals import networkx as nx # from BlackDuckUtils import Utils # from BlackDuckUtils import NpmUtils # from BlackDuckUtils import MavenUtils # from blackduck ...
37.592
114
0.642903
8c5f2cf9011ebe7f3ea8cf6f53b5c06aa49434ea
6,859
py
Python
scripts/4_multihop_ps.py
jobine/HGN
6d8dd5ebf2a5077652b09a00610ade89bfcd6b4b
[ "MIT" ]
null
null
null
scripts/4_multihop_ps.py
jobine/HGN
6d8dd5ebf2a5077652b09a00610ade89bfcd6b4b
[ "MIT" ]
null
null
null
scripts/4_multihop_ps.py
jobine/HGN
6d8dd5ebf2a5077652b09a00610ade89bfcd6b4b
[ "MIT" ]
2
2021-04-19T06:18:30.000Z
2021-05-31T07:26:29.000Z
import spacy import json import os import re import torch import numpy as np import sys from tqdm import tqdm from collections import Counter assert len(sys.argv) == 6 raw_data = json.load(open(sys.argv[1], 'r')) doc_link_data = json.load(open(sys.argv[2], 'r')) ent_data = json.load(open(sys.argv[3], ...
33.135266
107
0.609856
25dad46d06176f0c906759c2346750058a3cd097
602
py
Python
mapss/static/packages/arches/arches/app/models/migrations/3808_card_component_command.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
mapss/static/packages/arches/arches/app/models/migrations/3808_card_component_command.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
mapss/static/packages/arches/arches/app/models/migrations/3808_card_component_command.py
MPI-MAPSS/MAPSS
3a5c0109758801717aaa8de1125ca5e98f83d3b4
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-08-23 15:43 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('models', '3789_card_config'), ] operations = [ migrations.AlterField...
26.173913
196
0.66113
0f81e5a201240760692fe221faea84e61d0dc9d0
4,286
py
Python
bokeh/sphinxext/example_handler.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2015-01-31T14:42:39.000Z
2015-01-31T14:42:39.000Z
bokeh/sphinxext/example_handler.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-05-08T06:24:26.000Z
2021-05-08T06:24:26.000Z
bokeh/sphinxext/example_handler.py
timgates42/bokeh
fb8b07b838f4d07d520cfe899779a11bc89f3c77
[ "BSD-3-Clause" ]
1
2021-03-04T05:23:36.000Z
2021-03-04T05:23:36.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
30.183099
78
0.433271
bdab9e33397041cb127e2e74da182c3a18dd9770
2,173
py
Python
submarine-sdk/pysubmarine/submarine/client/models/__init__.py
10088/submarine
9a9c7100dfa95c5126c15aec82092bb899565dac
[ "Apache-2.0" ]
null
null
null
submarine-sdk/pysubmarine/submarine/client/models/__init__.py
10088/submarine
9a9c7100dfa95c5126c15aec82092bb899565dac
[ "Apache-2.0" ]
null
null
null
submarine-sdk/pysubmarine/submarine/client/models/__init__.py
10088/submarine
9a9c7100dfa95c5126c15aec82092bb899565dac
[ "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 ...
48.288889
322
0.810861
e3d70125b8d8d1d21f5d6d737150a4597d3325c3
7,395
py
Python
bindings/python/cntk/tests/distributed_test.py
catycaldwell/CNTK
86a20080b19255b96ada85b6a7ab6b8e7be7465b
[ "RSA-MD" ]
null
null
null
bindings/python/cntk/tests/distributed_test.py
catycaldwell/CNTK
86a20080b19255b96ada85b6a7ab6b8e7be7465b
[ "RSA-MD" ]
null
null
null
bindings/python/cntk/tests/distributed_test.py
catycaldwell/CNTK
86a20080b19255b96ada85b6a7ab6b8e7be7465b
[ "RSA-MD" ]
1
2021-01-21T05:58:03.000Z
2021-01-21T05:58:03.000Z
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== import math import numpy as np import pytest from .. import Function from ..traine...
38.921053
123
0.694253
e522a3c1fe15bd81b4c35e22cef3fba4dcc3ca22
78
py
Python
Classwork/openFile.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
Classwork/openFile.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
Classwork/openFile.py
rhiggins2308/G00364712-problemSet
90ab72c15e3093104102224a96c728e1cf196157
[ "Apache-2.0" ]
null
null
null
f = open("data/iris.csv") print(f) print(f.readline) print(f.read) f.close()
11.142857
25
0.666667
ee9c1a30279938de30535f32824240b505b0c118
1,631
py
Python
ocd/abc.py
neurobin/python-ocd
178bc7923e4702a1d90b2b38bc28515921f8553d
[ "BSD-3-Clause" ]
null
null
null
ocd/abc.py
neurobin/python-ocd
178bc7923e4702a1d90b2b38bc28515921f8553d
[ "BSD-3-Clause" ]
1
2020-04-26T16:00:32.000Z
2020-04-26T16:00:32.000Z
ocd/abc.py
neurobin/python-easyvar
178bc7923e4702a1d90b2b38bc28515921f8553d
[ "BSD-3-Clause" ]
null
null
null
"""Abstract base classes. """ __author__ = 'Md Jahidul Hamid <jahidulhamid@yahoo.com>' __copyright__ = 'Copyright © Md Jahidul Hamid <https://github.com/neurobin/>' __license__ = '[BSD](http://www.opensource.org/licenses/bsd-license.php)' __version__ = '0.0.4' class VarConf(): """A base class that must be inher...
35.456522
77
0.627223
b6caef7be0e6b941f11345ef8b42ed50ae01686e
966
py
Python
configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes_OptExpTMO_subset.py
ismailkocdemir/mmdetection
4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823
[ "Apache-2.0" ]
null
null
null
configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes_OptExpTMO_subset.py
ismailkocdemir/mmdetection
4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823
[ "Apache-2.0" ]
null
null
null
configs/cityscapes/faster_rcnn_r50_fpn_1x_cityscapes_OptExpTMO_subset.py
ismailkocdemir/mmdetection
4ac7e76dc66be7c97a8ca2c5f8a8e71434e3d823
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/models/faster_rcnn_r50_fpn_scratch.py', '../_base_/datasets/cityscapes_detection_OptExp_90.py', '../_base_/default_runtime.py' ] dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 1)] evaluation = dict(interval=1, classwis...
25.421053
75
0.643892
8a5e73283de698d7dd03754638052cdcd75dcb59
2,485
py
Python
codigo/update_deceased.py
kant/Mexico-datos
12a49b6bc71126a460c3c167906e8648c5e9eafe
[ "MIT" ]
null
null
null
codigo/update_deceased.py
kant/Mexico-datos
12a49b6bc71126a460c3c167906e8648c5e9eafe
[ "MIT" ]
null
null
null
codigo/update_deceased.py
kant/Mexico-datos
12a49b6bc71126a460c3c167906e8648c5e9eafe
[ "MIT" ]
null
null
null
import os import pandas as pd rolling_window = 7 # promedio sobre 7 días repo = os.pardir dir_series = os.path.join(repo, 'datos', 'series_de_tiempo', '') dir_datos_abiertos = os.path.join(repo, 'datos_abiertos', '') dir_series_abiertos = os.path.join(dir_datos_abiertos, 'series_de_tiempo', 'nuevos', '') dir_save ...
37.651515
91
0.713883
7414be303280cc8b31a5233e8d08bff454e25ecd
2,548
py
Python
tests/test_models/test_dense_heads/test_anchor_head.py
Brym-Gyimah/mmdetection
d5d749afe57c77e2ec4500395faed3566fdfedae
[ "Apache-2.0" ]
20,190
2018-09-10T01:11:53.000Z
2022-03-31T22:31:33.000Z
tests/test_models/test_dense_heads/test_anchor_head.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
6,736
2018-09-17T09:45:51.000Z
2022-03-31T22:54:10.000Z
tests/test_models/test_dense_heads/test_anchor_head.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
7,837
2018-09-11T02:58:23.000Z
2022-03-31T22:31:38.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import torch from mmdet.models.dense_heads import AnchorHead def test_anchor_head_loss(): """Tests anchor head loss when truth is empty and non-empty.""" s = 256 img_metas = [{ 'img_shape': (s, s, 3), 'scale_factor': 1, '...
35.887324
79
0.602433
de6296d26ecda4c8d517c16b2c7aafe35abbd4ef
6,078
py
Python
sem2/lab1/parabolic.py
NetherQuartz/NumericalMethodsLabs
731ba11bc068018371d5e1a2f9b521ec7c4619ad
[ "MIT" ]
1
2021-04-10T18:10:48.000Z
2021-04-10T18:10:48.000Z
sem2/lab1/parabolic.py
NetherQuartz/NumericalMethodsLabs
731ba11bc068018371d5e1a2f9b521ec7c4619ad
[ "MIT" ]
null
null
null
sem2/lab1/parabolic.py
NetherQuartz/NumericalMethodsLabs
731ba11bc068018371d5e1a2f9b521ec7c4619ad
[ "MIT" ]
null
null
null
import fire import numpy as np import matplotlib.pyplot as plt from utilities import str2fun def tma(a, b, c, d): size = len(a) p, q = [], [] p.append(-c[0] / b[0]) q.append(d[0] / b[0]) for i in range(1, size): p_tmp = -c[i] / (b[i] + a[i] * p[i - 1]) q_tmp = (d[i] - a[i] * q[i ...
26.198276
105
0.471866
f66cc0dad7c14ba0366be5a44d0217ee567c55ff
3,281
py
Python
tests/test_cur.py
blester125/CUR_Decomposition
a74994b47fb3345a01821f9f102cab59c405be71
[ "MIT" ]
2
2019-07-08T09:30:19.000Z
2020-02-14T10:58:20.000Z
tests/test_cur.py
blester125/CUR_Decomposition
a74994b47fb3345a01821f9f102cab59c405be71
[ "MIT" ]
null
null
null
tests/test_cur.py
blester125/CUR_Decomposition
a74994b47fb3345a01821f9f102cab59c405be71
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, patch import numpy as np from cur.cur import ( probabilities, select_part, select_C, select_R, select_W, psuedo_inverse, make_U, cur_decomposition, ) """Demo data from Mining of Massive Datasets p. 408""" input_ = np.array([ [1, 1, 1, 0, 0], ...
28.284483
64
0.591893
848bf9135ccf2b9dc456cd4b91c6303a86558a6d
984
py
Python
test/gst-va/vpp/transpose.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
19
2019-03-05T01:59:05.000Z
2022-01-11T15:31:49.000Z
test/gst-va/vpp/transpose.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
213
2019-01-29T18:44:05.000Z
2022-03-30T05:57:04.000Z
test/gst-va/vpp/transpose.py
tong1wu/vaapi-fits
4d5d01668905ed84d4077e4a7a019d7ced0864e5
[ "BSD-3-Clause" ]
26
2019-01-29T05:21:22.000Z
2022-02-09T00:57:35.000Z
### ### Copyright (C) 2021 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### from ....lib import * from ....lib.gstreamer.va.util import * from ....lib.gstreamer.va.vpp import VppTest spec = load_test_spec("vpp", "transpose") @slash.requires(*platform.have_caps("vpp", "transpose")) class default(Vp...
25.894737
74
0.635163
f5a8272a1dc192cd1650c94442748183730870b5
1,046
py
Python
examples/option/model.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
17
2017-12-08T10:21:18.000Z
2022-01-13T09:29:43.000Z
examples/option/model.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
61
2018-07-21T21:37:12.000Z
2021-07-10T12:49:15.000Z
examples/option/model.py
vishalbelsare/neworder
38635fca64f239a9e8eb1a671872c174e1814678
[ "MIT" ]
6
2019-06-06T18:29:31.000Z
2021-08-20T13:32:17.000Z
""" Example - pricing a simple option The main vanishing point of this example is to illustrate how different processes can interact within the model, and how to synchronise the random streams in each process """ import neworder from black_scholes import BlackScholes # neworder.verbose() # uncomment for verbose lo...
24.904762
88
0.729446
41cb077fd298ef85de3b2afd3c0230be19f5c4fd
2,589
py
Python
event/onvoicestateupdate.py
ZigAnon/zigbot
a8e54a9e30b15abac6d4defea20f3208cee87e30
[ "MIT" ]
null
null
null
event/onvoicestateupdate.py
ZigAnon/zigbot
a8e54a9e30b15abac6d4defea20f3208cee87e30
[ "MIT" ]
null
null
null
event/onvoicestateupdate.py
ZigAnon/zigbot
a8e54a9e30b15abac6d4defea20f3208cee87e30
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import stackprinter as sp from bin import zb class onvoicestateupdateCog(commands.Cog): def __init__(self, bot): self.bot = bot # Events on member join @commands.Cog.listener() async def on_voice_state_update(self, member, before, after): ...
38.073529
77
0.548861
5166b3bab53a677b55fb04a0f93a165919544d33
1,426
py
Python
comments/management/commands/pop_comments.py
joshuanazareth97/cmod
bf3232f7cd062cfdac9b86eef6687db0c45fc2ef
[ "MIT" ]
null
null
null
comments/management/commands/pop_comments.py
joshuanazareth97/cmod
bf3232f7cd062cfdac9b86eef6687db0c45fc2ef
[ "MIT" ]
null
null
null
comments/management/commands/pop_comments.py
joshuanazareth97/cmod
bf3232f7cd062cfdac9b86eef6687db0c45fc2ef
[ "MIT" ]
null
null
null
import random from django.core.management.base import BaseCommand, CommandError from comments.models import Candidate, Comment from faker import Faker from faker.providers import lorem class Command(BaseCommand): def __init__(self, *args, **kwargs): super(BaseCommand, self).__init__(*args, **kwargs) ...
39.611111
173
0.642356
433c71d15b9ed4357ed860d316d25365e922be87
4,331
py
Python
benchmark/startQiskit1431.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1431.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit1431.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=5 # total number=55 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy as np import networkx as ...
32.081481
82
0.605403
1e61ea93c48673b55ce4b8934e06db941b53434f
156
py
Python
app.py
Shubham654/Image_Caption_In_Flask
0c641602f73464815ff55e49f0035359ee0e18e5
[ "MIT" ]
null
null
null
app.py
Shubham654/Image_Caption_In_Flask
0c641602f73464815ff55e49f0035359ee0e18e5
[ "MIT" ]
null
null
null
app.py
Shubham654/Image_Caption_In_Flask
0c641602f73464815ff55e49f0035359ee0e18e5
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def home(): return "HELLO Shubham" if __name__ == '__main__': app.run(debug=True)
13
26
0.653846
a8b0260995482da49d8adf4cf28f57de040c3349
1,759
py
Python
final_gpt2_test_wikitext103-fp32.py
minhhn2910/conga2022
81ad2fb9c0055c332f8f305b2ea409b6577003f4
[ "MIT" ]
null
null
null
final_gpt2_test_wikitext103-fp32.py
minhhn2910/conga2022
81ad2fb9c0055c332f8f305b2ea409b6577003f4
[ "MIT" ]
null
null
null
final_gpt2_test_wikitext103-fp32.py
minhhn2910/conga2022
81ad2fb9c0055c332f8f305b2ea409b6577003f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Transformers installation import numpy as np from transformers import GPT2LMHeadModel, GPT2TokenizerFast from qtorch.quant import posit_quantize, float_quantize, configurable_table_quantize device = 'cuda' model_id = 'gpt2-large' tokenizer = GPT2TokenizerFast.from_pretrained(model_id) fro...
25.128571
84
0.670836
8b111459077c0e4e28cfaed9c70a1662e4c822e3
3,144
py
Python
azure-mgmt-web/azure/mgmt/web/models/csr.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:16:34.000Z
2018-11-09T06:16:34.000Z
azure-mgmt-web/azure/mgmt/web/models/csr.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
null
null
null
azure-mgmt-web/azure/mgmt/web/models/csr.py
azuresdkci1x/azure-sdk-for-python-1722
e08fa6606543ce0f35b93133dbb78490f8e6bcc9
[ "MIT" ]
1
2018-11-09T06:17:41.000Z
2018-11-09T06:17:41.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
39.3
212
0.615776
4dabdec2cdccbc27f37a3ea26cc01e7605482fc2
1,794
py
Python
cgi-bin/request/hourlyprecip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
cgi-bin/request/hourlyprecip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
cgi-bin/request/hourlyprecip.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Hourly precip download""" import cgi import datetime import pytz from pyiem.util import get_dbconn, ssw def get_data(network, sts, ets, tzinfo, stations): """Go fetch data please""" pgconn = get_dbconn('iem', user='nobody') cursor = pgconn.cursor() res = ("station,network,val...
31.473684
76
0.561315
c40ac566f37b1de23756d0e061990c094053142f
35,444
py
Python
get_map.py
ChrisLiuxp/efficientdet
5d52ac491e1dd2a29ee6650bb746f1e840c24fcc
[ "MIT" ]
null
null
null
get_map.py
ChrisLiuxp/efficientdet
5d52ac491e1dd2a29ee6650bb746f1e840c24fcc
[ "MIT" ]
null
null
null
get_map.py
ChrisLiuxp/efficientdet
5d52ac491e1dd2a29ee6650bb746f1e840c24fcc
[ "MIT" ]
null
null
null
import glob import json import os import shutil import operator import sys import argparse import math import numpy as np #----------------------------------------------------# # 用于计算mAP # 代码克隆自https://github.com/Cartucho/mAP #----------------------------------------------------# MINOVERLAP = 0.5 # default value (...
38.864035
135
0.573948
f41444ad3c7e4f6b3650c8f73851eda4d02bee9e
411
py
Python
test/unittests/gui/views/widgets/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
test/unittests/gui/views/widgets/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
test/unittests/gui/views/widgets/__init__.py
Alexhuszagh/XLDiscoverer
60937b1f7f2e23af4219eb26519d6b83fb4232d6
[ "Apache-2.0", "MIT" ]
null
null
null
''' Unittests/Gui/Views/Widgets ___________________________ Test suite for widget definitions. :copyright: (c) 2015 The Regents of the University of California. :license: GNU GPL, see licenses/GNU GPLv3.txt for more details. ''' # load modules/submodules from . import header # SUITE # ----- de...
18.681818
69
0.693431
ee386b3557e992772f63f93cc1e43c4a0630bc93
371
py
Python
habari/celery.py
ppolle/habari
671b98c361ce593f708bc15f69dd3aa6fe72b128
[ "MIT" ]
3
2020-06-08T08:39:06.000Z
2020-07-30T10:46:22.000Z
habari/celery.py
ppolle/habari
671b98c361ce593f708bc15f69dd3aa6fe72b128
[ "MIT" ]
9
2021-03-19T11:18:58.000Z
2022-02-10T15:48:35.000Z
habari/celery.py
ppolle/habari
671b98c361ce593f708bc15f69dd3aa6fe72b128
[ "MIT" ]
1
2021-09-22T07:23:03.000Z
2021-09-22T07:23:03.000Z
from __future__ import absolute_import, unicode_literals import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'habari.settings') app = Celery('habari') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() @app.task(bind=True) def debug_task(self):...
24.733333
66
0.778976
51dad37e5119ecd3ceb561b5b78f7f78b073715c
6,868
py
Python
autofit/graphical/expectation_propagation/ep_mean_field.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
39
2019-01-24T10:45:23.000Z
2022-03-18T09:37:59.000Z
autofit/graphical/expectation_propagation/ep_mean_field.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
260
2018-11-27T12:56:33.000Z
2022-03-31T16:08:59.000Z
autofit/graphical/expectation_propagation/ep_mean_field.py
caoxiaoyue/PyAutoFit
819cd2acc8d4069497a161c3bb6048128e44d828
[ "MIT" ]
13
2018-11-30T16:49:05.000Z
2022-01-21T17:39:29.000Z
import logging from typing import ( Dict, Tuple, Optional, List ) import numpy as np from autofit.graphical.factor_graphs import ( Factor, FactorGraph ) from autofit.graphical.mean_field import MeanField, FactorApproximation from autofit.graphical.utils import Status from autofit.mapper.variable import Variab...
28.497925
83
0.622452
3ed7cbf6be384e29d18fdcfc8fd502e3ca5eff8c
9,001
py
Python
plugins/trezor/clientbase.py
johnlito123/electrum-xuez
4eb35889f95e31f0a08d5488082df9ab94b4c3ca
[ "MIT" ]
null
null
null
plugins/trezor/clientbase.py
johnlito123/electrum-xuez
4eb35889f95e31f0a08d5488082df9ab94b4c3ca
[ "MIT" ]
null
null
null
plugins/trezor/clientbase.py
johnlito123/electrum-xuez
4eb35889f95e31f0a08d5488082df9ab94b4c3ca
[ "MIT" ]
4
2018-07-07T16:35:50.000Z
2018-12-25T16:02:52.000Z
import time from struct import pack from electrum_xuez.i18n import _ from electrum_xuez.util import PrintError, UserCancelled from electrum_xuez.keystore import bip39_normalize_passphrase from electrum_xuez.bitcoin import serialize_xpub class GuiMixin(object): # Requires: self.proto, self.device messages = ...
38.302128
136
0.616265
6fd0ccb98a789d98d42e1b7d5d0fb1466f529314
4,855
py
Python
tools/external_devel.py
chemoelectric/sortsmill
90b97a9296582211a133970bb577013c9c86ed81
[ "MIT" ]
1
2021-10-14T20:56:30.000Z
2021-10-14T20:56:30.000Z
tools/external_devel.py
chemoelectric/sortsmill
90b97a9296582211a133970bb577013c9c86ed81
[ "MIT" ]
null
null
null
tools/external_devel.py
chemoelectric/sortsmill
90b97a9296582211a133970bb577013c9c86ed81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ A module for use with external development tools/methods, such as the OCaml programming favored at the Sorts Mill. Copyright (c) 2011 Barry Schwartz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Soft...
32.583893
95
0.568692
50e799a02a6dd5a8ff3983b4cf841850520d8f89
1,965
py
Python
setup.py
rll/cyres
c28f52130709e314914cc36c4702e6497d47994e
[ "BSD-2-Clause" ]
43
2015-01-27T23:27:36.000Z
2021-08-22T14:27:11.000Z
setup.py
rll/cyres
c28f52130709e314914cc36c4702e6497d47994e
[ "BSD-2-Clause" ]
4
2015-05-06T23:01:11.000Z
2017-04-10T13:48:21.000Z
setup.py
rll/cyres
c28f52130709e314914cc36c4702e6497d47994e
[ "BSD-2-Clause" ]
17
2015-02-05T22:53:50.000Z
2019-08-13T03:53:46.000Z
from distutils.core import setup from Cython.Distutils import Extension from Cython.Distutils import build_ext import numpy import os, tempfile, subprocess, shutil # see http://openmp.org/wp/openmp-compilers/ omp_test = r"""#include <omp.h> #include <stdio.h> int main() { #pragma omp parallel printf("Hello from threa...
26.554054
113
0.650891
031107620ab18dcd1346c565934bf0a13f111fbb
4,164
py
Python
util/xds.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
58
2015-10-15T09:28:20.000Z
2022-03-28T20:09:38.000Z
util/xds.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
1,741
2015-11-24T08:17:02.000Z
2022-03-31T15:46:42.000Z
util/xds.py
graeme-winter/dials
78a696a6591e224e73204846f39771ebac0c2668
[ "BSD-3-Clause" ]
45
2015-10-14T13:44:16.000Z
2022-03-22T14:45:56.000Z
import logging import os from dxtbx.serialize import xds from iotbx.xds import spot_xds from scitbx import matrix logger = logging.getLogger(__name__) def dump(experiments, reflections, directory): """Dump the files in XDS format""" if len(experiments) > 0: for i, experiment in enumerate(experiments...
40.427184
88
0.563401
585838beafef5b1649e5a458fab61f9c3c1cf46d
19,289
py
Python
qiskit-runtime/qiskit_runtime/qka/qka.py
Avhijit-codeboy/Portfolio-Diversification
b71abd4365a21e4c9939bd8c52cbeb83fd496583
[ "Apache-2.0" ]
null
null
null
qiskit-runtime/qiskit_runtime/qka/qka.py
Avhijit-codeboy/Portfolio-Diversification
b71abd4365a21e4c9939bd8c52cbeb83fd496583
[ "Apache-2.0" ]
null
null
null
qiskit-runtime/qiskit_runtime/qka/qka.py
Avhijit-codeboy/Portfolio-Diversification
b71abd4365a21e4c9939bd8c52cbeb83fd496583
[ "Apache-2.0" ]
null
null
null
# This code is part of qiskit-runtime. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications ...
37.165703
100
0.574317
c698a83d19f69e3335398b295bba1bbcadbbe595
126
py
Python
Python/Project Euler/Maximum Path Sum 1/max_sum.py
ZacJoffe/competitive-programming
8150c9e12198500d8f57c6281f268d8027e7c318
[ "MIT" ]
null
null
null
Python/Project Euler/Maximum Path Sum 1/max_sum.py
ZacJoffe/competitive-programming
8150c9e12198500d8f57c6281f268d8027e7c318
[ "MIT" ]
null
null
null
Python/Project Euler/Maximum Path Sum 1/max_sum.py
ZacJoffe/competitive-programming
8150c9e12198500d8f57c6281f268d8027e7c318
[ "MIT" ]
null
null
null
file = open("path.txt") path = [] for line in file: path.append(line) print(maxSum(path)) def maxSum(path):
11.454545
24
0.587302
961561eeab63fce882b809aaaed19634b1d9e923
7,344
py
Python
databaseConn.py
justin-oxford/dee-dee-reddit
9e7b7f15327984ac65bbf93c8e3154de3dc8699b
[ "MIT" ]
null
null
null
databaseConn.py
justin-oxford/dee-dee-reddit
9e7b7f15327984ac65bbf93c8e3154de3dc8699b
[ "MIT" ]
null
null
null
databaseConn.py
justin-oxford/dee-dee-reddit
9e7b7f15327984ac65bbf93c8e3154de3dc8699b
[ "MIT" ]
null
null
null
import datetime from mongoengine import * import timeit DB_URI = "MONGO" # DEPRECIATED high/lows over different time-frames class SpreadField(EmbeddedDocument): high = FloatField(min_value=0.0, default=0.0) low = FloatField(min_value=0.0, default=9999.0) # These are the individual points conta...
40.131148
121
0.580338
528c25064b8fcbb433350aca3e22f2b5c661e208
3,937
py
Python
src/Python/Images/BackgroundImage.py
sankhesh/vtk-examples
2d50e847ad62ce0eb71b66c029ad8abb302cd39f
[ "Apache-2.0" ]
null
null
null
src/Python/Images/BackgroundImage.py
sankhesh/vtk-examples
2d50e847ad62ce0eb71b66c029ad8abb302cd39f
[ "Apache-2.0" ]
null
null
null
src/Python/Images/BackgroundImage.py
sankhesh/vtk-examples
2d50e847ad62ce0eb71b66c029ad8abb302cd39f
[ "Apache-2.0" ]
1
2022-02-16T08:20:41.000Z
2022-02-16T08:20:41.000Z
#!/usr/bin/env python import vtk def get_program_parameters(): import argparse description = 'Add a background image at a render window.' epilogue = ''' Add a background image to a render window. ''' parser = argparse.ArgumentParser(description=description, epilog=epilogue) parser.add_...
33.939655
99
0.705359
025f9a29b17e1bd7ddc17157570d887c020aeea8
794
py
Python
challenge_2/python/lepmets/src/challenge_2.py
rchicoli/2017-challenges
44f0b672e5dea34de1dde131b6df837d462f8e29
[ "Apache-2.0" ]
271
2017-01-01T22:58:36.000Z
2021-11-28T23:05:29.000Z
challenge_2/python/lepmets/src/challenge_2.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
283
2017-01-01T23:26:05.000Z
2018-03-23T00:48:55.000Z
challenge_2/python/lepmets/src/challenge_2.py
AakashOfficial/2017Challenges
a8f556f1d5b43c099a0394384c8bc2d826f9d287
[ "Apache-2.0" ]
311
2017-01-01T22:59:23.000Z
2021-09-23T00:29:12.000Z
#! /usr/bin/python3 """Challenge #2 in Python.""" # coding: utf-8 list_with_chars = [2, 'a', 'l', 3, 'l', 4, 'k', 2, 3, 4, 'a', 6, 'c', 4, 'm', 6, 'm', 'k', 9, 10, 9, 8, 7, 8, 10, 7] list_with_numbers = [2, 3, 4, 2, 3, 5, 4, 6, 4, 6, 9, 10, 9, 8, 7, 8, 10, 7] def search_list(list_provided): ...
34.521739
103
0.579345
9fd8b989c310122879a79e00ce4f11a7ad6fe8af
2,593
py
Python
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/ggplot/__init__.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/ggplot/__init__.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
null
null
null
SprityBird/spritybird/python3.5/lib/python3.5/site-packages/ggplot/__init__.py
MobileAnalytics/iPython-Framework
da0e598308c067cd5c5290a6364b3ffaf2d2418f
[ "MIT" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) __version__ = '0.11.1' # For testing purposes we might need to set mpl backend before any # other import of matplotlib. def _set_mpl_backend(): import os import matplotlib as mpl env_backend = os.e...
43.216667
307
0.831469
4cd101cf9b2dce2b225ac9ea266afde530ec3f1e
1,846
py
Python
amadeus/namespaces/_shopping.py
siddydutta/amadeus-python
7e8b399e22c9ff4c3e4557843b52ea14844f135a
[ "MIT" ]
null
null
null
amadeus/namespaces/_shopping.py
siddydutta/amadeus-python
7e8b399e22c9ff4c3e4557843b52ea14844f135a
[ "MIT" ]
null
null
null
amadeus/namespaces/_shopping.py
siddydutta/amadeus-python
7e8b399e22c9ff4c3e4557843b52ea14844f135a
[ "MIT" ]
null
null
null
from amadeus.client.decorator import Decorator from amadeus.shopping._flight_dates import FlightDates from amadeus.shopping._flight_destinations import FlightDestinations from amadeus.shopping._flight_offers import FlightOffers from amadeus.shopping._flight_offers_search import FlightOffersSearch from amadeus.shopping....
42.930233
70
0.790899
9c3d73b43b55fad51a99616d9377303bbc21ec24
16,586
py
Python
homeassistant/components/tplink/light.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/tplink/light.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:14:33.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/tplink/light.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Support for TPLink lights.""" from datetime import timedelta import logging import time from typing import Any, Dict, NamedTuple, Tuple, cast from pyHS100 import SmartBulb, SmartDeviceException from homeassistant.components.light import ( ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_HS_COLOR, SUPPORT_BRI...
34.339545
88
0.652659
5ac529cff782c815d32adafb4c68001df84c1cd4
3,377
py
Python
smtk/attribute/testing/python/vectorExpressionTest.py
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
40
2015-02-21T19:55:54.000Z
2022-01-06T13:13:05.000Z
smtk/attribute/testing/python/vectorExpressionTest.py
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
127
2015-01-15T20:55:45.000Z
2021-08-19T17:34:15.000Z
smtk/attribute/testing/python/vectorExpressionTest.py
jcfr/SMTK
0069ea37f8f71a440b8f10a157b84a56ca004551
[ "BSD-3-Clause-Clear" ]
27
2015-03-04T14:17:51.000Z
2021-12-23T01:05:42.000Z
# ============================================================================= # # Copyright (c) Kitware, Inc. # All rights reserved. # See LICENSE.txt for details. # # This software is distributed WITHOUT ANY WARRANTY; without even # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE....
34.111111
91
0.639917
644136217ef0ae71e60380a51df2172878784762
1,897
py
Python
project/api/migrations/0002_auto_20160114_2106.py
rishatsharafiev/crm
e2c2070bb1875ca2a87ba320456f96832fd475a3
[ "MIT" ]
null
null
null
project/api/migrations/0002_auto_20160114_2106.py
rishatsharafiev/crm
e2c2070bb1875ca2a87ba320456f96832fd475a3
[ "MIT" ]
null
null
null
project/api/migrations/0002_auto_20160114_2106.py
rishatsharafiev/crm
e2c2070bb1875ca2a87ba320456f96832fd475a3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-01-14 18:06 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] ...
44.116279
233
0.675804
f8355de182f03873a127065422a29f5c3be77cd8
7,188
py
Python
models/tcn.py
dwromero/ckconv
d44c6441a98792477d6259368c210089bb33fe7a
[ "MIT" ]
74
2021-02-04T14:28:49.000Z
2022-03-23T16:12:18.000Z
models/tcn.py
dwromero/ckconv
d44c6441a98792477d6259368c210089bb33fe7a
[ "MIT" ]
7
2021-02-28T03:29:12.000Z
2022-02-16T14:33:06.000Z
models/tcn.py
dwromero/ckconv
d44c6441a98792477d6259368c210089bb33fe7a
[ "MIT" ]
6
2021-02-12T14:43:15.000Z
2021-08-11T02:42:31.000Z
import torch import torch.nn as nn from torch.nn.utils import weight_norm import ckconv class Chomp1d(nn.Module): def __init__(self, chomp_size): super(Chomp1d, self).__init__() self.chomp_size = chomp_size def forward(self, x): return x[:, :, : -self.chomp_size].contiguous() class ...
30.982759
90
0.553144
4a0244a22d6a301d1db6de1d2e15b3f1f36be1d4
1,341
py
Python
migrations/versions/27a721daab2e_renamed_email_to_login_in_user_table.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
592
2019-03-05T13:39:57.000Z
2022-03-31T14:52:58.000Z
migrations/versions/27a721daab2e_renamed_email_to_login_in_user_table.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
91
2019-04-05T20:45:26.000Z
2021-12-24T02:10:50.000Z
migrations/versions/27a721daab2e_renamed_email_to_login_in_user_table.py
pombredanne/vulncode-db
bffd1467df54d98e5271ec977330365d5879b60d
[ "Apache-2.0" ]
84
2019-03-31T03:55:56.000Z
2022-01-03T13:33:44.000Z
"""renamed email to login in user table Revision ID: 27a721daab2e Revises: 9d370f33f1a0 Create Date: 2020-12-04 16:14:19.390278 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = "27a721daab2e" down_revision = "9d370f33f1a0" br...
27.9375
90
0.651752
26bbb3eda5251e1d632ccf63035e09516199f4fd
930
py
Python
backend/app_api/views/register_views.py
harter123/test_dev05
9378f558f961bbf069b541ef146b7658219ebb8b
[ "Apache-2.0" ]
null
null
null
backend/app_api/views/register_views.py
harter123/test_dev05
9378f558f961bbf069b541ef146b7658219ebb8b
[ "Apache-2.0" ]
null
null
null
backend/app_api/views/register_views.py
harter123/test_dev05
9378f558f961bbf069b541ef146b7658219ebb8b
[ "Apache-2.0" ]
null
null
null
import json from django.contrib.auth.models import User, Group from django.contrib import auth from rest_framework.authtoken.models import Token from rest_framework.views import APIView from app_common.utils.response import response_success, Error class RegisterView(APIView): # 这个接口的调用不能加认证 authentication_cl...
28.181818
75
0.667742
9a142c4f22915582edecae25e9417a6ab9a76638
1,368
py
Python
src/lexicon/managing_negation.py
alexandrabenamar/Who-Wins
23df54f98286e67aab39e92ac746bccf6916c231
[ "MIT" ]
3
2018-04-10T21:52:57.000Z
2018-08-22T15:41:58.000Z
src/lexicon/managing_negation.py
alexandrabenamar/Who-Wins
23df54f98286e67aab39e92ac746bccf6916c231
[ "MIT" ]
null
null
null
src/lexicon/managing_negation.py
alexandrabenamar/Who-Wins
23df54f98286e67aab39e92ac746bccf6916c231
[ "MIT" ]
1
2020-05-18T15:46:23.000Z
2020-05-18T15:46:23.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 3 22:34:08 2018 @author: mira """ import re #fonction pas encore terminée #je suppose que le texte a été préalablement splité en "phrases" avec la #ponctuation comme séparateur. la liste de mots obtenue est donnée en paramètre. #je suppose pour l'instant que tous les...
27.918367
97
0.542398
98eca949db471ec4734445ebd004e22fefff3d76
3,502
py
Python
sdk/luminesce/models/data_type.py
finbourne/luminesce-sdk-python-preview
7af198cfa9c0fbd619272fb90601162fb7db0a67
[ "MIT" ]
null
null
null
sdk/luminesce/models/data_type.py
finbourne/luminesce-sdk-python-preview
7af198cfa9c0fbd619272fb90601162fb7db0a67
[ "MIT" ]
null
null
null
sdk/luminesce/models/data_type.py
finbourne/luminesce-sdk-python-preview
7af198cfa9c0fbd619272fb90601162fb7db0a67
[ "MIT" ]
null
null
null
# coding: utf-8 """ FINBOURNE Honeycomb Web API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 1.9.129 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import ge...
27.359375
105
0.567105
94d92d3a7ea432c3bf9405e29268ee8f4658af90
13,970
py
Python
neutron/scheduler/dhcp_agent_scheduler.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
null
null
null
neutron/scheduler/dhcp_agent_scheduler.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
null
null
null
neutron/scheduler/dhcp_agent_scheduler.py
1pintbeer/neutron
f5a827c2be06f24a1f8025f120f16c12eb1b1f55
[ "Apache-2.0" ]
1
2017-01-10T19:07:55.000Z
2017-01-10T19:07:55.000Z
# Copyright (c) 2013 OpenStack Foundation. # 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...
46.722408
79
0.618468