hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
f88beebda3337359f9d1a8f379e8bd41f8a24a00
4,349
py
Python
lib/modules/python/situational_awareness/network/active_directory/get_computers.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
3
2020-03-24T04:37:00.000Z
2021-04-07T06:05:16.000Z
lib/modules/python/situational_awareness/network/active_directory/get_computers.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
null
null
null
lib/modules/python/situational_awareness/network/active_directory/get_computers.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
null
null
null
from builtins import object class Module(object): def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'Get Computers', # list of one ...
36.241667
139
0.549782
e627d236ac93b1838d483c846399af4ef48487bb
8,586
py
Python
universality/tov/ode/logenthalpy.py
isaaclegred/universality
9eac607a78b7cb67c1509ea68f4de631437f393a
[ "MIT" ]
1
2021-06-02T13:41:46.000Z
2021-06-02T13:41:46.000Z
universality/tov/ode/logenthalpy.py
isaaclegred/universality
9eac607a78b7cb67c1509ea68f4de631437f393a
[ "MIT" ]
25
2018-01-31T15:14:27.000Z
2021-01-10T21:32:05.000Z
universality/tov/ode/logenthalpy.py
isaaclegred/universality
9eac607a78b7cb67c1509ea68f4de631437f393a
[ "MIT" ]
2
2018-12-07T04:04:33.000Z
2021-09-10T19:00:17.000Z
"""a module that houses TOV solvers based on the log(enthalpy per unit rest mass) """ __author__ = "Reed Essick (reed.essick@gmail.com)" import numpy as np from scipy.integrate import odeint from universality.utils import utils from universality.utils.units import (G, c2, Msun) from .standard import (eta2lambda, ome...
29.916376
142
0.594573
e7497bb027f72f69bfbfe34c3b05acf8e4c6dad1
4,423
py
Python
src/encoded/dev_servers.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
11
2016-11-23T02:33:13.000Z
2021-06-18T14:21:20.000Z
src/encoded/dev_servers.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
1,159
2016-11-21T15:40:24.000Z
2022-03-29T03:18:38.000Z
src/encoded/dev_servers.py
4dn-dcic/fourfron
29601961706d2371b982e57ae085e8ebec3b2714
[ "MIT" ]
5
2017-01-27T16:36:15.000Z
2019-06-14T14:39:54.000Z
"""\ Examples For the development.ini you must supply the paster app name: %(prog)s development.ini --app-name app --init --clear """ import argparse import atexit import logging import os.path import select import shutil import subprocess import sys from pkg_resources import resource_filename from pyramid.paster ...
32.284672
85
0.660411
0bad86a6c82806ff6fc4557cf18f6ab99d3dee08
4,108
py
Python
Server Side/login_server.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
null
null
null
Server Side/login_server.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
null
null
null
Server Side/login_server.py
botexpert/Chatter
8cd3262e38c58eae0fcbc49b3973f883a3185a48
[ "MIT" ]
2
2019-07-18T08:35:23.000Z
2019-07-18T09:24:00.000Z
'''Login server for zmq client-server-client communication''' import hashlib import sqlite3 import sys import threading import time from uuid import uuid1 import zmq from enums_server import Host class LoginServer(threading.Thread): '''Login server class''' def __init__(self): self.database = None ...
41.918367
98
0.564508
d898a53720eca759bc094e228504bdc94d7619fb
1,970
py
Python
test/test_response_page_metadata.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
test/test_response_page_metadata.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
14
2020-12-06T23:54:23.000Z
2021-02-03T18:35:02.000Z
test/test_response_page_metadata.py
Sage-Bionetworks/rocc-client
85b73afe7d4977094810c0a8094f56ebe7ed3d48
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Registry of Open Community Challenge API The OpenAPI specification implemented by the Challenge Registries. # Introduction TBA # noqa: E501 The version of the OpenAPI document: 0.1.0 Contact: thomas.schaffter@sagebionetworks.org Generated by: https://openapi-generator.tech "...
31.774194
104
0.671574
bacc360a59865d9f9b819550c3bf9b29dea9201d
4,561
py
Python
eplusplus/model/processManager.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
1
2018-02-06T17:41:12.000Z
2018-02-06T17:41:12.000Z
eplusplus/model/processManager.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
null
null
null
eplusplus/model/processManager.py
labeee/EPlusPlus
da6cbd60575146a8f165fb72e165919cd83ddc24
[ "MIT" ]
1
2021-06-29T02:49:59.000Z
2021-06-29T02:49:59.000Z
import os import subprocess import multiprocessing ## ## @brief Class for process manager. This class is responsible for create ## tasks and processes to execute each task. The main responsibility ## of this class is to create a number of subprocess equal to ## the number of t...
40.362832
94
0.629248
937a28c598a4a049f2779c0a6611a54480f0f9a8
2,663
py
Python
samples/methodFaultsAckFaults.py
noironetworks/UcsPythonSDK
bf6b07d6abeacb922c92b198352eda4eb9e4629b
[ "Apache-2.0" ]
13
2015-01-16T15:36:56.000Z
2019-04-12T02:48:53.000Z
samples/methodFaultsAckFaults.py
noironetworks/UcsPythonSDK
bf6b07d6abeacb922c92b198352eda4eb9e4629b
[ "Apache-2.0" ]
4
2015-06-12T03:36:11.000Z
2015-07-29T18:39:42.000Z
samples/methodFaultsAckFaults.py
noironetworks/UcsPythonSDK
bf6b07d6abeacb922c92b198352eda4eb9e4629b
[ "Apache-2.0" ]
13
2015-07-01T09:17:37.000Z
2020-03-10T03:26:25.000Z
#!/usr/bin/python # Copyright 2013 Cisco 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 applicabl...
31.702381
75
0.668795
5a5403a36b7ffed76079ab817aac7aca3bbb7b44
2,802
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/platform/glx.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/platform/glx.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/platform/glx.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
"""GLX (x-windows)-specific platform features""" import ctypes, ctypes.util from OpenGL.platform import baseplatform, ctypesloader assert hasattr( ctypes, 'RTLD_GLOBAL' ), """Old ctypes without ability to load .so for global resolution: Get ctypes CVS branch_1_0, not CVS HEAD or released versions!""" class GLXPlatfo...
35.468354
170
0.632762
3e3cccc72664ce12761c8e6f8742db179bf80074
527
py
Python
096.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
096.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
096.err.py
liuyang1/euler
ba6c79b3f809711eec07a7843ec60c86990564d1
[ "MIT" ]
null
null
null
def solve(sdk): def getSudoku(): with open('096.data') as f: cnt = 0 lst = [] for line in f.readlines(): if cnt != 0: line = line.strip() line = [int(i) for i in line] lst.append(line) cnt += 1 if cnt == 10...
19.518519
45
0.40797
948e72e843b89dd21bb5c55a2763ef4f0b5f6c3d
3,084
py
Python
facebook.py
dustydevelops/aSocialWizard
3113e5eca38db25b792da20595f3280574b3dfe2
[ "MIT" ]
1
2020-05-03T22:59:34.000Z
2020-05-03T22:59:34.000Z
facebook.py
dustydevelops/SocialWizard-
3113e5eca38db25b792da20595f3280574b3dfe2
[ "MIT" ]
null
null
null
facebook.py
dustydevelops/SocialWizard-
3113e5eca38db25b792da20595f3280574b3dfe2
[ "MIT" ]
null
null
null
# SOCIAL WIZARD # from selenium import webdriver import time import sys # User Credentials # email = 'darealjoeshmo@gmail.com' password = 'youllneverguessit' tellThem = 'Happy Birthday!' # Start Facebook Engagement ...
27.535714
86
0.487354
251829be7f220467dd7db38998c87a64f3f6b7c8
6,384
py
Python
moderngl_window/scene/scene.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
moderngl_window/scene/scene.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
moderngl_window/scene/scene.py
yoyonel/moderngl-window
3dc986c97802757ce9208a9bb692498f4732c5cd
[ "MIT" ]
null
null
null
""" Wrapper for a loaded scene with properties. """ import logging import numpy from pyrr import matrix44, vector3 import moderngl import moderngl_window as mglw from moderngl_window.resources import programs from moderngl_window.meta import ProgramDescription from moderngl_window import geometry from .programs impor...
31.448276
117
0.600721
0f7112686a9f339ab931d32e00e409d768d9e8eb
1,945
py
Python
salty/tests/test_iupac_smiles.py
jameslee97/salty-1
efe6e68cfcab75f8522a66f4fa8b21d2ad727df1
[ "MIT" ]
null
null
null
salty/tests/test_iupac_smiles.py
jameslee97/salty-1
efe6e68cfcab75f8522a66f4fa8b21d2ad727df1
[ "MIT" ]
null
null
null
salty/tests/test_iupac_smiles.py
jameslee97/salty-1
efe6e68cfcab75f8522a66f4fa8b21d2ad727df1
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function import salty from rdkit.Chem import AllChem as Chem import unittest import datetime class iupac_smiles_tests(unittest.TestCase): data_files = ["cationInfo.csv", "anionInfo.csv"] df = salty.load_data(data_files[0]) smiles = df.smiles for ...
30.873016
78
0.589203
121d720eda653e4393b2ac11a75acee7a485b353
395
py
Python
sary_exam/asgi.py
youssefelmasry/sary_assessment
0b0a91e11e3a7136eaf41fc0dc46314a5b88f630
[ "MIT" ]
1
2021-11-11T15:07:14.000Z
2021-11-11T15:07:14.000Z
sary_exam/asgi.py
youssefelmasry/sary_assessment
0b0a91e11e3a7136eaf41fc0dc46314a5b88f630
[ "MIT" ]
null
null
null
sary_exam/asgi.py
youssefelmasry/sary_assessment
0b0a91e11e3a7136eaf41fc0dc46314a5b88f630
[ "MIT" ]
null
null
null
""" ASGI config for sary_exam project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
b51080674f3ce8db2b01341ee946a0b73eec4f23
8,063
py
Python
vega/datasets/common/utils/auto_lane_utils.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/datasets/common/utils/auto_lane_utils.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/datasets/common/utils/auto_lane_utils.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
28.592199
112
0.637232
bc4226c3c2120c7a2d6a6c1e5f1f3a9b74ebb247
1,038
py
Python
pgAdmin/pgadmin4/web/pgadmin/tools/sqleditor/utils/constant_definition.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/tools/sqleditor/utils/constant_definition.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgAdmin/pgadmin4/web/pgadmin/tools/sqleditor/utils/constant_definition.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## """Definition of ...
30.529412
75
0.644509
d83e4d7a14d2c01df3becfa2cd29a4639fe07978
834
py
Python
tutorials/W0D3_LinearAlgebra/solutions/W0D3_Tutorial3_Solution_2993f27c.py
sjbabdi/course-content
801890b0460ceb26b34f3ee784f4af26dacd74a5
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2021-06-09T09:56:21.000Z
2021-06-09T09:56:21.000Z
tutorials/W0D3_LinearAlgebra/solutions/W0D3_Tutorial3_Solution_2993f27c.py
macasal/course-content
0fc5e1a0d736c6b0391eeab587012ed0ab01e462
[ "CC-BY-4.0", "BSD-3-Clause" ]
1
2021-06-16T05:41:08.000Z
2021-06-16T05:41:08.000Z
tutorials/W0D3_LinearAlgebra/solutions/W0D3_Tutorial3_Solution_2993f27c.py
macasal/course-content
0fc5e1a0d736c6b0391eeab587012ed0ab01e462
[ "CC-BY-4.0", "BSD-3-Clause" ]
null
null
null
# 1) If both eigenvalues are above 1, the neural activity will eventually explode #. to infinity or negative infinity, depending on initial conditions. # 2) If both eigenvalues are below 1, the neural activity will eventually decay to 0. # 3) The activities will explode to positive or negative infinity, but the ex...
59.571429
103
0.782974
2be5dd0b4254a8cbcb61684991e87c52c4840090
624
py
Python
izone/celery.py
ltfred/site
f640a627599a4d0cc1e91867e314e1212727c81f
[ "MIT" ]
1
2020-10-21T02:06:32.000Z
2020-10-21T02:06:32.000Z
izone/celery.py
ltfred/site
f640a627599a4d0cc1e91867e314e1212727c81f
[ "MIT" ]
null
null
null
izone/celery.py
ltfred/site
f640a627599a4d0cc1e91867e314e1212727c81f
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from celery import Celery from celery.schedules import crontab from django.conf import settings os.environ.setdefault("DJANGO_SETTINGS_MODULE", "izone.settings") app = Celery("izone", broker="redis://localhost:6379/0", backend="redis://localhost") ...
27.130435
85
0.753205
3a8b3c460903e12665a2804d3399b645ea7574d3
300
py
Python
codigo/Live88/cat_3.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
572
2018-04-03T03:17:08.000Z
2022-03-31T19:05:32.000Z
codigo/Live88/cat_3.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
176
2018-05-18T15:56:16.000Z
2022-03-28T20:39:07.000Z
codigo/Live88/cat_3.py
cassiasamp/live-de-python
00b5e51793097544ba9b75c97a0d30e63970bf45
[ "MIT" ]
140
2018-04-18T13:59:11.000Z
2022-03-29T00:43:49.000Z
import click @click.command() @click.argument('file', type=click.File('r')) @click.argument('lines', type=click.BOOL) def cat(file, lines): if not lines: click.echo(file.read()) else: for n, line in enumerate(file.readlines()): click.echo(f'{n} {line}') cat()
18.75
51
0.603333
324c362a22e58169cd0dd4c5d8becabe8ae409be
2,675
py
Python
tensorflow/python/keras/saving/saved_model/json_utils_test.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
11
2018-01-03T15:11:09.000Z
2021-04-13T05:47:27.000Z
tensorflow/python/keras/saving/saved_model/json_utils_test.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
3
2021-08-25T15:06:34.000Z
2022-02-10T02:50:24.000Z
tensorflow/python/keras/saving/saved_model/json_utils_test.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
10
2018-07-31T10:56:21.000Z
2019-10-07T08:05:21.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.214286
80
0.68972
ff7b22ac5c7126564ff5fc55544a2cb4839e1808
581
py
Python
dataactcore/migrations/versions/38d8383270c1_merge_4bbc4_and_ae35b.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2019-06-22T21:53:16.000Z
2019-06-22T21:53:16.000Z
dataactcore/migrations/versions/38d8383270c1_merge_4bbc4_and_ae35b.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
3
2021-08-22T11:47:45.000Z
2022-03-29T22:06:49.000Z
dataactcore/migrations/versions/38d8383270c1_merge_4bbc4_and_ae35b.py
brianherman/data-act-broker-backend
80eb055b9d245046192f7ad4fd0be7d0e11d2dec
[ "CC0-1.0" ]
1
2020-07-17T23:50:56.000Z
2020-07-17T23:50:56.000Z
"""Merge 4bbc47f2b48d and ae35bd44ec9a Revision ID: 38d8383270c1 Revises: 4bbc47f2b48d, ae35bd44ec9a Create Date: 2018-10-19 10:07:46.992062 """ # revision identifiers, used by Alembic. revision = '38d8383270c1' down_revision = ('4bbc47f2b48d', 'ae35bd44ec9a') branch_labels = None depends_on = None from alembic imp...
15.702703
48
0.736661
7a6ce917881a195394f2f6210a49285f54d48742
23,888
py
Python
ffclassifier.py
dnm1977/python-sparse-category-indices
c92a29fc53ef286514be9435031debe222be6340
[ "Apache-2.0" ]
null
null
null
ffclassifier.py
dnm1977/python-sparse-category-indices
c92a29fc53ef286514be9435031debe222be6340
[ "Apache-2.0" ]
null
null
null
ffclassifier.py
dnm1977/python-sparse-category-indices
c92a29fc53ef286514be9435031debe222be6340
[ "Apache-2.0" ]
null
null
null
""" A classifier using the Feature Focus model from Madani and Connor (2007,2008). Authors: Dennis N. Mehay and Chris H. Brew """ import sys, os, time import doctest from optparse import OptionParser import StringIO, codecs # try to import profiler. will crash if not there and profile option is set below. try: i...
34.97511
140
0.526247
57e58a1b35b05b61516d3c215cd82033a69f4fdf
2,725
py
Python
controller.py
pyton4ik/RobotCook
d557d348b2f5cc12536d895050c82f4558194fb5
[ "Apache-2.0" ]
null
null
null
controller.py
pyton4ik/RobotCook
d557d348b2f5cc12536d895050c82f4558194fb5
[ "Apache-2.0" ]
null
null
null
controller.py
pyton4ik/RobotCook
d557d348b2f5cc12536d895050c82f4558194fb5
[ "Apache-2.0" ]
null
null
null
""" TODO """ from sqlalchemy.orm import Session from models import Order, OrderItems, Product, Receipt from chef import Recipe from errors import ProductNotFound def get_product(db: Session, product_id): res = db.query(Product).filter(Product.id == product_id).first() if res is None: raise ProductNot...
29.945055
92
0.653211
c4016171ed10e16cdb2de34f82af00c155c819b9
7,020
py
Python
src/pybel_tools/summary/composite_summary.py
cthoyt/pybel-tools
0bc9f9267178d164dab210f24255793cf4e32ab0
[ "MIT" ]
6
2017-03-09T14:28:19.000Z
2019-11-21T00:00:15.000Z
src/pybel_tools/summary/composite_summary.py
pybel/pybel-tools
0bc9f9267178d164dab210f24255793cf4e32ab0
[ "MIT" ]
134
2016-11-24T11:10:03.000Z
2020-09-10T17:03:13.000Z
src/pybel_tools/summary/composite_summary.py
cthoyt/pybel-tools
0bc9f9267178d164dab210f24255793cf4e32ab0
[ "MIT" ]
5
2017-03-08T13:28:02.000Z
2020-04-05T02:23:17.000Z
# -*- coding: utf-8 -*- """A BEL Graph summary class.""" from __future__ import annotations import collections from dataclasses import dataclass from typing import Counter, List, Mapping, Set, Tuple from dataclasses_json import dataclass_json from pybel import BELGraph, BaseAbundance, BaseEntity from pybel.constan...
37.540107
119
0.715385
9d92d1204558911fe691422c7080a879ca94679d
254
py
Python
feature_engine/wrappers/__init__.py
noahjgreen295/feature_engine
77248ade812f03bb1b9c0c129320f0c0baad61ed
[ "BSD-3-Clause" ]
650
2018-12-31T11:44:19.000Z
2022-03-05T03:16:21.000Z
feature_engine/wrappers/__init__.py
noahjgreen295/feature_engine
77248ade812f03bb1b9c0c129320f0c0baad61ed
[ "BSD-3-Clause" ]
205
2019-03-21T02:17:53.000Z
2021-09-29T08:41:38.000Z
feature_engine/wrappers/__init__.py
noahjgreen295/feature_engine
77248ade812f03bb1b9c0c129320f0c0baad61ed
[ "BSD-3-Clause" ]
193
2019-01-09T21:06:46.000Z
2021-12-14T09:00:54.000Z
""" The module wrappers includes classes to wrap Scikit-learn transformers so that they can be applied to a selected subset of features and return a dataframe. """ from .wrappers import SklearnTransformerWrapper __all__ = ["SklearnTransformerWrapper"]
28.222222
83
0.80315
99d92d3113c7323eb264833be81b5b0600c03774
4,312
py
Python
src/windshape/drone/common/DronePose.py
Adrien4193/windshape
4c73a4a85409f04518029f0ddb8bd7e3c60e4905
[ "BSD-2-Clause" ]
null
null
null
src/windshape/drone/common/DronePose.py
Adrien4193/windshape
4c73a4a85409f04518029f0ddb8bd7e3c60e4905
[ "BSD-2-Clause" ]
null
null
null
src/windshape/drone/common/DronePose.py
Adrien4193/windshape
4c73a4a85409f04518029f0ddb8bd7e3c60e4905
[ "BSD-2-Clause" ]
null
null
null
import math import numpy # ROS transformations from tf.transformations import (euler_from_quaternion, quaternion_from_euler) # ROS messages for communication from geometry_msgs.msg import Quaternion, PoseStamped class DronePose(object): """Structure used to represent a 6DOF pose. Can be converted as list...
25.364706
66
0.652134
43e6d542f4d966d3c3cbd048fb452ca91d98f0d8
2,304
py
Python
ginomypy/plugin.py
Saturn-Technologies/gino-stubs
8628594e5fbc582d6094d853cf93ce9af06b90cc
[ "BSD-3-Clause" ]
12
2019-01-17T23:04:35.000Z
2021-06-07T11:04:53.000Z
ginomypy/plugin.py
Saturn-Technologies/gino-stubs
8628594e5fbc582d6094d853cf93ce9af06b90cc
[ "BSD-3-Clause" ]
53
2019-11-05T21:09:14.000Z
2022-03-24T18:04:11.000Z
ginomypy/plugin.py
Saturn-Technologies/gino-stubs
8628594e5fbc582d6094d853cf93ce9af06b90cc
[ "BSD-3-Clause" ]
7
2019-01-23T09:48:54.000Z
2022-02-25T06:10:30.000Z
from typing import Callable, List, Optional, Tuple, TypeVar from mypy.nodes import MypyFile, TypeInfo from mypy.plugin import ( ClassDefContext, DynamicClassDefContext, FunctionContext, MethodContext, Plugin, ) from mypy.types import Type from sqlmypy import column_hook, grouping_hook from .hooks ...
28.8
82
0.669705
b678517f98c2c4e32eafcfe1dfba3e921c60a79e
3,536
py
Python
MTCNN_face_detection/scripts/caffemodel_to_pytorchmodel.py
luo1007188754/luozhiwen138
26a5db8b8dc1431591265c8352a6c1c99e171fbc
[ "MIT" ]
30
2020-11-03T10:54:37.000Z
2021-12-06T07:59:05.000Z
MTCNN_face_detection/scripts/caffemodel_to_pytorchmodel.py
luo1007188754/luozhiwen138
26a5db8b8dc1431591265c8352a6c1c99e171fbc
[ "MIT" ]
1
2020-11-17T08:21:39.000Z
2020-11-17T08:21:39.000Z
MTCNN_face_detection/scripts/caffemodel_to_pytorchmodel.py
luo1007188754/luozhiwen138
26a5db8b8dc1431591265c8352a6c1c99e171fbc
[ "MIT" ]
11
2020-11-03T10:54:38.000Z
2021-12-10T10:40:57.000Z
import caffe import numpy as np import torch """ # PNet # conv1.weight (10, 3, 3, 3) # conv1.bias (10,) # prelu1.weight (10,) # conv2.weight (16, 10, 3, 3) # conv2.bias (16,) # prelu2.weight (16,) # conv3.weight (32, 16, 3, 3) # conv3.bias (32,) # prelu3.weight (32,) # conv4-1.weight (2, 32, 1, 1) # conv4-1.bias (2,) ...
30.222222
113
0.610294
cc83ebc1713ff657f815bff8e09657fc813f684c
1,767
py
Python
conanfile.py
ngrodzitski/ci-training-corehard2019
1902bd2bcb9560d3d547d2b09415cc28327e2ca6
[ "MIT" ]
null
null
null
conanfile.py
ngrodzitski/ci-training-corehard2019
1902bd2bcb9560d3d547d2b09415cc28327e2ca6
[ "MIT" ]
null
null
null
conanfile.py
ngrodzitski/ci-training-corehard2019
1902bd2bcb9560d3d547d2b09415cc28327e2ca6
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools class HelloConan(ConanFile): name = "hello" version = "0.1.0" license = "<Put the package license here>" author = "<Put your name here> <And your email here>" url = "<Package recipe repository url here, for issues about the package>" description = "<D...
36.8125
78
0.606112
dcd4ed6c8468a1ee8470030f452e3f71d975e277
8,200
py
Python
automl/google/cloud/automl_v1beta1/proto/table_spec_pb2.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
1
2019-06-14T10:11:59.000Z
2019-06-14T10:11:59.000Z
automl/google/cloud/automl_v1beta1/proto/table_spec_pb2.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
1
2018-04-06T19:51:23.000Z
2018-04-06T19:51:23.000Z
automl/google/cloud/automl_v1beta1/proto/table_spec_pb2.py
ace-n/google-cloud-python
c97bef45a0751ef5846e4abceb47967a20cb245c
[ "Apache-2.0" ]
1
2020-04-14T10:47:41.000Z
2020-04-14T10:47:41.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/automl_v1beta1/proto/table_spec.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...
36.7713
668
0.642805
735456fef2835de56a4b56f05cd8b7cc7be56ca0
2,539
py
Python
packages/w3af/w3af/plugins/attack/db/tests/test_sqlmap_update.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/plugins/attack/db/tests/test_sqlmap_update.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/plugins/attack/db/tests/test_sqlmap_update.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" test_sqlmap_update.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 Foundation version 2 of the License. w3af is distributed in the ho...
38.469697
93
0.618354
b5cff3ae02b90d8f2b098d7a53a506320f1eda15
291
py
Python
mylibrary/setup.py
quantshah/scikit-project
fd23c0fdb6d501e5d48f8655d1fabb4735efb021
[ "BSD-3-Clause" ]
48
2019-09-11T12:36:54.000Z
2021-05-28T18:35:09.000Z
mylibrary/setup.py
quantshah/scikit-project
fd23c0fdb6d501e5d48f8655d1fabb4735efb021
[ "BSD-3-Clause" ]
24
2019-11-10T11:55:48.000Z
2021-04-23T16:54:50.000Z
mylibrary/setup.py
quantshah/scikit-project
fd23c0fdb6d501e5d48f8655d1fabb4735efb021
[ "BSD-3-Clause" ]
15
2019-12-02T15:22:42.000Z
2021-04-30T18:55:48.000Z
#!/usr/bin/env python """ Setup file """ from setuptools import setup, find_packages setup(name='mylibrary', version='0.0.1', description='Test library', author='Shahnawaz Ahmed, Nathan Shammah', packages = find_packages(include=['mylibrary', 'mylibrary.*']) )
22.384615
68
0.656357
7dbec8eee77359792001e78aef3d8fb375aadb08
983
py
Python
social_media_crawler.py
joaopfonseca/social_media_crawler
3abce6c850d203805f705e82612d98abf2eb4a47
[ "MIT" ]
1
2021-11-14T18:45:01.000Z
2021-11-14T18:45:01.000Z
social_media_crawler.py
joaopfonseca/social_media_crawler
3abce6c850d203805f705e82612d98abf2eb4a47
[ "MIT" ]
2
2021-06-08T19:27:42.000Z
2021-06-08T19:32:43.000Z
social_media_crawler.py
joaopfonseca/social_media_crawler
3abce6c850d203805f705e82612d98abf2eb4a47
[ "MIT" ]
null
null
null
import os import subprocess import sys import time project_dir = os.path.realpath('') gui = '/gui/FlaskApp/' os.chdir(project_dir+gui) f = subprocess.Popen(['python','db_facebook.py']) i = subprocess.Popen(['python','db_instagram.py']) t = subprocess.Popen(['python','db_twitter.py']) gui = subprocess.Popen(['python...
25.868421
58
0.671414
03b89c11e307ebd94907ee7fff52e2124f2f1c60
4,056
py
Python
docker/errors.py
peter-slovak/docker-py
3076a9ac40b91458f7e95e3c6167e1bbb92682b1
[ "Apache-2.0" ]
1
2021-07-14T15:01:30.000Z
2021-07-14T15:01:30.000Z
docker/errors.py
peter-slovak/docker-py
3076a9ac40b91458f7e95e3c6167e1bbb92682b1
[ "Apache-2.0" ]
null
null
null
docker/errors.py
peter-slovak/docker-py
3076a9ac40b91458f7e95e3c6167e1bbb92682b1
[ "Apache-2.0" ]
null
null
null
import requests class DockerException(Exception): """ A base class from which all other exceptions inherit. If you want to catch all errors that the Docker SDK might raise, catch this base exception. """ def create_api_error_from_http_exception(e): """ Create a suitable APIError from re...
26.684211
78
0.628945
d64b0f00b681d410a8fde915966b5b95a71c9a79
11,231
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_12_01/aio/operations/_virtual_machine_extension_images_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.218107
211
0.666014
589a4957a8373af9f6d2cb67b09f8d340cbf2750
8,725
py
Python
hummingbot/client/command/start_command.py
dam-bots/hummingbot
fd15d95a854fbe41735f5b2bab38863867d865e1
[ "Apache-2.0" ]
null
null
null
hummingbot/client/command/start_command.py
dam-bots/hummingbot
fd15d95a854fbe41735f5b2bab38863867d865e1
[ "Apache-2.0" ]
null
null
null
hummingbot/client/command/start_command.py
dam-bots/hummingbot
fd15d95a854fbe41735f5b2bab38863867d865e1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import asyncio import platform import threading import time from typing import ( Optional, Callable, ) from os.path import dirname, join from hummingbot.core.clock import ( Clock, ClockMode ) from hummingbot import init_logging from hummingbot.client.config.config_helpers import (...
45.921053
119
0.611003
b3c33d1b637b44c75c6bbe77b57a5984d1767b04
1,342
py
Python
Servus/plugins/system_ip_online/utils.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
Servus/plugins/system_ip_online/utils.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
Servus/plugins/system_ip_online/utils.py
sug4rok/Servus
9840d0e275085c08b99fc7662eb22f2ab253d8f8
[ "MIT" ]
null
null
null
# coding=utf-8 import time from subprocess import call from os import devnull from django.conf import settings def subprocess_ping(host): """ Простой ping. Ждем результата однопакетного пинга. :param host: str Сетевое имя или ip-адрес устройство. :returns: bool Состояние (online/offline) сетевого ус...
26.84
83
0.628167
ae827cca3ebcfea241521ab13e501dcb9c120d31
5,074
py
Python
tests/test_commodity.py
aslehigh/piecash
797aca5abd08b686e5d47f077b00a095fb4804ed
[ "MIT" ]
null
null
null
tests/test_commodity.py
aslehigh/piecash
797aca5abd08b686e5d47f077b00a095fb4804ed
[ "MIT" ]
null
null
null
tests/test_commodity.py
aslehigh/piecash
797aca5abd08b686e5d47f077b00a095fb4804ed
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import unicode_literals from datetime import datetime, date from decimal import Decimal import pytest from piecash import Price, Commodity, GnucashException from piecash.core.commodity import GncPriceError from test_helper import db_sqlite_uri, db_sqlite, new_book, new_book_USD, book_u...
37.865672
129
0.668112
f1dcb962e89fd9320e3797996e2fdb28b0f6ac01
950
py
Python
ow/tests/models/test_appmaker.py
openworkouts/OpenWorkouts
ecfed69e8c654c09bb8c074d8aedda9c13cd2235
[ "BSD-3-Clause" ]
3
2019-02-15T11:38:20.000Z
2020-10-03T19:03:51.000Z
ow/tests/models/test_appmaker.py
openworkouts/OpenWorkouts
ecfed69e8c654c09bb8c074d8aedda9c13cd2235
[ "BSD-3-Clause" ]
null
null
null
ow/tests/models/test_appmaker.py
openworkouts/OpenWorkouts
ecfed69e8c654c09bb8c074d8aedda9c13cd2235
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch from ow.models import appmaker from ow.models.root import OpenWorkouts class TestAppMaker(object): @patch('ow.models.transaction') def test_appmaker(self, t): """ Calling appmaker on a new zodb (without an OpenWorkouts root folder in it), a new root ob...
30.645161
78
0.648421
6d782ce507c6391143889f2e7699a7c504626614
171
py
Python
django_dump_load_utf8/apps.py
panhaoyu/django-dump-load-utf8
12ac58da29e2498003be0a5cf910832db347d81f
[ "MIT" ]
1
2021-09-30T11:38:19.000Z
2021-09-30T11:38:19.000Z
django_dump_load_utf8/apps.py
panhaoyu/django-dump-load-utf8
12ac58da29e2498003be0a5cf910832db347d81f
[ "MIT" ]
null
null
null
django_dump_load_utf8/apps.py
panhaoyu/django-dump-load-utf8
12ac58da29e2498003be0a5cf910832db347d81f
[ "MIT" ]
null
null
null
from django.apps import AppConfig class DjangoDumpLoadUtf8Config(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'django_dump_load_utf8'
24.428571
56
0.795322
fadd37510f2e1cc4f09e0008b31a69f48a27f767
1,506
py
Python
api/api.py
Engin-Boot/alert-to-care-s22b12
b5e6c225b476cd84b4f75175835769b01794040d
[ "MIT" ]
null
null
null
api/api.py
Engin-Boot/alert-to-care-s22b12
b5e6c225b476cd84b4f75175835769b01794040d
[ "MIT" ]
1
2022-03-02T09:57:41.000Z
2022-03-02T09:57:41.000Z
api/api.py
Engin-Boot/alert-to-care-s22b12
b5e6c225b476cd84b4f75175835769b01794040d
[ "MIT" ]
null
null
null
import flask from flask_cors import CORS, cross_origin from patients import Patient from patientrepository import patientrepositry from bedsrepository import BedsRepositry from flask import jsonify from flask import request app = flask.Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Conten...
25.525424
58
0.702523
3c3e5464079198ea3a4fbb9e9a0531db111a78f0
3,780
py
Python
cloudrail/knowledge/context/aws/elb/load_balancer.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/elb/load_balancer.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
cloudrail/knowledge/context/aws/elb/load_balancer.py
my-devops-info/cloudrail-knowledge
b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field from enum import Enum from typing import List, Optional from cloudrail.knowledge.context.aws.elb.load_balancer_attributes import LoadBalancerAttributes from cloudrail.knowledge.context.aws.service_name import AwsServiceName from cloudrail.kno...
41.538462
149
0.691534
c637b956a25d9528baf9149e323427291bb4c20a
35,620
py
Python
salt/modules/zfs.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
1
2021-09-06T00:14:04.000Z
2021-09-06T00:14:04.000Z
salt/modules/zfs.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
2
2021-04-30T21:17:57.000Z
2021-12-13T20:40:23.000Z
salt/modules/zfs.py
springborland/salt
bee85e477d57e9a171884e54fefb9a59d0835ed0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Module for running ZFS command :codeauthor: Nitin Madhok <nmadhok@clemson.edu>, Jorge Schrauwen <sjorge@blackdot.be> :maintainer: Jorge Schrauwen <sjorge@blackdot.be> :maturity: new :depends: salt.utils.zfs :platform: illumos,freebsd,linux .. versionchanged:: 2018.3.1...
29.220673
114
0.620831
d995043703709e4b817076bdaffc5cf439c58a53
1,096
py
Python
examples/example_auto_scan.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
5
2020-12-03T21:45:43.000Z
2021-12-04T16:14:33.000Z
examples/example_auto_scan.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
null
null
null
examples/example_auto_scan.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
3
2020-12-03T20:58:44.000Z
2022-03-24T04:52:57.000Z
# -*- coding: utf-8 -*- """ Created on Thu Oct 29 12:14:38 2020 @author: mauricio Example using auto_scan """ from nasagamma import spectrum as sp import numpy as np import pandas as pd from nasagamma import peaksearch as ps from nasagamma import peakfit as pf # dataset 1 file = "data/SSR-mcnp.hdf" df = pd.read_hdf(f...
18.896552
77
0.65146
11c282ce5635d5fe214033ff058b7cb074b65973
629
py
Python
manage.py
hairinhi/exanctify
db4442f299c3d5c4e03c38e43b1399b5c53dd57f
[ "MIT" ]
null
null
null
manage.py
hairinhi/exanctify
db4442f299c3d5c4e03c38e43b1399b5c53dd57f
[ "MIT" ]
null
null
null
manage.py
hairinhi/exanctify
db4442f299c3d5c4e03c38e43b1399b5c53dd57f
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'exanctify.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
28.590909
73
0.683625
62294cd1d36b0797fbaee8a379e64b5399241f60
4,824
py
Python
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
1
2019-02-17T12:40:53.000Z
2019-02-17T12:40:53.000Z
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
null
null
null
Spectral Clustering/code_material_python/helper.py
AmineKheldouni/Graphs-Machine-Learning
1b34ef38516d46e8ca61b1a8093e6c8fb76fe031
[ "MIT" ]
null
null
null
# Prim's maximal spanning tree algorithm # Prim's alg idea: # start at any node, find closest neighbor and mark edges # for all remaining nodes, find closest to previous cluster, mark edge # continue until no nodes remain # # INPUTS: graph defined by adjacency matrix, nxn # OUTPUTS: matrix specifying maximum spannin...
36.270677
84
0.692164
2cff9d70975faf0d77c153dce33b893b99d9a21e
4,363
py
Python
nebula2/sclient/ScanResult.py
defp/nebula-python
425f4c6fcc836e3154326708b318ccda0753672f
[ "Apache-2.0" ]
null
null
null
nebula2/sclient/ScanResult.py
defp/nebula-python
425f4c6fcc836e3154326708b318ccda0753672f
[ "Apache-2.0" ]
null
null
null
nebula2/sclient/ScanResult.py
defp/nebula-python
425f4c6fcc836e3154326708b318ccda0753672f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # --coding:utf-8-- # Copyright (c) 2020 vesoft inc. All rights reserved. # # This source code is licensed under Apache 2.0 License, # attached with Common Clause Condition 1.0, found in the LICENSES directory. import concurrent import logging from nebula2.sclient import ( PartManager, d...
33.561538
86
0.523264
3d2a3c95e7b595926c60022fedec674755fde7bf
177
py
Python
BootCRUDApp/urls.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
BootCRUDApp/urls.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
BootCRUDApp/urls.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('editItem/<int:itemID>', views.editItem, name='editItem'), ]
22.125
67
0.672316
ee7b839672690424818093c14803c5cad1d05102
173
py
Python
diofant/printing/pretty/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
57
2016-09-13T23:16:26.000Z
2022-03-29T06:45:51.000Z
diofant/printing/pretty/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
402
2016-05-11T11:11:47.000Z
2022-03-31T14:27:02.000Z
diofant/printing/pretty/__init__.py
rajkk1/diofant
6b361334569e4ec2e8c7d30dc324387a4ad417c2
[ "BSD-3-Clause" ]
20
2016-05-11T08:17:37.000Z
2021-09-10T09:15:51.000Z
"""ASCII-ART 2D pretty-printer""" from .pretty import pprint, pprint_use_unicode, pretty, pretty_print __all__ = 'pprint', 'pprint_use_unicode', 'pretty', 'pretty_print'
24.714286
68
0.751445
6892d7e9d24a4763e7d306a9a5011606ec2bcaaa
1,605
py
Python
examples/undocumented/python/kernel_director_linear.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
2
2021-08-12T18:11:06.000Z
2021-11-17T10:56:49.000Z
examples/undocumented/python/kernel_director_linear.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
null
null
null
examples/undocumented/python/kernel_director_linear.py
cloner1984/shogun
901c04b2c6550918acf0594ef8afeb5dcd840a7d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import numpy from shogun import RealFeatures, MSG_DEBUG traindat = numpy.random.random_sample((10,10)) testdat = numpy.random.random_sample((10,10)) parameter_list=[[traindat,testdat,1.2],[traindat,testdat,1.4]] def kernel_director_linear (fm_train_real=traindat,fm_test_real=testdat,scale=1.2): ...
27.672414
83
0.788785
91e842428712607131765c35addee7ad2c361965
7,672
py
Python
katdal/test/test_sensordata.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_sensordata.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
katdal/test/test_sensordata.py
kernsuite-debian/katdal
62c5732f0bf1a2b6fa8d275e7405bcb1648534b0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 ################################################################################ # Copyright (c) 2018-2019, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may o...
41.026738
96
0.616528
182caa3a57e96ac36a4e5e356d79c06f739bcede
4,100
py
Python
experiments/toydatagen.py
mossjacob/reggae
673b483731e6f162f41c3b52dc30f6a0df4684bf
[ "MIT" ]
1
2021-02-13T11:00:29.000Z
2021-02-13T11:00:29.000Z
experiments/toydatagen.py
mossjacob/reggae
673b483731e6f162f41c3b52dc30f6a0df4684bf
[ "MIT" ]
null
null
null
experiments/toydatagen.py
mossjacob/reggae
673b483731e6f162f41c3b52dc30f6a0df4684bf
[ "MIT" ]
null
null
null
import torch import numpy as np import pandas as pd from pathlib import Path from alfi.datasets import HomogeneousReactionDiffusion, ReactionDiffusionGenerator def save_dataset(toydata): """ data_dir: the directory where the toy data and intermediate data lies. Will also be saved here. """ data_dir =...
44.565217
115
0.468293
0db3ae1d4f6a7bc6ec87b06f82fbfc86f5b46f26
8,323
py
Python
core/controllers/blog_admin_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
1
2021-08-17T20:33:12.000Z
2021-08-17T20:33:12.000Z
core/controllers/blog_admin_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
core/controllers/blog_admin_test.py
WebFlakyTest/oppia
520e35490eae8171beb035fbafc2948983abec75
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.875
79
0.66106
ebb0d5947008666bb6e1fc068a0af0ca00273b6f
23
py
Python
fastai/__init__.py
rajesh-ibm-power/fastai
2c0bd5694226604d15b82a4f7ae2be69bc846130
[ "Apache-2.0" ]
null
null
null
fastai/__init__.py
rajesh-ibm-power/fastai
2c0bd5694226604d15b82a4f7ae2be69bc846130
[ "Apache-2.0" ]
null
null
null
fastai/__init__.py
rajesh-ibm-power/fastai
2c0bd5694226604d15b82a4f7ae2be69bc846130
[ "Apache-2.0" ]
null
null
null
__version__ = "2.2.4"
7.666667
21
0.608696
b3efd41d02b0da58acb299b4cc63bb8396ac00ec
4,231
py
Python
Interviewbook/views.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
2
2020-01-20T08:55:42.000Z
2020-08-01T16:44:57.000Z
Interviewbook/views.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
28
2019-01-29T18:35:23.000Z
2022-02-10T08:34:28.000Z
Interviewbook/views.py
kmAyush/IntReview
b96d5249d8b0c7987f533fe345fef470b9ea6435
[ "MIT" ]
15
2019-01-31T13:47:51.000Z
2020-09-25T13:35:14.000Z
from django.http import HttpResponse, HttpResponseRedirect from .forms import * from django.shortcuts import redirect,render,get_object_or_404,reverse from django.urls import reverse from django.utils import timezone from .models import * from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from dja...
38.463636
102
0.695817
fc2d78978ffa6f7afa4ac7e68776355204768014
70
py
Python
data/studio21_generated/interview/1873/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1873/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1873/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
class Solution: def preimageSizeFZF(self, K: int) -> int:
23.333333
45
0.6
ded944301d08fa2a1292bbd0ba0a7c48ad6dfe2b
86,798
py
Python
kubernetes_asyncio/client/api/certificates_v1beta1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/certificates_v1beta1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/certificates_v1beta1_api.py
aK0nshin/kubernetes_asyncio
aef9edcc1f8671a5b1bba9f4684bde890176b19c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # p...
62.265423
1,390
0.690338
d144969a300b38bc5ca8add7fd9c4a9261ea8775
2,418
py
Python
SeleniumTest/test/Module_1/Scenario2.py
NayakwadiS/Selenium_Python_UnitTest_HTML
dceb17ccfa2a7da4659a9820333330145d648772
[ "MIT" ]
2
2022-01-06T04:58:22.000Z
2022-02-09T07:21:17.000Z
SeleniumTest/test/Module_1/Scenario2.py
NayakwadiS/Selenium_Python_UnitTest_HTML
dceb17ccfa2a7da4659a9820333330145d648772
[ "MIT" ]
null
null
null
SeleniumTest/test/Module_1/Scenario2.py
NayakwadiS/Selenium_Python_UnitTest_HTML
dceb17ccfa2a7da4659a9820333330145d648772
[ "MIT" ]
4
2020-08-20T05:33:54.000Z
2022-01-14T14:13:27.000Z
import unittest from Main.Generic.BaseTest import * from Main.Pages import * from Main.Utility.logger import * from Main.Utility import * from ddt import ddt, data def getData(fileName,TestCaseID): return ReadLine(fileName,TestCaseID) @ddt class Scenario2(unittest.TestCase,baseTest): logger = HT...
32.675676
74
0.63689
6c38fccbddfa264be8252947f28b5c8ef44bca72
5,141
py
Python
lib/python/test.py
MeitalRann/Feature-and-Arcitecture-Study-for-Speech-Activity-Detection
1f37d2090c41081ccedc0dd1fa0d1721b026b396
[ "MIT" ]
1
2021-01-13T00:09:02.000Z
2021-01-13T00:09:02.000Z
lib/python/test.py
MeitalRann/Feature-and-Arcitecture-Study-for-Speech-Activity-Detection
1f37d2090c41081ccedc0dd1fa0d1721b026b396
[ "MIT" ]
null
null
null
lib/python/test.py
MeitalRann/Feature-and-Arcitecture-Study-for-Speech-Activity-Detection
1f37d2090c41081ccedc0dd1fa0d1721b026b396
[ "MIT" ]
null
null
null
import numpy as np import sys import os, getopt import scipy.io as sio from sklearn.metrics import accuracy_score sys.path.insert(0, r'.\lib\python') import eer_test as err_test import feat_setting as fs import test_utils as utils if __name__ == '__main__': try: opts, args = getopt.geto...
40.480315
132
0.538806
9f8b2598b1c1b7c86c3acc04acbefee30645b250
6,468
py
Python
hubspot/crm/deals/api/search_api.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/deals/api/search_api.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
hubspot/crm/deals/api/search_api.py
cclauss/hubspot-api-python
7c60c0f572b98c73e1f1816bf5981396a42735f6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Deals No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401...
41.461538
135
0.624613
b79b97e0158af05983196f3c1719a74886a6e85e
7,307
py
Python
src/collectors/jolokia/test/testjolokia.py
Coolknight/Diamond
651bda27e1129e1cf892ae15bdd7b959778b9990
[ "MIT" ]
2
2016-10-24T02:51:32.000Z
2021-01-09T20:49:44.000Z
src/collectors/jolokia/test/testjolokia.py
Coolknight/Diamond
651bda27e1129e1cf892ae15bdd7b959778b9990
[ "MIT" ]
1
2016-04-06T00:00:35.000Z
2016-04-06T00:00:35.000Z
src/collectors/jolokia/test/testjolokia.py
Coolknight/Diamond
651bda27e1129e1cf892ae15bdd7b959778b9990
[ "MIT" ]
2
2016-05-12T08:01:52.000Z
2016-05-16T20:39:47.000Z
#!/usr/bin/python # coding=utf-8 ########################################################################## from test import CollectorTestCase from test import get_collector_config from test import unittest from mock import Mock from mock import patch from diamond.collector import Collector from jolokia import Jolok...
44.018072
79
0.628849
6a0ad479cb5e02adc948370bbd47aae6a72a57e2
63
py
Python
litex/build/quicklogic/__init__.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,501
2016-04-19T18:16:21.000Z
2022-03-31T17:46:31.000Z
litex/build/quicklogic/__init__.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,135
2016-04-19T05:49:14.000Z
2022-03-31T15:21:19.000Z
litex/build/quicklogic/__init__.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
357
2016-04-19T05:00:24.000Z
2022-03-31T11:28:32.000Z
from litex.build.quicklogic.platform import QuickLogicPlatform
31.5
62
0.888889
06300c7747e756c6113dda6065f529a2199392ae
3,781
py
Python
contrib/macdeploy/custom_dsstore.py
PhineasNa/HawkCoin
757ef51639e2d6142aa110d74decd5d779f46950
[ "MIT" ]
1
2021-12-13T17:10:06.000Z
2021-12-13T17:10:06.000Z
contrib/macdeploy/custom_dsstore.py
PhineasNa/HawkCoin
757ef51639e2d6142aa110d74decd5d779f46950
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
PhineasNa/HawkCoin
757ef51639e2d6142aa110d74decd5d779f46950
[ "MIT" ]
1
2021-12-15T15:10:19.000Z
2021-12-15T15:10:19.000Z
#!/usr/bin/env python # Copyright (c) 2013-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from __future__ import division,print_function,unicode_literals import biplist from ds_store import DSStore...
61.983607
1,817
0.72785
34073dcce3cd88997c096839bc122999a1865fe8
516
py
Python
tests/r/test_respdis.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
199
2017-07-24T01:34:27.000Z
2022-01-29T00:50:55.000Z
tests/r/test_respdis.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
46
2017-09-05T19:27:20.000Z
2019-01-07T09:47:26.000Z
tests/r/test_respdis.py
hajime9652/observations
2c8b1ac31025938cb17762e540f2f592e302d5de
[ "Apache-2.0" ]
45
2017-07-26T00:10:44.000Z
2022-03-16T20:44:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import shutil import sys import tempfile from observations.r.respdis import respdis def test_respdis(): """Test module respdis.py by downloading respdis.csv and testing shape of extracted data has 11...
21.5
44
0.753876
dc15daa1d2c52f972c4109cd88079b34980af9e3
719
py
Python
tests/test_action_parse_xml.py
cognifloyd/stackstorm-xml
aa842e4ebbe7320af959d8d539d6980633053c6f
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
tests/test_action_parse_xml.py
cognifloyd/stackstorm-xml
aa842e4ebbe7320af959d8d539d6980633053c6f
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
tests/test_action_parse_xml.py
cognifloyd/stackstorm-xml
aa842e4ebbe7320af959d8d539d6980633053c6f
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from st2tests.base import BaseActionTestCase from parse_xml import ParseXMLAction __all__ = [ 'ParseXMLActionTestCase' ] MOCK_DATA_1 = """ <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> """.strip() class ParseXMLActionTestCase(BaseActionTes...
21.787879
65
0.59388
3a557db5bf860fea0fe7c657726195c3418930ad
9,221
py
Python
sdk/python/pulumi_azure_native/dataprotection/backup_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dataprotection/backup_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/dataprotection/backup_policy.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
42.689815
430
0.656436
7a1ada8569c8b4fc7c73ac04c1cb9c71ece0e9bc
2,136
py
Python
misago/users/tests/test_mention_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
1
2017-07-25T03:04:36.000Z
2017-07-25T03:04:36.000Z
misago/users/tests/test_mention_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
misago/users/tests/test_mention_api.py
HenryChenV/iJiangNan
68f156d264014939f0302222e16e3125119dd3e3
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from misago.conf import settings UserModel = get_user_model() class AuthenticateAPITests(TestCase): def setUp(self): self.api_link = reverse('misago:api:mention-suggestions') def test_no...
31.880597
79
0.600187
9d6992533b6807413eeb22d8eb29bd896bd60047
3,225
py
Python
examples/new_project_templates/single_gpu_node_dp_template.py
SallyOne/pytorch-lightning
4cfcec0616d4cefbeb7228a904a1f14e0f6a72a4
[ "Apache-2.0" ]
1
2019-08-06T08:23:54.000Z
2019-08-06T08:23:54.000Z
examples/new_project_templates/single_gpu_node_dp_template.py
GreatWizard9519/pytorch-lightning
4cfcec0616d4cefbeb7228a904a1f14e0f6a72a4
[ "Apache-2.0" ]
null
null
null
examples/new_project_templates/single_gpu_node_dp_template.py
GreatWizard9519/pytorch-lightning
4cfcec0616d4cefbeb7228a904a1f14e0f6a72a4
[ "Apache-2.0" ]
null
null
null
""" Runs a model on a single node across N-gpus using dataParallel """ import os import numpy as np import torch from test_tube import HyperOptArgumentParser, Experiment from pytorch_lightning.models.trainer import Trainer from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint SEED = 2334 torch.manual...
29.587156
139
0.619845
bb2422c6c8a145617092c1461737f95164def3e0
15,237
py
Python
static/scripts/change_hostname/change_gluu_host.py
zeroluck/community-edition-setup
36b8c6c31ff3019717a520db03d909ef1e59cc98
[ "MIT" ]
null
null
null
static/scripts/change_hostname/change_gluu_host.py
zeroluck/community-edition-setup
36b8c6c31ff3019717a520db03d909ef1e59cc98
[ "MIT" ]
null
null
null
static/scripts/change_hostname/change_gluu_host.py
zeroluck/community-edition-setup
36b8c6c31ff3019717a520db03d909ef1e59cc98
[ "MIT" ]
null
null
null
import sys import os import json import argparse from ldap3 import Server, Connection, SUBTREE, BASE, LEVEL, \ MODIFY_REPLACE, MODIFY_ADD, MODIFY_DELETE def modify_etc_hosts(host_ip, old_hosts, old_host): hosts = { 'ipv4':{}, 'ipv6':{}, } for l in old_hosts: ...
35.683841
164
0.550305
64e759394a9b99bf20e661245f0920366cebe3d9
3,620
py
Python
fase.py
mrcloma/pythonbirds
6368a5c1d4f0085b242404d6669cca5156430e9d
[ "MIT" ]
null
null
null
fase.py
mrcloma/pythonbirds
6368a5c1d4f0085b242404d6669cca5156430e9d
[ "MIT" ]
null
null
null
fase.py
mrcloma/pythonbirds
6368a5c1d4f0085b242404d6669cca5156430e9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from itertools import chain from atores import ATIVO VITORIA = 'VITORIA' DERROTA = 'DERROTA' EM_ANDAMENTO = 'EM_ANDAMENTO' class Ponto(): def __init__(self, x, y, caracter): self.caracter = caracter self.x = round(x) self.y = round(y) def __eq__(self, other):...
27.014925
100
0.604696
40b982f3d5b999a926d08e4b28b34f73678bf671
685
py
Python
create_new_blog.py
gcrth/gcrth.github.io
061e4e9ee77f106e41d97b0cde8fb595a290884b
[ "Apache-2.0" ]
null
null
null
create_new_blog.py
gcrth/gcrth.github.io
061e4e9ee77f106e41d97b0cde8fb595a290884b
[ "Apache-2.0" ]
null
null
null
create_new_blog.py
gcrth/gcrth.github.io
061e4e9ee77f106e41d97b0cde8fb595a290884b
[ "Apache-2.0" ]
null
null
null
import time import os path_to_blog='_posts/' time_short=time.strftime("%Y-%m-%d", time.localtime()) time_long=time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) # change here blog_name_short='Replace bash' blog_name=time_short+'-'+blog_name_short+'.markdown' if not os.path.exists(path_to_blog) : raise ValueEr...
21.40625
62
0.681752
5e5d3b3f54ed60c789ed9e9358942054713c09da
787
py
Python
problems/dp/Solution5559.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/dp/Solution5559.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/dp/Solution5559.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
""" You may recall that an array arr is a mountain array if and only if: arr.length >= 3 There exists some index i (0-indexed) with 0 < i < arr.length - 1 such that: arr[0] < arr[1] < ... < arr[i - 1] < arr[i] arr[i] > arr[i + 1] > ... > arr[arr.length - 1] Given an integer array nums​​​, return the m...
28.107143
80
0.604828
4fbe3e1b5ab2df2ed81c7d9dce67a77a4c94d95a
2,387
py
Python
saleor/graphql/product/tests/benchmark/test_collection.py
codefl/saleor
96613dfb04fd73c19d6793ad00d37f07bb376c3a
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/product/tests/benchmark/test_collection.py
codefl/saleor
96613dfb04fd73c19d6793ad00d37f07bb376c3a
[ "CC-BY-4.0" ]
12
2021-03-30T14:37:10.000Z
2022-03-12T00:58:16.000Z
saleor/graphql/product/tests/benchmark/test_collection.py
codefl/saleor
96613dfb04fd73c19d6793ad00d37f07bb376c3a
[ "CC-BY-4.0" ]
null
null
null
import graphene import pytest from saleor.graphql.tests.utils import get_graphql_content @pytest.mark.django_db @pytest.mark.count_queries(autouse=False) def test_collection_view(api_client, homepage_collection, count_queries): query = """ fragment BasicProductFields on Product { id n...
22.308411
79
0.390029
36b0e05b43d81a7bd95ee4bc3c1a31f252c9b3ad
5,754
py
Python
fresh_tomatoes.py
wustzhy/movies_web
f3ba0353defcdceba5860e9ebc2f49224a2ee675
[ "MIT" ]
null
null
null
fresh_tomatoes.py
wustzhy/movies_web
f3ba0353defcdceba5860e9ebc2f49224a2ee675
[ "MIT" ]
null
null
null
fresh_tomatoes.py
wustzhy/movies_web
f3ba0353defcdceba5860e9ebc2f49224a2ee675
[ "MIT" ]
null
null
null
import webbrowser import os import re # Styles and scripting for the page main_page_head = ''' <head> <meta charset="utf-8"> <title>Fresh Tomatoes!</title> <!-- Bootstrap 3 --> <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> <link rel="styleshee...
34.662651
144
0.586548
cadfc9c22ac3cc44d3559309e30b0092c903daa4
151
py
Python
mach_cad/tools/magnet/document/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
6
2021-11-02T20:12:32.000Z
2021-11-13T10:50:35.000Z
mach_cad/tools/magnet/document/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
18
2021-11-29T20:14:55.000Z
2022-03-02T07:17:37.000Z
mach_cad/tools/magnet/document/__init__.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
1
2022-01-29T00:52:38.000Z
2022-01-29T00:52:38.000Z
from . import document from . import view from .document import* from .view import* __all__ = [] __all__ += document.__all__ __all__ += view.__all__
15.1
27
0.735099
2c1ef94fea31e281b3ecc57cf520c40a444da282
154
py
Python
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
57
2017-10-31T20:20:11.000Z
2022-03-09T14:27:12.000Z
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
19
2017-10-29T18:15:43.000Z
2021-09-24T12:59:00.000Z
phylopandas/treeio/__init__.py
harmsm/phylopandas
eb1e5efbbfe68f96b497816c923bc333489c4838
[ "BSD-3-Clause" ]
22
2017-10-27T22:35:39.000Z
2022-02-18T07:50:24.000Z
from .read import (read_nexml, read_nexus_tree, read_newick, read_dendropy) from . import write
22
35
0.506494
e0b239df447395ed6dcac06fa37af6b7b34ac0ec
167,040
py
Python
nebula2/common/ttypes.py
Shylock-Hg/nebula-python
f17120b77adb6dd00aeb52de1abf783fcb9b4465
[ "Apache-2.0" ]
null
null
null
nebula2/common/ttypes.py
Shylock-Hg/nebula-python
f17120b77adb6dd00aeb52de1abf783fcb9b4465
[ "Apache-2.0" ]
null
null
null
nebula2/common/ttypes.py
Shylock-Hg/nebula-python
f17120b77adb6dd00aeb52de1abf783fcb9b4465
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Thrift # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # @generated # from __future__ import absolute_import import six import sys from nebula2.fbthrift.util.Recursive import fix_spec from nebula2.fbthrift.Thrift import TType, TMessageType, TPriority, TRequestContext, TProces...
35.730481
534
0.67576
ef2a6009b9c8a6c6aebf963dee82ae5599837c33
594
py
Python
morepath/tests/fixtures/template_engine.py
timgates42/morepath
09972904229f807da75c75d8825af1495057acdc
[ "BSD-3-Clause" ]
314
2015-01-01T01:42:52.000Z
2022-01-07T21:46:15.000Z
morepath/tests/fixtures/template_engine.py
timgates42/morepath
09972904229f807da75c75d8825af1495057acdc
[ "BSD-3-Clause" ]
369
2015-01-02T19:10:40.000Z
2021-07-03T04:37:27.000Z
morepath/tests/fixtures/template_engine.py
timgates42/morepath
09972904229f807da75c75d8825af1495057acdc
[ "BSD-3-Clause" ]
37
2015-01-11T09:22:02.000Z
2021-07-02T20:48:20.000Z
import os class FormatTemplate: def __init__(self, text): self.text = text def render(self, **kw): return self.text.format(**kw) class FormatLoader: def __init__(self, template_directories): self.template_directories = template_directories def get(self, name): for t...
24.75
60
0.617845
6726b0e4cc2e1c161e71ec38896be01735334712
30,415
py
Python
networkx/generators/degree_seq.py
kalyi/networkx
bf1c7cc9b144767523e5abcf84f949d4223848a0
[ "BSD-3-Clause" ]
null
null
null
networkx/generators/degree_seq.py
kalyi/networkx
bf1c7cc9b144767523e5abcf84f949d4223848a0
[ "BSD-3-Clause" ]
null
null
null
networkx/generators/degree_seq.py
kalyi/networkx
bf1c7cc9b144767523e5abcf84f949d4223848a0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # # Authors: Aric Hagberg (aric.hagberg@gmail.com) # Pieter Swart (swart@lanl.gov) # Dan Sch...
35.080738
83
0.62913
e23cfa5de052cf9f3b182753a7a94b0428029ba1
1,198
py
Python
v2.5.7/toontown/hood/MMHoodDataAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/hood/MMHoodDataAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/hood/MMHoodDataAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.directnotify import DirectNotifyGlobal import HoodDataAI from toontown.toonbase import ToontownGlobals from toontown.safezone import DistributedTrolleyAI from toontown.classicchars import DistributedMinnieAI, DistributedWitchMinnieAI, DistributedPlutoAI from toontown.safezone import DistributedMMPianoAI cl...
44.37037
99
0.764608
d2fe353527f7ea85910d614838ed5c84213504c8
2,381
py
Python
src/finmag/sim/magnetisation_patterns_test.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
10
2018-03-24T07:43:17.000Z
2022-03-26T10:42:27.000Z
src/finmag/sim/magnetisation_patterns_test.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
21
2018-03-26T15:08:53.000Z
2021-07-10T16:11:14.000Z
src/finmag/sim/magnetisation_patterns_test.py
davidcortesortuno/finmag
9ac0268d2c0e45faf1284cee52a73525aa589e2b
[ "BSL-1.0" ]
7
2018-04-09T11:50:48.000Z
2021-06-10T09:23:25.000Z
import numpy as np import finmag from finmag.sim.magnetisation_patterns import * from finmag.util.meshes import cylinder def test_vortex_functions(): """ Testing for correct polarity and 'handiness' of the two vortex functions, vortex_simple() and vortex_feldtkeller() """ mesh = cylinder(10, 1, 3...
38.403226
78
0.604368
d2d978c9ff8c2ed7d8365aa17c2a6124e1027373
9,716
py
Python
doc/conf.py
xunzi/nagiosplugin
050651a39c3ad986367bf93d817fa62a47c15de2
[ "ZPL-2.1" ]
18
2020-01-22T15:38:51.000Z
2022-03-01T16:17:15.000Z
doc/conf.py
xunzi/nagiosplugin
050651a39c3ad986367bf93d817fa62a47c15de2
[ "ZPL-2.1" ]
30
2019-11-07T01:14:07.000Z
2022-02-12T16:24:53.000Z
doc/conf.py
xunzi/nagiosplugin
050651a39c3ad986367bf93d817fa62a47c15de2
[ "ZPL-2.1" ]
12
2019-11-09T00:24:37.000Z
2022-02-19T16:43:58.000Z
# -*- coding: utf-8 -*- # # nagiosplugin documentation build configuration file, created by # sphinx-quickstart on Tue Aug 17 21:49:47 2010. # # 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. ...
32.386667
79
0.714492
b8730c82babdf2d3a9f427362c5e2e4798281b1a
66
py
Python
globals.py
JahnChoi/market-analysis-tool
2dee346460116ad08f4eca4079b095966fd21505
[ "MIT" ]
null
null
null
globals.py
JahnChoi/market-analysis-tool
2dee346460116ad08f4eca4079b095966fd21505
[ "MIT" ]
null
null
null
globals.py
JahnChoi/market-analysis-tool
2dee346460116ad08f4eca4079b095966fd21505
[ "MIT" ]
null
null
null
IEX_API_VERSION = '' IEX_TOKEN = '' SANDBOX_MODE = False
16.5
23
0.621212
7e6afb8a32b15ce36a3a41c1528bc4e915e9deca
15,832
py
Python
mmmvi/lib/reporting.py
dorbarker/voc-identify
f98ec3b2f1c6ce687953cca9cb9ccdaea20ac3a5
[ "MIT" ]
9
2021-04-05T22:44:37.000Z
2022-02-22T21:56:35.000Z
mmmvi/lib/reporting.py
melohar/voc-identify
f98ec3b2f1c6ce687953cca9cb9ccdaea20ac3a5
[ "MIT" ]
22
2021-03-23T00:30:20.000Z
2021-09-10T16:50:13.000Z
mmmvi/lib/reporting.py
melohar/voc-identify
f98ec3b2f1c6ce687953cca9cb9ccdaea20ac3a5
[ "MIT" ]
3
2021-06-15T23:25:26.000Z
2021-09-09T17:49:54.000Z
import itertools import logging import statistics from collections import Counter from pathlib import Path from typing import Dict, Tuple import pandas as pd from mmmvi.lib.types import VoCs, VoCResults, Reads def one_index_range(position_mutation): position_range, mutation = position_mutation if None in ...
28.890511
95
0.657782
1cafe29e10f0422e18cacc6a07774046e42ed355
27,079
py
Python
src/tests/test_dc_models.py
BioSystemsUM/DeepMol
62904fac46f62ec6231543891efbe52ac7ea1cf1
[ "BSD-2-Clause" ]
9
2021-07-10T18:36:04.000Z
2022-03-07T12:40:54.000Z
src/tests/test_dc_models.py
BioSystemsUM/DeepMol
62904fac46f62ec6231543891efbe52ac7ea1cf1
[ "BSD-2-Clause" ]
null
null
null
src/tests/test_dc_models.py
BioSystemsUM/DeepMol
62904fac46f62ec6231543891efbe52ac7ea1cf1
[ "BSD-2-Clause" ]
null
null
null
'''author: Bruno Pereira date: 28/04/2021 ''' from compoundFeaturization.rdkitFingerprints import MorganFingerprint, MACCSkeysFingerprint, LayeredFingerprint # from compoundFeaturization.rdkitFingerprints import RDKFingerprint, AtomPairFingerprint from compoundFeaturization.deepChemFeaturizers import ConvMolFeat, Weav...
40.296131
139
0.633738
f742cea0cdb90b0bf9f8e8687b86798a116c4b4d
1,468
py
Python
sdk/servicefabric/azure-servicefabric/azure/servicefabric/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/servicefabric/azure-servicefabric/azure/servicefabric/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/servicefabric/azure-servicefabric/azure/servicefabric/_configuration.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.363636
84
0.645777
4a065cfd680c545b5f2bbb15a94d396634d98162
798
py
Python
Projects/Online Workouts/w3resource/Basic - Part-I/program-49.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
1
2019-09-23T15:51:45.000Z
2019-09-23T15:51:45.000Z
Projects/Online Workouts/w3resource/Basic - Part-I/program-49.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
5
2021-02-08T20:47:19.000Z
2022-03-12T00:35:44.000Z
Projects/Online Workouts/w3resource/Basic - Part-I/program-49.py
ivenpoker/Python-Projects
2975e1bd687ec8dbcc7a4842c13466cb86292679
[ "MIT" ]
null
null
null
# !/usr/bin/env python3 ################################################################################### # # # Program purpose: List all files in a directory. # # Program Author : Happi Yvan <ivens...
46.941176
83
0.295739
84bfa0dd7e0fcb5f825d1cf85677835a37c4848b
7,767
py
Python
meetings/agenda.py
wooriml/proj8-freetimes
40bfe3f322aab66c7aae79e96326a79a29c8473c
[ "Artistic-2.0" ]
null
null
null
meetings/agenda.py
wooriml/proj8-freetimes
40bfe3f322aab66c7aae79e96326a79a29c8473c
[ "Artistic-2.0" ]
null
null
null
meetings/agenda.py
wooriml/proj8-freetimes
40bfe3f322aab66c7aae79e96326a79a29c8473c
[ "Artistic-2.0" ]
null
null
null
""" Edited for optimization for CIS322 proj8-freetimes author: CIS210 Edit: Jenny Lee no need for datetime importation. """ class Appt: def __init__(self, begin, end): self._begin = begin self._end = end def __repr__(self): """returns str representation of self._begin and self._end ...
30.821429
79
0.567916
a4a88d87d2f695b990c1b3cfd1e5abf4e88b008d
4,309
py
Python
apps/benchmark/arm_cpu_imagenet_bench.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
2
2020-04-17T02:25:16.000Z
2020-11-25T11:39:43.000Z
apps/benchmark/arm_cpu_imagenet_bench.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "Apache-2.0" ]
3
2020-04-20T15:37:55.000Z
2020-05-13T05:34:28.000Z
apps/benchmark/arm_cpu_imagenet_bench.py
mwillsey/incubator-tvm
e02dc69fef294eb73dd65d18949ed9e108f60cda
[ "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...
35.03252
100
0.645161
3805356e4f8d0771b42bbfc8c0e72720ee44f2e8
16,019
py
Python
encapsia_cli/plugininfo.py
tcorbettclark/encapsia-cli
1e2ed8857c2224f6b80478b1ca09b268fbdd85f6
[ "MIT" ]
2
2019-06-12T09:49:52.000Z
2020-10-23T13:28:27.000Z
encapsia_cli/plugininfo.py
tcorbettclark/encapsia-cli
1e2ed8857c2224f6b80478b1ca09b268fbdd85f6
[ "MIT" ]
49
2019-07-02T14:50:43.000Z
2022-03-31T12:17:16.000Z
encapsia_cli/plugininfo.py
tcorbettclark/encapsia-cli
1e2ed8857c2224f6b80478b1ca09b268fbdd85f6
[ "MIT" ]
5
2019-02-28T08:16:03.000Z
2021-06-07T10:08:56.000Z
from __future__ import annotations import collections import re import typing as T from dataclasses import dataclass from functools import total_ordering from pathlib import Path from warnings import warn import arrow import semver from encapsia_cli import lib, s3 ALLOWED_PLUGIN_NAME = "[a-z][a-z0-9_]*" ALLOWED_VER...
34.449462
108
0.601661
2b6dba45b5c19209feb9daa13f3142d50bc022b8
2,283
py
Python
daisychain/channel_dropbox/migrations/0001_initial.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
5
2016-09-27T10:44:59.000Z
2022-03-29T08:16:44.000Z
daisychain/channel_dropbox/migrations/0001_initial.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
null
null
null
daisychain/channel_dropbox/migrations/0001_initial.py
daisychainme/daisychain
245d0041f1efd2d6cc110f60aebf2e2dee98bcdb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-08-17 09:06 # Generated by Django 1.9.6 on 2016-07-14 17:19 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): init...
43.075472
137
0.622427
7f123bf95e68a4532e05a08101442765f72e7492
717
py
Python
netnir/core/tasks/inventory.py
jtdub/netnir
9d2c3467cf558895af16cd2450198d51f8c4a3d4
[ "MIT" ]
null
null
null
netnir/core/tasks/inventory.py
jtdub/netnir
9d2c3467cf558895af16cd2450198d51f8c4a3d4
[ "MIT" ]
null
null
null
netnir/core/tasks/inventory.py
jtdub/netnir
9d2c3467cf558895af16cd2450198d51f8c4a3d4
[ "MIT" ]
1
2021-04-09T18:06:08.000Z
2021-04-09T18:06:08.000Z
from netnir.helpers.scaffold.command import CommandScaffold class Inventory(CommandScaffold): """ cli based inventory search """ def run(self): from netnir.plugins.facts import inventory_facts from nornir.plugins.functions.text import print_result self.nr = self._inventory() ...
27.576923
77
0.631799
b9ed0661bbe2109d68df279dac25da8ce61ce56b
136
py
Python
graph_ter_seg/__init__.py
RicardoLanJ/graph-ter
3b9bda527a6a9559be835c5b84e6491ac8c5aa30
[ "MIT" ]
58
2020-03-24T16:06:21.000Z
2022-03-26T07:04:28.000Z
graph_ter_seg/__init__.py
RicardoLanJ/graph-ter
3b9bda527a6a9559be835c5b84e6491ac8c5aa30
[ "MIT" ]
6
2020-04-02T08:52:37.000Z
2020-11-27T12:27:23.000Z
graph_ter_seg/__init__.py
RicardoLanJ/graph-ter
3b9bda527a6a9559be835c5b84e6491ac8c5aa30
[ "MIT" ]
19
2020-03-29T18:23:55.000Z
2021-12-25T04:10:00.000Z
from graph_ter_seg import dataset from graph_ter_seg import models from graph_ter_seg import tools from graph_ter_seg import transforms
27.2
36
0.882353
e07c0d1a70a2aea0ab8cda1008fa6e6d5db4ca45
1,270
py
Python
setup.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
setup.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
setup.py
m3at/backlight
a80ccbe6193e1fc4c169df2ebc2bf49876d4d39d
[ "MIT" ]
null
null
null
import setuptools import sys import os from glob import glob # hack to extract metadata directly from the python package sys.path.append("src") # noqa from backlight import __author__, __version__, __license__ def read(fname): with open(fname, "r", encoding="utf-8") as fh: long_description = fh.read() ...
25.918367
80
0.62126
01f8a510e014d2f94c5ccf197e04233480c2a2f0
3,069
py
Python
invenio_records_lom/ext.py
tu-graz-library/invenio-records-lom
c811506e51a1ed15d11cf10d6e6ef83a4ecc202b
[ "MIT" ]
null
null
null
invenio_records_lom/ext.py
tu-graz-library/invenio-records-lom
c811506e51a1ed15d11cf10d6e6ef83a4ecc202b
[ "MIT" ]
18
2020-10-21T07:58:14.000Z
2022-03-29T12:10:25.000Z
invenio_records_lom/ext.py
tu-graz-library/invenio-records-lom
c811506e51a1ed15d11cf10d6e6ef83a4ecc202b
[ "MIT" ]
7
2020-10-06T08:46:40.000Z
2021-07-06T13:21:29.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2020 Graz University of Technology. # # invenio-records-lom is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Flask extension for invenio-records-lom.""" from __future__ import absolute_impor...
34.1
87
0.584881
de567ea5dfc1ee2c201d988d20a0aef51fe7c817
2,425
py
Python
python/dp/partition.py
aocsa/cs_hackers_hub
b3c42932260720c60e2cc9a5d552f3987a45fa21
[ "Apache-2.0" ]
4
2021-03-04T02:45:26.000Z
2021-05-28T22:51:45.000Z
python/dp/partition.py
aocsa/cs_hackers_hub
b3c42932260720c60e2cc9a5d552f3987a45fa21
[ "Apache-2.0" ]
1
2021-03-14T16:12:32.000Z
2021-03-14T16:12:32.000Z
python/dp/partition.py
aocsa/cs_hackers_hub
b3c42932260720c60e2cc9a5d552f3987a45fa21
[ "Apache-2.0" ]
5
2021-03-16T05:20:48.000Z
2021-03-24T01:46:28.000Z
# **Problem Statement # # Given a set of positive numbers, find if we can partition it into two subsets such that the sum of elements in both subsets is equal. # Input:{1,2,3,4} # Output:True # {1,4}&{2,3} => 5 | 5 #Input:{1,1,3,4,7} #Output:True #{1,3,4}&{1,7} => 8 | 8 #Input:{2,3,4,6} = sum => 15?? #Output:False...
23.317308
135
0.512577
360a60ec1f62cf4a79a3d271b8ff147f9cfe2645
585
py
Python
model_mapreduce_job/config.py
schmidtbri/map-reduce-ml-model-deployment
84d4adbedd1ae8b76a3626a13dc8b98f30bb3ee9
[ "MIT" ]
null
null
null
model_mapreduce_job/config.py
schmidtbri/map-reduce-ml-model-deployment
84d4adbedd1ae8b76a3626a13dc8b98f30bb3ee9
[ "MIT" ]
null
null
null
model_mapreduce_job/config.py
schmidtbri/map-reduce-ml-model-deployment
84d4adbedd1ae8b76a3626a13dc8b98f30bb3ee9
[ "MIT" ]
null
null
null
"""Configuration for the job.""" class Config(dict): """Configuration for all environments.""" models = [ { "module_name": "iris_model.iris_predict", "class_name": "IrisModel" } ] class ProdConfig(Config): """Configuration for the prod environment.""" pa...
15.810811
53
0.615385
1114f110a7092724c1da557123b8fef2cc5cd852
14
py
Python
lib/__init__.py
RimuEirnarn/GTRN_Client
54bd7b27ff12880272ba1c631066a3cdd733a6bd
[ "BSD-3-Clause" ]
1
2021-04-19T19:50:07.000Z
2021-04-19T19:50:07.000Z
lib/__init__.py
RimuEirnarn/GTRN_Client
54bd7b27ff12880272ba1c631066a3cdd733a6bd
[ "BSD-3-Clause" ]
null
null
null
lib/__init__.py
RimuEirnarn/GTRN_Client
54bd7b27ff12880272ba1c631066a3cdd733a6bd
[ "BSD-3-Clause" ]
null
null
null
"""Library"""
7
13
0.5
5019ee9acc028c6f5d882c686caece7cccf31d96
21,668
py
Python
model/backbones/timm/models/levit.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
58
2021-09-02T13:09:57.000Z
2022-03-20T06:44:56.000Z
model/backbones/timm/models/levit.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
5
2021-11-19T06:38:43.000Z
2022-03-31T13:48:11.000Z
model/backbones/timm/models/levit.py
maxingan2412/CIL-ReID
0307ca57a5da9cfcb30fc3810469b0a953c77bfb
[ "MIT" ]
12
2021-11-03T21:32:12.000Z
2022-03-19T07:55:08.000Z
""" LeViT Paper: `LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference` - https://arxiv.org/abs/2104.01136 @article{graham2021levit, title={LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inference}, author={Benjamin Graham and Alaaeldin El-Nouby and Hugo Touvron and Pierre Stoc...
38.080844
141
0.596733
a288e9391cea8415c663eb7b232f50e07b13c875
528
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/apino-32697
1195a53621e1595b0a1bf1d18db283143ca4ce8f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/apino-32697
1195a53621e1595b0a1bf1d18db283143ca4ce8f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/apino-32697
1195a53621e1595b0a1bf1d18db283143ca4ce8f
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "apino-32697.botics.co" site_params = { "name": "Apino", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create(defau...
20.307692
61
0.651515
a6d5569539801f6041949357af688bf5040e847f
2,672
py
Python
samples/cli/accelbyte_py_sdk_cli/iam/_admin_get_banned_users_v3.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
samples/cli/accelbyte_py_sdk_cli/iam/_admin_get_banned_users_v3.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
1
2021-10-13T03:46:58.000Z
2021-10-13T03:46:58.000Z
samples/cli/accelbyte_py_sdk_cli/iam/_admin_get_banned_users_v3.py
AccelByte/accelbyte-python-sdk
dcd311fad111c59da828278975340fb92e0f26f7
[ "MIT" ]
null
null
null
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # justice-iam-service (5.10.1) # pylint: disable=duplicate-code # ...
32.987654
100
0.726048