hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
41ed434e11299af178f049854d472eca4a1a5ae0
69,057
py
Python
versioneer.py
RobertRosca/PyFstat
1c9568bb3dc87c3d33aeb41b3f572e9990665372
[ "MIT" ]
16
2020-01-28T08:40:02.000Z
2022-03-02T05:26:50.000Z
versioneer.py
RobertRosca/PyFstat
1c9568bb3dc87c3d33aeb41b3f572e9990665372
[ "MIT" ]
294
2020-02-04T17:15:26.000Z
2022-03-30T13:53:48.000Z
versioneer.py
RobertRosca/PyFstat
1c9568bb3dc87c3d33aeb41b3f572e9990665372
[ "MIT" ]
10
2020-02-04T16:57:55.000Z
2022-02-03T00:12:25.000Z
# Version: 0.18 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, 3.5, 3.6, and pypy * [![Latest Version] (...
36.364929
88
0.621689
65729b3a44260d07304790e5bd43d70f686595a6
533
py
Python
tasks/migrations/0012_alter_task_due.py
Quill-ToDo/App
4dc47872e740235c6aa9af5c67101d6f97e3e85d
[ "MIT" ]
3
2022-01-10T03:55:47.000Z
2022-01-21T03:17:20.000Z
tasks/migrations/0012_alter_task_due.py
Quill-ToDo/App
4dc47872e740235c6aa9af5c67101d6f97e3e85d
[ "MIT" ]
24
2022-01-10T21:35:14.000Z
2022-02-20T23:15:23.000Z
tasks/migrations/0012_alter_task_due.py
Quill-ToDo/App
4dc47872e740235c6aa9af5c67101d6f97e3e85d
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-29 22:07 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('tasks', '0011_alter_task_due'), ] operations = [ migrations.AlterField( mode...
25.380952
156
0.641651
7c1234cc26a16e28a92289c13a1d80522b5b00c1
1,147
py
Python
Python/Samples/PollsDjango/app/models.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
27
2015-05-05T13:06:20.000Z
2019-04-21T21:58:48.000Z
Python/Samples/PollsDjango/app/models.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
5
2015-06-09T22:10:14.000Z
2018-04-11T18:56:17.000Z
Python/Samples/PollsDjango/app/models.py
nanshuiyu/pytools
9f9271fe8cf564b4f94e9456d400f4306ea77c23
[ "Apache-2.0" ]
11
2015-04-24T19:11:52.000Z
2017-09-13T03:46:22.000Z
""" Definition of models. """ from django.db import models from django.db.models import Sum class Poll(models.Model): """A poll object for use in the application views and repository.""" text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def total_vo...
32.771429
80
0.655623
1d77bad25d2113ff0076a4120aefcef02460bb9e
10,204
py
Python
tests/test_gemini_data_loader.py
ksilo/LiuAlgoTrader
90b3ffdf4fd61adf37880e7b01ca4137a013f79c
[ "MIT" ]
null
null
null
tests/test_gemini_data_loader.py
ksilo/LiuAlgoTrader
90b3ffdf4fd61adf37880e7b01ca4137a013f79c
[ "MIT" ]
null
null
null
tests/test_gemini_data_loader.py
ksilo/LiuAlgoTrader
90b3ffdf4fd61adf37880e7b01ca4137a013f79c
[ "MIT" ]
null
null
null
from datetime import date, datetime, timedelta, timezone import pandas as pd import pytest from liualgotrader.common import config from liualgotrader.common.data_loader import DataLoader # type: ignore from liualgotrader.common.types import DataConnectorType, TimeScale @pytest.mark.devtest def test_create_data_loa...
29.40634
97
0.681889
e5f618b312a40480f5a8802ee8e6a943d3d756ef
686
py
Python
app/core/migrations/0003_ingredient.py
arnold-amaya/recipe-app
7021dfe0b31bb11f748a1690cd40a6011f8f5c2c
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
arnold-amaya/recipe-app
7021dfe0b31bb11f748a1690cd40a6011f8f5c2c
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
arnold-amaya/recipe-app
7021dfe0b31bb11f748a1690cd40a6011f8f5c2c
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2021-11-27 23:00 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( ...
28.583333
118
0.618076
2197490c66f27e541dccab1a75e9e52e4550e49c
3,986
py
Python
tests/unit-tests/test_vbini.py
VesnaBrucoms/ini-handler
823a9567b503f8678495508863614ca59af9cdd4
[ "MIT" ]
1
2017-08-25T15:13:17.000Z
2017-08-25T15:13:17.000Z
tests/unit-tests/test_vbini.py
VesnaBrucoms/ini-handler
823a9567b503f8678495508863614ca59af9cdd4
[ "MIT" ]
null
null
null
tests/unit-tests/test_vbini.py
VesnaBrucoms/ini-handler
823a9567b503f8678495508863614ca59af9cdd4
[ "MIT" ]
1
2019-02-03T11:20:03.000Z
2019-02-03T11:20:03.000Z
"""Unittests for the vbini.py module""" import functools import re import unittest from unittest import mock from ini_handler.vbini import Ini mock_ini_data = 'test=wizard\ncastSpell=True\npunch=1\n\n[section]\nghost=False\n' class TestIni(unittest.TestCase): def test_instantiate(self): ini_file = Ini(...
33.495798
87
0.587556
c3d599a098d23738fbeaf1b71c8c89b0863e2b75
2,979
py
Python
tic_tweet_toe/services/twitter_service.py
c17r/tic-tweet-toe
6915c201c61f4c5e470f5cf127ace1819b2746f4
[ "MIT" ]
null
null
null
tic_tweet_toe/services/twitter_service.py
c17r/tic-tweet-toe
6915c201c61f4c5e470f5cf127ace1819b2746f4
[ "MIT" ]
1
2016-06-14T03:20:44.000Z
2016-06-14T03:20:44.000Z
tic_tweet_toe/services/twitter_service.py
c17r/tic-tweet-toe
6915c201c61f4c5e470f5cf127ace1819b2746f4
[ "MIT" ]
null
null
null
import twitter as api class TwitterServiceAuthenticationException(Exception): pass class TwitterServiceNotConfigured(Exception): pass class TwitterNetworkException(Exception): pass class Twitter(object): def __init__(self, token, token_secret, consumer_key, consumer_secret): self.token ...
28.644231
75
0.556898
6ddc5ab0b373ae72ac3bf1a57bb71ecc8f56c0a2
371
py
Python
setup.py
cisprague/Spacecraft_Testbed
6cb353c451f69b39d0e1fb1f66c9ceae6a4cb5e6
[ "MIT" ]
6
2018-12-25T19:34:13.000Z
2020-05-10T00:52:18.000Z
setup.py
CISprague/Spacecraft_Testbed
6cb353c451f69b39d0e1fb1f66c9ceae6a4cb5e6
[ "MIT" ]
6
2021-02-08T20:17:38.000Z
2022-03-11T23:14:59.000Z
setup.py
cisprague/Spacecraft_Testbed
6cb353c451f69b39d0e1fb1f66c9ceae6a4cb5e6
[ "MIT" ]
2
2019-06-13T15:22:14.000Z
2020-09-19T12:36:56.000Z
from setuptools import setup setup(name = 'Spacecraft_Testbed', version = '0.1', description = 'A spacecraft testbed.', url = 'https://github.com/CISprague/Spacecraft_Testbed.git', author = 'Christopher Iliffe Sprague', author_email = 'spragc@rpi.edu', license = 'MIT', package...
33.727273
66
0.6469
029d0d6151460e4a50f0b8f2ce43583ca602f19e
4,824
py
Python
utils.py
shivchander/denoising-autoencoder-from-scratch
9654e0eef67e18fe0781f87e5d535572f45a4600
[ "MIT" ]
null
null
null
utils.py
shivchander/denoising-autoencoder-from-scratch
9654e0eef67e18fe0781f87e5d535572f45a4600
[ "MIT" ]
null
null
null
utils.py
shivchander/denoising-autoencoder-from-scratch
9654e0eef67e18fe0781f87e5d535572f45a4600
[ "MIT" ]
null
null
null
__author__ = "Shivchander Sudalairaj" __license__ = "MIT" ''' Utility functions for the homework ''' import pandas as pd from sklearn.preprocessing import MultiLabelBinarizer from sklearn.metrics import confusion_matrix import seaborn as sns import numpy as np import matplotlib.pyplot as plt def parse_data(feature_...
33.5
117
0.659826
075bd8ec444f7b0c91ff491a970fcf6368f49bea
4,174
py
Python
tensorpack/utils/stats.py
yunhuiguo/tensorpack
91ce2260e5dc41b802b1a39b8b65ae6bee7ac719
[ "Apache-2.0" ]
4
2018-12-12T02:42:34.000Z
2019-08-27T17:12:53.000Z
tensorpack/utils/stats.py
yunhuiguo/tensorpack
91ce2260e5dc41b802b1a39b8b65ae6bee7ac719
[ "Apache-2.0" ]
null
null
null
tensorpack/utils/stats.py
yunhuiguo/tensorpack
91ce2260e5dc41b802b1a39b8b65ae6bee7ac719
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- # File: stats.py import numpy as np __all__ = ['StatCounter', 'BinaryStatistics', 'RatioCounter', 'Accuracy', 'OnlineMoments'] class StatCounter(object): """ A simple counter""" def __init__(self): self.reset() def feed(self, v): """ Args: ...
23.060773
103
0.546957
ae04265c4d3d0dec18b0807e34652ada14124cda
473
py
Python
env/lib/python3.8/site-packages/plotly/validators/funnelarea/insidetextfont/_colorsrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
76
2020-07-06T14:44:05.000Z
2022-02-14T15:30:21.000Z
env/lib/python3.8/site-packages/plotly/validators/funnelarea/insidetextfont/_colorsrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-08-09T02:30:14.000Z
2022-03-12T00:50:14.000Z
env/lib/python3.8/site-packages/plotly/validators/funnelarea/insidetextfont/_colorsrc.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11
2020-07-12T16:18:07.000Z
2022-02-05T16:48:35.000Z
import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__( self, plotly_name="colorsrc", parent_name="funnelarea.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, par...
31.533333
87
0.64482
824b58afe86bd92aa5e5cc819c3b16cf3c6e373b
14,085
py
Python
social_network/migrations/0004_auto__add_field_groupmembershiprequest_denied.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
3
2015-01-13T05:45:04.000Z
2020-01-10T19:05:35.000Z
social_network/migrations/0004_auto__add_field_groupmembershiprequest_denied.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
null
null
null
social_network/migrations/0004_auto__add_field_groupmembershiprequest_denied.py
diana-gv/django-social-network
48bafca81f28874ceead59e263ce5b7e3853dbfb
[ "BSD-3-Clause" ]
6
2015-01-13T04:40:53.000Z
2021-08-13T01:07:40.000Z
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'GroupMembershipRequest.denied' db.add_column(u'social_net...
77.39011
217
0.573873
8db2742f9953fc51ef1f718d0d705c6c38965da3
227
py
Python
mcwiki/__init__.py
vberlier/mcwiki
87fc6f8a40bc812fa24b42efe42778193813b4f3
[ "MIT" ]
null
null
null
mcwiki/__init__.py
vberlier/mcwiki
87fc6f8a40bc812fa24b42efe42778193813b4f3
[ "MIT" ]
132
2020-11-16T19:53:58.000Z
2022-03-30T10:22:57.000Z
mcwiki/__init__.py
vberlier/mcwiki
87fc6f8a40bc812fa24b42efe42778193813b4f3
[ "MIT" ]
null
null
null
from .extractor import * from .page import * from .text import * from .tree import * __version__ = "0.2.1" PARAGRAPH = TextExtractor("p") CODE = TextExtractor("code") CODE_BLOCK = TextExtractor("pre") TREE = TreeExtractor()
17.461538
33
0.713656
dd717a56173ef5d03a200c9cbe509353a1ac1497
8,261
py
Python
clmr/models/preliminary_models/NoPadConnectNet5endSmallOtherEnd24.py
Marcel-Velez/CLMR
730bd9078756650a53b4c6438b29e5aeb2c15134
[ "Apache-2.0" ]
null
null
null
clmr/models/preliminary_models/NoPadConnectNet5endSmallOtherEnd24.py
Marcel-Velez/CLMR
730bd9078756650a53b4c6438b29e5aeb2c15134
[ "Apache-2.0" ]
null
null
null
clmr/models/preliminary_models/NoPadConnectNet5endSmallOtherEnd24.py
Marcel-Velez/CLMR
730bd9078756650a53b4c6438b29e5aeb2c15134
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F import torch.nn as nn import sys from torch.autograd import Variable import math import torch.nn.functional as F from torchsummary import summary POOLSIZE = 2 DROPOUT_RATE = .25 def init_weights(m): if isinstance(m, nn.Linear): torch.nn.ini...
35.454936
139
0.632974
a2150bcc43a938fa261d6bdf4b416a54d5f46f5e
5,479
py
Python
src/operation/operation.py
bingrao/mapreduce_sss
be469b86f3fc133e1586149f0b850a76cb85f216
[ "BSD-2-Clause" ]
null
null
null
src/operation/operation.py
bingrao/mapreduce_sss
be469b86f3fc133e1586149f0b850a76cb85f216
[ "BSD-2-Clause" ]
null
null
null
src/operation/operation.py
bingrao/mapreduce_sss
be469b86f3fc133e1586149f0b850a76cb85f216
[ "BSD-2-Clause" ]
null
null
null
import websockets from src.share.secret_share import SecretShare from src.event.event import MessageEvent from src.event.message import DataMessage, ControlMessage from src.utils.embedding import Embedding from functools import partial import numpy as np import pandas as pd class AbstractOperation: def __init__(s...
50.731481
113
0.635152
aef9dfdd2d3f1a8d40a6188e949897dda79ec67e
1,752
py
Python
presidio-anonymizer/presidio_anonymizer/operators/decrypt.py
vtols/presidio
67d898c3b7749dca2634e83324a793da06c0fa92
[ "MIT" ]
1,408
2019-05-07T07:01:40.000Z
2022-03-31T00:22:33.000Z
presidio-anonymizer/presidio_anonymizer/operators/decrypt.py
vtols/presidio
67d898c3b7749dca2634e83324a793da06c0fa92
[ "MIT" ]
351
2019-05-09T19:55:07.000Z
2022-03-31T08:54:04.000Z
presidio-anonymizer/presidio_anonymizer/operators/decrypt.py
vtols/presidio
67d898c3b7749dca2634e83324a793da06c0fa92
[ "MIT" ]
275
2019-05-07T23:48:24.000Z
2022-03-31T12:38:30.000Z
from typing import Dict from presidio_anonymizer.entities import InvalidParamException from presidio_anonymizer.operators import Operator from presidio_anonymizer.operators import OperatorType from presidio_anonymizer.operators.aes_cipher import AESCipher from presidio_anonymizer.services.validators import validate_pa...
33.692308
83
0.650685
1e475ab3d0f3bf566d4b2f4e71ea352f4e431e71
3,136
py
Python
hello_sendgrid/hello_sendgrid/settings.py
ticotheps/sendgrid-django
5398c32fcfb7a429d91a59b44ae92eb135c6206d
[ "MIT" ]
null
null
null
hello_sendgrid/hello_sendgrid/settings.py
ticotheps/sendgrid-django
5398c32fcfb7a429d91a59b44ae92eb135c6206d
[ "MIT" ]
null
null
null
hello_sendgrid/hello_sendgrid/settings.py
ticotheps/sendgrid-django
5398c32fcfb7a429d91a59b44ae92eb135c6206d
[ "MIT" ]
null
null
null
""" Django settings for hello_sendgrid project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ impor...
25.704918
91
0.695472
c9eebd85da9aaf5fd3dbd4b65f7b9219cefc0fc5
7,468
py
Python
Examples/Python/models/department.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
4
2021-11-25T10:25:02.000Z
2021-12-01T09:37:55.000Z
Examples/Python/models/department.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
null
null
null
Examples/Python/models/department.py
Duett-AS/DuettAPI
ffd2f6060d6cfcc62e18a1c3b00ba1db58d5d289
[ "MIT" ]
2
2021-11-26T11:23:26.000Z
2021-12-09T10:44:34.000Z
# coding: utf-8 """ OpenApi ## ![N|Solid](https://duett.no/wp-content/uploads/2018/10/cropped-Duett-favicon-32x32.png) _How to take the Duett api in use_ To be able to use the API, you must have an interaction key and a client key. Eksample curl: ```swift curl -X 'GET' \\ 'https://api.duett.no/articl...
30.987552
970
0.594269
febdb852242a3cb2e6b06dd40b04520d1afb1538
1,540
py
Python
src/test_model.py
berong91/sound-of-covid
bb45796539d97d751eab9b934ec10dd6a3baac83
[ "MIT" ]
null
null
null
src/test_model.py
berong91/sound-of-covid
bb45796539d97d751eab9b934ec10dd6a3baac83
[ "MIT" ]
null
null
null
src/test_model.py
berong91/sound-of-covid
bb45796539d97d751eab9b934ec10dd6a3baac83
[ "MIT" ]
null
null
null
import numpy as np from tensorflow.python.keras.saving.save import load_model import utils from data_config import PREFIX_MODEL, POSTFIX_MODEL, SEED, DataGenerator from data_config import get_data, get_wav_data from data_config import key_col, index_col for feat in key_col: key_col = [feat] data = get_data() ...
32.083333
114
0.631818
5ae2c79efaf68569d52b390a6f5be65139b2b0e6
5,260
py
Python
tests/shells/test_fish.py
darkfiberiru/thefuck
828ae537da5d7eb7a2a5c9f976b90975adfe1f43
[ "MIT" ]
2
2021-03-23T17:14:03.000Z
2021-03-25T12:51:01.000Z
tests/shells/test_fish.py
lotapp/thefuck
2d81166213c403dce5c04d1fb73ba5d3e57d6676
[ "MIT" ]
null
null
null
tests/shells/test_fish.py
lotapp/thefuck
2d81166213c403dce5c04d1fb73ba5d3e57d6676
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from thefuck.shells import Fish @pytest.mark.usefixtures('isfile', 'no_memoize', 'no_cache') class TestFish(object): @pytest.fixture def shell(self): return Fish() @pytest.fixture(autouse=True) def Popen(self, mocker): mock = mocker.patch('thefuc...
43.471074
87
0.554183
36b7841282f4c7923cd6c7183283bb631d1bc3aa
2,422
py
Python
recipes/ninja/1.9.x/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
1
2021-02-07T12:33:15.000Z
2021-02-07T12:33:15.000Z
recipes/ninja/1.9.x/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
5
2021-03-25T01:49:56.000Z
2021-03-28T16:42:12.000Z
recipes/ninja/1.9.x/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
4
2021-06-03T23:24:03.000Z
2022-03-03T17:16:09.000Z
import os import sys from conans import ConanFile, tools, AutoToolsBuildEnvironment class NinjaConan(ConanFile): name = "ninja" description = "Ninja is a small build system with a focus on speed" license = "Apache-2.0" url = "https://github.com/conan-io/conan-center-index" homepage = "https://gith...
37.84375
75
0.610652
5b3f9334d50d080e98187d8d93d4d9149c00892d
1,664
py
Python
eventservice/api/controllers/configs.py
jsafoan/rokwire-building-blocks-api
83e9f02122e17bf3a20e7ff3843afaccaeeb3387
[ "Apache-2.0" ]
null
null
null
eventservice/api/controllers/configs.py
jsafoan/rokwire-building-blocks-api
83e9f02122e17bf3a20e7ff3843afaccaeeb3387
[ "Apache-2.0" ]
null
null
null
eventservice/api/controllers/configs.py
jsafoan/rokwire-building-blocks-api
83e9f02122e17bf3a20e7ff3843afaccaeeb3387
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Board of Trustees of the University of Illinois. # # 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 ...
43.789474
117
0.739784
a690fa15436f326849ba31e3965d7dc9670a525b
4,949
py
Python
files/main.py
zacco4/Platform-Game
87e6a50f55da4b9755ab3371a6047bdaf9ec7c5f
[ "MIT" ]
null
null
null
files/main.py
zacco4/Platform-Game
87e6a50f55da4b9755ab3371a6047bdaf9ec7c5f
[ "MIT" ]
null
null
null
files/main.py
zacco4/Platform-Game
87e6a50f55da4b9755ab3371a6047bdaf9ec7c5f
[ "MIT" ]
null
null
null
# MAIN DELETE THIS CODE TO RUN import pygame as pg import random from settings import * from sprites import * class Game: def __init__(self): # Initialize the game window etc pg.init() pg.mixer.init() self.screen = pg.display.set_mode((WIDTH, HEIGHT)) pg.dis...
36.932836
241
0.511416
e180dd2d00e20d241f21222acc9d972f55433808
2,383
py
Python
dcgan/train.py
thisisiron/dcgan-tf
4833412a2fc65909576c0adff07c5cdadadc4249
[ "MIT" ]
75
2019-10-11T16:26:53.000Z
2022-03-14T02:00:18.000Z
dcgan/train.py
thisisiron/dcgan-tf
4833412a2fc65909576c0adff07c5cdadadc4249
[ "MIT" ]
5
2020-01-17T00:22:00.000Z
2021-05-21T10:33:27.000Z
dcgan/train.py
thisisiron/dcgan-tf
4833412a2fc65909576c0adff07c5cdadadc4249
[ "MIT" ]
24
2019-10-10T06:50:34.000Z
2022-03-18T00:28:22.000Z
import os import time import tensorflow as tf # TF 2.0 import tensorflow_datasets as tfds from model import Generator, Discriminator from utils import generator_loss, discriminator_loss, save_imgs, normalize def train(): data, info = tfds.load("mnist", with_info=True, data_dir='/data/tensorflow_datasets') ...
31.355263
174
0.687789
8e1740f1ba6c2793e2654a2f5e9c4de203049397
444
py
Python
spacy/lang/el/norm_exceptions/parser_adj_norms_4.py
eellak/gsoc2018-spacy
4d0cf76d183c08d1604643d8c49f085415b93309
[ "MIT" ]
88
2018-05-06T17:28:23.000Z
2022-03-06T20:19:16.000Z
spacy/lang/el/norm_exceptions/parser_adj_norms_4.py
mgogoulos/gsoc2018-spacy
4d0cf76d183c08d1604643d8c49f085415b93309
[ "MIT" ]
12
2018-07-19T15:11:57.000Z
2021-08-05T11:58:29.000Z
spacy/lang/el/norm_exceptions/parser_adj_norms_4.py
mgogoulos/gsoc2018-spacy
4d0cf76d183c08d1604643d8c49f085415b93309
[ "MIT" ]
10
2018-07-28T22:43:04.000Z
2020-11-22T22:58:21.000Z
with open('adj_norms_4.txt') as fileinst: for line in fileinst: first_part=line.split(',', 1)[0] second_part=line.split('→',1)[1].rstrip().strip() first_part_fixed=first_part.split('ης')[0] second_part_fixed=second_part.split('ης')[0] print("{} → {}".format(first_part,second_part)) print("{} → {}".format(f...
40.363636
75
0.677928
d7b3587e7cce85d4b3732965bb01106c2dfed8d8
3,640
py
Python
notebooks/ffjord_data_runs/hepmass.py
simonamtoft/tfde-tfp
cd8c7a6fe9d09870df6359957a95c99a6c5f762a
[ "MIT" ]
null
null
null
notebooks/ffjord_data_runs/hepmass.py
simonamtoft/tfde-tfp
cd8c7a6fe9d09870df6359957a95c99a6c5f762a
[ "MIT" ]
null
null
null
notebooks/ffjord_data_runs/hepmass.py
simonamtoft/tfde-tfp
cd8c7a6fe9d09870df6359957a95c99a6c5f762a
[ "MIT" ]
null
null
null
import sys sys.path.append('../../') import numpy as np import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_probability as tfp from tqdm import tqdm import utils as utl import models as m import datasets as d tfd = tfp.distributions tfm = tf.math # Set root of where data is d.root = '../../datase...
30.588235
102
0.716209
f3730091073666cd88f1233a73d1cc1f16a36224
1,095
py
Python
tests/features/metadata_normaliser/test_metadata_normaliser.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
1
2022-03-21T12:32:52.000Z
2022-03-21T12:32:52.000Z
tests/features/metadata_normaliser/test_metadata_normaliser.py
meaningfy-ws/ted-xml-2-rdf
ac26a19f3761b7cf79d79a46be6323b658f067eb
[ "Apache-2.0" ]
24
2022-02-10T10:43:56.000Z
2022-03-29T12:36:21.000Z
tests/features/metadata_normaliser/test_metadata_normaliser.py
meaningfy-ws/ted-sws
d1e351eacb2900f84ec7edc457e49d8202fbaff5
[ "Apache-2.0" ]
null
null
null
from pytest_bdd import scenario, given, when, then, parsers from ted_sws.core.model.notice import NoticeStatus from ted_sws.metadata_normaliser.services.metadata_normalizer import MetadataNormaliser @scenario('metadata_normaliser.feature', 'Normalizing a notice metadata') def test_extract_metadata(): """normalis...
29.594595
87
0.787215
f12b6d383af013a4b981da707353e1ff4c89ba75
33,387
py
Python
src/pyGLMHMM/fastASD.py
aslansd/pyGLMHMM
5930e1322435431c5835b2b3f241b2ca0d2fb887
[ "MIT" ]
3
2020-08-20T21:35:34.000Z
2021-04-23T08:02:24.000Z
src/pyGLMHMM/fastASD.py
aslansd/pyGLMHMM
5930e1322435431c5835b2b3f241b2ca0d2fb887
[ "MIT" ]
null
null
null
src/pyGLMHMM/fastASD.py
aslansd/pyGLMHMM
5930e1322435431c5835b2b3f241b2ca0d2fb887
[ "MIT" ]
null
null
null
import numpy as np from scipy.sparse import spdiags, csr_matrix from scipy.optimize import least_squares def _fast_ASD_weighted_group(x, y, w, nk_grp, min_length, nx_circ = np.nan): # Infers independent groups of smooth coefficients using diagonalized ASD prior # # Empirical Bayes estimate of reg...
46.051034
238
0.60883
239d8d2e02cc1fb5028d08a3031e169cf9a122aa
4,640
py
Python
tests/test_utils.py
Samathy/pypsrp
196b4279581319930f2133860bce2f901a8bb127
[ "MIT" ]
null
null
null
tests/test_utils.py
Samathy/pypsrp
196b4279581319930f2133860bce2f901a8bb127
[ "MIT" ]
null
null
null
tests/test_utils.py
Samathy/pypsrp
196b4279581319930f2133860bce2f901a8bb127
[ "MIT" ]
null
null
null
import pytest from six import PY3 from pypsrp._utils import to_bytes, to_string, to_unicode, \ version_equal_or_newer, get_hostname def test_unicode_to_bytes_default(): expected = b"\x61\x62\x63" actual = to_bytes(u"abc") assert actual == expected def test_unicode_to_bytes_diff_encoding(): exp...
37.12
94
0.474138
e3ef4631937b978748d3576f7acd68403da90f20
14,977
py
Python
netharn/data/voc.py
angiemsu/netharn
728cb40aad299baf62c689430d07b29c67d8cf21
[ "Apache-2.0" ]
null
null
null
netharn/data/voc.py
angiemsu/netharn
728cb40aad299baf62c689430d07b29c67d8cf21
[ "Apache-2.0" ]
null
null
null
netharn/data/voc.py
angiemsu/netharn
728cb40aad299baf62c689430d07b29c67d8cf21
[ "Apache-2.0" ]
null
null
null
""" Simple dataset for loading the VOC 2007 object detection dataset without extra bells and whistles. Simply loads the images, boxes, and class labels and resizes images to a standard size. """ from os.path import exists from os.path import join import re import scipy import scipy.sparse import cv2 import torch import...
39.621693
123
0.563397
d2cd89332f16b3b127882fc78d22d75048fc02eb
8,653
py
Python
intersight/models/mo_version_context_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
21
2018-03-29T14:20:35.000Z
2021-10-13T05:11:41.000Z
intersight/models/mo_version_context_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
14
2018-01-30T15:45:46.000Z
2022-02-23T14:23:21.000Z
intersight/models/mo_version_context_all_of.py
sdnit-se/intersight-python
551f7685c0f76bb8af60ec83ffb6f9672d49a4ae
[ "Apache-2.0" ]
18
2018-01-03T15:09:56.000Z
2021-07-16T02:21:54.000Z
# coding: utf-8 """ Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen...
36.205021
1,052
0.634231
b4273cb2dfe6595d53d56b56e2ff5cfde9d7a0ea
1,460
py
Python
aliyun-python-sdk-privatelink/aliyunsdkprivatelink/request/v20200415/OpenPrivateLinkServiceRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-privatelink/aliyunsdkprivatelink/request/v20200415/OpenPrivateLinkServiceRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-privatelink/aliyunsdkprivatelink/request/v20200415/OpenPrivateLinkServiceRequest.py
leafcoder/aliyun-openapi-python-sdk
26b441ab37a5cda804de475fd5284bab699443f1
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.421053
97
0.771233
86ab9147e4a6ce0468388690cbd7a83cb0ac4136
19,732
py
Python
utilities/queue_ip_arguments.py
eda-ricercatore/bibtex-analytics
29c9f27a4e965fb90ba17f24bbe84e09dffad02d
[ "MIT", "Unlicense" ]
null
null
null
utilities/queue_ip_arguments.py
eda-ricercatore/bibtex-analytics
29c9f27a4e965fb90ba17f24bbe84e09dffad02d
[ "MIT", "Unlicense" ]
2
2018-10-19T20:55:10.000Z
2021-06-25T15:16:14.000Z
utilities/queue_ip_arguments.py
eda-ricercatore/bibtex-analytics
29c9f27a4e965fb90ba17f24bbe84e09dffad02d
[ "MIT", "Unlicense" ]
null
null
null
#!/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 ### /usr/bin/python ### /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 """ This Python script is written by Zhiyang Ong to process input arguments for a script to clean BibTeX databases/files. Synopsis: Process input arguments for...
45.781903
462
0.666532
45e596e09246a6398a25e0485ca6947a016c1cc1
6,733
py
Python
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_behaviors/src/o2ac_flexbe_behaviors/shaft_subtask_sm.py
mitdo/o2ac-ur
74c82a54a693bf6a3fc995ff63e7c91ac1fda6fd
[ "MIT" ]
32
2021-09-02T12:29:47.000Z
2022-03-30T21:44:10.000Z
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_behaviors/src/o2ac_flexbe_behaviors/shaft_subtask_sm.py
kroglice/o2ac-ur
f684f21fd280a22ec061dc5d503801f6fefb2422
[ "MIT" ]
4
2021-09-22T00:51:14.000Z
2022-01-30T11:54:19.000Z
catkin_ws/src/o2ac_flexbe/o2ac_flexbe_behaviors/src/o2ac_flexbe_behaviors/shaft_subtask_sm.py
kroglice/o2ac-ur
f684f21fd280a22ec061dc5d503801f6fefb2422
[ "MIT" ]
7
2021-11-02T12:26:09.000Z
2022-02-01T01:45:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
37.405556
189
0.670726
a1a1b36b90b5cee4fa47fc9b1469a1387f18f2bb
1,223
py
Python
airflow/contrib/operators/sagemaker_tuning_operator.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
5
2020-07-17T07:33:58.000Z
2022-03-02T06:23:47.000Z
airflow/contrib/operators/sagemaker_tuning_operator.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
7
2020-06-03T14:55:17.000Z
2021-12-30T00:01:50.000Z
airflow/contrib/operators/sagemaker_tuning_operator.py
dorranh/airflow
1a9a2cadcf8606cfcb729d1323dd33dfacc64633
[ "Apache-2.0" ]
12
2020-01-09T14:02:39.000Z
2022-01-24T07:18:51.000Z
# -*- coding: utf-8 -*- # # 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 #...
40.766667
103
0.773508
4e4fb476ace27cfa40b8393533072490be16b28b
3,040
py
Python
metrics/kinetics/accuracy_metrics.py
cairensi/gesture-recognition
95b911f82bbd801ee799a6e31026e42200b7d15e
[ "Apache-2.0" ]
1
2021-02-28T08:30:46.000Z
2021-02-28T08:30:46.000Z
metrics/kinetics/accuracy_metrics.py
cairensi/Sign-language-recognition
95b911f82bbd801ee799a6e31026e42200b7d15e
[ "Apache-2.0" ]
null
null
null
metrics/kinetics/accuracy_metrics.py
cairensi/Sign-language-recognition
95b911f82bbd801ee799a6e31026e42200b7d15e
[ "Apache-2.0" ]
1
2021-07-07T02:54:09.000Z
2021-07-07T02:54:09.000Z
# Author by CRS-club and wizard from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division import numpy as np import datetime import logging logger = logging.getLogger(__name__) class MetricsCalculator(): def __init__(sel...
31.666667
79
0.647368
d2984de04e86f91f7b9d388dc52458d0897d6ef4
52,387
py
Python
src/olympia/files/utils.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/files/utils.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/files/utils.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
import collections import contextlib import errno import hashlib import json import os import io import re import shutil import signal import stat import struct import tarfile import tempfile import zipfile import fcntl from datetime import datetime from django import forms from django.conf import settings from djang...
36.762807
79
0.624983
4da5b23dea5050be50fe79637b53e5805832a4d1
2,252
py
Python
app01pg/scripts/ci/deploy/deploy_test.py
2kranki/app01
171ecf866433d9859f85ccf0ba6e1aca4df9cd21
[ "Unlicense" ]
null
null
null
app01pg/scripts/ci/deploy/deploy_test.py
2kranki/app01
171ecf866433d9859f85ccf0ba6e1aca4df9cd21
[ "Unlicense" ]
null
null
null
app01pg/scripts/ci/deploy/deploy_test.py
2kranki/app01
171ecf866433d9859f85ccf0ba6e1aca4df9cd21
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 # vi:nu:et:sts=4 ts=4 sw=4 """ Test Deploy The module must be executed from the repository that contains the Jenkinsfile. """ # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this ...
34.646154
80
0.603464
aabbd1e6c17c3728786f93e2a2969172f4493a8d
17,556
py
Python
project_generator/tools/visual_studio.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
197
2015-04-29T16:29:03.000Z
2022-03-28T01:14:55.000Z
project_generator/tools/visual_studio.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
305
2015-04-21T18:03:31.000Z
2022-03-10T22:21:45.000Z
project_generator/tools/visual_studio.py
microbit-carlos/project_generator
a498f6c1dac899010f22b855f9e2e981f3325596
[ "Apache-2.0" ]
84
2015-04-21T18:00:18.000Z
2022-03-28T13:31:06.000Z
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
86.058824
4,169
0.690248
e60507369d711ec3a473e9c80e610623ff07bf95
276
py
Python
jmath/cryptography/__init__.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
7
2021-06-25T12:57:08.000Z
2021-12-29T21:53:30.000Z
jmath/cryptography/__init__.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-08-11T02:16:12.000Z
2021-08-12T06:05:21.000Z
jmath/cryptography/__init__.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-09-20T21:25:55.000Z
2021-09-20T21:25:55.000Z
''' Cryptography tools. Default Packages ---------------- jmath.cryptography.affine Provides tools for using affine ciphers ''' # - Namespace __path__ = __import__('pkgutil').extend_path(__path__, __name__) # - Defaults from .affine import Affine
16.235294
64
0.652174
2beb109650ee15fd3ac4109f668e605a9edca555
2,616
py
Python
ptsites/schema/xwt.py
czahoi/flexget_qbittorrent_mod
c001d9ece050136bbff5876697b12079a841af3e
[ "MIT" ]
null
null
null
ptsites/schema/xwt.py
czahoi/flexget_qbittorrent_mod
c001d9ece050136bbff5876697b12079a841af3e
[ "MIT" ]
null
null
null
ptsites/schema/xwt.py
czahoi/flexget_qbittorrent_mod
c001d9ece050136bbff5876697b12079a841af3e
[ "MIT" ]
null
null
null
from abc import ABC from .private_torrent import PrivateTorrent from ..base.sign_in import check_final_state, SignState from ..base.work import Work from ..utils.net_utils import get_module_name from ..utils.value_hanlder import handle_infinite class XWT(PrivateTorrent, ABC): @classmethod def sign_in_build_...
31.142857
68
0.394878
3b423e611d8e728682da909dc9d991a2be004b16
12,330
py
Python
qa/rpc-tests/p2p-acceptblock.py
combode/combode
84664ec178de2b67fa127b561d843c9fbcd7a03d
[ "MIT" ]
5
2021-01-03T05:53:09.000Z
2021-09-15T09:18:48.000Z
qa/rpc-tests/p2p-acceptblock.py
combode/combode
84664ec178de2b67fa127b561d843c9fbcd7a03d
[ "MIT" ]
1
2021-06-13T10:03:27.000Z
2022-01-06T08:42:52.000Z
qa/rpc-tests/p2p-acceptblock.py
combode/combode
84664ec178de2b67fa127b561d843c9fbcd7a03d
[ "MIT" ]
1
2021-02-07T05:29:08.000Z
2021-02-07T05:29:08.000Z
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.mininode import * from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import time from...
42.371134
107
0.651338
5e430f93ef7bc8dd5c2fcf190b5655d8c19389af
477
py
Python
data/scripts/templates/object/tangible/mission/quest_item/shared_hagrin_zeed_q2_needed.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/mission/quest_item/shared_hagrin_zeed_q2_needed.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/mission/quest_item/shared_hagrin_zeed_q2_needed.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_hagrin_zeed_q2_needed.iff" result.attribu...
28.058824
88
0.742138
b60ea61804b378bd66e47b4bc1c7bd2d35c7ad7d
311
py
Python
with_provisioned_concurrency/lambda/backend.py
lazydragon/lambda_provisioned_concurrency
f86baab30d0dbc0033c3cadd61a8afed231c47b0
[ "Apache-2.0" ]
null
null
null
with_provisioned_concurrency/lambda/backend.py
lazydragon/lambda_provisioned_concurrency
f86baab30d0dbc0033c3cadd61a8afed231c47b0
[ "Apache-2.0" ]
null
null
null
with_provisioned_concurrency/lambda/backend.py
lazydragon/lambda_provisioned_concurrency
f86baab30d0dbc0033c3cadd61a8afed231c47b0
[ "Apache-2.0" ]
null
null
null
import json import time time.sleep(9) def handler(event, context): print('request: {}'.format(json.dumps(event))) return { 'statusCode': 200, 'headers': { 'Content-Type': 'text/plain' }, 'body': 'Welcome to the provisioned concurrency world!' }
20.733333
63
0.55627
a901e2ae21f448e6fa790963df6e7804688dd33c
7,980
py
Python
train.py
YoadTew/SRGAN
a1baf40ab6b925ed757bb4fb4440a6250324754f
[ "MIT" ]
null
null
null
train.py
YoadTew/SRGAN
a1baf40ab6b925ed757bb4fb4440a6250324754f
[ "MIT" ]
null
null
null
train.py
YoadTew/SRGAN
a1baf40ab6b925ed757bb4fb4440a6250324754f
[ "MIT" ]
null
null
null
import argparse import os from math import log10 import sys import pandas as pd import torch.optim as optim import torch.utils.data import torchvision.utils as utils from torch.autograd import Variable from torch.utils.data import DataLoader from tqdm import tqdm import pytorch_ssim from data_utils import TrainDatase...
44.088398
124
0.574561
c420edf966ee05a75c9b9321f656683b4526a2bc
149
py
Python
lib-src/lv2/lv2/plugins/eg04-sampler.lv2/waflib/extras/__init__.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
1
2015-10-23T02:39:52.000Z
2015-10-23T02:39:52.000Z
lib-src/lv2/sratom/waflib/extras/__init__.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
null
null
null
lib-src/lv2/sratom/waflib/extras/__init__.py
bit-trade-one/SoundModuleAP
7f26c0f41aad3b0922afe5ab397816fd105d02b4
[ "CC-BY-3.0" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
29.8
103
0.738255
27697dea8eb508b08b10af15460dc37ea52a183f
266
py
Python
tests/artificial/transf_None/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_None_MovingMedian_0_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_None/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_None_MovingMedian_0_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_None/trend_MovingMedian/cycle_0/ar_12/test_artificial_32_None_MovingMedian_0_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 12);
38
161
0.729323
09a87a533488580402bf9ab8fc7a798f8d8fa4cd
17,655
py
Python
cddagl/ui/views/settings.py
DazedNConfused-/CDDA-Game-Launcher
9bee05ae6754f78f89cfffbb73596f12e37bcaf4
[ "MIT" ]
12
2022-02-24T04:04:44.000Z
2022-03-28T01:42:23.000Z
cddagl/ui/views/settings.py
DazedNConfused-/CDDA-Game-Launcher
9bee05ae6754f78f89cfffbb73596f12e37bcaf4
[ "MIT" ]
15
2022-02-25T03:33:19.000Z
2022-03-29T19:50:34.000Z
cddagl/ui/views/settings.py
DazedNConfused-/CDDA-Game-Launcher
9bee05ae6754f78f89cfffbb73596f12e37bcaf4
[ "MIT" ]
1
2022-03-11T22:53:04.000Z
2022-03-11T22:53:04.000Z
# SPDX-FileCopyrightText: 2015-2021 Rémy Roy # # SPDX-License-Identifier: MIT import logging from PyQt5.QtCore import ( Qt, QTimer) from PyQt5.QtWidgets import ( QApplication, QWidget, QGridLayout, QGroupBox, QVBoxLayout, QLabel, QLineEdit, QFileDialog, QToolButton, QComboBox, QCheckBox, QHBoxLayout, QSpi...
40.308219
90
0.694251
3f84b585329a6ca337889261fe583b5c9d93c4c9
8,501
py
Python
yandex/cloud/billing/v1/customer_service_pb2_grpc.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
36
2018-12-23T13:51:50.000Z
2022-03-25T07:48:24.000Z
yandex/cloud/billing/v1/customer_service_pb2_grpc.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
15
2019-02-28T04:55:09.000Z
2022-03-06T23:17:24.000Z
yandex/cloud/billing/v1/customer_service_pb2_grpc.py
korsar182/python-sdk
873bf2a9b136a8f2faae72e86fae1f5b5c3d896a
[ "MIT" ]
18
2019-02-23T07:10:57.000Z
2022-03-28T14:41:08.000Z
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from yandex.cloud.billing.v1 import customer_service_pb2 as yandex_dot_cloud_dot_billing_dot_v1_dot_customer__service__pb2 from yandex.cloud.operation import ope...
48.856322
143
0.7038
642b6df70655c6d61467825df22696ff2698739f
3,434
py
Python
config/settings/base.py
JimenezJC/django_app_boilerplate
c4a94decaf47ecb5388564f642d6d73d44910c84
[ "MIT" ]
null
null
null
config/settings/base.py
JimenezJC/django_app_boilerplate
c4a94decaf47ecb5388564f642d6d73d44910c84
[ "MIT" ]
null
null
null
config/settings/base.py
JimenezJC/django_app_boilerplate
c4a94decaf47ecb5388564f642d6d73d44910c84
[ "MIT" ]
null
null
null
""" Django settings for chat project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import datetime...
24.013986
91
0.703262
7d9a0a9aeb55e53ef110a152ee179d39671a15ed
9,292
py
Python
src/datadog_api_client/v1/model/query_value_widget_request.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
32
2021-01-07T15:09:56.000Z
2022-01-30T05:49:23.000Z
src/datadog_api_client/v1/model/query_value_widget_request.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
228
2020-09-03T14:03:54.000Z
2022-03-31T20:16:12.000Z
src/datadog_api_client/v1/model/query_value_widget_request.py
DataDog/datadog-api-client-python
de2fc57dbde9acf4b8c8eef94ac29911227a62a2
[ "Apache-2.0" ]
12
2020-09-15T21:36:03.000Z
2022-03-31T17:13:17.000Z
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v1.model_utils import ( # noqa: F401 ApiTypeError, Mo...
49.164021
190
0.630758
9b243d63d16811f348209654d3e92398ee959be8
60,522
py
Python
src/bpmn_python/bpmn_diagram_import.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
src/bpmn_python/bpmn_diagram_import.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
src/bpmn_python/bpmn_diagram_import.py
ToJestKrzysio/ProcessVisualization
9a359a31816bf1be65e3684a571509e3a2c2c0ac
[ "MIT" ]
null
null
null
# coding=utf-8 """ Package provides functionality for importing from BPMN 2.0 XML to graph representation """ from xml.dom import minidom from . import bpmn_import_utils as utils from . import bpmn_python_consts as consts class BpmnDiagramGraphImport(object): """ Class BPMNDiagramGraphImport provides methods...
60.643287
124
0.651912
ffea2f0f5051852027b419aee07461c6ffe1ee2a
1,530
py
Python
aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_ack_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_ack_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
aries_cloudagent/protocols/issue_credential/v1_0/handlers/credential_ack_handler.py
SmartLoan/smartloan-cloud-agent
3d1e4b506f02e25bdece194240110c71b1786911
[ "Apache-2.0" ]
null
null
null
"""Credential ack message handler.""" from .....messaging.base_handler import BaseHandler, HandlerException from .....messaging.request_context import RequestContext from .....messaging.responder import BaseResponder from ..manager import CredentialManager from ..messages.credential_ack import CredentialAck from ......
32.553191
82
0.680392
ae0921b7ed58d1385019c232e0615eee79d86849
2,450
py
Python
test/performance/ign_perf.py
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
198
2020-04-15T16:56:09.000Z
2022-03-27T12:31:08.000Z
test/performance/ign_perf.py
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
1,220
2020-04-15T18:10:29.000Z
2022-03-31T22:37:06.000Z
test/performance/ign_perf.py
caioaamaral/ign-gazebo
770ea2ae873d52cd7d867d0a8abbd929602bf3fe
[ "ECL-2.0", "Apache-2.0" ]
134
2020-04-15T16:59:57.000Z
2022-03-26T08:51:31.000Z
#!/usr/bin/env python3 import argparse import numpy as np import csv import matplotlib.pyplot as plt def read_data(filename): header = [] entries = [] with open(filename) as csvfile: reader = csv.reader(csvfile, delimiter=',', quotechar='"') for row in reader: if row[0][0] ==...
27.222222
66
0.570204
1661c0e2cd0c0d5f629123f49fcba14a305e8e6b
7,181
py
Python
flask_signalbus/signalbus_cli.py
epandurski/flask_signalbus
e495ab5762d3799dfc2e1a69b17ff067767eec83
[ "MIT" ]
6
2018-11-25T22:05:51.000Z
2021-03-21T02:44:20.000Z
flask_signalbus/signalbus_cli.py
epandurski/flask_signalbus
e495ab5762d3799dfc2e1a69b17ff067767eec83
[ "MIT" ]
null
null
null
flask_signalbus/signalbus_cli.py
epandurski/flask_signalbus
e495ab5762d3799dfc2e1a69b17ff067767eec83
[ "MIT" ]
null
null
null
import sys import time import logging import click from flask.cli import with_appcontext from flask import current_app from . import SignalBus from .utils import report_signal_count def _get_models_to_flush(signalbus, signal_names, exclude): signal_names = set(signal_names) exclude = set(exclude) models_t...
37.015464
101
0.688483
9f095b981538dfc91fbae731db2cfd0d7970ce7f
2,767
py
Python
app/modules/storages/resources.py
ssfdust/full-stack-flask-smorest
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
33
2019-09-25T02:19:43.000Z
2022-03-25T01:58:19.000Z
app/modules/storages/resources.py
ssfdust/full-stack-flask-rest-api
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
null
null
null
app/modules/storages/resources.py
ssfdust/full-stack-flask-rest-api
a0bdbd3a7d314b82bb43b265578aba7bbd175e51
[ "Apache-2.0" ]
6
2020-01-12T15:18:07.000Z
2021-06-01T16:30:26.000Z
# Copyright 2019 RedLotus <ssfdust@gmail.com> # Author: RedLotus <ssfdust@gmail.com> # # 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 # # Unles...
30.406593
74
0.658475
3f00e7324414bf4f5a1ce54d7b34b3401ba6066d
1,135
py
Python
downloader.py
ferrero-zhang/AWS-python-flask
436944e7245416348e9438360857238994bea37a
[ "Apache-2.0" ]
null
null
null
downloader.py
ferrero-zhang/AWS-python-flask
436944e7245416348e9438360857238994bea37a
[ "Apache-2.0" ]
null
null
null
downloader.py
ferrero-zhang/AWS-python-flask
436944e7245416348e9438360857238994bea37a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # coding=utf-8 import os.path from urllib import urlretrieve from datetime import datetime import shutil import ConfigParser config = ConfigParser .ConfigParser() config.read('leecher.config') zimuName = config.get('resource','name').decode('utf-8') print zimuName temp_dir = ".download/" def...
25.795455
84
0.670485
86f3c07f09d3f06f9a471e34cbeb919ce4bcbfe5
12,102
py
Python
setup.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
21
2015-02-11T22:59:18.000Z
2022-03-01T15:36:41.000Z
setup.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
63
2015-03-26T11:58:58.000Z
2022-02-25T18:44:15.000Z
setup.py
jmrohwer/pysces
a9212900a7b95489ae2494b831420633e3763b46
[ "BSD-3-Clause" ]
9
2015-05-01T09:28:56.000Z
2020-02-25T14:38:14.000Z
#!/usr/bin/env python """ PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2022 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Af...
32.18617
180
0.627417
e9033d45d6c6f036b9f5cdd796463b95bd1ee9ac
512
py
Python
src/domain/city/dtos.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
1
2022-03-23T13:35:38.000Z
2022-03-23T13:35:38.000Z
src/domain/city/dtos.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
null
null
null
src/domain/city/dtos.py
Monster-Gem/f-ticket
bfee2bcc3db92e2350c0f3bbc32108a79350583e
[ "MIT" ]
null
null
null
from domain.city import entity from flask_mongoengine import BaseQuerySet def args_to_name(args): return args.get('name', None) def json_to_update_city(city_json): return { 'name': city_json.get('name', None)} def json_from_city(city): return {"name": city.name} def json_from_cities(cities): return ...
30.117647
120
0.751953
cafeebd60ae6a9ccb97dd3b121bdb3a0d06df6ed
5,974
py
Python
src/kivy_paint/_operations.py
gottadiveintopython/kivypaint
c67e501ad3ec0361ec28d9dd0ded96391f5a872d
[ "MIT" ]
null
null
null
src/kivy_paint/_operations.py
gottadiveintopython/kivypaint
c67e501ad3ec0361ec28d9dd0ded96391f5a872d
[ "MIT" ]
2
2021-09-14T21:04:15.000Z
2021-09-14T21:04:18.000Z
src/kivy_paint/_operations.py
gottadiveintopython/kivypaint
c67e501ad3ec0361ec28d9dd0ded96391f5a872d
[ "MIT" ]
null
null
null
__all__ = ( 'RectangleLine', 'RectangleFill', 'EllipseLine', 'EllipseFill', 'FreeHand', 'PolyLine', 'Clear', ) def _is_inside(widget, touch): return widget.collide_point(*touch.opos) and touch.button == 'left' def _is_right_button(widget, touch): return touch.button == 'right' class Rectan...
36.206061
112
0.580013
b6f07587803e6bd645e2ba08f6c29d5f79069616
6,461
py
Python
tests/unit/modules/test_vmc_sddc_host.py
kdsalvy/salt-ext-modules-vmware-1
9fdc941692e4c526f575f33b2ce23c1470582934
[ "Apache-2.0" ]
1
2022-03-23T08:27:15.000Z
2022-03-23T08:27:15.000Z
tests/unit/modules/test_vmc_sddc_host.py
waynew/salt-ext-modules-vmware
9f693382772061676c846c850df6ff508b7f3a91
[ "Apache-2.0" ]
null
null
null
tests/unit/modules/test_vmc_sddc_host.py
waynew/salt-ext-modules-vmware
9f693382772061676c846c850df6ff508b7f3a91
[ "Apache-2.0" ]
null
null
null
""" Unit tests for vmc_sddc_host execution module """ import logging from unittest.mock import patch import pytest import saltext.vmware.modules.vmc_sddc_host as vmc_sddc_host from saltext.vmware.utils import vmc_constants from saltext.vmware.utils import vmc_request log = logging.getLogger(__name__) @pytest.fi...
33.476684
91
0.628231
8a707f2b825d8745f218f086ec65c43a06893029
31
py
Python
python/testData/optimizeImports/libraryRootInsideProject/main.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/optimizeImports/libraryRootInsideProject/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/optimizeImports/libraryRootInsideProject/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
import a import b print(a, b)
6.2
11
0.677419
f83c3892a12c25495b1e0c54a052e5fd70055da8
8,609
py
Python
nnunet/preprocessing/cropping.py
dyollb/nnUNet-1
3de9beb473957f10ca8aae283f5fabb1e812a7f9
[ "Apache-2.0" ]
18
2021-05-14T08:54:43.000Z
2022-03-31T08:56:55.000Z
nnunet/preprocessing/cropping.py
dyollb/nnUNet-1
3de9beb473957f10ca8aae283f5fabb1e812a7f9
[ "Apache-2.0" ]
2
2021-09-20T12:34:53.000Z
2021-09-20T12:35:34.000Z
nnunet/preprocessing/cropping.py
dyollb/nnUNet-1
3de9beb473957f10ca8aae283f5fabb1e812a7f9
[ "Apache-2.0" ]
11
2021-05-26T12:07:26.000Z
2022-03-18T06:56:07.000Z
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
39.672811
120
0.668603
2937a45a2d4d980c0541ef084a4f80d65a1c9487
565
py
Python
python-basic/string/split_partition/split_rsplit_difference.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
python-basic/string/split_partition/split_rsplit_difference.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
python-basic/string/split_partition/split_rsplit_difference.py
nkhn37/python-tech-sample-source
e8aea7ed3d810494682b3c2dde952ddd0f7acf84
[ "MIT" ]
null
null
null
"""文字列基礎 文字列を特定の区切り文字で分割する方法 splitとrsplitの結果が変わる場合 [説明ページ] https://tech.nkhn37.net/python-split-splitlines-partition/#splitrsplit """ sample_text1 = 'Python Java C C++ C# Go' sample_text2 = 'Python|Java|C|C++|C#|Go' # ===== splitとrsplitの分割結果が変わる場合 # 空白文字で分割 print('--- 空白で分割') print(sample_text1.split(maxsplit=3)) pri...
23.541667
70
0.720354
779f79272434e2135a18e97cdc655da4987b7fb0
11,150
py
Python
tests/test_unlinked_pa_templates.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
12
2019-12-01T10:34:50.000Z
2022-03-14T00:11:21.000Z
tests/test_unlinked_pa_templates.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
33
2019-12-01T12:14:01.000Z
2022-03-22T04:50:30.000Z
tests/test_unlinked_pa_templates.py
Ramanth/analyticsapi-engines-python-sdk
93af954e3bd2107146d4914437feb8e27c159741
[ "Apache-2.0" ]
1
2019-12-01T10:34:52.000Z
2019-12-01T10:34:52.000Z
import unittest from fds.analyticsapi.engines.api.unlinked_pa_templates_api import UnlinkedPATemplatesApi from fds.analyticsapi.engines.model.unlinked_pa_template_parameters_root import UnlinkedPATemplateParametersRoot from fds.analyticsapi.engines.model.unlinked_pa_template_parameters import UnlinkedPATemplateParamet...
53.864734
139
0.695964
56332e90d90da0d4d3167580182bc8272b2eec0c
3,121
py
Python
webdriver_manager/utils.py
benquike/webdriver_manager
64438ad4f39aaae520b062000a16cf77b04d7b0a
[ "Apache-2.0" ]
null
null
null
webdriver_manager/utils.py
benquike/webdriver_manager
64438ad4f39aaae520b062000a16cf77b04d7b0a
[ "Apache-2.0" ]
null
null
null
webdriver_manager/utils.py
benquike/webdriver_manager
64438ad4f39aaae520b062000a16cf77b04d7b0a
[ "Apache-2.0" ]
null
null
null
import datetime import os import platform import re import sys import requests from webdriver_manager.logger import log class OSType(object): LINUX = "linux" MAC = "mac" WIN = "win" class ChromeType(object): GOOGLE = 'google-chrome' CHROMIUM = 'chromium' MSEDGE = 'edge' def os_name(): ...
27.377193
102
0.649792
61d69fd76efd4cdd2891558d52925051a0d80670
8,125
py
Python
Libraries/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-macosx-10.5-intel.egg/matplotlib/tests/test_cbook.py
mlewis1973/pyosirix
77757744f250ea1e3be083f50dce70f7aa094c5d
[ "BSD-3-Clause" ]
113
2015-08-16T22:38:56.000Z
2022-01-27T16:46:09.000Z
lib/matplotlib/tests/test_cbook.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
7
2016-10-21T04:15:22.000Z
2020-02-15T04:06:19.000Z
lib/matplotlib/tests/test_cbook.py
yingkailiang/matplotlib
255a79b106c98c1904489afe6a754e4d943179d6
[ "MIT", "BSD-3-Clause" ]
41
2015-08-16T22:38:28.000Z
2022-01-26T21:21:30.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from datetime import datetime import numpy as np from numpy.testing.utils import (assert_array_equal, assert_approx_equal, assert_array_almost_equal) from nose.tool...
33.028455
77
0.576738
f652ba65386b9470f9dcab6cefc4ac752815c233
147
py
Python
pages/urls.py
AmineAsli/my-personal-blog
3ced4ec04c0f75d97db2a31d1291a98f6c852699
[ "MIT" ]
null
null
null
pages/urls.py
AmineAsli/my-personal-blog
3ced4ec04c0f75d97db2a31d1291a98f6c852699
[ "MIT" ]
null
null
null
pages/urls.py
AmineAsli/my-personal-blog
3ced4ec04c0f75d97db2a31d1291a98f6c852699
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'pages' urlpatterns = [ path('about/', views.about_page, name='about_page'), ]
18.375
56
0.687075
27047fe46a2d81d8f08b481ad0ca5dc6b825dcea
21,735
py
Python
test/unit/tool_util/test_parsing.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
null
null
null
test/unit/tool_util/test_parsing.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
1
2017-08-22T08:03:31.000Z
2017-08-22T08:03:31.000Z
test/unit/tool_util/test_parsing.py
lawrence14701/galaxy
7eb2fcb708e7b63e17800c87613ddfa5497c0654
[ "CC-BY-3.0" ]
1
2019-01-16T22:21:54.000Z
2019-01-16T22:21:54.000Z
import os import os.path import shutil import tempfile import unittest from math import isinf from galaxy.tool_util.parser.factory import get_tool_source from galaxy.util import galaxy_directory TOOL_XML_1 = """ <tool name="BWA Mapper" id="bwa" version="1.0.1" is_multi_byte="true" display_interface="true" require_lo...
32.635135
138
0.667219
f3824e05d03ce5a19302bf4084a890b520d44930
2,369
py
Python
djpp/models/orders.py
paramono/djpp
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
1
2020-07-28T19:08:20.000Z
2020-07-28T19:08:20.000Z
djpp/models/orders.py
paramono/djpaypal_subs
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
null
null
null
djpp/models/orders.py
paramono/djpaypal_subs
ba70c212595d37e2d3ffbd7313c879979d9d4f3e
[ "MIT" ]
null
null
null
from django.db import models from .base import PaypalModel from ..constants import ( ORDER_INTENT_CHOICES, ORDER_STATUS_CHOICES, CAPTURE_STATUS_CHOICES, DISBURSEMENT_MODE_CHOICES, ) from ..fields import JSONField, CurrencyAmountField class CheckoutOrder(PaypalModel): ''' https://developer.paypal.com/...
35.893939
86
0.691431
b3b1912bff2901d761491a5233cd28ceddca6606
731
py
Python
Module 2/Chapter10/state_structural.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
73
2016-09-15T23:07:04.000Z
2022-03-05T15:09:48.000Z
Module 2/Chapter10/state_structural.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
null
null
null
Module 2/Chapter10/state_structural.py
real-slim-chadi/Python_Master-the-Art-of-Design-Patterns
95ec92272374e330b04d931208abbb184c7c7908
[ "MIT" ]
51
2016-10-07T20:47:51.000Z
2021-12-22T21:00:24.000Z
__author__ = 'Chetan' from abc import abstractmethod, ABCMeta class State(metaclass=ABCMeta): @abstractmethod def Handle(self): pass class ConcreteStateB(State): def Handle(self): print("ConcreteStateB") class ConcreteStateA(State): def Handle(self): prin...
18.275
40
0.607387
7751efe8aea4854344c46f8c923d52067ecdbe07
17,311
py
Python
mxnet/src/autogluon/mxnet/scheduler/rl_scheduler.py
peacekurella/autogluon
41ab73671c393b5265ee8487994766a9e525005f
[ "Apache-2.0" ]
null
null
null
mxnet/src/autogluon/mxnet/scheduler/rl_scheduler.py
peacekurella/autogluon
41ab73671c393b5265ee8487994766a9e525005f
[ "Apache-2.0" ]
null
null
null
mxnet/src/autogluon/mxnet/scheduler/rl_scheduler.py
peacekurella/autogluon
41ab73671c393b5265ee8487994766a9e525005f
[ "Apache-2.0" ]
2
2021-02-13T04:41:33.000Z
2021-07-10T07:14:59.000Z
import mxnet as mx import mxnet.gluon.nn as nn import multiprocessing from multiprocessing.pool import ThreadPool from autogluon.core.utils import keydefaultdict from autogluon.core.space import Categorical class BaseController(mx.gluon.Block): """ BaseController subclasses are used in RLSearcher, which is t...
36.367647
98
0.585986
21f44dbc6a1cd2ed617d6c56acc8ff59b733eb34
41,544
py
Python
pandas/core/arrays/masked.py
hubert-pietron/pandas
afc06e780e267b7eaac8651c7feb53f682d5b4a9
[ "BSD-3-Clause" ]
1
2022-03-10T12:18:01.000Z
2022-03-10T12:18:01.000Z
pandas/core/arrays/masked.py
hubert-pietron/pandas
afc06e780e267b7eaac8651c7feb53f682d5b4a9
[ "BSD-3-Clause" ]
null
null
null
pandas/core/arrays/masked.py
hubert-pietron/pandas
afc06e780e267b7eaac8651c7feb53f682d5b4a9
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, Literal, Sequence, TypeVar, overload, ) import warnings import numpy as np from pandas._libs import ( lib, missing as libmissing, ) from pandas._typing import ( ArrayLike, AstypeArg, DtypeObj, ...
33.803092
87
0.571563
1240ac474d71897052e3cd150d78441e1f4f7c78
3,835
py
Python
extraction_functions.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
null
null
null
extraction_functions.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
null
null
null
extraction_functions.py
berkurka/chameleon
ee84a5a7da1e49734ffd885606aa39db73e6ae9d
[ "MIT" ]
1
2020-11-16T01:07:33.000Z
2020-11-16T01:07:33.000Z
import os import re from typing import Dict import pandas as pd import PyPDF2 def load_pdf_files(file_path:str): ''' Loads pdf files and into PyPDF2.pdf.PdfFileReader object and append thems into a dictionary. Parameters ---------- file_path : str Location of pdf files. ...
33.640351
88
0.489179
c30860cbeb24e4c3f15e31e6259337216de80321
2,730
py
Python
backend/cloud-run-api/app/models/firestore.py
tuxedocat/fast-annotation-tool
2e28e81bf5b383ac033eeae847921d68ed302556
[ "Apache-2.0" ]
24
2021-06-08T06:20:55.000Z
2022-03-24T07:27:08.000Z
backend/cloud-run-api/app/models/firestore.py
shunyooo/fast-annotation-tool
0f7b23eb9e664daf33c6ada366ea550996d103b3
[ "Apache-2.0" ]
null
null
null
backend/cloud-run-api/app/models/firestore.py
shunyooo/fast-annotation-tool
0f7b23eb9e664daf33c6ada366ea550996d103b3
[ "Apache-2.0" ]
6
2021-06-08T02:39:31.000Z
2022-01-08T15:10:01.000Z
"""Data models: (see also: frontend/app/src/plugins/Schemas.tsx)""" from datetime import datetime from enum import Enum from typing import Any, Dict, Generic, List, Optional, TypeVar from google.cloud.firestore_v1.document import DocumentReference from pydantic import BaseModel, ValidationError, validator from pydanti...
21.84
73
0.698535
e453cfbc56e05080d26fb4999d2e1699cc208f21
403
py
Python
ros/build/waypoint_loader/catkin_generated/pkg.develspace.context.pc.py
agedama500001/CarND-Capstone-Project
d4b1ecc230cd7bd1282339ca61bdb28628e453f1
[ "MIT" ]
null
null
null
ros/build/waypoint_loader/catkin_generated/pkg.develspace.context.pc.py
agedama500001/CarND-Capstone-Project
d4b1ecc230cd7bd1282339ca61bdb28628e453f1
[ "MIT" ]
8
2020-01-28T22:51:23.000Z
2022-03-11T23:51:09.000Z
ros/build/waypoint_loader/catkin_generated/pkg.develspace.context.pc.py
agedama500001/CarND-Capstone-Project
d4b1ecc230cd7bd1282339ca61bdb28628e453f1
[ "MIT" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "waypoint_loader" PROJECT_SPACE_DIR = ...
44.777778
76
0.717122
1b75225342eff173b26ea42cec2c65f98f915718
7,262
py
Python
Scripts/Debug/Umemoto_Feb2.py
MetaCell/PsyNeuLink
aeddf3e8ea62504a5d928b100b59aa18e593156c
[ "Apache-2.0" ]
67
2018-01-05T22:18:44.000Z
2022-03-27T11:27:31.000Z
Scripts/Debug/Umemoto_Feb2.py
MetaCell/PsyNeuLink
aeddf3e8ea62504a5d928b100b59aa18e593156c
[ "Apache-2.0" ]
1,064
2017-12-01T18:58:27.000Z
2022-03-31T22:22:24.000Z
Scripts/Debug/Umemoto_Feb2.py
MetaCell/PsyNeuLink
aeddf3e8ea62504a5d928b100b59aa18e593156c
[ "Apache-2.0" ]
25
2017-12-01T20:27:07.000Z
2022-03-08T21:49:39.000Z
import psyneulink as pnl import numpy as np # here we implement a test demo as in the EVC paper example: #in v2 we add control signals and a EVC mechanism to the model # EVC params for Umemoto et al w_t = 0.065 w_d = 0.065#0.065 # made negative here to match -1 values for distractor f_t = 1 f_d = 1 # EVC params fo...
38.62766
129
0.670339
0c6e8505d7f4a2de74cdb63447e109e53563f2e9
1,630
py
Python
world/conditions/migrations/0003_wound.py
dvoraen/arxcode
a89f2004fca10e0b1f1995c2420dd3ffbf08774b
[ "MIT" ]
42
2018-08-12T00:55:24.000Z
2021-12-24T15:16:08.000Z
world/conditions/migrations/0003_wound.py
dvoraen/arxcode
a89f2004fca10e0b1f1995c2420dd3ffbf08774b
[ "MIT" ]
312
2018-10-22T23:03:27.000Z
2022-02-06T13:02:58.000Z
world/conditions/migrations/0003_wound.py
dvoraen/arxcode
a89f2004fca10e0b1f1995c2420dd3ffbf08774b
[ "MIT" ]
42
2018-08-12T00:41:48.000Z
2022-01-27T14:03:16.000Z
# Generated by Django 2.2.16 on 2020-11-29 13:51 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("traits", "0002_auto_20201108_1757"), ("conditions", "0002_auto_20190503_1914"), ] operations = [ m...
29.107143
79
0.377914
a1fa088a4fce9cb0e31d379840617f989646d186
506
py
Python
src/errors/InvalidUsage.py
2B1S/heart.io-backend
e146ff95136a64fb45bdba9c70ff186aea178883
[ "MIT" ]
4
2019-04-16T22:38:54.000Z
2021-11-08T14:05:16.000Z
src/errors/InvalidUsage.py
2B1S/heart.io-backend
e146ff95136a64fb45bdba9c70ff186aea178883
[ "MIT" ]
3
2021-09-08T00:42:59.000Z
2022-03-11T23:38:31.000Z
src/errors/InvalidUsage.py
2B1S/heart.io-backend
e146ff95136a64fb45bdba9c70ff186aea178883
[ "MIT" ]
null
null
null
# shamelessly copied from Flask docs # source: http://flask.pocoo.org/docs/1.0/patterns/apierrors/ class InvalidUsage(Exception): status_code = 400 def __init__(self, message, status_code=None, payload=None): Exception.__init__(self) self.message = message if status_code is not None: ...
31.625
64
0.648221
e761a54b0d2dc32397316042a9cfb6a5ad6e2303
5,667
py
Python
pinax/apps/projects/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:09.000Z
2019-02-12T04:45:09.000Z
pinax/apps/projects/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
null
null
null
pinax/apps/projects/views.py
peiwei/pinax
34f95b1df4318655fe9bd90dcda8fe824e0c4117
[ "MIT" ]
1
2019-02-12T04:45:40.000Z
2019-02-12T04:45:40.000Z
from django.conf import settings from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.utils.datastructures import SortedDict from django.utils.translation import...
36.326923
99
0.700194
1b4ab9ec1bdb415bc8b5ad884d6c9321eb5728ce
12,108
py
Python
supervised/algorithms/lightgbm.py
jmrichardson/mljar-supervised
cca9bd36dc9909fe48af949da0141d3544c1fa5a
[ "MIT" ]
null
null
null
supervised/algorithms/lightgbm.py
jmrichardson/mljar-supervised
cca9bd36dc9909fe48af949da0141d3544c1fa5a
[ "MIT" ]
null
null
null
supervised/algorithms/lightgbm.py
jmrichardson/mljar-supervised
cca9bd36dc9909fe48af949da0141d3544c1fa5a
[ "MIT" ]
null
null
null
import logging import copy import numpy as np import pandas as pd import time import os import contextlib import lightgbm as lgb from supervised.algorithms.algorithm import BaseAlgorithm from supervised.algorithms.registry import AlgorithmsRegistry from supervised.algorithms.registry import ( BINARY_CLASSIFICATION...
30.653165
94
0.602329
fdd84cff4bd97b59a25b6039a439d5e97b50306f
142
py
Python
Kornislav/kornislav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
2
2021-04-13T12:56:30.000Z
2022-03-21T16:46:58.000Z
Kornislav/kornislav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
null
null
null
Kornislav/kornislav.py
rajitbanerjee/kattis
3a5dd4c84c07e21f09ef45ebd9c1bad2a0adc6ad
[ "CC0-1.0" ]
1
2021-11-14T14:06:46.000Z
2021-11-14T14:06:46.000Z
"""https://open.kattis.com/problems/kornislav""" nums = list(map(int, input().split())) nums.remove(max(nums)) print(min(nums) * max(nums))
20.285714
48
0.669014
1ff52a7b4d96520fa6a2ce7726bc75780d330006
3,195
py
Python
collect_data/utils/meetup/groups_events.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
collect_data/utils/meetup/groups_events.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
collect_data/utils/meetup/groups_events.py
jaklinger/nesta_dataflow
5d5647dd8d900a40b460bae0841f7d917e53ae08
[ "MIT" ]
null
null
null
import requests import logging import time import ratelim # Local imports from utils.common.db_utils import read_all_results from utils.common.datapipeline import DataPipeline # from retrying import retry RATELIM_DUR = 50 * 60 RATELIM_QUERIES = 8500 # @retry(wait_random_min=2000, wait_random_max=60000, stop_max_att...
33.989362
81
0.611268
c9e1034ebfeb9ab866bf39630bd8aa2213564fd6
1,402
py
Python
apps/myindex/pycomfy_test.py
gzvulon/pydocflow
9184894630903f2aaf238cd70fff2d0cc9132b81
[ "MIT" ]
null
null
null
apps/myindex/pycomfy_test.py
gzvulon/pydocflow
9184894630903f2aaf238cd70fff2d0cc9132b81
[ "MIT" ]
null
null
null
apps/myindex/pycomfy_test.py
gzvulon/pydocflow
9184894630903f2aaf238cd70fff2d0cc9132b81
[ "MIT" ]
2
2021-05-28T11:01:43.000Z
2021-05-30T15:14:32.000Z
from myindex.pycomfy import is_cfg_method, to_cfg_method, make_cfg_bond class SimpleCfg: f_int: int f_str: str = 's' def simple_method_sample(cfg: SimpleCfg): return f"{cfg.f_str}-{cfg.f_str}" def test_is_cfg_method(): x = is_cfg_method(SimpleCfg, simple_method_sample) assert x is True def t...
21.242424
71
0.644793
214901108da1628086a311b7a1ac2ccc29c38526
8,932
py
Python
avalon-scone/worker_manager/avalon_enclave_manager/scone/scone_enclave_manager.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
null
null
null
avalon-scone/worker_manager/avalon_enclave_manager/scone/scone_enclave_manager.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
1
2021-02-03T07:57:06.000Z
2021-02-13T13:53:49.000Z
avalon-scone/worker_manager/avalon_enclave_manager/scone/scone_enclave_manager.py
T-Systems-MMS/hyperledger-secure-avalon
b43796a53726242d54be526ce9f6fc8d8a2670d1
[ "Apache-2.0" ]
4
2021-06-09T08:55:26.000Z
2021-11-26T16:25:48.000Z
#!/usr/bin/env python3 # Copyright 2020 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
36.161943
127
0.619346
b646e1aa67ded06a12f1c2f7212f4ecee1c21282
10,671
py
Python
Lib/test/test_builtin_jy.py
jimmyyu2004/jython
5b4dc2d54d01a6fda8c55d07b2608167e7a40769
[ "CNRI-Jython" ]
332
2015-08-22T12:43:56.000Z
2022-03-17T01:05:43.000Z
Lib/test/test_builtin_jy.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
36
2015-05-30T08:39:19.000Z
2022-03-04T20:42:33.000Z
Lib/test/test_builtin_jy.py
Pandinosaurus/jython3
def4f8ec47cb7a9c799ea4c745f12badf92c5769
[ "CNRI-Jython" ]
74
2015-05-29T17:18:53.000Z
2022-01-15T14:06:44.000Z
# -*- coding: utf-8 -*- import test.support, unittest from test.support import TESTFN, unlink import sys, UserDict from codecs import BOM_UTF8 import collections class BuiltinTest(unittest.TestCase): def test_in_sys_modules(self): self.assertTrue("__builtin__" in sys.modules, "__builtin__ no...
31.664688
81
0.529379
03d443d49109bb8645e528f5cebee77ae232d59b
3,576
py
Python
tools/setirq.py
ajameson/bifrost
f8d991a968789b0cc12c2a9a5589a25fac1917c6
[ "BSD-3-Clause" ]
null
null
null
tools/setirq.py
ajameson/bifrost
f8d991a968789b0cc12c2a9a5589a25fac1917c6
[ "BSD-3-Clause" ]
null
null
null
tools/setirq.py
ajameson/bifrost
f8d991a968789b0cc12c2a9a5589a25fac1917c6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017-2020, The Bifrost Authors. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice...
36.121212
104
0.665548
0acab13e9bd6c837c856b48710c8fc73ed80a2be
1,379
py
Python
proc.py
sulavmhrzn/Treasure-Hunt
eb5930cab7dd8f493d7a68f5fe866d5203fffe37
[ "MIT" ]
2
2021-01-11T04:55:33.000Z
2021-01-19T09:15:44.000Z
proc.py
sulavmhrzn/Treasure-Hunt
eb5930cab7dd8f493d7a68f5fe866d5203fffe37
[ "MIT" ]
null
null
null
proc.py
sulavmhrzn/Treasure-Hunt
eb5930cab7dd8f493d7a68f5fe866d5203fffe37
[ "MIT" ]
null
null
null
import random from time import sleep from treasure import TREASURE from constants import PERSON, RIDDLE, ANSWER treasure_room = random.randint(1, 6) def random_person(person): person = random.choice(person) return person def process_inside_room(room_number): print(f'You are in Room:{room_number}') ...
29.978261
124
0.597534
d52d0153ed6a4ec475e067ab4457ff3aea9f5e6f
872
py
Python
instagram_dev4us/notifications/models.py
dev4us/Instagram_dev4us
121973a3a4ded30380cb5405d1837c094731b31d
[ "MIT" ]
1
2019-04-04T13:28:21.000Z
2019-04-04T13:28:21.000Z
instagram_dev4us/notifications/models.py
dev4us/Instagram_dev4us
121973a3a4ded30380cb5405d1837c094731b31d
[ "MIT" ]
3
2018-07-26T15:20:50.000Z
2022-02-10T13:25:56.000Z
instagram_dev4us/notifications/models.py
dev4us/Instagram_dev4us
121973a3a4ded30380cb5405d1837c094731b31d
[ "MIT" ]
null
null
null
from django.db import models from instagram_dev4us.users import models as user_models from instagram_dev4us.images import models as image_models class Notification(image_models.TimeStampModel): TYPE_CHOICES = ( ('like', 'Like'), ('comment', 'Comment'), ('follow', 'Follow') ) crea...
36.333333
99
0.708716
c01000a57c6aa44494b7b66c651978cbd5c7ba75
274
py
Python
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_12/ar_12/test_artificial_128_Quantization_MovingAverage_12_12_100.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_12/ar_12/test_artificial_128_Quantization_MovingAverage_12_12_100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Quantization/trend_MovingAverage/cycle_12/ar_12/test_artificial_128_Quantization_MovingAverage_12_12_100.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 12);
39.142857
174
0.740876
c07363ceded9201021e4f7cb65ae1bddec67c914
5,036
py
Python
pyprophet/filter.py
shubham1637/pyprophet
4befd9ba3fcca2cc4e411dd3760cb1695045b09a
[ "BSD-3-Clause" ]
22
2016-09-26T14:19:25.000Z
2021-10-05T08:35:45.000Z
pyprophet/filter.py
shubham1637/pyprophet
4befd9ba3fcca2cc4e411dd3760cb1695045b09a
[ "BSD-3-Clause" ]
58
2016-07-19T18:09:30.000Z
2022-03-24T16:26:08.000Z
pyprophet/filter.py
shubham1637/pyprophet
4befd9ba3fcca2cc4e411dd3760cb1695045b09a
[ "BSD-3-Clause" ]
21
2016-07-12T06:07:21.000Z
2022-03-22T22:00:47.000Z
import pandas as pd import sqlite3 import click from .data_handling import check_sqlite_table # Filter a sqMass chromatogram file by given input labels def filter_chrom_by_labels(infile, outfile, labels): conn = sqlite3.connect(infile) c = conn.cursor() labels = [ "'" + str(l) + "'" for l in labels] ...
38.151515
147
0.710882
4f1437507d9fcca3b427ab041a48f6110154f096
3,251
py
Python
src/utils/curvelinear_plot.py
Valrobotik/Obstacle_visualistor
2a4880b1e7d2cbda469717a1158e82ac1a2cdd89
[ "MIT" ]
null
null
null
src/utils/curvelinear_plot.py
Valrobotik/Obstacle_visualistor
2a4880b1e7d2cbda469717a1158e82ac1a2cdd89
[ "MIT" ]
null
null
null
src/utils/curvelinear_plot.py
Valrobotik/Obstacle_visualistor
2a4880b1e7d2cbda469717a1158e82ac1a2cdd89
[ "MIT" ]
3
2021-05-27T20:21:29.000Z
2021-06-06T14:07:25.000Z
if __name__ == "__main__": # Pour executer le code en local et avoir les bon import import sys import os sys.path.append(os.getcwd() + "\\src") from robot_package.data_robot_creator import data_robot_creator import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.axisartist.angle_he...
35.336957
119
0.601046
9cba751621c061eedc71b862dfc33ee17dd2ce36
66,547
py
Python
corporate/tests/test_stripe.py
architkshk/zulip
a1a70478195345a28ff055e259136510cf1c1e6e
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
architkshk/zulip
a1a70478195345a28ff055e259136510cf1c1e6e
[ "Apache-2.0" ]
null
null
null
corporate/tests/test_stripe.py
architkshk/zulip
a1a70478195345a28ff055e259136510cf1c1e6e
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, timedelta from decimal import Decimal from functools import partial, wraps from mock import Mock, patch import operator import os import re import sys from typing import Any, Callable, Dict, List, Optional, TypeVar, Tuple, cast import ujson import json from django.core import signing fro...
55.874895
114
0.660631
ac49bf730f31727625924919323d63fbd631302d
1,124
py
Python
Lib/site-packages/tensorflow/python/keras/api/_v2/keras/optimizers/__init__.py
xorb813/Text-Mining
3dced9dd06fc9334d631ddf608b2ed96c2493276
[ "CNRI-Python-GPL-Compatible" ]
1
2021-05-24T10:08:51.000Z
2021-05-24T10:08:51.000Z
Lib/site-packages/tensorflow/python/keras/api/_v2/keras/optimizers/__init__.py
xorb813/Text-Mining
3dced9dd06fc9334d631ddf608b2ed96c2493276
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/site-packages/tensorflow/python/keras/api/_v2/keras/optimizers/__init__.py
xorb813/Text-Mining
3dced9dd06fc9334d631ddf608b2ed96c2493276
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Built-in optimizer classes. For more examples see the base class `tf.keras.optimizers.Optimizer`. """ from __future__ import print_function as _print_function import sys as _sys from...
40.142857
86
0.848754
939499c47ec59035baf3b8e2859a3db6f4681c52
6,256
py
Python
tensorflow_probability/python/random/random_ops_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
1
2020-11-06T06:27:21.000Z
2020-11-06T06:27:21.000Z
tensorflow_probability/python/random/random_ops_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/random/random_ops_test.py
PavanKishore21/probability
4bad1b796b0e6ed2959205915d42788817620c4c
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
33.634409
78
0.69821
9bc682e8f90dfa39ce398570a37b8dad34077eb4
244
py
Python
lzma_decompress.py
BhavyaSheth22/hackit-iot
142e257f63d8d1913e9c76ee8b1203d760a4f1e5
[ "MIT" ]
3
2020-02-04T05:08:53.000Z
2020-02-10T14:01:05.000Z
lzma_decompress.py
BhavyaSheth22/hackit-iot
142e257f63d8d1913e9c76ee8b1203d760a4f1e5
[ "MIT" ]
1
2021-04-30T21:32:51.000Z
2021-04-30T21:32:51.000Z
lzma_decompress.py
BhavyaSheth22/hackit-iot
142e257f63d8d1913e9c76ee8b1203d760a4f1e5
[ "MIT" ]
1
2020-10-10T17:16:51.000Z
2020-10-10T17:16:51.000Z
import lzma import json original_data = open('comp_block.txt', 'rb').read() og_block = lzma.decompress(original_data) og_block = json.loads(og_block.decode('utf-8')) print(og_block) with open("og_data.txt", 'wb') as f: f.write(og_block)
20.333333
51
0.721311
0b7b40c8a5b4116d4a5f2e187c8c06ecf1f6bc65
333
py
Python
src/others/queryprepocessing.py
oeg-upm/lynx-py
9877594412038b367a9d632b487538c0de018519
[ "Apache-2.0" ]
1
2022-01-05T13:38:57.000Z
2022-01-05T13:38:57.000Z
src/others/queryprepocessing.py
oeg-upm/lynx-py
9877594412038b367a9d632b487538c0de018519
[ "Apache-2.0" ]
null
null
null
src/others/queryprepocessing.py
oeg-upm/lynx-py
9877594412038b367a9d632b487538c0de018519
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Jun 1 13:39:37 2020 @author: Pablo """ def nopreprocessing(query): return query def createQuestion(queryFile,question): f = open(queryFile+'.txt') query = f.read() f.close() query=query.replace('QUESTION',question) ...
15.136364
45
0.576577
ccb84085c12cba845e8666095d1d0330cca18d5d
3,718
py
Python
samples/server/petstore/flaskConnexion/swagger_server/test/test_user_controller.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
1
2020-09-06T18:36:28.000Z
2020-09-06T18:36:28.000Z
samples/server/petstore/flaskConnexion/swagger_server/test/test_user_controller.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
samples/server/petstore/flaskConnexion/swagger_server/test/test_user_controller.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from flask import json from six import BytesIO from swagger_server.models.user import User # noqa: E501 from swagger_server.test import BaseTestCase class TestUserController(BaseTestCase): """UserController integration test stubs""" def test_create_u...
30.47541
77
0.564013
57b95f8437e8b285643213bfb38ad035e322631c
42
py
Python
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-10-15T23:32:24.000Z
2019-12-26T12:31:53.000Z
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
6
2017-09-05T13:52:00.000Z
2017-12-01T14:18:27.000Z
airbus_cobot_gui/src/airbus_cobot_gui/diagnostics/__init__.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-09-04T08:14:36.000Z
2017-09-18T07:22:21.000Z
from diagnostics import DiagnosticsWidget
21
41
0.904762
f895b8f0882045abf1922faae01af8d6a39c8fe8
1,658
py
Python
attic/testing.py
CitizenScienceInAstronomyWorkshop/pyIBCC
35215648f3361689e374780182f39182eddda64f
[ "MIT" ]
11
2015-01-05T14:03:00.000Z
2020-05-31T07:22:20.000Z
attic/testing.py
CitizenScienceInAstronomyWorkshop/pyIBCC
35215648f3361689e374780182f39182eddda64f
[ "MIT" ]
5
2015-03-10T18:24:24.000Z
2018-04-03T12:52:40.000Z
attic/testing.py
CitizenScienceInAstronomyWorkshop/pyIBCC
35215648f3361689e374780182f39182eddda64f
[ "MIT" ]
7
2015-03-16T11:35:08.000Z
2018-04-24T05:45:51.000Z
import pickle import pylab as p import settings from functions import * f=open('16_Jan_2013_13_46/mean.dat','r') mean=pickle.load(f) f.close() test_objects=[] f=open('outputlist.txt','r') for line in f: words=line.split() test_objects.append(words[0]) f.close() fname='q1_data.csv' print 'rea...
26.31746
138
0.651387