hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
df1ad8100dcd1599aeac7293650084668701e832
2,765
py
Python
tests/test_metadata.py
knownboyofno/PySIPmath
22521d0acaa74250fb7684b8eedbb3e6d044b4af
[ "MIT" ]
2
2021-11-11T03:47:58.000Z
2021-11-19T07:46:24.000Z
tests/test_metadata.py
knownboyofno/PySIPmath
22521d0acaa74250fb7684b8eedbb3e6d044b4af
[ "MIT" ]
null
null
null
tests/test_metadata.py
knownboyofno/PySIPmath
22521d0acaa74250fb7684b8eedbb3e6d044b4af
[ "MIT" ]
3
2021-11-11T18:14:04.000Z
2021-11-22T07:53:30.000Z
import unittest from unittest.mock import ANY, patch from tests.fixtures.fit import fit_fixture from pandas import DataFrame from .context import PySIP class MetadataTestSuite(unittest.TestCase): """Metadata test cases.""" @patch("metalog.metalog.fit") @patch("json.dump") @patch("builtins.open") ...
35.909091
89
0.600362
2,561
0.926221
0
0
2,475
0.895118
0
0
423
0.152984
df1b51fe6d72128fafb48b80c98baaeec85bd5b2
2,643
py
Python
Tools/BlenderPlugins/scripts/addons/zmey_properties/ui.py
nikoladimitroff/Zmey
4bcea8d66cd3452c532fa68286aa03ad8528a3b4
[ "MIT" ]
22
2017-05-06T18:08:48.000Z
2022-01-12T02:10:22.000Z
Tools/BlenderPlugins/scripts/addons/zmey_properties/ui.py
nikoladimitroff/Zmey
4bcea8d66cd3452c532fa68286aa03ad8528a3b4
[ "MIT" ]
21
2017-12-11T18:42:49.000Z
2018-08-27T23:13:47.000Z
Tools/BlenderPlugins/scripts/addons/zmey_properties/ui.py
nikoladimitroff/Zmey
4bcea8d66cd3452c532fa68286aa03ad8528a3b4
[ "MIT" ]
null
null
null
import bpy # Lists class ZmeySceneTypeList(bpy.types.UIList): def draw_item(self, context, layout, data, item, icon, active_data, active_propname): if item: layout.prop(item, "name", text="", emboss=False) # Panels class ZmeyWorldPropertyPanel(bpy.types.Panel): """Zmey Scene Type...
33.884615
98
0.631858
2,234
0.845252
0
0
71
0.026863
0
0
405
0.153235
df1c101105dbb3aa73b19593c5a7ea69af113861
3,710
py
Python
models/base_model.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
32
2021-11-08T15:45:30.000Z
2022-03-30T09:08:57.000Z
models/base_model.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
3
2021-11-16T02:38:51.000Z
2022-02-21T13:29:58.000Z
models/base_model.py
weigq/UDA-1
4f97980980cafd0a2d02a77211ac7dbaf3e331f6
[ "MIT" ]
4
2021-11-09T02:53:18.000Z
2021-12-21T22:11:35.000Z
# -------------------------------------------------------- # Copyright (c) 2021 Microsoft # Licensed under The MIT License # -------------------------------------------------------- import torch.nn as nn from utils.torch_funcs import init_weights_fc, init_weights_fc0, init_weights_fc1, init_weights_fc2 __all__ = ['B...
33.125
99
0.523181
3,376
0.909973
0
0
62
0.016712
0
0
561
0.151213
df1dccd9ff34ca962f5ad0f1937db2627fe3e1bb
955
py
Python
amaascore/parties/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
null
null
null
amaascore/parties/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-06-06T09:42:41.000Z
2018-01-16T10:16:16.000Z
amaascore/parties/fund.py
amaas-fintech/amaas-core-sdk-python
bd77884de6e5ab05d864638addeb4bb338a51183
[ "Apache-2.0" ]
8
2017-01-18T04:14:01.000Z
2017-12-01T08:03:10.000Z
from __future__ import absolute_import, division, print_function, unicode_literals from amaascore.parties.company import Company class Fund(Company): def __init__(self, asset_manager_id, party_id, base_currency, description='', party_status='Active', display_name='', legal_name='', url='', ...
53.055556
117
0.60733
822
0.860733
0
0
0
0
0
0
16
0.016754
df1f7424ab7fa292579e8d0035b5a3d3e34ed234
1,127
py
Python
django_flex_user/tests/serializers/test_phone_token_serializer.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
1
2021-09-13T20:26:02.000Z
2021-09-13T20:26:02.000Z
django_flex_user/tests/serializers/test_phone_token_serializer.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
null
null
null
django_flex_user/tests/serializers/test_phone_token_serializer.py
ebenh/django-flex-user
efffb21e4ce33d2ea8665756334e2a391f4b5a72
[ "MIT" ]
null
null
null
from django.test import TestCase class TestPhoneTokenSerializer(TestCase): """ This class is designed to test django_flex_user.serializers.PhoneTokenSerializer """ def setUp(self): from django_flex_user.models.user import FlexUser self.user = FlexUser.objects.create_user(phone='+1202...
33.147059
102
0.652174
1,091
0.968057
0
0
0
0
0
0
371
0.329193
df2229a266aa3449cafdcf8c1cb50cc3ad9193bc
367
py
Python
validation_messages.py
PaulinaKomorek/Order-Form
7c56852e4367d6dd80fd9b500bf4e4ae4d4e06f6
[ "MIT" ]
1
2020-04-13T12:25:53.000Z
2020-04-13T12:25:53.000Z
validation_messages.py
PaulinaKomorek/Order-Form
7c56852e4367d6dd80fd9b500bf4e4ae4d4e06f6
[ "MIT" ]
null
null
null
validation_messages.py
PaulinaKomorek/Order-Form
7c56852e4367d6dd80fd9b500bf4e4ae4d4e06f6
[ "MIT" ]
null
null
null
validation_messages = { "en": { "e-mail": "Invalid e-mail address.", "telephone": "Invalid telephone number.", "code": "Invalid postal code." }, "pl": { "e-mail": "Niewłaściwy adres e-mail.", "telephone": "Niewłaściwy format numeru telefonu.", "code": ...
22.9375
59
0.544959
0
0
0
0
0
0
0
0
239
0.640751
df227861def510f0f5f06f374d8f1e4544483d6a
44
py
Python
redistrib/exceptions.py
sunyi00/redis-trib.py
6b25af25d691b7578cc4c683c044905401b3e870
[ "MIT" ]
null
null
null
redistrib/exceptions.py
sunyi00/redis-trib.py
6b25af25d691b7578cc4c683c044905401b3e870
[ "MIT" ]
null
null
null
redistrib/exceptions.py
sunyi00/redis-trib.py
6b25af25d691b7578cc4c683c044905401b3e870
[ "MIT" ]
1
2018-09-27T09:52:53.000Z
2018-09-27T09:52:53.000Z
class RedisStatusError(Exception): pass
14.666667
34
0.772727
43
0.977273
0
0
0
0
0
0
0
0
df22cf9c0f6508e6a9593a1891b29ac8e1818c64
637
py
Python
python/1021_remove_outermost_parentheses.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
17
2016-03-01T22:40:53.000Z
2021-04-19T02:15:03.000Z
python/1021_remove_outermost_parentheses.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
null
null
null
python/1021_remove_outermost_parentheses.py
liaison/LeetCode
8b10a1f6bbeb3ebfda99248994f7c325140ee2fd
[ "MIT" ]
3
2019-03-07T03:48:43.000Z
2020-04-05T01:11:36.000Z
class Solution: def removeOuterParentheses(self, s: str) -> str: stack = [] start = 0 primitives = [] # retrieve all the primitives for index, letter in enumerate(s): if letter == "(": stack.append(letter) else: stack.p...
26.541667
55
0.486656
635
0.99686
0
0
0
0
0
0
67
0.105181
df234c85802f9c15bc9466661d8b752a7a594bd0
8,009
py
Python
edkrepo/commands/checkout_pin_command.py
nate-desimone/edk2-edkrepo
a3f30d275afce0467a38b3d2e3194a710f8c0e22
[ "BSD-2-Clause-Patent" ]
4
2021-04-18T22:04:59.000Z
2022-03-31T03:59:17.000Z
edkrepo/commands/checkout_pin_command.py
nate-desimone/edk2-edkrepo
a3f30d275afce0467a38b3d2e3194a710f8c0e22
[ "BSD-2-Clause-Patent" ]
19
2021-04-06T21:07:29.000Z
2022-03-25T17:17:25.000Z
edkrepo/commands/checkout_pin_command.py
nate-desimone/edk2-edkrepo
a3f30d275afce0467a38b3d2e3194a710f8c0e22
[ "BSD-2-Clause-Patent" ]
9
2021-03-16T23:13:09.000Z
2021-11-20T09:19:38.000Z
#!/usr/bin/env python3 # ## @file # checkout_pin_command.py # # Copyright (c) 2017 - 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # import os from git import Repo from edkrepo.commands.edkrepo_command import EdkrepoCommand, OverrideArgument, SourceMani...
55.618056
164
0.710326
6,492
0.810588
0
0
0
0
0
0
530
0.066176
df24d31f00fafdf9649aee8146b7fac334d4cd87
634
py
Python
multiple_futures_prediction/cmd/train_carla_cmd.py
cpacker/multiple-futures-prediction-carla
dfc97ab6d55976f86509883c7541b0920266472e
[ "AML" ]
6
2021-07-29T03:36:50.000Z
2022-03-07T21:13:25.000Z
multiple_futures_prediction/cmd/train_carla_cmd.py
cpacker/multiple-futures-prediction-carla
dfc97ab6d55976f86509883c7541b0920266472e
[ "AML" ]
1
2021-11-04T14:31:58.000Z
2021-11-25T07:42:54.000Z
multiple_futures_prediction/cmd/train_carla_cmd.py
cpacker/multiple-futures-prediction-carla
dfc97ab6d55976f86509883c7541b0920266472e
[ "AML" ]
1
2021-08-11T08:36:54.000Z
2021-08-11T08:36:54.000Z
from typing import List, Set, Dict, Tuple, Optional, Union, Any from multiple_futures_prediction.train_carla import train, Params import gin import argparse def parse_args() -> Any: parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('--config', type=str, de...
31.7
119
0.774448
0
0
0
0
0
0
0
0
141
0.222397
df25072fc6ba2811f192af90776038fc94d1abb2
2,215
py
Python
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
16
2017-10-14T17:13:48.000Z
2022-01-11T22:19:45.000Z
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
11
2015-05-11T08:02:42.000Z
2020-05-21T16:13:45.000Z
conformalmapping/mobiusbase.py
TorbenFricke/cmtoolkit
f1bf1ec191fd9b20e6edcd3385c8b9fee1d638ca
[ "BSD-3-Clause" ]
3
2019-12-31T23:07:29.000Z
2021-03-08T02:05:38.000Z
# This file is a part of the CMToolbox. # It is licensed under the BSD 3-clause license. # (See LICENSE.) # # Copyright Toby Driscoll, 2014. # (Re)written by Everett Kropf, 2014, # adapted from code by Toby Driscoll, originally 20??. # Python Port Copyright Andrew Walker, 2015 import numpy as np from .conformalmap impo...
27.6875
76
0.528217
1,331
0.600903
0
0
54
0.024379
0
0
535
0.241535
df250a4194a7dab451b6efac9277905f30e795d0
9,263
py
Python
DynamicETLDashboard/DynamicETL_Dashboard/Database/postgres.py
BRutan/DynamicETLDashboard
8a40e6f51e53f084d6103ba41cd675916505652f
[ "MIT" ]
null
null
null
DynamicETLDashboard/DynamicETL_Dashboard/Database/postgres.py
BRutan/DynamicETLDashboard
8a40e6f51e53f084d6103ba41cd675916505652f
[ "MIT" ]
null
null
null
DynamicETLDashboard/DynamicETL_Dashboard/Database/postgres.py
BRutan/DynamicETLDashboard
8a40e6f51e53f084d6103ba41cd675916505652f
[ "MIT" ]
null
null
null
##################################### # Database/postgres.py ##################################### # Description: # * Objects related to interacting # with SQL database that uses PostGres # as SQL flavor language. from Database.base import DBInterface, TableObject from Database.columnattributes import ColumnAttributes...
37.052
142
0.542049
8,448
0.912016
0
0
4,658
0.502861
0
0
3,529
0.380978
df28edb21e9e2817d36879bcf07649fe6ff3f212
1,492
py
Python
CNN/Pooling/pooling_fig.py
Anfany/Machine-Learning-for-Beginner
1022ee7ce4d387da5e5fd8c3b66ac9b1bfc1974c
[ "MIT" ]
397
2018-05-28T02:07:32.000Z
2022-03-30T09:53:37.000Z
CNN/Pooling/pooling_fig.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
4
2019-01-14T16:41:02.000Z
2021-03-11T13:23:06.000Z
CNN/Pooling/pooling_fig.py
976634681/Machine-Learning-for-Beginner-by-Python3
d9effcbb1b390dc608a0f4c0a28f0ad03892047a
[ "MIT" ]
235
2018-06-28T05:31:40.000Z
2022-03-11T03:20:07.000Z
# -*- coding:utf-8 -*- # &Author AnFany # 不同池化得到的图片对比 import pooling as p from skimage import io from PIL import Image import numpy as np def generate_fig(fig, file, func): """ # 首先读取图片的矩阵,然各三个通道各自池化,将得到的结果合成为图片矩阵,最后根据矩阵显示图片 :param fig: 需要处理的图片的路径 :param file: 最周保存图片的路径 :retur...
19.893333
71
0.571716
0
0
0
0
0
0
0
0
861
0.456038
df2a420e9ab168f15ae231c9d5d4b6cf8fdecd25
2,406
py
Python
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
tpot/built_in_operators.py
ensemblr/hacking-sklearn
9168bd5fcfc8a50cffa3dfdbb5050addcc8e173b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright 2015-Present Randal S. Olson This file is part of the TPOT library. TPOT is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your...
31.657895
176
0.66251
1,583
0.657938
0
0
72
0.029925
0
0
1,426
0.592685
df2cb546e59d1e0f0b0e034c6d5c8d0552eb31b0
148
py
Python
FATS/__init__.py
cridonoso/FATS-slim
a79429d87bb74f430bcbf72a5b3cf1bfb12908c1
[ "MIT" ]
68
2015-07-08T06:39:53.000Z
2022-03-31T16:34:16.000Z
FATS/__init__.py
cridonoso/FATS-slim
a79429d87bb74f430bcbf72a5b3cf1bfb12908c1
[ "MIT" ]
7
2017-04-01T04:03:57.000Z
2020-02-27T02:50:21.000Z
FATS/__init__.py
cridonoso/FATS-slim
a79429d87bb74f430bcbf72a5b3cf1bfb12908c1
[ "MIT" ]
45
2015-08-06T20:11:05.000Z
2022-03-31T16:34:26.000Z
from .import_lightcurve import ReadLC_MACHO from .Feature import FeatureSpace from .alignLC import Align_LC from .PreprocessLC import Preprocess_LC
29.6
43
0.864865
0
0
0
0
0
0
0
0
0
0
df2cdfceefa5a4090e5ad33a71db056311e13ea0
25,217
py
Python
mods/Protection.py
VinMannie/BombSquad-Community-Mod-Manager
d80d8bfe5c9bae422990df0df78e6098f379b27d
[ "Unlicense" ]
3
2018-12-31T01:34:57.000Z
2020-08-12T18:50:40.000Z
mods/Protection.py
EternalARK/BombSquad-Community-Mod-Manager
aa9318217a5bd86d2b897208536a8caf69fda939
[ "Unlicense" ]
null
null
null
mods/Protection.py
EternalARK/BombSquad-Community-Mod-Manager
aa9318217a5bd86d2b897208536a8caf69fda939
[ "Unlicense" ]
2
2021-02-03T06:43:01.000Z
2021-05-09T09:23:34.000Z
import bs import random import bsUtils def bsGetAPIVersion(): # see bombsquadgame.com/apichanges return 4 def bsGetGames(): return [ProtectionGame] class SpazClone(bs.SpazBot): def __init__(self, player): self.character = player.character self.color = player.color self.hi...
46.016423
140
0.511679
25,025
0.992386
0
0
1,437
0.056985
0
0
4,607
0.182694
df2df1da0ca98a017a823acaaefd712f2d812056
2,612
py
Python
scripts/write_NAICS_07_to_17_Crosswalk.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
scripts/write_NAICS_07_to_17_Crosswalk.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
scripts/write_NAICS_07_to_17_Crosswalk.py
cchiq/flowsa
fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0
[ "CC0-1.0" ]
null
null
null
# write_NAICS_from_Census.py (scripts) # !/usr/bin/env python3 # coding=utf-8 """ Uses a csv file manually loaded, originally from USEEIOR (4/18/2020), to form base NAICS crosswalk from 2007-2017 Loops through the source crosswalks to find any NAICS not in offical Census NAICS Code list. Adds the additional NAICS to ...
37.855072
118
0.761103
0
0
0
0
0
0
0
0
1,533
0.586907
df2e85e1bf6d4c5bdffa79943cdcf80beaa21932
4,662
py
Python
lwtestsuite/bvttest/xlwt-0.7.2/tests/RKbug.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
372
2016-10-28T10:50:35.000Z
2022-03-18T19:54:37.000Z
lwtestsuite/bvttest/xlwt-0.7.2/tests/RKbug.py
kbore/pbis-open
a05eb9309269b6402b4d6659bc45961986ea5eab
[ "Apache-2.0" ]
317
2016-11-02T17:41:48.000Z
2021-11-08T20:28:19.000Z
contrib/xlwt/tests/RKbug.py
RyanBalfanz/Django-Bingo
0ba9f893c78fae1a5fb5eb45e43b36783d930e25
[ "BSD-3-Clause" ]
107
2016-11-03T19:25:16.000Z
2022-03-20T21:15:22.000Z
from xlwt import * import sys from struct import pack, unpack def cellname(rowx, colx): # quick kludge, works up to 26 cols :-) return chr(ord('A') + colx) + str(rowx + 1) def RK_pack_check(num, anint, case=None): if not(-0x7fffffff - 1 <= anint <= 0x7fffffff): print "RK_pack_check: not ...
31.5
90
0.51287
0
0
0
0
0
0
0
0
1,252
0.268554
df30c65c005e4996721841cf4d4cd23814b2376e
7,843
py
Python
tools/include_tracer.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-04T02:36:53.000Z
2016-06-25T11:22:17.000Z
tools/include_tracer.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/include_tracer.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2015-02-09T08:49:30.000Z
2017-08-26T02:03:34.000Z
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # based on an almost identical script by: jyrki@google.com (Jyrki Alakuijala) """Prints out include dependencies in chrome. Since ...
38.635468
77
0.740405
0
0
0
0
0
0
0
0
5,982
0.762718
df3131e54cecde3ec2464b9bff8f0efb877b6437
50
py
Python
gaft/operators/selection/__init__.py
lizhaofu/gaft
883ce7d5b7b48e9cb3d1d4819570c42b69f3f679
[ "MIT" ]
null
null
null
gaft/operators/selection/__init__.py
lizhaofu/gaft
883ce7d5b7b48e9cb3d1d4819570c42b69f3f679
[ "MIT" ]
null
null
null
gaft/operators/selection/__init__.py
lizhaofu/gaft
883ce7d5b7b48e9cb3d1d4819570c42b69f3f679
[ "MIT" ]
null
null
null
''' Package for built-in selection operators '''
16.666667
48
0.7
0
0
0
0
0
0
0
0
48
0.96
df3143b0672c260639f676129c3bf8201d95041c
10,098
py
Python
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
2
2018-01-19T19:26:24.000Z
2018-08-14T12:55:30.000Z
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
null
null
null
posttologmet.py
ibm-cloud-architecture/MonitorOpenWhiskActivations
a8fae2304a4bb51a6ed7c4eec4b1817662873dc2
[ "Apache-2.0" ]
2
2018-01-19T19:25:47.000Z
2019-10-23T16:35:04.000Z
import sys, requests, json def main(dict): print 'Received data' print dict missing_values = [] required_values = ['logmet_host', 'logmet_port', 'space_id', 'logmet_token'] for key in required_values: if not key in dict: missing_values.append(key) if len(missing_values) > 0: return {'re...
29.526316
111
0.553674
8,603
0.851951
0
0
0
0
0
0
2,713
0.268667
df317360fd387a84ff0e026f66ae71e5d980bda4
495
py
Python
djexperience/crm/tests/test_model_phoneemployee.py
rg3915/django-experience-2016
76adaa55c537f3b9fa48b601d4a97fd6e04371c0
[ "MIT" ]
1
2022-01-01T22:19:49.000Z
2022-01-01T22:19:49.000Z
djexperience/crm/tests/test_model_phoneemployee.py
rg3915/django-experience-2016
76adaa55c537f3b9fa48b601d4a97fd6e04371c0
[ "MIT" ]
null
null
null
djexperience/crm/tests/test_model_phoneemployee.py
rg3915/django-experience-2016
76adaa55c537f3b9fa48b601d4a97fd6e04371c0
[ "MIT" ]
null
null
null
from django.test import TestCase from djexperience.crm.models import PhoneEmployee, Employee from .data import EMPLOYEE_DICT class PhoneEmployeeTest(TestCase): def setUp(self): self.employee = Employee.objects.create(**EMPLOYEE_DICT) phone = PhoneEmployee( phone='11 98765-4321', ...
26.052632
64
0.664646
367
0.741414
0
0
0
0
0
0
20
0.040404
df32ca1463cd1cb6d8d2a34bb9db9fda93314381
1,008
py
Python
esk/secrets/main.py
esk8s/esk
0e559fbec7e70be140afac0c8961700f8145e704
[ "Apache-2.0" ]
1
2021-04-08T13:07:18.000Z
2021-04-08T13:07:18.000Z
esk/secrets/main.py
esk8s/esk
0e559fbec7e70be140afac0c8961700f8145e704
[ "Apache-2.0" ]
null
null
null
esk/secrets/main.py
esk8s/esk
0e559fbec7e70be140afac0c8961700f8145e704
[ "Apache-2.0" ]
null
null
null
import base64 import json import random import string from os import remove from hashlib import sha256 from cryptography.hazmat.primitives.ciphers.aead import AESGCM def get_nonce(): chars = string.ascii_letters + string.digits result_str = "".join(random.choice(chars) for _ in range(12)) return result_str ...
22.909091
88
0.696429
687
0.681548
0
0
0
0
0
0
44
0.043651
df3432d6e2a094c4246fd08ba4fe7e3f3b600158
369
py
Python
Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py
ArielMAJ/100-days-of-code
995f5ca092c2cf345a500cbd70fdb25f4361f183
[ "MIT" ]
null
null
null
Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py
ArielMAJ/100-days-of-code
995f5ca092c2cf345a500cbd70fdb25f4361f183
[ "MIT" ]
null
null
null
Day 25 - CSVs, Pandas and US States Game/CSV & Pandas Intro/testing_stuff.py
ArielMAJ/100-days-of-code
995f5ca092c2cf345a500cbd70fdb25f4361f183
[ "MIT" ]
null
null
null
# with open('./weather_data.csv') as f: # data = [line.split(',') for line in f.read().split('\n')] # print(data) # # import csv # # with open('weather_data.csv') as f: # data = csv.reader(f) # temperature = [] # for row in data: # try: # temperature.append(int(row[1])) # exc...
23.0625
63
0.533875
0
0
0
0
0
0
0
0
354
0.95935
df3496517f3326067454cbe31d1f7cc89ddd076e
4,519
py
Python
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
4
2019-04-29T02:20:21.000Z
2021-05-03T00:03:04.000Z
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
null
null
null
src/parse_RAF.py
vtt-project/VTT_vid_emotion-1
e142d7dcab5343de217088face2127d5cb9add07
[ "MIT" ]
1
2019-12-16T05:02:55.000Z
2019-12-16T05:02:55.000Z
# preliminaries import sys,os,time,cv2 import numpy as np import matplotlib.pyplot as plt from utils import imread_to_rgb, img_rgb2bw DB_PATH = '/home/jhchoi/datasets4/RAF/' raf_dict = dict() #FER: 0=angry, 1=disgust, 2=fear, 3=happy, 4=sad, 5=surprise, 6=neutral #RAF-basic and RAF-multi: # 1:Surprise, 2:Fear, 3:Disg...
30.952055
118
0.639079
0
0
0
0
0
0
0
0
1,405
0.310909
df354d4ab04d9b072a1e9fda28e845b051ee73fc
5,322
py
Python
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
318
2015-04-07T01:44:35.000Z
2022-03-18T07:39:36.000Z
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
10
2015-03-19T21:31:29.000Z
2020-11-26T12:46:53.000Z
lib/interactiveBrokers/handlers.py
alexanu/trading-with-python
e6d6f6daea3089aebcd0f48c2e69c8bfe23c332c
[ "BSD-3-Clause" ]
137
2015-04-07T01:33:47.000Z
2022-03-18T07:40:08.000Z
# -*- coding: utf-8 -*- """ Common handlers for ibpy Created on Thu Mar 19 22:34:20 2015 @author: Jev Kuznetsov License: BSD """ import pandas as pd from ib.ext.Order import Order class Logger(object): """ class for logging and displaying icoming messages """ def __init__(self,tws): tws.registerAll...
30.067797
95
0.560691
5,088
0.956032
0
0
0
0
0
0
2,037
0.382751
df36df1446411e1738debdb04d767ff908e75d73
1,149
py
Python
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
comparer/migrations/0017_auto_20210824_1239.py
dzejkobi/institution-comparisoner
3f7ff16bd2b5065a95607bf895c9d28f8e9182a4
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-08-24 12:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comparer', '0016_auto_20210820_1328'), ] operations = [ migrations.AddField( model_name='rankingbrowserpluginmodel', ...
39.62069
183
0.671018
1,055
0.91819
0
0
0
0
0
0
462
0.402089
df385247bc18a2e45e873a4d2488d523dd1ffa7f
2,294
py
Python
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
PE011-Largest product in a grid/PE011.py
christosg88/ProjectEuler
6fe131b03b0f81b12a219d5c7d6fe17d9a91eeee
[ "MIT" ]
null
null
null
# In the 20*20 grid below, four numbers along a diagonal line # have been marked in red. # The product of these numbers is 26 * 63 * 78 * 14 = 1788696. # What is the greatest product of four adjacent numbers in the same direction # (up, down, left, right, or diagonally) in the 20*20 grid? rows = 20 columns = 20 grid =...
38.233333
131
0.527899
0
0
0
0
0
0
0
0
484
0.210985
df38658053445855800c66fb717ebfdb22768f78
128
py
Python
snippets - pandas/plotting-pandas.py
bjfisica/MachineLearning
20349301ae7f82cd5048410b0cf1f7a5f7d7e5a2
[ "MIT" ]
52
2019-02-15T16:37:13.000Z
2022-02-17T18:34:30.000Z
snippets - pandas/plotting-pandas.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
null
null
null
snippets - pandas/plotting-pandas.py
RodeoBlues/Complete-Data-Science-Toolkits
c5e83889e24af825ec3baed6e8198debb135f1ff
[ "MIT" ]
22
2017-11-25T23:42:16.000Z
2019-01-07T09:22:35.000Z
import pandas as pd #histogram for each column df.plot.hist() #scatter chart using pairs of points df.plot.scatter(x='w',y='h')
25.6
36
0.742188
0
0
0
0
0
0
0
0
68
0.53125
df39262f139c78a5d2f3f0a8df730229c9791e7e
636
py
Python
src/models/__init__.py
leeesangwon/CNN_sentence.pytorch
512a1fe1de359f01557b6441a0571d7d98335716
[ "MIT" ]
null
null
null
src/models/__init__.py
leeesangwon/CNN_sentence.pytorch
512a1fe1de359f01557b6441a0571d7d98335716
[ "MIT" ]
null
null
null
src/models/__init__.py
leeesangwon/CNN_sentence.pytorch
512a1fe1de359f01557b6441a0571d7d98335716
[ "MIT" ]
null
null
null
from .cnn import CNN, CNNMultiChannel MODELS = ('random', 'static', 'non-static', 'multi-channel') def get_model(model_type, num_classes, pretrained_word2vec): if model_type not in MODELS: raise ValueError("Invalid model type: %s" % model_type) if model_type == 'random': return CNN(num_clas...
33.473684
66
0.70283
0
0
0
0
0
0
0
0
95
0.149371
df39fdc57b5a830b3a9e319ad857dd37de453a65
680
py
Python
examples/miniapps/movie-lister/movies/__main__.py
JarnoRFB/python-dependency-injector
39f3f3a6232d846980cdf7fd106490751210d4f0
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/movie-lister/movies/__main__.py
JarnoRFB/python-dependency-injector
39f3f3a6232d846980cdf7fd106490751210d4f0
[ "BSD-3-Clause" ]
null
null
null
examples/miniapps/movie-lister/movies/__main__.py
JarnoRFB/python-dependency-injector
39f3f3a6232d846980cdf7fd106490751210d4f0
[ "BSD-3-Clause" ]
null
null
null
"""Main module.""" import sys from dependency_injector.wiring import Provide from .listers import MovieLister from .containers import Container def main(lister: MovieLister = Provide[Container.lister]) -> None: print('Francis Lawrence movies:') for movie in lister.movies_directed_by('Francis Lawrence'): ...
24.285714
66
0.704412
0
0
0
0
0
0
0
0
127
0.186765
df3a80c657f7daf93c46d3e63b16bbedbda7ac9e
16,502
py
Python
captcha/base.py
Kami-DiscordBot/Predeactor-Cogs
a3b6a38a7440b58c6b229e5aa07d66f52d128eae
[ "Apache-2.0" ]
18
2020-06-19T22:46:19.000Z
2022-01-30T12:59:16.000Z
captcha/base.py
Kami-DiscordBot/Predeactor-Cogs
a3b6a38a7440b58c6b229e5aa07d66f52d128eae
[ "Apache-2.0" ]
39
2020-03-09T13:36:25.000Z
2021-08-19T00:41:39.000Z
captcha/base.py
Kami-DiscordBot/Predeactor-Cogs
a3b6a38a7440b58c6b229e5aa07d66f52d128eae
[ "Apache-2.0" ]
17
2020-08-06T21:47:19.000Z
2021-11-04T20:42:57.000Z
import logging from contextlib import suppress from datetime import datetime from typing import Optional, Union import discord from redbot.core import Config, commands from redbot.core.bot import Red from redbot.core.utils.chat_formatting import bold, error, humanize_list from .abc import CompositeMetaClass from .api...
40.64532
102
0.574536
15,144
0.917485
0
0
0
0
13,181
0.798558
4,029
0.244093
df3bf899638da406b7123ee13fad1b04c0a2568e
59
py
Python
python/dataingest/patents/svc/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/patents/svc/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
python/dataingest/patents/svc/__init__.py
jiportilla/ontology
8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40
[ "MIT" ]
null
null
null
from .generate_src_collection import GenerateSrcCollection
29.5
58
0.915254
0
0
0
0
0
0
0
0
0
0
df3d918094e9cfb4767b18d9d9e86fe852bc2e66
607
py
Python
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
servicesapp/tests.py
heyylateef/lateeflab
4d7cdf3232eb22fe1151bd92beb04b7789cf9f71
[ "MIT" ]
null
null
null
from django.test import TestCase from django.core.mail import send_mail from django.conf import settings from .views import email_inquiry from .forms import ContactForm # Create your tests here. class EmailTesting(TestCase): def test_send_mail(self): print("\nTesting email sending functionality...") ...
37.9375
152
0.747941
408
0.672158
0
0
0
0
0
0
263
0.433278
df3df25b4492d882101df69a106581e2eacb1d2f
2,392
py
Python
frappe-bench/env/lib/python2.7/site-packages/plaid/api/sandbox.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/plaid/api/sandbox.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/plaid/api/sandbox.py
ibrahmm22/library-management
b88a2129a5a2e96ce1f945ec8ba99a0b63b8c506
[ "MIT" ]
null
null
null
from plaid.api.api import API class Item(API): '''Sandbox item endpoints.''' def reset_login(self, access_token): ''' Put an item into an ITEM_LOGIN_REQUIRED error state. :param str access_token: ''' return self.client.post('/sandbox/item/reset_login', { ...
27.813953
76
0.589465
2,353
0.983696
0
0
0
0
0
0
941
0.393395
df3e3ee51a546d9823688523e9951c6bf395670b
483
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/envs/pact.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/envs/pact.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/envs/pact.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Settings for Pact Verification Tests. """ from .test import * # pylint: disable=wildcard-import, unused-wildcard-import #### Allow Pact Provider States URL #### PROVIDER_STATES_URL = True #### Default User name for Pact Requests Authentication ##### MOCK_USERNAME = 'Mock User' ######################### Add Aut...
32.2
109
0.677019
0
0
0
0
0
0
0
0
378
0.782609
df3ec7382f03ff1dc0f4c5ebdc2543927a15d2f3
249
py
Python
Python/Collections/Collections.OrderedDict()/solution.py
rawat9/HackerRank
1483eee58c717ebf45fe749de6b1ad899edc13d7
[ "MIT" ]
null
null
null
Python/Collections/Collections.OrderedDict()/solution.py
rawat9/HackerRank
1483eee58c717ebf45fe749de6b1ad899edc13d7
[ "MIT" ]
null
null
null
Python/Collections/Collections.OrderedDict()/solution.py
rawat9/HackerRank
1483eee58c717ebf45fe749de6b1ad899edc13d7
[ "MIT" ]
null
null
null
from collections import OrderedDict n = int(input()) d = OrderedDict() for _ in range(n): items = input() item_name, price = items.rsplit(" ", 1) d[item_name] = d.get(item_name, 0) + int(price) for k, v in d.items(): print(k, v)
17.785714
51
0.614458
0
0
0
0
0
0
0
0
3
0.012048
df3eca2afb67a03da3e9f98bd54037bb4d43d7a7
123
py
Python
trading/apps.py
DarkoR12/dafi-system
f923ea4273b04f7acc7016b2f7d03e51eb00b85b
[ "MIT" ]
7
2019-08-03T12:25:18.000Z
2021-11-02T12:51:33.000Z
trading/apps.py
DarkoR12/dafi-system
f923ea4273b04f7acc7016b2f7d03e51eb00b85b
[ "MIT" ]
11
2019-08-20T17:07:37.000Z
2021-11-23T14:26:07.000Z
trading/apps.py
DarkoR12/dafi-system
f923ea4273b04f7acc7016b2f7d03e51eb00b85b
[ "MIT" ]
4
2020-04-06T11:33:02.000Z
2021-10-31T09:10:53.000Z
from django.apps import AppConfig class TradingConfig(AppConfig): name = 'trading' verbose_name = 'Intercambios'
17.571429
33
0.739837
86
0.699187
0
0
0
0
0
0
23
0.186992
df4032134b57e6ab6f700535ca97fb4a7c423b73
4,048
py
Python
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
12
2016-11-02T09:15:32.000Z
2021-04-08T18:42:01.000Z
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
null
null
null
classes/data_screen.py
johnyburd/glucometer
075a48cff38e0570960fc2b8968bcb8b5ddd647f
[ "MIT" ]
3
2018-10-18T15:59:57.000Z
2021-01-20T21:03:48.000Z
# Class for the data_screen. Manages displaying data stored by the meter. from kivy.clock import Clock from kivy.uix.screenmanager import Screen from kivy.uix.button import Button from kivy.uix.popup import Popup from kivy.uix.label import Label from kivy.core.window import Window from kivy.uix.boxlayout import BoxLa...
29.547445
103
0.590168
3,557
0.878706
0
0
0
0
0
0
231
0.057065
df40520ca3659cc22f496aa644d7242d8e66e927
2,104
py
Python
aoc24.py
juestr/aoc-2021
11e31f9dafd234cf4617ff596546cd7a17189f79
[ "MIT" ]
null
null
null
aoc24.py
juestr/aoc-2021
11e31f9dafd234cf4617ff596546cd7a17189f79
[ "MIT" ]
null
null
null
aoc24.py
juestr/aoc-2021
11e31f9dafd234cf4617ff596546cd7a17189f79
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys # This was very hard, but I attempted a blackbox general solution without # analyzing the code by hand first. # Trying to solve this with sympy hangs while building and simplifying # expressions far from the required depth, and I didn't want to mess with # better solvers. # I had to ...
32.875
81
0.548954
0
0
0
0
0
0
0
0
791
0.375951
df407fe8640cf539470badf0dde920be1eef1a59
359
py
Python
app/schemas/image.py
sz3lbi/classifieds_service_backend
5977eedb7b9cb243142c021355211144df53cd1d
[ "MIT" ]
1
2022-01-24T12:46:56.000Z
2022-01-24T12:46:56.000Z
app/schemas/image.py
sz3lbi/classifieds_service_backend
5977eedb7b9cb243142c021355211144df53cd1d
[ "MIT" ]
1
2022-01-24T12:51:16.000Z
2022-01-26T18:25:11.000Z
app/schemas/image.py
sz3lbi/classifieds_service_backend
5977eedb7b9cb243142c021355211144df53cd1d
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from uuid import UUID class Image(BaseModel): id: int classified_id: int class Config: orm_mode = True class ImageCreate(BaseModel): classified_id: int class ImageDB(Image): id: int filename: UUID extension: str = Field(max_length=8) cla...
14.36
40
0.685237
287
0.799443
0
0
0
0
0
0
0
0
df41555b18281e7b1b5ce196861c57f7bd6e3924
6,471
py
Python
string-method/src/stringprocessor/processing_utils.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
null
null
null
string-method/src/stringprocessor/processing_utils.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
null
null
null
string-method/src/stringprocessor/processing_utils.py
delemottelab/gpcr-string-method-2019
b50786a4a8747d56ad04ede525592eb31f1890fd
[ "MIT" ]
3
2020-03-16T04:33:50.000Z
2021-03-19T17:25:59.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import sys logging.basicConfig( stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s %(name)s-%(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') from os.path import...
41.748387
156
0.684593
0
0
0
0
0
0
0
0
2,038
0.314944
df4222a6ed7b73ffb1dc9e9798f1e7e335b7d1bc
3,893
py
Python
examples/reporter/main.py
run-ai/runai
c73bf522d4b2cdd2ecc6c065ab56330718a97566
[ "MIT" ]
86
2020-01-23T18:56:41.000Z
2022-02-14T22:32:08.000Z
examples/reporter/main.py
Raghvender1205/runai
c73bf522d4b2cdd2ecc6c065ab56330718a97566
[ "MIT" ]
18
2020-01-24T17:55:18.000Z
2021-12-01T01:01:32.000Z
examples/reporter/main.py
Raghvender1205/runai
c73bf522d4b2cdd2ecc6c065ab56330718a97566
[ "MIT" ]
12
2020-02-03T14:30:44.000Z
2022-01-08T16:06:59.000Z
import os import time import keras import numpy as np import scipy # scipy.misc.imresize() is was removed in scipy-1.3.0 import runai.reporter.keras BATCH_SIZE = 64 IMAGE_SIZE = 224 def resize_images(src, shape): resized = [scipy.misc.imresize(img, shape, 'bilinear', 'RGB') for img in src] return np.stack(r...
33.273504
86
0.63627
481
0.123555
0
0
0
0
0
0
456
0.117133
df4298272da458e0f589b035ae3fc918347212f9
393
py
Python
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
9
2020-06-23T05:55:30.000Z
2020-07-09T10:07:25.000Z
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
3
2020-06-17T16:36:26.000Z
2021-02-16T06:29:23.000Z
expense/migrations/0006_auto_20200617_1927.py
Aasess/ExpenseTracker
9feb83b2b66d5d87a994bf6997d9cc33ca6ec066
[ "MIT" ]
5
2020-06-23T03:27:33.000Z
2020-08-16T19:37:53.000Z
# Generated by Django 3.0.5 on 2020-06-17 13:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('expense', '0005_auto_20200617_1820'), ] operations = [ migrations.AlterField( model_name='expense', name='date', ...
20.684211
58
0.605598
300
0.763359
0
0
0
0
0
0
96
0.244275
df42c1291223df4ac6ea851f4e2bb09a53f3fd63
430
py
Python
server/python-asgi/app/models/foo.py
shortcut/cloud-native-templates
023b0a09137bcc763d7c0f0e48c325320fdc93af
[ "MIT" ]
null
null
null
server/python-asgi/app/models/foo.py
shortcut/cloud-native-templates
023b0a09137bcc763d7c0f0e48c325320fdc93af
[ "MIT" ]
null
null
null
server/python-asgi/app/models/foo.py
shortcut/cloud-native-templates
023b0a09137bcc763d7c0f0e48c325320fdc93af
[ "MIT" ]
null
null
null
from pydantic import BaseModel, Field from typing import Optional class FooRequest(BaseModel): foo: Optional[str] = Field( None, description='foo', example='foo', min_length=1, regex='^[a-zA-Z0-9]+$', ) class FooResponse(BaseModel): foo: str = Field( ..., ...
18.695652
37
0.537209
358
0.832558
0
0
0
0
0
0
52
0.12093
df42f047afc68d8acf41529e0ed7a856bd1edd70
748
py
Python
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
16
2019-11-28T13:26:37.000Z
2022-02-09T09:53:10.000Z
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
1
2021-03-26T20:31:48.000Z
2021-07-15T08:52:47.000Z
quasimodo/data_structures/predicate.py
Aunsiels/CSK
c88609bc76d865b4987aaf30ddf1247a2031b1a6
[ "MIT" ]
3
2020-08-14T23:23:25.000Z
2021-12-24T14:02:35.000Z
from quasimodo.serializable import Serializable from .predicate_interface import PredicateInterface class Predicate(PredicateInterface, Serializable): """Predicate Default implementation of a PredicateInterface """ def to_dict(self): res = dict() res["type"] = "Predicate" res[...
26.714286
51
0.606952
645
0.862299
0
0
0
0
0
0
138
0.184492
df448b1fe5980f6ff5ca821f44dfced35dad6d97
7,134
py
Python
tests/test_soft_impute.py
cs224/sparseMF
39fbede77eceb5231db875820da94b68a5227e0d
[ "Apache-2.0" ]
10
2017-10-16T18:50:53.000Z
2021-11-07T05:34:58.000Z
tests/test_soft_impute.py
cs224/sparseMF
39fbede77eceb5231db875820da94b68a5227e0d
[ "Apache-2.0" ]
null
null
null
tests/test_soft_impute.py
cs224/sparseMF
39fbede77eceb5231db875820da94b68a5227e0d
[ "Apache-2.0" ]
5
2018-05-30T06:19:35.000Z
2021-05-29T20:55:28.000Z
import numpy as np from sparse_soft_impute import SoftImpute, SPLR from scipy.sparse import coo_matrix, csr_matrix, csc_matrix, lil_matrix from sklearn.utils.testing import assert_raises, assert_equal, assert_array_equal import unittest class TestPredict(unittest.TestCase): ''' Unit Tests for the Sparse implement...
40.765714
305
0.543454
5,300
0.742921
0
0
0
0
0
0
2,947
0.413092
df44da4ef35197d7d9945d76216ec30f27d1d9a7
501
py
Python
web_programming/current_stock_price.py
JB1959/Python
b6ca263983933c3ecc06ed0083dd11b6faf870c8
[ "MIT" ]
145,614
2016-07-21T05:40:05.000Z
2022-03-31T22:17:22.000Z
web_programming/current_stock_price.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
3,987
2016-07-28T17:31:25.000Z
2022-03-30T23:07:46.000Z
web_programming/current_stock_price.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
40,014
2016-07-26T15:14:41.000Z
2022-03-31T22:23:03.000Z
import requests from bs4 import BeautifulSoup def stock_price(symbol: str = "AAPL") -> str: url = f"https://in.finance.yahoo.com/quote/{symbol}?s={symbol}" soup = BeautifulSoup(requests.get(url).text, "html.parser") class_ = "My(6px) Pos(r) smartphone_Mt(6px)" return soup.find("div", class_=class_).fi...
33.4
77
0.674651
0
0
0
0
0
0
0
0
224
0.447106
df44f6107463c12a6376b5f9f8eb4b96683a6ba1
2,006
py
Python
setup.py
jacobic/spiders
287dcf041ba248dd369646236cdbf07ecf32d4e8
[ "MIT" ]
null
null
null
setup.py
jacobic/spiders
287dcf041ba248dd369646236cdbf07ecf32d4e8
[ "MIT" ]
null
null
null
setup.py
jacobic/spiders
287dcf041ba248dd369646236cdbf07ecf32d4e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = ['Click>=6.0', 'colossus', 'astropy', ...
37.849057
80
0.641077
0
0
0
0
0
0
0
0
1,117
0.55683
df45960db91c2753ebf54796d5923cb3020270a4
13,091
py
Python
local_fel_simulated_env.py
MathPhysSim/FERMI_RL_Paper
4529fcbfa0cc35e5fa59463df2c423a497736eba
[ "MIT" ]
7
2021-02-05T18:02:43.000Z
2022-02-22T13:54:30.000Z
local_fel_simulated_env.py
MathPhysSim/FERMI_RL_Paper
4529fcbfa0cc35e5fa59463df2c423a497736eba
[ "MIT" ]
3
2021-01-16T17:08:17.000Z
2021-01-19T13:38:42.000Z
local_fel_simulated_env.py
MathPhysSim/FERMI_RL_Paper
4529fcbfa0cc35e5fa59463df2c423a497736eba
[ "MIT" ]
2
2021-01-15T11:08:36.000Z
2021-11-22T06:26:42.000Z
import pickle import numpy as np import gym # import pybobyqa import tensorflow as tf import matplotlib.pyplot as plt import pandas as pd from simulated_tango import SimTangoConnection class FelLocalEnv(gym.Env): def __init__(self, tango, **kwargs): self.max_steps = 10 print('init env ' * 20) ...
34.632275
112
0.567489
9,595
0.732946
0
0
0
0
0
0
3,384
0.258498
df45e549a1af4f02c178b91f5b88e8159e693bb4
220
py
Python
06_Array1D/Step06/6_6_sang.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
06_Array1D/Step06/6_6_sang.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
06_Array1D/Step06/6_6_sang.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
t = int(input()) for i in range(t): count = 0 score = 0 s = input() for j in s: if j == 'O': count += 1 score += count else: count = 0 print(score)
16.923077
26
0.390909
0
0
0
0
0
0
0
0
3
0.013636
df4783c82e2a310e7871ee16fb7207f64651b42a
13,710
py
Python
src/bxcommon/messages/eth/serializers/transaction.py
sasha00123/bxcommon
4d65c48daacb63bfdf5d121aa4dbf3501cf0516b
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
src/bxcommon/messages/eth/serializers/transaction.py
sasha00123/bxcommon
4d65c48daacb63bfdf5d121aa4dbf3501cf0516b
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
src/bxcommon/messages/eth/serializers/transaction.py
sasha00123/bxcommon
4d65c48daacb63bfdf5d121aa4dbf3501cf0516b
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from typing import Optional, Dict, Any, List import blxr_rlp as rlp from bxcommon.messages.eth.serializers.transaction_type import EthTransactionType from bxcommon.messages.eth.serializers.unsigned_transaction import UnsignedTransaction from bxcommon.utils import convert from bxcommon.utils.blockchain_utils.eth impor...
36.462766
104
0.613713
13,247
0.966229
0
0
4,903
0.357622
0
0
3,212
0.234282
df4845df44a2ce964a86def84f39985731180a50
3,425
py
Python
simulator/lab11_data/gen_event_curve.py
lab11/Task2
3c3451599dd303cd1e2469e5b9e36e1b4ca49fa6
[ "Apache-2.0" ]
21
2018-08-29T18:58:26.000Z
2022-01-12T09:08:04.000Z
simulator/lab11_data/gen_event_curve.py
lab11/permamote
3c3451599dd303cd1e2469e5b9e36e1b4ca49fa6
[ "Apache-2.0" ]
9
2017-11-08T03:22:58.000Z
2020-05-02T18:23:12.000Z
simulator/lab11_data/gen_event_curve.py
lab11/Task2
3c3451599dd303cd1e2469e5b9e36e1b4ca49fa6
[ "Apache-2.0" ]
8
2018-10-28T23:44:23.000Z
2021-07-11T05:18:02.000Z
#! /usr/bin/env python3 import os import numpy as np import scipy.stats as stats import matplotlib.pyplot as plt import matplotlib.dates as mdates from multiprocessing import Pool from datetime import datetime import arrow data_dir = 'clean_data/' out_dir = 'curves/' out_dir = os.path.dirname(out_dir) + '/' if out_d...
36.43617
121
0.68146
0
0
0
0
0
0
0
0
1,172
0.34219
df48b1fab3b025fdb0b881f82648c4854093fd0e
1,185
py
Python
platformio/commands/home/web.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
null
null
null
platformio/commands/home/web.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
1
2021-06-02T00:23:58.000Z
2021-06-02T00:23:58.000Z
platformio/commands/home/web.py
ysoyipek/platformio-core
1b2e410f12bd7770d6415264d750e2fd63f697b7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
38.225806
74
0.704641
439
0.370464
0
0
0
0
0
0
778
0.65654
df493625da55eaea97ae29d15d245add1cb4e501
39
py
Python
pipeline/src/enrich/__init__.py
wellcomecollection/concepts
fcdb23d47ea841bb3b8d2826a8bd8640dc639ccb
[ "MIT" ]
null
null
null
pipeline/src/enrich/__init__.py
wellcomecollection/concepts
fcdb23d47ea841bb3b8d2826a8bd8640dc639ccb
[ "MIT" ]
52
2020-04-21T09:13:45.000Z
2022-01-31T09:43:16.000Z
pipeline/src/enrich/__init__.py
wellcomecollection/concepts
fcdb23d47ea841bb3b8d2826a8bd8640dc639ccb
[ "MIT" ]
null
null
null
from ..utils import clean, http_client
19.5
38
0.794872
0
0
0
0
0
0
0
0
0
0
df49a60668055e5fddda30538086675d22b98c78
1,474
py
Python
task01.py
ryandhjeon/ncdc-analysis
ebeefe329dfe0c5eff73e242a9868ebd29515856
[ "MIT" ]
null
null
null
task01.py
ryandhjeon/ncdc-analysis
ebeefe329dfe0c5eff73e242a9868ebd29515856
[ "MIT" ]
null
null
null
task01.py
ryandhjeon/ncdc-analysis
ebeefe329dfe0c5eff73e242a9868ebd29515856
[ "MIT" ]
null
null
null
from mrjob.job import MRJob from mrjob.step import MRStep from datetime import datetime class MRTask01(MRJob): def steps(self): return [ MRStep(mapper=self.mapper1, reducer=self.reducer1), MRStep(reducer=self.reducer2) ] def mapper1(self, _, line): ...
25.859649
75
0.545455
1,335
0.905699
1,120
0.759837
0
0
0
0
18
0.012212
df4a26ff3ff45ae362bf9dfb4da8f35474ae51c2
2,595
py
Python
server.py
ryanbloom/gan-explorer
e3f0412b4e204af2035721a16e33f0bfdc14f3ac
[ "MIT" ]
null
null
null
server.py
ryanbloom/gan-explorer
e3f0412b4e204af2035721a16e33f0bfdc14f3ac
[ "MIT" ]
null
null
null
server.py
ryanbloom/gan-explorer
e3f0412b4e204af2035721a16e33f0bfdc14f3ac
[ "MIT" ]
null
null
null
import os import sys import io import pickle import torch import functools from PIL import Image from starlette.applications import Starlette from starlette.responses import Response, FileResponse from starlette.exceptions import HTTPException from starlette.staticfiles import StaticFiles from starlette.routing impor...
28.833333
83
0.670906
0
0
0
0
0
0
791
0.304817
346
0.133333
df4af87ae35f03a39ee054e5b6298723ceaa70df
15,866
py
Python
MasterServer/MasterServer_pb2_grpc.py
wangtl175/Distributed-Key-Value-Store-System
c6661686474ef2660a6c4e62c2db6d1f924ebf29
[ "MIT" ]
1
2021-03-13T12:43:12.000Z
2021-03-13T12:43:12.000Z
MasterServer/MasterServer_pb2_grpc.py
wangtl175/Distributed-Key-Value-Store-System
c6661686474ef2660a6c4e62c2db6d1f924ebf29
[ "MIT" ]
null
null
null
MasterServer/MasterServer_pb2_grpc.py
wangtl175/Distributed-Key-Value-Store-System
c6661686474ef2660a6c4e62c2db6d1f924ebf29
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import MasterServer_pb2 as MasterServer__pb2 class MasterServerStub(object): """Missing associated documentation comment in .proto file.""" def __init...
43.587912
107
0.645279
12,527
0.78955
0
0
6,408
0.403883
0
0
2,515
0.158515
df4c96ccb340b9ae5841e6add1a11590553d1c14
6,569
py
Python
tests/module_definition/parameter_test.py
BjoernLange/C-Mock-Generator
91f0e331abf54dc5b6706796c02341e23b2e06d7
[ "MIT" ]
null
null
null
tests/module_definition/parameter_test.py
BjoernLange/C-Mock-Generator
91f0e331abf54dc5b6706796c02341e23b2e06d7
[ "MIT" ]
3
2020-06-07T12:48:17.000Z
2020-07-26T12:52:45.000Z
tests/module_definition/parameter_test.py
BjoernLange/C-Mock-Generator
91f0e331abf54dc5b6706796c02341e23b2e06d7
[ "MIT" ]
null
null
null
from typing import Optional import pytest from c_mock_generator.module_definition.exceptions import MockGeneratorError from c_mock_generator.module_definition.parameter_documentation import \ ParameterDocumentation, ActiveAttributions from c_mock_generator.module_definition.parameter import Parameter from c_mock_g...
31.581731
79
0.732379
0
0
0
0
787
0.119805
0
0
594
0.090425
df4cacbacbdeb4898039b31d1011f446d0d5370d
7,496
py
Python
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
1
2021-03-29T00:08:35.000Z
2021-03-29T00:08:35.000Z
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
1
2017-05-18T09:35:19.000Z
2017-05-18T09:35:19.000Z
python/airi/twisted_bluetooth/win.py
manuelnaranjo/AIRi
84c4afa9bfb078970c485ad87a86c431ac2a7cc8
[ "Apache-2.0" ]
2
2017-05-18T05:02:47.000Z
2020-11-26T18:49:58.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2011 Naranjo Manuel Francisco <manuel@aircable.net> # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See Twisted LICENSE for details. """ Various Bluetooth Socket classes """ # System Imports import os import types import socket import sys import operator import bluetoo...
30.721311
112
0.639941
6,301
0.840582
0
0
0
0
0
0
2,638
0.351921
df4ccadd48ef65ce73e0ea13f4e72f45bf8f773d
381
py
Python
INBa/2015/RotkinAM/Zadacha_2_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_2_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_2_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 2. Вариант 21. # Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Леонардо да Винчи. Не забудьте о том, что автор должен быть упомянут на отдельной строке. # Rotkin A.M. # 02.04.2016 print ('За сладкое приходтся горько расплачиваться') prin...
42.333333
210
0.779528
0
0
0
0
0
0
0
0
606
0.949843
df4d2925d7d80db583bc0844ba5d1903f8ecf247
959
py
Python
ex17.py
munyamunya/python-excercise
afb217e4cac74c98a41d3c255acb28a61941ee9d
[ "MIT" ]
null
null
null
ex17.py
munyamunya/python-excercise
afb217e4cac74c98a41d3c255acb28a61941ee9d
[ "MIT" ]
null
null
null
ex17.py
munyamunya/python-excercise
afb217e4cac74c98a41d3c255acb28a61941ee9d
[ "MIT" ]
null
null
null
# 練習17 借金を返済しよう (ex17.py) # 借金をして月々、定額を返済していくと借金はどうなっていくのかを調べるプログラムを作成しよう。 # 借金の金額と、利息の年利率(%)、月々の返済額を入力すると、毎月、借金がなくなるまで月数と借金の金額を表示するものとする。 # 月々の借金は、借金の利息年利率/12(月割り)分増加するが、返済分だけ減る。 # 実行結果 # 借金> 100000 # 年利率(%)> 14.0 # 返済額> 20000 # 1月: 返済額 20000 円 残り 81166 円 # 2月: 返済額 20000 円 残り 62113 円 # 3月: 返済額 20000 円 残り 42838 円 # 4月:...
27.4
103
0.625652
0
0
0
0
0
0
0
0
1,042
0.715168
df4e88b22df96ecbcb9f90cb520cfd038c2e0125
2,531
py
Python
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
src/generate_data.py
tang-jh/excel_merge
3f2963d80e92a500807a1283a17c5c14c9336351
[ "MIT" ]
null
null
null
''' Module to generate a demo folder structure for testing purpose. This demo takes the structure of individual Excel files based on an assessor of the test candidate. Each candidate is assigned 3 assessors and will be assessed on 3 criteria ''' # Import libraries import os import numpy as np import pandas as...
37.776119
126
0.657843
0
0
0
0
0
0
0
0
834
0.329514
df4ef40b9556d5e1414528509023eea2581d7185
22,715
py
Python
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
OfflineAnomalyDetector/Detectors.py
mxbhsa/Heimdall
485976e3fdcaf2f8b98f0ef95e73067e67e9e9e4
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np from sklearn.base import BaseEstimator from luminol.anomaly_detector import AnomalyDetector from luminol.modules.anomaly import Anomaly from luminol.modules.time_series import TimeSeries from AnomalyAlgorithms import anomaly_detect_ts from Utils import * from abc import abstract...
35.217054
172
0.682324
20,493
0.902179
0
0
2,996
0.131895
0
0
3,390
0.149241
df5034fa78cbb9988aa4d1002234629ac70f8650
1,722
py
Python
onnx/test/tools_test.py
cnheider/onnx
8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933
[ "MIT" ]
137
2020-04-28T12:28:32.000Z
2022-03-18T10:48:25.000Z
onnx/test/tools_test.py
cnheider/onnx
8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933
[ "MIT" ]
24
2020-05-06T08:06:42.000Z
2021-12-31T07:46:13.000Z
onnx/test/tools_test.py
cnheider/onnx
8e9c7d57f7c5aa6f6eb7ee7abb0ba2a243781933
[ "MIT" ]
24
2020-05-06T11:43:22.000Z
2022-03-18T10:50:35.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import onnx from onnx.tools import update_model_dims from onnx import helper, TensorProto class TestToolsFunctions(unittest.TestCase): def test_upda...
36.638298
100
0.606272
1,414
0.821138
0
0
0
0
0
0
96
0.055749
df5093399be491b1e4faa393720b9b653870b11a
91
py
Python
powerspot/__init__.py
theolamayo/spotify-scripts
d464e7ab631d1dd46957396d4a8802fe8482bbca
[ "MIT" ]
1
2020-11-23T22:45:50.000Z
2020-11-23T22:45:50.000Z
powerspot/__init__.py
theolamayo/spotify-scripts
d464e7ab631d1dd46957396d4a8802fe8482bbca
[ "MIT" ]
null
null
null
powerspot/__init__.py
theolamayo/spotify-scripts
d464e7ab631d1dd46957396d4a8802fe8482bbca
[ "MIT" ]
null
null
null
from . import io, operations, ui __version__ = "0.2" __all__ = ["io", "operations", "ui"]
18.2
36
0.637363
0
0
0
0
0
0
0
0
25
0.274725
df50c3432b15ea04d712fd237733f2cc20205308
2,551
py
Python
StripeCaller/caller/mat_ops.py
seanpatrickmoran/StripeCaller
1a6de26cd20570087f18da09228cf714eae81f2d
[ "MIT" ]
null
null
null
StripeCaller/caller/mat_ops.py
seanpatrickmoran/StripeCaller
1a6de26cd20570087f18da09228cf714eae81f2d
[ "MIT" ]
null
null
null
StripeCaller/caller/mat_ops.py
seanpatrickmoran/StripeCaller
1a6de26cd20570087f18da09228cf714eae81f2d
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp def subsetNpMatrix(matrix, row_bounds, column_bounds): rows = np.array([x for x in range(row_bounds[0], row_bounds[1]) if 0 <= int(x) < matrix.shape[0]]) cols = np.array([y for y in range(column_bounds[0], column_bounds[1]) if 0 <= int(y) < matrix.shape[1]]) if...
30.73494
119
0.592317
0
0
0
0
0
0
0
0
563
0.220698
df51fe0f9d20bf758783a9a4f440b2cf9b340b01
114
py
Python
app/model.py
Fenghaze/ImageSegmentation
3f7e78fc8129241fd8090c9a67190c85e06fb5a1
[ "MIT" ]
null
null
null
app/model.py
Fenghaze/ImageSegmentation
3f7e78fc8129241fd8090c9a67190c85e06fb5a1
[ "MIT" ]
null
null
null
app/model.py
Fenghaze/ImageSegmentation
3f7e78fc8129241fd8090c9a67190c85e06fb5a1
[ "MIT" ]
null
null
null
import torch model = torch.hub.load('pytorch/vision:v0.10.0', 'deeplabv3_resnet101', pretrained=True) model.eval()
38
88
0.77193
0
0
0
0
0
0
0
0
45
0.394737
df537c7d1965860dc5f281c2d604983d7a1c14ee
2,003
py
Python
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/part/fixed_number_placed_parts_velocity_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
import math from typing import Optional, Sequence from assembly_gym.environment.generic import Object from ..object_velocity_sensor import ObjectVelocitySensor from task import StackingTask class FixedNumberPlacedPartsVelocitySensor(ObjectVelocitySensor[StackingTask]): """ A sensor that provides the velocit...
51.358974
118
0.725911
1,808
0.902646
0
0
0
0
0
0
788
0.39341
df5436be0a12452c30865bd01579f7384844eda4
1,888
py
Python
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
01/task14.py
omartrinidad/pattern-recognition-bit
ba3eb4e541fff2b1aedbaa4420d7a8cea8100dc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ task 1.4 Unit circles # ToDo: Implement it in three dimensions # L_p norm # https://www.youtube.com/watch?v=SXEYIGqXSxk # unit circle: # https://www.youtube.com/watch?v=qTbDQ9gkKJg """ import pylab import matplotlib.pyplot as plt import numpy as np from auxiliar import * @save_figure("out...
26.222222
80
0.573093
0
0
0
0
826
0.4375
0
0
918
0.486229
df56b842f640e25a4f3079105b09af9465ab1377
2,388
py
Python
toolchain/plugins/measure_jaeger.py
the-redback/pptam-tool
52b9cbd591f82d9ecc68dea1bbeac33701f08a21
[ "MIT" ]
null
null
null
toolchain/plugins/measure_jaeger.py
the-redback/pptam-tool
52b9cbd591f82d9ecc68dea1bbeac33701f08a21
[ "MIT" ]
null
null
null
toolchain/plugins/measure_jaeger.py
the-redback/pptam-tool
52b9cbd591f82d9ecc68dea1bbeac33701f08a21
[ "MIT" ]
null
null
null
import logging import requests import json import os import time def after(current_configuration, output, test_id): jaeger_host = current_configuration["jaeger_host_url"] jaeger_services = current_configuration["jaeger_services"].split(" ") service_to_test = current_configuration["jaeger_test_if_service_i...
44.222222
111
0.581658
0
0
0
0
0
0
0
0
632
0.264657
df587411f65d34db40c86a1eb7e3c422a977c673
229
py
Python
pycopa/result.py
advaita-krishna-das/pycopa
ed681f86c9c3b418605dbf6b0aee6a63db48458a
[ "MIT" ]
null
null
null
pycopa/result.py
advaita-krishna-das/pycopa
ed681f86c9c3b418605dbf6b0aee6a63db48458a
[ "MIT" ]
null
null
null
pycopa/result.py
advaita-krishna-das/pycopa
ed681f86c9c3b418605dbf6b0aee6a63db48458a
[ "MIT" ]
null
null
null
class ParserResult: def __init__(self, value): self.__value = value def get(self, name): return self.__value.get(name, None) def __getattr__(self, item): return self.__value.get(item, None)
20.818182
43
0.633188
227
0.991266
0
0
0
0
0
0
0
0
df595ad0cfc3a641ef7ea3f543a93e038717fbf9
1,757
py
Python
status/status/items.py
jesiqueira/scrapyinvestingacoes
df19e9994335a2bcfdc15a9f2a7daefb08830d02
[ "MIT" ]
null
null
null
status/status/items.py
jesiqueira/scrapyinvestingacoes
df19e9994335a2bcfdc15a9f2a7daefb08830d02
[ "MIT" ]
null
null
null
status/status/items.py
jesiqueira/scrapyinvestingacoes
df19e9994335a2bcfdc15a9f2a7daefb08830d02
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class StatusItem(scrapy.Item): # define the fields for your item here like: indice = scrapy.Field() ticker = scrapy.Field() empresa = scrapy.Field() empres...
29.779661
53
0.667046
1,611
0.916904
0
0
0
0
0
0
168
0.095618
df59942cf5238e3df7d6dc436a218c907b8213f5
249
py
Python
polls_cms_integration/models.py
sandilukez/news-project
fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1
[ "MIT" ]
null
null
null
polls_cms_integration/models.py
sandilukez/news-project
fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1
[ "MIT" ]
null
null
null
polls_cms_integration/models.py
sandilukez/news-project
fcd91edd6b7d6941b77a6390aa86efe3e2b0c3a1
[ "MIT" ]
null
null
null
from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete="models.CASCADE") def __str__(self): return self.poll.question
22.636364
62
0.75502
154
0.618474
0
0
0
0
0
0
16
0.064257
df59e95731903dc924bbf2b74288527f5c9aeccf
984
py
Python
utils/queue_viewer.py
VDL-PRISM/dylos
16bfcc9925d4e18793b4b004bd3ba55d243de450
[ "Apache-2.0" ]
null
null
null
utils/queue_viewer.py
VDL-PRISM/dylos
16bfcc9925d4e18793b4b004bd3ba55d243de450
[ "Apache-2.0" ]
11
2017-12-07T22:45:41.000Z
2018-01-26T20:44:21.000Z
utils/queue_viewer.py
VDL-PRISM/dylos
16bfcc9925d4e18793b4b004bd3ba55d243de450
[ "Apache-2.0" ]
null
null
null
import argparse from datetime import datetime import msgpack from persistent_queue import PersistentQueue import pytz from tabulate import tabulate parser = argparse.ArgumentParser(description='View data from a queue') parser.add_argument('queue') parser.add_argument('start', type=int) parser.add_argument('end', typ...
26.594595
119
0.688008
0
0
0
0
0
0
0
0
103
0.104675
df59f4730e20867d4ca7c619bfd2bad305c5e7b7
4,002
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/fromnumeric.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2022-01-08T12:30:44.000Z
2022-01-08T12:30:44.000Z
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/fromnumeric.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/fromnumeric.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
"""Tests for :mod:`numpy.core.fromnumeric`.""" import numpy as np A = np.array(True, ndmin=2, dtype=bool) B = np.array(1.0, ndmin=2, dtype=np.float32) A.setflags(write=False) B.setflags(write=False) a = np.bool_(True) b = np.float32(1.0) c = 1.0 d = np.array(1.0, dtype=np.float32) # writeable np.take...
15.333333
49
0.601949
0
0
0
0
0
0
0
0
58
0.014493
df5b982315dc9d3757badb58ec19ad64ecbb9cf6
871
py
Python
Bugscan_exploits-master/exp_list/exp-1799.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
11
2020-05-30T13:53:49.000Z
2021-03-17T03:20:59.000Z
Bugscan_exploits-master/exp_list/exp-1799.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-13T03:25:18.000Z
2020-07-21T06:24:16.000Z
Bugscan_exploits-master/exp_list/exp-1799.py
csadsl/poc_exp
e3146262e7403f19f49ee2db56338fa3f8e119c9
[ "MIT" ]
6
2020-05-30T13:53:51.000Z
2020-12-01T21:44:26.000Z
#!/usr/bin/python #-*- encoding:utf-8 -*- #title:workyi_Talent system SQL injection #author: xx00 #ref: http://www.wooyun.org/bugs/wooyun-2010-0148657 import urlparse def assign(service, arg): if service == 'ruijie_router': arr = urlparse.urlparse(arg) return True, '%s://%s/' % (arr.sch...
32.259259
106
0.652124
0
0
0
0
0
0
0
0
424
0.486797
df5be020af94bab9e82de5a99d0b4ee436cb2749
2,716
py
Python
core/tests/test_models.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
core/tests/test_models.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
core/tests/test_models.py
kaedroho/dit-directory-cms
67c15eeed19e7b3583f1fce1969230ddf83b6813
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.core.exceptions import ValidationError from django.utils import translation from wagtail.core.models import Page from find_a_supplier.tests.factories import IndustryPageFactory from invest.tests.factories import InvestAppFactory, \ SectorLandingPageFactor...
31.218391
64
0.768778
0
0
0
0
2,312
0.851252
0
0
313
0.115243
df5c62e88857a20ae95ab8ff976f6b9308f5cbf7
1,315
py
Python
htmldatatables/__init__.py
juhajokela/htmldatatables
298467e6256fc1c1c16c0af9f1d2de8782935715
[ "MIT" ]
null
null
null
htmldatatables/__init__.py
juhajokela/htmldatatables
298467e6256fc1c1c16c0af9f1d2de8782935715
[ "MIT" ]
null
null
null
htmldatatables/__init__.py
juhajokela/htmldatatables
298467e6256fc1c1c16c0af9f1d2de8782935715
[ "MIT" ]
null
null
null
import os from collections.abc import Iterable DIRECTORY = os.path.dirname(os.path.realpath(__file__)) TEMPLATES = os.path.join(DIRECTORY, 'templates') def load_template(path): with open(os.path.join(TEMPLATES, path)) as f: return f.read() def render_html(template, table): return template.replace(...
26.3
65
0.661597
0
0
0
0
0
0
0
0
244
0.185551
df5d14417de1e8123f6427664b0bb96e2cca8f09
1,562
py
Python
bitcoinstore/api/handlers/put_non_fungible.py
0x1a8008/bitcoin-store
7a490d81de4e874e6e455b62b406ba9059c1fb55
[ "MIT" ]
null
null
null
bitcoinstore/api/handlers/put_non_fungible.py
0x1a8008/bitcoin-store
7a490d81de4e874e6e455b62b406ba9059c1fb55
[ "MIT" ]
null
null
null
bitcoinstore/api/handlers/put_non_fungible.py
0x1a8008/bitcoin-store
7a490d81de4e874e6e455b62b406ba9059c1fb55
[ "MIT" ]
null
null
null
""" Handles the validation and loading of a non-fungible item and its associated parent type to the db. """ from bitcoinstore.extensions import db from bitcoinstore.api.models.NonFungibleItem import NonFungibleItem from bitcoinstore.api.models.NonFungibleType import NonFungibleType def put_non_fungible(sku, sn, prope...
29.471698
76
0.608195
0
0
0
0
0
0
0
0
356
0.227913
df5e00c77743d2aff34d948eb698d91075fa4344
955
py
Python
AnimeList/admin.py
habelash/AnimeView
893620c318b25a549479c781f002e6eed326705c
[ "CC0-1.0" ]
null
null
null
AnimeList/admin.py
habelash/AnimeView
893620c318b25a549479c781f002e6eed326705c
[ "CC0-1.0" ]
7
2021-03-30T14:17:35.000Z
2022-01-13T02:55:42.000Z
AnimeList/admin.py
habelash/AnimeView
893620c318b25a549479c781f002e6eed326705c
[ "CC0-1.0" ]
null
null
null
from django.contrib import admin from .models import onepiece, naruto, afrosamurai, aot, bleach, \ bnha, deathnote, fairytail, fmab, haikyu, hxh, kny, onepunchman admin.site.site_header = 'Anime View' # Register your models here. class AnimeListAdmin(admin.ModelAdmin): list_display = ('Episode', 'EpisodeLin...
34.107143
67
0.8
137
0.143455
0
0
0
0
0
0
84
0.087958
df5f2416c3d993516e7f533b137098736ce6b338
1,565
py
Python
setup.py
sysid/kneed
f5a22df8281e00c62f9ee7c947b62a8aaa07f8be
[ "BSD-3-Clause" ]
1
2021-10-03T07:33:34.000Z
2021-10-03T07:33:34.000Z
setup.py
deysn/kneed
d7b75a184a86e4ac146acee09ed61d42554b048b
[ "BSD-3-Clause" ]
null
null
null
setup.py
deysn/kneed
d7b75a184a86e4ac146acee09ed61d42554b048b
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages from codecs import open as copen from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with copen(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() # get the dependencies and ins...
31.938776
86
0.688818
0
0
0
0
0
0
0
0
572
0.365495
df60a01c096b111236fb6420b1ef0f4f34a0a4bc
5,800
py
Python
apps/contact/views.py
gurnitha/django-contact-manager
58d0e1680aa8f778d4e0adb21c868058af70e502
[ "Unlicense" ]
null
null
null
apps/contact/views.py
gurnitha/django-contact-manager
58d0e1680aa8f778d4e0adb21c868058af70e502
[ "Unlicense" ]
null
null
null
apps/contact/views.py
gurnitha/django-contact-manager
58d0e1680aa8f778d4e0adb21c868058af70e502
[ "Unlicense" ]
null
null
null
# apps/contact/urls.py # Django modules from django.shortcuts import render, get_object_or_404, redirect from django.views.generic import ListView, DetailView from django.db.models import Q from django.views.generic.edit import ( CreateView, UpdateView, DeleteView ) from django.contrib.auth.forms import User...
25.108225
71
0.696724
1,211
0.208793
0
0
441
0.076034
0
0
3,851
0.663966
df6219cbe0277768d92d5d74c2d4bb86b688c418
1,808
py
Python
src/tox_ansible/tox_lint_case.py
greg-hellings/tox-ansible-collection
174ade3a634ce21c757e5e0efa1d5fbc8e0ede72
[ "MIT" ]
null
null
null
src/tox_ansible/tox_lint_case.py
greg-hellings/tox-ansible-collection
174ade3a634ce21c757e5e0efa1d5fbc8e0ede72
[ "MIT" ]
null
null
null
src/tox_ansible/tox_lint_case.py
greg-hellings/tox-ansible-collection
174ade3a634ce21c757e5e0efa1d5fbc8e0ede72
[ "MIT" ]
null
null
null
from copy import copy from pathlib import Path from .tox_base_case import ToxBaseCase from .tox_helper import Tox BASH = "cd {} && molecule {} lint -s {}" class ToxLintCase(ToxBaseCase): description = "Auto-generated lint for ansible cases" def __init__(self, cases, name_parts=None): self._cases =...
28.25
73
0.57135
1,648
0.911504
0
0
514
0.284292
0
0
423
0.23396
df6252908a12c49e3d5354f06eb6a587268a5913
421
py
Python
minpair/__init__.py
brandonlim-hs/minpair
f8ea7fcab0bfc4a6b9bc45dd2b1f0aeb089b365e
[ "MIT" ]
1
2020-12-29T04:25:55.000Z
2020-12-29T04:25:55.000Z
minpair/__init__.py
brandonlim-hs/minpair
f8ea7fcab0bfc4a6b9bc45dd2b1f0aeb089b365e
[ "MIT" ]
null
null
null
minpair/__init__.py
brandonlim-hs/minpair
f8ea7fcab0bfc4a6b9bc45dd2b1f0aeb089b365e
[ "MIT" ]
null
null
null
from minpair.generator import Generator def generator(**args): return Generator(**args) def vowel_minpair(vowels: list): return generator().vowel_minpair(vowels) __all__ = ['__version__'] try: from minpair._version import version as __version__ except ImportError: # broken installation, we don't e...
22.157895
64
0.738717
0
0
0
0
0
0
0
0
122
0.289786
df63b5b68fd38bb5792b3f99329d5814e6454f21
3,498
py
Python
simplads/simplad_monad/simplad_base_helper.py
Cogmob/simplads
8731c4a02273109187cfe601058ce797e32ba1ae
[ "MIT" ]
null
null
null
simplads/simplad_monad/simplad_base_helper.py
Cogmob/simplads
8731c4a02273109187cfe601058ce797e32ba1ae
[ "MIT" ]
null
null
null
simplads/simplad_monad/simplad_base_helper.py
Cogmob/simplads
8731c4a02273109187cfe601058ce797e32ba1ae
[ "MIT" ]
null
null
null
from .delta_type import DeltaType from .namedtuples.bind_args import BindArgs from .namedtuples.bound import Bound from .simplad_base import SimpladBase from .simplad_monad import WrappedDelta import abc ''' bind process input (~bound~, []) extract unbound and annotation from ~bound~ call bind until lowest lay...
30.417391
92
0.609777
2,944
0.841624
0
0
2,860
0.81761
0
0
617
0.176387
df63b9ef1ff1a335dfc085e74333df01240dbbac
5,215
py
Python
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
1
2016-03-20T18:32:23.000Z
2016-03-20T18:32:23.000Z
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
9
2020-06-05T17:18:43.000Z
2022-03-11T23:15:04.000Z
zubio/gym/views.py
tejesh0/Zubio.in
a0a71d2fafd21e97b5a5062215149a9756d46e0b
[ "MIT" ]
null
null
null
from django.shortcuts import render_to_response, HttpResponse from django.http import HttpRequest from django.template import RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from gym.models import FitnessListing, FitnessListingForm # from gym.forms import Docume...
27.020725
96
0.629338
273
0.052349
0
0
0
0
0
0
1,389
0.266347
df659d906d53b0c61e9d3171a0f7de7260a4b059
3,381
py
Python
algofi/v1/mint.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
38
2021-12-30T02:32:57.000Z
2022-03-23T22:09:16.000Z
algofi/v1/mint.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
4
2021-11-03T00:14:46.000Z
2022-03-28T02:17:33.000Z
algofi/v1/mint.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
8
2021-12-15T05:29:55.000Z
2022-02-08T03:45:11.000Z
from algosdk.future.transaction import ApplicationNoOpTxn, PaymentTxn, AssetTransferTxn from .prepend import get_init_txns from ..utils import Transactions, TransactionGroup from ..contract_strings import algofi_manager_strings as manager_strings def prepare_mint_transactions(sender, suggested_params, storage_accoun...
42.2625
210
0.725525
0
0
0
0
0
0
0
0
1,641
0.485359
df66ab464b13a513e66e9302a7958b1b756ed3c8
1,627
py
Python
src/spotify/migrations/0002_auto_20210413_1733.py
rryanburton/kwmgt
0e8f9657d48ed5b9021d6316caa55c982f9e2800
[ "MIT" ]
null
null
null
src/spotify/migrations/0002_auto_20210413_1733.py
rryanburton/kwmgt
0e8f9657d48ed5b9021d6316caa55c982f9e2800
[ "MIT" ]
null
null
null
src/spotify/migrations/0002_auto_20210413_1733.py
rryanburton/kwmgt
0e8f9657d48ed5b9021d6316caa55c982f9e2800
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-13 17:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('spotify', '0001_initial'), ] operations = [ migrations.AlterField( model_name='artist', name='external_urls', ...
27.576271
62
0.531039
1,536
0.944069
0
0
0
0
0
0
223
0.137062
df66daaa9747f0019148015d719b4599c2bca06f
1,794
py
Python
app/users/notification.py
AniaPeszek/ReclamationAndTicketSystem
42551732dcc9af42dc7401fbc13b8fdb6e3c132f
[ "MIT" ]
null
null
null
app/users/notification.py
AniaPeszek/ReclamationAndTicketSystem
42551732dcc9af42dc7401fbc13b8fdb6e3c132f
[ "MIT" ]
null
null
null
app/users/notification.py
AniaPeszek/ReclamationAndTicketSystem
42551732dcc9af42dc7401fbc13b8fdb6e3c132f
[ "MIT" ]
null
null
null
from app import db from flask_login import current_user from app.models import Ticket, Reclamation, User, Message from flask import url_for def send_message(EventClass, event_id, recipient): if EventClass == Ticket: content = create_msg_body_for_new_ticket(event_id) msg = Message(author=current_us...
46
109
0.746934
0
0
0
0
0
0
0
0
501
0.279264
df6719fc088a3a0aaec2c43c101efb49c9214882
40
py
Python
test/tests/test_environments/python_src/foo.py
jithindevasia/fission
4a4ba9d36d92c61c9f22b07e10ec08580957b520
[ "Apache-2.0" ]
6,891
2016-12-24T05:54:27.000Z
2022-03-31T15:55:08.000Z
test/tests/test_environments/python_src/foo.py
jithindevasia/fission
4a4ba9d36d92c61c9f22b07e10ec08580957b520
[ "Apache-2.0" ]
1,840
2016-12-24T18:50:37.000Z
2022-03-31T08:22:23.000Z
test/tests/test_environments/python_src/foo.py
jithindevasia/fission
4a4ba9d36d92c61c9f22b07e10ec08580957b520
[ "Apache-2.0" ]
839
2017-01-13T12:40:55.000Z
2022-03-29T14:44:02.000Z
def bar(): return 'THIS_IS_FOO_BAR'
13.333333
28
0.675
0
0
0
0
0
0
0
0
17
0.425
df67adfbfcad2c99ac76305f2b4d17fc4dc56088
1,891
py
Python
setup.py
yutongD/Player2Vec
22b72d75f81dd057762f0c7225a4558a25095b8f
[ "Apache-2.0" ]
447
2020-05-02T05:29:04.000Z
2022-03-30T12:48:56.000Z
setup.py
lzz-hub-dev/DGFraud
ee74ce55c9206e6c194aef01ee43246ecf226254
[ "Apache-2.0" ]
11
2020-05-03T16:36:04.000Z
2022-02-26T22:31:00.000Z
setup.py
lzz-hub-dev/DGFraud
ee74ce55c9206e6c194aef01ee43246ecf226254
[ "Apache-2.0" ]
115
2020-05-06T01:41:36.000Z
2022-03-30T12:15:05.000Z
from setuptools import find_packages, setup # read the contents of README file from os import path from io import open # for Python 2 and 3 compatibility this_directory = path.abspath(path.dirname(__file__)) # read the contents of requirements.txt with open(path.join(this_directory, 'requirements.txt'), e...
41.108696
79
0.611846
0
0
0
0
0
0
0
0
987
0.521946
df67b484bc799e1c36c9aac365dd46cca21d5596
7,200
py
Python
main.py
ojsindher/Computer-Pointer-Controller-OPENVINO
7e6c286d0eb90005cc5fc881439f09776c31755e
[ "MIT" ]
null
null
null
main.py
ojsindher/Computer-Pointer-Controller-OPENVINO
7e6c286d0eb90005cc5fc881439f09776c31755e
[ "MIT" ]
null
null
null
main.py
ojsindher/Computer-Pointer-Controller-OPENVINO
7e6c286d0eb90005cc5fc881439f09776c31755e
[ "MIT" ]
null
null
null
import os import cv2 import time import numpy as np import pyautogui import matplotlib.pyplot as plt from input_feeder import InputFeeder from mouse_controller import MouseController from face_detection import Model_fd from gaze_estimation import Model_ge from facial_landmarks_detection import Model_fld from head_pose_...
47.368421
279
0.647778
0
0
0
0
0
0
0
0
2,117
0.294028
df6859e42b7787e019db751ab64cf0c502a0c439
425
py
Python
forumsweats/commands/unmoot.py
duckiecousingaming/forum-sweats
6addf3159e59902a6905c25240bf54f8a7a00e76
[ "MIT" ]
10
2020-10-15T18:08:53.000Z
2021-12-11T13:15:05.000Z
forumsweats/commands/unmoot.py
duckiecousingaming/forum-sweats
6addf3159e59902a6905c25240bf54f8a7a00e76
[ "MIT" ]
59
2020-10-06T23:19:25.000Z
2022-03-06T14:16:31.000Z
forumsweats/commands/unmoot.py
duckiecousingaming/forum-sweats
6addf3159e59902a6905c25240bf54f8a7a00e76
[ "MIT" ]
13
2020-10-19T20:46:47.000Z
2022-03-05T20:17:40.000Z
from ..commandparser import Member from ..discordbot import unmoot_user import discord name = 'unmoot' channels = None roles = ('helper', 'trialhelper') args = '<member>' async def run(message, member: Member): 'Removes a moot from a member' await unmoot_user( member.id, reason=f'Unmooted by {str(message.autho...
20.238095
50
0.717647
0
0
0
0
0
0
251
0.590588
141
0.331765
df69316b0035a262181610684f3b3f628ccdb9dd
1,531
py
Python
datareduction/TestPCA_MNIST.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
datareduction/TestPCA_MNIST.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
datareduction/TestPCA_MNIST.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans from sklearn import datasets from datareduction.bayesian_pca_DR import BayesianPCA_DR from prml.feature_extractions import BayesianPCA, PCA from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets...
27.339286
70
0.70934
0
0
0
0
0
0
0
0
85
0.055519
df6968e55d2d2269a343f9563ee32b10b7d73c51
1,525
py
Python
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2019-09-11T09:41:11.000Z
2019-09-11T09:41:11.000Z
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
research/adversarial_text/pretrain.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 ...
32.446809
81
0.699672
0
0
0
0
0
0
0
0
970
0.636066
df6a3a82390987ac2500ff7fb4289e4ffe93a4b6
5,520
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/SA/Time.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/SA/Time.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/SA/Time.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
# -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Version 2.0 (the "Lice...
37.297297
104
0.655978
3,254
0.589493
0
0
0
0
0
0
2,720
0.492754
df6a3f97128cd0432d6dd7f8b604aa0b9b234860
4,180
py
Python
p3iv_utils_polyline/src/p3iv_utils_polyline/interpolated_polyline_segment.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
4
2021-07-27T06:56:22.000Z
2022-03-22T11:21:30.000Z
p3iv_utils_polyline/src/p3iv_utils_polyline/interpolated_polyline_segment.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
null
null
null
p3iv_utils_polyline/src/p3iv_utils_polyline/interpolated_polyline_segment.py
fzi-forschungszentrum-informatik/P3IV
51784e6dc03dcaa0ad58a5078475fa4daec774bd
[ "BSD-3-Clause" ]
1
2021-10-10T01:56:44.000Z
2021-10-10T01:56:44.000Z
# This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV), # copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory) import numpy as np import warnings def hypot(a, b): # do not use np.hypot(a, b); may not wor...
30.735294
118
0.539952
3,794
0.907656
0
0
821
0.196411
0
0
1,301
0.311244
df6adfda0b85c502e51e06f22cd6229fd0a3053b
118
py
Python
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/paken/pakencamp-2020-day1/b/main.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): x = list(input()) print(max(x)) if __name__ == "__main__": main()
10.727273
26
0.491525
0
0
0
0
0
0
0
0
33
0.279661
df6ca557f603a97a74f408033965ff6cad9e9699
6,901
py
Python
python/build/lib/sts/sts.py
BrandoZhang/qcloud-cos-sts-sdk
84b5fdfaaba00ed7eb1c35146e693b22a07fc877
[ "MIT" ]
1
2019-07-09T09:35:44.000Z
2019-07-09T09:35:44.000Z
python/build/lib/sts/sts.py
BrandoZhang/qcloud-cos-sts-sdk
84b5fdfaaba00ed7eb1c35146e693b22a07fc877
[ "MIT" ]
null
null
null
python/build/lib/sts/sts.py
BrandoZhang/qcloud-cos-sts-sdk
84b5fdfaaba00ed7eb1c35146e693b22a07fc877
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import hashlib import hmac import time try: from urllib import quote # Python 2.X except ImportError: from urllib.parse import quote # Python 3+ from functools import reduce import json import base64 import requests import random class Sts: def __init__(self, config={}): ...
31.655963
118
0.555282
6,671
0.960547
0
0
1,172
0.168754
0
0
1,013
0.14586