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
c3648f9f468a7cb72ab329dd30cb38afa148658b
3,610
py
Python
Backend/apps/user_operation/migrations/0001_initial.py
BeanWei/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
84
2019-02-22T08:19:52.000Z
2022-02-08T03:36:32.000Z
Backend/apps/user_operation/migrations/0001_initial.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
16
2019-09-06T10:25:40.000Z
2022-02-12T06:37:41.000Z
Backend/apps/user_operation/migrations/0001_initial.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
61
2019-03-20T02:29:23.000Z
2021-07-09T08:14:25.000Z
# Generated by Django 2.0.2 on 2019-02-20 10:10 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('goods', '__first__'), migrations.swappable_depe...
50.138889
200
0.586981
29760fe775460d88cc248cbca2ffd1316f6549a1
1,304
py
Python
tests/cell_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
2
2020-12-14T20:50:57.000Z
2021-05-26T04:32:24.000Z
tests/cell_test.py
tmcclintock/PyDonJuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
29
2020-12-18T15:56:14.000Z
2021-01-12T01:17:48.000Z
tests/cell_test.py
tmcclintock/donjuan
ab6d567b568c3e0dd976b10c2628ad99ca81b953
[ "CC0-1.0" ]
null
null
null
from unittest import TestCase from donjuan import Edge, HexCell, SquareCell class SquareCellTest(TestCase): def test_smoke(self): c = SquareCell() assert c is not None def test_space(self): c = SquareCell() assert c.space is None def test_edges(self): c = SquareC...
22.877193
45
0.556748
9b489a046e7a04faadb5fe79ebfd7d32171bdbdb
876
py
Python
modules/dogpicture.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
3
2018-01-27T22:58:47.000Z
2018-02-01T21:06:56.000Z
modules/dogpicture.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
null
null
null
modules/dogpicture.py
AudioVisuaali/audiobot
324bb0988a8ce2b805199c363f385d5809126642
[ "MIT" ]
null
null
null
from urllib.request import urlretrieve from urllib.request import urlopen from urllib.request import quote from audiovisuaali import send from os import remove as osremove # random_dog (Get's a random dog) async def random_dog(message, client, arguments): # Getting a picture not a video or gif loop ...
36.5
158
0.652968
5399da9601a24e98b2bd6efa56d67b567f1f947d
4,028
py
Python
stackdio/api/cloud/migrations/0004_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
9
2015-12-18T22:44:55.000Z
2022-02-07T19:34:44.000Z
stackdio/api/cloud/migrations/0004_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
77
2015-01-12T17:49:38.000Z
2017-02-24T17:57:46.000Z
stackdio/api/cloud/migrations/0004_0_8_0_migrations.py
hdmillerdr/stackdio
84be621705031d147e104369399b872d5093ef64
[ "Apache-2.0" ]
11
2015-01-23T15:50:19.000Z
2022-02-07T19:34:45.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-04-08 18:19 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields class Migration(migrations.Migration): dependencies = [ ('cloud', '0003_0_8_initial...
39.881188
180
0.617925
f0f3ddb70a4885e894823323be49cd768cc9bb33
397
py
Python
WebCrawler/wsgi.py
akum001/myUrlCrawler
bd43a95264b507be002de6098778270cf5602067
[ "MIT" ]
null
null
null
WebCrawler/wsgi.py
akum001/myUrlCrawler
bd43a95264b507be002de6098778270cf5602067
[ "MIT" ]
9
2020-02-12T00:00:15.000Z
2022-03-11T23:43:45.000Z
WebCrawler/wsgi.py
akum001/myUrlCrawler
bd43a95264b507be002de6098778270cf5602067
[ "MIT" ]
null
null
null
""" WSGI config for WebCrawler project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
23.352941
78
0.788413
9688045ea6cd36c514155fa67a0c4ea45964c361
607
py
Python
load_tests.py
lucashtm/django-old-records
fd3df4f33292226110fda1e0a8121428f4eb4018
[ "MIT" ]
null
null
null
load_tests.py
lucashtm/django-old-records
fd3df4f33292226110fda1e0a8121428f4eb4018
[ "MIT" ]
null
null
null
load_tests.py
lucashtm/django-old-records
fd3df4f33292226110fda1e0a8121428f4eb4018
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from unittest import TestSuite from boot_django import boot_django boot_django() default_labels = ["django_old_records.tests", ] def get_suite(labels=default_labels): from django.test.runner import DiscoverRunner runner = DiscoverRunner(verbosity=1) failures = runner.run_...
23.346154
65
0.710049
a76390403d682bde1555dde80cb5926c97d1fccc
5,504
py
Python
app/fedgraphnn/moleculenet_graph_reg/data/datasets.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fedgraphnn/moleculenet_graph_reg/data/datasets.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fedgraphnn/moleculenet_graph_reg/data/datasets.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np import scipy import pickle import gzip import os from tqdm import tqdm import torch.utils.data as data # From GTTF, need to cite once paper is officially accepted to ICLR 2021 class CompactAdjacency: def __init__(self, adj, precomputed=None, subset=None): ...
35.509677
106
0.539608
f5f008c6ab29ec2f11167369e4878a77a2ee576a
100,542
py
Python
core/domain/html_validation_service_test.py
kevjumba/oppia
2618d2d85a5320c8ff4dcd700ccbc67b4d36fdf4
[ "Apache-2.0" ]
1
2021-06-26T00:31:08.000Z
2021-06-26T00:31:08.000Z
core/domain/html_validation_service_test.py
kevjumba/oppia
2618d2d85a5320c8ff4dcd700ccbc67b4d36fdf4
[ "Apache-2.0" ]
null
null
null
core/domain/html_validation_service_test.py
kevjumba/oppia
2618d2d85a5320c8ff4dcd700ccbc67b4d36fdf4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2018 The Oppia Authors. 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 requi...
47.718083
80
0.534473
14de3a4596b14473a4b6c23e41b9f114685b6d2c
67,155
py
Python
astropy/time/formats.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
astropy/time/formats.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
astropy/time/formats.py
mehrdad-shokri/astropy
abd73b51277694338c8eca7639da956dcd06f207
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst import fnmatch import time import re import datetime import warnings from decimal import Decimal from collections import OrderedDict, defaultdict import numpy as np import erfa from astropy.utils.decorators import lazyproperty, cl...
37.791221
91
0.575802
b95d8cb9fb8ee1c5fd170117776397cc55557f8b
52,386
py
Python
image_generation.py
kiralpoon/TwinGAN
af067039d4706312c67a9a38ed7f59a3e53831ae
[ "Apache-2.0" ]
736
2018-04-18T05:43:46.000Z
2022-03-24T12:43:29.000Z
image_generation.py
JustinLion83/TwinGAN
4e5593445778dfb77af9f815b3f4fcafc35758dc
[ "Apache-2.0" ]
43
2018-07-25T03:07:28.000Z
2022-03-11T23:26:33.000Z
image_generation.py
JustinLion83/TwinGAN
4e5593445778dfb77af9f815b3f4fcafc35758dc
[ "Apache-2.0" ]
104
2018-04-18T08:06:15.000Z
2022-02-17T05:51:49.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
49.234962
174
0.675199
239d0cd15c8f9b2fa7cd83304521a33d1e67ad74
1,630
py
Python
chap_01/exe_009_compound_interest.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
chap_01/exe_009_compound_interest.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
chap_01/exe_009_compound_interest.py
aleattene/python-workbook
bf26ba716c957316d1463fb25488384e319d5b91
[ "MIT" ]
null
null
null
""" The program receives from the USER the MONEY DEPOSITED in one savings account and displays the amount in the same account after 1, 2 and 3 years, based on a compound interest rate of 4% annual. """ # Start Definition of FUNCTIONS def calcolaInteresse(amount): TAX_INTEREST = 1.04 # compound interest...
30.754717
75
0.699387
82a7f2a1c73d11cc32e47a27a98e45aafa6fafb6
437
py
Python
python_challenge/5_resources/5_helpful.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
python_challenge/5_resources/5_helpful.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
null
null
null
python_challenge/5_resources/5_helpful.py
facmartoni/python_exercises
7f05c7491a0eee05e32f04c7f07ddc1ba688b7a2
[ "Apache-2.0" ]
1
2021-10-11T00:25:14.000Z
2021-10-11T00:25:14.000Z
""" convert dos linefeeds (crlf) to unix (lf) usage: dos2unix.py """ original = "5_text.pickle" destination = "5_text_unix.pickle" content = '' outsize = 0 with open(original, 'rb') as infile: content = infile.read() with open(destination, 'wb') as output: for line in content.splitlines(): outsize += ...
24.277778
55
0.649886
d885cf898c2653fb310cba3c370e35cffb7d1a70
144
py
Python
typedtsv/__init__.py
jimmybot/typedtsv
0fbc5488d4e6dbe361afb7c35c8a06e174363d8b
[ "Apache-2.0" ]
2
2018-07-10T05:19:42.000Z
2018-07-11T14:39:40.000Z
typedtsv/__init__.py
jimmybot/typedtsv
0fbc5488d4e6dbe361afb7c35c8a06e174363d8b
[ "Apache-2.0" ]
4
2018-07-13T03:21:05.000Z
2018-11-29T20:18:40.000Z
typedtsv/__init__.py
jimmybot/typedtsv
0fbc5488d4e6dbe361afb7c35c8a06e174363d8b
[ "Apache-2.0" ]
null
null
null
__version__ = '0.9.1' from typedtsv.typedtsv import dumps, loads, dump_list, load_list __all__ = ['dumps', 'loads', 'dump_list', 'load_list']
24
64
0.715278
87908e73310ee247296225480f7ad2180d6618d9
2,259
py
Python
webruntime/_browser.py
caph1993/webruntime
98775b9abfef4ec0874c940660832ef11f8ff92f
[ "BSD-2-Clause" ]
36
2018-02-26T23:02:59.000Z
2022-03-22T16:18:45.000Z
webruntime/_browser.py
caph1993/webruntime
98775b9abfef4ec0874c940660832ef11f8ff92f
[ "BSD-2-Clause" ]
22
2018-04-14T15:14:05.000Z
2021-08-23T18:39:09.000Z
webruntime/_browser.py
caph1993/webruntime
98775b9abfef4ec0874c940660832ef11f8ff92f
[ "BSD-2-Clause" ]
10
2018-08-09T09:55:32.000Z
2021-04-19T19:32:12.000Z
""" Web runtime based on a common browser Opens browser via webbrowser module. """ import webbrowser from . import logger from ._common import BaseRuntime BROWSER_MAP = {'chrome': ['google-chrome', 'chrome', 'chromium-browser', 'chromium'], 'chromium': ['chromium-browser',...
28.2375
75
0.557326
2a7472bdd894597f3bf61139a5679de0fb7833d0
1,193
py
Python
sessions/session_08.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
1
2021-02-09T16:14:36.000Z
2021-02-09T16:14:36.000Z
sessions/session_08.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
sessions/session_08.py
pavanmaradia/202102-Python-Django-Training
6ce836009acf037a921b7439a6edda7fc8370dcb
[ "MIT" ]
null
null
null
""" User Defined Function: simple function parameter function return function parameter and return function Named Function """ ''' def <function_name>(<parameters>): <statements> <return> ''' # def greetings(): # print("Hello World") # # greetings() # def greetin...
19.883333
58
0.605197
d092a58814b1b65d57d3c17af7bc51a515d82c23
638
py
Python
bench/model.py
yoshiya0503/SQLAlchemy-on-tornado
5ca790dba72f15291d409fe1f96b287dffe25fcd
[ "MIT" ]
2
2015-10-15T04:02:12.000Z
2016-04-07T20:31:20.000Z
bench/model.py
yoshiya0503/SQLAlchemy-on-tornado
5ca790dba72f15291d409fe1f96b287dffe25fcd
[ "MIT" ]
null
null
null
bench/model.py
yoshiya0503/SQLAlchemy-on-tornado
5ca790dba72f15291d409fe1f96b287dffe25fcd
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- encoding: utf-8 -*- """ model.py model on SQLAlchemy """ __author__ = 'Yoshiya Ito <myon53@gmail.com>' __version__ = '0.0.1' __date__ = '22 Sep 2015' from sqlalchemy import Column, Boolean, String, DateTime from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() ...
22
60
0.65674
ac5c1e83caecd37a2f6c99841236f9ae78b87ca7
515
py
Python
core/admin/migrations/versions/2335c80a6bc3_.py
mboogert/Mailu
ebf6d84aabebe854824546df3ea64566107ed004
[ "MIT" ]
3,620
2016-10-30T14:13:46.000Z
2022-03-31T18:40:15.000Z
core/admin/migrations/versions/2335c80a6bc3_.py
mboogert/Mailu
ebf6d84aabebe854824546df3ea64566107ed004
[ "MIT" ]
2,113
2016-10-27T10:36:52.000Z
2022-03-31T16:38:26.000Z
core/admin/migrations/versions/2335c80a6bc3_.py
mboogert/Mailu
ebf6d84aabebe854824546df3ea64566107ed004
[ "MIT" ]
815
2016-10-29T12:02:00.000Z
2022-03-31T08:44:28.000Z
""" Add a maximum quota per domain Revision ID: 2335c80a6bc3 Revises: 12e9a4f6ed73 Create Date: 2016-12-04 12:57:37.576622 """ # revision identifiers, used by Alembic. revision = '2335c80a6bc3' down_revision = '12e9a4f6ed73' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('domain',...
21.458333
107
0.735922
0e81213e38c2d80faaf6cc19ae8003b4404d499e
1,811
py
Python
python/q091/q91.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q091/q91.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
python/q091/q91.py
MatthewTsan/Leetcode
b0705013eea8517ba7742730cd14ea8601b83c70
[ "Apache-2.0" ]
null
null
null
class Solution: def numDecodings(self, s: str) -> int: cache = [] if s[0] == "0": cache.append(0) else: cache.append(1) if len(s) == 1: return cache[-1] if int(s[0:1]) <= 26 and int(s[0:1]) >= 10: cache.append(2) else: ...
24.472973
60
0.386527
3e7677bbcebab673dc3bd091adfbfa35061010b7
9,179
py
Python
MenuFrames.py
Astatine-213-Tian/Past-Paper-Crawler
bbf686e9e4ddf61cc9918e61cbc108ee53631c81
[ "MIT" ]
2
2020-03-18T04:43:57.000Z
2020-03-22T11:28:01.000Z
MenuFrames.py
Astatine-213-Tian/Past-Paper-Crawler
bbf686e9e4ddf61cc9918e61cbc108ee53631c81
[ "MIT" ]
1
2020-03-22T13:56:47.000Z
2020-03-22T14:02:29.000Z
MenuFrames.py
Astatine-213-Tian/Past-Paper-Crawler
bbf686e9e4ddf61cc9918e61cbc108ee53631c81
[ "MIT" ]
2
2020-03-22T11:50:44.000Z
2020-04-15T03:44:05.000Z
import wx import os import platform import subprocess import Cache class AboutFrame(wx.Frame): def __init__(self, call): wx.Frame.__init__(self, None, -1, size=(300, 180), style=wx.SYSTEM_MENU | wx.CAPTION | wx.CLOSE_BOX) title = wx.StaticText(self, label=" Past Paper Crawler ") version =...
42.49537
135
0.664234
f2caf6f48d050da9c3ba6be1bebca952f8a9710b
9,475
py
Python
endsem/007_jack_car_update.py
KishoreKaushal/ailab
f89cb1ff7d49c05859cb4d89b45c214ded6e1acf
[ "MIT" ]
1
2018-11-27T19:55:41.000Z
2018-11-27T19:55:41.000Z
endsem/007_jack_car_update.py
KishoreKaushal/ailab
f89cb1ff7d49c05859cb4d89b45c214ded6e1acf
[ "MIT" ]
null
null
null
endsem/007_jack_car_update.py
KishoreKaushal/ailab
f89cb1ff7d49c05859cb4d89b45c214ded6e1acf
[ "MIT" ]
null
null
null
import numpy as np import copy import itertools from scipy.stats import poisson import time class Environment: def __init__(self): # dynamics of the MDP process for Jack-Car rental Problem self.number_of_locations = 3 self.rental_credit = 10 self.expected_rental_requests = [3, 2, 2]...
48.341837
122
0.539525
1458757aa2ea705f613bdc3ae9e3cc35a82af4de
21,732
py
Python
pdfminer/converter.py
naren8642/pdfminer.six
e85a4bd86d912e7fa5691af8cca6bcf0a63e259a
[ "MIT" ]
null
null
null
pdfminer/converter.py
naren8642/pdfminer.six
e85a4bd86d912e7fa5691af8cca6bcf0a63e259a
[ "MIT" ]
null
null
null
pdfminer/converter.py
naren8642/pdfminer.six
e85a4bd86d912e7fa5691af8cca6bcf0a63e259a
[ "MIT" ]
null
null
null
import logging import re import sys from .pdfdevice import PDFTextDevice from .pdffont import PDFUnicodeNotDefined from .layout import LTContainer from .layout import LTPage from .layout import LTText from .layout import LTLine from .layout import LTRect from .layout import LTCurve from .layout import LTFigure from .la...
37.404475
79
0.514403
d6f9f2845524d11ee0f5041a8bf044504f6d0336
11,081
py
Python
galaxy/accounts/tests/test_custom_user_model.py
bmclaughlin/galaxy
3f57e3684c27cb88d45881eaec16dc3095ac4e6d
[ "Apache-2.0" ]
904
2016-10-11T13:35:19.000Z
2022-03-25T09:29:09.000Z
galaxy/accounts/tests/test_custom_user_model.py
bmclaughlin/galaxy
3f57e3684c27cb88d45881eaec16dc3095ac4e6d
[ "Apache-2.0" ]
1,866
2016-10-15T21:28:09.000Z
2022-03-29T18:09:20.000Z
galaxy/accounts/tests/test_custom_user_model.py
bmclaughlin/galaxy
3f57e3684c27cb88d45881eaec16dc3095ac4e6d
[ "Apache-2.0" ]
368
2016-10-11T13:44:08.000Z
2022-03-30T02:23:12.000Z
# (c) 2012-2018, Ansible # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Ansible Gal...
31.126404
75
0.595253
54ef741e0239bb88028a2f9a77a9eda69d7d937a
4,992
py
Python
zerver/webhooks/bitbucket/tests.py
ajayns/zulip
c5ff020246cd75d0650f93ef621b76bdc4bbb8aa
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/bitbucket/tests.py
ajayns/zulip
c5ff020246cd75d0650f93ef621b76bdc4bbb8aa
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/bitbucket/tests.py
ajayns/zulip
c5ff020246cd75d0650f93ef621b76bdc4bbb8aa
[ "Apache-2.0" ]
1
2019-10-14T23:36:14.000Z
2019-10-14T23:36:14.000Z
# -*- coding: utf-8 -*- from mock import patch, MagicMock from typing import Dict, Union, Text, Optional from zerver.lib.test_classes import WebhookTestCase class BitbucketHookTests(WebhookTestCase): STREAM_NAME = 'bitbucket' URL_TEMPLATE = "/api/v1/external/bitbucket?stream={stream}" FIXTURE_DIR_NAME = '...
64
149
0.713942
00064f320dc05223df5e6ed8128e34dc0ab97e5d
1,461
py
Python
src/mcsdk/integration/os/process.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
9
2019-11-03T10:15:06.000Z
2022-02-26T06:16:10.000Z
src/mcsdk/integration/os/process.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
2
2020-07-08T18:23:02.000Z
2022-01-17T17:31:18.000Z
src/mcsdk/integration/os/process.py
Stick97/mcsdk-automation-framework-core
5c7cc798fd4e0d54dfb3e0b900a828db4a72034e
[ "BSD-3-Clause" ]
5
2020-07-06T16:28:15.000Z
2022-02-22T00:51:48.000Z
import subprocess class Command: """ Command runner class """ def __init__(self, command, debug=True): """ Class constructor """ self.__command = command self.__output = b'' self.__debug = debug def run(self): """ Runs the command and returns the status code """ ...
29.816327
109
0.559206
8e74c473b53b29dbb787befc8ef3b67225dcc69a
50,308
py
Python
pyhandle/tests/testcases/handleclient_write_patched_unit_test.py
merretbuurman/PYHANDLE
3c621eda80e26fdec945d4d42f6b62d0dcc70726
[ "Apache-2.0" ]
null
null
null
pyhandle/tests/testcases/handleclient_write_patched_unit_test.py
merretbuurman/PYHANDLE
3c621eda80e26fdec945d4d42f6b62d0dcc70726
[ "Apache-2.0" ]
null
null
null
pyhandle/tests/testcases/handleclient_write_patched_unit_test.py
merretbuurman/PYHANDLE
3c621eda80e26fdec945d4d42f6b62d0dcc70726
[ "Apache-2.0" ]
1
2020-11-04T04:23:50.000Z
2020-11-04T04:23:50.000Z
"""Testing methods that normally need Handle server read access, by patching the get request to replace read access.""" import sys if sys.version_info < (2, 7): import unittest2 as unittest else: import unittest import json import mock from pyhandle.client.resthandleclient import RESTHandleClient from pyhandl...
53.292373
569
0.636201
55bfa028ce0cb662f230ca9deb151bb5583dd403
757
py
Python
_erwin/main.py
der2b2/erwin
9a6ced587d213779618ac1c77a2e5c039f5c8731
[ "MIT" ]
1
2020-10-31T21:15:35.000Z
2020-10-31T21:15:35.000Z
_erwin/main.py
der2b2/erwin
9a6ced587d213779618ac1c77a2e5c039f5c8731
[ "MIT" ]
13
2020-09-23T16:05:45.000Z
2022-03-12T00:51:01.000Z
_erwin/main.py
der2b2/erwin
9a6ced587d213779618ac1c77a2e5c039f5c8731
[ "MIT" ]
null
null
null
from _erwin import build from _erwin import serve from _erwin import clean from _erwin import initialize def run(argv): if argv[0] == "clean" or argv[0] == "c": print("Cleaning output folder") clean.run_clean() elif argv[0] == "build" or argv[0] == "b": print("Build") build.main() e...
28.037037
90
0.581242
9e9a034ac85065fff3d74f61addfc94861789ec3
4,720
py
Python
dev/circuitpython/examples/mlx90640_pygamer.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
7
2021-03-15T10:06:20.000Z
2022-03-23T02:53:15.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/mlx90640_pygamer.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
5
2021-04-27T18:21:11.000Z
2021-05-02T14:17:14.000Z
Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/mlx90640_pygamer.py
IanSMoyes/SpiderPi
cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio import displayio import terminalio from adafruit_display_text.label import Label from simpleio import map_range import adafruit_mlx90640 number_of_colors = 64 # Number of co...
33.714286
99
0.63411
21abbd2ea91423c4a0cc7ff298abb0fda9491ce7
13,360
py
Python
nova/tests/api/openstack/compute/test_auth.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
1
2015-07-15T08:51:16.000Z
2015-07-15T08:51:16.000Z
nova/tests/api/openstack/compute/test_auth.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
null
null
null
nova/tests/api/openstack/compute/test_auth.py
bopopescu/trusted-nova
b440afb89f6f170c0831f5d6318a08ec41bc8c0a
[ "Apache-2.0" ]
2
2019-06-12T00:52:15.000Z
2020-07-24T10:35:29.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 OpenStack LLC. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/...
41.490683
79
0.633832
d0c516fb3258d3d28b09fb87a652c4f1d5c56d51
4,485
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/virtual_network_tap_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/virtual_network_tap_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/virtual_network_tap_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
50.393258
245
0.696544
1943390e20274bef0a97ea662adf8eae33284e2e
2,075
py
Python
task/tagger/data/boson.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
4
2019-11-07T12:13:53.000Z
2019-12-16T17:43:57.000Z
task/tagger/data/boson.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
null
null
null
task/tagger/data/boson.py
ssunqf/nlp-exp
f4ebc77d2f7b85b95a12d2cb47196a950c8a1a1f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 # -*- coding: utf-8 -*- import sys from task.util import utils if __name__ == '__main__': with open(sys.argv[1]) as reader, open(sys.argv[2], 'w') as writer: for line in reader: for sentence in line.split('\\n\\n'): chars = [] tags = [] ...
42.346939
99
0.388916
e95275363e8e41c2b7ef5bfcb094a97cc8ddae0f
2,240
py
Python
examples/eit_dynamic_svd.py
fzouari/pyEIT
0e4e5200b0adb1d49413ca5a321ff9f4f102f420
[ "BSD-3-Clause" ]
null
null
null
examples/eit_dynamic_svd.py
fzouari/pyEIT
0e4e5200b0adb1d49413ca5a321ff9f4f102f420
[ "BSD-3-Clause" ]
null
null
null
examples/eit_dynamic_svd.py
fzouari/pyEIT
0e4e5200b0adb1d49413ca5a321ff9f4f102f420
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 """ demo on dynamic eit using JAC method """ # Copyright (c) Benyuan Liu. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from __future__ import division, absolute_import, print_function import numpy as np import matplotlib.pyplot as plt import pyeit.mesh...
32.941176
81
0.703571
508e858d816969c00758bf9c2d966626ad22e8ca
45,151
py
Python
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/pickle.py
huleigithup/filepreview
815fac0e21547301604bb5fd623a91d885cb4437
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
BitmessageKit/Vendor/static-python/Lib/pickle.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
BitmessageKit/Vendor/static-python/Lib/pickle.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
"""Create portable serialized representations of Python objects. See module cPickle for a (much) faster implementation. See module copy_reg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) ...
32.436063
80
0.558504
37158288c63a24d24c8a3a92c3e040d63a29f33c
229,585
py
Python
pysnmp-with-texts/DAP-3520-v115.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DAP-3520-v115.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DAP-3520-v115.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DAP-3520-v115 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DAP-3520-v115 # Produced by pysmi-0.3.4 at Wed May 1 12:36:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 201...
121.925119
11,707
0.769863
bb0a6e9aafa1f48e9e82ffefa02eb039a6327509
1,715
py
Python
project/db/models/product_model.py
sunday-ucheawaji/API-
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
[ "MIT" ]
null
null
null
project/db/models/product_model.py
sunday-ucheawaji/API-
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
[ "MIT" ]
null
null
null
project/db/models/product_model.py
sunday-ucheawaji/API-
07fb4b596cfe8e85b8575a8e70a8c886d3ab627a
[ "MIT" ]
null
null
null
import uuid from django.db import models from .brands_model import Brand from .category_model import Category class Product(models.Model): LARGE = 'L' MEDIUM = 'M' SMALL = 'S' SIZE_CHOICES = [ (LARGE, 'Large'), (MEDIUM, 'Medium'), (SMALL, 'Small'), ] WHITE = 'WH' ...
29.568966
87
0.638484
0926623ab1836aeb5df55850fc83dba5f449b2ef
397
py
Python
equals/constraints/numbers/between.py
toddsifleet/equals
fb2b2a027e5389fdeb2f59e9acbdcacb8a8cdfb4
[ "MIT" ]
38
2015-03-18T21:45:33.000Z
2020-12-22T11:13:05.000Z
equals/constraints/numbers/between.py
toddsifleet/equals
fb2b2a027e5389fdeb2f59e9acbdcacb8a8cdfb4
[ "MIT" ]
8
2015-02-12T04:06:37.000Z
2022-02-10T08:30:08.000Z
equals/constraints/numbers/between.py
toddsifleet/equals
fb2b2a027e5389fdeb2f59e9acbdcacb8a8cdfb4
[ "MIT" ]
4
2015-02-25T16:54:00.000Z
2016-09-07T20:10:09.000Z
from ..base import Base class Between(Base): @property def description(self): return 'between {min} and {max}'.format( min=self.min_val, max=self.max_val, ) def _handle_args(self, min_val, max_val): self.min_val = min_val self.max_val = max_val ...
22.055556
50
0.594458
f3c6071c18ddad5d0b92dc4da9a9a2d01823c70d
216
py
Python
Standard Library/traceback/04_print_exception.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
2
2020-11-27T13:21:05.000Z
2021-04-19T21:14:21.000Z
Standard Library/traceback/04_print_exception.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
null
null
null
Standard Library/traceback/04_print_exception.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
1
2021-06-27T20:31:42.000Z
2021-06-27T20:31:42.000Z
import traceback import sys try: 1/0 except ZeroDivisionError: exc_type, exc_value, exc_traceback = sys.exc_info() traceback.print_exception( exc_type, exc_value, exc_traceback, file=sys.stdout)
21.6
60
0.740741
6067fe06215769c596bedb89fb21bbe9417db616
315
py
Python
portfolio/forms.py
AnirbanDatta87/my-website
755a99abd8c162f8882d574a6e385139aead883e
[ "MIT" ]
null
null
null
portfolio/forms.py
AnirbanDatta87/my-website
755a99abd8c162f8882d574a6e385139aead883e
[ "MIT" ]
12
2020-02-07T09:13:49.000Z
2022-01-13T01:51:04.000Z
portfolio/forms.py
AnirbanDatta87/my-website
755a99abd8c162f8882d574a6e385139aead883e
[ "MIT" ]
null
null
null
from django import forms class ContactForm(forms.Form): name= forms.CharField(max_length=100, label="Name") email= forms.EmailField(max_length=100, label="Email") message= forms.CharField(label='',widget=forms.Textarea( attrs={'placeholder': 'Enter your message here'}))
39.375
74
0.666667
e78d1c5a4b196e6c72a8caa029e3ad2fa17763b3
49
py
Python
abbreviations.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
10
2019-10-20T12:46:54.000Z
2022-03-16T07:16:54.000Z
abbreviations.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
null
null
null
abbreviations.py
deshmukhps95/text-analysis-and-classification-gui-tool
c24fcc2083b65c8ce433c16e539366def9c1d0fa
[ "MIT" ]
3
2019-10-20T17:33:17.000Z
2021-01-15T02:38:22.000Z
synonyms = {"": ""} abbreviations_map = {"": ""}
16.333333
28
0.510204
d38f1c7a45bd8215229408340d91d71b7bd10c11
1,117
py
Python
generator/native.py
simpleton/eclipse2buck
b726cfdcb1ef98967435058aecb04d42110fe8ed
[ "MIT" ]
1
2015-09-08T11:21:13.000Z
2015-09-08T11:21:13.000Z
generator/native.py
simpleton/eclipse2buck
b726cfdcb1ef98967435058aecb04d42110fe8ed
[ "MIT" ]
null
null
null
generator/native.py
simpleton/eclipse2buck
b726cfdcb1ef98967435058aecb04d42110fe8ed
[ "MIT" ]
null
null
null
#!/usr/bin/python from eclipse2buck.generator.base_target import BaseTarget from eclipse2buck import decorator from eclipse2buck.util import util from eclipse2buck import config import os class NativeLib(BaseTarget): """ gen native lib target """ is_exist_native = False def __init__(self, root, nam...
31.027778
115
0.661594
e9f6606c4164d8c6fc943f1c02d398641e3ff4b8
17,947
py
Python
Lazy_cleaner/Lazy_cleaner.py
ahmed13131/Lazy-cleaner
8316421d2cb77d9e861bf2d9f5c5e51748cada02
[ "MIT" ]
1
2021-09-27T19:06:36.000Z
2021-09-27T19:06:36.000Z
Lazy_cleaner/Lazy_cleaner.py
ahmed13131/Lazy-cleaner
8316421d2cb77d9e861bf2d9f5c5e51748cada02
[ "MIT" ]
null
null
null
Lazy_cleaner/Lazy_cleaner.py
ahmed13131/Lazy-cleaner
8316421d2cb77d9e861bf2d9f5c5e51748cada02
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor import statsmodels.formula.api as sm from scipy import stats import chardet import fuzzywuzzy from fuzzywuzzy import process import seaborn as sns import matplotlib.pyplot a...
33.483209
132
0.49518
f6866565bc88f9b17a173f3cbb541af55018de35
27,437
py
Python
azure-iot-device/azure/iot/device/iothub/pipeline/mqtt_pipeline.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/pipeline/mqtt_pipeline.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
azure-iot-device/azure/iot/device/iothub/pipeline/mqtt_pipeline.py
cartertinney/azure-iot-sdk-python
a5572b93047b4a54c5b990d9e25905398418c4fd
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ------------------------------------------------------------------...
45.425497
122
0.673652
09ab4fcb966cbbbab3bf2fdd796716e7f6de990c
14,995
py
Python
plataforma/views.py
bodedev/prospera
4ce39b0ee4ae32b3584157f23a5f94f340892980
[ "MIT" ]
3
2017-05-11T17:48:41.000Z
2017-10-04T01:53:35.000Z
plataforma/views.py
bodedev/prospera
4ce39b0ee4ae32b3584157f23a5f94f340892980
[ "MIT" ]
null
null
null
plataforma/views.py
bodedev/prospera
4ce39b0ee4ae32b3584157f23a5f94f340892980
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from braces.views import AjaxResponseMixin, JSONResponseMixin from datetime import datetime from django.conf import settings from django.contrib import messages from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.contrib.auth.decorators import logi...
34.23516
228
0.667889
c518279217a707b7c4807f13603a058b97b582bc
12,375
py
Python
mdma/fit.py
dargilboa/MDMA
8ed4afc731936f695d6e320d804e5157e8eb8a71
[ "MIT" ]
6
2021-06-10T22:31:28.000Z
2022-02-04T14:32:41.000Z
mdma/fit.py
dargilboa/MDMA
8ed4afc731936f695d6e320d804e5157e8eb8a71
[ "MIT" ]
2
2021-06-30T22:08:11.000Z
2021-10-10T04:49:27.000Z
mdma/fit.py
dargilboa/MDMA
8ed4afc731936f695d6e320d804e5157e8eb8a71
[ "MIT" ]
1
2021-07-29T03:14:36.000Z
2021-07-29T03:14:36.000Z
# Copyright © 2021 Dar Gilboa, Ari Pakman and Thibault Vatter # This file is part of the mdma library and licensed under the terms of the MIT license. # For a copy, see the LICENSE file in the root directory. import torch as t import torch.optim as optim from mdma import models from mdma import utils import argparse i...
33.355795
105
0.63604
58f5bea79a68ef74af717970850407c2c308e01f
1,919
py
Python
exercises/knowledge_databases.py
alice19-meet/y2s18-databases
6cf15a7a1a5e802686d5d351caebf9e92312c068
[ "MIT" ]
null
null
null
exercises/knowledge_databases.py
alice19-meet/y2s18-databases
6cf15a7a1a5e802686d5d351caebf9e92312c068
[ "MIT" ]
null
null
null
exercises/knowledge_databases.py
alice19-meet/y2s18-databases
6cf15a7a1a5e802686d5d351caebf9e92312c068
[ "MIT" ]
null
null
null
from knowledge_model import Base, Knowledge from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker engine = create_engine('sqlite:///knowledge.db') Base.metadata.create_all(engine) DBSession = sessionmaker(bind=engine) session = DBSession() def add_article(name,title, rating): article_objec...
23.9875
55
0.705055
94ae6f56c5525cf64b9850ee94d28f11fc38bce5
445
py
Python
rlutils/infra/runner/tf_runner.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
rlutils/infra/runner/tf_runner.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
rlutils/infra/runner/tf_runner.py
vermouth1992/rlutils
a326373b9e39dbf147c6c4261b82a688d4dc3e78
[ "Apache-2.0" ]
null
null
null
import os import tensorflow as tf from .base import BaseRunner, OffPolicyRunner, OnPolicyRunner class TFRunner(BaseRunner): def setup_global_seed(self): super(TFRunner, self).setup_global_seed() tf.random.set_seed(seed=self.seeder.generate_seed()) os.environ['TF_DETERMINISTIC_OPS'] = '1'...
21.190476
61
0.74382
2356515467d70b907be40cb821fd2e2baf799df6
22,583
py
Python
trestle/transforms/implementations/tanium.py
PritamDutt/compliance-trestle
7edadde2bd2949e73a085bd78ef57995250fc9cb
[ "Apache-2.0" ]
null
null
null
trestle/transforms/implementations/tanium.py
PritamDutt/compliance-trestle
7edadde2bd2949e73a085bd78ef57995250fc9cb
[ "Apache-2.0" ]
null
null
null
trestle/transforms/implementations/tanium.py
PritamDutt/compliance-trestle
7edadde2bd2949e73a085bd78ef57995250fc9cb
[ "Apache-2.0" ]
null
null
null
# -*- mode:python; coding:utf-8 -*- # Copyright (c) 2021 IBM Corp. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # #...
40.616906
119
0.622946
f3a81ca5ff6e2c53d5300b80b97d2adf2aedbe89
1,114
py
Python
remindvoca/urls.py
zinuzian-portfolio/RemindVoca
aaa7aa004b9f213af486a9d8cad941b49d698e7d
[ "MIT" ]
4
2019-07-31T10:03:17.000Z
2019-10-06T06:03:33.000Z
remindvoca/urls.py
zinuzian-portfolio/RemindVoca
aaa7aa004b9f213af486a9d8cad941b49d698e7d
[ "MIT" ]
3
2019-07-23T17:10:13.000Z
2019-07-30T19:27:40.000Z
remindvoca/urls.py
zinuzian-portfolio/RemindVoca
aaa7aa004b9f213af486a9d8cad941b49d698e7d
[ "MIT" ]
11
2019-07-14T06:17:31.000Z
2019-10-06T07:24:41.000Z
"""remindvoca URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
39.785714
77
0.712747
41a738f0a21de3f1f0a9a723e34c660a316bae90
819
py
Python
var/spack/repos/builtin/packages/r-multcompview/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/r-multcompview/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/r-multcompview/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RMultcompview(RPackage): """Visualizations of Paired Comparisons. Convert a l...
37.227273
95
0.765568
41f6bec459542c6a182247318714bd15b324089f
408
py
Python
setup.py
saurabh6790/shopify_broker
62969b70a56be0f74aa20ef0d31fbea5fa932bc5
[ "MIT" ]
null
null
null
setup.py
saurabh6790/shopify_broker
62969b70a56be0f74aa20ef0d31fbea5fa932bc5
[ "MIT" ]
null
null
null
setup.py
saurabh6790/shopify_broker
62969b70a56be0f74aa20ef0d31fbea5fa932bc5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os version = '1.0.0' setup( name='shopify_broker', version=version, description='A broker to install Shopify public app.', author='Frappe Technologies Pvt. Ltd.', author_email='info@frappe.io', packages=find_packages(),...
22.666667
58
0.686275
24e37ef9cb29b4bd7104f4feca2f8f7740a43908
8,166
py
Python
nearpy/tests/hash_storage_tests.py
jbalint/aurum-datadiscovery
443b777c13be47e6da60b4af528e19a02608e158
[ "MIT" ]
60
2017-01-13T19:53:34.000Z
2022-01-06T07:00:43.000Z
nearpy/tests/hash_storage_tests.py
jbalint/aurum-datadiscovery
443b777c13be47e6da60b4af528e19a02608e158
[ "MIT" ]
83
2016-10-08T14:07:55.000Z
2022-03-08T22:03:39.000Z
nearpy/tests/hash_storage_tests.py
jbalint/aurum-datadiscovery
443b777c13be47e6da60b4af528e19a02608e158
[ "MIT" ]
44
2016-10-08T00:15:46.000Z
2021-12-31T02:42:45.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2013 Ole Krause-Sparmann # 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 # to use, copy,...
39.449275
79
0.690179
c5987aac5e581f929c2c33fdd6d570b11de4551d
7,569
py
Python
esim/utils.py
TripuraPriyanka/ekmimn
389c2249369e5b0f09498d79034634ac1db4ff68
[ "Apache-2.0" ]
null
null
null
esim/utils.py
TripuraPriyanka/ekmimn
389c2249369e5b0f09498d79034634ac1db4ff68
[ "Apache-2.0" ]
null
null
null
esim/utils.py
TripuraPriyanka/ekmimn
389c2249369e5b0f09498d79034634ac1db4ff68
[ "Apache-2.0" ]
null
null
null
""" Utility functions for the ESIM model. """ # Aurelien Coet, 2018. import torch import torch.nn as nn # Code widely inspired from: # https://github.com/allenai/allennlp/blob/master/allennlp/nn/util.py. def sort_by_seq_lens(batch, sequences_lengths, descending=True): """ Sort a batch of padded variable leng...
37.845
94
0.670498
03d58752b93d5ca1e39344df138ef2afa9941f46
2,794
py
Python
accelerate_asr/optim/lr_scheduler/transformer_lr_scheduler.py
sooftware/accelerate-asr
9ed557186a3534fa66327eeb4b6e927882fd9e60
[ "MIT" ]
8
2021-05-10T11:46:00.000Z
2021-05-21T16:27:28.000Z
accelerate_asr/optim/lr_scheduler/transformer_lr_scheduler.py
sooftware/accelerate-asr
9ed557186a3534fa66327eeb4b6e927882fd9e60
[ "MIT" ]
null
null
null
accelerate_asr/optim/lr_scheduler/transformer_lr_scheduler.py
sooftware/accelerate-asr
9ed557186a3534fa66327eeb4b6e927882fd9e60
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2021 Soohwan Kim # # 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 # to use, copy, modify, merge, ...
39.352113
96
0.709377
6281fc803e09f0fe7f47cc0500b93d8c211620b6
805
py
Python
metaci/cumulusci/admin.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
null
null
null
metaci/cumulusci/admin.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
null
null
null
metaci/cumulusci/admin.py
abhishekalgo/metaci
cd62473b3fb85fb0f39623f9fb2850993ff708a5
[ "BSD-3-Clause" ]
1
2018-12-07T09:51:07.000Z
2018-12-07T09:51:07.000Z
from django.contrib import admin from metaci.cumulusci.models import Org from metaci.cumulusci.models import ScratchOrgInstance from metaci.cumulusci.models import Service class OrgAdmin(admin.ModelAdmin): list_display = ("name", "repo", "scratch") list_filter = ("name", "scratch", "repo") admin.site.regist...
21.756757
64
0.68323
0e0b487ed97e03fc7a113ef6f0e9cd62715f5961
17,987
py
Python
src/psd_tools/composite/__init__.py
cronic208/syke412
589a03a0d102dbf02ff2624cf1177d2bf19681c6
[ "MIT" ]
1
2020-08-19T07:30:59.000Z
2020-08-19T07:30:59.000Z
src/psd_tools/composite/__init__.py
cronic208/psd-tools
b815d7f2af49963392d3fd5be545253167e0dd01
[ "MIT" ]
null
null
null
src/psd_tools/composite/__init__.py
cronic208/psd-tools
b815d7f2af49963392d3fd5be545253167e0dd01
[ "MIT" ]
1
2022-03-21T21:05:44.000Z
2022-03-21T21:05:44.000Z
import numpy as np from psd_tools.constants import Tag, BlendMode, ColorMode from psd_tools.api.layers import AdjustmentLayer, Layer from psd_tools.api.numpy_io import EXPECTED_CHANNELS import logging from .blend import BLEND_FUNC, normal from .vector import ( create_fill, create_fill_desc, draw_vector_mask, draw_...
34.457854
79
0.576083
92f3772b3897ce7b484fb8b580dc91738367af33
3,155
py
Python
pp/components/pcm/test_resistance.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
8
2020-08-25T11:25:18.000Z
2022-03-27T11:32:11.000Z
pp/components/pcm/test_resistance.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
null
null
null
pp/components/pcm/test_resistance.py
flaport/gdsfactory
1f2e844c1fe27b9c6340e2d51500fd3358fa16e5
[ "MIT" ]
1
2022-03-04T07:03:29.000Z
2022-03-04T07:03:29.000Z
from typing import Tuple import numpy as np from phidl.geometry import offset import pp from pp import components as pc from pp.component import Component @pp.cell def test_resistance( pad_size: Tuple[float] = (50.0, 50.0), num_squares: int = 1000, width: float = 1.0, res_layer: Tuple[int, int] = pp...
27.675439
78
0.61046
a2c73fddb99384e3b9fea3da329333ec854594e6
172
py
Python
angular_flask/settings.py
mding5692/cs3319Asst3
897bd0ae601073ca822babc5ee0da4e82ddc744d
[ "MIT" ]
null
null
null
angular_flask/settings.py
mding5692/cs3319Asst3
897bd0ae601073ca822babc5ee0da4e82ddc744d
[ "MIT" ]
null
null
null
angular_flask/settings.py
mding5692/cs3319Asst3
897bd0ae601073ca822babc5ee0da4e82ddc744d
[ "MIT" ]
null
null
null
# Not sure why but this is needed DEBUG = True SECRET_KEY = 'temporary_secret_key' # make sure to change this SQLALCHEMY_DATABASE_URI = 'sqlite:////tmp/angular_flask.db'
28.666667
63
0.761628
088f51c7984d3d032811d0f7f6a8b04ab801b26a
1,560
py
Python
src/sentry/api/endpoints/organization_integration_details.py
apragacz/sf-sentry
2fdd6c1195c29a1d401d1cd538c22ea68556699a
[ "BSD-3-Clause" ]
1
2018-03-05T15:40:12.000Z
2018-03-05T15:40:12.000Z
src/sentry/api/endpoints/organization_integration_details.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
1
2018-08-22T16:49:48.000Z
2018-08-22T16:49:48.000Z
src/sentry/api/endpoints/organization_integration_details.py
pkaminski/sentry
27e948283e27d93ca5192ca7b580830e092c25c7
[ "BSD-3-Clause" ]
1
2018-07-02T09:46:44.000Z
2018-07-02T09:46:44.000Z
from __future__ import absolute_import from sentry import features from sentry.api.bases.organization import ( OrganizationEndpoint, OrganizationIntegrationsPermission ) from sentry.api.serializers import serialize from sentry.models import Integration, OrganizationIntegration class OrganizationIntegrationDetail...
34.666667
97
0.691667
371250d667c0851a03cd336de2068b11bf8f3ad8
47,452
py
Python
src/energenie/Devices.py
tonbut/pyenergenie
f4e4554c963457341d64a3eeef973636c6f5ed3c
[ "MIT" ]
2
2017-02-05T23:30:50.000Z
2020-01-28T11:56:31.000Z
src/energenie/Devices.py
tonbut/pyenergenie
f4e4554c963457341d64a3eeef973636c6f5ed3c
[ "MIT" ]
null
null
null
src/energenie/Devices.py
tonbut/pyenergenie
f4e4554c963457341d64a3eeef973636c6f5ed3c
[ "MIT" ]
3
2017-02-18T17:48:15.000Z
2020-03-09T19:33:13.000Z
# Devices.py 30/09/2015 D.J.Whale # # Information about specific Energenie devices # This table is mostly reverse-engineered from various websites and web catalogues. ##from lifecycle import * import time import copy import random import sys import traceback try: # Python 2 import OnAir import OpenThing...
36.614198
157
0.582884
9dd6df58bbd51c9ae92663a3b2d4cd4b456e3f7e
1,620
py
Python
problems/9/DecompressorTest.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
problems/9/DecompressorTest.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
problems/9/DecompressorTest.py
tmct/adventOfCode2016
bd5699ca179b873f9da01514903b1dd493a46b7b
[ "MIT" ]
null
null
null
import unittest from Decompressor import Decompressor class DecompressorTest(unittest.TestCase): def test_example_1(self): output = Decompressor().get_decompressed_length('ADVENT') self.assertEqual(6, output) def test_example_2(self): output = Decompressor().get_decompressed_length('A...
33.75
118
0.687037
77532ee60b41866938c402c21cc24fbc77065d5d
2,357
py
Python
Django/django_project_lsc_05/book_view/views_genericapiview.py
MarioKarting/Django_basic
437556628f72ccf8fdfd63c46191dcee39602b00
[ "MIT" ]
null
null
null
Django/django_project_lsc_05/book_view/views_genericapiview.py
MarioKarting/Django_basic
437556628f72ccf8fdfd63c46191dcee39602b00
[ "MIT" ]
null
null
null
Django/django_project_lsc_05/book_view/views_genericapiview.py
MarioKarting/Django_basic
437556628f72ccf8fdfd63c46191dcee39602b00
[ "MIT" ]
null
null
null
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.generics import GenericAPIView # Create your views here. from C_databases.models import BookInfo from book_serializer.serializers import BookInfoSerializer from rest_framework.response import Response class BooksView(Gene...
22.028037
74
0.612219
5d75c49603352fd0ead8523864f97795ced97fbd
647
py
Python
src/simmate/calculators/vasp/workflows/static_energy/quality_04.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
9
2021-12-21T02:58:21.000Z
2022-01-25T14:00:06.000Z
src/simmate/calculators/vasp/workflows/static_energy/quality_04.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
51
2022-01-01T15:59:58.000Z
2022-03-26T21:25:42.000Z
src/simmate/calculators/vasp/workflows/static_energy/quality_04.py
jacksund/simmate
0b29704540574e11b711f7b44e2cb7740141ebb4
[ "BSD-3-Clause" ]
7
2022-01-01T03:44:32.000Z
2022-03-29T19:59:27.000Z
# -*- coding: utf-8 -*- from simmate.workflow_engine import s3task_to_workflow from simmate.calculators.vasp.tasks.static_energy import ( Quality04Energy as Quality04EnergyTask, ) from simmate.calculators.vasp.database.energy import ( Quality04StaticEnergy as Quality04StaticEnergyResults, ) workflow = s3task_...
32.35
90
0.785162
7f6375884eecc9f6f37f912cca40e9d57c0412d8
7,861
py
Python
aliyun/log/shipper_response.py
saorisakura/aliyun-log-python-sdk
584bf6321e8274fdf9604433ff583c22c1c4fd7a
[ "MIT" ]
1
2020-08-31T14:42:58.000Z
2020-08-31T14:42:58.000Z
aliyun/log/shipper_response.py
saorisakura/aliyun-log-python-sdk
584bf6321e8274fdf9604433ff583c22c1c4fd7a
[ "MIT" ]
null
null
null
aliyun/log/shipper_response.py
saorisakura/aliyun-log-python-sdk
584bf6321e8274fdf9604433ff583c22c1c4fd7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Copyright (C) Alibaba Cloud Computing # All rights reserved. __all__ = ['CreateShipperResponse', 'UpdateShipperResponse', 'DeleteShipperResponse', 'GetShipperConfigResponse', 'ListShipperResponse', 'GetShipperTasksResponse', 'RetryShipperTasksResponse'] ...
28.379061
104
0.563923
f1730426f31a1bf09b4188c1f88321da74065385
19,670
py
Python
car_tracking/doRPC.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
1
2021-02-24T03:11:13.000Z
2021-02-24T03:11:13.000Z
car_tracking/doRPC.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
null
null
null
car_tracking/doRPC.py
sameeptandon/sail-car-log
0ee3d598bb09d389bcbd2ebf73cd4b2411e796be
[ "BSD-2-Clause" ]
3
2015-03-18T14:36:04.000Z
2018-07-04T02:57:24.000Z
#!/usr/bin/python import os, sys from AnnotationLib import * from optparse import OptionParser import copy import math # BASED ON WIKIPEDIA VERSION # n - number of nodes # C - capacity matrix # F - flow matrix # s - source # t - sink # sumC - sum over rows of C (too speed up computation) def edmonds_karp(n, C, s, t,...
31.472
212
0.645806
fd6e724d3801b5e0131625448e3fa33969cff6eb
281
py
Python
v1/accounts/tests/conftest.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
94
2020-07-12T23:08:47.000Z
2022-03-05T14:00:01.000Z
v1/accounts/tests/conftest.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
84
2020-07-13T23:30:50.000Z
2022-03-15T15:47:46.000Z
v1/accounts/tests/conftest.py
DucPhamTV/Bank
4905ec7d63ef4daafe2119bf6b32928d4db2d4f2
[ "MIT" ]
63
2020-07-13T02:46:51.000Z
2021-11-26T09:29:29.000Z
import pytest from thenewboston.third_party.factory.utils import build_json from ..factories.account import AccountFactory @pytest.fixture def account_fake_data(): yield build_json(AccountFactory) @pytest.fixture def accounts(): yield AccountFactory.create_batch(100)
18.733333
61
0.807829
53ec2972f5365fea04a225b0ab6a898d4dc79b34
1,465
py
Python
web/webViews/beansapplication.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
web/webViews/beansapplication.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
web/webViews/beansapplication.py
primroses/docklet
6c42a472a8b427496c03fad18b873cb4be219db3
[ "BSD-3-Clause" ]
null
null
null
from flask import session,render_template,request,redirect from webViews.view import normalView from webViews.dockletrequest import dockletRequest class beansapplicationView(normalView): template_path = "beansapplication.html" @classmethod def get(self): result = dockletRequest.post('/beans/apply...
29.3
83
0.640273
cb1608f721a6f88413ba90f4beaf5d3a078ba09d
6,177
py
Python
sdk/python/pulumi_azure_nextgen/web/latest/web_app_public_certificate.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/web/latest/web_app_public_certificate.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/web/latest/web_app_public_certificate.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
41.18
428
0.646916
5dee7f64ca855afe0fe9a0cdfcd3db6ef8fd3799
2,260
py
Python
models.py
Ksusha1319/stud_projects
c088034c044fc6cef207fb8f5228f93f15bba0e3
[ "MIT" ]
null
null
null
models.py
Ksusha1319/stud_projects
c088034c044fc6cef207fb8f5228f93f15bba0e3
[ "MIT" ]
null
null
null
models.py
Ksusha1319/stud_projects
c088034c044fc6cef207fb8f5228f93f15bba0e3
[ "MIT" ]
null
null
null
from app import db from datetime import datetime from werkzeug.security import generate_password_hash, check_password_hash from flask_login import UserMixin from app import login class Nickname(db.Model): __tablename__ = "nicknames" id = db.Column(db.Integer, primary_key=True) name = db.Column...
38.305085
74
0.680088
e17e51fd90bde50cb1041cddd4e92b7781049c83
4,392
py
Python
PaddleCV/gan/util/config.py
nepeplwu/models
88ef556a9994de31e9f6029778349a4d1b74489a
[ "Apache-2.0" ]
1
2019-08-28T15:22:14.000Z
2019-08-28T15:22:14.000Z
PaddleCV/gan/util/config.py
cy5211/models-1
5c142ae728abc786c380ece05da52f84e82e795d
[ "Apache-2.0" ]
null
null
null
PaddleCV/gan/util/config.py
cy5211/models-1
5c142ae728abc786c380ece05da52f84e82e795d
[ "Apache-2.0" ]
2
2019-05-06T12:10:15.000Z
2019-09-01T04:28:10.000Z
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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 l...
37.862069
85
0.668716
84a4c3746af42518f1d1f7f3a2fd6d94a8988c7e
8,509
py
Python
sdk/python/pulumi_azure_native/netapp/v20210401preview/get_backup_policy.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20210401preview/get_backup_policy.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/netapp/v20210401preview/get_backup_policy.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
37.650442
283
0.664708
f0293809a7f170ffbe62aca91126d51bca343416
17,461
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_object_replication_policies_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
53.234756
237
0.683237
5e7aa1df2fe5f2a4c1bf921ba220a1f65abae3f5
6,651
py
Python
bindings/python/ensmallen_graph/datasets/string/betavulgaris.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/betavulgaris.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/betavulgaris.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Beta vulgaris. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-02 19...
34.82199
223
0.700496
dfbdd6e683293bb5a872898573ca1c1da483d794
238
py
Python
examples/just_flask.py
tarcisiojr/flask-openapi3
9bad4533098f9246b3f17057757ce381f8b284e1
[ "MIT" ]
17
2021-05-18T10:15:32.000Z
2022-02-23T04:58:07.000Z
examples/just_flask.py
tarcisiojr/flask-openapi3
9bad4533098f9246b3f17057757ce381f8b284e1
[ "MIT" ]
16
2021-06-17T03:49:08.000Z
2022-03-30T01:31:07.000Z
examples/just_flask.py
tarcisiojr/flask-openapi3
9bad4533098f9246b3f17057757ce381f8b284e1
[ "MIT" ]
5
2022-01-05T14:58:00.000Z
2022-03-06T10:10:47.000Z
# -*- coding: utf-8 -*- # @Author : llc # @Time : 2021/5/11 13:37 from flask_openapi3 import OpenAPI app = OpenAPI(__name__) @app.route('/') def hello_world(): return 'Hello, World!' if __name__ == '__main__': app.run()
14
34
0.609244
2e54858091dce78d5245b8cf3a1b37cf6cc8c038
75,746
py
Python
build/releases/release-0.504/src/lisp-etr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
26
2019-02-01T19:12:21.000Z
2022-03-25T04:40:38.000Z
build/releases/release-0.504/src/lisp-etr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
3
2019-10-29T17:49:19.000Z
2022-03-20T21:21:31.000Z
build/releases/release-0.504/src/lisp-etr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
4
2019-02-02T16:50:48.000Z
2020-10-29T03:10:58.000Z
#----------------------------------------------------------------------------- # # Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@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 ...
33.530766
79
0.582037
1c670c36935f6997f4ab13b7c2cc9fe84a2294a4
1,948
py
Python
actions/patchBatchV1NamespacedJobStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
20
2016-12-24T01:35:41.000Z
2022-03-06T08:32:16.000Z
actions/patchBatchV1NamespacedJobStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
16
2017-05-02T19:38:57.000Z
2021-06-17T08:31:17.000Z
actions/patchBatchV1NamespacedJobStatus.py
blinkops/stackstorm-kubernetes
3b4a15d42f603f3e700efaf534169e2ec361f5d2
[ "Apache-2.0" ]
18
2017-06-20T00:44:12.000Z
2022-03-30T08:41:42.000Z
import json from lib.k8s import K8sClient class patchBatchV1NamespacedJobStatus(K8sClient): def run( self, body, name, namespace, pretty=None, config_override=None): ret = False args = {} args['config_override'] = ...
31.934426
268
0.564168
64672782ffc5ad54be6b17fe343305a27f7706f4
15,582
py
Python
bitmex_swagger/api/quote_api.py
silencewwt/bitmex-swagger-client
01403685eeb12eb27d53a0310d3bc7541793aa0f
[ "MIT" ]
1
2018-08-04T15:05:43.000Z
2018-08-04T15:05:43.000Z
bitmex_swagger/api/quote_api.py
silencewwt/bitmex-swagger
01403685eeb12eb27d53a0310d3bc7541793aa0f
[ "MIT" ]
null
null
null
bitmex_swagger/api/quote_api.py
silencewwt/bitmex-swagger
01403685eeb12eb27d53a0310d3bc7541793aa0f
[ "MIT" ]
null
null
null
# coding: utf-8 """ BitMEX API ## REST API for the BitMEX Trading Platform [View Changelog](/app/apiChangelog) ---- #### Getting Started Base URI: [https://www.bitmex.com/api/v1](/api/v1) ##### Fetching Data All REST endpoints are documented below. You can try out any query right from this interface. M...
54.673684
1,509
0.645617
522a50c7d60f12d587956d88a21b0b4a2726f089
3,057
py
Python
pytrader/ddl.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
4
2015-11-25T09:06:44.000Z
2019-12-11T21:35:21.000Z
pytrader/ddl.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
null
null
null
pytrader/ddl.py
irr/python-labs
43bb3a528c151653b2be832c7ff13240a10e18a4
[ "Apache-2.0" ]
2
2015-11-25T09:19:38.000Z
2016-02-26T03:54:06.000Z
#!/usr/bin/env python import sys # ./ddl.py symbols.sql csv > symbols.csv # ...|grep UOLL4| awk -F "," '{print $2","$3","$4","$5","$6","$7","$8}' > UOLL4.csv # sqlite3 symbols.db # CREATE TABLE symbols (S TEXT NOT NULL, D TEXT NOT NULL, O REAL NOT NULL, H REAL NOT NULL, L REAL NOT NULL, C REAL NOT NULL, V REAL NOT NU...
35.137931
272
0.581289
84cb324ee5195f33e9351a5473488f9ab6e35f76
586
py
Python
problems/big_data_hdf5_2.py
rayanimam/Python-in-the-lab
49b9d47e3363fc0b51e8c534e4c016ab7991cd33
[ "CC-BY-3.0" ]
12
2017-01-27T09:47:50.000Z
2020-06-26T07:08:22.000Z
problems/big_data_hdf5_2.py
rayanimam/Python-in-the-lab
49b9d47e3363fc0b51e8c534e4c016ab7991cd33
[ "CC-BY-3.0" ]
null
null
null
problems/big_data_hdf5_2.py
rayanimam/Python-in-the-lab
49b9d47e3363fc0b51e8c534e4c016ab7991cd33
[ "CC-BY-3.0" ]
8
2017-01-27T09:49:18.000Z
2021-03-19T17:10:07.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import pandas as pd import time t0 = time.time() fig = plt.figure() ax = fig.add_subplot(111) period = 7200 i0 = 0 table = "table/t1" data = pd.read_hdf("test.hdf5", table, start=0, stop=period) print(data.shape) theta = data.Theta average, N = 0,...
23.44
77
0.675768
83ca7d7bff749b9977274e2c2a5b6879d0dadfbe
50,355
py
Python
pyglmnet/pyglmnet.py
skabl/zmglmnet
82b6f523ab6a5cb90d8f6e9cc147c5ac4f04b209
[ "MIT" ]
null
null
null
pyglmnet/pyglmnet.py
skabl/zmglmnet
82b6f523ab6a5cb90d8f6e9cc147c5ac4f04b209
[ "MIT" ]
null
null
null
pyglmnet/pyglmnet.py
skabl/zmglmnet
82b6f523ab6a5cb90d8f6e9cc147c5ac4f04b209
[ "MIT" ]
null
null
null
"""Python implementation of elastic-net regularized GLMs.""" import warnings from copy import deepcopy import numpy as np from scipy.special import expit, loggamma from scipy.stats import norm from .utils import logger, set_log_level, _check_params, \ _verbose_iterable, _tqdm_log, softplus from .base import Base...
33.795302
87
0.538278
1cdc49f2145fbeb7dd4b3a74970da2f4b648975c
34,332
py
Python
sbpy/activity/gas/productionrate.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
null
null
null
sbpy/activity/gas/productionrate.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
null
null
null
sbpy/activity/gas/productionrate.py
dirac-institute/sbpy
9eb0523610f497ba2d068a071aae05ebfd67ed9d
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ =========================== sbpy Production Rate Module =========================== :author: Giannina Guzman (gguzman2@villanova.edu) created on June 26, 2019 """ import tempfile import numpy as np import astropy import astropy.constants as con impo...
39.690173
126
0.604655
c38a6117e901a2a96542b44382fa1b8794d2f037
6,384
py
Python
dev/external_subtrees.py
dpbaines/vtr-verilog-to-routing
cea4b63689db11816027aea23b6690af1c384f2d
[ "MIT" ]
1
2020-06-01T19:29:11.000Z
2020-06-01T19:29:11.000Z
dev/external_subtrees.py
dpbaines/vtr-verilog-to-routing
cea4b63689db11816027aea23b6690af1c384f2d
[ "MIT" ]
1
2020-06-02T21:43:59.000Z
2020-06-02T21:55:03.000Z
dev/external_subtrees.py
dpbaines/vtr-verilog-to-routing
cea4b63689db11816027aea23b6690af1c384f2d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import xml.etree.ElementTree as ET from collections import OrderedDict class ExternalSubtree: def __init__(self, name, internal_path, external_url, default_external_ref): self.name = name self.internal_path = internal_path self.external_url ...
38.690909
336
0.562187
b7e6ecc497ce0034c799caf8431bc9d4673c9754
13,562
py
Python
sdks/python/client/openapi_client/model/io_argoproj_workflow_v1alpha1_workflow_template.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
sdks/python/client/openapi_client/model/io_argoproj_workflow_v1alpha1_workflow_template.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
3
2022-03-22T11:49:02.000Z
2022-03-24T14:13:59.000Z
sdks/python/client/openapi_client/model/io_argoproj_workflow_v1alpha1_workflow_template.py
Siebjee/argo-workflows
1a3b87bdf8edba02ba5e5aed20f3942be1d6f46c
[ "Apache-2.0" ]
null
null
null
""" Argo Server API You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from ...
47.753521
346
0.602124
788e5e456e540ad803ee45440b5f9474ed79082d
623
py
Python
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/reddit/provider.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2019-06-26T19:23:55.000Z
2019-06-26T19:23:55.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/reddit/provider.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
myvenv/lib/python3.5/site-packages/allauth/socialaccount/providers/reddit/provider.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class RedditAccount(ProviderAccount): pass class RedditProvider(OAuth2Provider): id = 'reddit' name = 'Reddit' accou...
23.961538
74
0.735152
c035ccf3be408c0f7e9eb501656133d29945832b
6,948
py
Python
src/jupyter/util.py
webis-de/ecir22-anchor-text
254ab53fe4a5fca809af0f846f82b3fb6abd2a82
[ "MIT" ]
3
2021-11-16T19:52:54.000Z
2022-01-20T22:55:01.000Z
src/jupyter/util.py
webis-de/ecir22-anchor-text
254ab53fe4a5fca809af0f846f82b3fb6abd2a82
[ "MIT" ]
null
null
null
src/jupyter/util.py
webis-de/ecir22-anchor-text
254ab53fe4a5fca809af0f846f82b3fb6abd2a82
[ "MIT" ]
null
null
null
import spacy from copy import deepcopy import random import json import numpy as np from nltk.stem.porter import PorterStemmer stemmer = PorterStemmer() import itertools nlp = None ALL_PERMUTATIONS=set([i for i in itertools.permutations([0,0,0,0,0,1,1,1,1,1])]) def distinct_terms(processed_terms): return set([i['...
28.829876
131
0.615141
c356e78a9c350733a5a8e82e7acfe0e212e27625
1,842
py
Python
back_end/todo_app/views.py
marcelloinfante/todo-giftcard-app
cd189ad1caa799b76103e04f7315d57e1a531e0c
[ "MIT" ]
null
null
null
back_end/todo_app/views.py
marcelloinfante/todo-giftcard-app
cd189ad1caa799b76103e04f7315d57e1a531e0c
[ "MIT" ]
null
null
null
back_end/todo_app/views.py
marcelloinfante/todo-giftcard-app
cd189ad1caa799b76103e04f7315d57e1a531e0c
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from .models import CardInformations, Extract from .serializers import CardInformationsSerializer, ExtractSerializer, UserSerializer from rest_framework import status, viewsets, permissions, generics from rest_framework.decorators import permission_classes from rest_framework...
35.423077
86
0.767644
344cb28a239aa915641f90465aadf2e11db4f804
14,082
py
Python
angr/analyses/reaching_definitions/rd_state.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
1
2019-03-11T07:42:24.000Z
2019-03-11T07:42:24.000Z
angr/analyses/reaching_definitions/rd_state.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
null
null
null
angr/analyses/reaching_definitions/rd_state.py
Kyle-Kyle/angr
345b2131a7a67e3a6ffc7d9fd475146a3e12f837
[ "BSD-2-Clause" ]
null
null
null
from typing import Optional, Iterable, Set, TYPE_CHECKING import logging import archinfo from ...knowledge_plugins.key_definitions import LiveDefinitions from ...knowledge_plugins.key_definitions.atoms import Atom, GuardUse, Register, MemoryLocation from ...knowledge_plugins.key_definitions.definition import Definiti...
45.134615
138
0.646002
77f41216e79d170488b5cac4bbac78754ccaba21
1,697
py
Python
ansible/plugins/lookup/graphfile.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
ansible/plugins/lookup/graphfile.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
ansible/plugins/lookup/graphfile.py
emilmih/sonic-mgmt
e4e42ec8028bf51b39587e2b53e526d505fe7938
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
from __future__ import (absolute_import, division, print_function) import os.path import yaml import xml.etree.ElementTree as ET from ansible.utils.display import Display from ansible.plugins.lookup import LookupBase from ansible.errors import AnsibleError __metaclass__ = type DOCUMENTATION = """ lookup: grap...
34.632653
102
0.64231
322c32424ed657a5d8dc6110e9ffb3fcec538620
25,201
py
Python
AFQ/tests/test_api.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
null
null
null
AFQ/tests/test_api.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
null
null
null
AFQ/tests/test_api.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
null
null
null
import tempfile import os import os.path as op import shutil import subprocess import gc import toml import numpy as np import numpy.testing as npt import pytest import pandas as pd from pandas.testing import assert_series_equal import nibabel as nib import nibabel.tmpdirs as nbtmp import dipy.tracking.utils as dt...
30.695493
97
0.597992
68c300426a76004ae9349584b482a764694e1f95
2,577
py
Python
pandashells/bin/p_config.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
878
2015-08-02T02:07:20.000Z
2022-01-15T19:06:47.000Z
pandashells/bin/p_config.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
44
2015-05-12T15:56:57.000Z
2021-01-13T20:58:29.000Z
pandashells/bin/p_config.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
31
2015-08-02T22:48:36.000Z
2021-01-13T20:54:58.000Z
#! /usr/bin/env python # --- standard library imports import os import sys # noqa Not used in code, but patched in testing import argparse import textwrap from pandashells.lib import config_lib def main(): # --- read in the current configuration default_dict = config_lib.get_config() msg = textwrap.d...
34.824324
79
0.558401
d6253692f0974b7786b8c2a9b8287b6c04d7c1cd
10,345
py
Python
examples/billing/add_billing_setup.py
sidakwalia/gads
490514da86213c32cf26a43cfb5c479b5c3bb114
[ "Apache-2.0" ]
285
2018-10-05T16:47:58.000Z
2022-03-31T00:58:39.000Z
examples/billing/add_billing_setup.py
sidakwalia/gads
490514da86213c32cf26a43cfb5c479b5c3bb114
[ "Apache-2.0" ]
425
2018-09-10T13:32:41.000Z
2022-03-31T14:50:05.000Z
examples/billing/add_billing_setup.py
sidakwalia/gads
490514da86213c32cf26a43cfb5c479b5c3bb114
[ "Apache-2.0" ]
369
2018-11-28T07:01:00.000Z
2022-03-28T09:53:22.000Z
#!/usr/bin/env python # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
42.22449
117
0.688352
8c40a33af332b611f23e38da73b1bfd735e681f2
1,488
py
Python
pro1/interviews/admin.py
r3trd/StudentPortal
561da1c582d5ea921b29a26e7ff912736de23bca
[ "MIT" ]
9
2018-12-03T12:51:25.000Z
2018-12-19T23:43:07.000Z
pro1/interviews/admin.py
r3trd/StudentPortal
561da1c582d5ea921b29a26e7ff912736de23bca
[ "MIT" ]
97
2018-11-17T18:34:18.000Z
2018-12-29T15:34:50.000Z
pro1/interviews/admin.py
itsvrushabh/StudentPortal
e10f2aa7b8da021ae8a285160f64695ad5bc7a72
[ "MIT" ]
34
2018-12-01T16:30:09.000Z
2019-01-09T16:51:04.000Z
from django.contrib import admin from .models import Internship, Department, Placement # Register your models here. class InternshipAdmin(admin.ModelAdmin): def get_status(self, obj): return obj.get_status_display() get_status.short_description = 'Status' list_display = ('company_name', ...
31
53
0.539651
fb20f31148f1dc913016b1666b611154e87affc4
5,256
py
Python
thorpy/gamestools/basegrid.py
YannThorimbert/PyMap2D
c4ddb6bb4651f19b6ad1b4149f38e64de2daf120
[ "MIT" ]
27
2018-04-05T13:06:22.000Z
2022-01-24T08:14:47.000Z
thorpy/gamestools/basegrid.py
YannThorimbert/PyMap2D
c4ddb6bb4651f19b6ad1b4149f38e64de2daf120
[ "MIT" ]
6
2019-11-23T07:02:53.000Z
2021-04-12T19:08:35.000Z
thorpy/gamestools/basegrid.py
YannThorimbert/PyMap2D
c4ddb6bb4651f19b6ad1b4149f38e64de2daf120
[ "MIT" ]
7
2018-11-20T01:01:41.000Z
2022-01-24T08:14:50.000Z
"""Module providing several classes for handling grid objects""" class __GridIterator__(object): def __init__(self, nx, ny, x, y): self.x = x-1 self.y = y self.nx = nx self.ny = ny def __next__(self): if self.x == self.nx-1: self.x = 0 self.y +=...
31.854545
91
0.513508
623b7eb30485feb237cc67ddbe76a21b631b0df1
1,656
py
Python
rh/apps/content/tests/test_contact_form.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
null
null
null
rh/apps/content/tests/test_contact_form.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
108
2018-01-30T15:26:18.000Z
2021-06-10T17:29:57.000Z
rh/apps/content/tests/test_contact_form.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
null
null
null
from django.core import mail from django.core.urlresolvers import reverse from django.test import TestCase class TestContactForm(TestCase): def setUp(self): self.url = reverse('contact_form') self.data = { 'name': 'Lincoln Clay', 'email': 'lincoln.clay@cia.gov', ...
36
81
0.629227
61c4eabf11ea4a89412eaaa8e5b3b4cb831a6046
519
py
Python
imlib/IO/yaml.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
null
null
null
imlib/IO/yaml.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
6
2020-04-17T12:02:56.000Z
2020-05-12T15:20:18.000Z
imlib/IO/yaml.py
noisysky/imlib
625193be4a586d9040a48df9d51dbdd3a17c7d06
[ "MIT" ]
4
2020-02-05T18:53:30.000Z
2022-02-21T18:50:14.000Z
import yaml def read_yaml_section(yaml_file, section): yaml_contents = open_yaml(yaml_file) contents = yaml_contents[section] return contents def open_yaml(yaml_file): with open(yaml_file) as f: yaml_contents = yaml.load(f, Loader=yaml.FullLoader) return yaml_contents def save_yaml(yam...
24.714286
73
0.71869
10406b139f731103e24033fb59263c2275b9416c
6,873
py
Python
jwql/website/apps/jwql/oauth.py
laurenmarietta/jwql
0edc027778da4232d8ca82abf3a8bf85fafd7e4e
[ "BSD-3-Clause" ]
null
null
null
jwql/website/apps/jwql/oauth.py
laurenmarietta/jwql
0edc027778da4232d8ca82abf3a8bf85fafd7e4e
[ "BSD-3-Clause" ]
null
null
null
jwql/website/apps/jwql/oauth.py
laurenmarietta/jwql
0edc027778da4232d8ca82abf3a8bf85fafd7e4e
[ "BSD-3-Clause" ]
null
null
null
"""Provides an OAuth object for authentication of the ``jwql`` web app, as well as decorator functions to require user authentication in other views of the web application. Authors ------- - Matthew Bourque - Christian Mesh Use --- This module is intended to be imported and used as such: :: ...
25.175824
107
0.623018
3a2305a1ffb6fa26bac9b2fe84c9e450b86b9529
1,299
py
Python
normatrix/normatrix/plugged/nb_params.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/nb_params.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
normatrix/normatrix/plugged/nb_params.py
romainpanno/NorMatrix
33bbf02b1881853088c8350f9a3c9d22ba3aa704
[ "MIT" ]
null
null
null
try: from normatrix.source.file_parser import CFileParse from normatrix.source.config import TypeLine except ModuleNotFoundError: from normatrix.normatrix.source.file_parser import CFileParse from normatrix.normatrix.source.config import TypeLine import re reg = re.compile('^(?!.*=)(\w{1,} {0,1}){2,}\...
33.307692
82
0.591224
37847b781c0aed0d06cf5a1c44379c076d9d7104
34,958
py
Python
ds_catalog_service/backends/schemaevaluation.py
TheDataStation/catalog-service
de7113288cc3e6d5b856656f8b7be4dfdf5de4be
[ "MIT" ]
null
null
null
ds_catalog_service/backends/schemaevaluation.py
TheDataStation/catalog-service
de7113288cc3e6d5b856656f8b7be4dfdf5de4be
[ "MIT" ]
null
null
null
ds_catalog_service/backends/schemaevaluation.py
TheDataStation/catalog-service
de7113288cc3e6d5b856656f8b7be4dfdf5de4be
[ "MIT" ]
null
null
null
import pandas as pd import datetime from ds_catalog_service.api.base import CatalogService from ds_catalog_service.backends.backend_api import NormalizedSQLiteBackend class SchemaEvaluation: def __init__(self, datafile, trim_num, num_reps): self.df = self.convert_to_pd(datafile, trim_num) self.tr...
75.340517
138
0.322101
a9fd4b4428b2a158a2e743476792960856061f5c
8,209
py
Python
anpcp/models/solver.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
2
2021-06-26T22:16:37.000Z
2022-02-04T16:44:38.000Z
anpcp/models/solver.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
11
2021-08-31T15:09:28.000Z
2022-03-26T06:55:25.000Z
anpcp/models/solver.py
netotz/alpha-neighbor-p-center-problem
9ebe2718b749dcfc07884063bc118734457e36a9
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field import sys import random from typing import List, Sequence, Set, Tuple from itertools import combinations, product import timeit import matplotlib.pyplot as plt from models import Instance @dataclass class Solver: @dataclass class Solution: _solver: 'Solver' ...
30.069597
100
0.53149
b5a015269051577062f7b2cf8e834f3ce06c42c7
2,913
py
Python
Supplement/comparison_tools/plots_zircon.py
nsekhon91/latools
593bdb5f4874ec5a9692db440722bd1f8ce96246
[ "MIT" ]
10
2019-01-25T01:37:14.000Z
2022-01-14T11:27:01.000Z
Supplement/comparison_tools/plots_zircon.py
nsekhon91/latools
593bdb5f4874ec5a9692db440722bd1f8ce96246
[ "MIT" ]
51
2017-04-26T12:45:48.000Z
2022-02-19T06:31:44.000Z
Supplement/comparison_tools/plots_zircon.py
nsekhon91/latools
593bdb5f4874ec5a9692db440722bd1f8ce96246
[ "MIT" ]
10
2017-05-23T22:11:47.000Z
2022-02-15T06:09:52.000Z
import re import numpy as np import matplotlib.pyplot as plt from scipy import stats from .stats import fmt_RSS from .plots import rangecalcx, bland_altman, get_panel_bounds def fmt_el(el): e = re.match('.*?([A-z]+).*?', el).groups()[0] m = re.match('.*?([0-9]+).*?', el).groups()[0] return e + m def bland...
29.13
92
0.500858
00ea2bde1c3ed7ae15ae2b5948dc36a0120948ab
10,307
py
Python
chrome/tools/webforms_aggregator_unittests.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
chrome/tools/webforms_aggregator_unittests.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
chrome/tools/webforms_aggregator_unittests.py
1065672644894730302/Chromium
239dd49e906be4909e293d8991e998c9816eaa35
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import logging import os import subprocess import tempfile import unittest # Same name as the aggregator module name. import webfo...
34.471572
80
0.620452
86783ebab803f1ebd38f54e9b64fcd86a3de7115
17,996
py
Python
MAPS/Latant_Space_Constrained_VAEs/train_stats_latent_constrained.py
gmooers96/CBRAIN-CAM
c5a26e415c031dea011d7cb0b8b4c1ca00751e2a
[ "MIT" ]
null
null
null
MAPS/Latant_Space_Constrained_VAEs/train_stats_latent_constrained.py
gmooers96/CBRAIN-CAM
c5a26e415c031dea011d7cb0b8b4c1ca00751e2a
[ "MIT" ]
null
null
null
MAPS/Latant_Space_Constrained_VAEs/train_stats_latent_constrained.py
gmooers96/CBRAIN-CAM
c5a26e415c031dea011d7cb0b8b4c1ca00751e2a
[ "MIT" ]
5
2019-09-30T20:17:13.000Z
2022-03-01T07:03:30.000Z
import math import os os.environ["CUDA_VISIBLE_DEVICES"]="2" import argparse import json import tensorflow as tf import tensorflow_probability as tfp import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import make_axes_locatable import netCDF4 import keras from keras import layers from ...
35.425197
175
0.644365