hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
a0064ba2f338d8b4a0b9c83ee9fa930a6f519428
2,454
py
Python
api/ProductApi.py
crippledfaith/shop
fb6a520170968e9f90d4d70c3f6a4e793b105e84
[ "Apache-2.0" ]
null
null
null
api/ProductApi.py
crippledfaith/shop
fb6a520170968e9f90d4d70c3f6a4e793b105e84
[ "Apache-2.0" ]
null
null
null
api/ProductApi.py
crippledfaith/shop
fb6a520170968e9f90d4d70c3f6a4e793b105e84
[ "Apache-2.0" ]
null
null
null
from flask_restful import reqparse get_parser = reqparse.RequestParser() get_parser.add_argument('product_id', type=str, required=False) get_parser.add_argument('category_id', type=str, required=False) put_parser = reqparse.RequestParser() put_parser.add_argument('name', type=str, required=True, ...
37.181818
69
0.635289
from helper.CommonHelper import CommonHelper from flask_restful import Resource, reqparse from model.Product import Product from service.ProductService import ProductService get_parser = reqparse.RequestParser() get_parser.add_argument('product_id', type=str, required=False) get_parser.add_argument('category_id', type...
0
0
0
1,185
0
0
0
73
89
aafe2626ec76f08a3528ff7391978ee39bf0ff40
1,769
py
Python
module/initializer.py
chencsgit/luoxi_models
ea9e69dfb81b29f41ed92c75faacf81114c69a2f
[ "Apache-2.0" ]
58
2022-03-28T06:16:51.000Z
2022-03-31T07:36:35.000Z
module/initializer.py
chencsgit/luoxi_models
ea9e69dfb81b29f41ed92c75faacf81114c69a2f
[ "Apache-2.0" ]
null
null
null
module/initializer.py
chencsgit/luoxi_models
ea9e69dfb81b29f41ed92c75faacf81114c69a2f
[ "Apache-2.0" ]
4
2022-03-28T06:23:25.000Z
2022-03-30T13:45:07.000Z
# -*- coding: utf-8 -*- # Copyright 2022 The Luoxi Team. # All rights reserved. # This source code is licensed under the Apache 2.0 license # found in the LICENSE file in the root directory. import torch # trunk model init # lite plugin model init # naive plugin model init if __name__ == '__main__': # model.ap...
34.019231
67
0.725269
# -*- coding: utf-8 -*- # Copyright 2022 The Luoxi Team. # All rights reserved. # This source code is licensed under the Apache 2.0 license # found in the LICENSE file in the root directory. import torch # trunk model init def default_weight_init(tensor): # torch.nn.init.xavier_uniform(tensor) torch.nn.init.x...
0
0
0
0
0
474
0
0
89
198607942cbec91f90a5251a04748bfcd45cf56d
224
py
Python
overrides/__init__.py
brentyi/overrides
59af886a60236a9a71b60c982bf41dfc6419231c
[ "Apache-2.0" ]
197
2015-05-23T13:51:47.000Z
2022-03-25T07:14:00.000Z
overrides/__init__.py
brentyi/overrides
59af886a60236a9a71b60c982bf41dfc6419231c
[ "Apache-2.0" ]
78
2015-05-25T20:00:22.000Z
2022-03-21T21:50:24.000Z
overrides/__init__.py
brentyi/overrides
59af886a60236a9a71b60c982bf41dfc6419231c
[ "Apache-2.0" ]
33
2015-05-28T14:14:38.000Z
2021-04-29T08:01:45.000Z
from overrides.enforce import EnforceOverrides from overrides.final import final from overrides.overrides import __VERSION__, overrides __all__ = [ "__VERSION__", "overrides", "final", "EnforceOverrides", ]
20.363636
54
0.745536
from overrides.enforce import EnforceOverrides from overrides.final import final from overrides.overrides import __VERSION__, overrides __all__ = [ "__VERSION__", "overrides", "final", "EnforceOverrides", ]
0
0
0
0
0
0
0
0
0
76ec92898267fdaec7165caef741a88c4463ae8b
15,567
py
Python
synapse/tests/test_axon.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
1
2021-02-15T22:07:05.000Z
2021-02-15T22:07:05.000Z
synapse/tests/test_axon.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
synapse/tests/test_axon.py
kcreyts/synapse
fe740fd1e0febfa32f8d431b32ab48f8a0cf306e
[ "Apache-2.0" ]
null
null
null
import hashlib import logging import unittest.mock as mock logger = logging.getLogger(__name__) # This causes blocks which are not homogeneous when sliced in kibibyte lengths bbuf = b'0123456' * 4793491 abuf = b'asdfasdf' pbuf = b'pennywise' rbuf = b'robert gray' bbufhash = hashlib.sha256(bbuf).digest() asdfhash = h...
37.692494
126
0.556498
import io import asyncio import hashlib import logging import unittest.mock as mock import aiohttp.client_exceptions as a_exc import synapse.exc as s_exc import synapse.axon as s_axon import synapse.common as s_common import synapse.telepath as s_telepath import synapse.lib.httpapi as s_httpapi import synapse.lib.ms...
0
0
14,358
13
0
0
0
97
490
d4e7b987c9b17b7b088e79bb764b80f5996f19d7
4,277
py
Python
fewshot/utils/experiment_logger.py
ashok-arjun/few-shot-ssl-public
f7577d80b7491e0f27234a2e9c0113782365c2e1
[ "MIT" ]
497
2018-03-02T00:50:53.000Z
2022-03-22T06:30:59.000Z
fewshot/utils/experiment_logger.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
20
2018-03-19T06:15:30.000Z
2021-11-20T07:21:38.000Z
fewshot/utils/experiment_logger.py
eleniTriantafillou/few-shot-ssl-public
3cf522031aa40b4ffb61e4693d0b48fdd5669276
[ "MIT" ]
108
2018-03-02T06:56:13.000Z
2021-12-23T03:40:43.000Z
# Copyright (c) 2018 Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, # Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, Richars S. Zemel. # # 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 th...
39.238532
80
0.654898
# Copyright (c) 2018 Mengye Ren, Eleni Triantafillou, Sachin Ravi, Jake Snell, # Kevin Swersky, Joshua B. Tenenbaum, Hugo Larochelle, Richars S. Zemel. # # 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 th...
0
0
0
2,763
0
0
0
-29
90
166aaf0992b3cc7a65eef361812939dfa9b26d27
836
py
Python
tests/command_line/test_refine_error_model.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/command_line/test_refine_error_model.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
tests/command_line/test_refine_error_model.py
dials-src/dials
25055c1f6164dc33e672e7c5c6a9c5a35e870660
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations
30.962963
80
0.702153
from __future__ import annotations import procrunner def test_standalone_error_model_refinement_on_scaled_data(dials_data, tmp_path): location = dials_data("l_cysteine_4_sweeps_scaled", pathlib=True) refls = location / "scaled_20_25.refl" expts = location / "scaled_20_25.expt" # Use a range of optio...
0
0
0
0
0
758
0
-4
46
a9c18dcb7aec4f486d25b068cc7562327a78bb53
2,399
py
Python
map.py
PyMLGame/pymlmario
dbece821d93b0d90d03507223be9f25997fafa17
[ "MIT" ]
null
null
null
map.py
PyMLGame/pymlmario
dbece821d93b0d90d03507223be9f25997fafa17
[ "MIT" ]
null
null
null
map.py
PyMLGame/pymlmario
dbece821d93b0d90d03507223be9f25997fafa17
[ "MIT" ]
null
null
null
# coding: utf-8 NONBLOCKING = 0 BLOCKING = 1 DESTROYABLE = 2
27.261364
71
0.551897
# coding: utf-8 from PIL import Image from pymlgame.surface import Surface NONBLOCKING = 0 BLOCKING = 1 DESTROYABLE = 2 class Map: def __init__(self, name): self.width = 0 self.height = 0 self._pixmap, self._nakedmap, self._colmap = self.load(name) def render_pixmap(self): "...
0
0
0
2,253
0
0
0
15
68
d72e48d0f6f6658d454c40d9f12d4884b3867612
1,304
py
Python
day-30/check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree.py
MateuszKudla/30-day-leet-coding-challange
fb6832eb83f8fe31fb1723875330b4ec145686c8
[ "MIT" ]
null
null
null
day-30/check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree.py
MateuszKudla/30-day-leet-coding-challange
fb6832eb83f8fe31fb1723875330b4ec145686c8
[ "MIT" ]
null
null
null
day-30/check-if-a-string-is-a-valid-sequence-from-root-to-leaves-path-in-a-binary-tree.py
MateuszKudla/30-day-leet-coding-challange
fb6832eb83f8fe31fb1723875330b4ec145686c8
[ "MIT" ]
null
null
null
if __name__ == "__main__": solution = Solution() root = buildTree(None, 0, [0,1,0,0,1,0,None,None,1,0,0]) result = solution.isValidSequence(root, [0,1,0,1]) print (result)
28.977778
86
0.58589
from typing import List class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def isValidSequence(self, root: TreeNode, arr: List[int]) -> bool: if root is None: return len(arr) == 0 ...
0
0
0
691
0
320
0
2
91
6c7623541cb960fe011ce94f95f176183f56c17e
18,894
py
Python
ArrayOfDotProducts/generatePlots.py
Sandia2014/intrepid
9a310ddc033da1dda162a09bf80cca6c2dde2d6b
[ "MIT" ]
null
null
null
ArrayOfDotProducts/generatePlots.py
Sandia2014/intrepid
9a310ddc033da1dda162a09bf80cca6c2dde2d6b
[ "MIT" ]
null
null
null
ArrayOfDotProducts/generatePlots.py
Sandia2014/intrepid
9a310ddc033da1dda162a09bf80cca6c2dde2d6b
[ "MIT" ]
null
null
null
import math import os import sys import numpy import scipy import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.cm as cm import csv from mpl_toolkits.mplot3d import Axes3D from numpy import log10 prefix = 'data/ArrayOfDotProducts_' suffix = '_clearCache_sha...
44.772512
203
0.721869
import math import os import sys import numpy import scipy import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.cm as cm import csv from mpl_toolkits.mplot3d import Axes3D from numpy import log10 prefix = 'data/ArrayOfDotProducts_' suffix = '_clearCache_sha...
0
0
0
0
0
0
0
0
0
35d65ee59e17fa97361dad2199329c8fa38477ca
2,816
py
Python
users/serializers.py
Mohamed-Kaizen/IWork-test
1212a06907fed7a6fc216744768f74ad9642c420
[ "MIT" ]
null
null
null
users/serializers.py
Mohamed-Kaizen/IWork-test
1212a06907fed7a6fc216744768f74ad9642c420
[ "MIT" ]
4
2021-04-08T20:14:49.000Z
2021-09-22T19:45:35.000Z
users/serializers.py
Mohamed-Kaizen/IWork-test
1212a06907fed7a6fc216744768f74ad9642c420
[ "MIT" ]
1
2020-12-15T20:50:58.000Z
2020-12-15T20:50:58.000Z
"""Collection serializers."""
27.607843
88
0.686435
"""Collection serializers.""" from typing import Any, Dict from dj_rest_auth.registration.serializers import RegisterSerializer from django.contrib.auth.password_validation import validate_password from rest_framework import exceptions, serializers from .models import CustomUser from .validators import ( validate...
0
0
0
2,324
0
0
0
232
226
6b2686cc02ae23c65ec39d013e75811b02f9c83f
6,469
py
Python
DatasetHandler/DatasetVizualizators.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
DatasetHandler/DatasetVizualizators.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
DatasetHandler/DatasetVizualizators.py
previtus/MGR-Project-Code
1126215059eb3f731dcf78ec24d9a480e73abce6
[ "MIT" ]
null
null
null
import numpy as np from PIL import Image import matplotlib, os #print "importing visual module" if not('DISPLAY' in os.environ): matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib.backends.backend_pdf import copy # customization: http://matplotlib.org/use...
29.81106
154
0.607822
import numpy as np from PIL import Image import matplotlib, os #print "importing visual module" if not('DISPLAY' in os.environ): matplotlib.use("Agg") import matplotlib.pyplot as plt import matplotlib.ticker as ticker import matplotlib.backends.backend_pdf import copy # customization: http://matplotlib.org/use...
0
0
0
0
0
0
0
0
0
c59d7cc897a4ffe054fd51e0e5bc8ff8e5a73b2a
8,652
py
Python
commands/storage/lmi/scripts/storage/cmd/mount.py
jsafrane/openlmi-scripts
8b1d4e9ec9091a0017d328700df739dfc0bd8eb5
[ "BSD-2-Clause-FreeBSD" ]
5
2017-09-15T14:18:08.000Z
2021-11-12T11:47:43.000Z
commands/storage/lmi/scripts/storage/cmd/mount.py
jsafrane/openlmi-scripts
8b1d4e9ec9091a0017d328700df739dfc0bd8eb5
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
commands/storage/lmi/scripts/storage/cmd/mount.py
jsafrane/openlmi-scripts
8b1d4e9ec9091a0017d328700df739dfc0bd8eb5
[ "BSD-2-Clause-FreeBSD" ]
3
2016-02-27T01:48:44.000Z
2020-07-27T13:58:22.000Z
# coding=utf-8 # Storage Management Providers # # Copyright (C) 2014 Red Hat, 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: # # 1. Redistributions of source code must retain the above copyrig...
37.947368
85
0.646556
# coding=utf-8 # Storage Management Providers # # Copyright (C) 2014 Red Hat, 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: # # 1. Redistributions of source code must retain the above copyrig...
0
0
0
3,213
0
0
0
199
204
9e44f0d5b01695096f14089522499b402b180501
5,439
py
Python
Converter.py
HorningT/GoogleColabPDF
1e9b4eeca812094b9ae4205a4833c4b3e83f7ac4
[ "MIT" ]
null
null
null
Converter.py
HorningT/GoogleColabPDF
1e9b4eeca812094b9ae4205a4833c4b3e83f7ac4
[ "MIT" ]
null
null
null
Converter.py
HorningT/GoogleColabPDF
1e9b4eeca812094b9ae4205a4833c4b3e83f7ac4
[ "MIT" ]
null
null
null
################################################################################ # CODE TO CONVERT COLAB NOTEBOOK TO PDF # #This code converts an .ipynb file to a Tex based PDF and saves it in the Colab# #Notebook folder with the same filename.pdf ...
45.705882
160
0.590366
################################################################################ # CODE TO CONVERT COLAB NOTEBOOK TO PDF # #This code converts an .ipynb file to a Tex based PDF and saves it in the Colab# #Notebook folder with the same filename.pdf ...
0
0
0
527
0
4,259
0
0
73
ecc10ee1793d4b788268a57798f381f55dc3e916
2,098
py
Python
rotkehlchen/tests/fixtures/assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
1
2020-11-14T12:20:37.000Z
2020-11-14T12:20:37.000Z
rotkehlchen/tests/fixtures/assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
3
2021-01-28T21:30:46.000Z
2022-03-25T19:17:00.000Z
rotkehlchen/tests/fixtures/assets.py
coblee/rotki
d675f5c2d0df5176337b7b10038524ee74923482
[ "BSD-3-Clause" ]
null
null
null
# We need auto-use here since the fixture needs to be included # everywhere so as to not have Asset() calls use a Resolver not # initialized from here which would take more time
32.276923
123
0.730696
from unittest.mock import patch import pytest from rotkehlchen.assets.resolver import AssetResolver from rotkehlchen.tests.utils.mock import MockResponse @pytest.fixture() def mock_asset_meta_github_response() -> str: return '{"md5": "", "version": 0}' @pytest.fixture() def mock_asset_github_response() -> str...
0
1,644
0
0
0
0
0
66
204
378107a37b43996269a9fc7970cdbe772aa0c035
901
py
Python
upk/apk.py
Cologler/upk-python
f20f4ff3167d7a5a089523154b0b8f47973ea311
[ "MIT" ]
null
null
null
upk/apk.py
Cologler/upk-python
f20f4ff3167d7a5a089523154b0b8f47973ea311
[ "MIT" ]
null
null
null
upk/apk.py
Cologler/upk-python
f20f4ff3167d7a5a089523154b0b8f47973ea311
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- from typing import Optional from logging import Logger import zipfile import xml.etree.ElementTree as et from .androidManifestDecompress import read def read_package_info(path: str, logger: Logger) -> Optio...
26.5
75
0.578246
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- from typing import TypedDict, Optional from logging import Logger import zipfile import xml.etree.ElementTree as et from .androidManifestDecompress import read class _PackageInfo(TypedDict): package: Op...
0
0
0
63
0
0
0
11
23
974ce64da67572bc816864864c616954b8d904e7
825
py
Python
publisher_subscriber/utils.py
taher-systango/DjangoUnboxed
808ab771a44564458b897b6ec854c08f43cccf2a
[ "MIT" ]
68
2018-05-04T13:00:59.000Z
2022-03-25T09:28:28.000Z
publisher_subscriber/utils.py
taher-systango/DjangoUnboxed
808ab771a44564458b897b6ec854c08f43cccf2a
[ "MIT" ]
38
2020-01-06T07:39:20.000Z
2022-01-07T07:49:38.000Z
publisher_subscriber/utils.py
aboudzein/Qzzz.me-API
b5ee8e63fb7cf58d26fb5b6e4c9f22c04e90df08
[ "MIT" ]
27
2018-10-17T17:35:42.000Z
2022-03-25T09:28:33.000Z
import redis # redis_instance = redis.StrictRedis(host='aerios-ec-dqu.3mvwix.0001.use1.cache.amazonaws.com', port=9000, db=0) redis_instance = redis.StrictRedis() pub_sub = redis_instance.pubsub() # print(subscriber("otp_channel")) # print(publisher("otp_channel", "Your otp is 12345")) # print(listen_message())...
20.121951
112
0.72
import redis # redis_instance = redis.StrictRedis(host='aerios-ec-dqu.3mvwix.0001.use1.cache.amazonaws.com', port=9000, db=0) redis_instance = redis.StrictRedis() pub_sub = redis_instance.pubsub() def publisher(channel, message): response = redis_instance.publish(channel, message) return response def sub...
0
0
0
0
0
382
0
0
92
0f845ff7713a901c36e313f0ec90833a966a20f2
137
py
Python
dataplicity/_version.py
wildfoundry/dataplicity-agent
896d6f7d160c987656a158f036024d2858981ccb
[ "BSD-3-Clause" ]
170
2016-09-14T10:35:24.000Z
2022-03-29T20:29:32.000Z
dataplicity/_version.py
wildfoundry/dataplicity-agent
896d6f7d160c987656a158f036024d2858981ccb
[ "BSD-3-Clause" ]
47
2016-09-12T16:18:41.000Z
2022-03-29T02:43:12.000Z
dataplicity/_version.py
wildfoundry/dataplicity-agent
896d6f7d160c987656a158f036024d2858981ccb
[ "BSD-3-Clause" ]
38
2016-09-14T10:35:25.000Z
2022-03-29T20:29:50.000Z
__version__ = "0.5.6" if __name__ == "__main__": # The build script uses this to extract the current version print(__version__)
22.833333
63
0.70073
__version__ = "0.5.6" if __name__ == "__main__": # The build script uses this to extract the current version print(__version__)
0
0
0
0
0
0
0
0
0
7409482c38010fc893ea9c527bf413a0027578d0
2,005
py
Python
tools/rgenetics/rgQQ_code.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
tools/rgenetics/rgQQ_code.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
tools/rgenetics/rgQQ_code.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
# before running the qc, need to rename various output files # <data format="html" name="html_file" /> # <data format="txt" name="log_file" parent="html_file" /> # <data format="tabular" name="marker_file" parent="html_file" /> # <data format="tabular" name="subject_file" parent="html_file" />
39.313725
97
0.457357
# before running the qc, need to rename various output files # <data format="html" name="html_file" /> # <data format="txt" name="log_file" parent="html_file" /> # <data format="tabular" name="marker_file" parent="html_file" /> # <data format="tabular" name="subject_file" parent="html_file" /> ...
0
0
0
0
0
1,609
0
9
68
50ac6c7feceda98367989afa0c3fa92c0012d97f
7,823
py
Python
python/seq2seq_all_inputs/model.py
prashant-jayan21/minecraft-dialogue-models
9becd5cc53d60be4d93b0581aed3ad48db635f47
[ "NCSA" ]
1
2021-07-01T15:43:01.000Z
2021-07-01T15:43:01.000Z
python/seq2seq_all_inputs/model.py
prashant-jayan21/minecraft-dialogue-models
9becd5cc53d60be4d93b0581aed3ad48db635f47
[ "NCSA" ]
1
2019-11-12T21:15:04.000Z
2019-11-12T23:19:55.000Z
python/seq2seq_all_inputs/model.py
prashant-jayan21/minecraft-dialogue-models
9becd5cc53d60be4d93b0581aed3ad48db635f47
[ "NCSA" ]
6
2020-02-24T22:18:21.000Z
2021-10-04T11:51:56.000Z
import sys import torch.nn as nn sys.path.append('..')
59.265152
321
0.785249
import torch, sys import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence sys.path.append('..') from utils import * from seq2seq_attn.model import EncoderRNN as PrevUtterancesEncoder from seq2seq_world_state.model import NextActionsEncoder, BlockCo...
0
0
0
7,369
0
0
0
196
202
36b6f73164dd36acdc462c622e987758d276f3a5
83
py
Python
Iniciante/1002/1002.py
RodrigoFernandoSilva/Python3-UriOnlineJudge
f9095c2d053b85056c1cad55bc743378b852a4d4
[ "Apache-2.0" ]
null
null
null
Iniciante/1002/1002.py
RodrigoFernandoSilva/Python3-UriOnlineJudge
f9095c2d053b85056c1cad55bc743378b852a4d4
[ "Apache-2.0" ]
null
null
null
Iniciante/1002/1002.py
RodrigoFernandoSilva/Python3-UriOnlineJudge
f9095c2d053b85056c1cad55bc743378b852a4d4
[ "Apache-2.0" ]
null
null
null
PI = float(3.14159) raio = float(input()) print("A=%0.4f" %(PI * (raio * raio)))
13.833333
38
0.554217
PI = float(3.14159) raio = float(input()) print("A=%0.4f" %(PI * (raio * raio)))
0
0
0
0
0
0
0
0
0
143a98feebc85c217a2d46c8d63cd705d3f9ca85
1,759
py
Python
code/pylesson/challenge1/disney_checker.py
HeardLibrary/digital-scholarship
c2a791376ecea4efff4ff57c7a93b291b605d956
[ "CC0-1.0" ]
25
2018-09-27T03:46:38.000Z
2022-03-13T00:08:22.000Z
code/pylesson/challenge1/disney_checker.py
HeardLibrary/digital-scholarship
c2a791376ecea4efff4ff57c7a93b291b605d956
[ "CC0-1.0" ]
22
2019-07-23T15:30:14.000Z
2022-03-29T22:04:37.000Z
code/pylesson/challenge1/disney_checker.py
HeardLibrary/digital-scholarship
c2a791376ecea4efff4ff57c7a93b291b605d956
[ "CC0-1.0" ]
18
2019-01-28T16:40:28.000Z
2022-01-13T01:59:00.000Z
#modules for GUI interface from tkinter import ttk # User interface setup # this sets up the characteristics of the window root = Tk() root.title("Disney Checker") mainframe = ttk.Frame(root, padding="3 3 12 12") mainframe.grid(column=0, row=0, sticky=(N, W, E, S)) mainframe.columnconfigure(0, weight=1) mainframe.row...
33.188679
127
0.664014
#modules for GUI interface import tkinter from tkinter import * from tkinter import ttk # User interface setup # this sets up the characteristics of the window root = Tk() root.title("Disney Checker") mainframe = ttk.Frame(root, padding="3 3 12 12") mainframe.grid(column=0, row=0, sticky=(N, W, E, S)) mainframe.colum...
0
0
0
0
0
593
0
-7
112
d1dc24d065ab992955504784c618791fbfda2b40
3,945
py
Python
docker/pythonpath_dev/superset_config.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
null
null
null
docker/pythonpath_dev/superset_config.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
null
null
null
docker/pythonpath_dev/superset_config.py
akashanita/superset-keycloak
1d446ecf723d1cb0c43057d501cf1e7b83fa27ff
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.432203
87
0.726996
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
0
0
0
871
0
0
0
15
79
c54610fc54cef73e3cf59b3da4a82764d06819d4
443
py
Python
2212.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
2212.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
2212.py
WaiNaat/BOJ-Python
3365ef090c7dcf6e6a598fea0b25c416a5a3e01b
[ "MIT" ]
null
null
null
# input n = int(input()) k = int(input()) sensor = map(int, input().split()) # process ''' >> >> >> >> k ''' sensor = sorted(sensor) dist = sorted([sensor[i + 1] - sensor[i] for i in range(n - 1)]) # output print(sum(dist[: (n - 1) - (k - 1)]))
20.136364
64
0.607223
# input n = int(input()) k = int(input()) sensor = map(int, input().split()) # process ''' 센서들의 좌표를 정렬 각 센서마다 본인 다음 센서와의 거리를 계산 거리들 정렬 가장 긴 거리 제거 >> 처음에는 하나였던 센서들이 두 개의 묶음으로 쪼개짐 >> 두 개의 집중국 다시 가장 긴 거리 제거 >> 두 묶음이었던 센서 중 하나가 쪼개지면서 총 세 개의 묶음이 됨 >> 세 개의 집중국 이런 식으로 k개의 집중국이 될 때까지 최대 거리를 제거 남은 거리들의 합 계산 ''' sensor = sor...
414
0
0
0
0
0
0
0
0
f2282beaefe4bfc3184a6b7f4f573d5259dc25bd
346
py
Python
excercises/6-0002/whatever.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0002/whatever.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0002/whatever.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
print(experiment(1_000_000))
19.222222
48
0.473988
import random def experiment(trials): single = 0 for n in range(trials): x = random.choice((1, 2, 3, 4)) # P(1/4) y = random.choice((1, 2, 3, 4)) # P(1/4) # P(A + B) % 2 == 0 if (x + y) % 2 == 0: single += 1 # P(1/4 + 1/4 == even) return single/trials pri...
0
0
0
0
0
278
0
-8
45
ec566b248c5bad33378d93b615f2cf14703052aa
1,607
py
Python
genomestats.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
genomestats.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
genomestats.py
rvenkatesh99/sequence_alignment
107c262ef25ddbf025e054339bdd29efd728033a
[ "MIT" ]
null
null
null
import argparse import seqlib parser = argparse.ArgumentParser( description='Calculate statistics for genome') parser.add_argument('--fasta', required = True, type = str, metavar = '<path>', help='path to a fasta file, may be compressed') arg = parser.parse_args() contig_size = [] nt_count = {} for name, seq in se...
25.109375
68
0.697573
import argparse import sys import seqlib parser = argparse.ArgumentParser( description='Calculate statistics for genome') parser.add_argument('--fasta', required = True, type = str, metavar = '<path>', help='path to a fasta file, may be compressed') arg = parser.parse_args() contig_size = [] nt_count = {} for name...
0
0
0
0
0
0
0
-11
22
e7f9da9bcee463beee3749304734d143c54caa04
4,012
py
Python
optht/optht.py
decarsg/optht
5e2b287cc00b08d9364ffec8d0b9e0c482ec614a
[ "BSD-3-Clause" ]
19
2018-03-19T19:12:07.000Z
2021-12-03T15:11:58.000Z
optht/optht.py
Benli11/optht
5e2b287cc00b08d9364ffec8d0b9e0c482ec614a
[ "BSD-3-Clause" ]
7
2019-07-08T16:09:52.000Z
2022-02-04T14:55:05.000Z
optht/optht.py
decarsg/optht
5e2b287cc00b08d9364ffec8d0b9e0c482ec614a
[ "BSD-3-Clause" ]
9
2018-06-05T06:19:37.000Z
2021-07-22T20:10:13.000Z
"""Optimal hard threshold for matrix denoising.""" import logging import numpy as np from scipy import integrate # Create logger log = logging.getLogger(__name__) def optht(beta, sv, sigma=None): """Compute optimal hard threshold for singular values. Off-the-shelf method for determining the optimal singul...
28.863309
78
0.570289
"""Optimal hard threshold for matrix denoising.""" import logging import numpy as np from scipy import integrate # Create logger log = logging.getLogger(__name__) def optht(beta, sv, sigma=None): """Compute optimal hard threshold for singular values. Off-the-shelf method for determining the optimal singul...
0
0
0
0
0
0
0
0
0
eae7563a2a9a73c8a12a397987adfafafa20b43e
2,924
py
Python
NoLossAsyncGenerator/NoLossAsyncGenerator.py
monk-after-90s/NoLossAsyncGenerator
b5d3872446a88b294d492510e0d3b5c3938dd2b7
[ "MIT" ]
null
null
null
NoLossAsyncGenerator/NoLossAsyncGenerator.py
monk-after-90s/NoLossAsyncGenerator
b5d3872446a88b294d492510e0d3b5c3938dd2b7
[ "MIT" ]
null
null
null
NoLossAsyncGenerator/NoLossAsyncGenerator.py
monk-after-90s/NoLossAsyncGenerator
b5d3872446a88b294d492510e0d3b5c3938dd2b7
[ "MIT" ]
null
null
null
''' Asynchronous generator without any data loss in case that handling one message costs too much time. ''' import asyncio # def NoLossAsyncGenerator(raw_async_iterater): # async def no_data_loss_async_generator_wrapper(raw_async_iterater): # q = asyncio.Queue() # # async def yield2q(raw_async_it...
25.876106
99
0.575923
''' Asynchronous generator without any data loss in case that handling one message costs too much time. ''' import asyncio from ensureTaskCanceled.ensureTaskCanceled import ensureTaskCanceled class NoLossAsyncGenerator: def __init__(self, raw_async_iterater=None): self.q = asyncio.Queue() self.raw...
33
207
1,197
390
0
88
0
47
122
6694f9353aaed1385c9fee1c9ada58e4686644ef
375
py
Python
products/urls.py
Valli-dev/Price-Comparison-Group2-BE
a331d3ae3e654a7b3b6fc8dc08551afe8c925a9c
[ "MIT" ]
1
2021-07-24T14:43:02.000Z
2021-07-24T14:43:02.000Z
products/urls.py
Valli-dev/Price-Comparison-Group2-BE
a331d3ae3e654a7b3b6fc8dc08551afe8c925a9c
[ "MIT" ]
null
null
null
products/urls.py
Valli-dev/Price-Comparison-Group2-BE
a331d3ae3e654a7b3b6fc8dc08551afe8c925a9c
[ "MIT" ]
16
2021-07-15T06:16:25.000Z
2021-08-20T06:06:02.000Z
from django.urls import path from . import views app_name='products' urlpatterns = [ path('amazon', views.amazon, name='amazon'), path('ebay', views.ebay, name='ebay'), path('<int:id>/', views.product_detail, name="product_detail"), path('product_comparison/<int:id>/',views.product_comparison,name="p...
26.785714
91
0.714667
from django.urls import path from .import views from blog.views import like_view app_name='products' urlpatterns = [ path('amazon', views.amazon, name='amazon'), path('ebay', views.ebay, name='ebay'), path('<int:id>/', views.product_detail, name="product_detail"), path('product_comparison/<int:id>/',...
0
0
0
0
0
0
0
10
22
1da3beb5dfb84cdb492acb3a5482de7e6919a7ed
5,658
py
Python
jina/executors/encoders/frameworks.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
null
null
null
jina/executors/encoders/frameworks.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
null
null
null
jina/executors/encoders/frameworks.py
yuanl/jina
989d0689353bbbcd2c7bf11928b652224c3d4bf7
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" # mixin classes go first, base classes are read from right to left.
39.566434
126
0.668611
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import os from . import BaseEncoder from ..devices import OnnxDevice, PaddleDevice, TorchDevice, TFDevice, MindsporeDevice from ...excepts import ModelCheckpointNotExist from ...helper import is_url, cached_property ...
0
450
0
4,700
0
0
0
106
226
9f240a8711f808b0425640824b52b37351a57d27
477
py
Python
bin/prettify_pkg.py
taette/Moa-
d7a30fe74f4cd183b4f13c9b7fd7c11cf4fb9e24
[ "CC-BY-4.0" ]
null
null
null
bin/prettify_pkg.py
taette/Moa-
d7a30fe74f4cd183b4f13c9b7fd7c11cf4fb9e24
[ "CC-BY-4.0" ]
null
null
null
bin/prettify_pkg.py
taette/Moa-
d7a30fe74f4cd183b4f13c9b7fd7c11cf4fb9e24
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python import os import json import collections pwd = os.path.dirname(os.path.abspath(__file__)) root = os.path.dirname(pwd) try: f = open(os.path.join(root, 'Rules.1blockpkg')) obj = json.load(f, object_pairs_hook=collections.OrderedDict) try: json_file = open(os.path.join(root, 'Ru...
26.5
73
0.658281
#!/usr/bin/env python import os import json import collections pwd = os.path.dirname(os.path.abspath(__file__)) root = os.path.dirname(pwd) try: f = open(os.path.join(root, 'Rules.1blockpkg')) obj = json.load(f, object_pairs_hook=collections.OrderedDict) try: json_file = open(os.path.join(root, 'Ru...
0
0
0
0
0
0
0
0
0
0566e60581aad6944e3eaf4392d45b2caa45dfda
2,425
py
Python
sources/D2sec.py
CriimBow/VIA4CVE
96253efb74f69608574a66f03e548d8049ff7bdf
[ "BSD-3-Clause" ]
109
2016-11-25T23:27:49.000Z
2022-03-19T19:22:13.000Z
sources/D2sec.py
CriimBow/VIA4CVE
96253efb74f69608574a66f03e548d8049ff7bdf
[ "BSD-3-Clause" ]
20
2016-12-21T15:00:35.000Z
2020-07-07T23:12:21.000Z
sources/D2sec.py
CriimBow/VIA4CVE
96253efb74f69608574a66f03e548d8049ff7bdf
[ "BSD-3-Clause" ]
37
2016-11-29T10:16:41.000Z
2021-12-16T07:27:11.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Source file for d2sec exploit information # # Software is free software released under the "Modified BSD license" # # Copyright (c) 2016 Pieter-Jan Moreels - pieterjan.moreels@gmail.com # Sources SOURCE_NAME = 'd2sec' SOURCE_FILE = "https://www.d2sec.com/exploits/e...
31.493506
72
0.644536
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Source file for d2sec exploit information # # Software is free software released under the "Modified BSD license" # # Copyright (c) 2016 Pieter-Jan Moreels - pieterjan.moreels@gmail.com # Sources SOURCE_NAME = 'd2sec' SOURCE_FILE = "https://www.d2sec.com/exploits/e...
0
0
0
1,789
0
0
0
92
201
c5578e027dd764a77aa3c053dbb8719776c4622a
18,000
py
Python
tests/parameters_t.py
boosterl/loris
d6e241a487990bf80fcb76e27413ba465aafe6e6
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
tests/parameters_t.py
boosterl/loris
d6e241a487990bf80fcb76e27413ba465aafe6e6
[ "BSD-2-Clause", "BSD-3-Clause" ]
4
2021-06-08T23:38:37.000Z
2022-03-12T00:49:54.000Z
tests/parameters_t.py
boosterl/loris
d6e241a487990bf80fcb76e27413ba465aafe6e6
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# parameters_t.py #-*- coding: utf-8 -*- from __future__ import absolute_import from loris import img_info def build_image_info(width=100, height=100): """Produces an ``ImageInfo`` object of the given dimensions.""" info = img_info.ImageInfo(None) info.width = width info.height = height return i...
37.422037
79
0.6445
# parameters_t.py #-*- coding: utf-8 -*- from __future__ import absolute_import from decimal import Decimal from hypothesis import given from hypothesis.strategies import text import pytest from loris import img_info from loris.loris_exception import RequestException, SyntaxException from loris.parameters import ( ...
0
486
0
16,764
0
0
0
175
248
935dd7948ece10a4eeaa8cadd2a7d13d41ab929c
2,408
py
Python
packages/api-server/api_server/routes/lifts.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
23
2021-04-13T23:01:12.000Z
2022-03-21T02:15:24.000Z
packages/api-server/api_server/routes/lifts.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
326
2021-03-10T17:32:17.000Z
2022-03-30T04:42:14.000Z
packages/api-server/api_server/routes/lifts.py
mayman99/rmf-web
5670bd943567c6a866ec6345c972e6fb84d73476
[ "Apache-2.0" ]
13
2021-04-10T10:33:36.000Z
2022-02-22T15:39:58.000Z
from api_server.fast_io import FastIORouter router = FastIORouter(tags=["Lifts"])
30.871795
73
0.741279
from typing import List, cast from fastapi import Depends, HTTPException from rx import operators as rxops from api_server.dependencies import sio_user from api_server.fast_io import FastIORouter, SubscriptionRequest from api_server.gateway import rmf_gateway from api_server.models import Lift, LiftHealth, LiftReques...
0
1,787
0
0
0
0
0
216
316
134219f719a18cd1d68a4417c0352c735e650bcc
3,348
py
Python
ax/core/metric.py
xiecong/Ax
f6501807bbc6bb952d636391231ebeb10646769a
[ "MIT" ]
1
2020-03-07T08:26:05.000Z
2020-03-07T08:26:05.000Z
ax/core/metric.py
aerometu/Ax
1dc24d52fcb21308f9559374409296260e1bfc79
[ "MIT" ]
null
null
null
ax/core/metric.py
aerometu/Ax
1dc24d52fcb21308f9559374409296260e1bfc79
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import TYPE_CHECKING if TYPE_CHECKING: # pragma: no cover # import as module to make sphinx-autodoc-...
31
87
0.616786
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import TYPE_CHECKING, Any, Iterable, Optional from ax.core.base import Base from ax.core.data import Data ...
0
1,252
0
1,613
0
0
0
39
107
9f9e61519a9ea605ad4da969e28f7e4c1c33fc4b
5,498
py
Python
http_page_monitor/tests/test_page_watcher.py
obver-se/http_page_monitor
f6a91c21805f06d957dfa8d2dbba2646a7255517
[ "MIT" ]
null
null
null
http_page_monitor/tests/test_page_watcher.py
obver-se/http_page_monitor
f6a91c21805f06d957dfa8d2dbba2646a7255517
[ "MIT" ]
null
null
null
http_page_monitor/tests/test_page_watcher.py
obver-se/http_page_monitor
f6a91c21805f06d957dfa8d2dbba2646a7255517
[ "MIT" ]
null
null
null
""" Tests the PageWatcher class to ensure that requests are being made and compared properly """ from .. import watchers
36.171053
87
0.611131
""" Tests the PageWatcher class to ensure that requests are being made and compared properly """ import unittest import time from http_page_monitor.tests.logging_http_server\ import setup_logging_server from .. import watchers class TestPageWatcher(unittest.TestCase): """ Tests the PageWatcher class """ ...
0
146
0
5,092
0
0
0
44
90
a07ac499c1e610cf7378565a845011d5aa52bace
2,987
py
Python
geth.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
geth.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
geth.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
1
2018-07-27T07:19:49.000Z
2018-07-27T07:19:49.000Z
CHAINDATA_DIR = './chaindata' DAPP_DIR = './dapp' NODEKEY_FILENAME = 'nodekey' IPC_FILENAME = 'geth.ipc'
22.976923
78
0.642451
import os import sys import datetime from .filesystem import ( remove_dir_if_exists, remove_file_if_exists, normpath, ) from .chains import ( get_base_blockchain_storage_dir, ) @normpath def get_data_dir(project_dir, chain_name): base_blockchain_storage_dir = get_base_blockchain_storage_dir(proje...
0
2,120
0
0
0
344
0
83
318
cb5985a9c6c2cc841fc757d28ef97e2ad726951a
65,641
py
Python
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/VF.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/VF.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/VF.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
############################################################################# # # Author: Michel F. SANNER # # Copyright: M. Sanner TSRI 2000 # # revision: Guillaume Vareille # ######################################################################### # # $Header: /opt/cvs/python/packages/share1.5/ViewerFramework/VF.py,...
39.854888
174
0.566262
############################################################################# # # Author: Michel F. SANNER # # Copyright: M. Sanner TSRI 2000 # # revision: Guillaume Vareille # ######################################################################### # # $Header: /opt/cvs/python/packages/share1.5/ViewerFramework/VF.py,...
0
0
0
60,111
0
0
0
596
620
0b0ea4d141447e0f90defb3e572d86ff6e3fe1d9
1,033
py
Python
4_web-scraping/04_02/fx.py
scaotravis/Data-Ingestion
dec4fcc024680ff264ef215579f2e8c4dd898fce
[ "MIT" ]
1
2021-02-26T13:12:22.000Z
2021-02-26T13:12:22.000Z
4_web-scraping/04_02/fx.py
scaotravis/Data-Ingestion
dec4fcc024680ff264ef215579f2e8c4dd898fce
[ "MIT" ]
null
null
null
4_web-scraping/04_02/fx.py
scaotravis/Data-Ingestion
dec4fcc024680ff264ef215579f2e8c4dd898fce
[ "MIT" ]
null
null
null
"""Parsing HTML with BeautifulSoup""" from datetime import datetime from bs4 import BeautifulSoup def parse_html(html): """Parse FX html, return date and dict of {symbol -> rate}""" soup = BeautifulSoup(html, 'html.parser') # <h4>Date: <i class="date">2019-11-11</i></h4> i = soup('i', {'class': 'dat...
25.195122
65
0.554695
"""Parsing HTML with BeautifulSoup""" from datetime import datetime from bs4 import BeautifulSoup def parse_html(html): """Parse FX html, return date and dict of {symbol -> rate}""" soup = BeautifulSoup(html, 'html.parser') # <h4>Date: <i class="date">2019-11-11</i></h4> i = soup('i', {'class': 'dat...
0
0
0
0
0
0
0
0
0
93eb493f45e15941ab5340ed2a3379cb5719924f
706
py
Python
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/04_For-Loop/00-Book-Exercise-5.1-08-Odd-Even-Sum.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/04_For-Loop/00-Book-Exercise-5.1-08-Odd-Even-Sum.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
1-Python-Programming-Basics (Sep 2020)/Course-Exercises-and-Exams/04_For-Loop/00-Book-Exercise-5.1-08-Odd-Even-Sum.py
karolinanikolova/SoftUni-Software-Engineering
7891924956598b11a1e30e2c220457c85c40f064
[ "MIT" ]
null
null
null
# / # , n # . "Yes" + , "No" + . # . -. n = int(input()) sum_even = 0 sum_odd = 0 for i in range(1, n + 1): current_num = int(input()) if i % 2 == 0: sum_even = sum_even + current_num else: sum_odd = sum_odd + current_num if sum_even == sum_od...
29.416667
121
0.668555
# четна / нечетна сума # Да се напише програма, която въвежда n цели числа и проверява дали сумата на числата на четни позиции е равна на сумата # на числата на нечетни позиции. При равенство печата "Yes" + сумата, иначе печата "No" + разликата. # Разликата се изчислява по абсолютна стойност. Форматът на изхода трябва ...
530
0
0
0
0
0
0
0
0
85613e1836186b23c7151266b7a97e5cd634efa3
29
py
Python
terrascript/softlayer/d.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/softlayer/d.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/softlayer/d.py
hugovk/python-terrascript
08fe185904a70246822f5cfbdc9e64e9769ec494
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/softlayer/d.py
14.5
28
0.793103
# terrascript/softlayer/d.py
0
0
0
0
0
0
0
0
0
2c69ec7773598c5f8a3a90135beee7b6b38da4ad
745
py
Python
setup.py
yonghoonlee/pyMaxPro-lite
011a149e2424251645b31e7c290c7bb94646941b
[ "BSD-3-Clause" ]
2
2021-11-17T14:57:24.000Z
2021-11-17T14:57:27.000Z
setup.py
yonghoonlee/pyMaxPro_lite
011a149e2424251645b31e7c290c7bb94646941b
[ "BSD-3-Clause" ]
null
null
null
setup.py
yonghoonlee/pyMaxPro_lite
011a149e2424251645b31e7c290c7bb94646941b
[ "BSD-3-Clause" ]
null
null
null
import os from setuptools import find_packages from numpy.distutils.core import setup base_dir = os.path.dirname(__file__) src_dir = os.path.join(base_dir, "pymaxpro_lite") about = {} with open(os.path.join(src_dir, "__about__.py")) as f: exec(f.read(), about) pkgs = find_packages() if __name__ == "__main__": ...
26.607143
54
0.597315
import os from setuptools import find_packages from numpy.distutils.core import setup base_dir = os.path.dirname(__file__) src_dir = os.path.join(base_dir, "pymaxpro_lite") about = {} with open(os.path.join(src_dir, "__about__.py")) as f: exec(f.read(), about) pkgs = find_packages() if __name__ == "__main__": ...
0
0
0
0
0
0
0
0
0
d0370a0ce2b2d3b1b3c3b027875135b72d85974e
5,342
py
Python
functionaltests/client/v1/smoke/test_orders.py
mail2nsrajesh/python-barbicanclient
439ee25dc6c998e5571022ce0094a10c2611d717
[ "Apache-2.0" ]
35
2015-01-29T20:10:47.000Z
2022-02-28T12:39:06.000Z
functionaltests/client/v1/smoke/test_orders.py
mail2nsrajesh/python-barbicanclient
439ee25dc6c998e5571022ce0094a10c2611d717
[ "Apache-2.0" ]
null
null
null
functionaltests/client/v1/smoke/test_orders.py
mail2nsrajesh/python-barbicanclient
439ee25dc6c998e5571022ce0094a10c2611d717
[ "Apache-2.0" ]
19
2015-01-19T08:32:17.000Z
2021-01-26T12:19:52.000Z
# Copyright (c) 2015 Rackspace, 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 wr...
32.573171
79
0.646574
# Copyright (c) 2015 Rackspace, 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 wr...
0
3,915
0
0
0
0
0
60
112
451bcfc900601e7113ff912c1afc38f859714e33
9,872
py
Python
src/anim_test.py
MaxThom/SpectrumLight
34fcc670ccb35c956518453ceef94bd17611c771
[ "MIT" ]
null
null
null
src/anim_test.py
MaxThom/SpectrumLight
34fcc670ccb35c956518453ceef94bd17611c771
[ "MIT" ]
null
null
null
src/anim_test.py
MaxThom/SpectrumLight
34fcc670ccb35c956518453ceef94bd17611c771
[ "MIT" ]
null
null
null
from rpi_ws281x import Color, ws import time import random #import cv2 #from skimage.transform import resize, rescale # LED strip configuration: LED_COUNT = 2304 # Number of LED pixels. LED_PIN = 18 # GPIO pin connected to the pixels (must support PWM!). LED_FREQ_HZ = 800000 # LED signal frequency i...
35.257143
116
0.597549
from rpi_ws281x import Color, PixelStrip, ws import time from threading import Thread import random from PIL import Image import numpy as np #import cv2 from skimage import io, transform #from skimage.transform import resize, rescale # LED strip configuration: LED_COUNT = 2304 # Number of LED pixels. LED_PIN = ...
0
0
0
0
0
5,884
0
28
295
fe37078b1662582839cdd656d08771935b757fd4
2,256
py
Python
components/channel.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
19
2019-05-05T17:43:26.000Z
2022-03-25T12:25:22.000Z
components/channel.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
12
2019-08-10T04:13:18.000Z
2021-12-13T13:34:11.000Z
components/channel.py
MizaGBF/MizaBOT
416043f3eef4365611ae2516293f741e27862623
[ "MIT" ]
12
2019-08-09T10:38:46.000Z
2022-01-20T21:20:44.000Z
# ---------------------------------------------------------------------------------------------------------------- # Channel Component # ---------------------------------------------------------------------------------------------------------------- # This component lets you register channels with a keyword to be ...
32.695652
116
0.448582
# ---------------------------------------------------------------------------------------------------------------- # Channel Component # ---------------------------------------------------------------------------------------------------------------- # This component lets you register channels with a keyword to be ...
0
0
0
1,751
0
0
0
0
24
7805cd7d49cc4b86e9dff77d16c6b12bea8344ac
1,410
py
Python
flaskr/main.py
nEXO-collaboration/nexo-asset-tracker
936b31221db5e756240eddcd713091b8c74c8860
[ "BSD-3-Clause" ]
null
null
null
flaskr/main.py
nEXO-collaboration/nexo-asset-tracker
936b31221db5e756240eddcd713091b8c74c8860
[ "BSD-3-Clause" ]
null
null
null
flaskr/main.py
nEXO-collaboration/nexo-asset-tracker
936b31221db5e756240eddcd713091b8c74c8860
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint # from asset_tracker_restapi import asset_tracker_restapi bp = Blueprint("main", __name__)
32.790698
125
0.644681
from flask import Blueprint, redirect, render_template, request, session, url_for # from asset_tracker_restapi import asset_tracker_restapi bp = Blueprint("main", __name__) @bp.route("/", methods=['GET', 'POST']) def index(): jira_username = session.get("jira_username") if jira_username is None: ret...
0
1,163
0
0
0
0
0
54
69
a8f188809433b18e800e2b7f543dac18c31aa965
1,545
py
Python
tests/test_util.py
resendislab/corda
15f4a8e1a046c6191f22e46099dad10aafb1fdce
[ "MIT" ]
9
2017-08-21T09:44:19.000Z
2021-09-22T12:18:06.000Z
tests/test_util.py
resendislab/corda
15f4a8e1a046c6191f22e46099dad10aafb1fdce
[ "MIT" ]
9
2017-08-23T15:50:39.000Z
2021-08-10T17:10:51.000Z
tests/test_util.py
resendislab/corda
15f4a8e1a046c6191f22e46099dad10aafb1fdce
[ "MIT" ]
7
2017-09-12T12:50:10.000Z
2021-02-22T18:42:15.000Z
# tests.py # # Copyright 2016 Christian Diener <mail[at]cdiener.com> # # MIT license. See LICENSE for more information. import pytest if __name__ == '__main__': pytest.main()
28.090909
76
0.605178
# tests.py # # Copyright 2016 Christian Diener <mail[at]cdiener.com> # # MIT license. See LICENSE for more information. import pytest from corda import reaction_confidence, test_model from cobra import Model, Reaction, Metabolite from cobra.manipulation import convert_to_irreversible, revert_to_reversible class T...
0
476
0
663
0
0
0
107
112
865b1b0fc99aaa2ae00d600df8e4d6285b2fc4d7
172
py
Python
dkjason/__init__.py
datakortet/dkjason
b4405ce3e710c4f7018e507f135a774d5c851888
[ "MIT" ]
null
null
null
dkjason/__init__.py
datakortet/dkjason
b4405ce3e710c4f7018e507f135a774d5c851888
[ "MIT" ]
4
2020-03-28T22:38:04.000Z
2021-11-15T10:49:33.000Z
dkjason/__init__.py
datakortet/dkjason
b4405ce3e710c4f7018e507f135a774d5c851888
[ "MIT" ]
null
null
null
""" This module knows how to serialize general object, objects specialized with a ``__json__()`` method, Django QuerySets, and ``ttcal`` objects. """ __version__ = '3.0.4'
28.666667
70
0.715116
""" This module knows how to serialize general object, objects specialized with a ``__json__()`` method, Django QuerySets, and ``ttcal`` objects. """ __version__ = '3.0.4'
0
0
0
0
0
0
0
0
0
76dac9c6aa60a48771a47013e74a942392f8e0e3
3,663
py
Python
insights/parsers/sssd_conf.py
skateman/insights-core
e7cd3001ffc2558757b9e7759dbe27b8b29f4bac
[ "Apache-2.0" ]
1
2021-11-08T16:25:01.000Z
2021-11-08T16:25:01.000Z
insights/parsers/sssd_conf.py
ahitacat/insights-core
0ba58dbe5edceef0bd4a74c1caf6b826381ccda5
[ "Apache-2.0" ]
null
null
null
insights/parsers/sssd_conf.py
ahitacat/insights-core
0ba58dbe5edceef0bd4a74c1caf6b826381ccda5
[ "Apache-2.0" ]
null
null
null
""" SSSD_Config - file ``/etc/sssd/sssd.config`` ============================================ """
34.233645
86
0.620803
""" SSSD_Config - file ``/etc/sssd/sssd.config`` ============================================ """ from insights.core import IniConfigFile from insights.core.plugins import parser from insights.specs import Specs @parser(Specs.sssd_config) class SSSD_Config(IniConfigFile): """ Parse the content of the ``/etc/s...
0
3,427
0
0
0
0
0
48
89
0b64e1c456ed5eb9b9d67e8cb18b41d35d79e683
1,283
py
Python
check_main_line.py
y-ich/EOPGA_tools
0eb6fc13d1236edcd04c4a32e18da8d18bf6f244
[ "MIT" ]
null
null
null
check_main_line.py
y-ich/EOPGA_tools
0eb6fc13d1236edcd04c4a32e18da8d18bf6f244
[ "MIT" ]
null
null
null
check_main_line.py
y-ich/EOPGA_tools
0eb6fc13d1236edcd04c4a32e18da8d18bf6f244
[ "MIT" ]
null
null
null
""" check if main line of each SGF is legal. """ __author__ = "ICHIKAWA, Yuji <ichikawa.yuji@gmail.com>" import sys from multiprocessing import Pool import psutil from utilities import file_pathes_under def check_and_arg(e: any): """ is defined explicitly because Pool instance cannot treat lambda function lam...
27.891304
110
0.639127
""" check if main line of each SGF is legal. """ __author__ = "ICHIKAWA, Yuji <ichikawa.yuji@gmail.com>" import sys import os from multiprocessing import Pool import psutil import sgf from board import Board, move2ev from utilities import file_pathes_under def check_game(game: sgf.GameTree): board = Board() f...
0
0
0
0
0
443
0
-12
112
bc33b06378c23dbee4531b4dfaeb791d28741cc4
3,746
py
Python
sudoku/variable.py
prowe12/game-solver
0c197c077a82c79c97c9cf1ed5bcda0dc38eed61
[ "CC0-1.0" ]
null
null
null
sudoku/variable.py
prowe12/game-solver
0c197c077a82c79c97c9cf1ed5bcda0dc38eed61
[ "CC0-1.0" ]
null
null
null
sudoku/variable.py
prowe12/game-solver
0c197c077a82c79c97c9cf1ed5bcda0dc38eed61
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 10 12:20:03 2021 @author: prowe By Penny Rowe 2021/03/10 AI with Prof. America Chambers, Spring 2021 Based on Variable.java """
27.144928
82
0.567005
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Mar 10 12:20:03 2021 @author: prowe By Penny Rowe 2021/03/10 AI with Prof. America Chambers, Spring 2021 Based on Variable.java """ class Variable: """ A variable in a Sudoku CSP with domain {1, 2, 3, ..., 9} The value of the variable m...
0
0
0
3,520
0
0
0
0
23
0a1a359a4636f368d0f28057e4bf1af274c7fb79
3,332
py
Python
influxdb_service_sdk/model/container/resource_requirements_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
influxdb_service_sdk/model/container/resource_requirements_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
influxdb_service_sdk/model/container/resource_requirements_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: resource_requirements.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
40.144578
380
0.801921
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: resource_requirements.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from googl...
0
0
0
0
0
0
0
0
0
6f6b0bbb965c6b6f93d18d3f914bd8661e8f5777
1,219
py
Python
weatherapp/migrations/views.py
mirza450/Django_weatherApp
d2a5b8241dbc8d95300bb98d1fa06fd7767dcf57
[ "MIT" ]
1
2021-03-10T11:57:50.000Z
2021-03-10T11:57:50.000Z
weatherapp/migrations/views.py
mirza450/Django_weatherApp
d2a5b8241dbc8d95300bb98d1fa06fd7767dcf57
[ "MIT" ]
null
null
null
weatherapp/migrations/views.py
mirza450/Django_weatherApp
d2a5b8241dbc8d95300bb98d1fa06fd7767dcf57
[ "MIT" ]
null
null
null
# Create your views here.
25.93617
125
0.636587
from django.shortcuts import render from . import models import requests # Create your views here. def home(request): url = 'http://api.openweathermap.org/data/2.5/weather?q={}&appid=847ad8d22725feb921178a969b049211' if request.method=='POST': city=request.POST['city'] r = requests.get(url.format(city))...
0
0
0
0
0
1,097
0
7
89
5c6790cf97d941206ac4135494a6139465d27768
2,304
py
Python
lpthw/showdad.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
lpthw/showdad.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
lpthw/showdad.py
jaredmanning/learning
1d1767ea78a8f9f72275b18147d47bfc44a1696e
[ "MIT" ]
null
null
null
# When I made this, I was not comletely sure how to make functions, so when it # doesn't understand the input, it just spits out a line saying it didn't # understand then moves on. author = 'Zed A. Shaw' book = 'Learn Python the Hard Way by %s' % author print """ Hi dad! This is a little program I wrote to show you s...
30.72
92
0.66276
# When I made this, I was not comletely sure how to make functions, so when it # doesn't understand the input, it just spits out a line saying it didn't # understand then moves on. author = 'Zed A. Shaw' book = 'Learn Python the Hard Way by %s' % author print """ Hi dad! This is a little program I wrote to show you s...
0
0
0
0
0
0
0
0
0
816c2aa87fcca01c52d68c4da80bd4cc0a0c0bad
721
py
Python
migrations/versions/b986a61de65c_change_some_model_user_and_pay_type_to_.py
borko81/parking_system_with_flask
0ff10422cd1892bcb8c4c6958a159b08c1da919b
[ "MIT" ]
1
2022-01-14T15:31:11.000Z
2022-01-14T15:31:11.000Z
migrations/versions/b986a61de65c_change_some_model_user_and_pay_type_to_.py
borko81/parking_system_with_flask
0ff10422cd1892bcb8c4c6958a159b08c1da919b
[ "MIT" ]
5
2021-12-03T13:27:44.000Z
2021-12-05T11:46:08.000Z
migrations/versions/b986a61de65c_change_some_model_user_and_pay_type_to_.py
borko81/parking_system_with_flask
0ff10422cd1892bcb8c4c6958a159b08c1da919b
[ "MIT" ]
null
null
null
"""Change some model user and pay_type to use helper function that strip unique field Revision ID: b986a61de65c Revises: 29128332c534 Create Date: 2021-12-08 19:10:55.573019 """ # revision identifiers, used by Alembic. revision = 'b986a61de65c' down_revision = '29128332c534' branch_labels = None depends_on = None ...
24.862069
85
0.708738
"""Change some model user and pay_type to use helper function that strip unique field Revision ID: b986a61de65c Revises: 29128332c534 Create Date: 2021-12-08 19:10:55.573019 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b986a61de65c' down_revision = '2912833...
0
0
0
0
0
307
0
3
90
77787be849f6948db95f361275d321eea52e6b9b
940
py
Python
stnm/run.py
talhasch/stnm
075dcf673cc7ac9c3c79687890d5f712bd44b632
[ "MIT" ]
1
2020-12-08T18:00:55.000Z
2020-12-08T18:00:55.000Z
stnm/run.py
talhasch/stnm
075dcf673cc7ac9c3c79687890d5f712bd44b632
[ "MIT" ]
4
2020-12-08T21:10:43.000Z
2020-12-15T18:06:04.000Z
stnm/run.py
talhasch/stnm
075dcf673cc7ac9c3c79687890d5f712bd44b632
[ "MIT" ]
null
null
null
import os import sys assert sys.version_info[0] == 3 and sys.version_info[1] >= 5, "Requires Python 3.5 or newer" sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) if sys.platform not in ["linux", "linux2", "darwin"]: print("stnm supports only macos and linux") sys.exit(1) i...
22.380952
92
0.6
import argparse import os import sys assert sys.version_info[0] == 3 and sys.version_info[1] >= 5, "Requires Python 3.5 or newer" sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../"))) if sys.platform not in ["linux", "linux2", "darwin"]: print("stnm supports only macos and linux") ...
0
0
0
0
0
544
0
-6
45
93a5a722569a29437ef186f706fd49ee0c7cda2c
97,173
py
Python
veritastool/fairness/fairness.py
mas-veritas2/veritastool
37f36b620c3637e230efd8ed69cbb5e4ef87fe2b
[ "Apache-2.0" ]
2
2022-01-12T07:12:50.000Z
2022-03-08T10:57:10.000Z
veritastool/fairness/fairness.py
mas-veritas2/veritastool
37f36b620c3637e230efd8ed69cbb5e4ef87fe2b
[ "Apache-2.0" ]
18
2021-11-02T03:03:00.000Z
2021-12-10T07:44:40.000Z
veritastool/fairness/fairness.py
mas-veritas2/veritastool
37f36b620c3637e230efd8ed69cbb5e4ef87fe2b
[ "Apache-2.0" ]
null
null
null
from IPython.display import HTML
52.075563
262
0.566659
import numpy as np import pandas as pd import datetime import json from ..util.utility import * from ..metrics.fairness_metrics import FairnessMetrics from ..metrics.performance_metrics import PerformanceMetrics from ..metrics.newmetric import * from ..metrics.tradeoff import TradeoffRate import ipywidgets as widgets i...
0
0
0
96,368
0
0
0
219
552
7fd59db42373c4390d9d508b351343d7742bc795
15,845
py
Python
sdk/python/pulumi_keycloak/openid/client_service_account_role.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
13
2020-04-28T15:20:56.000Z
2022-03-24T18:00:17.000Z
sdk/python/pulumi_keycloak/openid/client_service_account_role.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
49
2020-02-06T17:53:35.000Z
2022-03-25T19:36:08.000Z
sdk/python/pulumi_keycloak/openid/client_service_account_role.py
davide-talesco/pulumi-keycloak
08d66be6f2bf578d4292e29eb6181794375bc4e5
[ "ECL-2.0", "Apache-2.0" ]
2
2020-06-09T01:08:56.000Z
2021-12-07T15:30:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities __all__ = ['ClientServiceAccountRoleArgs', 'ClientServiceAccountRole']
42.940379
239
0.651499
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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...
0
12,758
0
2,611
0
0
0
41
136
d41c83717df708e26bc5a9fb92a8162fc920852a
6,479
py
Python
python/cendalytics/wikipedia/ingest/dmo/dbpedia_taxonomy_extractor.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/cendalytics/wikipedia/ingest/dmo/dbpedia_taxonomy_extractor.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/cendalytics/wikipedia/ingest/dmo/dbpedia_taxonomy_extractor.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*-
32.722222
88
0.563976
#!/usr/bin/env python # -*- coding: UTF-8 -*- import re from typing import Optional from base import BaseObject from base import FileIO class DBpediaTaxonomyExtractor(BaseObject): """ Extract latent 'is-a' hierarchy from unstructured text """ __isa_patterns = None __clause_patterns = None def __i...
6
1,238
0
5,075
0
0
0
2
113
42a0ec5a0a58798bb8e98eb38c0494bb6f52629f
715
py
Python
traveller_utils/ct/trade_classifications.py
egor045/traveller_utils
eba30e98cb3c666ce070b5da97391df6ebbc7b8a
[ "MIT" ]
null
null
null
traveller_utils/ct/trade_classifications.py
egor045/traveller_utils
eba30e98cb3c666ce070b5da97391df6ebbc7b8a
[ "MIT" ]
null
null
null
traveller_utils/ct/trade_classifications.py
egor045/traveller_utils
eba30e98cb3c666ce070b5da97391df6ebbc7b8a
[ "MIT" ]
null
null
null
''' Trade classifications''' VALID_TRADE_CLASSIFICATIONS = [ "Ag", "Na", "In", "Ni", "Ri", "Po", "Wa", "De", "As", "Ic" ]
19.861111
51
0.532867
''' Trade classifications''' VALID_TRADE_CLASSIFICATIONS = [ "Ag", "Na", "In", "Ni", "Ri", "Po", "Wa", "De", "As", "Ic" ] class TradeClassification(): ''' Planetary trade classification''' def __init__(self, tc: str): if tc in VALID_TRADE_CLASSIFICATIONS: ...
0
99
0
430
0
0
0
0
23
4c2383af468f1f45430c4b8613997b9607971ce4
6,772
py
Python
huacai_server/common/libs/cosine_neo.py
slinger0225/huacai
87e8de05981b1361f0396db28678ce07de459dc5
[ "Apache-2.0" ]
null
null
null
huacai_server/common/libs/cosine_neo.py
slinger0225/huacai
87e8de05981b1361f0396db28678ce07de459dc5
[ "Apache-2.0" ]
null
null
null
huacai_server/common/libs/cosine_neo.py
slinger0225/huacai
87e8de05981b1361f0396db28678ce07de459dc5
[ "Apache-2.0" ]
null
null
null
from common.libs.neo2cos import find_songs INT_BITS = 32 MAX_INT = (1 << (INT_BITS - 1)) - 1 # Maximum Integer for INT_BITS def main(mode, input_cus=''): # df1 = pd.read_excel(Song_addr); """""" # df2 = pd.read_excel(Cus_addr); """""" # print (indi_list) # data = pd.DataFrame(df1) # da...
31.207373
120
0.554194
import pandas as pd import numpy as np from common.libs.neo2cos import find_songs INT_BITS = 32 MAX_INT = (1 << (INT_BITS - 1)) - 1 # Maximum Integer for INT_BITS def indi_count(df1, aaa): # 计算曲库中伪hash值的计数 cursor = 0 dataa = df1.loc[:, ['Indi']].values aaa = [0] * 256 for cursor in range(0, 256): ...
552
0
0
0
0
5,397
0
-5
159
ad8b82837baad1cbd5a7c0296bdadf2cbdadf30b
1,569
py
Python
password_generator.py
chronologie7/python-secure-password-generator
5b0a82ad367bb480aac19df8448b86b169c55d58
[ "MIT" ]
null
null
null
password_generator.py
chronologie7/python-secure-password-generator
5b0a82ad367bb480aac19df8448b86b169c55d58
[ "MIT" ]
null
null
null
password_generator.py
chronologie7/python-secure-password-generator
5b0a82ad367bb480aac19df8448b86b169c55d58
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import secrets import re def len_pass(): """ function generate randomly the length of password, from 10 to 16 caracters """ while True: len_pass = secrets.randbelow(17) if len_pass >= 10: break return len_pass def get_password(len_password): ...
27.526316
68
0.655194
#!/usr/bin/env python3 import secrets import re def len_pass(): """ function generate randomly the length of password, from 10 to 16 caracters """ while True: len_pass = secrets.randbelow(17) if len_pass >= 10: break return len_pass def get_password(len_password): ...
0
0
0
0
0
0
0
0
0
8a02149a966c1b433133e53deb39d9b47cb2ad21
5,332
py
Python
patrole_tempest_plugin/tests/api/network/test_floating_ips_rbac.py
Vegasq/patrole
787fbd72542c233a66309c1700fad9645d01a394
[ "Apache-2.0" ]
null
null
null
patrole_tempest_plugin/tests/api/network/test_floating_ips_rbac.py
Vegasq/patrole
787fbd72542c233a66309c1700fad9645d01a394
[ "Apache-2.0" ]
null
null
null
patrole_tempest_plugin/tests/api/network/test_floating_ips_rbac.py
Vegasq/patrole
787fbd72542c233a66309c1700fad9645d01a394
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 AT&T Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
40.090226
79
0.661853
# Copyright 2017 AT&T Corporation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
0
3,548
0
853
0
0
0
115
135
a3c9748574f3f9edc2726fd8b9de9ba7018042fb
668
py
Python
boundaries/ocd-division/country:ca/csd:3518039/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ocd-division/country:ca/csd:3518039/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
boundaries/ocd-division/country:ca/csd:3518039/definition.py
imhangoo/represent-canada-data
0d9cc818b343079f81a00c15438d79c079a10c9b
[ "OML" ]
null
null
null
from datetime import date import boundaries boundaries.register('Brock wards', domain='Brock, ON', last_updated=date(2018, 11, 2), name_func=lambda f: 'Ward %s' % f.get('WARD'), id_func=boundaries.attr('WARD'), authority='Township of Brock', source_url='https://city-oshawa.opendata.arcgis.com/...
39.294118
112
0.73503
from datetime import date import boundaries boundaries.register('Brock wards', domain='Brock, ON', last_updated=date(2018, 11, 2), name_func=lambda f: 'Ward %s' % f.get('WARD'), id_func=boundaries.attr('WARD'), authority='Township of Brock', source_url='https://city-oshawa.opendata.arcgis.com/...
0
0
0
0
0
0
0
0
0
31edf40f3241aa1631047e3c8f26d1226efc1bbc
5,363
py
Python
myapp.py
ekungurov/devops-school-website-v2
de56af4e4be67c11a8cee822060c4ecf3d751887
[ "MIT" ]
null
null
null
myapp.py
ekungurov/devops-school-website-v2
de56af4e4be67c11a8cee822060c4ecf3d751887
[ "MIT" ]
null
null
null
myapp.py
ekungurov/devops-school-website-v2
de56af4e4be67c11a8cee822060c4ecf3d751887
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy import config import os REQUESTS_LIMIT = 20 DELAY_IN_SECONDS = 0.1 app = Flask(__name__) user = os.getenv('DB_LOGIN', default = config.DB_LOGIN) password = os.getenv('DB_PASSWORD', default = config.DB_PASSWORD) host = os.getenv('DB_HOST', default = confi...
30.645714
104
0.694015
from flask import Flask, render_template from flask_sqlalchemy import SQLAlchemy from time import sleep from cpu_load_generator import load_single_core import requests import urllib3 import json import logging import config import re import os REQUESTS_LIMIT = 20 DELAY_IN_SECONDS = 0.1 app = Flask(__name__) user = os...
0
764
0
1,269
0
2,178
0
2
525
bf2386eda10dbd4e36fec08c259437d5597d434b
1,615
py
Python
snakemake/scripts/qc/iz_stats_from_shiver.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/qc/iz_stats_from_shiver.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
snakemake/scripts/qc/iz_stats_from_shiver.py
BDI-pathogens/ShiverCovid
a032a7a786288b28994eae51215e7851f7571018
[ "MIT" ]
null
null
null
""" Basic script to take in insert size csv from shiver, where each row is 3 comma-separated values (insert size, number of that size, fraction). Returns the insert size at 0.05, 0.5, 0.95 percentiles, as well as the number of inserts >350 and the fraction of inserts that are >350bp. tanya.golubchik@bdi.ox.ac.uk Oct...
28.333333
102
0.589474
""" Basic script to take in insert size csv from shiver, where each row is 3 comma-separated values (insert size, number of that size, fraction). Returns the insert size at 0.05, 0.5, 0.95 percentiles, as well as the number of inserts >350 and the fraction of inserts that are >350bp. tanya.golubchik@bdi.ox.ac.uk Oct...
0
0
0
0
0
0
0
0
0
29d970c65d90594779709e89f4b856d781be71e6
2,196
py
Python
revitsnoop.py
daren-thomas/rps-sample-scripts
584354c8d7ff96348a051e94100a1512c7612027
[ "MIT" ]
27
2015-04-08T14:09:48.000Z
2022-03-12T18:32:04.000Z
revitsnoop.py
daren-thomas/rps-sample-scripts
584354c8d7ff96348a051e94100a1512c7612027
[ "MIT" ]
null
null
null
revitsnoop.py
daren-thomas/rps-sample-scripts
584354c8d7ff96348a051e94100a1512c7612027
[ "MIT" ]
12
2015-09-21T23:12:08.000Z
2020-09-29T14:25:55.000Z
''' Launch a RevitLookup "Snoop Objects" dialog for elements from the RPS shell = Introduction = You _do_ have `RevitLookup` installed, don't you? This is _the_ tool for introspecting model elements. You can find it in the Revit SDK folder, along with the source code. The plugin does many things, among which I...
36
80
0.70173
''' Launch a RevitLookup "Snoop Objects" dialog for elements from the RPS shell = Introduction = You _do_ have `RevitLookup` installed, don't you? This is _the_ tool for introspecting model elements. You can find it in the Revit SDK folder, along with the source code. The plugin does many things, among which I...
0
0
0
959
0
0
0
8
71
22c2c4c83c573c3bdc32d4aa64064ca2f1dd1a3f
1,304
py
Python
unit_tests/test_manila_plugin_handlers.py
openstack-charmers/charm-template-manila-plugin
651ab72a9ff7697b36a7475eaf430033e11d6686
[ "Apache-2.0" ]
null
null
null
unit_tests/test_manila_plugin_handlers.py
openstack-charmers/charm-template-manila-plugin
651ab72a9ff7697b36a7475eaf430033e11d6686
[ "Apache-2.0" ]
null
null
null
unit_tests/test_manila_plugin_handlers.py
openstack-charmers/charm-template-manila-plugin
651ab72a9ff7697b36a7475eaf430033e11d6686
[ "Apache-2.0" ]
1
2019-09-24T05:58:01.000Z
2019-09-24T05:58:01.000Z
# Copyright 2016 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
28.977778
74
0.703988
# Copyright 2016 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
0
0
0
493
0
0
0
15
92
2f314c67a4bf8d93040aaf05bf091ec2549ad0f1
4,864
py
Python
Python35/Lib/site-packages/meds/kernel.py
kvonch/my_projects
149e46e387f3f66bf08b223b4d7e9be6ba3fd207
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Python35/Lib/site-packages/meds/kernel.py
kvonch/my_projects
149e46e387f3f66bf08b223b4d7e9be6ba3fd207
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Python35/Lib/site-packages/meds/kernel.py
kvonch/my_projects
149e46e387f3f66bf08b223b4d7e9be6ba3fd207
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# meds/kernel.py # # """ central piece of code that loads the plugins and starts services. """
32
80
0.540913
# meds/kernel.py # # """ central piece of code that loads the plugins and starts services. """ from meds.utils.cli import hello, set_completer, enable_history, termsetup from meds.utils.misc import include, locked from meds.utils.trace import get_exception from meds.utils.name import name, sname, mname from meds.uti...
0
750
0
3,462
0
0
0
109
446
13c0e6f9186a50e99281790670d725a2e39d73b6
1,976
py
Python
app/tasks/create_pull_request_card.py
palazzem/gello
19fe9e4aa8de485dd829a87047ec64f89b5fa7ee
[ "Apache-2.0" ]
44
2018-03-28T14:22:23.000Z
2022-03-15T07:25:06.000Z
app/tasks/create_pull_request_card.py
palazzem/gello
19fe9e4aa8de485dd829a87047ec64f89b5fa7ee
[ "Apache-2.0" ]
44
2018-03-28T14:19:03.000Z
2022-02-16T10:24:57.000Z
app/tasks/create_pull_request_card.py
palazzem/gello
19fe9e4aa8de485dd829a87047ec64f89b5fa7ee
[ "Apache-2.0" ]
12
2018-03-28T14:15:43.000Z
2021-07-19T17:33:20.000Z
# -*- coding: utf-8 -*- # # Unless explicitly stated otherwise all files in this repository are licensed # under the Apache 2 License. # # This product includes software developed at Datadog # (https://www.datadoghq.com/). # # Copyright 2018 Datadog, Inc. # """create_pull_request_card.py Creates a trello card based ...
27.068493
79
0.611336
# -*- coding: utf-8 -*- # # Unless explicitly stated otherwise all files in this repository are licensed # under the Apache 2 License. # # This product includes software developed at Datadog # (https://www.datadoghq.com/). # # Copyright 2018 Datadog, Inc. # """create_pull_request_card.py Creates a trello card based ...
0
0
0
1,509
0
0
0
23
90
12953800b5b6ce796066391662bc4943c6f2fee9
618
py
Python
setup.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
2
2017-02-06T17:15:11.000Z
2017-04-17T13:18:18.000Z
setup.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
setup.py
Habidatum/slisonner
488be30a199a5d29271e24377c37a7ad83d52e3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages requirements = ['lz4tools==1.3.1.2', 'numpy', 'py==1.4.31', 'pytest==3.0.3'] setup(name='slisonner', version='0.7.9', description='Habidatum Chronotope Slison encode/decode utility', long_description='', author='Nikita Pestro...
26.869565
70
0.673139
#!/usr/bin/env python3 from setuptools import setup, find_packages requirements = ['lz4tools==1.3.1.2', 'numpy', 'py==1.4.31', 'pytest==3.0.3'] setup(name='slisonner', version='0.7.9', description='Habidatum Chronotope Slison encode/decode utility', long_description='', author='Nikita Pestro...
0
0
0
0
0
0
0
0
0
dae537a9e6566c98d886e38c1cba095f8bb8a63d
13,450
py
Python
scripts/convergence.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
null
null
null
scripts/convergence.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
null
null
null
scripts/convergence.py
Miedema/MCNetwork
daab1fe5880c47695c6e21124f99aa6b2589aba1
[ "Apache-2.0" ]
1
2020-10-14T09:45:06.000Z
2020-10-14T09:45:06.000Z
#!/usr/bin/python3 from sys import argv from os.path import join import h5py import matplotlib.pylab as plt import numpy as np from time import sleep if len(argv) > 1: pathToSimFolder = argv[1] else: pathToSimFolder = "../data/" parameters, electrodes = readParameters(pathToSimFolder) fileOpenTries = 0 whi...
28.375527
156
0.542602
#!/usr/bin/python3 from tools import * from sys import argv from os.path import join import h5py import matplotlib.pylab as plt import numpy as np from time import sleep if len(argv) > 1: pathToSimFolder = argv[1] else: pathToSimFolder = "../data/" parameters, electrodes = readParameters(pathToSimFolder) f...
0
0
0
0
0
0
0
-2
22
84263ca7d53234e16d5fb6d9a14003d623ee7686
4,101
py
Python
authserver/app.py
bendalby82/tokenrotatorproxy
05b0f19b53eb1b39b30cb440d36bfbc778b5ad60
[ "MIT" ]
1
2017-01-10T19:01:10.000Z
2017-01-10T19:01:10.000Z
authserver/app.py
bendalby82/tokenrotatorproxy
05b0f19b53eb1b39b30cb440d36bfbc778b5ad60
[ "MIT" ]
null
null
null
authserver/app.py
bendalby82/tokenrotatorproxy
05b0f19b53eb1b39b30cb440d36bfbc778b5ad60
[ "MIT" ]
null
null
null
# Name: authserver.py # # Description: Validates a one-time-passocde that is included in the header. # Cases: # [1] Valid OTP - belongs to a known application, not used # [2] Valid OTP - belongs to a known application, but already used # ...
32.808
122
0.655938
# Name: authserver.py # # Description: Validates a one-time-passocde that is included in the header. # Cases: # [1] Valid OTP - belongs to a known application, not used # [2] Valid OTP - belongs to a known application, but already used # ...
0
1,365
0
173
0
1,387
0
25
272
d37c1bade401f4ac9ccafb5794c0f6500ef2d571
9,415
py
Python
VHDLTest/VHDLTest.py
Malcolmnixon/VhdlTest
f17b981e21345444571418d067a61d23325162d3
[ "MIT" ]
null
null
null
VHDLTest/VHDLTest.py
Malcolmnixon/VhdlTest
f17b981e21345444571418d067a61d23325162d3
[ "MIT" ]
15
2020-08-03T15:15:11.000Z
2020-08-27T02:41:17.000Z
VHDLTest/VHDLTest.py
Malcolmnixon/VhdlTest
f17b981e21345444571418d067a61d23325162d3
[ "MIT" ]
null
null
null
"""Module for VHDLTest application class."""
38.744856
119
0.590335
"""Module for VHDLTest application class.""" import argparse import sys from typing import Optional, Dict from junit_xml import TestSuite, TestCase from datetime import datetime from .simulator.SimulatorBase import SimulatorBase from .simulator.SimulatorFactory import SimulatorFactory from .Configuration import Config...
0
0
0
8,950
0
0
0
153
266
c37feadf74679190eb890bfecd62db1e0a762240
777
py
Python
tests/test_result/test_result_unwrap.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_result/test_result_unwrap.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
tests/test_result/test_result_unwrap.py
ksurta/returns
9746e569303f214d035462ae3dffe5c49abdcfa7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from returns.primitives.exceptions import UnwrapFailedError from returns.result import Failure, Success def test_unwrap_success(): """Ensures that unwrap works for Success container.""" assert Success(5).unwrap() == 5 def test_unwrap_failure(): """Ensures that unw...
26.793103
65
0.711712
# -*- coding: utf-8 -*- import pytest from returns.primitives.exceptions import UnwrapFailedError from returns.result import Failure, Success def test_unwrap_success(): """Ensures that unwrap works for Success container.""" assert Success(5).unwrap() == 5 def test_unwrap_failure(): """Ensures that unw...
0
0
0
0
0
0
0
0
0
02d21a38f0036383f6dff42c08bba71fd2a41cbd
7,056
py
Python
gridpath/system/reliability/local_capacity/local_capacity_balance.py
blue-marble/gridpath
66560ab084e1e2f4800e270090d5efc8f6ff01a6
[ "Apache-2.0" ]
44
2020-10-27T19:05:44.000Z
2022-03-22T17:17:37.000Z
gridpath/system/reliability/local_capacity/local_capacity_balance.py
blue-marble/gridpath
66560ab084e1e2f4800e270090d5efc8f6ff01a6
[ "Apache-2.0" ]
67
2020-10-08T22:36:53.000Z
2022-03-22T22:58:33.000Z
gridpath/system/reliability/local_capacity/local_capacity_balance.py
blue-marble/gridpath
66560ab084e1e2f4800e270090d5efc8f6ff01a6
[ "Apache-2.0" ]
21
2020-10-08T23:23:48.000Z
2022-03-28T01:21:21.000Z
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.366972
86
0.628827
# Copyright 2016-2020 Blue Marble Analytics LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
0
0
0
0
234
0
6
50
f0373a29f5f02ba321b5fe5d527ef7e872d1364e
89,064
py
Python
knossos/tasks.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
null
null
null
knossos/tasks.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
null
null
null
knossos/tasks.py
TheMatthew/knossos
70463d8a4ae1d6cd6f3d0fd9fba4037d94d26bd2
[ "Apache-2.0" ]
null
null
null
## Copyright 2017 Knossos authors, see NOTICE file ## ## 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...
35.811821
522
0.519862
## Copyright 2017 Knossos authors, see NOTICE file ## ## 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...
3
0
0
83,292
0
3,951
0
-55
902
86754a63d7a6db43ceb6f68fae04ee73681aaf77
15,325
py
Python
sdk/python/pulumi_azure/authorization/assignment.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/authorization/assignment.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/authorization/assignment.py
suresh198526/pulumi-azure
bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities, _tables __all__ = ['Assignment']
57.182836
472
0.691289
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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 _utilitie...
0
5,867
0
9,076
0
0
0
31
90
6dda82884b7d5a59497992a12048cc672dc09402
686
py
Python
solution/divide_and_conquer/1802/main.py
gkgg123/baekjoon
4ff8a1238a5809e4958258b5f2eeab7b22105ce9
[ "MIT" ]
2,236
2019-08-05T00:36:59.000Z
2022-03-31T16:03:53.000Z
solution/divide_and_conquer/1802/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
225
2020-12-17T10:20:45.000Z
2022-01-05T17:44:16.000Z
solution/divide_and_conquer/1802/main.py
juy4556/baekjoon
bc0b0a0ebaa45a5bbd32751f84c458a9cfdd9f92
[ "MIT" ]
602
2019-08-05T00:46:25.000Z
2022-03-31T13:38:23.000Z
# // Authored by : chj3748 # // Co-authored by : - # // Link : http://boj.kr/28603d67d3014c79af724768c75865af for T in range(int(input())): status = list(map(int, input())) if origami(0, len(status) - 1): answer = 'YES' else: answer = 'NO' print(answer)
23.655172
64
0.555394
# // Authored by : chj3748 # // Co-authored by : - # // Link : http://boj.kr/28603d67d3014c79af724768c75865af import sys def input(): return sys.stdin.readline().rstrip() def origami(start, end): if start == end: return True mid = (start + end) // 2 sign = True for i in range(start,mid): ...
0
0
0
0
0
343
0
-11
68
124e5695acfe7d7fea2ad7e70e5484e2eac62392
1,164
py
Python
SNIP.py
MiskovicMilica/Data-science-portfolio
93041b066c550e083897a5e83601d32b1dd962e7
[ "MIT" ]
null
null
null
SNIP.py
MiskovicMilica/Data-science-portfolio
93041b066c550e083897a5e83601d32b1dd962e7
[ "MIT" ]
null
null
null
SNIP.py
MiskovicMilica/Data-science-portfolio
93041b066c550e083897a5e83601d32b1dd962e7
[ "MIT" ]
1
2022-03-08T08:48:44.000Z
2022-03-08T08:48:44.000Z
import PIL.Image as pilimg import os import tkinter.messagebox as msg # Using Pillow and EasyTkinter # making a new folder in the working directory current_directory = os.getcwd() folder_name = os.path.join(current_directory, r'cropped_images') if not os.path.exists(folder_name): os.makedirs(folder_name) ...
37.548387
157
0.668385
import PIL.Image as pilimg import os import tkinter.messagebox as msg # Using Pillow and EasyTkinter # making a new folder in the working directory current_directory = os.getcwd() folder_name = os.path.join(current_directory, r'cropped_images') if not os.path.exists(folder_name): os.makedirs(folder_name) ...
0
0
0
0
0
0
0
0
0
edba35679948474a3d96ba9902a53391a6b2105b
1,180
py
Python
example.py
bieniu/nettigo
dbbcb086290157469d196887a7950623b047f550
[ "Apache-2.0" ]
null
null
null
example.py
bieniu/nettigo
dbbcb086290157469d196887a7950623b047f550
[ "Apache-2.0" ]
2
2022-03-21T07:21:02.000Z
2022-03-21T07:21:09.000Z
example.py
bieniu/nettigo
dbbcb086290157469d196887a7950623b047f550
[ "Apache-2.0" ]
null
null
null
"""An example of using Nettigo Air Monitor package.""" import asyncio import logging logging.basicConfig(level=logging.DEBUG) loop = asyncio.get_event_loop() loop.run_until_complete(main()) loop.close()
24.081633
81
0.668644
"""An example of using Nettigo Air Monitor package.""" import asyncio import logging import async_timeout from aiohttp import ClientConnectorError, ClientError, ClientSession from nettigo_air_monitor import ( ApiError, AuthFailed, ConnectionOptions, InvalidSensorData, NettigoAirMonitor, ) loggin...
0
0
722
0
0
0
0
159
91
4db26a2c6ba50db6cdd2a506721f80ec77a66d3c
775
py
Python
14B-088/Continuum/imaging.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
1
2021-03-08T23:19:12.000Z
2021-03-08T23:19:12.000Z
14B-088/Continuum/imaging.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
null
null
null
14B-088/Continuum/imaging.py
e-koch/VLA_Lband
8fca7b2de0b88ce5c5011b34bf3936c69338d0b0
[ "MIT" ]
null
null
null
''' Imaging tests for the 14B-088 continuum (I) data. ''' import os from tasks import tclean vis = "14B-088_continuum_I.ms" output_path = "imaging_nosub" if not os.path.exists(output_path): os.mkdir(output_path) tclean(vis=vis, datacolumn='data', imagename=os.path.join(output_path, 'M33_14B-088...
20.394737
74
0.59871
''' Imaging tests for the 14B-088 continuum (I) data. ''' import os from tasks import tclean vis = "14B-088_continuum_I.ms" output_path = "imaging_nosub" if not os.path.exists(output_path): os.mkdir(output_path) tclean(vis=vis, datacolumn='data', imagename=os.path.join(output_path, 'M33_14B-088...
0
0
0
0
0
0
0
0
0
26a0adc919b98a736e69161ed05d46dca7bcccdc
136
py
Python
src/pdupes/__init__.py
n8henrie/pdupes
a03fedb5cf125560ba0c549a95d2179ef843e3a6
[ "MIT" ]
null
null
null
src/pdupes/__init__.py
n8henrie/pdupes
a03fedb5cf125560ba0c549a95d2179ef843e3a6
[ "MIT" ]
null
null
null
src/pdupes/__init__.py
n8henrie/pdupes
a03fedb5cf125560ba0c549a95d2179ef843e3a6
[ "MIT" ]
null
null
null
__version__ = 'v0.2.0' __author__ = 'Nathan Henrie' __email__ = 'nate@n8henrie.com'
22.666667
50
0.786765
__version__ = 'v0.2.0' __author__ = 'Nathan Henrie' __email__ = 'nate@n8henrie.com' from pdupes.duplicatefinder import DuplicateFinder
0
0
0
0
0
0
0
29
23
d0633de5b9d298d6c06e133da4c0e0461ea9fc73
821
py
Python
backend/phonebook/employees/migrations/0004_auto_20160226_1739.py
unmade/phonebook
121b2e5bb2eb217f5e183aa0c39a6d12f227d5e3
[ "MIT" ]
null
null
null
backend/phonebook/employees/migrations/0004_auto_20160226_1739.py
unmade/phonebook
121b2e5bb2eb217f5e183aa0c39a6d12f227d5e3
[ "MIT" ]
null
null
null
backend/phonebook/employees/migrations/0004_auto_20160226_1739.py
unmade/phonebook
121b2e5bb2eb217f5e183aa0c39a6d12f227d5e3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-26 17:39 from __future__ import unicode_literals
30.407407
194
0.651644
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-02-26 17:39 from __future__ import unicode_literals import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employees', '0003_auto_20160102_1338'), ] operations ...
70
0
0
577
0
0
0
30
68
6168ca2a87dd3f851f217b56cdfdb372a2954cbb
1,438
py
Python
baseline.py
chenchongthu/cnn-text
c3d872a10d9ba647c8048d6d42b9396374a6f181
[ "Apache-2.0" ]
4
2018-09-06T02:54:54.000Z
2020-10-23T03:45:20.000Z
baseline.py
chenchongthu/cnn-text
c3d872a10d9ba647c8048d6d42b9396374a6f181
[ "Apache-2.0" ]
null
null
null
baseline.py
chenchongthu/cnn-text
c3d872a10d9ba647c8048d6d42b9396374a6f181
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import tensorflow as tf import data_helpers from sklearn.feature_extraction.text import TfidfVectorizer from xgboost import XGBClassifier from sklearn import metrics # Parameters from sklearn.cross_validation import train_test_split # ================================================== # Data lo...
31.26087
124
0.721836
#! /usr/bin/env python import tensorflow as tf import data_helpers from sklearn.feature_extraction.text import TfidfVectorizer from xgboost import XGBClassifier from sklearn import metrics # Parameters from sklearn.cross_validation import train_test_split # ================================================== # Data lo...
0
0
0
0
0
0
0
0
0
0ce3ce04a7a6c7616409bd7c068261877bb29eda
1,900
py
Python
runtrack/controllers/auth.py
horeilly1101/runtrack
a02f4d449102c73d95b1348ac069f790f7281747
[ "MIT" ]
2
2018-10-08T01:51:39.000Z
2019-03-15T20:15:46.000Z
runtrack/controllers/auth.py
horeilly1101/runtrack
a02f4d449102c73d95b1348ac069f790f7281747
[ "MIT" ]
7
2018-08-29T20:48:43.000Z
2019-07-08T06:40:15.000Z
runtrack/controllers/auth.py
horeilly1101/runtrack
a02f4d449102c73d95b1348ac069f790f7281747
[ "MIT" ]
null
null
null
"""Contains controllers that deal with user accounts""" from flask import Blueprint # blue print to handle authentication auth = Blueprint("accounts", __name__)
31.666667
71
0.699474
"""Contains controllers that deal with user accounts""" from flask_login import logout_user from runtrack.views.forms import LoginForm from runtrack.models import db from flask import render_template, url_for, flash, redirect, Blueprint from flask_login import login_user, current_user from runtrack.views.forms import ...
0
1,373
0
0
0
0
0
160
202
d2432de3708aa10905adf6b22394d7649afcbe5e
6,134
py
Python
django_eel/__init__.py
seLain/Eel
ed46436040724315ae5e2d67b4bd867cef68620d
[ "MIT" ]
21
2018-07-16T03:59:11.000Z
2021-08-02T07:23:02.000Z
django_eel/__init__.py
seLain/Eel
ed46436040724315ae5e2d67b4bd867cef68620d
[ "MIT" ]
3
2018-07-16T04:06:41.000Z
2021-07-18T23:29:47.000Z
django_eel/__init__.py
seLain/Eel
ed46436040724315ae5e2d67b4bd867cef68620d
[ "MIT" ]
7
2018-07-16T03:59:25.000Z
2021-08-25T07:11:47.000Z
import os import pkg_resources as pkg _js_root_dir = os.sep.join(['django_eel', 'static', 'eel', 'js']) _eel_js_file = pkg.resource_filename(pkg.Requirement.parse('django-eel'), 'django_eel/static/eel/js/eel.js') #_eel_js = open(os.sep.join([_js_root_dir, _eel_js_file]), encoding='utf-8').read() _eel_js = open(_eel_js...
32.62766
108
0.620965
from django.http import HttpResponse import sys, os import re as rgx import random as rnd import pkg_resources as pkg import json as jsn import gevent as gvt import django_eel.browsers as brw _js_root_dir = os.sep.join(['django_eel', 'static', 'eel', 'js']) _eel_js_file = pkg.resource_filename(pkg.Requirement.parse('d...
0
0
0
0
0
4,751
0
22
473
34b1fd795d401264b6e36fa0cd4e08325149fb8c
3,365
py
Python
SchemDraw/custom_elements.py
AdriaanRol/SchemDraw
74e60217c82c2942c4ca95aa64dc440928f61189
[ "MIT" ]
3
2019-01-24T14:49:32.000Z
2021-03-29T11:28:55.000Z
SchemDraw/custom_elements.py
AdriaanRol/SchemDraw
74e60217c82c2942c4ca95aa64dc440928f61189
[ "MIT" ]
1
2020-09-09T14:36:29.000Z
2020-09-09T15:02:53.000Z
SchemDraw/custom_elements.py
AdriaanRol/SchemDraw
74e60217c82c2942c4ca95aa64dc440928f61189
[ "MIT" ]
1
2019-06-07T14:12:16.000Z
2019-06-07T14:12:16.000Z
""" This file contains custom elements defined by Adriaan Rol The intention is that these get merged into SchemDraw.elements after cleaning up so as to merge them into the master of CDelker """ import numpy as np import SchemDraw.elements as e LOW_PASS = { 'name': 'LOW_PASS', 'base': e.RBOX, 'paths': [[[0...
31.448598
95
0.398217
""" This file contains custom elements defined by Adriaan Rol The intention is that these get merged into SchemDraw.elements after cleaning up so as to merge them into the master of CDelker """ import numpy as np import SchemDraw.elements as e LOW_PASS = { 'name': 'LOW_PASS', 'base': e.RBOX, 'paths': [[[0...
0
0
0
0
0
0
0
0
0
51f49ad05b6b5bdc28b4a0f013723a485979a205
15,726
py
Python
python/util/conll_scorer/conll/reader.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
10
2020-11-28T05:01:04.000Z
2021-12-21T19:34:00.000Z
python/util/conll_scorer/conll/reader.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2022-03-12T07:20:39.000Z
2022-03-16T05:11:38.000Z
python/util/conll_scorer/conll/reader.py
UKPLab/cdcr-beyond-corpus-tailored
52bf98692c7464f25628baea24addd1a988f9a1f
[ "Apache-2.0" ]
1
2021-12-21T19:34:08.000Z
2021-12-21T19:34:08.000Z
""" Extracting gold parse annotation according to the CoNLL format """ """ Extracting automatic parse annotation """
36.151724
147
0.56041
import sys from python.util.conll_scorer.conll import mention def get_doc_mentions(doc_name, doc_lines, keep_singletons, print_debug=False, word_column=3): clusters = {} open_mentions = {} to_be_merged = [] singletons_num = 0 for sent_num, sent_line in enumerate(doc_lines): sent_words=[]...
0
0
0
0
0
15,311
0
18
273
c6cf93cd1b333728606ad22908679f0a83095b63
1,812
py
Python
sample/basic/basic_account_information_example.py
opendxl/opendxl-domaintools-client-python
426ec661018b868d9810b9b0bf7b6ef1561999b2
[ "Apache-2.0" ]
2
2018-03-01T14:55:17.000Z
2019-06-06T07:03:48.000Z
sample/basic/basic_account_information_example.py
opendxl/opendxl-domaintools-client-python
426ec661018b868d9810b9b0bf7b6ef1561999b2
[ "Apache-2.0" ]
1
2018-03-27T20:19:48.000Z
2018-03-27T20:19:48.000Z
sample/basic/basic_account_information_example.py
opendxl/opendxl-domaintools-client-python
426ec661018b868d9810b9b0bf7b6ef1561999b2
[ "Apache-2.0" ]
2
2017-10-18T17:19:58.000Z
2018-08-13T21:53:24.000Z
from __future__ import absolute_import from __future__ import print_function import logging import os import sys from dxlbootstrap.util import MessageUtils from dxlclient.client import DxlClient from dxlclient.client_config import DxlClientConfig root_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(r...
30.711864
78
0.745585
from __future__ import absolute_import from __future__ import print_function import logging import os import sys from dxlbootstrap.util import MessageUtils from dxlclient.client import DxlClient from dxlclient.client_config import DxlClientConfig root_dir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(r...
0
0
0
0
0
0
0
-1
22
c612552b3a25a4da68f5fab7652805cd1944d813
100
py
Python
python/gurobi/notebooks/CuttingCases/Sorrentino.py
ampl/ampls-api
9c9de155c42b496d1400504685d193829b9454ca
[ "BSD-3-Clause" ]
2
2021-05-28T15:50:32.000Z
2022-03-23T18:12:01.000Z
python/gurobi/notebooks/CuttingCases/Sorrentino.py
ampl/ampls-api
9c9de155c42b496d1400504685d193829b9454ca
[ "BSD-3-Clause" ]
1
2021-07-01T17:04:41.000Z
2021-07-01T17:04:41.000Z
python/xpress/notebooks/CuttingCases/Sorrentino.py
ampl/ampls-api
9c9de155c42b496d1400504685d193829b9454ca
[ "BSD-3-Clause" ]
null
null
null
roll_width = 64.5 overrun = 3 orders = { 6.77: 10, 7.56: 40, 17.46: 33, 18.76: 10 }
11.111111
17
0.49
roll_width = 64.5 overrun = 3 orders = { 6.77: 10, 7.56: 40, 17.46: 33, 18.76: 10 }
0
0
0
0
0
0
0
0
0
9c6b22885ff4179dd1850ae64b955867ef592b84
19,097
py
Python
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nslimitidentifier.py
guardicore/nitro-python
5346a5086134aead80968f15a41ff527adaa0ec1
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021 Citrix Systems, 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...
34.040998
291
0.726659
# # Copyright (c) 2021 Citrix Systems, 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...
0
15,276
0
2,762
0
0
0
292
158
f6347dd0544898f0b56a1bffd7b36ab3a17b143c
7,846
py
Python
choice/models.py
ppp314/multiple
d74c789b552ebe20211b0d327341a99bd6ee1368
[ "Apache-2.0" ]
null
null
null
choice/models.py
ppp314/multiple
d74c789b552ebe20211b0d327341a99bd6ee1368
[ "Apache-2.0" ]
6
2019-02-14T12:16:33.000Z
2020-04-11T09:21:26.000Z
choice/models.py
ppp314/multiple
d74c789b552ebe20211b0d327341a99bd6ee1368
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Acacia Shop 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...
27.148789
77
0.614453
""" Copyright 2019 Acacia Shop 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...
108
0
0
5,389
0
0
0
53
341
1399b004703bcafe35b47e54193957c9e3e2651a
1,836
py
Python
pycycle/elements/test/test_ambient.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
38
2019-08-12T15:27:25.000Z
2022-01-27T16:34:51.000Z
pycycle/elements/test/test_ambient.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
16
2019-11-07T17:39:54.000Z
2022-03-01T14:59:48.000Z
pycycle/elements/test/test_ambient.py
askprash/pyCycle
e0845d7e320b6cb47367734c26ec3410c9fa5bf7
[ "Apache-2.0" ]
35
2019-08-12T15:27:37.000Z
2022-03-17T16:25:33.000Z
import numpy as np import unittest import os fpath = os.path.dirname(os.path.realpath(__file__)) ref_data = np.loadtxt(fpath + "/reg_data/ambient.csv", delimiter=",", skiprows=1) header = ['alt','MN','dTs','Pt','Ps','Tt','Ts'] h_map = dict(((v_name,i) for i,v_name in enumerate(header))) if...
30.098361
121
0.595316
import numpy as np import unittest import os from openmdao.api import Problem from openmdao.utils.assert_utils import assert_check_partials from pycycle.elements.ambient import Ambient fpath = os.path.dirname(os.path.realpath(__file__)) ref_data = np.loadtxt(fpath + "/reg_data/ambient.csv", d...
0
0
0
1,307
0
0
0
74
91
e6ba67dd133bf02c0b7e121ffba5bad0c094d16b
169
py
Python
lib/JumpScale/baselib/admin/__init__.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
null
null
null
lib/JumpScale/baselib/admin/__init__.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
4
2016-08-25T12:08:39.000Z
2018-04-12T12:36:01.000Z
lib/JumpScale/baselib/admin/__init__.py
jumpscale7/jumpscale_core7
c3115656214cab1bd32f7a1e092c0bffc84a00cd
[ "Apache-2.0" ]
3
2016-03-08T07:49:34.000Z
2018-10-19T13:56:43.000Z
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') j.tools._register('admin', cb)
18.777778
39
0.721893
from JumpScale import j j.base.loader.makeAvailable(j, 'tools') def cb(): from .Admin import AdminFactory return AdminFactory() j.tools._register('admin', cb)
0
0
0
0
0
50
0
0
23
025fa04c3d6f58c6e16463f74df0305706a0b999
6,706
py
Python
dizoo/gfootball/model/conv1d/conv1d.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
dizoo/gfootball/model/conv1d/conv1d.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
dizoo/gfootball/model/conv1d/conv1d.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
import torch.nn as nn import torch.optim as optim
48.244604
119
0.659708
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from ding.utils import MODEL_REGISTRY, deep_merge_dicts from ding.config import read_config from dizoo.gfootball.model.conv1d.conv1d_default_config import conv1d_default_config @MODEL_REGISTRY.register('c...
0
6,391
0
0
0
0
0
109
155
ab1e107d90b72883319c56872da66b126e65a2f8
1,857
py
Python
scripts/source/knn_model.py
hi-akshat/Emotion-Recogniton-from-EEG-Signals
3b939dd9557188048d41ca16c02004c4aabbc663
[ "MIT" ]
26
2020-09-30T01:56:39.000Z
2022-01-17T11:53:48.000Z
scripts/source/knn_model.py
akshat1706/Emotion-Recogniton-from-DEAP
3b939dd9557188048d41ca16c02004c4aabbc663
[ "MIT" ]
1
2020-07-06T13:36:09.000Z
2020-07-06T13:36:09.000Z
scripts/source/knn_model.py
akshat1706/Emotion-Recogniton-from-DEAP
3b939dd9557188048d41ca16c02004c4aabbc663
[ "MIT" ]
13
2019-08-15T02:31:44.000Z
2020-05-20T10:21:53.000Z
from sklearn.neighbors import KNeighborsClassifier import numpy as np from sklearn.model_selection import KFold kf=KFold(n_splits=10) train_y = [] #Actual result of the data used in testing of the valence train_a = [] #Actual result of the data used in testing of the arousal train_x = np.genfromtxt('traina.csv',...
43.186047
148
0.775444
from sklearn.neighbors import KNeighborsClassifier import numpy as np from sklearn.model_selection import KFold,train_test_split def get_score(model,X_train,X_test,y_train,y_test): #this function is used to check the accuracy score for a given model, training and testing data model.fit(X_train,y_train) return mo...
0
0
0
0
0
191
0
17
23
0ef62b4680c0d4b7a18845e15141971134e0e7a8
2,521
py
Python
simbad/exit.py
hlasimpk/SIMBAD
684de027f25fe63e8d973e494b0adf74db08cd89
[ "BSD-3-Clause" ]
null
null
null
simbad/exit.py
hlasimpk/SIMBAD
684de027f25fe63e8d973e494b0adf74db08cd89
[ "BSD-3-Clause" ]
null
null
null
simbad/exit.py
hlasimpk/SIMBAD
684de027f25fe63e8d973e494b0adf74db08cd89
[ "BSD-3-Clause" ]
null
null
null
"""Exit utility for catching errors and printing unified error messages""" __author__ = "Jens Thomas & Felix Simkovic" __date__ = "08 May 2017" __version__ = "1.1" import logging import os import sys import traceback try: import pyrvapi except ImportError: pyrvapi = None def _debug_logfile(logger): """...
29.658824
116
0.636255
"""Exit utility for catching errors and printing unified error messages""" __author__ = "Jens Thomas & Felix Simkovic" __date__ = "08 May 2017" __version__ = "1.1" import logging import os import sys import traceback try: import pyrvapi except ImportError: pyrvapi = None def _debug_logfile(logger): """...
0
0
0
0
0
0
0
0
0
72f645b4ace4b4e23c0f7f12bd4d30f9d66670b3
2,073
py
Python
main.py
mauricioprod/DeepLabv3FineTuning
fd0c883cd11709802fd3bbf1f7f3c0455216acf9
[ "MIT" ]
null
null
null
main.py
mauricioprod/DeepLabv3FineTuning
fd0c883cd11709802fd3bbf1f7f3c0455216acf9
[ "MIT" ]
null
null
null
main.py
mauricioprod/DeepLabv3FineTuning
fd0c883cd11709802fd3bbf1f7f3c0455216acf9
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
30.485294
89
0.654124
from pathlib import Path import click import torch from sklearn.metrics import f1_score, roc_auc_score, jaccard_score from torch.utils import data import datahandler from model import createDeepLabv3 from trainer import train_model @click.command() @click.option("--data-directory", required=True, ...
0
1,775
0
0
0
0
0
56
201
716e3f35d02f8be3dc9e9b53e14b7b2822a7d5f7
1,098
py
Python
vsphere/tests/legacy/conftest.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
vsphere/tests/legacy/conftest.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
vsphere/tests/legacy/conftest.py
01100010011001010110010101110000/integrations-core
b6216f96c9faa67e9e1e236caa8ddac597f0ef13
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) def _instance(): """ Create a default instance, used by multiple fixtures """ return {'name': 'vsphere_mock', 'tags': ['foo:bar']}
22.875
75
0.711293
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under Simplified BSD License (see LICENSE) import mock import pytest from datadog_checks.vsphere.legacy.vsphere_legacy import VSphereLegacyCheck from .utils import disable_thread_pool, get_mocked_server def _instance(): """ Create a default i...
0
606
0
0
0
0
0
72
159
46d98de8b19ea0d2e59dfca1e2e6e9db7ab228c4
513
py
Python
Day 19/Make_an_Etch_a_sketch_app.py
hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021
5340007d8405df2e29643b47d3ff9fa4f7af9e10
[ "Unlicense" ]
null
null
null
Day 19/Make_an_Etch_a_sketch_app.py
hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021
5340007d8405df2e29643b47d3ff9fa4f7af9e10
[ "Unlicense" ]
null
null
null
Day 19/Make_an_Etch_a_sketch_app.py
hamzaoda/100-Days-of-Code---The-Complete-Python-Pro-Bootcamp-for-2021
5340007d8405df2e29643b47d3ff9fa4f7af9e10
[ "Unlicense" ]
null
null
null
# import colorgram import turtle as t timy = t.Turtle() t.listen() t.onkey(key = "w", fun = moveForward) t.onkey(key = "a", fun = turnLeft) t.onkey(key = "d", fun = turnRight) t.onkey(key = "s", fun = moveBackward) t.onkey(key = "c", fun = timy.reset) the_screen = Screen() the_screen.exitonclic...
12.214286
38
0.619883
# import colorgram from turtle import * import random import turtle as t timy = t.Turtle() def moveForward(): timy.fd(20) def moveBackward(): timy.back(20) def turnRight(): timy.right(20) def turnLeft(): timy.left(20) t.listen() t.onkey(key = "w", fun = moveForward) t.onkey(key = "a",...
0
0
0
0
0
55
0
-9
136