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
3ee9851dbffc2cca8a2ee883242d10f80ff8fe87
3,833
py
Python
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_partner_pay_orders_response.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_partner_pay_orders_response.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_partner_pay_orders_response.py
Adek06/huaweicloud-sdk-python-v3
3d13b27d089e04a1ae567cd649b3c5509e0391d2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListPartnerPayOrdersResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_m...
27.775362
81
0.576833
706bfaa362976ba670caa575e6317d88f291ef81
46,400
py
Python
imsegm/utilities/drawing.py
Borda/pyImSegm
c52e709f9fcd90bcc6ab06e515685fd4c4e6c301
[ "BSD-3-Clause" ]
314
2017-10-21T18:56:48.000Z
2022-03-28T00:03:58.000Z
imsegm/utilities/drawing.py
Borda/pyImSegm
c52e709f9fcd90bcc6ab06e515685fd4c4e6c301
[ "BSD-3-Clause" ]
42
2017-12-10T17:02:47.000Z
2022-01-03T21:38:35.000Z
imsegm/utilities/drawing.py
Borda/pyImSegm
c52e709f9fcd90bcc6ab06e515685fd4c4e6c301
[ "BSD-3-Clause" ]
71
2017-10-21T14:06:01.000Z
2022-03-25T12:15:30.000Z
""" Framework for visualisations Copyright (C) 2016-2018 Jiri Borovec <jiri.borovec@fel.cvut.cz> """ import logging import os import matplotlib from imsegm.utilities import ImageDimensionError if os.environ.get('DISPLAY', '') == '' and matplotlib.rcParams['backend'] != 'agg': print('No display found. Using non...
39.288738
119
0.601099
9db44266da35c2004cef93f5015d3c3cef2f50e8
35,978
py
Python
pattern/text/en/inflect.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
pattern/text/en/inflect.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
pattern/text/en/inflect.py
zvelo/pattern
331a278f63590c1c415f102f935c9d10b62b4a03
[ "BSD-3-Clause" ]
null
null
null
#### PATTERN | EN | INFLECT ######################################################################## # -*- coding: utf-8 -*- # Copyright (c) 2010 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). ######################################################...
44.362515
114
0.470899
f8c67437c2b51435eef9d8efdb8673fb1f4cadbf
665
py
Python
Gathered CTF writeups/2015-09-16-csaw/forensics_400_sharpturn/flipuj.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:00:41.000Z
2022-03-27T06:00:41.000Z
Gathered CTF writeups/2015-09-16-csaw/forensics_400_sharpturn/flipuj.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
null
null
null
Gathered CTF writeups/2015-09-16-csaw/forensics_400_sharpturn/flipuj.py
mihaid-b/CyberSakura
f60e6b6bfd6898c69b84424b080090ae98f8076c
[ "MIT" ]
1
2022-03-27T06:01:42.000Z
2022-03-27T06:01:42.000Z
expected = 'efda2f556de36b9e9e1d62417c5f282d8961e2f8' # level 1 expected = '354ebf392533dce06174f9c8c093036c138935f3' # level 2 expected = 'd961f81a588fcfd5e57bbea7e17ddae8a5e61333' # level 3 expected = 'f8d0839dd728cb9a723e32058dcc386070d5e3b5' # level 4 d = open('sharp_v4_f8d0_8096').read() def githash(d): impo...
27.708333
68
0.64812
dde95f47b474eeeb685cfba0f072bb3ec79c826b
140
py
Python
netmiko/supermicro/__init__.py
sandyw777/netmiko
09aa80ca88869f5c4753e2364babd72871f8934b
[ "MIT" ]
null
null
null
netmiko/supermicro/__init__.py
sandyw777/netmiko
09aa80ca88869f5c4753e2364babd72871f8934b
[ "MIT" ]
null
null
null
netmiko/supermicro/__init__.py
sandyw777/netmiko
09aa80ca88869f5c4753e2364babd72871f8934b
[ "MIT" ]
null
null
null
from netmiko.supermicro.smci_switch_usp import SmciSwitchUspTelnet, SmciSwitchUspSSH __all__ = ["SmciSwitchUspSSH", "SmciSwitchUspTelnet"]
35
84
0.85
e676c43ef1a5e91563eeb86af3e6beae53752e8c
2,943
py
Python
setup.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
14
2021-04-15T19:26:07.000Z
2022-01-08T15:23:05.000Z
setup.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
2
2021-05-29T14:30:48.000Z
2021-06-14T20:55:07.000Z
setup.py
victordomingos/optimize-images-x
c21d23fc77392b2947c91ccb470defd591f3d7b4
[ "MIT" ]
null
null
null
# encoding: utf-8 import os import sys from setuptools import setup, find_packages used = sys.version_info required = (3, 7) if used[:2] < required: msg = f'Unsupported Python version: ' \ f'{sys.version_info.major}.{sys.version_info.minor}. ' \ f'Python 3.7 or later is required.' sys.st...
35.890244
86
0.608223
448cb814d9ccec51899120f2a7098935550a92e8
9,914
py
Python
openpype/hosts/maya/api/plugin.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
1
2020-09-21T14:55:33.000Z
2020-09-21T14:55:33.000Z
openpype/hosts/maya/api/plugin.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
openpype/hosts/maya/api/plugin.py
jrsndl/pype
f9d80ef2c0663921291c5f47d24bea51fc43bac7
[ "MIT" ]
null
null
null
from avalon import api from avalon.vendor import qargparse import avalon.maya from openpype.api import PypeCreatorMixin def get_reference_node(members, log=None): """Get the reference node from the container members Args: members: list of node names Returns: str: Reference node name. ...
32.29316
79
0.553762
1be49e397229a69fd83b030f6962e7eeaf6776cf
5,983
py
Python
pr3/linear.py
mikss/pr3
0cab2a6edf0ff6ed56e1d91132bac72be95d8ff6
[ "MIT" ]
null
null
null
pr3/linear.py
mikss/pr3
0cab2a6edf0ff6ed56e1d91132bac72be95d8ff6
[ "MIT" ]
null
null
null
pr3/linear.py
mikss/pr3
0cab2a6edf0ff6ed56e1d91132bac72be95d8ff6
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from enum import Enum from typing import Optional, Set, Tuple, Union import numpy as np from scipy.stats import gennorm from sklearn.linear_model import lars_path_gram from sklearn.utils.validation import check_random_state class ProjectionVector: beta: np.ndarray q: int ...
36.260606
100
0.643824
9adb14619bad075a83dd2a54cfc6a56d6336f1e4
304
py
Python
Part_1/ch04_list/4_5_magic8Ball.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
Part_1/ch04_list/4_5_magic8Ball.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
Part_1/ch04_list/4_5_magic8Ball.py
hyperpc/AutoStuffWithPython
e05f5e0acb5818d634e4ab84d640848cd4ae7e70
[ "MIT" ]
null
null
null
import random messages = [ 'It is certain' ,'It is decidedly so' ,'Yes definitely' ,'Reply hazy try again' ,'Ask again later' ,'Concentrate and ask again' ,'My reply is no' ,'Outlook not so good' ,'Very doubtful' ] print(messages[random.randint(0, len(messages)-1)])
20.266667
51
0.621711
8e842b8f72f4f446075495438693df5e5f6da927
11,564
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/switchhostranges_5d2115168a5da6fa79eb866056d9b27b.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/switchhostranges_5d2115168a5da6fa79eb866056d9b27b.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/switchhostranges_5d2115168a5da6fa79eb866056d9b27b.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
50.719298
404
0.700017
6c633740162a793795bd68de8881b12febeac442
7,661
py
Python
base/lib/pythonbin/pymongo/ssl_support.py
threefoldtech/sandbox_osx
e2a5ea812c3789dea40113719dbad6d6ee7cd720
[ "Apache-2.0" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
venv/lib/python3.6/site-packages/pymongo/ssl_support.py
HeyWeiPan/vnpy_crypto
844381797a475a01c05a4e162592a5a6e3a48032
[ "MIT" ]
9
2020-03-24T16:56:41.000Z
2022-03-11T23:45:08.000Z
env/lib/python3.6/site-packages/pymongo/ssl_support.py
bcss-pm/incidents
927a102104b5718fe118bceb307d3cd633d6699b
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
# Copyright 2014-present MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you # may not use this file except in compliance with the License. You # may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
40.321053
83
0.596006
59cb2db6bc152e7afbe32aafafb24b5a879f1f8d
21,070
py
Python
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_bagging.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_bagging.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/sklearn/ensemble/tests/test_bagging.py
bopopescu/fbserver
e812dbc4dc0cbf2fda19473015a3d7e253718a19
[ "Apache-2.0" ]
1
2020-07-23T19:26:19.000Z
2020-07-23T19:26:19.000Z
""" Testing for the bagging ensemble module (sklearn.ensemble.bagging). """ # Author: Gilles Louppe # License: BSD 3 clause import numpy as np from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_equal from sklearn.u...
38.378871
78
0.560228
9ec949f3d9e00fe9a64fab4af291299ea05d45ba
1,296
py
Python
experiments/horse/generate_gif.py
songweijia/hdfsrs
94cf078c3fbd1b84cf1acd3816e206ceb7327b66
[ "Apache-2.0" ]
1
2017-04-23T01:08:58.000Z
2017-04-23T01:08:58.000Z
experiments/horse/generate_gif.py
songweijia/hdfsrs
94cf078c3fbd1b84cf1acd3816e206ceb7327b66
[ "Apache-2.0" ]
null
null
null
experiments/horse/generate_gif.py
songweijia/hdfsrs
94cf078c3fbd1b84cf1acd3816e206ceb7327b66
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import Image import sys, os from glob import glob from PIL import Image, ImageSequence from images2gif import writeGif def main(data_path,width,height,duration): files_list = glob(os.path.join(data_path, '*.dat')) last = -1 # last timestamp images = [] for fn in sorted(files_list): now =...
25.92
87
0.614198
cfdf22f7e612dde812ff124ce56b374255d28af3
6,145
py
Python
tests/integration/testcases.py
kvalev/compose
d90e96f9bb9b2835e1b60def00ae77e9693d31cb
[ "Apache-2.0" ]
7
2022-01-27T16:34:50.000Z
2022-02-09T18:45:15.000Z
tests/integration/testcases.py
kvalev/compose
d90e96f9bb9b2835e1b60def00ae77e9693d31cb
[ "Apache-2.0" ]
2
2021-03-25T22:19:31.000Z
2021-06-01T23:11:11.000Z
tests/integration/testcases.py
waqasalam/docker-compose
a0f21e985c4a5b8dfba9881f836d05bd082e7e2f
[ "Apache-2.0" ]
1
2019-06-06T19:07:53.000Z
2019-06-06T19:07:53.000Z
from __future__ import absolute_import from __future__ import unicode_literals import functools import os import pytest from docker.errors import APIError from docker.utils import version_lt from .. import unittest from compose.cli.docker_client import docker_client from compose.config.config import resolve_environm...
30.420792
100
0.651261
21cf66a955e4531a6a106eb918d5f116ee6e7b6a
1,338
py
Python
ard/non_dp_runs/male/utils.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
null
null
null
ard/non_dp_runs/male/utils.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
2
2020-11-13T18:31:07.000Z
2021-05-03T12:48:43.000Z
ard/ablation_study/no_death_strat/male/utils.py
DPBayes/data-sharing-examples
f9fffc5b8f45d8dd7b93cb7e812439decfa51193
[ "MIT" ]
2
2020-11-21T06:35:20.000Z
2020-11-25T16:58:09.000Z
import torch import torch.nn.functional as F import math def logsumexp(inputs, dim=None, keepdim=False): return (inputs - F.log_softmax(inputs, dim=dim)).mean(dim, keepdim=keepdim) def clip(model, C, dim=1): example_norms = 0 for p in model.parameters(): example_norms += p.grad.data.norm(dim=dim)*...
34.307692
87
0.642003
ec82487907279e7b9bef24850b13d9b00b5d0889
4,445
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations_async/_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
1
2020-12-10T03:17:51.000Z
2020-12-10T03:17:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations_async/_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/aio/operations_async/_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
43.578431
115
0.659618
bebceed2e24bc61240c264f3c681fff76d313df6
1,126
py
Python
PS02/weblog_bounds.py
tttonyl/student
72f76208c1409142a513861feb0493376a88fd67
[ "CC0-1.0" ]
2
2016-04-07T17:59:09.000Z
2016-04-08T05:22:15.000Z
PS02/weblog_bounds.py
jbrambleDC/PS04
f8f8923c1879bb6cba5caf5845ae6c8b239b84e8
[ "CC0-1.0" ]
null
null
null
PS02/weblog_bounds.py
jbrambleDC/PS04
f8f8923c1879bb6cba5caf5845ae6c8b239b84e8
[ "CC0-1.0" ]
2
2019-09-23T05:32:32.000Z
2021-04-30T15:28:58.000Z
#!/usr/bin/env python2 # Print the min and max datetime for each file in the weblog directory import mrjob from mrjob.job import MRJob from weblog import Weblog # imports class defined in weblog.py import os class WeblogBounds(MRJob): def mapper(self, _, line): # Get the name of the input file, per...
30.432432
97
0.638544
1866f0b091f0326e53fa6566789f476cf335268d
275
py
Python
stormed/method/queue.py
bufferx/stormed-amqp
6b29ae069a3cf62277ed1dffe7dd895a743f28e9
[ "MIT" ]
15
2015-03-06T12:35:52.000Z
2020-06-28T01:46:09.000Z
stormed/method/queue.py
brimcfadden/stormed-amqp
59e81bfa4632366dc3f20b3dff25df3331480798
[ "MIT" ]
14
2015-01-08T21:13:27.000Z
2016-03-09T13:22:01.000Z
stormed/method/queue.py
brimcfadden/stormed-amqp
59e81bfa4632366dc3f20b3dff25df3331480798
[ "MIT" ]
14
2015-01-11T22:25:37.000Z
2020-06-28T01:46:13.000Z
from stormed.util import add_method from stormed.method.codegen.queue import * @add_method(DeclareOk) def handle(self, ch): if ch.callback: ch.invoke_callback(self) @add_method(PurgeOk) def handle(self, channel): channel.invoke_callback(self.message_count)
22.916667
47
0.76
5a732fa8d07987386dae047037bf505dfbc5d2eb
35,135
py
Python
netbox/dcim/choices.py
tmarcucci/netbox
b29a5511df77b0a72d93cc7517450fd681aade8b
[ "Apache-2.0" ]
null
null
null
netbox/dcim/choices.py
tmarcucci/netbox
b29a5511df77b0a72d93cc7517450fd681aade8b
[ "Apache-2.0" ]
null
null
null
netbox/dcim/choices.py
tmarcucci/netbox
b29a5511df77b0a72d93cc7517450fd681aade8b
[ "Apache-2.0" ]
null
null
null
from utilities.choices import ChoiceSet # # Sites # class SiteStatusChoices(ChoiceSet): STATUS_PLANNED = 'planned' STATUS_STAGING = 'staging' STATUS_ACTIVE = 'active' STATUS_DECOMMISSIONING = 'decommissioning' STATUS_RETIRED = 'retired' CHOICES = ( (STATUS_PLANNED, 'Planned'), ...
28.941516
69
0.53821
8a1a992a06a197b1b40919e1cac4fccb09ff6078
2,730
py
Python
Tools/Scripts/webkitpy/layout_tests/servers/server_base_unittest.py
quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit
20e637e67a0c272870ae4d78466a68bcb77af041
[ "BSD-3-Clause" ]
null
null
null
Tools/Scripts/webkitpy/layout_tests/servers/server_base_unittest.py
quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit
20e637e67a0c272870ae4d78466a68bcb77af041
[ "BSD-3-Clause" ]
null
null
null
Tools/Scripts/webkitpy/layout_tests/servers/server_base_unittest.py
quanganh2627/bytm-x64-L-w05-2015_external_chromium_org_third_party_WebKit
20e637e67a0c272870ae4d78466a68bcb77af041
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
46.271186
77
0.752381
641a72c8e3d745b0d54dc2e7f4f2d45e84edcc5d
2,588
py
Python
Alignment/OfflineValidation/test/testCompare_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Alignment/OfflineValidation/test/testCompare_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Alignment/OfflineValidation/test/testCompare_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") #process.GlobalTag.globaltag = "FT_R_53_V6C::All" process.GlobalTag.globaltag = "GR_R_61_V6::All" # FT_R_42_V13A used in rereco of 2010 cosmics process.load("Geomet...
34.506667
115
0.760046
2ec1b08f1138eeb26969bfcd8167472467e678a6
225
py
Python
BootCRUDApp/forms.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
BootCRUDApp/forms.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
BootCRUDApp/forms.py
cs-fullstack-2019-spring/django-bootstrapcrud-cw-gkg901
c9543d77cbd2d28248fbf1f0577c0075330db8d7
[ "Apache-2.0" ]
null
null
null
from .models import sellModel from django import forms class sellForm(forms.ModelForm): class Meta: model = sellModel fields = '__all__' labels = { 'picture': "Image Url", }
17.307692
35
0.577778
3ae75117f8f3fdbb7d06eeabf7aebcec8b802b22
506
py
Python
data/scripts/templates/object/building/player/construction/shared_construction_player_house_naboo_small_style_02.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/building/player/construction/shared_construction_player_house_naboo_small_style_02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/building/player/construction/shared_construction_player_house_naboo_small_style_02.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/player/construction/shared_construction_player_house_naboo_small_sty...
29.764706
114
0.756917
fdda707bb42ca802022c070bf08c12930c5b9c16
2,507
py
Python
STRUCT2xtl.py
rpt26/STRUCT2xtl
dbc4a17e9d7b707e2889f8e74cadb2f6354e9f5b
[ "MIT" ]
null
null
null
STRUCT2xtl.py
rpt26/STRUCT2xtl
dbc4a17e9d7b707e2889f8e74cadb2f6354e9f5b
[ "MIT" ]
null
null
null
STRUCT2xtl.py
rpt26/STRUCT2xtl
dbc4a17e9d7b707e2889f8e74cadb2f6354e9f5b
[ "MIT" ]
null
null
null
import numpy as np from mendeleev import element import glob filename = 'Ti3SiC2.STRUCT_OUT' def struct2xtl(filename): system = filename.split(sep='.')[0] latt_vectors = np.empty((3,3)) with open(filename) as text_file: for i in range(3): latt_vect = text_file.readline().split() ...
33.878378
72
0.585959
438d4367cc74314d55bda03de165a4a53c80e2f2
9,422
py
Python
tensorflow_probability/python/vi/mutual_information_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2020-02-21T06:30:00.000Z
2021-08-08T19:29:15.000Z
tensorflow_probability/python/vi/mutual_information_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
2
2021-08-25T16:14:51.000Z
2022-02-10T04:47:11.000Z
tensorflow_probability/python/vi/mutual_information_test.py
brianwa84/probability
6f8e78d859ac41170be5147c8c7bde54cc5aa83e
[ "Apache-2.0" ]
1
2020-06-04T23:26:31.000Z
2020-06-04T23:26:31.000Z
# Copyright 2018 The TensorFlow Probability 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 o...
41.875556
80
0.687858
fb4b387aa7da4f499cb02552fc93f881a38c6b15
7,577
py
Python
rcc_dp/frequency_estimation/experiment_coding_cost.py
lamylio/federated
3f79e71344016ae5e5ec550557af25e5c169a934
[ "Apache-2.0" ]
1
2022-03-16T02:13:39.000Z
2022-03-16T02:13:39.000Z
rcc_dp/frequency_estimation/experiment_coding_cost.py
notminusone/federated
6a709f5598450232b918c046cfeba849f479d5cb
[ "Apache-2.0" ]
null
null
null
rcc_dp/frequency_estimation/experiment_coding_cost.py
notminusone/federated
6a709f5598450232b918c046cfeba849f479d5cb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
35.24186
82
0.635212
1eb129640304214d9c010a65049d169dce4e9dd0
197
py
Python
python/src/algorithm/coding/itertools/probability.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/algorithm/coding/itertools/probability.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/algorithm/coding/itertools/probability.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
import itertools N = int(input()) S = input().split(' ') K = int(input()) S = list(S) C = list(itertools.combinations(S, K)) T = len(C) a = list(filter(lambda x: 'a' in x, C)) print(len(a)/T)
13.133333
39
0.588832
2ed452eb2c64733a4beeb7de4cf8471084453c52
5,371
py
Python
pydub/silence.py
sean-bailey/pydub
c2f3199be393ad9e65a172d4737dbc68b56c3ec9
[ "MIT" ]
null
null
null
pydub/silence.py
sean-bailey/pydub
c2f3199be393ad9e65a172d4737dbc68b56c3ec9
[ "MIT" ]
null
null
null
pydub/silence.py
sean-bailey/pydub
c2f3199be393ad9e65a172d4737dbc68b56c3ec9
[ "MIT" ]
null
null
null
import itertools from .utils import db_to_float def detect_silence(audio_segment, min_silence_len=1000, silence_thresh=-16, seek_step=1): seg_len = len(audio_segment) # you can't have a silent portion of a sound that is longer than the sound if seg_len < min_silence_len: return [] # convert...
34.429487
100
0.679389
8dbb9a08951f8b5de7db7521a2909567b3199d18
1,667
py
Python
main/rest/media_next.py
ktsakalozos/tator
f9ce28d646b4afd926c4350e5d8b6ff66d44a03b
[ "MIT" ]
null
null
null
main/rest/media_next.py
ktsakalozos/tator
f9ce28d646b4afd926c4350e5d8b6ff66d44a03b
[ "MIT" ]
null
null
null
main/rest/media_next.py
ktsakalozos/tator
f9ce28d646b4afd926c4350e5d8b6ff66d44a03b
[ "MIT" ]
null
null
null
from collections import defaultdict from ..models import Media from ..search import TatorSearch from ..schema import MediaNextSchema from ._base_views import BaseDetailView from ._media_query import get_media_es_query from ._permissions import ProjectViewOnlyPermission class MediaNextAPI(BaseDetailView): """ Ret...
34.020408
98
0.656269
afef5b43019b0d15c5ddf63c213ae1c3ab05ad4f
47,377
py
Python
chirptext/texttaglib.py
letuananh/chirptext
4b97b4bc1817b5ad7ee113381321c94ff9a15799
[ "MIT" ]
5
2017-05-01T09:54:47.000Z
2020-03-29T20:42:53.000Z
chirptext/texttaglib.py
letuananh/chirptext
4b97b4bc1817b5ad7ee113381321c94ff9a15799
[ "MIT" ]
21
2018-04-03T13:39:55.000Z
2021-05-20T13:53:52.000Z
chirptext/texttaglib.py
letuananh/chirptext
4b97b4bc1817b5ad7ee113381321c94ff9a15799
[ "MIT" ]
1
2021-05-17T07:05:00.000Z
2021-05-17T07:05:00.000Z
# -*- coding: utf-8 -*- """ Text Annotation (texttaglib - TTL) module """ # This code is a part of chirptext library: https://github.com/letuananh/chirptext # :copyright: (c) 2012 Le Tuan Anh <tuananh.ke@gmail.com> # :license: MIT, see LICENSE for more details. import csv import json import logging import os from co...
36.528142
181
0.58425
3fa9da7743b9990abf1047fd9f9e79666e5042b9
11,150
py
Python
pyboto3/shield.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/shield.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
pyboto3/shield.py
thecraftman/pyboto3
653a0db2b00b06708334431da8f169d1f7c7734f
[ "MIT" ]
null
null
null
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
27.875
188
0.5513
e1d0b80474fabe461284f6b29986f79ab61930e6
4,882
py
Python
code/training/train.py
SUPRIYO-MUKHERJEE/test_PipelineDF
6eab94fcb05afaa64cd3862374ebd549219a1e8a
[ "MIT" ]
null
null
null
code/training/train.py
SUPRIYO-MUKHERJEE/test_PipelineDF
6eab94fcb05afaa64cd3862374ebd549219a1e8a
[ "MIT" ]
null
null
null
code/training/train.py
SUPRIYO-MUKHERJEE/test_PipelineDF
6eab94fcb05afaa64cd3862374ebd549219a1e8a
[ "MIT" ]
null
null
null
""" Copyright (C) Microsoft Corporation. All rights reserved.​ ​ Microsoft Corporation (“Microsoft”) grants you a nonexclusive, perpetual, royalty-free right to use, copy, and modify the software code provided by us ("Software Code"). You may not sublicense the Software Code or any use of it (except to your affiliates...
32.986486
106
0.778984
b85be2904e778604735afaf33b25e26c4dc84f5f
1,601
py
Python
generate.py
DL-Circle/Mongolian-Script-Generator
ddc3eecae02b67612e615536d8fc2dd6829416ad
[ "MIT" ]
2
2022-01-27T02:54:41.000Z
2022-01-29T08:05:29.000Z
generate.py
DL-Circle/Mongolian-Script-Generator
ddc3eecae02b67612e615536d8fc2dd6829416ad
[ "MIT" ]
null
null
null
generate.py
DL-Circle/Mongolian-Script-Generator
ddc3eecae02b67612e615536d8fc2dd6829416ad
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- from diffusion_model.trainer import GaussianDiffusion, num_to_groups from diffusion_model.unet import create_model from torchvision import utils import argparse import torch parser = argparse.ArgumentParser() parser.add_argument('-e', '--exportfile', type=str, default='sample.png') parser.add_ar...
32.02
81
0.751405
48bb529c5d5a0817b3c6e3353e857c62a73b8a16
91
py
Python
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
run.py
ellotecnologia/galadriel
16b592818d8beb8407805e43f2f881975b245d94
[ "MIT" ]
null
null
null
from app.app import create_app from config import BaseConfig app = create_app(BaseConfig)
18.2
30
0.824176
82d52950d9183776a13ff6ec1f323533f1f1ec5e
2,402
py
Python
tests/run_tests.py
Conqu3red/PB2-Leaderboards-Bot
489285524937684af9b7b1e504fc631045838c0e
[ "MIT" ]
4
2020-09-18T18:13:12.000Z
2021-08-02T10:49:35.000Z
tests/run_tests.py
Conqu3red/PB2-Leaderboards-Bot
489285524937684af9b7b1e504fc631045838c0e
[ "MIT" ]
1
2021-10-01T12:14:56.000Z
2021-10-01T12:14:56.000Z
tests/run_tests.py
Conqu3red/PB2-Leaderboards-Bot
489285524937684af9b7b1e504fc631045838c0e
[ "MIT" ]
null
null
null
import unittest import os from pprint import pprint from functions import * class CheatedScoreTest(unittest.TestCase): def test(self): d = os.path.join("tests", "cheated_score_test") # load test data first with open(os.path.join(d, "p1.json")) as f: p1 = json.load(f) with open(os.path.join(d, "p2.json")) ...
32.90411
135
0.666944
eda3a75ade23f09acab8a00afbb4b6fef4b9047e
6,595
py
Python
util/process_data.py
zhengshoujian/yolo_3d
57cb0b0314e32161cde9033f48d63c5862db2b14
[ "MIT" ]
3
2019-10-14T23:21:08.000Z
2020-08-01T09:02:02.000Z
util/process_data.py
zhengshoujian/yolo_3d
57cb0b0314e32161cde9033f48d63c5862db2b14
[ "MIT" ]
1
2019-12-21T07:47:04.000Z
2020-08-01T14:26:49.000Z
util/process_data.py
zhengshoujian/yolo_3d
57cb0b0314e32161cde9033f48d63c5862db2b14
[ "MIT" ]
null
null
null
import os import numpy as np import cv2 import copy def parse_annotation(label_dir, cls_to_ind): all_objs = [] for label_file in os.listdir(label_dir): image_file = label_file.replace('txt', 'png') for line in open(label_dir + label_file).readlines(): line = line.strip().split(' ...
33.308081
108
0.581501
246a1e506b52359922e1be99dc54d1eb7364b23c
1,515
py
Python
var/spack/repos/builtin/packages/help/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/help/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/help/package.py
scs-lab/spack
77956aad6aa523c2a6c7256eb3c75094bf955c35
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-15T02:37:59.000Z
2020-09-21T04:34:38.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # ---------------------------------------------------------------------------- # If you submit this package back to Spack ...
32.234043
78
0.621782
4cad9d93a7b49c037605cd57eec1e4e0d3b627f5
81,344
py
Python
djstripe/migrations/0001_initial.py
HiddenClever/dj-stripe
cc64c084f2f5c92d9aca60cf81c064bfa1fcde7f
[ "MIT" ]
null
null
null
djstripe/migrations/0001_initial.py
HiddenClever/dj-stripe
cc64c084f2f5c92d9aca60cf81c064bfa1fcde7f
[ "MIT" ]
null
null
null
djstripe/migrations/0001_initial.py
HiddenClever/dj-stripe
cc64c084f2f5c92d9aca60cf81c064bfa1fcde7f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-10 22:23 import uuid import django.core.validators import django.db.models.deletion from django.conf import settings from django.db import migrations, models import djstripe.enums import djstripe.fields import djstripe.models DJSTRIPE_SUBSCRIBER_MODEL = getattr(settings, "DJS...
117.549133
568
0.701945
8bdb04418db0218afb8c8e7e448fab98e21ba0fd
3,772
py
Python
tests/keras/test_initializations.py
the-moliver/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
150
2017-01-15T15:32:23.000Z
2021-11-23T15:07:55.000Z
tests/keras/test_initializations.py
wdw110/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
40
2017-01-15T15:41:05.000Z
2020-11-16T13:15:50.000Z
tests/keras/test_initializations.py
wdw110/keras
4fa7e5d454dd4f3f33f1d756a2a8659f2e789141
[ "MIT" ]
38
2017-01-15T22:04:06.000Z
2019-11-01T22:35:35.000Z
import pytest import numpy as np from keras import initializations from keras import backend as K # 2D tensor test fixture FC_SHAPE = (100, 100) # 4D convolution in th order. This shape has the same effective shape as FC_SHAPE CONV_SHAPE = (25, 25, 2, 2) # The equivalent shape of both test fixtures SHAPE = (100, 10...
34.605505
84
0.692206
e6555fb3c7703dba771283562f37c0d6e2a391ae
1,610
py
Python
mplwidget.py
ryanjphelan/ENGG4801_RyanPhelan
473c5e834cfee8c921722c4d78292b34c76c6514
[ "MIT" ]
null
null
null
mplwidget.py
ryanjphelan/ENGG4801_RyanPhelan
473c5e834cfee8c921722c4d78292b34c76c6514
[ "MIT" ]
null
null
null
mplwidget.py
ryanjphelan/ENGG4801_RyanPhelan
473c5e834cfee8c921722c4d78292b34c76c6514
[ "MIT" ]
null
null
null
# ------------------------------------------------- ----- # -------------------- mplwidget.py -------------------- # -------------------------------------------------- ---- from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui, QtWidgets, uic from PyQt5.QtWidgets import QInputDialog, QLineEdit, QFileDialog...
35
97
0.684472
1fe3cb40139a13ef20a1915610c6e3ff0091e31b
8,168
py
Python
ScrapedIn/ScrapedIn.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
ScrapedIn/ScrapedIn.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
ScrapedIn/ScrapedIn.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
1
2019-05-29T09:54:14.000Z
2019-05-29T09:54:14.000Z
#!/usr/bin/python import sys import re import time import xlsxwriter import json import argparse import requests import subprocess import urllib import math from thready import threaded reload(sys) sys.setdefaultencoding('utf-8') """ Setup Argument Parameters """ parser = argparse.ArgumentParser(description='Discover...
55.189189
234
0.635651
5fb7e29dd525816c207e25237e85c960c85c7ce1
90
py
Python
inheritance/exercise/problem_05/beverage/hot_beverage.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
inheritance/exercise/problem_05/beverage/hot_beverage.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
inheritance/exercise/problem_05/beverage/hot_beverage.py
BoyanPeychinov/object_oriented_programming
a960721c7c17710bd7b151a9025647e953435962
[ "MIT" ]
null
null
null
from problem_05.beverage.beverage import Beverage class HotBeverage(Beverage): pass
15
49
0.8
6a29a6d79737ac95f738ef0985a0585cb9255d22
31,441
py
Python
oidc_provider/tests/cases/test_authorize_endpoint.py
SelfHacked/django-oidc-provider
421f7f58d311a7e875d9512c24f4cd5d41c29992
[ "MIT" ]
1
2020-07-23T21:37:03.000Z
2020-07-23T21:37:03.000Z
oidc_provider/tests/cases/test_authorize_endpoint.py
SelfHacked/django-oidc-provider
421f7f58d311a7e875d9512c24f4cd5d41c29992
[ "MIT" ]
null
null
null
oidc_provider/tests/cases/test_authorize_endpoint.py
SelfHacked/django-oidc-provider
421f7f58d311a7e875d9512c24f4cd5d41c29992
[ "MIT" ]
1
2021-06-03T12:01:56.000Z
2021-06-03T12:01:56.000Z
from oidc_provider.lib.errors import RedirectUriError try: from urllib.parse import urlencode, quote except ImportError: from urllib import urlencode, quote try: from urllib.parse import parse_qs, urlsplit except ImportError: from urlparse import parse_qs, urlsplit import uuid from mock import patch, m...
39.105721
99
0.63115
41522b3c9afa2534ad237a228db44f0e3a164a2b
3,769
py
Python
FrontEndTool/settings.py
ashanyue/FrontEndTool
2a2fce2da466d62ced53b6543630abe37cb23861
[ "MIT" ]
1
2020-12-16T21:22:33.000Z
2020-12-16T21:22:33.000Z
FrontEndTool/settings.py
ashanyue/FrontEndTool
2a2fce2da466d62ced53b6543630abe37cb23861
[ "MIT" ]
null
null
null
FrontEndTool/settings.py
ashanyue/FrontEndTool
2a2fce2da466d62ced53b6543630abe37cb23861
[ "MIT" ]
null
null
null
""" Django settings for FrontEndTool project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
26.173611
91
0.69143
401c5763d9eed6a14491b1a02db7f96db1cbc801
2,626
py
Python
installer.py
aws-greengrass/aws-greengrass-cloudwatch-metrics
b428cb0ca78ff1f67e346d6d4cce7994f6462860
[ "Apache-2.0" ]
1
2022-03-23T16:25:48.000Z
2022-03-23T16:25:48.000Z
installer.py
aws-greengrass/aws-greengrass-cloudwatch-metrics
b428cb0ca78ff1f67e346d6d4cce7994f6462860
[ "Apache-2.0" ]
1
2022-03-23T16:35:49.000Z
2022-03-23T20:23:32.000Z
installer.py
aws-greengrass/aws-greengrass-cloudwatch-metrics
b428cb0ca78ff1f67e346d6d4cce7994f6462860
[ "Apache-2.0" ]
null
null
null
import os import logging import subprocess import sys logger = logging.getLogger() handler = logging.StreamHandler(sys.stdout) logger.setLevel(logging.INFO) logger.addHandler(handler) proxy_url = os.environ.get("ALL_PROXY") if proxy_url is not None: # Just try to check if proxy is http or https # This does no...
41.68254
175
0.611196
6319d6359111b8f09c0dcb517799092c2d2b6cff
6,546
py
Python
frontend_assets/templatetags/frontend_assets.py
avryhof/frontend_assets
70c562524754b1f4a56266ada91a9bb7f5fdb035
[ "MIT" ]
null
null
null
frontend_assets/templatetags/frontend_assets.py
avryhof/frontend_assets
70c562524754b1f4a56266ada91a9bb7f5fdb035
[ "MIT" ]
null
null
null
frontend_assets/templatetags/frontend_assets.py
avryhof/frontend_assets
70c562524754b1f4a56266ada91a9bb7f5fdb035
[ "MIT" ]
null
null
null
""" @copyright Amos Vryhof """ import json import os from django import template from django.conf import settings from django.utils.safestring import mark_safe from .utils import join_url, render_css, render_javascript, render_javascript_code register = template.Library() static_url = getattr(settings, 'STATIC_URL...
32.567164
112
0.647877
2a870b5cb760e5741fbc0377a1f21acbfd6f234f
275
py
Python
training/training/doctype/induction_training_assembly_area_set_2/induction_training_assembly_area_set_2.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
null
null
null
training/training/doctype/induction_training_assembly_area_set_2/induction_training_assembly_area_set_2.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
null
null
null
training/training/doctype/induction_training_assembly_area_set_2/induction_training_assembly_area_set_2.py
vhrspvl/Minda-Training
6d54d44b718506d6fe460abe5796bdee9e74d0ad
[ "MIT" ]
1
2020-02-14T12:56:53.000Z
2020-02-14T12:56:53.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, Ramya and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class InductionTrainingAssemblyAreaSet2(Document): pass
25
50
0.796364
7749c8bdf73525d87751335588b7a8e31e496b8a
149
py
Python
main/admin.py
MeNsaaH/project-web-app
b46d551e856af7ed7c214dd0a25b8d8d6c02e07e
[ "BSD-2-Clause" ]
null
null
null
main/admin.py
MeNsaaH/project-web-app
b46d551e856af7ed7c214dd0a25b8d8d6c02e07e
[ "BSD-2-Clause" ]
null
null
null
main/admin.py
MeNsaaH/project-web-app
b46d551e856af7ed7c214dd0a25b8d8d6c02e07e
[ "BSD-2-Clause" ]
null
null
null
from django.contrib import admin from main.models import Record, Prediction, Notification admin.site.register([Record, Prediction, Notification])
21.285714
56
0.812081
0500b4a5118e75f1019e7d8db859b77d920aa5d9
513
py
Python
djblog/users/admin.py
NahlaBenAbdallah/djblog
dcb770af952309919c3c8f7b4b252753063d9746
[ "MIT" ]
null
null
null
djblog/users/admin.py
NahlaBenAbdallah/djblog
dcb770af952309919c3c8f7b4b252753063d9746
[ "MIT" ]
null
null
null
djblog/users/admin.py
NahlaBenAbdallah/djblog
dcb770af952309919c3c8f7b4b252753063d9746
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth import admin as auth_admin from django.contrib.auth import get_user_model from djblog.users.forms import UserChangeForm, UserCreationForm User = get_user_model() @admin.register(User) class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add_...
28.5
83
0.746589
0c6df9cb0d37ac8b13fd3faeca5ef0f44c8698b5
1,133
py
Python
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
# Execution time : 0.001408 seconds # Solution Explanation # Let v = { v1, v2, ..., vn } be values # We want to find in how many ways we can sum s with # element of v if we can get as many items of v as we need # ( We can choose as many times and element as we want ) # So, we can define the following recurrence # sol...
30.621622
93
0.595763
d3ef0c700af881736415469ca4301edc59cca6d5
1,118
py
Python
tweetpik_cli/tweetpik_cli/utils/writer.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
4
2022-02-23T11:03:32.000Z
2022-03-07T20:01:42.000Z
tweetpik_cli/tweetpik_cli/utils/writer.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
null
null
null
tweetpik_cli/tweetpik_cli/utils/writer.py
bossjones/sandbox
9ae6a01576d42ff2616f38bad0df2c6d73afe91f
[ "MIT" ]
1
2022-02-23T11:03:32.000Z
2022-02-23T11:03:32.000Z
"""Write to disk asynchronously.""" # https://github.com/hackersandslackers/asyncio-tutorial/blob/0f4c99776b61ca3eafd850c43202bc7c52349552/asyncio_tutorial/part_II_aiohttp_aiofiles/writer.py import aiofiles import logging from tweetpik_cli.dbx_logger import ( # noqa: E402 get_logger, ) LOGGER = get_logger(__name_...
39.928571
154
0.698569
64dfb20d7cc276421bcfbb4cddd10c8d49933dbf
24,404
py
Python
tests/app/views/test_marketplace.py
robot2051/dto-digitalmarketplace-buyer-frontend
cbb71123cb35ea8dc66b17ab4036d78269540b23
[ "MIT" ]
null
null
null
tests/app/views/test_marketplace.py
robot2051/dto-digitalmarketplace-buyer-frontend
cbb71123cb35ea8dc66b17ab4036d78269540b23
[ "MIT" ]
null
null
null
tests/app/views/test_marketplace.py
robot2051/dto-digitalmarketplace-buyer-frontend
cbb71123cb35ea8dc66b17ab4036d78269540b23
[ "MIT" ]
null
null
null
# coding=utf-8 from flask.helpers import url_for import mock from nose.tools import assert_equal, assert_true, assert_in from six import iteritems from six.moves.urllib.parse import urlparse, parse_qs from lxml import html from ...helpers import BaseApplicationTest from dmapiclient import APIError import pytest @pyt...
46.219697
118
0.652926
d4caa90293407d7ca5ef8fa79472a1cf2bc8b3fc
3,041
py
Python
research/bayesian_deeplab/core/uncertainty_metrics.py
omegafragger/models
6518e3e78d898398aa7c19c8cfe7133a859e60e6
[ "Apache-2.0" ]
null
null
null
research/bayesian_deeplab/core/uncertainty_metrics.py
omegafragger/models
6518e3e78d898398aa7c19c8cfe7133a859e60e6
[ "Apache-2.0" ]
null
null
null
research/bayesian_deeplab/core/uncertainty_metrics.py
omegafragger/models
6518e3e78d898398aa7c19c8cfe7133a859e60e6
[ "Apache-2.0" ]
null
null
null
r"""The file contains utility methods to compute the mean prediction as well as uncertainty metrics given the Monte Carlo samples as input. The current implementation contains methods to compute the predictive entropy and mutual information uncertainty metrics. Useful reference: Y. Gal. Uncertainty in Deep Learn...
41.657534
107
0.751398
38688a6e248bdfae8045cc2ab0d47996cc9d8d68
6,999
py
Python
pettingzoo/mpe/_mpe_utils/core.py
vstark21/PettingZoo
0ebd8fb540e195f9dd91d996f190e9a89dedcf26
[ "Apache-2.0" ]
4
2021-12-17T08:00:28.000Z
2022-02-12T12:25:24.000Z
pettingzoo/mpe/_mpe_utils/core.py
vstark21/PettingZoo
0ebd8fb540e195f9dd91d996f190e9a89dedcf26
[ "Apache-2.0" ]
null
null
null
pettingzoo/mpe/_mpe_utils/core.py
vstark21/PettingZoo
0ebd8fb540e195f9dd91d996f190e9a89dedcf26
[ "Apache-2.0" ]
1
2021-01-25T22:57:41.000Z
2021-01-25T22:57:41.000Z
import numpy as np class EntityState(object): # physical/external base state of all entites def __init__(self): # physical position self.p_pos = None # physical velocity self.p_vel = None class AgentState(EntityState): # state of agents (including communication and internal/men...
34.995
157
0.602229
4f3fe5a430e69d0dedf5cff9e22183da6d977785
3,579
py
Python
tests/test_execution_order.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
null
null
null
tests/test_execution_order.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
1
2019-10-24T16:46:50.000Z
2019-10-24T16:46:50.000Z
tests/test_execution_order.py
celery/bootsteps
f2e788edb182d54037c5f2b9fad28dc81f701f8e
[ "BSD-3-Clause" ]
1
2019-09-29T03:36:17.000Z
2019-09-29T03:36:17.000Z
import itertools import pytest from hypothesis import HealthCheck, assume, given, settings from hypothesis import strategies as st from multiprocessing_generator import ParallelGenerator from networkx import all_topological_sorts from bootsteps.blueprint import ExecutionOrder from tests.strategies import non_isomorph...
31.394737
88
0.725342
f93c2f84351d58612f03a5c6775bd77f92fdfe4a
2,361
py
Python
dependencies.py
JuninhoBoni/Sistema_de_Cadastro
d3adcbffdc0695aa202cf945cce3befa07bff677
[ "Unlicense" ]
null
null
null
dependencies.py
JuninhoBoni/Sistema_de_Cadastro
d3adcbffdc0695aa202cf945cce3befa07bff677
[ "Unlicense" ]
null
null
null
dependencies.py
JuninhoBoni/Sistema_de_Cadastro
d3adcbffdc0695aa202cf945cce3befa07bff677
[ "Unlicense" ]
null
null
null
from services.validate import ValidateTokenData, ValidateUserDB import os from datetime import datetime, timedelta from typing import Optional from fastapi import Depends, HTTPException, status from fastapi.security import OAuth2PasswordBearer from jose import JWTError, jwt from passlib.context import CryptContext S...
28.107143
90
0.722999
71ab4870f871ba4c5b457ec5abb6f8932a36c5b2
440
py
Python
tests/doTesting.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
6
2019-01-14T19:40:45.000Z
2021-06-05T12:19:39.000Z
tests/doTesting.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
3
2017-04-25T20:06:22.000Z
2021-06-09T20:46:41.000Z
tests/doTesting.py
emirkmo/snpy
2a0153c84477ba8a30310d7dbca3d5a8f24de3c6
[ "MIT" ]
8
2017-04-25T19:57:57.000Z
2021-11-12T11:54:19.000Z
import unittest import snpy import os class TestSNooPy(unittest.TestCase): def setUp(self): # First, we make sure we have the test data self.base = os.path.dirname(snpy.__file__) self.data = os.path.join(self.base, 'tests') pass def test_loadTxt(self): s = snpy.get_sn(os.path.join...
22
62
0.663636
53c0619c91fdc96062650e179177f99345237e6a
4,135
py
Python
upload_studio/step_executor.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
9
2019-03-26T14:50:00.000Z
2020-11-10T16:44:08.000Z
upload_studio/step_executor.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
22
2019-03-02T23:16:13.000Z
2022-02-27T10:36:36.000Z
upload_studio/step_executor.py
jerryrwu/harvest
6f405254fef59c84637bc976c252eef703b1cbc5
[ "Apache-2.0" ]
5
2019-04-24T00:51:30.000Z
2020-11-06T18:31:49.000Z
import os import shutil from io import BytesIO from django.db import IntegrityError, transaction from rest_framework.parsers import JSONParser from rest_framework.renderers import JSONRenderer from Harvest.path_utils import copytree_into from Harvest.utils import get_logger from monitoring.models import LogEntry from...
36.59292
94
0.650544
0230923a5b8917edd350a764b3700e69ff41f3f0
5,100
py
Python
model-optimizer/extensions/front/GeLUMerger_Erf.py
guytamir/openvino
6ad42182866cef1f2c8b19663f83638f86b1452a
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/GeLUMerger_Erf.py
guytamir/openvino
6ad42182866cef1f2c8b19663f83638f86b1452a
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/front/GeLUMerger_Erf.py
jayabs2020/openvino
67a82a040faaf66f109035acf7de6e4b7568bc08
[ "Apache-2.0" ]
null
null
null
""" Copyright (C) 2017-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
38.345865
113
0.511373
ba88283243a06eb5b5a5e3373d12e4a78d1131a3
97
py
Python
MSArticle/__init__.py
shanu2405/minemeld-msarticle
a13dc9c6a723f767d600e838906aa58b13855938
[ "Apache-2.0" ]
null
null
null
MSArticle/__init__.py
shanu2405/minemeld-msarticle
a13dc9c6a723f767d600e838906aa58b13855938
[ "Apache-2.0" ]
null
null
null
MSArticle/__init__.py
shanu2405/minemeld-msarticle
a13dc9c6a723f767d600e838906aa58b13855938
[ "Apache-2.0" ]
5
2019-01-07T19:50:11.000Z
2022-02-03T23:52:16.000Z
def prototypes(): import os return os.path.join(os.path.dirname(__file__), 'prototypes')
24.25
64
0.701031
961ab8d80bd10a4274b8f79da9bdb499177d5523
5,860
py
Python
docs/conf.py
ezadev/pdf-tables
362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f
[ "MIT" ]
1,108
2018-10-22T16:51:26.000Z
2022-03-28T22:23:06.000Z
docs/conf.py
ezadev/pdf-tables
362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f
[ "MIT" ]
130
2018-10-20T19:40:36.000Z
2022-03-17T17:42:44.000Z
docs/conf.py
ezadev/pdf-tables
362942d1c866d07ef3f3dd9aeab17ea1d5cefc7f
[ "MIT" ]
183
2018-11-09T05:39:58.000Z
2022-03-02T06:36:01.000Z
# # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or ...
31.170213
80
0.662116
1efdd8083eb3744a5a73bc2f282740ab814a4cb7
40
py
Python
tests/test_tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
18
2021-02-15T13:10:42.000Z
2022-03-17T12:57:34.000Z
tests/test_tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
81
2021-06-02T07:45:20.000Z
2022-03-29T15:21:32.000Z
tests/test_tokenizer/__init__.py
karin0018/EduNLP
172c36a2cd2c41a1f1c5833d7b1abcbc5e3bbd5f
[ "Apache-2.0" ]
29
2021-05-18T08:34:58.000Z
2022-03-12T00:19:09.000Z
# coding: utf-8 # 2021/8/1 @ tongshiwei
13.333333
23
0.65
97496b4bc4d41e37ee99142dec56282607bf660e
106
py
Python
dgmc/utils/__init__.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
194
2020-01-17T08:59:09.000Z
2022-03-29T10:16:30.000Z
dgmc/utils/__init__.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
17
2020-01-31T10:58:06.000Z
2021-10-05T14:48:49.000Z
dgmc/utils/__init__.py
rlckd159/deep-graph-matching-consensus
1656cdae27c705a0aa6d2912a24e566b8b86e1b0
[ "MIT" ]
38
2020-01-19T01:23:24.000Z
2022-03-23T21:56:24.000Z
from .data import PairDataset, ValidPairDataset __all__ = [ 'PairDataset', 'ValidPairDataset', ]
15.142857
47
0.707547
c6ecbe8ba90514e82e1a99f4c1404ea7f67fc5b2
1,676
py
Python
config/wsgi.py
paradigmadigital/Cookiecutter
7ea675cd9e92e04b0541cf29ed9659b2b7e64ae4
[ "MIT" ]
null
null
null
config/wsgi.py
paradigmadigital/Cookiecutter
7ea675cd9e92e04b0541cf29ed9659b2b7e64ae4
[ "MIT" ]
null
null
null
config/wsgi.py
paradigmadigital/Cookiecutter
7ea675cd9e92e04b0541cf29ed9659b2b7e64ae4
[ "MIT" ]
null
null
null
""" WSGI config for shop 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_APPLICATION`` set...
40.878049
79
0.795346
437f267861e25c18217e69b720619b572f83e88f
428
py
Python
000562HeadFirstPy/000562_02_01_p097_Lists_04_Vowels02_20200225.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000562HeadFirstPy/000562_02_01_p097_Lists_04_Vowels02_20200225.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
000562HeadFirstPy/000562_02_01_p097_Lists_04_Vowels02_20200225.py
SafonovMikhail/python_000577
739f764e80f1ca354386f00b8e9db1df8c96531d
[ "Apache-2.0" ]
null
null
null
vowels = ['a', 'e', 'i', 'o', 'u'] word = 'Milliways' found = [] # объявляется пустой массив, в который будут складываться результаты поиска for letter in word: # в каком слове ищем, перебираем каждый элемент [letter] списка [vowels] if letter in vowels: if letter not in found: found.append(lett...
38.909091
92
0.684579
608ad256dc38a6df85c02ca3b7937e181f4cd62a
8,522
py
Python
django/conf/__init__.py
samupl/django
85ada61ac492ec6031db813463f4ea6820fee20b
[ "PSF-2.0", "BSD-3-Clause" ]
19
2015-07-07T02:08:59.000Z
2021-11-08T11:05:40.000Z
django/conf/__init__.py
chenlw0106/django
36300ef336e3f130a0dadc1143163ff3d23dc843
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-01-31T11:30:21.000Z
2020-01-31T11:30:21.000Z
django/conf/__init__.py
chenlw0106/django
36300ef336e3f130a0dadc1143163ff3d23dc843
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-11-21T05:45:42.000Z
2020-11-21T05:45:42.000Z
""" Settings and configuration for Django. Read values from the module specified by the DJANGO_SETTINGS_MODULE environment variable, and then from django.conf.global_settings; see the global_settings.py for a list of all possible variables. """ import importlib import os import time import traceback import warnings f...
36.26383
102
0.646327
04cb4de91d930121e44a15f65c09a7881eacc75e
1,508
py
Python
UVa 11107 life forms/sample/main1.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 11107 life forms/sample/main1.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 11107 life forms/sample/main1.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
import karkkainen_sanders as tks import sys sys.stdin = open('input.txt') while True: N = int(input()) if N == 0: break sStr = [] for i in range(N): line = raw_input().strip() for c in line: sStr.append(ord(c) + 10000) # sStr.append(c) sStr.append...
25.559322
58
0.494032
e8614248b52b755d787c001d906261d28a9063f1
14,114
py
Python
examples/contrib/cifar10/main.py
Devanshu24/ignite
2f0ba3e65cfa36b43bc87b315733fd3f3585e430
[ "BSD-3-Clause" ]
1
2021-08-30T14:29:10.000Z
2021-08-30T14:29:10.000Z
examples/contrib/cifar10/main.py
Devanshu24/ignite
2f0ba3e65cfa36b43bc87b315733fd3f3585e430
[ "BSD-3-Clause" ]
null
null
null
examples/contrib/cifar10/main.py
Devanshu24/ignite
2f0ba3e65cfa36b43bc87b315733fd3f3585e430
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime from pathlib import Path import fire import torch import torch.nn as nn import torch.optim as optim import utils from torch.cuda.amp import GradScaler, autocast import ignite import ignite.distributed as idist from ignite.contrib.engines import common from ignite.contrib.handlers import ...
36.005102
120
0.662463
c00e1e89ec6018068d5444b21ef5ca3a6d81c355
8,674
py
Python
forms.py
sheffali/Django-project
ad3132a5c67aed5492766288e50a6789c885f13b
[ "MIT" ]
null
null
null
forms.py
sheffali/Django-project
ad3132a5c67aed5492766288e50a6789c885f13b
[ "MIT" ]
null
null
null
forms.py
sheffali/Django-project
ad3132a5c67aed5492766288e50a6789c885f13b
[ "MIT" ]
null
null
null
from django import forms from test1.models import OTest from django.core import validators from test1.models import Regist from test1.models import Test_r ans= [ ('2', 'YES'), ('1', 'Frequently'), ('idk', 'NO'), ] ans2= [ ('M', 'Male'), ('F', 'Female'), ('O', 'Others'), ...
54.898734
278
0.707517
0f2d6b81d46846cb2936f993ded4536c4f86a5f6
919
py
Python
setup.py
perfide/px-totp
28d8851cd4b5cb54a479e6b0a6a75cb209c42413
[ "BSD-2-Clause" ]
1
2021-06-26T23:18:33.000Z
2021-06-26T23:18:33.000Z
setup.py
perfide/px-totp
28d8851cd4b5cb54a479e6b0a6a75cb209c42413
[ "BSD-2-Clause" ]
null
null
null
setup.py
perfide/px-totp
28d8851cd4b5cb54a479e6b0a6a75cb209c42413
[ "BSD-2-Clause" ]
1
2021-06-26T23:18:35.000Z
2021-06-26T23:18:35.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright: # 2020 P. H. <github.com/perfide> # License: # BSD-2-Clause (BSD 2-Clause "Simplified" License) # https://spdx.org/licenses/BSD-2-Clause.html """Configuration script for setuptools to install px-totp""" import setuptools with open('README.md', 'r') as...
27.029412
60
0.658324
84c55110f0d24a84b133c03ddc65c6c52b578bc3
1,608
py
Python
exerciciosAC3.py
rodrigolins92/exercicios-diversos
c2ea729b7ea6d522d73ef228a5ab59d883ee1617
[ "Apache-2.0" ]
null
null
null
exerciciosAC3.py
rodrigolins92/exercicios-diversos
c2ea729b7ea6d522d73ef228a5ab59d883ee1617
[ "Apache-2.0" ]
null
null
null
exerciciosAC3.py
rodrigolins92/exercicios-diversos
c2ea729b7ea6d522d73ef228a5ab59d883ee1617
[ "Apache-2.0" ]
null
null
null
dicionario_teste = {111: 'Nome1' , 222: 'Nome2', 333: 'Nome3'} class Contato: def __init__(self, nome, telefone, email): self.nome = nome self.telefone = telefone self.email = email def imprime(self): return "Nome: {} , Telefone: {} , E-mail: {}".format(self....
25.125
99
0.620647
db2d45d87a8ce892954d36a0f9753b38279ee44d
7,094
py
Python
libs/hhr/utils/utils.py
pranav1812/CV_research_assignment_submission
62a2032c16a2c446645f7f5020b160e18c477eed
[ "MIT" ]
258
2020-07-02T07:08:06.000Z
2022-03-31T09:19:02.000Z
libs/hhr/utils/utils.py
pranav1812/CV_research_assignment_submission
62a2032c16a2c446645f7f5020b160e18c477eed
[ "MIT" ]
48
2020-07-24T03:30:48.000Z
2022-03-29T11:32:42.000Z
libs/hhr/utils/utils.py
pranav1812/CV_research_assignment_submission
62a2032c16a2c446645f7f5020b160e18c477eed
[ "MIT" ]
37
2020-07-03T03:47:37.000Z
2022-03-25T01:11:11.000Z
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Written by Bin Xiao (Bin.Xiao@microsoft.com) # Modified by Shichao Li (nicholas.li@connect.ust.hk) # ----------------------------------------------------------------------------...
34.604878
120
0.561178
ede2df3fe7c8bf8ecfce0823e8c37566cd20a316
1,428
py
Python
check_configusage.py
ggmirandac/Template-Informe
1fc16310ef4b6f4ba414c6c7efe4c0eb7c3e1049
[ "MIT" ]
72
2017-07-26T01:09:38.000Z
2022-03-31T10:22:24.000Z
check_configusage.py
ggmirandac/Template-Informe
1fc16310ef4b6f4ba414c6c7efe4c0eb7c3e1049
[ "MIT" ]
8
2018-04-21T18:09:36.000Z
2021-12-03T15:44:07.000Z
check_configusage.py
ggmirandac/Template-Informe
1fc16310ef4b6f4ba414c6c7efe4c0eb7c3e1049
[ "MIT" ]
41
2017-08-16T18:13:10.000Z
2022-03-20T19:48:09.000Z
# Chequea el total de configuraciones utilizados # uso (win): py -3 check_configusage.py ..\Template-Tesis # uso (mac): python3 Template-Informe/check_configusage.py Template-Poster import sys assert len(sys.argv) == 2, 'Debe pasar path' p = sys.argv[1] import os assert os.path.isdir(p), 'Argumento de función "{0}" de...
29.142857
100
0.635154
1c79f1a0985f12ff32fae237e2face95e83c3617
2,379
py
Python
imagepy/menus/Table/Statistic/statistic_plgs.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Table/Statistic/statistic_plgs.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/Table/Statistic/statistic_plgs.py
muxevola/imagepy
d6d8cbf214f47a4a545a0d283ae393a6932c4c0f
[ "BSD-4-Clause" ]
null
null
null
from imagepy.core.engine import Table import pandas as pd from imagepy import IPy class Statistic(Table): title = 'Table Statistic' note = ['snap', 'only_num', 'row_msk', 'col_msk'] para = {'axis':'Column', 'sum':True, 'mean':True,'max':False, 'min':False,'var':False,'std':False,'skew':False,'kurt':False} v...
33.507042
74
0.575452
72ba23446198258d8424d44f196e3157cae44f9c
17,386
py
Python
PixivDownloadHandler.py
TimothyCSULB/PixivUtil2
d8d99eb84b3b8eef2dbe9caa3abe852ee47c52f9
[ "BSD-2-Clause" ]
null
null
null
PixivDownloadHandler.py
TimothyCSULB/PixivUtil2
d8d99eb84b3b8eef2dbe9caa3abe852ee47c52f9
[ "BSD-2-Clause" ]
null
null
null
PixivDownloadHandler.py
TimothyCSULB/PixivUtil2
d8d99eb84b3b8eef2dbe9caa3abe852ee47c52f9
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import codecs import gc import os import sys import time import traceback import urllib import mechanize import PixivBrowserFactory import PixivConstant from PixivException import PixivException import PixivHelper import PixivConfig def download_image(caller, url, ...
46.486631
143
0.552226
8bb4808f351e53087ca54398c6df591e2eefb31e
199
py
Python
docs/materials/osg/files/wn-geoip/src/geoip2/__init__.py
eharstad/virtual-school-pilot-2020
d27b77f9e2bd51c5b602c2306329c97265c0c361
[ "CC-BY-4.0" ]
2
2020-11-26T06:07:28.000Z
2021-09-17T01:33:56.000Z
docs/materials/osg/files/wn-geoip/src/geoip2/__init__.py
eharstad/virtual-school-pilot-2020
d27b77f9e2bd51c5b602c2306329c97265c0c361
[ "CC-BY-4.0" ]
21
2020-07-09T12:53:43.000Z
2021-01-21T16:24:46.000Z
docs/materials/osg/files/wn-geoip/src/geoip2/__init__.py
eharstad/virtual-school-pilot-2020
d27b77f9e2bd51c5b602c2306329c97265c0c361
[ "CC-BY-4.0" ]
12
2020-07-02T19:02:23.000Z
2020-07-20T22:39:14.000Z
# pylint:disable=C0111 __title__ = 'geoip2' __version__ = '3.0.0' __author__ = 'Gregory Oschwald' __license__ = 'Apache License, Version 2.0' __copyright__ = 'Copyright (c) 2013-2019 Maxmind, Inc.'
24.875
55
0.733668
ca5466b91581713d678d0cb045d377cb00497b22
230
py
Python
sanic/sanic-0.1.9/sanic/log.py
Mu-L/annotated-py-projects
a5ce6a3c87d13243f745c334bab43cd77455ff3f
[ "MIT" ]
315
2019-03-07T02:10:17.000Z
2022-03-31T09:00:20.000Z
sanic-0.1.9/sanic/log.py
LeeXN/annotated-py-sanic
710364474b6a8fbc30bec9bb587d33775d9b0b70
[ "MIT" ]
1
2020-03-07T12:05:47.000Z
2021-05-28T07:34:31.000Z
sanic-0.1.9/sanic/log.py
LeeXN/annotated-py-sanic
710364474b6a8fbc30bec9bb587d33775d9b0b70
[ "MIT" ]
96
2019-03-08T06:56:36.000Z
2022-03-21T04:07:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging # # 日志选项配置: # - 日志格式 # logging.basicConfig( level=logging.INFO, format="%(asctime)s: %(levelname)s: %(message)s") # # 日志记录器: # log = logging.getLogger(__name__)
14.375
73
0.634783
00a8b641897b43f33d30afa41d1dd331cd7a404f
2,875
py
Python
storage/nox.py
butla/google-cloud-python
2f24f859a6691a7ee316706def587bd19e4e7cd9
[ "Apache-2.0" ]
null
null
null
storage/nox.py
butla/google-cloud-python
2f24f859a6691a7ee316706def587bd19e4e7cd9
[ "Apache-2.0" ]
null
null
null
storage/nox.py
butla/google-cloud-python
2f24f859a6691a7ee316706def587bd19e4e7cd9
[ "Apache-2.0" ]
1
2022-03-24T01:37:10.000Z
2022-03-24T01:37:10.000Z
# Copyright 2016 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.593407
77
0.68487
61c145e865b3bc803499cad65b46864cd2437d49
2,176
py
Python
utilities/get_top_gainers.py
csmith1210/kucoin-volatility-trading-bot
a5da02c112cf34c08ecdf67ee8dfad486dd269ef
[ "MIT" ]
null
null
null
utilities/get_top_gainers.py
csmith1210/kucoin-volatility-trading-bot
a5da02c112cf34c08ecdf67ee8dfad486dd269ef
[ "MIT" ]
null
null
null
utilities/get_top_gainers.py
csmith1210/kucoin-volatility-trading-bot
a5da02c112cf34c08ecdf67ee8dfad486dd269ef
[ "MIT" ]
null
null
null
# get the top 30 coinmarketcap gainers for the past 7d from requests import Request, Session from requests.exceptions import ConnectionError, Timeout, TooManyRedirects from kucoin.client import Market import os, json, yaml, time if os.path.exists('./signalsample.txt'): os.remove('./signalsample.txt') def load_co...
35.672131
149
0.674632
e848bd6fc993a8da80af210666bb365ea78f954e
11,536
py
Python
conans/test/functional/generators/components/pkg_config_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
1
2021-08-05T15:33:08.000Z
2021-08-05T15:33:08.000Z
conans/test/functional/generators/components/pkg_config_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
conans/test/functional/generators/components/pkg_config_test.py
ssaavedra/conan
e15dc7902fbbeaf469798a3b9948ead1ecfc8e3c
[ "MIT" ]
null
null
null
import os import textwrap import unittest import pytest from conans.client.tools import PkgConfig, environment_append from conans.model.ref import ConanFileReference from conans.test.assets.genconanfile import GenConanfile from conans.test.utils.tools import TestClient @pytest.mark.tool_compiler class PkgConfigGene...
49.51073
101
0.583564
070a8be9de0f7d82f12733aa991ed56d7d1d8061
1,872
py
Python
read_datasets.py
pulkitag/dataset_utils
c9aab6c713e2001bc8a5d14aa7fea5c86d49ed8d
[ "BSD-3-Clause" ]
null
null
null
read_datasets.py
pulkitag/dataset_utils
c9aab6c713e2001bc8a5d14aa7fea5c86d49ed8d
[ "BSD-3-Clause" ]
null
null
null
read_datasets.py
pulkitag/dataset_utils
c9aab6c713e2001bc8a5d14aa7fea5c86d49ed8d
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import struct from os import path as osp from easydict import EasyDict as edict DATASET_PATH = '/data0/pulkitag/data_sets' class DataSet(object): def get_images(self, setName='train'): pass def get_labels(self, setName='train'): pass def get_images_nd_labels(self, setName='train'): ...
30.193548
73
0.636752
c73c088d6e6f61ceab228148eb741299292d9290
1,939
py
Python
loader.py
MartorSkull/NTRDB
409bcb9b0c1fad1b3d539afec52ebf17c172c4e6
[ "MIT" ]
1
2019-03-09T21:21:32.000Z
2019-03-09T21:21:32.000Z
loader.py
MartorSkull/NTRDB
409bcb9b0c1fad1b3d539afec52ebf17c172c4e6
[ "MIT" ]
null
null
null
loader.py
MartorSkull/NTRDB
409bcb9b0c1fad1b3d539afec52ebf17c172c4e6
[ "MIT" ]
null
null
null
from os import listdir from base64 import b64encode themes = {} with open('resources/favicon.png', 'rb') as f: favicon = f.read() with open('resources/icon.png', 'rb') as f: icon = f.read() with open('html/error.html') as f: error = f.read() with open('html/index.html') as f: index = f.read() with open(...
32.316667
50
0.640536
518e958cad483ecef5f1c742d940d7c1b62f99e7
9,073
py
Python
src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
1,742
2015-01-04T07:06:13.000Z
2022-03-30T11:32:52.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
66
2015-03-19T19:17:24.000Z
2022-03-16T11:59:30.000Z
src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py
UCD4IDS/sage
43474c96d533fd396fe29fe0782d44dc7f5164f7
[ "BSL-1.0" ]
495
2015-01-10T10:23:18.000Z
2022-03-24T22:06:11.000Z
## -*- encoding: utf-8 -*- """ This file (./integration_doctest.sage) was *autogenerated* from ./integration.tex, with sagetex.sty version 2011/05/27 v2.3.1. It contains the contents of all the sageexample environments from this file. You should be able to doctest this file with: sage -t ./integration_doctest.sage It i...
30.96587
86
0.655902
e06c06b1f83481990e24d23779d730d28fb8aa21
1,633
py
Python
aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/GenerateHumanSketchStyleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/GenerateHumanSketchStyleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/GenerateHumanSketchStyleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# 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...
37.113636
93
0.768524
18b1d427bb8053ba4c9b31a781c00e614b952bb0
541
py
Python
pollapp/polls/models.py
JG-Mike/pollapp
b01b893c718326815454ff446d28684fed7e03ac
[ "MIT" ]
null
null
null
pollapp/polls/models.py
JG-Mike/pollapp
b01b893c718326815454ff446d28684fed7e03ac
[ "MIT" ]
null
null
null
pollapp/polls/models.py
JG-Mike/pollapp
b01b893c718326815454ff446d28684fed7e03ac
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text class Choice(models.Model): question = models.ForeignKe...
24.590909
68
0.678373
5f85adf6664841bfe1d4f631d29f73d9bd0e4e0b
3,355
py
Python
iterative.py
kazerthekeen/Chaos-Dynamical-Systems
1aded2e5b9af2126cbd96a8e747e72a0eb76caed
[ "MIT" ]
null
null
null
iterative.py
kazerthekeen/Chaos-Dynamical-Systems
1aded2e5b9af2126cbd96a8e747e72a0eb76caed
[ "MIT" ]
null
null
null
iterative.py
kazerthekeen/Chaos-Dynamical-Systems
1aded2e5b9af2126cbd96a8e747e72a0eb76caed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Cobweb plot gotten primarily from https://scipython.com/blog/cobweb-plots/ and modified to work with my data set. @author: kazer """ import math import numpy as np from matplotlib import rc import matplotlib.pyplot as plt # Use LaTeX throughout the figure for consis...
27.056452
89
0.556781
161661ef63e5781ee8eade216319dcbfa3939a43
6,718
py
Python
python/LA-MCTS_replaceSVM/lamcts/Node.py
winie-the-pooh/LA-MCTS-in-CPP
75cadc0b283108ac6106b2e12e42e9b4058c1c52
[ "Apache-2.0" ]
null
null
null
python/LA-MCTS_replaceSVM/lamcts/Node.py
winie-the-pooh/LA-MCTS-in-CPP
75cadc0b283108ac6106b2e12e42e9b4058c1c52
[ "Apache-2.0" ]
null
null
null
python/LA-MCTS_replaceSVM/lamcts/Node.py
winie-the-pooh/LA-MCTS-in-CPP
75cadc0b283108ac6106b2e12e42e9b4058c1c52
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from .Classifier import Classifier import json import numpy as np import math import operator class Node: obj_counter ...
32.61165
108
0.547484
992e2c76029f65312f586574807d1d25f25f04a1
823
py
Python
pygenomeworks/genomeworks/cuda/__init__.py
r-mafi/ClaraGenomicsAnalysis
a33d606af7902f27d5cf86a80099061bb1a34603
[ "Apache-2.0" ]
null
null
null
pygenomeworks/genomeworks/cuda/__init__.py
r-mafi/ClaraGenomicsAnalysis
a33d606af7902f27d5cf86a80099061bb1a34603
[ "Apache-2.0" ]
1
2020-07-17T13:57:56.000Z
2020-07-17T13:57:56.000Z
pygenomeworks/genomeworks/cuda/__init__.py
r-mafi/ClaraGenomicsAnalysis
a33d606af7902f27d5cf86a80099061bb1a34603
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and r...
37.409091
108
0.754557
e41b691a5c218165970a5fce6df309047b5455ea
9,880
py
Python
oncogemini/gemini_loh.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
8
2019-12-18T12:38:25.000Z
2021-07-14T02:11:42.000Z
oncogemini/gemini_loh.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
1
2021-05-27T21:48:55.000Z
2021-05-27T21:48:55.000Z
oncogemini/gemini_loh.py
fakedrtom/cancer_gemini
e2dd5cf056004409b58f1e2d98589f847a7e0e2f
[ "MIT" ]
1
2021-01-15T03:57:12.000Z
2021-01-15T03:57:12.000Z
#!/usr/bin/env python from __future__ import absolute_import from . import GeminiQuery from . import gemini_utils as utils import sys # LOH mutations are categorized as being heterozygous # in a normal tissue sample, but have risen homozygous # levels in the tumor samples. # Here we allow for a maximum and minimum a...
37.854406
183
0.574494
8fb3ebe4feff406e2a7ef763af3a7e2e26dde436
1,488
py
Python
kangradb/interface.py
manparvesh/kangraDB
ac1417febc3a2933d2892f2e23a576040f7427e0
[ "MIT" ]
null
null
null
kangradb/interface.py
manparvesh/kangraDB
ac1417febc3a2933d2892f2e23a576040f7427e0
[ "MIT" ]
null
null
null
kangradb/interface.py
manparvesh/kangraDB
ac1417febc3a2933d2892f2e23a576040f7427e0
[ "MIT" ]
null
null
null
# coding=utf-8 """ The main interface that will be exported for use """ from kangradb.binary_tree import BinaryTree from kangradb.physical_storage import Storage class KangraDB(object): """ KangraDB interface that will be used to do stuff """ def __init__(self, f): self._storage = Storage(f) ...
22.208955
54
0.568548
4a7e27b3369f0c9d30226ebcf03fd7a1028117b8
8,949
py
Python
repos/wavegrad/learner.py
Iamgoofball/VocoderComparisons
3dfc5cb604ccf3756321e2cdf9934aa933314145
[ "MIT" ]
6
2020-12-09T07:53:34.000Z
2021-12-10T09:59:29.000Z
repos/wavegrad/learner.py
Iamgoofball/VocoderComparisons
3dfc5cb604ccf3756321e2cdf9934aa933314145
[ "MIT" ]
1
2021-12-14T18:48:59.000Z
2021-12-14T19:48:18.000Z
repos/wavegrad/learner.py
Iamgoofball/VocoderComparisons
3dfc5cb604ccf3756321e2cdf9934aa933314145
[ "MIT" ]
1
2020-11-02T08:22:28.000Z
2020-11-02T08:22:28.000Z
# Copyright 2020 LMNT, Inc. 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 ag...
42.212264
150
0.692927
4dc8a4c2ea70bbd6b714a2d9a0436c8b1ca6707d
2,881
py
Python
tests/devices/_internal/test_candidate_device.py
rwalton-arm/mbed-tools
131605540f4829116f977695a47dc10b3ac96450
[ "Apache-2.0" ]
null
null
null
tests/devices/_internal/test_candidate_device.py
rwalton-arm/mbed-tools
131605540f4829116f977695a47dc10b3ac96450
[ "Apache-2.0" ]
null
null
null
tests/devices/_internal/test_candidate_device.py
rwalton-arm/mbed-tools
131605540f4829116f977695a47dc10b3ac96450
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2020 Arm Mbed. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import pathlib from unittest import TestCase from mbed_tools.devices._internal.candidate_device import CandidateDevice def build_candidate_data(**overrides): defaults = { "product_id": "0x1234", "vendor_i...
41.157143
103
0.722666
904a7ea4522745bb5c57ecd95ef6a0576989fe8d
4,866
py
Python
nlpaug/augmenter/sentence/lambada.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
3,121
2019-04-21T07:02:47.000Z
2022-03-31T22:17:36.000Z
nlpaug/augmenter/sentence/lambada.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
186
2019-05-31T18:18:13.000Z
2022-03-28T10:11:05.000Z
nlpaug/augmenter/sentence/lambada.py
techthiyanes/nlpaug
bb2fc63349bf949f6f6047ff447a0efb16983c0a
[ "MIT" ]
371
2019-03-17T17:59:56.000Z
2022-03-31T01:45:15.000Z
""" Augmenter that apply operation (sentence level) to textual input based on abstractive summarization. """ import os import json from nlpaug.augmenter.sentence import SentenceAugmenter import nlpaug.model.lang_models as nml from nlpaug.util import Action, Doc LAMBADA_MODELS = {} def init_lambada_model(model_d...
45.90566
131
0.708385
f811be657325d6732d36d4f2dc3042837ee3fa8c
43,524
py
Python
lib/sqlalchemy/testing/requirements.py
immerrr/sqlalchemy
995fb577a64061a9cbab62b481c65a4c4d3e5a67
[ "MIT" ]
1
2020-07-21T16:06:40.000Z
2020-07-21T16:06:40.000Z
lib/sqlalchemy/testing/requirements.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
4
2020-04-23T19:00:28.000Z
2021-09-28T18:14:58.000Z
lib/sqlalchemy/testing/requirements.py
taogeYT/sqlalchemy
e88dc004e6bcd1418cb8eb811d0aa580c2a44b8f
[ "MIT" ]
null
null
null
# testing/requirements.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php """Global database feature support policy. Provides decorators to mark tes...
28.900398
81
0.636385
72d4b6cbdb2a52554573dbc3af40824bb2010ce3
747
py
Python
Lesson4/flowers.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
2
2021-06-01T13:24:04.000Z
2021-06-01T13:27:47.000Z
Lesson4/flowers.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
Lesson4/flowers.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
number = int(input()) max1 = 0 max2 = 0 max3 = 0 kind1 = 'a' kind2 = 'b' kind3 = 'c' while number <= 3: print('Количество цветов должно быть больше трёх!') number = int(input('Введите количество цветов еще раз: ')) for k in range(number): kind = input() NumberKind = int(input()) if NumberKind > max1...
24.096774
62
0.522088
d0455ffd7e22ff5be24195344ff465f3b03bd8e1
2,271
py
Python
.history/postImages/index_20201006213946.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
2
2020-10-21T22:14:15.000Z
2020-10-21T22:14:16.000Z
.history/postImages/index_20201006213946.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
.history/postImages/index_20201006213946.py
Lambda-School-Labs/Labs27-C-Bridges-To-Prosperity-BE
9a8289d8550115362c46dea3ed8570b789c09a10
[ "MIT" ]
null
null
null
import csv import requests df = open("bridgeData3.csv",'r').readlines() fin = open('final.csv','r').readlines() finCsv = fin[1:] # url = https://b2ptc.herokuapp.com/bridges finalCsv = df[1:] obj = {} for i in finalCsv: x = i.split(',') obj[x[1]] = {'bridge_name':x[0],'proj_code':x[1],'before_img':x[2],'after_im...
31.109589
97
0.468516
0104a09e89241637e3a45794eab842599831997c
16,673
py
Python
pipenv/patched/notpip/_internal/req/req_uninstall.py
Enzime/pipenv
d4f710be4a39e09a82a5133b7b3a277ee9bfb13a
[ "MIT" ]
1
2019-09-04T15:17:41.000Z
2019-09-04T15:17:41.000Z
pipenv/patched/notpip/_internal/req/req_uninstall.py
Enzime/pipenv
d4f710be4a39e09a82a5133b7b3a277ee9bfb13a
[ "MIT" ]
3
2020-06-05T18:53:36.000Z
2021-06-10T20:47:05.000Z
pipenv/patched/notpip/_internal/req/req_uninstall.py
Enzime/pipenv
d4f710be4a39e09a82a5133b7b3a277ee9bfb13a
[ "MIT" ]
1
2018-07-17T07:39:47.000Z
2018-07-17T07:39:47.000Z
from __future__ import absolute_import import csv import functools import logging import os import sys import sysconfig from pipenv.patched.notpip._vendor import pkg_resources from pipenv.patched.notpip._internal.compat import WINDOWS, cache_from_source, uses_pycache from pipenv.patched.notpip._internal.exceptions i...
36.563596
91
0.584118
c890c1197e931ab7273f535803815b6bde1d7895
674
py
Python
trails/feeds/turris.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
1
2021-01-10T14:35:36.000Z
2021-01-10T14:35:36.000Z
trails/feeds/turris.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
29
2018-10-18T20:14:49.000Z
2019-07-08T07:45:08.000Z
trails/feeds/turris.py
Jahismighty/maltrail
9bc70430993b2140ceb4dbac4b487251a9254416
[ "MIT" ]
2
2018-11-29T22:50:57.000Z
2019-04-12T03:35:35.000Z
#!/usr/bin/env python """ Copyright (c) 2014-2018 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ from core.common import retrieve_content __url__ = "https://www.turris.cz/greylist-data/greylist-latest.csv" __check__ = ".1" __info__ = "bad reputation" __reference__ = "turris.cz" def f...
24.962963
74
0.637982
d3a035e88034369cb75f0e4f977e90c13beb13e7
3,781
py
Python
tests/bandits/test_epsilon_greedy.py
pm3310/pulpo
5bd8209c38115394efc286848ec5297e31ce7369
[ "MIT" ]
2
2020-05-11T18:21:34.000Z
2020-05-15T14:51:46.000Z
tests/bandits/test_epsilon_greedy.py
pm3310/pulpo
5bd8209c38115394efc286848ec5297e31ce7369
[ "MIT" ]
3
2020-03-26T11:08:50.000Z
2020-05-11T21:17:19.000Z
tests/bandits/test_epsilon_greedy.py
pm3310/pulpo
5bd8209c38115394efc286848ec5297e31ce7369
[ "MIT" ]
2
2020-05-12T03:34:02.000Z
2020-05-15T14:52:02.000Z
import random from unittest import TestCase from pulpo.bandits.dataclasses import BanditConfig from pulpo.bandits.dataclasses import Feedback, EpsilonGreedyArm from pulpo.bandits.epsilon_greedy import EGreedy class EGreedyTest(TestCase): def test_should_choose_an_arm(self): arm_names = ['arm1', 'arm2'] ...
37.81
98
0.617561
0febddb1043caa3aaba954b058b030bfd261a2f3
1,774
py
Python
promql2csv.py
daviddetorres/promql2csv
dad560631623b15e4484be9772b96747806a66f9
[ "Apache-2.0" ]
null
null
null
promql2csv.py
daviddetorres/promql2csv
dad560631623b15e4484be9772b96747806a66f9
[ "Apache-2.0" ]
null
null
null
promql2csv.py
daviddetorres/promql2csv
dad560631623b15e4484be9772b96747806a66f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import configargparse import logging import time from extractor import extractor VERSION = '0.0.1' # Setup logger logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.DEBUG) logger = logging.getLogger(__name__) # Setup command line arguments pa...
22.455696
67
0.534949