hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
21664a3bce82c9112d39034940951e8bbbc19f21
1,389
py
Python
tests/PausableTests.py
ant4g0nist/SecureSons
32c14a27fee70ab8faf834c0efe5c5f586f96bba
[ "MIT" ]
4
2021-08-11T17:47:41.000Z
2021-12-02T14:39:12.000Z
tests/PausableTests.py
ant4g0nist/SecureSons
32c14a27fee70ab8faf834c0efe5c5f586f96bba
[ "MIT" ]
null
null
null
tests/PausableTests.py
ant4g0nist/SecureSons
32c14a27fee70ab8faf834c0efe5c5f586f96bba
[ "MIT" ]
null
null
null
import smartpy as sp contract = sp.io.import_script_from_url("file:contracts/Pausable.py") user1 = sp.address("tz1Rn1TTJo3RwLfDN2XyjQgQ2nf8hcdvqrsy") # admin user2 = sp.address('tz1LxAgLZWt4xxdya3yPA8wW4zcMbD5hTkvk') @sp.add_test(name = "Ownable tests") def test(): owner = user1 scenario = sp.test_scenario() c1 ...
33.878049
69
0.731461
21665ad0b5eb3822ee70fefcff984d9f1d3d651d
2,691
py
Python
contrib/python/pypodman/pypodman/lib/actions/commit_action.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
contrib/python/pypodman/pypodman/lib/actions/commit_action.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
contrib/python/pypodman/pypodman/lib/actions/commit_action.py
xakraz/libpod
78e6d8e7d70d431ccf096dee0f8eadb1c9b2967b
[ "Apache-2.0" ]
null
null
null
"""Remote client command for creating image from container.""" import sys import podman from pypodman.lib import AbstractActionBase, BooleanAction, ChangeAction class Commit(AbstractActionBase): """Class for creating image from container.""" @classmethod def subparser(cls, parent): """Add Commit...
28.935484
74
0.485321
216666e129c753146e662b3e8b8dc5195ce18a89
945
py
Python
python/test/test_gin_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
python/test/test_gin_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
python/test/test_gin_layer.py
deepest-stack/graph2tensor
4258bd7fff68348c98a77cff88afef039c1d44ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from graph2tensor.model.layers import GINConv from unittest import TestCase, main import numpy as np import tensorflow as tf class TestGCN(TestCase): def test_config(self): gcn = GINConv(name="gin") config = gcn.get_config() assert config["name"] == "gin" _...
27.794118
75
0.589418
21667ca6d9057a0c905978e0ddab7a88a24e38b3
110
py
Python
modules/homie/model/HomieNode.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
modules/homie/model/HomieNode.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
modules/homie/model/HomieNode.py
Korbier/PyWsServer
95510a935c3019ead04d2de71e4344d94b3ac560
[ "MIT" ]
null
null
null
class HomieNode: def __init__( self, id, device ): self.id = id self.device = device
18.333333
37
0.554545
21668f2fb86667064d781ed514622cc60f1b610e
1,075
py
Python
copywriting/feed.py
uncommitted-and-forgotten/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
2
2015-03-10T15:45:08.000Z
2015-10-20T05:00:40.000Z
copywriting/feed.py
uncommitted-and-forgotten/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
4
2015-06-10T08:23:55.000Z
2016-01-25T13:18:19.000Z
copywriting/feed.py
uncommitted-and-forgotten/django-copywriting
4a9fab437d255c71920420f6b478d77b5d5bbbfb
[ "MIT" ]
1
2021-08-28T15:16:45.000Z
2021-08-28T15:16:45.000Z
# -*- coding: utf-8 -*- from django.contrib.syndication.views import Feed from django.conf import settings from .helperFunctions import getLatestArticles import logging logger = logging.getLogger(__name__) class blogFeed(Feed): if hasattr(settings, 'FEED_SETTINGS'): title = settings.FEED_SETTINGS.get('ti...
34.677419
94
0.688372
2166b8e68a0b354f6248328d4d96afdbb2430351
295
py
Python
0x03-python-data_structures/9-max_integer.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x03-python-data_structures/9-max_integer.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
0x03-python-data_structures/9-max_integer.py
oluwaseun-ebenezer/holbertonschool-higher_level_programming
e830f969d3ca71abf0a2f6d4f7c64a82337eccd7
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # 9-max_integer.py def max_integer(my_list=[]): """Find the biggest integer of a list.""" if len(my_list) == 0: return (None) big = my_list[0] for i in range(len(my_list)): if my_list[i] > big: big = my_list[i] return (big)
18.4375
45
0.555932
21670b6ed08431d5d6a91f9d22c223446c03aaab
18,435
py
Python
redash/settings/__init__.py
sekiyama58/redash
99bf6d122c16e55de0f86c62fa01c124c16c52b5
[ "BSD-2-Clause" ]
null
null
null
redash/settings/__init__.py
sekiyama58/redash
99bf6d122c16e55de0f86c62fa01c124c16c52b5
[ "BSD-2-Clause" ]
null
null
null
redash/settings/__init__.py
sekiyama58/redash
99bf6d122c16e55de0f86c62fa01c124c16c52b5
[ "BSD-2-Clause" ]
null
null
null
import os import importlib import ssl from funcy import distinct, remove from flask_talisman import talisman from .helpers import fix_assets_path, array_from_string, parse_boolean, int_or_none, set_from_string from .organization import DATE_FORMAT, TIME_FORMAT # noqa REDIS_URL = os.environ.get('REDASH_REDIS_URL', os...
52.521368
245
0.784811
216716262aa894c92b2bf214e99c3a684378af81
2,326
py
Python
venv/Lib/site-packages/pyrogram/raw/types/chat_onlines.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/chat_onlines.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/chat_onlines.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.207792
103
0.614789
216718fa4278d4aee7acdd1e0c08cf82b034119d
15,814
py
Python
tensorflow_asr/datasets/asr_dataset.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
608
2020-10-15T16:11:23.000Z
2022-03-28T21:23:55.000Z
tensorflow_asr/datasets/asr_dataset.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
174
2020-10-15T16:14:27.000Z
2022-03-28T11:48:56.000Z
tensorflow_asr/datasets/asr_dataset.py
huylenguyen806/vnasrg
caee2e79d0eb9d1a997f5df8e2ba3ee7f0a1bcae
[ "Apache-2.0" ]
191
2020-10-16T01:24:15.000Z
2022-03-28T10:30:55.000Z
# Copyright 2020 Huy Le Nguyen (@usimarit) # # 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 t...
40.548718
126
0.618123
21674bb9a6497bd0b86a88da1c3b41d3158cb813
2,456
py
Python
src/qt_models/componentactionitemmenu.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/qt_models/componentactionitemmenu.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/qt_models/componentactionitemmenu.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
42.344828
93
0.539495
21676da9bcc45ceedccfd2114ea667e78431aa92
3,575
py
Python
brownie/gui/styles.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
brownie/gui/styles.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
brownie/gui/styles.py
acolytec3/brownie
e00e1f26f5b05e963fe50ffe198634c9e8876589
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from tkinter import ttk TEXT_STYLE = { "font": ("Courier", 14), "background": "#383838", "foreground": "#FFFFFF", "selectforeground": "white", "selectbackground": "#4a6984", "inactiveselectbackground": "#4a6984", "borderwidth": 0, "highlightthickness": 0, "state"...
28.6
87
0.54042
21677247b5419075492b5e63b3ee856691856bcc
754
py
Python
networks/prediction_games/new_try/test.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2021-05-23T13:43:11.000Z
2021-05-23T13:43:11.000Z
networks/prediction_games/new_try/test.py
artemk1337/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2020-02-14T02:12:11.000Z
2020-02-14T02:12:11.000Z
networks/prediction_games/new_try/test.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
null
null
null
import re import requests import datetime from bs4 import BeautifulSoup from python_utils import converters import pprint import sqlite3 from contextlib import closing pp = pprint.PrettyPrinter() def get_parsed_page(url): headers = {"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"} return Beautiful...
16.391304
73
0.709549
216774df50829f3fc3e445bc5f8f9bbd8c82451e
1,712
py
Python
joj/horse/apis/__init__.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/apis/__init__.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/apis/__init__.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from typing import Any from joj.horse.apis import ( admin as admin, auth as auth, domains as domains, judge as judge, misc as misc, problem_configs as problem_configs, problem_groups as problem_groups, problem_sets as problem_sets, problems as problems, records as records, u...
28.065574
76
0.794393
2167a5e992c7acd35c82ab3b8990597538388240
2,035
py
Python
src/iai_bullet_sim/dummy_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
src/iai_bullet_sim/dummy_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
src/iai_bullet_sim/dummy_simulator_node.py
ARoefer/iai_bullet_sim
da1c61a9aa3a734d97abf618ec6c5dc3531b4998
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from iai_bullet_sim.basic_simulator_node import BasicSimulatorNode def gen_fixed_init(t, *args): def fixed_init(self, *args): t.__init__(self, *args) self.timer = None self.paused = False return fixed_init def gen_pause(t): def pause(self): ...
27.5
117
0.623587
2167ad2407d97f76e5365fac6ca310a1f1e52854
660
py
Python
src/code/db/mgmt/mxm/mxm_main.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
2
2016-06-30T19:29:16.000Z
2016-06-30T21:12:15.000Z
src/code/db/mgmt/mxm/mxm_main.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
null
null
null
src/code/db/mgmt/mxm/mxm_main.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
null
null
null
from context import * from settings.filemgmt import fileManager from settings.paths import MXM, MXM_TID, sep def newFrame(): newFrame = [] with open(MXM) as lyricsFile: rawNewFrame = '' start = 0 # to avoid the entire file from being read into memory for lineNum, line in en...
20
62
0.598485
2167c5060c329d92d40e89b14a33aa1e8e871fe4
8,343
py
Python
docs/conf.py
coursera/pandas-ply
2a043c620b35ffb32247c559e1b46cbe22064ebd
[ "Apache-2.0" ]
181
2015-01-01T15:50:46.000Z
2022-02-27T23:27:37.000Z
docs/conf.py
dodger487/pandas-ply
2a043c620b35ffb32247c559e1b46cbe22064ebd
[ "Apache-2.0" ]
6
2015-06-20T19:10:56.000Z
2021-06-24T00:09:11.000Z
docs/conf.py
coursera/pandas-ply
2a043c620b35ffb32247c559e1b46cbe22064ebd
[ "Apache-2.0" ]
29
2015-06-15T04:57:25.000Z
2022-03-24T09:27:42.000Z
# -*- coding: utf-8 -*- # # pandas-ply documentation build configuration file, created by # sphinx-quickstart on Tue Nov 18 19:40:12 2014. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
31.843511
80
0.722762
2167d8e6541380f07d8690a4f32e47c69f44374c
154
py
Python
signalworks/__init__.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/__init__.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
signalworks/__init__.py
j9ac9k/signalworks
ca1c9ea77f6fc6d26c1e1b3a21eb9d9465041fb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Top-level package for signalworks.""" __author__ = """Alexander Kain""" __email__ = "lxkain@gmail.com" __version__ = "0.2.2"
19.25
40
0.642857
216827521de44fdbf276deeab6199b58a3613507
5,528
py
Python
environments/recommenders/movie_lens_utils.py
luksfarris/ml-fairness-gym
bbe696dadc15bf4a4695e2aa9b9f7a2124175e06
[ "Apache-2.0" ]
null
null
null
environments/recommenders/movie_lens_utils.py
luksfarris/ml-fairness-gym
bbe696dadc15bf4a4695e2aa9b9f7a2124175e06
[ "Apache-2.0" ]
null
null
null
environments/recommenders/movie_lens_utils.py
luksfarris/ml-fairness-gym
bbe696dadc15bf4a4695e2aa9b9f7a2124175e06
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The ML Fairness Gym 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 applicab...
33.101796
88
0.628618
21683169200f0ca1b353393e96e05c8c348998f6
5,365
py
Python
src/popoto/fields/field.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
5
2021-11-21T01:36:02.000Z
2022-01-28T23:16:51.000Z
src/popoto/fields/field.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
1
2021-12-29T13:20:17.000Z
2021-12-29T13:20:17.000Z
src/popoto/fields/field.py
tomcounsell/popoto
fc36d625a35393cd6f96afee6b13e849fe9cd242
[ "MIT" ]
null
null
null
from datetime import date, datetime, time from decimal import Decimal import redis from ..exceptions import ModelException import logging from ..models.db_key import DB_key logger = logging.getLogger('POPOTO.field') VALID_FIELD_TYPES = { int, float, Decimal, str, bool, bytes, list, dict, set, tuple, date, date...
37.256944
121
0.626468
216878feef70ae9b79dd3c5904db75565c5d0c93
1,820
py
Python
tests/test_list_timesheet.py
thinkinglabs/togglu
88b014347b4483691912889f5515205bc1b4cb48
[ "MIT" ]
null
null
null
tests/test_list_timesheet.py
thinkinglabs/togglu
88b014347b4483691912889f5515205bc1b4cb48
[ "MIT" ]
6
2022-01-02T19:52:05.000Z
2022-01-06T23:07:18.000Z
tests/test_list_timesheet.py
thinkinglabs/togglu
88b014347b4483691912889f5515205bc1b4cb48
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from unittest.mock import patch from datetime import date from .context import togglu # noqa: F401 from togglu.list_timesheet import TimesheetQuery from togglu.timesheet import Timesheet, TimesheetDateEntry, TimesheetClientEntry from togglu.timesheet_response import TimesheetR...
37.142857
113
0.671429
216881b83ac84ad726e65966e7b1032e60a102b0
5,414
py
Python
dpgs_sandbox/tests/test_file_storage.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
85
2019-01-03T02:22:03.000Z
2022-03-09T23:15:56.000Z
dpgs_sandbox/tests/test_file_storage.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
52
2019-02-12T21:04:43.000Z
2022-03-05T15:20:16.000Z
dpgs_sandbox/tests/test_file_storage.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
12
2019-01-31T02:36:06.000Z
2021-06-15T22:06:12.000Z
import os import shutil import tempfile from django.core.files.base import ContentFile from django.test import TestCase, override_settings from django_pgschemas.contrib.files import TenantFileSystemStorage from django_pgschemas.schema import SchemaDescriptor from django_pgschemas.utils import get_tenant_model Tenant...
49.218182
115
0.677133
216894c04054b534a69190935a9f35adc45d5f74
15,455
py
Python
pyiron_atomistics/vasp/structure.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
14
2021-01-18T10:03:56.000Z
2022-03-01T20:59:35.000Z
pyiron_atomistics/vasp/structure.py
pyiron/pyiron_atomistics
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
569
2018-04-12T06:37:14.000Z
2022-03-31T18:06:27.000Z
pyiron_atomistics/vasp/structure.py
pyiron/pyiron_atomistic
0cd4c910806f44dfc829ddd642e323efcf7e36d5
[ "BSD-3-Clause" ]
6
2018-10-23T09:48:48.000Z
2022-02-13T12:13:00.000Z
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. from collections import OrderedDict import numpy as np from pyiron_atomistics.atomistics.structure.atoms import Atoms im...
39.027778
118
0.608929
21691adb12c29bade47884509a39ba4d98f4d84c
7,912
py
Python
panprimer/utils.py
phiweger/panprimer
96d78cb8a34da85729bdde3ff53771a9c6c61c88
[ "BSD-3-Clause" ]
1
2022-03-23T10:33:42.000Z
2022-03-23T10:33:42.000Z
panprimer/utils.py
phiweger/panprimer
96d78cb8a34da85729bdde3ff53771a9c6c61c88
[ "BSD-3-Clause" ]
null
null
null
panprimer/utils.py
phiweger/panprimer
96d78cb8a34da85729bdde3ff53771a9c6c61c88
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from itertools import product import random import re from typing import Dict, List import networkx as nx import numpy as np import screed from screed import rc as revcomp from tqdm import tqdm def load_graph(path): '''Load graph from gfa file. Sequences are nodes, they a...
39.56
366
0.61274
21696a09aa1fc6b2191d3447d95148c5676f3a0e
3,485
py
Python
account_credential_test.py
KiyaiB/Password-Locker
c872cb83c4103c5cdecae83c70662737bc82f0ae
[ "MIT" ]
1
2022-01-08T17:28:13.000Z
2022-01-08T17:28:13.000Z
account_credential_test.py
KiyaiB/Password-Locker
c872cb83c4103c5cdecae83c70662737bc82f0ae
[ "MIT" ]
null
null
null
account_credential_test.py
KiyaiB/Password-Locker
c872cb83c4103c5cdecae83c70662737bc82f0ae
[ "MIT" ]
1
2022-01-23T18:47:34.000Z
2022-01-23T18:47:34.000Z
import unittest import pyperclip from account_credential import Credential class TestCredential(unittest.TestCase): ''' Test class that defines test cases for the credential class behaviours. Args: unittest.TestCase: TestCase class that helps in creating credential test cases ''' def setUp(self): ''...
33.509615
100
0.739455
216979497a7f3c704f3bf88f145ec3bc1a830d1f
12,445
py
Python
frbcat/frbcat_file.py
LBJ-Wade/frbcat
f9f29dadaab299b4c7689e01af6b61df5270b87c
[ "MIT" ]
19
2020-06-10T09:53:25.000Z
2021-12-10T17:18:08.000Z
frbcat/frbcat_file.py
LBJ-Wade/frbcat
f9f29dadaab299b4c7689e01af6b61df5270b87c
[ "MIT" ]
8
2020-09-15T08:52:46.000Z
2021-08-14T20:09:51.000Z
frbcat/frbcat_file.py
LBJ-Wade/frbcat
f9f29dadaab299b4c7689e01af6b61df5270b87c
[ "MIT" ]
6
2020-07-18T05:53:31.000Z
2021-08-04T06:22:13.000Z
"""Do things with frbcat.""" import datetime import glob import io import os import pandas as pd import requests import numpy as np import webbrowser import frbcat.misc as misc class Frbcat(): """Query FRBCAT by using Frbcat().df .""" def __init__(self, oneoffs=True, repeat...
35.355114
79
0.511531
21697e1b1dfb02f324408cef5d3ef4f7667d5656
1,779
py
Python
venues/serializers.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
venues/serializers.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
venues/serializers.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
null
null
null
"""Serializers for venues""" from rest_framework import serializers from django_countries.serializers import CountryFieldMixin from .fields import TimeZoneField from . import models class VenueSerializer(CountryFieldMixin, serializers.ModelSerializer): time_zone = TimeZoneField( required=False, ...
27.369231
75
0.67285
2169a98c9956dcfcdadc3a485125b7f0f27f2aec
1,698
py
Python
setup.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
1
2019-09-15T12:30:44.000Z
2019-09-15T12:30:44.000Z
setup.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
setup.py
pauleveritt/wired_components
a9072d5fc48680d5ff895887842ffd0f06bc0081
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages def readfile(name): with open(name) as f: return f.read() readme = readfile('README.rst') changes = readfile('CHANGES.rst') requires = ['jinja2', 'markupsafe', 'venusian', 'wired', 'zope.interface'] docs_require = ['Sphinx', 'sphinx_rtd_theme', 'venusian'] ...
26.53125
74
0.59894
2169b10b569fc3d3e85c417e05b9380036c6ba68
848
py
Python
utils/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
utils/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
utils/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- __all__ = [ "gconfig", "gcounter", "gdebug", "gdecorator", "genv", "gerrors", "gfile", "ghttp", "gjsonobj", "gmain", "gobject", "gobserver", "gos", "gproc", "grand", "gservice", "gsecurity", "gtime", "gurl", "gyaml" ] def min_with_default(*args, **kwargs):...
20.190476
55
0.613208
2169f3da30c8eaa780c156d6739f7af83d4c23be
9,437
py
Python
src/python/pants/goal/goal.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/goal/goal.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
src/python/pants/goal/goal.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals from pants.goal.error import GoalError from pants.option.optionable import Optionable fro...
34.694853
99
0.706263
216a0070abe97c5baf0ac32c4aa70f28899b7168
1,616
py
Python
tests/readers/test_kms.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
2
2018-05-15T00:50:34.000Z
2019-02-25T11:08:27.000Z
tests/readers/test_kms.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
13
2018-07-06T08:52:52.000Z
2018-12-07T13:49:34.000Z
tests/readers/test_kms.py
gahjelle/posetta
6e052c19a64b0bbdd0b9a7d3ac703000e615d53e
[ "MIT" ]
2
2018-04-28T14:31:40.000Z
2018-05-14T21:19:27.000Z
"""Tests for the readers.kms module """ # Posetta imports from posetta import readers def test_file_koordinater(path_examples): """ KmsReader: koordinater """ reader = readers.read_file(path_examples / "kms" / "koordinater", "kms") cset = reader.as_coordset() assert ( cset.values.va...
30.490566
76
0.62995
216a2dfa24df89568ac7211011c39bd25f5e0c29
52,618
py
Python
Lib/test/test_dis.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
null
null
null
Lib/test/test_dis.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
12
2020-11-17T06:58:07.000Z
2022-03-01T20:01:16.000Z
Lib/test/test_dis.py
Pixmew/cpython
aa01011003bb855cd52abfd49f2443446590d913
[ "0BSD" ]
null
null
null
# Minimal tests for dis module from test.support import captured_stdout from test.support.bytecode_helper import BytecodeTestCase import unittest import sys import dis import io import re import types import contextlib def get_tb(): def _error(): try: 1 / 0 except Exception as e: ...
43.921536
205
0.630697
216a50251c2b293121fcc4ada449f4526f1858bd
1,107
py
Python
regparser/notice/amendments/subpart.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
26
2016-06-04T20:48:09.000Z
2021-07-28T18:13:30.000Z
regparser/notice/amendments/subpart.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
146
2016-04-06T19:07:54.000Z
2022-01-02T20:09:53.000Z
regparser/notice/amendments/subpart.py
pkfec/regulations-parser
ff6b29dcce0449a133e7b93dd462ab3110f80a5d
[ "CC0-1.0" ]
28
2016-04-09T20:40:48.000Z
2021-05-08T17:52:59.000Z
import functools from regparser.notice.amendments.utils import label_amdpar_from from regparser.notice.changes import Change from regparser.tree.gpo_cfr.subpart import build_subpart def content_for_new_subpart(instruction_xml): """Return a chunk of XML (which serves as a unique key) and a think for parsing t...
36.9
75
0.70009
216a63ad78e3ebbcd36b5f162e1c2918ec939df3
672
py
Python
pexopy/uniquefilename.py
timberhill/pexopy
adf3425052ac0669abdda65c44493c5a37069798
[ "MIT" ]
null
null
null
pexopy/uniquefilename.py
timberhill/pexopy
adf3425052ac0669abdda65c44493c5a37069798
[ "MIT" ]
null
null
null
pexopy/uniquefilename.py
timberhill/pexopy
adf3425052ac0669abdda65c44493c5a37069798
[ "MIT" ]
null
null
null
import os import hashlib from .settings import temp_storage class UniqueFile(str): """ Generates an MD5 hash from the `contents` (<str>) and returns a string in a format f'{prepend}{md5}{append}' """ def __new__(cls, contents, prepend="", append="", folder=None, create=True, *args, **kwargs): i...
30.545455
112
0.587798
216a682f250e322153aac92764fa7061224f7bd3
2,906
py
Python
inference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
inference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
inference.py
damnkk/cycle-GAN
fbf84eb67ef0a1ba909e95c6862f72419c6f4185
[ "MIT" ]
null
null
null
import tensorflow.compat.v1 as tf import os import utils import numpy as np import nibabel as nib #import moxing as mox #mox.file.copy_parallel('s3://zhang-ming-xing/twoimport/pretrained/cbct2sct.pb', 'pretrained/cbct2sct.pb') #mox.file.copy_parallel('s3://zhang-ming-xing/twoimport/cbct/', 'cbct/') #mox.file.copy_para...
44.707692
117
0.627667
216a7cd6ba7cf8720c9da01c7cfe6cb9047daeba
2,138
py
Python
bayleef/examples/__init__.py
Kelvinrr/bayleef
3ad03bbf58dff35dbdd96b7fd56dd700eb7ed183
[ "0BSD" ]
1
2018-05-01T17:15:30.000Z
2018-05-01T17:15:30.000Z
bayleef/examples/__init__.py
Kelvinrr/bayleef
3ad03bbf58dff35dbdd96b7fd56dd700eb7ed183
[ "0BSD" ]
null
null
null
bayleef/examples/__init__.py
Kelvinrr/bayleef
3ad03bbf58dff35dbdd96b7fd56dd700eb7ed183
[ "0BSD" ]
null
null
null
import os import bayleef __all__ = ['get_path'] #Used largely unmodififed from: # https://github.com/pysal/pysal/blob/master/pysal/examples/__init__.py base = os.path.split(bayleef.__file__)[0] example_dir = os.path.join(base, 'examples') dirs = next(os.walk(example_dir))[1] + [example_dir] file_2_dir = {} for d in...
31.441176
82
0.63985
216a8184144845c58fd6f9f41b84b174a7e83278
4,547
py
Python
h2o-py/tests/testdir_algos/deepwater/pyunit_cv_cars_deepwater.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2018-09-02T13:39:27.000Z
2018-09-02T13:39:27.000Z
h2o-py/tests/testdir_algos/deepwater/pyunit_cv_cars_deepwater.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
1
2021-11-15T17:47:41.000Z
2021-11-15T17:47:41.000Z
h2o-py/tests/testdir_algos/deepwater/pyunit_cv_cars_deepwater.py
purushothamgowthu/h2oai-h2o-3
af79095b600684978a9c397a086f1dedb9540760
[ "Apache-2.0" ]
1
2019-12-09T03:07:04.000Z
2019-12-09T03:07:04.000Z
from __future__ import print_function from builtins import range import sys, os sys.path.insert(1, os.path.join("..","..","..")) import h2o from tests import pyunit_utils import random from h2o.estimators.deepwater import H2ODeepWaterEstimator def cv_cars_dw(): if not H2ODeepWaterEstimator.available(): return # r...
39.53913
113
0.738509
216a960f0a24e880edb2fd6f2b11158fc2e7bc49
2,165
py
Python
app/resources/v1/te/migracoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/te/migracoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/te/migracoes.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class MigracoesEscravoResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "required": ...
51.547619
92
0.690069
216ab370be0c9058957f98165ee0f7ff101929a8
7,838
py
Python
funzioni.py
radiojam11/esame_immobili
7c1863b629fe2f9602f7ff634b2511d20fdeab72
[ "MIT" ]
null
null
null
funzioni.py
radiojam11/esame_immobili
7c1863b629fe2f9602f7ff634b2511d20fdeab72
[ "MIT" ]
null
null
null
funzioni.py
radiojam11/esame_immobili
7c1863b629fe2f9602f7ff634b2511d20fdeab72
[ "MIT" ]
null
null
null
from classi import * from main import * clienti = [] immobili = [] # LE FUNZIONI def menu(): """Menu grafico testuale per programma di gestione Immobili """ x = 1 while x !=0 : print (" Menu'") print(" Gestione Immobiliare") print(" INSERIMENTO IMMOBILE .........digita ...
44.534091
200
0.63039
216ac5ff770c991708153b9c584c3c1df47d0a08
1,565
py
Python
user/tasks.py
WyattPQ/Django-blog
eae42c30bd232442b305f8563c17b8b5ab5cf29e
[ "MIT" ]
1
2019-06-07T10:45:24.000Z
2019-06-07T10:45:24.000Z
user/tasks.py
WyattPQ/Django-blog
eae42c30bd232442b305f8563c17b8b5ab5cf29e
[ "MIT" ]
null
null
null
user/tasks.py
WyattPQ/Django-blog
eae42c30bd232442b305f8563c17b8b5ab5cf29e
[ "MIT" ]
null
null
null
import time import hashlib from django.core.mail import send_mail from celery.utils.log import get_task_logger from celery import shared_task from binblog.settings import EMAIL_FROM # setting文件设置的发件人 logger = get_task_logger(__name__) @shared_task def send_email_task(email, code_str, send_type): """ 使用cel...
32.604167
120
0.6
216ae1f3fc018e8c9d963a834043975f538562f7
2,173
py
Python
dataprep/clean/components/cat_encoding/one_hot_encoding.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/components/cat_encoding/one_hot_encoding.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/components/cat_encoding/one_hot_encoding.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Implement one-hot encoder. """ from typing import Any, List import dask.dataframe as dd import numpy as np class OneHotEncoder: """One-hot encoder for encoding categorical values Attributes: name Name of encoder unique_list Unique categorical values in provided dat...
25.869048
95
0.583985
216b085275702c361404c48eb3f61c95a28afa0d
2,102
py
Python
nn_analysis/metrics/custom_metrics/decoding.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/metrics/custom_metrics/decoding.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
nn_analysis/metrics/custom_metrics/decoding.py
hchau630/nn-analysis
0fbe7ad7b2b4566b9f88d8f21413a6d405f96bdc
[ "MIT" ]
null
null
null
import numpy as np from .metric import Metric from nn_analysis import metrics as me from nn_analysis import acts as ac from nn_analysis import utils from nn_analysis.constants import ACTS_CONFIGS_PATH class Decoding(Metric): def __init__(self, variable_configs, averages): self.variable_configs = variable_...
42.04
136
0.635585
216b25c902cbab3e2b5d5a1b6037fe7b9693a7e0
16,061
py
Python
qgrad/tests/test_qgrad_qutip.py
quantshah/qgrad
db13e8463de49a8df1bf59524bc1b0a875405ee9
[ "BSD-3-Clause" ]
37
2020-07-10T14:06:21.000Z
2022-03-29T01:40:48.000Z
qgrad/tests/test_qgrad_qutip.py
quantshah/qgrad
db13e8463de49a8df1bf59524bc1b0a875405ee9
[ "BSD-3-Clause" ]
65
2020-06-11T16:24:29.000Z
2021-07-16T12:41:47.000Z
qgrad/tests/test_qgrad_qutip.py
quantshah/qgrad
db13e8463de49a8df1bf59524bc1b0a875405ee9
[ "BSD-3-Clause" ]
10
2020-06-09T06:13:39.000Z
2021-07-02T11:52:37.000Z
"""Tests for qgrad implementation of qutip functions""" from numpy.testing import ( assert_almost_equal, assert_array_equal, assert_array_almost_equal, assert_equal, assert_raises, ) from jax import grad import jax.numpy as jnp from jax.random import PRNGKey, split, uniform import pytest from qutip ...
32.057884
96
0.559056
216b37416d70aee0daa6972ee72029b6bab0ef62
12,460
py
Python
mscr_ws/install/_setup_util.py
lakhanshiva/motivational-scr
14723f42a0456838a56ab63970cf847f42206ed9
[ "Apache-2.0" ]
null
null
null
mscr_ws/install/_setup_util.py
lakhanshiva/motivational-scr
14723f42a0456838a56ab63970cf847f42206ed9
[ "Apache-2.0" ]
null
null
null
mscr_ws/install/_setup_util.py
lakhanshiva/motivational-scr
14723f42a0456838a56ab63970cf847f42206ed9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2 # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistri...
42.817869
213
0.681059
216b40f57de57ce47aabf8e82042a38dd81901f1
192
py
Python
Python2 Tutorials/pythonIntermediateTutorial/Tutorial6 - Modulating/package/subpackage/__init__.py
DrapsTV/DrapsTV_Materials
1aee31df2d622a312b0d3f4eb2d29080a8043828
[ "MIT" ]
20
2016-06-16T12:05:45.000Z
2020-11-25T06:31:53.000Z
Python3 Tutorials/python3IntermediateTutorial/Tutorial6 - Modulating/package/subpackage/__init__.py
AyushLalShrestha/DrapsTV_Materials
1aee31df2d622a312b0d3f4eb2d29080a8043828
[ "MIT" ]
null
null
null
Python3 Tutorials/python3IntermediateTutorial/Tutorial6 - Modulating/package/subpackage/__init__.py
AyushLalShrestha/DrapsTV_Materials
1aee31df2d622a312b0d3f4eb2d29080a8043828
[ "MIT" ]
22
2016-05-02T10:16:17.000Z
2020-12-30T13:02:25.000Z
# This initalizes the subpackage folder. # the __all__ special variable indicates what modules to load then the * star # is used for importing. __all__ = ['mySubModule', 'myOtherSubModule']
27.428571
77
0.765625
216b77c8810a48ac901d145c1acfc2dd60ab5b3e
560
py
Python
metadata/urls.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
1
2017-06-15T23:27:14.000Z
2017-06-15T23:27:14.000Z
metadata/urls.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
metadata/urls.py
mwschall/dcdb
0c650b9bfd877ffaf8023b8207ad6a54411c7bc5
[ "0BSD" ]
null
null
null
from django.urls import path from . import views app_name = 'metadata' urlpatterns = [ path('characters/', views.character_index, name='index'), path('characters/<suuid:character>/<slug:slug_name>', views.character_page, name='character'), path('characters/<suuid:character>', views.character_page, name='c...
40
98
0.716071
216b794dc1069e6172c28f796964d5d2652170c3
161
py
Python
src/apps/aprobacion/urls.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
src/apps/aprobacion/urls.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
48
2017-04-21T17:35:23.000Z
2020-08-29T04:19:35.000Z
src/apps/aprobacion/urls.py
SGC-Tlaxcala/cerebro
6c842f66d849065a70002fccdb1eaca1e3d61d99
[ "MIT" ]
null
null
null
from django.urls import path from apps.aprobacion.views import Portada app_name = 'aprobacion' urlpatterns = [ path('', Portada.as_view(), name='index') ]
17.888889
45
0.720497
216b94c5007092467c7658be91c444a7e41c5a2d
2,722
py
Python
tests/workers/test_facedetect_stream.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
4
2021-11-03T21:32:55.000Z
2022-02-17T17:13:16.000Z
tests/workers/test_facedetect_stream.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
null
null
null
tests/workers/test_facedetect_stream.py
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
2
2022-03-05T20:01:33.000Z
2022-03-25T06:00:35.000Z
# Copyright 2021 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.455696
102
0.703527
216b97827c1156e7d5d42988c851047ca96007ba
679
py
Python
migrations/versions/5768ffdf65d2_add_postedby_column_to_comments.py
apwao/Pitcher
5747de0d99430c495d3ad6f4bc64cd1b96e40598
[ "MIT", "Unlicense" ]
null
null
null
migrations/versions/5768ffdf65d2_add_postedby_column_to_comments.py
apwao/Pitcher
5747de0d99430c495d3ad6f4bc64cd1b96e40598
[ "MIT", "Unlicense" ]
null
null
null
migrations/versions/5768ffdf65d2_add_postedby_column_to_comments.py
apwao/Pitcher
5747de0d99430c495d3ad6f4bc64cd1b96e40598
[ "MIT", "Unlicense" ]
null
null
null
"""Add postedBy Column to Comments Revision ID: 5768ffdf65d2 Revises: 94ffcec4f5f9 Create Date: 2019-05-28 04:42:27.386842 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5768ffdf65d2' down_revision = '94ffcec4f5f9' branch_labels = None depends_on = None def...
23.413793
81
0.698085
216bb57dcb4c7736a815ece6a19f35d3aeb973d4
9,907
py
Python
YAMLR/YAMLRComposition.py
ViniGarcia/FlexibleNFV-RA
a7938c05be0d8ca64e281c94b2efbeaefeabdcd5
[ "MIT" ]
2
2021-05-10T16:28:50.000Z
2021-12-15T04:03:34.000Z
YAMLR/YAMLRComposition.py
ViniGarcia/FlexibleNFV-RA
a7938c05be0d8ca64e281c94b2efbeaefeabdcd5
[ "MIT" ]
null
null
null
YAMLR/YAMLRComposition.py
ViniGarcia/FlexibleNFV-RA
a7938c05be0d8ca64e281c94b2efbeaefeabdcd5
[ "MIT" ]
null
null
null
######## YAMLR COMPOSITION CLASS DESCRIPTION ######## #PROJECT: NFV FLERAS (FLExible Resource Allocation Service) #CREATED BY: VINICIUS FULBER GARCIA #CONTACT: vfulber@inf.ufsm.br #RECEIVES A YAML REQUEST FILE WITH THE SFC #DESCRIPTION AND THE REQUESTED OPERATIONS #FOR THE NFV COMPOSING EXECUTION. #THE STATUS CLASS ...
25.934555
145
0.675381
216bbf2e3f7300da9fb464f95720867b1c379360
5,207
py
Python
examples/manipulating_visualizing/plot_roi_extraction.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
examples/manipulating_visualizing/plot_roi_extraction.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
examples/manipulating_visualizing/plot_roi_extraction.py
fabianp/nilearn
367516822f538965368b936704a5346199331457
[ "BSD-2-Clause" ]
null
null
null
""" Computing an ROI mask ======================= Example showing how a T-test can be performed to compute an ROI mask, and how simple operations can improve the quality of the mask obtained. """ ### Coordinates of the selected slice ######################################### coronal = -24 sagittal = -33 axial = -17 c...
38.007299
79
0.682927
216bd1031ee9dd3a97daf7ff18a51ec365ee60ca
619
py
Python
src/academia_tag_recommender/stopwords.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
null
null
null
src/academia_tag_recommender/stopwords.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
null
null
null
src/academia_tag_recommender/stopwords.py
gefei-htw/academia_tag_recommender
aea56d36e16584824ef217d1f2caaee3414098f8
[ "MIT" ]
1
2021-01-29T19:41:47.000Z
2021-01-29T19:41:47.000Z
"""This module imports the stopwordlist. Attributes: stopwordlist: The list of stopwords as :class:`list` of :class:`str` """ from pathlib import Path from academia_tag_recommender.definitions import DATA_PATH _DATA_FOLDER = Path(DATA_PATH + '/external') def _stopwordlist(): """Return a stopwordlist. ...
23.807692
72
0.673667
216beef991c04714af4ccb133559b2f3faaf3b8c
381
py
Python
app/core/migrations/0019_alter_event_title.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/core/migrations/0019_alter_event_title.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/core/migrations/0019_alter_event_title.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-07 16:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0018_alter_event_image'), ] operations = [ migrations.AlterField( model_name='event', name='title', ...
20.052632
51
0.593176
216bf214d5752203e35df343aa0933898fa89b53
1,437
py
Python
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_parameter_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_parameter_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/models/check_sku_availability_parameter_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
31.933333
76
0.562978
216c27125877aeaf6743a929a32fb545dbb73307
32,862
py
Python
app/enquiries/migrations/0001_initial.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
3
2020-04-03T12:16:56.000Z
2020-12-09T18:18:49.000Z
app/enquiries/migrations/0001_initial.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
173
2020-03-18T09:31:50.000Z
2022-03-26T04:19:41.000Z
app/enquiries/migrations/0001_initial.py
uktrade/enquiry-mgmt-tool
547a195cb9296ad0b1dbc5c8435bfeeae9755bb4
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-21 12:49 from datetime import datetime from django.conf import settings from django.contrib.auth.models import User from django.db import migrations, models import django.db.models.deletion import django_extensions.db.fields from app.enquiries.models import Owner import app.enqu...
45.960839
131
0.317418
216c46b40ee1b0d9f93f5b0103e03d2cbbff6224
1,601
py
Python
Lib/site-packages/numpy/distutils/__config__.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/numpy/distutils/__config__.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/numpy/distutils/__config__.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
null
null
null
# This file is generated by numpy's setup.py # It contains system_info results at the time of building this package. __all__ = ["get_info","show"] import os extra_dll_dir = os.path.join(os.path.dirname(__file__), '.libs') if os.path.isdir(extra_dll_dir): os.environ["PATH"] += os.pathsep + extra_dll_dir lapack_opt...
48.515152
186
0.622111
216c9dae8cbd706284e3003fd904bb6f0509270c
1,213
py
Python
tdmelodic/util/dic_index_map.py
tachi-hi/tdmelodic
9b146c9c788eb730855376c86a8b0eab4d8438ca
[ "BSD-3-Clause" ]
73
2020-09-18T06:37:11.000Z
2022-03-15T12:40:47.000Z
tdmelodic/util/dic_index_map.py
tachi-hi/tdmelodic
9b146c9c788eb730855376c86a8b0eab4d8438ca
[ "BSD-3-Clause" ]
4
2021-02-06T14:52:39.000Z
2021-11-04T10:02:45.000Z
tdmelodic/util/dic_index_map.py
tachi-hi/tdmelodic
9b146c9c788eb730855376c86a8b0eab4d8438ca
[ "BSD-3-Clause" ]
9
2020-09-18T14:49:15.000Z
2022-03-18T02:53:54.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2019-, PKSHA Technology Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. # --------------------------------------...
27.568182
79
0.485573
216cba92265f1dd56fd4df5519bd627d66dc5092
11,104
py
Python
pages/portfolio.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
1
2022-03-25T08:45:38.000Z
2022-03-25T08:45:38.000Z
pages/portfolio.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
null
null
null
pages/portfolio.py
webclinic017/market_machine_learning
79f3e774d08ceb6c313db8b7d8439e1f14d1ca27
[ "Apache-2.0" ]
null
null
null
import streamlit as st import webbrowser from datetime import datetime from pathlib import Path import pandas as pd from os.path import exists import numpy as np from yahooquery import Ticker import src.models.portfolio as p1 from src.tools import functions as f0 from src.tools import lists as l0 from src.tools import...
40.823529
142
0.621218
216cc3dd54b7851810baee23be91e321ede06b42
7,861
py
Python
tensorflow/python/profiler/internal/run_metadata_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/profiler/internal/run_metadata_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/profiler/internal/run_metadata_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow 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 required by applica...
33.738197
80
0.685027
216cc46d17206100669ead2aeb97a96ac38feb0b
864
py
Python
doc/srcs_generated_examples/python_srcs/morphology050.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
doc/srcs_generated_examples/python_srcs/morphology050.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
doc/srcs_generated_examples/python_srcs/morphology050.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
import morphforge.stdimports as mf import morphforgecontrib.morphology.importers.import_tree_morphml import pylab testSrcsPath = mf.LocMgr().get_test_srcs_path() srcMorphMLFile = mf.Join(testSrcsPath, "neuroml/morphml/CablesIncluded.xml") m = mf.MorphologyTree.fromMorphML(src=open(srcMorphMLFile) ) #mf.MayaViRender...
26.181818
79
0.704861
216cc81594763fb4d333c1eba6a88d8cd5ca98f6
1,711
py
Python
servers/python/coweb/cowebpyoe/ContextDifference.py
opencoweb/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
83
2015-01-05T19:02:57.000Z
2021-11-19T02:48:09.000Z
servers/python/coweb/cowebpyoe/ContextDifference.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
3
2015-12-16T13:49:33.000Z
2019-06-17T13:38:50.000Z
servers/python/coweb/cowebpyoe/ContextDifference.py
xuelingxiao/coweb
7b3a87ee9eda735a859447d404ee16edde1c5671
[ "AFL-2.1" ]
14
2015-04-29T22:36:53.000Z
2021-11-18T03:24:29.000Z
""" Difference between two contexts in terms of operations. Copyright (c) The Dojo Foundation 2011. All Rights Reserved. Copyright (c) IBM Corporation 2008, 2011. All Rights Reserved. """ from .factory import factory class ContextDifference: """ Stores the difference in operations between two contexts in ter...
27.15873
76
0.645821
216cce2531662ed8904839c0ace39360ace59ea7
789
py
Python
lewis_emulators/pt2025/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/pt2025/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/pt2025/device.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from collections import OrderedDict from threading import Timer from .states import DefaultState from lewis.devices import StateMachineDevice class SimulatedPt2025(StateMachineDevice): def _initialize_data(self): """ Initialize all of the device's attributes. """ self.connected =...
21.324324
62
0.619772
216cec2100264e34d3b7125047408c469eab2fe7
10,464
py
Python
brownie/_config.py
hassoon1986/brownie
8036ef80512251e2d4a55fbbb7ad7ecdf388acb2
[ "MIT" ]
1
2020-10-09T17:23:03.000Z
2020-10-09T17:23:03.000Z
brownie/_config.py
hassoon1986/brownie
8036ef80512251e2d4a55fbbb7ad7ecdf388acb2
[ "MIT" ]
null
null
null
brownie/_config.py
hassoon1986/brownie
8036ef80512251e2d4a55fbbb7ad7ecdf388acb2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import json import os import re import shutil import sys import warnings from collections import defaultdict from pathlib import Path from typing import Any, Dict, List, Optional import yaml from hypothesis import Phase from hypothesis import settings as hp_settings from hypothesis.database import ...
33.538462
97
0.636468
216cee163e0bc3f81f8d46720198f375130126a5
3,099
py
Python
components/keras/Train_classifier/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/keras/Train_classifier/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/keras/Train_classifier/from_CSV/component.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from typing import NamedTuple from kfp.components import create_component_from_func, InputPath, OutputPath def keras_train_classifier_from_csv( training_features_path: InputPath('CSV'), training_labels_path: InputPath('CSV'), network_json_path: InputPath('KerasModelJson'), model_path: OutputPath('Keras...
32.621053
163
0.696354
216cf4dadaacac7ace779cfdaa6ed01560cf44c8
2,769
py
Python
test/integration/rmq_2_sysmon/run_program.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/integration/rmq_2_sysmon/run_program.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
test/integration/rmq_2_sysmon/run_program.py
mjpernot/rmq-sysmon
728f696a451b6c870feb22e53be09bfcd7ed3c77
[ "MIT" ]
null
null
null
#!/usr/bin/python # Classification (U) """Program: run_program.py Description: Integration testing of run_program in rmq_2_sysmon.py. Usage: test/integration/rmq_2_sysmon/run_program.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info < (2...
24.504425
76
0.649693
216d0254c5931f8b24bda10ef609d877c93ca0d0
375
py
Python
setup.py
woxueqinglong/Fluorescence-Anisotropy-Analysis
e6ea9483da025f4e1457a640a6ce678769776fca
[ "MIT" ]
null
null
null
setup.py
woxueqinglong/Fluorescence-Anisotropy-Analysis
e6ea9483da025f4e1457a640a6ce678769776fca
[ "MIT" ]
null
null
null
setup.py
woxueqinglong/Fluorescence-Anisotropy-Analysis
e6ea9483da025f4e1457a640a6ce678769776fca
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='flu_ani_analysis', version='0.1.0', author='Mariusz Las', author_email='cm18mel@leeds.ac.uk', url = 'https://github.com/mariuszlas', description='Fluorescence anisotropy binding data analysis.', packages=['flu_ani_analysis'], ...
37.5
69
0.650667
216d11eda9267d40a3c7e70d65dbe30c3b3258fd
319
py
Python
callisto/app/agent/state.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
84
2020-02-18T14:58:35.000Z
2022-03-04T22:34:46.000Z
callisto/app/agent/state.py
wrike/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
6
2020-07-13T19:31:07.000Z
2022-03-30T15:35:23.000Z
callisto/app/agent/state.py
isabella232/callisto
182b9c3a56d13fbb3f8f199a984b4c4be6c17e9f
[ "MIT" ]
9
2021-03-08T10:17:29.000Z
2022-03-04T12:21:53.000Z
from __future__ import annotations from ...libs.services.k8s.service import K8sService from ...libs.services.state import StateService def init_state_service(k8s_service: K8sService, instance_id: str) -> StateService: return StateService(k8s_service=k8s_service, instance_id=instance_id)
31.9
82
0.758621
216d1923021e1bce648b7f87614d3dcf615ac6d3
1,112
py
Python
ggsolver/utils.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
ggsolver/utils.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
ggsolver/utils.py
abhibp1993/ggsolver
5d448b2b5e5763bdbe571f23a6504cdeca73b88e
[ "BSD-3-Clause" ]
null
null
null
from itertools import chain, combinations from ggsolver.ds import BaseGame from ggsolver.logic import Dfa def powerset(iterable): """ Returns all the subsets of this set. This is a generator. """ s = list(iterable) return chain.from_iterable(combinations(s, r) for r in range(len(s)+1)) def produ...
29.263158
103
0.666367
216d4f77a976867fc82d283ea9ebd6d27178a90c
47,002
py
Python
venv/lib/python3.7/site-packages/sqlalchemy/sql/type_api.py
Ryan0v0/SoftwareEngineering_Project
14486717095b33805fb1ea0f25a03152de25b7f4
[ "MIT" ]
13
2020-03-27T04:37:45.000Z
2022-03-27T12:50:30.000Z
venv/lib/python3.7/site-packages/sqlalchemy/sql/type_api.py
linqiunan/SoftwareEngineering_Project
14486717095b33805fb1ea0f25a03152de25b7f4
[ "MIT" ]
2
2020-04-06T17:44:37.000Z
2021-12-09T03:32:17.000Z
venv/lib/python3.7/site-packages/sqlalchemy/sql/type_api.py
linqiunan/SoftwareEngineering_Project
14486717095b33805fb1ea0f25a03152de25b7f4
[ "MIT" ]
3
2020-03-27T20:46:01.000Z
2022-03-05T08:57:40.000Z
# sql/types_api.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Base types API. """ from .. import exc, util from . import operators from .vi...
35.934251
81
0.642675
216d7711b8f66c9e9f82c0433280496a00ec4205
1,506
py
Python
mocu/kuramoto_model/num_sim_entk/determineSyncN.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/kuramoto_model/num_sim_entk/determineSyncN.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
mocu/kuramoto_model/num_sim_entk/determineSyncN.py
exalearn/oded
e706c48d60360b041b9f1cfc64fa208d01fbb65a
[ "MIT" ]
null
null
null
import numpy as np import time def determineSyncN(w, h, N, M, a): # if D=1, then sync # if D=0, then non-sync D = 0 theta = np.zeros(N) theta_old = np.zeros(N) diff_t = np.zeros((M,N)) for i in range(N): #theta[i] = 2.0*np.pi/(N)*i theta[i] = 0.0 theta_old = theta.cop...
22.818182
73
0.462151
216d9be13cae73af1813984b9d15e6cb6b602058
1,098
py
Python
twisted/plugins/genesis_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
3
2018-05-01T09:13:00.000Z
2018-06-26T03:01:07.000Z
twisted/plugins/genesis_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
twisted/plugins/genesis_tools.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
import json from twisted.application import service from twisted.plugin import IPlugin from twisted.python import usage, log from zope.interface import implementer from ccoin.genesis_helpers import make_genesis_block from twisted.plugins.base import ExecuteAndForgetService, Configurable class Options(usage.Options): ...
29.675676
78
0.701275
216da8acb47a1a8ffc5b6534f4b83b9065e40a01
1,837
py
Python
run_hpfspecmatch.py
sinclairej/hpfspecmatch-1
4e2604c734e74572b33aabc3b2b7d983888701d6
[ "MIT" ]
null
null
null
run_hpfspecmatch.py
sinclairej/hpfspecmatch-1
4e2604c734e74572b33aabc3b2b7d983888701d6
[ "MIT" ]
null
null
null
run_hpfspecmatch.py
sinclairej/hpfspecmatch-1
4e2604c734e74572b33aabc3b2b7d983888701d6
[ "MIT" ]
1
2021-06-11T15:37:20.000Z
2021-06-11T15:37:20.000Z
import hpfspec import hpfspecmatch import argparse if __name__=='__main__': parser = argparse.ArgumentParser(description="HPF SpecMatch: Match") parser.add_argument("filename",type=str,help="filename to reduce") parser.add_argument("object",type=str,help="HPF object to reduce (SIMBAD or TIC Queryable)") ...
48.342105
143
0.627109
216dbea8a850727cc2f73ffc30c8ffcf4ced4795
5,106
py
Python
tests/unit/fileserver/gitfs_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/unit/fileserver/gitfs_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
tests/unit/fileserver/gitfs_test.py
ari/salt
05de98e237719b4f0cc68f08871ffaa532eddec5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Erik Johnson <erik@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import import shutil import tempfile import textwrap import yaml try: import git # pylint: disable=unused-import HAS_GITPYTHON = True except ImportError: HAS_GI...
36.733813
79
0.599295
216e273053003c241fff764aed33723e78d1cad2
1,263
py
Python
minos/common/database/locks.py
Clariteia/minos_microservice_common
c58e8c193f5d9fd0980c209e6e74ee115a8fb041
[ "MIT" ]
5
2021-04-12T09:37:58.000Z
2021-10-04T08:37:05.000Z
minos/common/database/locks.py
Clariteia/minos_microservice_common
c58e8c193f5d9fd0980c209e6e74ee115a8fb041
[ "MIT" ]
400
2021-04-03T08:51:40.000Z
2022-01-28T11:51:22.000Z
minos/common/database/locks.py
Clariteia/minos_microservice_common
c58e8c193f5d9fd0980c209e6e74ee115a8fb041
[ "MIT" ]
null
null
null
from collections.abc import ( Hashable, ) from typing import ( AsyncContextManager, Optional, ) from aiopg import ( Connection, Cursor, ) from ..locks import ( Lock, ) class PostgreSqlLock(Lock): """"PostgreSql Lock class.""" cursor: Optional[Cursor] def __init__(self, wrapped_...
26.87234
111
0.665875
216e704aed5840412ef0e392bf76c8a25c1a2f07
96
py
Python
covid_stats/apps.py
cploutarchou/covid-19-tracker
896114097be79939073ac82734b146d7a50df586
[ "MIT" ]
null
null
null
covid_stats/apps.py
cploutarchou/covid-19-tracker
896114097be79939073ac82734b146d7a50df586
[ "MIT" ]
15
2020-09-09T17:57:15.000Z
2020-12-15T19:35:01.000Z
covid_stats/apps.py
cploutarchou/covid-19-tracker
896114097be79939073ac82734b146d7a50df586
[ "MIT" ]
null
null
null
from django.apps import AppConfig class CovidStatsConfig(AppConfig): name = 'covid_stats'
16
34
0.770833
216e84f46d86b4dd70fe6b9962aafaa085bba594
952
py
Python
chapter11/twisted/twisted_basic_server.py
yangwawa0323/Learning-Python-Networking-Second-Edition
5460fe4fb6acc5d0df19bf36e52ac09e9a11eb8b
[ "MIT" ]
52
2018-12-17T19:33:06.000Z
2022-03-25T18:14:02.000Z
chapter11/twisted/twisted_basic_server.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
null
null
null
chapter11/twisted/twisted_basic_server.py
barretthugh/Learning-Python-Networking-Second-Edition
0f00b8b20c1c85e76754e47113dff8ca9e99d5ca
[ "MIT" ]
38
2018-12-18T09:08:43.000Z
2022-02-06T02:53:05.000Z
#!/usr/bin/python3 from twisted.internet import reactor from twisted.internet.protocol import Protocol, Factory class MessageLogger(Protocol): def connectionMade(self): print('Client connection from:', self.transport.client) def connectionLost(self, reason): print('Client disconnected from:', self.transport....
26.444444
62
0.74895
216e8b14d9f10262fa969e7c4bae5833142e470d
15,574
py
Python
tests/api/test_remote_engine.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
646
2018-03-26T15:12:35.000Z
2022-03-21T18:52:42.000Z
tests/api/test_remote_engine.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
666
2018-03-27T20:21:27.000Z
2022-03-25T18:35:33.000Z
tests/api/test_remote_engine.py
SubhashishQPIT/strawberryfields
dae6ae8b1b3eb188fc2c874bd6c943bebf697ab9
[ "Apache-2.0" ]
182
2018-04-11T17:09:39.000Z
2022-03-29T15:38:43.000Z
# Copyright 2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
37.800971
103
0.658598
216e8fecbdb138c07eb6bdb5b48a647922b7807a
4,181
py
Python
scrapers/scrape_zg.py
maekke/covid_19
d287a2937f7f528b4ebd8fa1d1ff27b3dc1ad1ec
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_zg.py
maekke/covid_19
d287a2937f7f528b4ebd8fa1d1ff27b3dc1ad1ec
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_zg.py
maekke/covid_19
d287a2937f7f528b4ebd8fa1d1ff27b3dc1ad1ec
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python3 import collections import csv from io import StringIO import scrape_common as sc main_url = 'https://www.zg.ch/behoerden/gesundheitsdirektion/statistikfachstelle/themen/gesundheit/corona' ct_csv_url = 'https://www.zg.ch/behoerden/gesundheitsdirektion/statistikfachstelle/daten/themen/result-the...
44.956989
431
0.695288
216eb33ef62bc45e6a4a5c5261bee26b0a2c74a4
35,231
py
Python
tests/transport/test_pika.py
ndevenish/python-workflows
48cd9f7c6a26e03d73d4d19125910a7f583eba12
[ "BSD-3-Clause" ]
null
null
null
tests/transport/test_pika.py
ndevenish/python-workflows
48cd9f7c6a26e03d73d4d19125910a7f583eba12
[ "BSD-3-Clause" ]
null
null
null
tests/transport/test_pika.py
ndevenish/python-workflows
48cd9f7c6a26e03d73d4d19125910a7f583eba12
[ "BSD-3-Clause" ]
null
null
null
import argparse import copy import inspect import json import optparse import pprint import threading import uuid from queue import Empty, Queue from unittest import mock import pika import pytest import workflows import workflows.transport import workflows.transport.pika_transport from workflows.transport.pika_trans...
33.080751
147
0.678068
216ed395aedffe39b9ccf502f6d80914ee6f3d40
4,677
py
Python
system_a/scripts/wrapper_classifiers.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_a/scripts/wrapper_classifiers.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_a/scripts/wrapper_classifiers.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
import numpy as np import pickle import matplotlib.pyplot as plt from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.utils.validation import check_X_y, check_array, check_is_fitted from sklearn.utils.multiclass import unique_labels from sklearn.metrics import euclidean_distances from core_classifier im...
34.389706
146
0.657473
216ed3f55f42bd43daba7bc512a3eda17501274f
2,507
py
Python
Gui/images_viewer.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
Gui/images_viewer.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
Gui/images_viewer.py
grissutpl/OPS-Design
866fbff2d6106e35017aed750c67be79157d9c72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'images_viewer.ui' # # Created by: PyQt5 UI code generator 5.12 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): ...
40.435484
116
0.674112
216f109ae4260b88ccbb6dd5036307a25c08de83
9,417
py
Python
srfnef/corrections/psf/psf_fit.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/psf/psf_fit.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/corrections/psf/psf_fit.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: nef @file: psf_fit.py @date: 5/7/2019 @desc: ''' import numpy as np import os import scipy.optimize as opt import h5py from srfnef import nef_class import srfnef as nef from .fitted_x import FittedX from .fitted_y import FittedY from ....
36.929412
100
0.54837
216f1b7387f153a046798fe32afc9cbb879d869f
4,760
py
Python
src/code/settings/paths.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
2
2016-06-30T19:29:16.000Z
2016-06-30T21:12:15.000Z
src/code/settings/paths.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
null
null
null
src/code/settings/paths.py
kug3lblitz/Heat-Replay
b3b154cf24767096c11374cc14fa021c6bcd1772
[ "MIT" ]
null
null
null
#!/usr/bin/env python from os.path import abspath, exists # ----------------- Global directories ----------------- # DATA_DIR = abspath('../../data/') # main dir of all datasets if not exists(DATA_DIR): DATA_DIR = abspath('../../../data/') # main dir of all datasets FILE = '{file}.txt' # file formats ARCHI...
31.946309
78
0.671008
216f4acb4f727b82f88165fa211ee117d06b9cf4
3,314
py
Python
experiments/sasha/vqvae/old/cond_bair.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/vqvae/old/cond_bair.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/sasha/vqvae/old/cond_bair.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from rlkit.launchers.launcher_util import run_experiment ...
33.14
121
0.657212
216f4b310ca479d4220b10c0930ffa7c2c8dbac5
13,793
py
Python
vmware_vm_nutanix_cvm_vdi.py
ghzwireless/control
81525249962f840e2d286cdd87dee0f15f20fadb
[ "MIT" ]
5
2017-07-01T12:44:17.000Z
2018-11-22T04:47:32.000Z
vmware_vm_nutanix_cvm_vdi.py
riddhishikha15/SysAdminBoard
3e69c1fa194881c01e2424b0b313c8bb636a91b0
[ "MIT" ]
null
null
null
vmware_vm_nutanix_cvm_vdi.py
riddhishikha15/SysAdminBoard
3e69c1fa194881c01e2424b0b313c8bb636a91b0
[ "MIT" ]
1
2017-07-08T17:45:39.000Z
2017-07-08T17:45:39.000Z
#!/usr/bin/env python """vmware_vm - Exports JSON files with CPU and RAM data for VMware VMs # Requires VMware Python SDK: pyvmomi # pip install pyvmomi """ from credentials import VMWARE_VCENTER_USERNAME from credentials import VMWARE_VCENTER_PASSWORD import operator import time import json import logging.config f...
44.63754
117
0.610672
216f73f6fc88bb9ad81a524441efacbfec23c0c3
1,221
py
Python
exe0903.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0903.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe0903.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
class Usuario(): """[Classe criando um usuário] """ def __init__(self, nome, sobrenome, nivel_acesso, linguagem): """[Inicializa os atribuitos da classe] Args: nome ([str]): [primeiro nome] sobrenome ([str]): [sobrenome] nivel_acesso ([str]): [master, no...
28.395349
71
0.586405
216f98d0dc99813a61c1a837af4b9225483a26c4
641
py
Python
cleverhans/future/tf2/attacks/madry_et_al.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
2
2021-06-02T03:08:14.000Z
2021-07-02T03:32:17.000Z
cleverhans/future/tf2/attacks/madry_et_al.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
null
null
null
cleverhans/future/tf2/attacks/madry_et_al.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
1
2020-10-29T14:13:21.000Z
2020-10-29T14:13:21.000Z
""" The MadryEtAl attack """ from cleverhans.future.tf2.attacks.projected_gradient_descent import projected_gradient_descent def madry_et_al(model_fn, x, eps, eps_iter, nb_iter, norm, clip_min=None, clip_max=None, y=None, targeted=False, rand_minmax=0.3, sanity_checks=True): """ T...
37.705882
105
0.659906
216fbacfa74f3719fa7da4adcb2262f2ff447c73
11,146
py
Python
facexlib/assessment/hyperiqa_net.py
spy14414/facexlib
6be8bdcfe32198374c17588132a72022ad88ae3b
[ "MIT" ]
164
2021-05-15T20:15:42.000Z
2022-03-25T19:39:24.000Z
facexlib/assessment/hyperiqa_net.py
spy14414/facexlib
6be8bdcfe32198374c17588132a72022ad88ae3b
[ "MIT" ]
7
2021-08-03T15:56:49.000Z
2022-02-24T13:50:33.000Z
facexlib/assessment/hyperiqa_net.py
daobook/facexlib
e5768d1722a3fddc6ccd1b91a6a17f432ed149b4
[ "MIT" ]
32
2021-05-16T03:10:24.000Z
2022-03-19T12:02:00.000Z
import torch as torch import torch.nn as nn from torch.nn import functional as F class HyperIQA(nn.Module): """ Combine the hypernet and target network within a network. """ def __init__(self, *args): super(HyperIQA, self).__init__() self.hypernet = HyperNet(*args) def forward(se...
37.277592
138
0.620581
216fc0402ef5450409bbc2cb0865a314ca0535b5
202
py
Python
apps/admin/__init__.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
apps/admin/__init__.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
apps/admin/__init__.py
tuanquanghpvn/flask-intro
4dbc6bfbbdee13bc601b7ba8f10ede3635a2cfaf
[ "MIT" ]
null
null
null
from flask import Blueprint admin_blueprint = Blueprint('admin', __name__, static_folder='static', template_folder='templates', url_prefix='/admin') from .views import dashboard, category, post, user
33.666667
120
0.787129
216fcd92cbc6e98e398954034563e15c661de3d6
4,009
py
Python
alipay/aop/api/request/AlipayTradeMerchantCreditInitializeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayTradeMerchantCreditInitializeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayTradeMerchantCreditInitializeRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayTradeMerchantCreditInitializeModel import AlipayTradeMerchantCreditInitializeModel class AlipayTradeMerchantCreditInitializeRe...
27.648276
148
0.648042
216fe99379aba27d98b1afb5b22a4c916f443cd0
3,058
py
Python
pythagoras/tests/test_dicts_smoke.py
snglth/Pythagoras
95ad7af88f470174eea4cf060f31433d026c76c6
[ "MIT" ]
null
null
null
pythagoras/tests/test_dicts_smoke.py
snglth/Pythagoras
95ad7af88f470174eea4cf060f31433d026c76c6
[ "MIT" ]
null
null
null
pythagoras/tests/test_dicts_smoke.py
snglth/Pythagoras
95ad7af88f470174eea4cf060f31433d026c76c6
[ "MIT" ]
null
null
null
from pythagoras import FileDirDict, S3_Dict import pandas as pd from moto import mock_s3 def validate_dict_object(dict_to_test): dict_to_test.clear() model_dict = dict() a_key = dict_to_test._normalize_key(["Blah-Blah-Blah"]) assert a_key == dict_to_test._normalize_key(a_key) assert len(dict_to_t...
29.68932
107
0.610857
217029db38d6af0873ccb91da229268be62d10cc
768
py
Python
bflib/tables/attackbonus.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
bflib/tables/attackbonus.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
bflib/tables/attackbonus.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
class AttackBonusTable(object): inner_table = { 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 8, 10: 9, 11: 9, 12: 10, 13: 10, 14: 11, 15: 11, 16: 12, 17: 12, 18: 12, ...
17.454545
50
0.359375
21702c7e946c660d01ad370f0068a7c237e0497b
1,160
py
Python
multiagent_benchmark_53/example_adapter.py
oldpaws/AI3601_RL_Final_Project_MAGAIL
6e53d5c4ad21c9e3907e6d14b20c04b3287800cf
[ "MIT" ]
null
null
null
multiagent_benchmark_53/example_adapter.py
oldpaws/AI3601_RL_Final_Project_MAGAIL
6e53d5c4ad21c9e3907e6d14b20c04b3287800cf
[ "MIT" ]
null
null
null
multiagent_benchmark_53/example_adapter.py
oldpaws/AI3601_RL_Final_Project_MAGAIL
6e53d5c4ad21c9e3907e6d14b20c04b3287800cf
[ "MIT" ]
null
null
null
import gym import multiagent_benchmark_53.utils as utils def get_observation_adapter(obs_stack_size): stack_size = obs_stack_size # look_ahead = 10 closest_neighbor_num = 8 img_resolution = 40 observe_lane_num = 3 subscribed_features = dict( # distance_to_center=(stack_size, 1), ...
29.74359
86
0.680172
2170400362d1abe271842c9b7682d73bd44471b8
17,122
py
Python
src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py
saraedum/sage-renamed
d2da67b14da2ad766a5906425d60d43a3b3e1270
[ "BSL-1.0" ]
3
2016-06-19T14:48:31.000Z
2022-01-28T08:46:01.000Z
src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
null
null
null
src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py
rwst/sage
a9d274b9338e6ee24bf35ea8d25875507e51e455
[ "BSL-1.0" ]
7
2021-11-08T10:01:59.000Z
2022-03-03T11:25:52.000Z
""" Tornaria Methods for Computing with Quadratic Forms """ #***************************************************************************** # Copyright (C) 2007 Gonzalo Tornaria # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
25.747368
96
0.546023
217047f92d33448440c7acd1535fbdbf80bfe011
877
py
Python
tensorflow/contrib/receptive_field/python/__init__.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/contrib/receptive_field/python/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/contrib/receptive_field/python/__init__.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2016 The TensorFlow 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 required by applica...
43.85
80
0.711517
21704fe62c286bb8659ecacf840932e7d28cdf59
774
py
Python
utils/ana_score.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
null
null
null
utils/ana_score.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
3
2015-09-21T21:50:45.000Z
2015-09-22T15:42:28.000Z
utils/ana_score.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
2
2020-03-28T01:33:51.000Z
2021-07-18T13:56:27.000Z
import os import django import sys import traceback pro_dir = os.getcwd() sys.path.append(pro_dir) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BioDesigner.settings") from design.models import parts if __name__ == '__main__': django.setup() f = open('ans.txt', 'r') for line in f: infos = line....
25.8
79
0.571059
217051024ad0f02651204f5ec34f018d7b73eb02
24,546
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_firewall_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_firewall_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql_flexibleservers/operations/_firewall_rules_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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 may ...
43.291005
227
0.674407
21705781b2cd181caa522a7703e9be059eef9b2d
113
py
Python
fglib/tests/test_utils.py
ha0ransun/fglib
717a0e188ff3b7f05ccb9f2330f4a375dd03d907
[ "MIT" ]
58
2015-02-09T20:37:10.000Z
2021-10-07T01:51:27.000Z
fglib/tests/test_utils.py
ha0ransun/fglib
717a0e188ff3b7f05ccb9f2330f4a375dd03d907
[ "MIT" ]
9
2015-01-19T20:34:03.000Z
2021-07-08T01:44:38.000Z
fglib/tests/test_utils.py
ha0ransun/fglib
717a0e188ff3b7f05ccb9f2330f4a375dd03d907
[ "MIT" ]
18
2015-05-01T12:41:29.000Z
2022-01-18T00:02:18.000Z
import unittest class TestUtils(unittest.TestCase): pass if __name__ == "__main__": unittest.main()
10.272727
35
0.690265
21705c9b71c2b969c49e0e5ea0cb7a0dec634608
4,366
py
Python
tests/mmm/topology/topology-single-tenant-masq.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2015-05-19T08:36:55.000Z
2015-05-19T08:36:55.000Z
tests/mmm/topology/topology-single-tenant-masq.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mmm/topology/topology-single-tenant-masq.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Midokura SARL # # 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...
40.055046
78
0.556344
217092c2d0a0cf63575b5f18af261fa77739b4aa
1,712
py
Python
py/0055.jump-game.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0055.jump-game.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
py/0055.jump-game.py
ck2w/leetcode
2d411530b690a2e51b0ae518bf3efaad2edc1083
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=55 lang=python3 # # [55] Jump Game # # https://leetcode.com/problems/jump-game/description/ # # algorithms # Medium (35.14%) # Likes: 5773 # Dislikes: 402 # Total Accepted: 589.1K # Total Submissions: 1.7M # Testcase Example: '[2,3,1,1,4]' # # Given an array of non-negative integers nums,...
21.135802
79
0.581192
217094412d69722651a61772c476cc805d4d0e01
28,584
py
Python
src/qtt/simulation/dotsystem.py
eendebakpt/qtt
40f002b9fb7345e0312bbe8769ab12ecb12a2606
[ "MIT" ]
null
null
null
src/qtt/simulation/dotsystem.py
eendebakpt/qtt
40f002b9fb7345e0312bbe8769ab12ecb12a2606
[ "MIT" ]
null
null
null
src/qtt/simulation/dotsystem.py
eendebakpt/qtt
40f002b9fb7345e0312bbe8769ab12ecb12a2606
[ "MIT" ]
null
null
null
""" Simulation of a coupled dot system.""" # %% Load packages import numpy as np from numpy import linalg as la import itertools import matplotlib.pyplot as plt import time import copy from abc import abstractmethod import sys import logging try: import graphviz except ImportError: pass try: from pathos.m...
36.74036
117
0.580954