hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
76c81ce20f753272a0f1de345ed6515e3a79a660
917
py
Python
datatypes/all_vms_dict.py
ashwinkonireddy/pythonAutomation
d551a51744a4f8ba3d6f8def3c070f6565ac233f
[ "MIT" ]
null
null
null
datatypes/all_vms_dict.py
ashwinkonireddy/pythonAutomation
d551a51744a4f8ba3d6f8def3c070f6565ac233f
[ "MIT" ]
null
null
null
datatypes/all_vms_dict.py
ashwinkonireddy/pythonAutomation
d551a51744a4f8ba3d6f8def3c070f6565ac233f
[ "MIT" ]
null
null
null
''' Example of list and tuples ''' import boto3 my_all_regions = [] ec2 = boto3.client('ec2', aws_access_key_id='ACCESS', aws_secret_access_key='SECRET', region_name='us-east-1' ) aws_regions = ec2.describe_regions() # pri...
24.131579
71
0.625954
4f9d9bb7cd1c42c172a792ef4a4af8ca43922aff
1,962
py
Python
src/sentry/models/grouprelease.py
mitsuhiko/sentry
cddc3b643a13b52ac6d07ff22e4bd5d69ecbad90
[ "BSD-3-Clause" ]
4
2016-03-16T07:21:36.000Z
2017-09-04T07:29:56.000Z
src/sentry/models/grouprelease.py
mitsuhiko/sentry
cddc3b643a13b52ac6d07ff22e4bd5d69ecbad90
[ "BSD-3-Clause" ]
null
null
null
src/sentry/models/grouprelease.py
mitsuhiko/sentry
cddc3b643a13b52ac6d07ff22e4bd5d69ecbad90
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.db import models from django.utils import timezone from hashlib import md5 from sentry.utils.cache import cache from sentry.db.models import ( BoundedPositiveIntegerField, Model, sane_repr ) class GroupRelease(Model): __core__ = False project_id = Boun...
32.163934
77
0.636595
be235aa5b76ffdc06e8f2499bc8bffb0ca3d8dc3
11,873
py
Python
stripstream/pddl/operators.py
nishadg246/stripstream-ivan-nishad
9a275ae5836ee289cd09cbe6bc0ff6fd4a381135
[ "MIT" ]
null
null
null
stripstream/pddl/operators.py
nishadg246/stripstream-ivan-nishad
9a275ae5836ee289cd09cbe6bc0ff6fd4a381135
[ "MIT" ]
null
null
null
stripstream/pddl/operators.py
nishadg246/stripstream-ivan-nishad
9a275ae5836ee289cd09cbe6bc0ff6fd4a381135
[ "MIT" ]
null
null
null
from stripstream.pddl.logic.utils import is_literal from stripstream.pddl.logic.atoms import Atom from stripstream.pddl.logic.operations import Cost from stripstream.pddl.logic.quantifiers import Exists from stripstream.pddl.logic.connectives import And, Not from stripstream.pddl.objects import Parameter from stripstre...
40.522184
126
0.66706
c144a02a3c0af813c942c4e6922b360575486e82
4,260
py
Python
chives/protocols/full_node_protocol.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
75
2021-06-27T03:30:59.000Z
2022-03-20T12:32:55.000Z
chives/protocols/full_node_protocol.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
39
2021-07-02T07:11:24.000Z
2022-03-20T15:00:07.000Z
chives/protocols/full_node_protocol.py
ChivesWorld/chives-blockchain
56734ef0719f7bf844213823bb95b0fcc642d222
[ "Apache-2.0" ]
41
2021-06-24T11:24:43.000Z
2022-03-14T16:11:38.000Z
from dataclasses import dataclass from typing import List, Optional from chives.types.blockchain_format.sized_bytes import bytes32 from chives.types.blockchain_format.vdf import VDFInfo, VDFProof from chives.types.end_of_slot_bundle import EndOfSubSlotBundle from chives.types.full_block import FullBlock from chives.ty...
20.882353
116
0.789671
aafe2c17bc5b3c9c68ce86b8bf99290a08437acb
6,742
py
Python
src/datapane/client/scripts/config.py
tig/datapane
defae6776e73b07191c0a5804a50b284ec3c9a63
[ "Apache-2.0" ]
1
2021-07-13T23:36:27.000Z
2021-07-13T23:36:27.000Z
src/datapane/client/scripts/config.py
tig/datapane
defae6776e73b07191c0a5804a50b284ec3c9a63
[ "Apache-2.0" ]
null
null
null
src/datapane/client/scripts/config.py
tig/datapane
defae6776e73b07191c0a5804a50b284ec3c9a63
[ "Apache-2.0" ]
null
null
null
"""Support for handling datapane script config""" import dataclasses as dc import json import os import re from pathlib import Path from typing import ClassVar, List, Optional import dacite import importlib_resources as ir import jsonschema import nbconvert import nbformat import stringcase import yaml from traitlets....
36.247312
118
0.666419
a6eaf377f79d5c5779d9fe66065f266ca4704398
1,550
py
Python
functions/verificationHandler.py
TheB2D/Graveon
7d676b9c439e545bf9085892282da127954e7b45
[ "MIT" ]
1
2021-07-24T18:41:48.000Z
2021-07-24T18:41:48.000Z
functions/verificationHandler.py
TheB2D/Graveon
7d676b9c439e545bf9085892282da127954e7b45
[ "MIT" ]
null
null
null
functions/verificationHandler.py
TheB2D/Graveon
7d676b9c439e545bf9085892282da127954e7b45
[ "MIT" ]
null
null
null
import json import random import string from functions import utils from captcha.image import ImageCaptcha def setVerificationChannel(id, channelID, guild) -> None: serverData = utils.openFile(guild) serverData["verification"]["verificationChannelID"] = channelID serverData["verification"]["verificationID"...
33.695652
74
0.692258
17bb5cecbf245934e1a3f2e21a4460ec8c59b321
2,083
py
Python
tests/test_message.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
1
2020-12-13T00:49:51.000Z
2020-12-13T00:49:51.000Z
tests/test_message.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
tests/test_message.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
import pytest from scrywarden.transport.message import keys, get class TestGetFields: def test_primitive_value(self): """Primitive JSON values should not iterate.""" assert [*keys(5)] == [] def test_basic_dict(self): """Basic dictionary should iterate over keys.""" assert {*k...
29.757143
75
0.487758
8d0382e3dd8fc0a31bde74df2c0c1c6e0105c098
25,788
py
Python
src/zeep/xsd/elements/indicators.py
eulercamposbarros/python-zeep
8cf74e7f9e6dd0e081c4b7796e618270a5b3bd19
[ "MIT" ]
null
null
null
src/zeep/xsd/elements/indicators.py
eulercamposbarros/python-zeep
8cf74e7f9e6dd0e081c4b7796e618270a5b3bd19
[ "MIT" ]
null
null
null
src/zeep/xsd/elements/indicators.py
eulercamposbarros/python-zeep
8cf74e7f9e6dd0e081c4b7796e618270a5b3bd19
[ "MIT" ]
null
null
null
""" zeep.xsd.elements.indicators ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Indicators are a collection of elements. There are four available, these are All, Choice, Group and Sequence. Indicator -> OrderIndicator -> All -> Choice -> Sequence -> Grou...
34.201592
105
0.56441
70ece4e68f1d90e04f280aa85141a25ae640880d
106
py
Python
amy/workshops/context_processors.py
lauryndbrown/amy
a7712c15df2adca0c13b2b68829fdaf476dcb426
[ "MIT" ]
null
null
null
amy/workshops/context_processors.py
lauryndbrown/amy
a7712c15df2adca0c13b2b68829fdaf476dcb426
[ "MIT" ]
null
null
null
amy/workshops/context_processors.py
lauryndbrown/amy
a7712c15df2adca0c13b2b68829fdaf476dcb426
[ "MIT" ]
null
null
null
from . import __version__ def version(request): data = {"amy_version": __version__} return data
15.142857
39
0.698113
370466dbbcba3795118435be434835e9fcd453cc
676
py
Python
configs/deepim/lmPbrSO/FlowNet512_1.5AugAAE_Flat_lmPbr_SO/FlowNet512_1.5AugAAE_Flat_Pbr_10_eggbox.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/deepim/lmPbrSO/FlowNet512_1.5AugAAE_Flat_lmPbr_SO/FlowNet512_1.5AugAAE_Flat_Pbr_10_eggbox.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/deepim/lmPbrSO/FlowNet512_1.5AugAAE_Flat_lmPbr_SO/FlowNet512_1.5AugAAE_Flat_Pbr_10_eggbox.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = ["./FlowNet512_1.5AugAAE_Flat_Pbr_01_ape.py"] OUTPUT_DIR = "output/deepim/lmPbrSO/FlowNet512_1.5AugAAE_Flat_lmPbr_SO/eggbox" DATASETS = dict(TRAIN=("lm_pbr_eggbox_train",), TEST=("lm_real_eggbox_test",)) # rl1 # objects eggbox Avg(1) # ad_2 12.77 12.77 # ad_5 53.62 53.62 # ad_10 94.84 94...
25.037037
78
0.607988
e0af234ecd738667f31f03be673a56cc06e0a5e8
8,059
py
Python
pyedbglib/protocols/avrispprotocol.py
mraardvark/pyedbglib
9774cf82787e37ef211faaa8cf00e2a8b7eaa7e0
[ "MIT" ]
10
2018-10-27T11:49:18.000Z
2021-04-06T02:21:15.000Z
pyedbglib/protocols/avrispprotocol.py
mraardvark/pyedbglib
9774cf82787e37ef211faaa8cf00e2a8b7eaa7e0
[ "MIT" ]
1
2021-03-14T15:49:32.000Z
2021-03-14T17:59:43.000Z
pyedbglib/protocols/avrispprotocol.py
mraardvark/pyedbglib
9774cf82787e37ef211faaa8cf00e2a8b7eaa7e0
[ "MIT" ]
null
null
null
""" Simple wrapper for AVR ISP programming protocol over JTAGICE3 transport Important note: The AVR ISP protocol dates back to very early AVR devices. Many of the parametric information included in the protocol metadata applies only to those old devices. This is not a universal implementation, and does not d...
36.96789
115
0.671671
a8646c482c0a524d9165af213261eeabf5bea7fc
1,356
py
Python
nipype/interfaces/ants/tests/test_auto_AverageAffineTransform.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/ants/tests/test_auto_AverageAffineTransform.py
vferat/nipype
536c57da150d157dcb5c121af43aaeab71cdbd5f
[ "Apache-2.0" ]
2
2018-04-17T19:18:16.000Z
2020-03-04T22:05:02.000Z
nipype/interfaces/ants/tests/test_auto_AverageAffineTransform.py
oesteban/nipype
c14f24eba1da08711bbb894e049ee858ed740096
[ "Apache-2.0" ]
null
null
null
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..utils import AverageAffineTransform def test_AverageAffineTransform_inputs(): input_map = dict( args=dict(argstr='%s', ), dimension=dict( argstr='%d', mandatory=True, ...
29.478261
67
0.582596
010c23080fb85886b07f0ede74d49e43b1d9ef60
2,711
py
Python
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/Utilities24/pdbqt_to_pdbq.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/Utilities24/pdbqt_to_pdbq.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
resources/mgltools_x86_64Linux2_1.5.6/MGLToolsPckgs/AutoDockTools/Utilities24/pdbqt_to_pdbq.py
J-E-J-S/aaRS-Pipeline
43f59f28ab06e4b16328c3bc405cdddc6e69ac44
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from string import find from MolKit import Read from MolKit.pdbWriter import PdbqWriter if __name__ == '__main__': import sys import getopt def usage(): "Print helpful, accurate usage statement to stdout." print "Usage: pdbqt_to_pdbq.py -s filename" ...
26.320388
74
0.551826
5779df8fe0fdfbf77115e333730027b3defc41a7
855
py
Python
pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/dist-packages/std_msgs/msg/__init__.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/dist-packages/std_msgs/msg/__init__.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
pynaoqi-python2.7-2.5.5.5-linux64/lib/python2.7/dist-packages/std_msgs/msg/__init__.py
applejenny66/docker_pepper
2469cc4db6585161a31ac44c8fcf2605d71318b1
[ "MIT" ]
null
null
null
from ._Bool import * from ._Int8MultiArray import * from ._UInt64MultiArray import * from ._Empty import * from ._Int32 import * from ._Int16 import * from ._String import * from ._UInt16MultiArray import * from ._Float64 import * from ._ByteMultiArray import * from ._MultiArrayLayout import * from ._UInt16 import * fr...
25.909091
35
0.775439
08e53176507a0d2dc629d04954be91b811f26eab
416
py
Python
demo_app/demo/models.py
suhaibroomy/django-smartfields
e9331dc74f72d0254608526f8816aa4bb8f1fca4
[ "MIT" ]
97
2015-01-18T10:22:34.000Z
2022-02-17T13:53:26.000Z
demo_app/demo/models.py
suhaibroomy/django-smartfields
e9331dc74f72d0254608526f8816aa4bb8f1fca4
[ "MIT" ]
32
2015-01-08T08:12:09.000Z
2021-09-21T12:13:13.000Z
demo_app/demo/models.py
suhaibroomy/django-smartfields
e9331dc74f72d0254608526f8816aa4bb8f1fca4
[ "MIT" ]
18
2015-02-14T01:51:09.000Z
2020-11-27T11:03:49.000Z
from django.db import models from django.contrib.sessions.models import Session from smartfields import fields, processors from smartfields.dependencies import Dependency, FileDependency class SlugModel(models.Model): title = fields.CharField(max_length=32, dependencies=[ Dependency(attname='slug', proce...
32
72
0.78125
c839fb75f2e615e3cf07d09ab12b17a90c6460d0
2,415
py
Python
tests/test_db.py
maiconandsilva/receitas
924aa3acbd5b24286fb2a0527c2a2e133f904937
[ "MIT" ]
null
null
null
tests/test_db.py
maiconandsilva/receitas
924aa3acbd5b24286fb2a0527c2a2e133f904937
[ "MIT" ]
null
null
null
tests/test_db.py
maiconandsilva/receitas
924aa3acbd5b24286fb2a0527c2a2e133f904937
[ "MIT" ]
null
null
null
import pytest from models.usuario import * from models.receitas import * @pytest.fixture def usuario_teste(): yield Usuario.query.filter(Usuario.email == 'test@test.com').one_or_none() @pytest.fixture def receita(): yield Receita.query.filter(Receita.nome == 'Arroz Doce').one_or_none() def test_create_us...
28.75
78
0.658385
0b9eafb107f48476e3e77a1d2d3b710f3c8d2a13
382
py
Python
20200816_RSA系列简单题/funnyrsa2.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
16
2020-09-26T06:17:57.000Z
2022-03-03T15:41:07.000Z
20200816_RSA系列简单题/funnyrsa2.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
null
null
null
20200816_RSA系列简单题/funnyrsa2.py
ctfwiki/subject_misc_ctfshow
2a51f5bc12e9c136841f9cc3ef88ed53df952054
[ "MIT" ]
6
2020-08-30T09:09:08.000Z
2021-11-28T02:09:39.000Z
from Crypto.Util.number import getPrime import libnum from secret import flag e = 0x10001 p = getPrime(80) q = getPrime(80) r = getPrime(80) n = p * q * r m = libnum.s2n(flag) c = pow(m,e,n) print("n =", n) print("c =", c) # n = 897607935780955837078784515115186203180822213482989041398073067996023639 # c = 49057153158...
23.875
78
0.764398
48269085a8ee02e22a63e519682c1c0d6ef1a71a
19,557
py
Python
networkx/tests/test_convert_numpy.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
2
2020-11-25T12:01:15.000Z
2021-02-02T03:46:23.000Z
networkx/tests/test_convert_numpy.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
1
2020-11-15T23:07:09.000Z
2020-11-15T23:07:09.000Z
networkx/tests/test_convert_numpy.py
jebogaert/networkx
8563c3313223a53c548530f39c8cfb6e433539d3
[ "BSD-3-Clause" ]
1
2020-12-03T05:51:32.000Z
2020-12-03T05:51:32.000Z
import pytest np = pytest.importorskip("numpy") npt = np.testing import networkx as nx from networkx.generators.classic import barbell_graph, cycle_graph, path_graph from networkx.testing.utils import assert_graphs_equal def test_to_numpy_matrix_deprecation(): pytest.deprecated_call(nx.to_numpy_matrix, nx.Graph...
36.216667
88
0.622437
fd6f5ac2ba9bc636406d8e5fe03af115fe45fa9d
1,945
py
Python
2312.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
1
2022-01-14T08:45:32.000Z
2022-01-14T08:45:32.000Z
2312.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
2312.py
ShawonBarman/URI-Online-judge-Ad-Hoc-level-problem-solution-in-python
9a0f0ad5efd4a9e73589c357ab4b34b7c73a11da
[ "MIT" ]
null
null
null
def swap(x, y): temp = x x = y y = temp return x, y def bubble_sort(countries, g, s, b): i = 0 while i < len(countries)-1: k = 0 while k < len(countries)-i-1: if g[k+1] > g[k]: g[k], g[k+1] = swap(g[k], g[k+1]) s[k], s[k + 1...
38.137255
98
0.349614
6dc4f861ee484ff17de869b3014cd084461e589b
7,720
py
Python
plugins/cosigner_pool/qt.py
MrSlosh/Electrum-NYC
9b83efafc5313246804ead462ff6266ee5d50b60
[ "MIT" ]
1
2018-02-27T23:40:07.000Z
2018-02-27T23:40:07.000Z
plugins/cosigner_pool/qt.py
MrSlosh/Electrum-NYC
9b83efafc5313246804ead462ff6266ee5d50b60
[ "MIT" ]
null
null
null
plugins/cosigner_pool/qt.py
MrSlosh/Electrum-NYC
9b83efafc5313246804ead462ff6266ee5d50b60
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
34.932127
151
0.627332
b6d2fce16defba0bbbdd8e9e5d086ff27ad64374
99
py
Python
DataBrain/crawler/__init__.py
tenqaz/DataBrain
bac6f57e579d402c02d25afd60a79341129eb04a
[ "Apache-2.0" ]
null
null
null
DataBrain/crawler/__init__.py
tenqaz/DataBrain
bac6f57e579d402c02d25afd60a79341129eb04a
[ "Apache-2.0" ]
null
null
null
DataBrain/crawler/__init__.py
tenqaz/DataBrain
bac6f57e579d402c02d25afd60a79341129eb04a
[ "Apache-2.0" ]
null
null
null
""" @author: Jim @project: DataBrain @file: __init__.py.py @time: 2020/10/6 13:23 @desc: """
12.375
22
0.606061
6846d45ddd12b2261659da6d1616f915643b6b24
1,165
py
Python
config.py
Sichengthebest/CodePracticeBot
0d37c6786311976204a113d57ea1d204ecbe611b
[ "BSD-2-Clause" ]
9
2020-10-04T00:09:16.000Z
2021-11-12T01:31:00.000Z
config.py
Sichengthebest/CodePracticeBot
0d37c6786311976204a113d57ea1d204ecbe611b
[ "BSD-2-Clause" ]
15
2020-10-06T18:15:32.000Z
2021-11-24T00:01:30.000Z
config.py
Sichengthebest/CodePracticeBot
0d37c6786311976204a113d57ea1d204ecbe611b
[ "BSD-2-Clause" ]
17
2020-09-26T15:36:58.000Z
2022-01-15T16:01:43.000Z
#!/usr/bin/env python3 import json import os loads = json.loads load = json.load dumps = json.dumps dump = json.dump config_file = "" run_path = os.path.split(os.path.realpath(__file__))[0] CONFIG = {} def load_config(): global CONFIG with open(config_file, 'r') as configfile: CONFIG = load( config...
27.093023
93
0.665236
e81c38c513c0387575682ecc65f9946092b4bda1
811
py
Python
setup.py
quantopian/camo-client
61adcd68ede9cc0a24a7e53224e26e5dc4eac25d
[ "MIT" ]
1
2018-04-02T18:40:04.000Z
2018-04-02T18:40:04.000Z
setup.py
quantopian/camo-client
61adcd68ede9cc0a24a7e53224e26e5dc4eac25d
[ "MIT" ]
3
2017-06-02T12:05:24.000Z
2018-06-26T20:58:10.000Z
setup.py
quantopian/camo-client
61adcd68ede9cc0a24a7e53224e26e5dc4eac25d
[ "MIT" ]
2
2017-09-12T20:35:33.000Z
2020-10-30T06:05:59.000Z
#!/usr/bin/env python from setuptools import setup setup( name='camo-client', version='0.1.0', author='Ben Olive', author_email='sionide21@gmail.com', description="A python client for Github's Camo image proxy", url='https://github.com/sionide21/camo-client', py_modules=['camo'], inst...
28.964286
71
0.612824
db1d89506b005d4f5168d3a206c8bdf0971c1898
185
py
Python
streamlit_example/ex2.py
erichare/simple-daisies
e8ac65f6cccc31e42eed21bfc2d4017c404ff39c
[ "Apache-2.0" ]
null
null
null
streamlit_example/ex2.py
erichare/simple-daisies
e8ac65f6cccc31e42eed21bfc2d4017c404ff39c
[ "Apache-2.0" ]
null
null
null
streamlit_example/ex2.py
erichare/simple-daisies
e8ac65f6cccc31e42eed21bfc2d4017c404ff39c
[ "Apache-2.0" ]
1
2022-03-30T21:46:51.000Z
2022-03-30T21:46:51.000Z
import streamlit as st def hello(name): return "Hello " + str(name) st.title("Hello World Demo") name = st.text_area(label="Your Name", value="World") st.write(hello(name=name))
18.5
53
0.691892
34eba30b99597ea46ed634e52851291bce74cd97
3,853
py
Python
ethereum/fast_rlp.py
Kalbi/pyethereum
4f9ac945b9e6f16af254e071896694266c5e67fb
[ "MIT" ]
2
2017-09-08T03:48:46.000Z
2021-06-16T02:33:23.000Z
ethereum/fast_rlp.py
Kalbi/pyethereum
4f9ac945b9e6f16af254e071896694266c5e67fb
[ "MIT" ]
null
null
null
ethereum/fast_rlp.py
Kalbi/pyethereum
4f9ac945b9e6f16af254e071896694266c5e67fb
[ "MIT" ]
null
null
null
import sys import rlp from .utils import int_to_big_endian, big_endian_to_int, safe_ord from . import db def _encode_optimized(item): """RLP encode (a nested sequence of) bytes""" if isinstance(item, bytes): if len(item) == 1 and ord(item) < 128: return item prefix = length_prefix(...
30.101563
79
0.596678
3dca30988cd0c9f7cada476dc602ae863f82ebb9
1,248
py
Python
tests/unittest/test_data/test_trading_dates_mixin.py
ForrestLin0805/rqalpha
b10d03f9a23180a93e39c40fcb048ba6db37b573
[ "Apache-2.0" ]
5,263
2016-07-20T10:41:10.000Z
2022-03-29T08:24:34.000Z
tests/unittest/test_data/test_trading_dates_mixin.py
ForrestLin0805/rqalpha
b10d03f9a23180a93e39c40fcb048ba6db37b573
[ "Apache-2.0" ]
572
2016-07-28T07:51:02.000Z
2022-02-09T15:28:03.000Z
tests/unittest/test_data/test_trading_dates_mixin.py
ForrestLin0805/rqalpha
b10d03f9a23180a93e39c40fcb048ba6db37b573
[ "Apache-2.0" ]
1,769
2016-07-20T11:11:55.000Z
2022-03-31T10:11:38.000Z
# -*- coding: utf-8 -*- # 版权所有 2019 深圳米筐科技有限公司(下称“米筐科技”) # # 除非遵守当前许可,否则不得使用本软件。 # # * 非商业用途(非商业用途指个人出于非商业目的使用本软件,或者高校、研究所等非营利机构出于教育、科研等目的使用本软件): # 遵守 Apache License 2.0(下称“Apache 2.0 许可”),您可以在以下位置获得 Apache 2.0 许可的副本:http://www.apache.org/licenses/LICENSE-2.0。 # 除非法律有要求或以书面形式达成协议,否则本软件分发时需保持当前许可“原样”...
44.571429
144
0.727564
5ca117f7dfbf878150d4d3d91c8b8e58395aeeb6
1,270
bzl
Python
examples/examples_transitive_deps.bzl
jelmansouri/rules_rust
224fe6a81b8ffa9c585c75f49a41f9b9924d516d
[ "Apache-2.0" ]
null
null
null
examples/examples_transitive_deps.bzl
jelmansouri/rules_rust
224fe6a81b8ffa9c585c75f49a41f9b9924d516d
[ "Apache-2.0" ]
null
null
null
examples/examples_transitive_deps.bzl
jelmansouri/rules_rust
224fe6a81b8ffa9c585c75f49a41f9b9924d516d
[ "Apache-2.0" ]
null
null
null
"""Define transitive dependencies for `rules_rust` examples There are some transitive dependencies of the dependencies of the examples' dependencies. This file contains the required macros to pull these dependencies """ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@io_bazel_rules_rust//:works...
32.564103
98
0.699213
b4fd325c2b816d45f1a2c978ab9f4ebf7f800ed6
7,704
py
Python
rujaion/console.py
fukatani/rust-debug
7537fb3acb28545ce5f8c33c5a129fa82a2b26ab
[ "MIT" ]
57
2019-02-11T00:54:02.000Z
2022-02-08T23:50:44.000Z
rujaion/console.py
fukatani/rust-debug
7537fb3acb28545ce5f8c33c5a129fa82a2b26ab
[ "MIT" ]
16
2019-02-11T00:53:43.000Z
2021-04-08T13:53:09.000Z
rujaion/console.py
fukatani/rust-gui-debugger
7537fb3acb28545ce5f8c33c5a129fa82a2b26ab
[ "MIT" ]
6
2019-10-08T15:35:06.000Z
2020-12-28T23:55:52.000Z
from collections import deque import sys from typing import * from io import StringIO from PyQt5 import QtWidgets, QtGui, QtCore from PyQt5.QtCore import Qt, pyqtSignal import pexpect from onlinejudge_workaround_for_conflict.dispatch import submission_from_url from rujaion.custom_popup import CustomPopup from rujaion...
33.641921
85
0.571132
3f9c7a9dd455e057580dcf1345cc5d46ab8e0708
53,490
bzl
Python
bazel/repository_locations.bzl
dippynark/envoy
9c6a44c3a1bf1f815debcaa1fc8c764bdb045f97
[ "Apache-2.0" ]
null
null
null
bazel/repository_locations.bzl
dippynark/envoy
9c6a44c3a1bf1f815debcaa1fc8c764bdb045f97
[ "Apache-2.0" ]
117
2021-04-21T07:58:45.000Z
2022-03-28T05:09:45.000Z
bazel/repository_locations.bzl
dippynark/envoy
9c6a44c3a1bf1f815debcaa1fc8c764bdb045f97
[ "Apache-2.0" ]
null
null
null
# This should match the schema defined in external_deps.bzl. REPOSITORY_LOCATIONS_SPEC = dict( bazel_compdb = dict( project_name = "bazel-compilation-database", project_desc = "Clang JSON compilation database support for Bazel", project_url = "https://github.com/grailbio/bazel-compilation-da...
51.040076
185
0.652477
9db3be5fc34dbdab1c17d77a03484a4a02551b4f
717
py
Python
core/management/commands/reset_webhooks.py
mpyrev/lunchegram
14a29da74e14a959be607e4fc76bbc2f181c5278
[ "MIT" ]
1
2019-11-26T13:49:02.000Z
2019-11-26T13:49:02.000Z
core/management/commands/reset_webhooks.py
mpyrev/lunchegram
14a29da74e14a959be607e4fc76bbc2f181c5278
[ "MIT" ]
7
2019-12-24T13:17:23.000Z
2022-02-10T12:35:14.000Z
core/management/commands/reset_webhooks.py
mpyrev/lunchegram
14a29da74e14a959be607e4fc76bbc2f181c5278
[ "MIT" ]
null
null
null
from urllib.parse import urljoin from django.conf import settings from django.core.management.base import BaseCommand from django.urls import reverse from lunchegram import bot class Command(BaseCommand): help = 'Resets Telegram webhooks' def add_arguments(self, parser): parser.add_argument( ...
26.555556
95
0.640167
310ac0b48bff7848bde6fd4efa60347d30072167
24,555
py
Python
tests/test_batch/test_batch.py
kitagawa-hr/moto
97408552a323af27d9b755e5456888c496a3739d
[ "Apache-2.0" ]
2
2018-01-29T14:50:38.000Z
2018-05-12T10:45:31.000Z
tests/test_batch/test_batch.py
kitagawa-hr/moto
97408552a323af27d9b755e5456888c496a3739d
[ "Apache-2.0" ]
1
2021-03-19T11:56:45.000Z
2021-03-19T11:56:45.000Z
tests/test_batch/test_batch.py
kitagawa-hr/moto
97408552a323af27d9b755e5456888c496a3739d
[ "Apache-2.0" ]
12
2017-09-06T22:11:15.000Z
2021-05-28T17:22:31.000Z
from __future__ import unicode_literals import time import datetime import boto3 from botocore.exceptions import ClientError import sure # noqa from moto import mock_batch, mock_iam, mock_ec2, mock_ecs, mock_logs import functools import nose def expected_failure(test): @functools.wraps(test) def inner(*args...
28.256617
116
0.628996
2e2ada93e4be6d63d5160f078905e3ef51b4d5c8
3,148
py
Python
invenio_oarepo_oai_pmh_harvester/migration.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/migration.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
invenio_oarepo_oai_pmh_harvester/migration.py
Semtexcz/invenio-oarepo-oai-pmh-harvester
2866c7d7355f6885b4f443ee1e82baa24502b36e
[ "MIT" ]
null
null
null
import logging from datetime import datetime from typing import Callable from invenio_db import db from invenio_records.models import RecordMetadata from sqlalchemy.exc import IntegrityError from invenio_oarepo_oai_pmh_harvester.models import OAIRecord, OAIProvider from invenio_oarepo_oai_pmh_harvester.oai_base impor...
41.421053
106
0.502224
37acc338772937c78e17b01418da3d3a4350f122
7,428
py
Python
phono3py/cui/create_supercells.py
mhuels/phono3py
d19abc654c29d06b88d06cda50ed8dba4450d336
[ "BSD-3-Clause" ]
null
null
null
phono3py/cui/create_supercells.py
mhuels/phono3py
d19abc654c29d06b88d06cda50ed8dba4450d336
[ "BSD-3-Clause" ]
null
null
null
phono3py/cui/create_supercells.py
mhuels/phono3py
d19abc654c29d06b88d06cda50ed8dba4450d336
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2015 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # notic...
45.570552
78
0.548196
be1b4a2148a78f36023ab44a3548b15a90fb95d0
3,067
py
Python
pydevices/RfxDevices/MARTE_NE.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
pydevices/RfxDevices/MARTE_NE.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
pydevices/RfxDevices/MARTE_NE.py
orozda/mdsplus
101265b0f94554e06c0e461b59862a6d3b656f8c
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (c) 2017, Massachusetts Institute of Technology All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list o...
55.763636
144
0.704597
d8fdc055a4db84c55903f83ce6036cb414ac9e00
7,222
py
Python
lib/python2.7/site-packages/networkx/readwrite/pajek.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
15
2018-04-26T08:17:18.000Z
2021-03-05T08:44:13.000Z
lib/python2.7/site-packages/networkx/readwrite/pajek.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
null
null
null
lib/python2.7/site-packages/networkx/readwrite/pajek.py
nishaero/wifi-userseg-ryu
1132f2c813b79eff755bdd1a9e73e7ad3980af7c
[ "Apache-2.0" ]
6
2018-04-12T15:49:27.000Z
2022-01-27T12:34:50.000Z
""" ***** Pajek ***** Read graphs in Pajek format. This implementation handles directed and undirected graphs including those with self loops and parallel edges. Format ------ See http://vlado.fmf.uni-lj.si/pub/networks/pajek/doc/draweps.htm for format information. """ # Copyright (C) 2008-2014 by # Aric Hagber...
29.238866
78
0.52977
6937f445098f485744918e7629b7a9c835d010e2
2,167
py
Python
src/permission/compat.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
234
2015-01-05T17:09:08.000Z
2021-11-15T09:52:43.000Z
src/permission/compat.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
54
2015-02-13T08:06:32.000Z
2021-05-19T14:07:03.000Z
src/permission/compat.py
dkopitsa/django-permission
0319ea3bf0993ca1bd7232e4d60c4b8ec635787d
[ "MIT" ]
35
2015-04-13T09:10:38.000Z
2022-02-15T01:43:03.000Z
# coding=utf-8 import django if django.VERSION >= (1, 9): add_to_builtins = None else: try: from django.template.base import add_to_builtins except ImportError: from django.template.loader import add_to_builtins try: # django.utils.importlib is removed from Django 1.9 from importlib...
27.43038
79
0.646054
c1a4ce7bc5ae17013421a9fcf9f0a02b1e9e8f88
2,256
py
Python
Tasks/ObjectRetrieval/nearest_neighbor.py
kabouzeid/ScanNet
fbdc4670af71a59379cb51f4450bff308fe9a480
[ "MIT" ]
1,177
2017-02-16T13:03:42.000Z
2022-03-31T06:32:58.000Z
Tasks/ObjectRetrieval/nearest_neighbor.py
kabouzeid/ScanNet
fbdc4670af71a59379cb51f4450bff308fe9a480
[ "MIT" ]
102
2017-02-18T04:15:36.000Z
2022-03-24T12:06:34.000Z
Tasks/ObjectRetrieval/nearest_neighbor.py
kabouzeid/ScanNet
fbdc4670af71a59379cb51f4450bff308fe9a480
[ "MIT" ]
325
2017-02-13T01:10:16.000Z
2022-03-27T14:11:30.000Z
import numpy as np from scipy import spatial import argparse import time """ Usage: python nearest_neighbor.py --query_feats query_feat.txt --database_feats shapenet_feat.txt --database_models shapenet_name.txt --output query_output.txt """ parser = argparse.ArgumentParser() parser.add_argument('--query_feats', hel...
32.695652
152
0.73094
5922275da0eaf09cfe388fd9f3462244c47241cb
3,357
gyp
Python
ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2016-03-10T09:13:57.000Z
2016-03-10T09:13:57.000Z
ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
1
2022-03-13T08:39:05.000Z
2022-03-13T08:39:05.000Z
ppapi/native_client/src/shared/ppapi_proxy/ppapi_proxy.gyp
gavinp/chromium
681563ea0f892a051f4ef3d5e53438e0bb7d2261
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'variables': { 'chromium_code': 1, # Use higher warning level. }, 'includes': [ '../../../../../native_client/build/common.gypi', ], ...
33.909091
75
0.63658
af01dcc0c3428115623d0c82594cd6a1c347591a
7,739
py
Python
PLOT/visualize.py
itpplasma/SIMPLE
6981791e0a7889647ac5c006325ac951811c2f36
[ "MIT" ]
1
2020-11-18T14:58:27.000Z
2020-11-18T14:58:27.000Z
PLOT/visualize.py
landreman/SIMPLE
77722c2479b4a064b99d0e2a58ef7749ce157c07
[ "MIT" ]
6
2019-10-25T07:52:00.000Z
2021-11-16T13:19:04.000Z
PLOT/visualize.py
landreman/SIMPLE
77722c2479b4a064b99d0e2a58ef7749ce157c07
[ "MIT" ]
2
2021-11-05T18:55:09.000Z
2022-03-23T06:27:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 11 14:13:24 2019 @author: ert """ # %% import numpy as np import matplotlib.pyplot as plt from matplotlib import ticker import glob import os from scipy.stats import gaussian_kde import exportfig # basedir_cut = '/home/calbert/cobraruns/NEO-ORB/QA/...
29.314394
91
0.57824
3552d705c309c58bda453d3e2a5c03c6f6f4106b
909
py
Python
LeetCode/22.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
7
2019-02-25T13:15:00.000Z
2021-12-21T22:08:39.000Z
LeetCode/22.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
null
null
null
LeetCode/22.py
LauZyHou/-
66c047fe68409c73a077eae561cf82b081cf8e45
[ "MIT" ]
1
2019-04-03T06:12:46.000Z
2019-04-03T06:12:46.000Z
class Solution: def generateParenthesis(self, n: int) -> List[str]: ans = [] # 这里生成字符串和验证字符串都先用列表,最后再变成str def gen(A): """生成""" if len(A) == 2 * n: if valid(A): ans.append("".join(A)) else: # 后面接上左或者右括号,...
26.735294
55
0.366337
cab74588cc9c3459f88f37aad9d6994c73893057
19,038
py
Python
pybamm/expression_tree/operations/evaluate.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/operations/evaluate.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
pybamm/expression_tree/operations/evaluate.py
anandmy/PyBaMM
dd8e5ebf85dc4324e163adad274ccb56c88f3698
[ "BSD-3-Clause" ]
null
null
null
# # Write a symbol to python # import pybamm import numpy as np import scipy.sparse from collections import OrderedDict import numbers from platform import system if system() != "Windows": import jax from jax.config import config config.update("jax_enable_x64", True) def id_to_python_variable(symbol_...
38.460606
88
0.621651
61069d7b7ed5a1b5f8877a37b8b023147ae86eeb
1,249
py
Python
publication/data.py
tbullmann/hdmea_axon
34777e12abda488355040b2437e6df5d8484028e
[ "MIT" ]
1
2019-12-25T18:28:24.000Z
2019-12-25T18:28:24.000Z
publication/data.py
tbullmann/hdmea_axon
34777e12abda488355040b2437e6df5d8484028e
[ "MIT" ]
null
null
null
publication/data.py
tbullmann/hdmea_axon
34777e12abda488355040b2437e6df5d8484028e
[ "MIT" ]
null
null
null
import numpy as np from experiment import Experiment FIGURE_CULTURE = 1 FIGURE_NEURON = 5 # culture 1 with spikesorting, approx 46 neurons # The axon should cover at least 16*3+2=50 electrodes, 16 electrodes = approx. 300 um length # FIGURE_NEURONS = [1, 2, 3, 4, 5, 10, 15, 16, 17, 19, 21, 23, 25, 33, 34, 35, 36, 42,...
32.868421
118
0.686149
8119161c76b111bee73fe0f7f27b2c39efe196b7
322
py
Python
setup.py
zdexter/minisync-old
736dbdb044d4814934ac9f300e66cf701cc91a9a
[ "Unlicense", "MIT" ]
1
2015-03-21T07:40:28.000Z
2015-03-21T07:40:28.000Z
setup.py
zdexter/minisync-old
736dbdb044d4814934ac9f300e66cf701cc91a9a
[ "Unlicense", "MIT" ]
null
null
null
setup.py
zdexter/minisync-old
736dbdb044d4814934ac9f300e66cf701cc91a9a
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='minisync', version='0.01', description='minsync Relational Object Synchronization', author='Zach Dexter', author_email='zach.dexter@gmail.com', url='https://github.com/zdexter/minisync/', packages=['minisync'], ...
26.833333
62
0.661491
c31071e9c26d4737e05a1d56ba7670036cfb75ff
190
py
Python
config.py
Pitu7944/discordVoIP
19d92204efb76eff8e1f9238cab29a63429a7806
[ "MIT" ]
6
2020-09-22T14:54:35.000Z
2022-01-11T06:31:02.000Z
config.py
Pitu7944/discordVoIP
19d92204efb76eff8e1f9238cab29a63429a7806
[ "MIT" ]
null
null
null
config.py
Pitu7944/discordVoIP
19d92204efb76eff8e1f9238cab29a63429a7806
[ "MIT" ]
3
2020-09-22T17:03:05.000Z
2022-01-12T00:16:45.000Z
class Config: guildid = # right click discord server and copy id apikey = "" # set a key for the API (min 16 chars recommended!) botToken = "" # enter your discord bot token here
47.5
67
0.678947
4910c9694adf4806c722a042babe6a39feab961d
3,535
py
Python
bindings/python/ensmallen/datasets/string/sphingobiumspsyk6.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-09-10T18:31:58.000Z
2022-03-24T04:28:04.000Z
bindings/python/ensmallen/datasets/string/sphingobiumspsyk6.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/sphingobiumspsyk6.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Sphingobium sp. SYK6. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protein a...
32.731481
223
0.674682
d82d46bca9372c2159bf6b5ff6071858bd87a4fe
1,156
py
Python
Regression/LassoRegression.py
NameError-ai/MachineLearningFromScrach
4313e04af09b94c5f4165b0f15050a38fc93d399
[ "Apache-2.0" ]
null
null
null
Regression/LassoRegression.py
NameError-ai/MachineLearningFromScrach
4313e04af09b94c5f4165b0f15050a38fc93d399
[ "Apache-2.0" ]
null
null
null
Regression/LassoRegression.py
NameError-ai/MachineLearningFromScrach
4313e04af09b94c5f4165b0f15050a38fc93d399
[ "Apache-2.0" ]
null
null
null
import numpy as np import math as m x = np.array([[1, 2, 3, 4, 5, 6], [2, 3, 4, 4, 5, 6], [3, 4, 5, 4, 5, 6], [4, 5, 6, 4, 5, 6], [5, 6, 7, 4, 5, 6]]) y = np.array([[3.8], [4.2], [4.3], [2.5], [2.8]]) ...
24.595745
84
0.487024
e37215c812e0a5b26a1e336708c757c0e4346ad9
2,250
py
Python
samples/gps-to-grid.py
flycam/py-wsjtx
331fa8ff8225d6f7cc1081576fdc896a502b67cf
[ "MIT" ]
null
null
null
samples/gps-to-grid.py
flycam/py-wsjtx
331fa8ff8225d6f7cc1081576fdc896a502b67cf
[ "MIT" ]
null
null
null
samples/gps-to-grid.py
flycam/py-wsjtx
331fa8ff8225d6f7cc1081576fdc896a502b67cf
[ "MIT" ]
null
null
null
#!/bin/env python3 import os import sys import logging import gpsd import maidenhead as mh #requires: pip3 install gpsd-py3 maidenhead sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pywsjtx import pywsjtx.extra.simple_server # Simple software for linux using gpsd to update...
33.58209
140
0.667111
8f1422d56ba5832f1ccbe03d990d283178c4c31b
1,568
py
Python
sandbox/merge_strands.py
cbreenmachine/WGBS-LOAD
9635bbca9a44d3786e3827fdde5fa977b61e6bc1
[ "MIT" ]
1
2021-11-08T19:35:27.000Z
2021-11-08T19:35:27.000Z
sandbox/merge_strands.py
cbreenmachine/WGBS-LOAD
9635bbca9a44d3786e3827fdde5fa977b61e6bc1
[ "MIT" ]
null
null
null
sandbox/merge_strands.py
cbreenmachine/WGBS-LOAD
9635bbca9a44d3786e3827fdde5fa977b61e6bc1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import csv import sys import itertools # https://stackoverflow.com/questions/5434891/iterate-a-list-as-pair-current-next-in-python def pairwise(iterable): """generates two iterators, second offset by one Input: file iterator Output: prints first line of iterator """ "s -> (s0...
25.704918
102
0.58801
c5a0593495761286ae80bc11091099233672b258
1,177
py
Python
portality/forms/utils.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
portality/forms/utils.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
portality/forms/utils.py
gaybro8777/doaj
27d9d98ce4f496ae52acbaba6ee8e42c84cf1a58
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
def expanded2compact(expanded, join_lists=None, repeat_lists=None): if join_lists is None: join_lists = {} if repeat_lists is None: repeat_lists = [] compact = {} for k, v in expanded.items(): if isinstance(v, list) and len(v) > 0: if isinstance(v[0], dict): ...
32.694444
67
0.392523
796f22834911fbdb63874a7a8d97d7334afbabb6
927
py
Python
issue_tests/test_issue5/issue5.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
2
2020-06-22T13:33:28.000Z
2020-12-30T15:09:00.000Z
issue_tests/test_issue5/issue5.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
37
2020-02-18T12:15:00.000Z
2021-12-13T20:01:14.000Z
issue_tests/test_issue5/issue5.py
alexgorji/music_score
b4176da52295361f3436826903485c5cb8054c5e
[ "MIT" ]
null
null
null
import os from unittest import TestCase from musicscore.musicstream.streamvoice import SimpleFormat from musicscore.musictree.treescoretimewise import TreeScoreTimewise path = str(os.path.abspath(__file__).split('.')[0]) class Test(TestCase): def setUp(self) -> None: self.simple_format = SimpleFormat(qu...
30.9
68
0.673139
98c06ba59202adfef8e655ddde756be5eb0f09e2
7,911
py
Python
docs/conf.py
BtLutz/amazingco2
6b49d820afd4db7abad40ce7a6324923065926be
[ "MIT" ]
null
null
null
docs/conf.py
BtLutz/amazingco2
6b49d820afd4db7abad40ce7a6324923065926be
[ "MIT" ]
null
null
null
docs/conf.py
BtLutz/amazingco2
6b49d820afd4db7abad40ce7a6324923065926be
[ "MIT" ]
null
null
null
# amazingco2 documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that a...
30.902344
80
0.694855
7946521b1c3aff5788fd7caac5148ef434d2a17b
4,456
py
Python
bin/finalize_microbiome_entities.py
nf-core/metapep
8229ef0d1086681e7d7094f1e794725b0e5011f9
[ "MIT" ]
1
2021-11-19T17:19:28.000Z
2021-11-19T17:19:28.000Z
bin/finalize_microbiome_entities.py
AntoniaSchuster/metapep
a425e3c0602d5149a8a634b10b682d9f6ed924c8
[ "MIT" ]
34
2020-12-07T19:46:25.000Z
2021-01-25T14:44:42.000Z
bin/finalize_microbiome_entities.py
skrakau/metapep
a425e3c0602d5149a8a634b10b682d9f6ed924c8
[ "MIT" ]
2
2021-08-19T08:09:36.000Z
2021-12-13T08:45:25.000Z
#!/usr/bin/env python3 #################################################################################################### # # Author: Leon Kuchenbecker # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fo...
51.218391
239
0.633079
f15bf286c4d14bd186147a28cda8cc11ec4329f5
15,219
py
Python
pyNastran/gui/utils/load_results.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/gui/utils/load_results.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/gui/utils/load_results.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import os #import re import sys import traceback from codecs import open from six.moves import urllib import numpy as np import pyNastran from pyNastran.utils import _filename from pyNastran.utils.numpy_utils import loadtxt_nice from pyNastran.gui.gui_objects.gui_result import Gui...
33.596026
138
0.563966
f865f3e13736a1207b53777ffd636fb2b92c74de
384
py
Python
Case_02/OutputGenerator.py
anupam-sy/Jinja2-Lab
3d8e78ab78d79bb7f5afc745ef9a6de1bb13a5c1
[ "Apache-2.0" ]
1
2020-04-25T01:19:51.000Z
2020-04-25T01:19:51.000Z
Case_02/OutputGenerator.py
anupam-sy/Jinja2-Lab
3d8e78ab78d79bb7f5afc745ef9a6de1bb13a5c1
[ "Apache-2.0" ]
null
null
null
Case_02/OutputGenerator.py
anupam-sy/Jinja2-Lab
3d8e78ab78d79bb7f5afc745ef9a6de1bb13a5c1
[ "Apache-2.0" ]
1
2018-12-19T04:46:00.000Z
2018-12-19T04:46:00.000Z
from jinja2 import Environment, FileSystemLoader # Pass the directory containing the templates. "." uses the current directory file_loader = FileSystemLoader(".") # Load the environment. env = Environment(loader=file_loader) # Load the template. template = env.get_template("info.template") # Pass the variables. output...
29.538462
77
0.78125
b9d800a1a21eea741d719c85115d3e759c1e9ed8
5,281
py
Python
railrl/launchers/experiments/soroush/multiworld_tdm.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/launchers/experiments/soroush/multiworld_tdm.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
railrl/launchers/experiments/soroush/multiworld_tdm.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
import pickle import railrl.torch.pytorch_util as ptu from multiworld.core.flat_goal_env import FlatGoalEnv from railrl.data_management.obs_dict_replay_buffer import \ ObsDictRelabelingBuffer from railrl.data_management.her_replay_buffer import RelabelingReplayBuffer from railrl.envs.multitask.multitask_env import...
34.743421
83
0.685287
a6e20730b5c26248dab7342926f76609bf90300a
2,579
py
Python
server/federation.py
n-vcs/solidity-fl
04e944da48d47e4f14b1243e2585fc78f03562de
[ "MIT" ]
3
2021-11-20T12:54:38.000Z
2021-12-23T06:33:35.000Z
server/federation.py
omar-rifai/solidity-fl
04e944da48d47e4f14b1243e2585fc78f03562de
[ "MIT" ]
null
null
null
server/federation.py
omar-rifai/solidity-fl
04e944da48d47e4f14b1243e2585fc78f03562de
[ "MIT" ]
null
null
null
import numpy as np import math import copy def agg_params(params, edge_weights): rnets = range(len(params)) rlayers = range(len(params[0])) new_params = [] for l in rlayers: new_layer = [] rsamples = range(len(params[0][l])) for s in rsamples: temp_list = [params[...
29.306818
75
0.649864
144539a331e2cdd66c191f17893d7f9d2b66136a
625
py
Python
chapters/10/test_big_little_common.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
13
2020-08-06T17:05:50.000Z
2021-11-08T13:12:11.000Z
chapters/10/test_big_little_common.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
4
2020-09-20T05:30:39.000Z
2021-04-01T08:35:40.000Z
chapters/10/test_big_little_common.py
PacktPublishing/-Learn-MongoDB-4.0
011f14fc66c42498dcbf07e64e760b5e9f420243
[ "MIT" ]
12
2020-08-07T06:45:43.000Z
2021-12-08T06:58:23.000Z
# testing database connection to biglittle.loan collection # tell python where to find module source code import pprint import os,sys sys.path.append(os.path.realpath("src")) from config.config import Config from db.mongodb.connection import Connection # setting up the connection + collection conn = Connection('local...
26.041667
58
0.7536
6fdf5ce7221c648544eba605f9825e9a26ba5abb
8,471
py
Python
homeassistant/components/rest/sensor.py
joopert/home-assistant
a3f6fbb3774004b15c397c0556f98c5f7a59cb22
[ "Apache-2.0" ]
3
2020-10-23T14:39:11.000Z
2021-02-17T14:40:17.000Z
homeassistant/components/rest/sensor.py
joopert/home-assistant
a3f6fbb3774004b15c397c0556f98c5f7a59cb22
[ "Apache-2.0" ]
3
2021-02-08T20:54:46.000Z
2021-09-08T02:30:04.000Z
homeassistant/components/rest/sensor.py
joopert/home-assistant
a3f6fbb3774004b15c397c0556f98c5f7a59cb22
[ "Apache-2.0" ]
4
2020-05-30T08:19:47.000Z
2021-05-14T11:39:19.000Z
"""Support for RESTful API sensors.""" import logging import json import voluptuous as vol import requests from requests.auth import HTTPBasicAuth, HTTPDigestAuth from homeassistant.components.sensor import PLATFORM_SCHEMA, DEVICE_CLASSES_SCHEMA from homeassistant.const import ( CONF_AUTHENTICATION, CONF_FORC...
31.966038
88
0.626845
34c4c2d941361a88f4f6aacf9c81a9b19bfc8cd0
1,130
py
Python
src/cogs/error.py
infolycal/minehut-stats
babcfb5b9153bf043119f00a3f22989653c29861
[ "MIT" ]
2
2021-04-12T02:40:11.000Z
2021-05-02T01:55:23.000Z
src/cogs/error.py
infolycal/minehut-stats
babcfb5b9153bf043119f00a3f22989653c29861
[ "MIT" ]
null
null
null
src/cogs/error.py
infolycal/minehut-stats
babcfb5b9153bf043119f00a3f22989653c29861
[ "MIT" ]
null
null
null
from datetime import datetime from discord import Embed from discord.ext import commands from .api.color import color from .api.commands import commandEmbed class ErrorHandler(commands.Cog): def __init__(self, client): self.client = client @commands.Cog.listener() async def on_command_error(se...
34.242424
138
0.670796
6cd7906a50836e3522d33376e9729ff7ca341359
403
py
Python
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
sorting/bubble_sort.py
rpg711/Interview-Prep
2d12a11738d4c709bc593dcfdbf54d9f92141d61
[ "MIT" ]
null
null
null
def bubble_sort(A, compare_func): if len(A) <= 1: return swapoccurred = True while swapoccurred: swapoccurred = False for i in range(len(A) - 1): if compare_func(A[i], A[i+1]): A[i], A[i+1] = A[i+1], A[i] swapoccurred = True if __name__ ==...
26.866667
43
0.503722
a9a55b3a8c94fdcfb0b390f19876344d6672be58
596
py
Python
constants.py
ivcafe413/corinthian-football
7374f4439bc58085bc50bcd1fb7fb7973c5a1515
[ "MIT" ]
null
null
null
constants.py
ivcafe413/corinthian-football
7374f4439bc58085bc50bcd1fb7fb7973c5a1515
[ "MIT" ]
null
null
null
constants.py
ivcafe413/corinthian-football
7374f4439bc58085bc50bcd1fb7fb7973c5a1515
[ "MIT" ]
null
null
null
import os import pygame # Setting root path based on THIS FILE being at root level ROOT_PATH = os.path.dirname(os.path.realpath(__file__)) # Mouse Click integers BUTTON_LEFT_CLICK = 1 BUTTON_RIGHT_CLICK = 3 # Utilizing pygame custom events VICTORY_EVENT = pygame.USEREVENT+1 # Cardinal Directions NORTH = 0 SOUTH = 1...
22.923077
77
0.786913
4021fc6b105ba6e092f24e4fec2aac7c9a310d60
1,167
py
Python
src/logger_mixin.py
TomGalla11/quote-me-ai
06c32ec23353bc8d6bc9a68264a63d094797de9a
[ "MIT" ]
41
2019-07-22T13:54:24.000Z
2021-11-22T00:58:33.000Z
src/logger_mixin.py
TomGalla11/quote-me-ai
06c32ec23353bc8d6bc9a68264a63d094797de9a
[ "MIT" ]
11
2019-07-23T08:43:45.000Z
2022-03-11T23:52:51.000Z
src/logger_mixin.py
TomGalla11/quote-me-ai
06c32ec23353bc8d6bc9a68264a63d094797de9a
[ "MIT" ]
5
2019-07-23T02:07:55.000Z
2021-07-31T17:39:23.000Z
import logging from config import get_config import os from logging.handlers import RotatingFileHandler config = get_config() class LoggerMixin: def __init__(self): if not os.path.isdir(config.LOG_PATH): os.mkdir(config.LOG_PATH) name = '.'.join([ self.__module__, ...
29.175
92
0.622965
7e117f9600eb11197feabb2332740bcbf2ed98f2
3,877
py
Python
synui_view/views/renderer/utils.py
aimakerspace/synergos_ui
a01a17f0f15bd2a057a14374a0fc20c6ff7faf6b
[ "Apache-2.0" ]
null
null
null
synui_view/views/renderer/utils.py
aimakerspace/synergos_ui
a01a17f0f15bd2a057a14374a0fc20c6ff7faf6b
[ "Apache-2.0" ]
null
null
null
synui_view/views/renderer/utils.py
aimakerspace/synergos_ui
a01a17f0f15bd2a057a14374a0fc20c6ff7faf6b
[ "Apache-2.0" ]
2
2022-01-21T00:59:01.000Z
2022-01-26T01:12:49.000Z
#!/usr/bin/env python #################### # Required Modules # #################### # Generic/Built-in import base64 import os import json import pickle import uuid import re # Libs import pandas as pd import streamlit as st import streamlit.components.v1 as components # Custom ############# # Functions # ######...
28.29927
141
0.585762
9ef18043bab5b3a6292fdd62678b28d73a311a63
383
py
Python
datediff/errors.py
darshikaf/datediff
3bbe13772dd4816ab4ec3739907478d139d4592b
[ "MIT" ]
null
null
null
datediff/errors.py
darshikaf/datediff
3bbe13772dd4816ab4ec3739907478d139d4592b
[ "MIT" ]
null
null
null
datediff/errors.py
darshikaf/datediff
3bbe13772dd4816ab4ec3739907478d139d4592b
[ "MIT" ]
null
null
null
class InvalidInput(Exception): """ Invalid input to CLI. Date must be of format YYYY-MM-DD. """ class InvalidDate(Exception): """ Input contains invalid date component. """ class InvalidMonth(Exception): """ Input contains invalid month component. """ class InvalidYear(Exceptio...
16.652174
60
0.639687
63797093558db7f40f3cdacdd19001a1b8e2d5d8
17,498
py
Python
allennlp/nn/initializers.py
kyleclo/allennlp
0205c26f3db7ef44d7ee70fa9ebdf5a7f6b43baf
[ "Apache-2.0" ]
24
2019-09-16T00:10:54.000Z
2021-09-08T19:31:51.000Z
allennlp/nn/initializers.py
kyleclo/allennlp
0205c26f3db7ef44d7ee70fa9ebdf5a7f6b43baf
[ "Apache-2.0" ]
3
2020-03-24T16:45:36.000Z
2021-02-02T21:57:00.000Z
allennlp/nn/initializers.py
kyleclo/allennlp
0205c26f3db7ef44d7ee70fa9ebdf5a7f6b43baf
[ "Apache-2.0" ]
7
2019-09-16T02:37:31.000Z
2021-09-01T06:06:17.000Z
""" An initializer is just a PyTorch function. Here we implement a proxy class that allows us to register them and supply any additional function arguments (for example, the ``mean`` and ``std`` of a normal initializer) as named arguments to the constructor. The available initialization functions are * `"normal" <htt...
49.429379
152
0.67602
f8f80b2e9f4383b99adab76046ddda5af36c6fd0
10,651
py
Python
tf_agents/networks/network_test.py
stobias123/agents
c2337987aeda5ceee56e3447cc47f97930d64548
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/network_test.py
stobias123/agents
c2337987aeda5ceee56e3447cc47f97930d64548
[ "Apache-2.0" ]
null
null
null
tf_agents/networks/network_test.py
stobias123/agents
c2337987aeda5ceee56e3447cc47f97930d64548
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
34.693811
80
0.648014
10a631054b6680b1a16ad497688733d8ec8b66a1
6,928
py
Python
src/project/recommender_system.py
a6ln8ka/music-recommender-system
d807295dd06b90ff9d58d514bc830434384a98c9
[ "MIT" ]
null
null
null
src/project/recommender_system.py
a6ln8ka/music-recommender-system
d807295dd06b90ff9d58d514bc830434384a98c9
[ "MIT" ]
null
null
null
src/project/recommender_system.py
a6ln8ka/music-recommender-system
d807295dd06b90ff9d58d514bc830434384a98c9
[ "MIT" ]
2
2021-05-17T18:27:17.000Z
2021-05-17T23:30:44.000Z
""" recommender_system.py Creates content-based recommendations """ import numpy as np import pandas as pd import re import ast import os def col(df, colname = "artists"): """ :param df: :param colname: (Default value = "artists") """ return np.array([int(x == colname) for x in df.columns]).ar...
34.989899
117
0.665416
b994e84f5fe1669c5f0175c4301d29db94569bd7
2,510
py
Python
core/data/cilrs_dataset.py
zqh0253/DI-drive
b5fd8ca3cf2d4d8a8a1b807dda718e9f6d760981
[ "Apache-2.0" ]
null
null
null
core/data/cilrs_dataset.py
zqh0253/DI-drive
b5fd8ca3cf2d4d8a8a1b807dda718e9f6d760981
[ "Apache-2.0" ]
null
null
null
core/data/cilrs_dataset.py
zqh0253/DI-drive
b5fd8ca3cf2d4d8a8a1b807dda718e9f6d760981
[ "Apache-2.0" ]
null
null
null
# import os # import numpy as np # from typing import Any, Dict # import torch # from torch.utils.data import Dataset # # from core.utils.others.image_helper import read_image # # # class CILRSDataset(Dataset): # # def __init__(self, root_dir: str, transform: bool = False, preloads: str = None) -> None: # ...
32.597403
110
0.624701
dbfe9c49fd7768a048bf23a3ecc936cdd1290429
11,539
py
Python
dataloaders/joint_transforms.py
YawenSun9/231n_lucky_project
19b9d71010a6bdcd2d3c7f6c73b817e00cf765eb
[ "MIT" ]
1
2019-07-03T03:50:33.000Z
2019-07-03T03:50:33.000Z
dataloaders/joint_transforms.py
YawenSun9/231n_lucky_project
19b9d71010a6bdcd2d3c7f6c73b817e00cf765eb
[ "MIT" ]
null
null
null
dataloaders/joint_transforms.py
YawenSun9/231n_lucky_project
19b9d71010a6bdcd2d3c7f6c73b817e00cf765eb
[ "MIT" ]
1
2019-08-10T02:32:12.000Z
2019-08-10T02:32:12.000Z
import math import numbers import random from PIL import Image, ImageOps, ImageFilter import numpy as np """ Most of codes here are from https://github.com/zijundeng/pytorch-semantic-segmentation/blob/master/utils/joint_transforms.py """ def pad_to_target(img, target_height, target_width, label=0): # Pad image ...
34.756024
110
0.558541
b2bae5c6570cdb3c14b8301cbcf1e764ba76feb7
12,621
py
Python
testcase/main.py
sirbana/automation_practice
961d0d9c036064f256de6a25ca60da39d8828490
[ "MIT" ]
null
null
null
testcase/main.py
sirbana/automation_practice
961d0d9c036064f256de6a25ca60da39d8828490
[ "MIT" ]
null
null
null
testcase/main.py
sirbana/automation_practice
961d0d9c036064f256de6a25ca60da39d8828490
[ "MIT" ]
null
null
null
import unittest import time from selenium import webdriver import testcase.pages.cart_page import testcase.pages.category_products_page import testcase.pages.contact_us_page import testcase.pages.forgot_your_pass_page import testcase.pages.main_page import testcase.pages.my_account_page import testcase.pages.registrat...
46.400735
154
0.739878
ba25dba542d041d156ecdccd96c63e0d814d0e20
7,620
py
Python
examples/pwr_run/checkpointing/throughput/feedback_inverse/job17.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/throughput/feedback_inverse/job17.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
examples/pwr_run/checkpointing/throughput/feedback_inverse/job17.py
boringlee24/keras_old
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
[ "MIT" ]
null
null
null
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
32.703863
118
0.693176
dd13e1cdd6e62718f2ff4640e61e4e66fdfb78bb
4,317
py
Python
script/old/retrieve_regions-0.0.1.py
genepii/seqmet
89fdab79131c861d4a5aae364ecdbeb3a9e0ae23
[ "MIT" ]
null
null
null
script/old/retrieve_regions-0.0.1.py
genepii/seqmet
89fdab79131c861d4a5aae364ecdbeb3a9e0ae23
[ "MIT" ]
null
null
null
script/old/retrieve_regions-0.0.1.py
genepii/seqmet
89fdab79131c861d4a5aae364ecdbeb3a9e0ae23
[ "MIT" ]
null
null
null
##Retrieve region of sequences delimited by a forward and reverse pattern #v0.0.1 f = [ [x.split('\n')[0], ''.join(x.split('\n')[1:])] for x in open('gg-13-8-99.fasta', 'r').read().rstrip('\n').split('>') ][1:] fw = ['AGAGTTTGATCMTGGCTCAG'] rv = ['GWATTACCGCGGCKGCTG'] mtol = 1 endstr = 3 w = open('ggmb.fa', 'w') nl = ...
34.536
128
0.534167
f876596aadddd301685595d09bdca26c36c8f57d
5,520
py
Python
tools/visualizer.py
Joxis/VKD
803388ac92fcf8c58c11d93b7a65a2d85ba78fca
[ "MIT" ]
null
null
null
tools/visualizer.py
Joxis/VKD
803388ac92fcf8c58c11d93b7a65a2d85ba78fca
[ "MIT" ]
null
null
null
tools/visualizer.py
Joxis/VKD
803388ac92fcf8c58c11d93b7a65a2d85ba78fca
[ "MIT" ]
null
null
null
"""This module contains a Visualizer class to visualize re-identification query images, gallery images and results.""" import os import os.path as osp import numpy as np import cv2 as cv from tqdm import tqdm GRID_SPACING = 10 Q_SPACING = 90 BW = 5 # border width GREEN = (0, 255, 0) RED = (0, 0, 255) class Visual...
36.556291
80
0.558696
8e6daee2cb6304fe9f6a0ca457a28cb65dec822b
1,025
py
Python
commands/deploy.py
ishita1805/ResuME
e8abff1c0c87b99df5035f4059b7adc91394aa63
[ "MIT" ]
1
2021-07-13T04:58:09.000Z
2021-07-13T04:58:09.000Z
commands/deploy.py
ishita1805/ResuME
e8abff1c0c87b99df5035f4059b7adc91394aa63
[ "MIT" ]
null
null
null
commands/deploy.py
ishita1805/ResuME
e8abff1c0c87b99df5035f4059b7adc91394aa63
[ "MIT" ]
null
null
null
import click from utils import getENV, deployer from PyInquirer import style_from_dict, Token, prompt import os from colorama import Fore, init import psutil if psutil.Process(os.getpid()).parent().name() == 'cmd.exe': init(convert=True) style = style_from_dict({ Token.QuestionMark: '#ff2b73 bold', To...
25
70
0.621463
0595a7f5be0091a3ef892b5cc0cf465ca7af3bb2
30,351
py
Python
tests/test_manager.py
loicpw/simpy-events
70160bb433a192d267d5c5fb093129c4ffe938d5
[ "MIT" ]
1
2020-02-19T07:50:00.000Z
2020-02-19T07:50:00.000Z
tests/test_manager.py
loicpw/simpy-events
70160bb433a192d267d5c5fb093129c4ffe938d5
[ "MIT" ]
null
null
null
tests/test_manager.py
loicpw/simpy-events
70160bb433a192d267d5c5fb093129c4ffe938d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pytest from simpy_events.manager import (Handlers, NameSpace, RootNameSpace, EventType, Topic, _hooks) from simpy_events.event import EventDispatcher, Event import simpy import sys @pytest.fixture def env(): yield simpy.Environment() @pytest.fixture...
31.747908
90
0.604066
05ce4fc059588314b2054cea681bdf8f88a78ab5
3,764
py
Python
app/views/auth/forms.py
Saturn/vacbantracker
22b41b0018618ab11865ead8841dc7d6aaee8f56
[ "MIT" ]
1
2019-01-15T22:15:06.000Z
2019-01-15T22:15:06.000Z
app/views/auth/forms.py
Saturn/vacbantracker
22b41b0018618ab11865ead8841dc7d6aaee8f56
[ "MIT" ]
null
null
null
app/views/auth/forms.py
Saturn/vacbantracker
22b41b0018618ab11865ead8841dc7d6aaee8f56
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField, HiddenField from wtforms.validators import DataRequired, Email, Length, EqualTo, ValidationError from app.models.user import User password_validation = [Length(min=8, message='Password must be at least 8 charac...
39.621053
88
0.672954
e17c4f4437db6853b5465d5eefe4625277a2ad39
21,785
py
Python
release/stubs.min/Wms/RemotingObjects/Notifications.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/Wms/RemotingObjects/Notifications.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/Wms/RemotingObjects/Notifications.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
# encoding: utf-8 # module Wms.RemotingObjects.Notifications calls itself Notifications # from Wms.RemotingObjects,Version=1.23.1.0,Culture=neutral,PublicKeyToken=null # by generator 1.145 # no doc # no important from __init__ import * # no functions # classes class AddNotificationGroupArgs(object): """ ...
31.896047
215
0.724535
9a634982b3ff96eaca524fc6208700a6ead49ce3
395
py
Python
src/Axis/migrations/0035_auto_20210112_1449.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
src/Axis/migrations/0035_auto_20210112_1449.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
src/Axis/migrations/0035_auto_20210112_1449.py
MCN10/Demo1
3ff6b18f6da9f6b6b634513f9654c2c643014072
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-12 12:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Axis', '0034_auto_20210112_1447'), ] operations = [ migrations.AlterField( model_name='subcategory', name='category_...
20.789474
50
0.607595
485ba69955129866b16bb5fcd2d96763237037eb
67
py
Python
lang_pref_middleware/__init__.py
Jawayria/django-lang-pref-middleware
8093e9666a48771fbd050d62f305fb71b244a572
[ "Apache-2.0" ]
null
null
null
lang_pref_middleware/__init__.py
Jawayria/django-lang-pref-middleware
8093e9666a48771fbd050d62f305fb71b244a572
[ "Apache-2.0" ]
null
null
null
lang_pref_middleware/__init__.py
Jawayria/django-lang-pref-middleware
8093e9666a48771fbd050d62f305fb71b244a572
[ "Apache-2.0" ]
null
null
null
"""Init module for lang_pref_middleware.""" __version__ = '0.3.0'
16.75
43
0.701493
1c0abd3a872a68a839f79816b5a286305cbf6d5c
6,465
py
Python
Lib/test/test_importlib/test_windows.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
Lib/test/test_importlib/test_windows.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
Lib/test/test_importlib/test_windows.py
fochoao/CPython
c92e0770af558fe3e440e44d3605c3acaf3c5b68
[ "TCL", "0BSD" ]
null
null
null
from . import util as test_util machinery = test_util.import_importlib('importlib.machinery') import os import re import sys import unittest from test import support from distutils.util import get_platform from contextlib import contextmanager from .util import temp_module support.import_module('winreg', required_on=...
38.945783
89
0.623511
b16a762b83f14092be0b460d326c86ff4410afc1
7,692
py
Python
tool/publish.py
dansanderson/site-publish
b41360e4e690d1688f653ef89dc9308699f631e9
[ "Apache-2.0" ]
12
2017-04-07T05:57:40.000Z
2022-01-27T06:27:16.000Z
tool/publish.py
dansanderson/site-publish
b41360e4e690d1688f653ef89dc9308699f631e9
[ "Apache-2.0" ]
null
null
null
tool/publish.py
dansanderson/site-publish
b41360e4e690d1688f653ef89dc9308699f631e9
[ "Apache-2.0" ]
5
2017-04-16T14:34:45.000Z
2022-01-02T21:57:04.000Z
"""Routines and command-line driver for publishing content.""" # TODO: better service error reporting # TODO: catch ctrl-C and issue abort request if necessary # TODO: multithreaded uploads # TODO: not-modified check # TODO: large upload support import base64 import httplib2 import mimetypes import os import yaml fro...
33.012876
78
0.645216
196567e850364d48c91f91ca4edd00b9d2b1cedf
443
py
Python
sympy/printing/tests/test_gtk.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_gtk.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
sympy/printing/tests/test_gtk.py
msgoff/sympy
1e7daef7514902f5e89718fa957b7b36c6669a10
[ "BSD-3-Clause" ]
null
null
null
from sympy import print_gtk, sin from sympy.testing.pytest import XFAIL, raises # this test fails if python-lxml isn't installed. We don't want to depend on # anything with SymPy @XFAIL def test_1(): from sympy.abc import x print_gtk(x ** 2, start_viewer=False) print_gtk(x ** 2 + sin(x) / 4, start_viewe...
22.15
76
0.708804
13dbd54b5bf8729bd24353e73e06e585acdd39e6
863
py
Python
leetcode/python/design/shuffle_array.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
61
2020-09-26T19:57:44.000Z
2022-03-09T18:51:44.000Z
leetcode/python/design/shuffle_array.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
88
2020-09-19T20:00:27.000Z
2021-10-31T09:41:57.000Z
leetcode/python/design/shuffle_array.py
ajeet1308/code_problems
5d99839b6319295c6d81dd86775c46a536e7a1ca
[ "MIT" ]
218
2020-09-20T08:18:03.000Z
2022-01-30T23:13:16.000Z
import random class Solution: def __init__(self, nums: List[int]): self.nums = nums self.org = nums.copy() def reset(self) -> List[int]: """ Resets the array to its original configuration and return it. """ return self.org def shuffle(self) -> List[int]: ...
26.151515
75
0.586327
0d7f60b204d02a131b911f52b9752a8e923bde62
2,452
py
Python
lib/googlecloudsdk/command_lib/code/cross_platform_temp_file.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/command_lib/code/cross_platform_temp_file.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/command_lib/code/cross_platform_temp_file.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
29.902439
77
0.714111
e6dfe0a96f7ebe865008538fe04e647ab0b6644e
1,804
py
Python
gofri/lib/project_generator/generator.py
ThomasKenyeres/Gofri
155fef1714ea71c35cf33dd926cad819e8cee042
[ "MIT" ]
null
null
null
gofri/lib/project_generator/generator.py
ThomasKenyeres/Gofri
155fef1714ea71c35cf33dd926cad819e8cee042
[ "MIT" ]
null
null
null
gofri/lib/project_generator/generator.py
ThomasKenyeres/Gofri
155fef1714ea71c35cf33dd926cad819e8cee042
[ "MIT" ]
null
null
null
import os from gofri.lib.project_generator.templates import * from gofri.lib.project_generator.tools import get_project_name, make_python_packages, init_python_package from gofri.lib.project_generator.venv_generator import create_venv def generate_start_file(root_package, name): with open("{}/{}".format(root_pac...
36.816327
105
0.731153
fa4bc964a28409614c332fc5066d8360e5bae0a7
1,547
py
Python
backend/account/enum_helper.py
MySecondLanguage/RES
9f8daebec44e8cb265761de7f553cdaa9818877f
[ "BSD-3-Clause" ]
1
2020-08-25T16:47:14.000Z
2020-08-25T16:47:14.000Z
backend/account/enum_helper.py
MySecondLanguage/RES
9f8daebec44e8cb265761de7f553cdaa9818877f
[ "BSD-3-Clause" ]
7
2020-02-12T03:14:21.000Z
2022-02-10T11:57:24.000Z
backend/account/enum_helper.py
MySecondLanguage/RES
9f8daebec44e8cb265761de7f553cdaa9818877f
[ "BSD-3-Clause" ]
1
2020-03-12T12:57:05.000Z
2020-03-12T12:57:05.000Z
from enum import Enum class ChoiceEnum(Enum): # Get value and name as list of tuple @classmethod def choices(cls): choices = list() # Loop defined enums for item in cls: choices.append((str(item.value), item.name)) # return in tuple return tuple(choices...
22.75
84
0.546865
53fee7b3593febd320466451a0246391cdb87526
3,380
py
Python
shakemap/utils/dataframe.py
ggann/shakemap
4d7bbf13d0ba580cc7fbd55a2f72c1e80087549b
[ "CC0-1.0" ]
98
2016-05-02T11:00:10.000Z
2022-03-18T02:05:58.000Z
shakemap/utils/dataframe.py
ggann/shakemap
4d7bbf13d0ba580cc7fbd55a2f72c1e80087549b
[ "CC0-1.0" ]
939
2016-07-19T23:10:02.000Z
2022-03-26T13:49:13.000Z
shakemap/utils/dataframe.py
ggann/shakemap
4d7bbf13d0ba580cc7fbd55a2f72c1e80087549b
[ "CC0-1.0" ]
52
2016-01-25T17:16:01.000Z
2022-02-17T00:58:01.000Z
# stdlib imports import json import re import string import time # third party imports import pandas as pd import numpy as np from lxml import etree from openpyxl import load_workbook, utils COMPONENTS = ['GREATER_OF_TWO_HORIZONTALS', 'GEOMETRIC_MEAN', 'ARITHMETIC MEAN'] CHANNEL_PATTERNS = ['^[H,B][H,L,...
35.208333
79
0.607396
582ef36ec7c6e9f0b10f5298990347ef95e79810
2,035
py
Python
src/040_add_images2tei.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
1
2021-02-28T15:38:37.000Z
2021-02-28T15:38:37.000Z
src/040_add_images2tei.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
src/040_add_images2tei.py
toyo-bunko/paper_app
f988e05cf83711d98c5ed735c0fd74fcf11e0f05
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import json import glob import urllib.parse import pandas as pd import numpy as np import os import requests import requests import shutil from PIL import Image images = {} files = glob.glob("data/*.json") for file in files: json_open = open(file, 'r') df = json.load(json_o...
20.148515
96
0.536609
d68c1acc132166730c4d508b42df0db50cf30560
17,974
py
Python
sphere-overburden code/sphereexe.py
adzamper/sphere-overburden-SEG
0810befd0f4c766fbf49806f33db6a3b3c6454c2
[ "MIT" ]
null
null
null
sphere-overburden code/sphereexe.py
adzamper/sphere-overburden-SEG
0810befd0f4c766fbf49806f33db6a3b3c6454c2
[ "MIT" ]
null
null
null
sphere-overburden code/sphereexe.py
adzamper/sphere-overburden-SEG
0810befd0f4c766fbf49806f33db6a3b3c6454c2
[ "MIT" ]
null
null
null
""" This script is calls the main sphere-overburden routine from sphereresponse.py with the user determined values that are input in the widgets that are defined and created in options_menu.py This python file is compiled into an exe by calling Pyinstaller in a directory with sphereresponse.py and options_menu....
40.210291
176
0.576722
5487665cb7447bc671c1f4b21cecd7b43fae1fd5
8,148
py
Python
s3bench.py
DaisukeMiyamoto/aws-s3-benchmark
180c48d09751f57d6e5e50d364c4359baa0dcdb3
[ "Apache-2.0" ]
1
2021-12-11T20:26:27.000Z
2021-12-11T20:26:27.000Z
s3bench.py
DaisukeMiyamoto/aws-s3-benchmark
180c48d09751f57d6e5e50d364c4359baa0dcdb3
[ "Apache-2.0" ]
null
null
null
s3bench.py
DaisukeMiyamoto/aws-s3-benchmark
180c48d09751f57d6e5e50d364c4359baa0dcdb3
[ "Apache-2.0" ]
null
null
null
import sys import os import numpy import boto3 from boto3.s3.transfer import TransferConfig import random import string import time import multiprocessing import pandas as pd import requests import datetime class BenchmarkRecorder: def __init__(self, col_names, add_metadata=True): metadata_col_names = ['i...
37.036364
141
0.596834
af96d26921e9bc277ec8c9e1e070394bb5d5c90c
1,148
py
Python
Python/web/DjangoPrueba1/DjangoPrueba1/DjangoPrueba1/wsgi.py
lima1756/Learning
b21f8680211d41033d67a5c0739868900d902028
[ "Unlicense" ]
null
null
null
Python/web/DjangoPrueba1/DjangoPrueba1/DjangoPrueba1/wsgi.py
lima1756/Learning
b21f8680211d41033d67a5c0739868900d902028
[ "Unlicense" ]
null
null
null
Python/web/DjangoPrueba1/DjangoPrueba1/DjangoPrueba1/wsgi.py
lima1756/Learning
b21f8680211d41033d67a5c0739868900d902028
[ "Unlicense" ]
null
null
null
""" WSGI config for DjangoPrueba1 project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICAT...
39.586207
79
0.809233
d138d9000a59d40b47d84f4e041c4d434592d5dc
11,729
py
Python
streamlit_app.py
luana-afonso/Comunidade-DS
be2ac267786767a32957a90d999d67de81dc4b17
[ "MIT" ]
null
null
null
streamlit_app.py
luana-afonso/Comunidade-DS
be2ac267786767a32957a90d999d67de81dc4b17
[ "MIT" ]
null
null
null
streamlit_app.py
luana-afonso/Comunidade-DS
be2ac267786767a32957a90d999d67de81dc4b17
[ "MIT" ]
null
null
null
import folium import geopandas import numpy as np import pandas as pd import plotly.express as px import streamlit as st from datetime import datetime from folium.plugins import MarkerCluster from streamlit_folium import folium_static # definição de layout para ele ficar um pouco mais comprido/amplo ...
37.353503
163
0.638588
d0ca2c1f4d557538582c7c71e98f211e45ca989d
3,928
py
Python
yt/utilities/performance_counters.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
1
2021-09-15T08:17:43.000Z
2021-09-15T08:17:43.000Z
yt/utilities/performance_counters.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
31
2017-04-19T21:07:18.000Z
2017-04-20T01:08:43.000Z
yt/utilities/performance_counters.py
stonnes/yt
aad3cfa3b4ebab7838352ab467275a27c26ff363
[ "BSD-3-Clause-Clear" ]
1
2021-04-21T07:01:51.000Z
2021-04-21T07:01:51.000Z
import atexit import time from bisect import insort from collections import defaultdict from datetime import datetime as dt from functools import wraps from yt.config import ytcfg from yt.funcs import mylog class PerformanceCounters: _shared_state = {} def __new__(cls, *args, **kwargs): self = objec...
28.671533
69
0.495927
83147be5bcad5666d068b25adcd8e3750cd15135
33,105
py
Python
aries_cloudagent/wallet/tests/test_routes.py
SNU-Blockchain-2021-Fall-Group-H/aries-cloudagent-python
a08bd0243bb27221c2d16655808ad90774ec1126
[ "Apache-2.0" ]
2
2021-11-14T16:28:57.000Z
2022-02-10T11:01:28.000Z
aries_cloudagent/wallet/tests/test_routes.py
SNU-Blockchain-2021-Fall-Group-H/aries-cloudagent-python
a08bd0243bb27221c2d16655808ad90774ec1126
[ "Apache-2.0" ]
3
2021-01-07T15:29:05.000Z
2021-04-22T19:19:32.000Z
aries_cloudagent/wallet/tests/test_routes.py
SNU-Blockchain-2021-Fall-Group-H/aries-cloudagent-python
a08bd0243bb27221c2d16655808ad90774ec1126
[ "Apache-2.0" ]
null
null
null
from ...core.in_memory import InMemoryProfile from asynctest import mock as async_mock, TestCase as AsyncTestCase from aiohttp.web import HTTPForbidden from ...admin.request_context import AdminRequestContext from ...ledger.base import BaseLedger from ...multitenant.base import BaseMultitenantManager from ...multitena...
39.933655
88
0.584232
b0091e6beba3aba8577b7a12451b13b3f76b0749
490
py
Python
definitions/sogo.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
5
2018-02-21T14:50:57.000Z
2018-03-10T02:46:54.000Z
definitions/sogo.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
7
2018-10-09T06:07:09.000Z
2021-04-13T13:49:05.000Z
definitions/sogo.py
wichmannpas/webapp-version-inferer
a07c40ee05014b46a425edfa6a9a3c7e3176a298
[ "Apache-2.0" ]
1
2018-12-14T19:12:33.000Z
2018-12-14T19:12:33.000Z
from backends.software_package import SoftwarePackage from definitions.definition import SoftwareDefinition from providers.git import GitTagProvider class SOGo(SoftwareDefinition): software_package = SoftwarePackage( name='SOGo', vendor='Inverse Inc') provider = GitTagProvider( softwar...
27.222222
53
0.695918
b15dac6e11d8083b40ab20b9d51a9fd530b50c86
10,356
py
Python
jupyter/laceworkjupyter/features/hunt.py
lacework/python-sdk
3c5b0a86b60d4d258eebc3d47547aba603c1a8cc
[ "MIT" ]
10
2021-03-20T18:12:16.000Z
2022-02-14T21:33:23.000Z
jupyter/laceworkjupyter/features/hunt.py
lacework/python-sdk
3c5b0a86b60d4d258eebc3d47547aba603c1a8cc
[ "MIT" ]
10
2021-02-22T23:31:32.000Z
2022-03-25T14:11:27.000Z
jupyter/laceworkjupyter/features/hunt.py
lacework/python-sdk
3c5b0a86b60d4d258eebc3d47547aba603c1a8cc
[ "MIT" ]
7
2021-06-18T18:17:12.000Z
2022-03-25T13:52:14.000Z
"""Provides cloud hunting UI to construct LQL queries.""" import datetime import ipywidgets from laceworksdk import http_session from laceworkjupyter import manager from laceworkjupyter import utils as main_utils from laceworkjupyter.features import utils # The text displayed as the default table pick. DEFAULT_TABLE...
29.930636
78
0.628138
1dc508068e8c085d7d424f491b5b116277a5ea19
2,500
py
Python
exoplanet/theano_ops/starry/integrated_limbdark_test.py
exowanderer/exoplanet
dfd4859525ca574f1936de7b683951c35c292586
[ "MIT" ]
2
2021-10-01T12:46:09.000Z
2022-03-24T10:25:20.000Z
exoplanet/theano_ops/starry/integrated_limbdark_test.py
exowanderer/exoplanet
dfd4859525ca574f1936de7b683951c35c292586
[ "MIT" ]
null
null
null
exoplanet/theano_ops/starry/integrated_limbdark_test.py
exowanderer/exoplanet
dfd4859525ca574f1936de7b683951c35c292586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, print_function import numpy as np import theano import theano.tensor as tt from theano.tests import unittest_tools as utt from .integrated_limbdark import IntegratedLimbDarkOp class TestIntegratedLimbDark(utt.InferShapeTester): def setUp(self): ...
31.25
76
0.5484
5a50a7c6f22d4663b0edb296ce1a7db92d8b813a
7,383
py
Python
{{cookiecutter.github_repository}}/settings/production.py
Fueled/django-in
b0138df6c7100de002950f94f141353f954b8174
[ "BSD-3-Clause" ]
150
2016-03-31T22:15:55.000Z
2022-03-20T00:23:50.000Z
{{cookiecutter.github_repository}}/settings/production.py
Fueled/django-in
b0138df6c7100de002950f94f141353f954b8174
[ "BSD-3-Clause" ]
170
2016-03-08T10:05:10.000Z
2022-01-17T09:26:41.000Z
{{cookiecutter.github_repository}}/settings/production.py
Fueled/django-in
b0138df6c7100de002950f94f141353f954b8174
[ "BSD-3-Clause" ]
49
2016-03-16T15:36:38.000Z
2022-02-12T08:16:31.000Z
"""Production Configurations Adds sensible default for running app in production. - Disable DEBUG - Make SECRET_KEY mandatory {%- if cookiecutter.enable_whitenoise.lower() == 'y' %} - Use whitenoise to serve static files {%- endif %} - Disable browsable API """ # Standard Library from email.utils import getaddresses ...
40.565934
124
0.650549
97fa64ed37c4119b7b6d4ab724e36ff36d382ebe
955
py
Python
web/service/impala-json.py
aashish24/tangelo
fcaf2542d48904055558fa43c8d50533afc9ad71
[ "Apache-2.0" ]
1
2015-06-13T09:28:36.000Z
2015-06-13T09:28:36.000Z
web/service/impala-json.py
aashish24/tangelo
fcaf2542d48904055558fa43c8d50533afc9ad71
[ "Apache-2.0" ]
null
null
null
web/service/impala-json.py
aashish24/tangelo
fcaf2542d48904055558fa43c8d50533afc9ad71
[ "Apache-2.0" ]
null
null
null
import impala import json def convert(value, type): if type == "tinyint": return int(value) elif type == "int": return int(value) elif type == "double": return float(value) elif type == "string": return value elif type == "boolean": return True if value == "true" else False return None def convert_res...
25.131579
80
0.670157
fb184bdb55465a309765ece3f9dcda1b307fa724
25,142
py
Python
ambassador/ambassador/diagnostics/diagnostics.py
Andrei-Predoiu/ambassador
efbd0ac8d65e36eab68997051167bc3eea165f35
[ "Apache-2.0" ]
null
null
null
ambassador/ambassador/diagnostics/diagnostics.py
Andrei-Predoiu/ambassador
efbd0ac8d65e36eab68997051167bc3eea165f35
[ "Apache-2.0" ]
null
null
null
ambassador/ambassador/diagnostics/diagnostics.py
Andrei-Predoiu/ambassador
efbd0ac8d65e36eab68997051167bc3eea165f35
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Datawire. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
36.071736
174
0.592634