hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b4fc5de33e8b1aa1ab1e0d787882387f1e99ef8d
6,125
py
Python
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/cisco/nxos/tests/unit/modules/network/nxos/test_nxos_bgp_af.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
31.735751
99
0.577306
b4fdebbc09fb6614f7cb781e964938b2e7e78dab
7,253
py
Python
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
29
2015-01-18T22:56:23.000Z
2020-11-10T21:28:27.000Z
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
786
2015-01-06T16:10:18.000Z
2022-03-16T11:10:50.000Z
devilry/apps/core/admin.py
devilry/devilry-django
9ae28e462dfa4cfee966ebacbca04ade9627e715
[ "BSD-3-Clause" ]
15
2015-04-06T06:18:43.000Z
2021-02-24T12:28:30.000Z
import json from django.contrib import admin from django.utils.html import format_html from devilry.apps.core.models import AssignmentGroup, Subject, Period, Assignment, PeriodTag, \ CandidateAssignmentGroupHistory, ExaminerAssignmentGroupHistory, Examiner, RelatedStudent, RelatedExaminer, \ AssignmentGroupHi...
23.548701
113
0.64718
b4ff7a2689f88f39799b28e0ab3ec620248833a9
168
py
Python
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
myvenv/lib/python3.5/site-packages/IPython/utils/traitlets.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
from __future__ import absolute_import from warnings import warn warn("IPython.utils.traitlets has moved to a top-level traitlets package.") from traitlets import *
21
75
0.809524
370211a081a208a56f69edfdacecf44b58bc1ce6
26,188
py
Python
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
2
2016-08-23T14:22:15.000Z
2017-09-28T19:45:26.000Z
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
4
2019-01-24T11:01:17.000Z
2022-02-28T04:28:07.000Z
airflow/providers/google/cloud/operators/vertex_ai/auto_ml.py
arezamoosavi/airflow
c3c81c3144386d1de535c1c5e777270e727bb69e
[ "Apache-2.0" ]
6
2018-04-09T07:46:05.000Z
2019-07-16T00:13:15.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...
41.967949
107
0.688941
370239612665db191d987f35efe965057710194c
18
py
Python
ret_benchmark/utils/log_info.py
alibaba-edu/Ranking-based-Instance-Selection
06e7fa2061d42f5e8181f7181fe591fc3d294f8d
[ "MIT" ]
20
2021-04-15T09:15:28.000Z
2022-03-30T02:31:20.000Z
vit_retri/utils/log_info.py
ludics/ViT-Retri
4a17ae8392a0f8145a2f5ee37854e76503c26009
[ "MIT" ]
1
2021-06-03T05:51:52.000Z
2021-06-19T05:52:33.000Z
vit_retri/utils/log_info.py
ludics/ViT-Retri
4a17ae8392a0f8145a2f5ee37854e76503c26009
[ "MIT" ]
5
2021-05-17T09:05:38.000Z
2022-02-28T10:10:50.000Z
log_info = dict()
9
17
0.666667
3702fd553a25de275c7515e72b1efc8cf1822fe0
293
py
Python
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
Ex008.py
GabrielSilva2y3d/Curso-em-video-python-exercicios
1098ccb3f8c21b411e6b6e6dc1c9bb339e80b785
[ "MIT" ]
null
null
null
print('Unidades de Medida') m = float(input('Digite uma distncia em metros: ')) print(f'A distancia de {m}m corresponde a: ') km = m/1000 hm = m/100 dam = m/10 m = m dm = m * 10 cm = m * 100 mm = m * 1000 print(f"({km}km - {hm}hm - {dam}dam - {m}m - {dm:.0f}dm - {cm:.0f}cm - {mm:.0f}mm)")
20.928571
84
0.576792
3707d2a27bdec3d6c78225064cc9a3813466253a
7,472
py
Python
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2019-10-03T13:58:29.000Z
2019-10-03T13:58:29.000Z
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
null
null
null
unit_tests/view_official_search/test_enter_search_ref.py
LandRegistry/maintain-frontend
d92446a9972ebbcd9a43a7a7444a528aa2f30bf7
[ "MIT" ]
1
2021-04-11T05:24:57.000Z
2021-04-11T05:24:57.000Z
from maintain_frontend import main from flask_testing import TestCase from unit_tests.utilities import Utilities from flask import url_for from unittest.mock import patch, MagicMock from maintain_frontend.dependencies.session_api.session import Session from maintain_frontend.models import SearchDetails
44.213018
101
0.701017
37096124c4cc930bde39de01b5eb32a7bab3bf08
5,285
py
Python
models/quantization.py
aliyun/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
102
2019-11-08T08:45:56.000Z
2022-03-03T05:22:14.000Z
models/quantization.py
DefTruth/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
8
2019-12-02T08:44:36.000Z
2021-08-12T13:35:03.000Z
models/quantization.py
DefTruth/alibabacloud-quantization-networks
05522aabebf5188df5a92b26f96f5ebded806ca9
[ "Apache-2.0" ]
30
2019-11-22T05:16:05.000Z
2021-08-04T07:18:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # quantization.py is used to quantize the activation of model. from __future__ import print_function, absolute_import import torch import torch.nn.functional as F from torch.nn import init import torch.nn as nn import pickle from torch.nn.parameter import Parameter from to...
36.19863
106
0.60246
3709f8e7baa86d5eba77825422a9508af95fef1e
2,240
py
Python
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
2
2021-03-28T08:03:01.000Z
2021-09-19T08:10:02.000Z
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
null
null
null
bitstream/decoder/lib/annotations.py
mfkiwl/NEM-Relay-CGRA
1ad59b83b9a61ee56da43e5491a95d2f4e6c2ac4
[ "BSD-3-Clause" ]
2
2021-03-28T08:02:57.000Z
2021-11-06T05:14:17.000Z
#!/usr/bin/python
33.432836
97
0.614286
370a07874deea75d3ffba660840d9b1109220320
789
py
Python
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
2
2018-04-27T00:15:03.000Z
2018-05-23T21:32:29.000Z
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
6
2018-04-29T22:03:47.000Z
2018-05-19T00:46:14.000Z
comprasnet/pages/__init__.py
oncase/python-comprasnet
5cc974873a8c1025d3f572703bf0af02c3d88b59
[ "Apache-2.0" ]
3
2019-10-09T13:11:48.000Z
2020-06-19T07:31:41.000Z
import logging from collections import OrderedDict log = logging.getLogger('comprasnet')
21.324324
70
0.666667
370bb4fe068e3ba3982bd58f8f7bad72c2b4ecd4
257
py
Python
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
demos/floc_sample/createSiteList.py
apakrash/floc_simulator
6276d9c94e953fb704ca687e7234658a699a434c
[ "MIT" ]
null
null
null
import json siteList = [] for i in range(1,20): siteList.append(input(f'Enter site {i}: ')) print(siteList) #print(siteList) with open('host_list.json', 'w', encoding='utf-8') as f: json.dump(siteList, f, ensure_ascii=False, indent=4)
21.416667
57
0.645914
370ec5a0db02fa84a2f69c10a570dca652b97712
264
py
Python
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/g_year/schema_instance/nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.nist_data.atomic.g_year.schema_instance.nistschema_sv_iv_atomic_g_year_min_exclusive_4_xsd.nistschema_sv_iv_atomic_g_year_min_exclusive_4 import NistschemaSvIvAtomicGYearMinExclusive4 __all__ = [ "NistschemaSvIvAtomicGYearMinExclusive4", ]
44
202
0.897727
370f9cd890c1720a09c6e585711c280c23263c07
39
py
Python
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
checkov/dockerfile/__init__.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
from checkov.dockerfile.checks import *
39
39
0.846154
3711dfaf9aadca685cb6c92e813e94fd2708d1c2
4,354
py
Python
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
3,041
2017-11-22T16:23:46.000Z
2022-03-31T15:19:39.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,506
2017-11-22T15:44:34.000Z
2022-03-31T18:40:05.000Z
tests/core/contracts/test_contract_constructor_encoding.py
geofferyj/web3.py
b406663f59d5b228487951f019eaf45b3eb9413b
[ "MIT" ]
1,095
2017-11-22T18:20:22.000Z
2022-03-31T13:05:31.000Z
import pytest from eth_utils import ( encode_hex, remove_0x_prefix, ) def test_contract_constructor_encoding_encoding_warning(web3, WithConstructorArgumentsContract): with pytest.warns( DeprecationWarning, match='in v6 it will be invalid to pass a hex string without the \"0x\" prefix...
36.588235
175
0.714515
371439527f71f5b5ea0e623382624347691d2251
832
py
Python
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
Pasture_Growth_Modelling/initialisation_support/define_reseed_params.py
Komanawa-Solutions-Ltd/SLMACC-2020-CSRA
914b6912c5f5b522107aa9406fb3d823e61c2ebe
[ "Apache-2.0" ]
null
null
null
""" Author: Matt Hanson Created: 18/12/2020 9:30 AM """ from Pasture_Growth_Modelling.initialisation_support.inital_long_term_runs import run_past_basgra_irrigated, \ run_past_basgra_dryland, plot_multiple_results import pandas as pd import numpy as np if __name__ == '__main__': reseed=True irr_ox = ru...
41.6
110
0.706731
3714521e447b9677165a8e7963ed19bc3ce14d21
64
py
Python
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
1
2021-06-18T09:16:58.000Z
2021-06-18T09:16:58.000Z
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
vintageColorizer/__init__.py
Team-16-B/VintageColorizer
80c502fae32f5d4ca92727f2ffa63a48331bd8a8
[ "MIT" ]
null
null
null
from vintageColorizer._device import _Device device = _Device()
21.333333
44
0.828125
3714939ff710373dc09f1b61b849805c96854964
5,570
py
Python
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
2
2018-12-08T01:11:17.000Z
2018-12-14T22:54:04.000Z
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
null
null
null
system_maintenance/admin.py
mfcovington/django-system-maintenance
f28c5480ddfc862e7114846ae452ec73ed747029
[ "BSD-3-Clause" ]
1
2020-11-21T18:25:50.000Z
2020-11-21T18:25:50.000Z
from django import forms from django.contrib import admin from .models import (DocumentationRecord, Hardware, MaintenanceRecord, MaintenanceRecordRelationship, MaintenanceType, Software, SysAdmin, System) admin.site.register(SysAdmin)
22.191235
79
0.597846
371517cfafbdaa11e93899d8223418ed40816171
859
py
Python
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
4
2019-03-30T00:44:36.000Z
2021-05-19T13:50:11.000Z
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
null
null
null
BulkSmsApi/Parse.py
DonnC/BulkSmsZW-Api
9e4559bbff1c448a9ebb9b271ecdc7044f00801a
[ "MIT" ]
1
2019-08-21T20:24:16.000Z
2019-08-21T20:24:16.000Z
# handle url encoding # do 'quote' on url from urllib.parse import quote
26.84375
63
0.582072
371903e153c996cac483357a3df834531c766dc4
9,579
py
Python
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
151
2017-06-29T08:09:33.000Z
2022-03-07T21:50:27.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
363
2017-06-19T15:01:12.000Z
2022-03-16T08:34:35.000Z
ldap2pg/format.py
jeanpommier/ldap2pg
58a193ac79c13b99c13a2b963492678f553731d1
[ "PostgreSQL" ]
31
2017-06-16T08:40:54.000Z
2021-11-11T12:37:01.000Z
import itertools from copy import deepcopy from string import Formatter from .utils import unicode class AttributesMap(dict): # Mapping for format variables dict. # # It's a dictionnary with variable name as key and a set of attributes as # value. The variable name are __self__ for accessing LDAPEnt...
29.383436
79
0.549431
37192bf521db3c020565d1e29a16401738175408
1,190
py
Python
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
null
null
null
bozkurt-port-scanner V1.0.py
B3zkurt/bozkurt-port-scanner
5a1f485ab042abc71d5307e433d845c7adbcf168
[ "BSL-1.0" ]
1
2022-02-11T18:24:13.000Z
2022-02-11T18:24:13.000Z
from socket import * banner() scan()
36.060606
107
0.428571
371a9f6e54991beac7038e5bc052194b2305b7a7
5,413
py
Python
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
ner/evaluation/evaluator.py
BonnierNews/lukas-ner-model
1f7f688f9b0f1e7b7cb66c42f188358d27a0be09
[ "MIT" ]
null
null
null
from string import punctuation import random import jsonlines import regex def evaluate(self, entities, tags, min_thresh): """Performs evaluation.""" # True positives, all positives, relevant per = {"tp": [], "ap": [], "rel": []} org = {"tp": [], "ap": [], "rel": []} loc =...
33.621118
119
0.53741
371ae39ecd84c32c520c1b09dada1780df5bee65
9,456
py
Python
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
5
2016-05-12T08:48:41.000Z
2018-07-17T00:48:32.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
1
2022-01-16T12:18:50.000Z
2022-01-16T12:18:50.000Z
util/graph.py
natduca/ndbg
f8da43be62dac18072e9b0e6e5ecd0d1818aea4d
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 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,...
27.893805
99
0.64467
371b4de36b52d84cac233275c0bbe8ca788c6d87
825
py
Python
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
1
2022-02-20T10:00:28.000Z
2022-02-20T10:00:28.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
8
2022-01-10T01:35:58.000Z
2022-01-16T02:49:41.000Z
files/sources_raw/multiwordnet/jpn/jpn2tab.py
rvjansen/flp
989b6c0781b231e4cf2d4c1c0300e20f3f2f9aa6
[ "CC0-1.0" ]
null
null
null
#!/usr/share/python # -*- encoding: utf-8 -*- # # Extract synset-word pairs from the Japanese Wordnet # import sys import codecs #import re wndata="/home/bond/svn/wnja-code/tab/" wnname = "Japanese Wordnet" wnlang = "jpn" wnurl = "http://nlpwww.nict.go.jp/wn-ja/" wnlicense = "wordnet" # # header # outfile = "wn-dat...
21.710526
67
0.613333
371c0cd9f1541bc9d1d7743f22dc97957977dc77
5,701
py
Python
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
1
2019-09-06T14:06:50.000Z
2019-09-06T14:06:50.000Z
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
util/loadtester/scripts/mnist_rest_locust.py
lorello/seldon-core
9509d41856071c72c419f7ec805c39be38a41249
[ "Apache-2.0" ]
null
null
null
from locust.stats import RequestStats from locust import HttpLocust, TaskSet, task, events import os import sys, getopt, argparse from random import randint,random import json from locust.events import EventHook import requests import re import time import resource import socket import signal from socket import error a...
36.544872
208
0.619891
371c11466bbee73e5a5eb806d61588dcac84b8ca
106
py
Python
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
start.py
fahimfarhan/python-Package-Demo
ce4fe79dd0fe9494892baf620aca9d88107894a7
[ "MIT" ]
null
null
null
from measure import metrics, norms if __name__ == "__main__": metrics.metric(1) norms.norms()
11.777778
34
0.669811
371d6857f471bf5c4303b94e13030507ce47c281
8,475
py
Python
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
10
2018-09-27T23:03:18.000Z
2018-12-05T23:32:33.000Z
tests/587/test_engine_integration.py
CSUN-COMP587-F18/keras
5beed1cae876f570f92ee49b532aef2f97176bb2
[ "MIT" ]
null
null
null
import threading import pytest import numpy as np import pandas as pd import sys from keras import losses from keras.engine import Input from keras.engine.training import Model from keras.engine import training_utils from keras.layers import Dense, Dropout from keras.utils.generic_utils import slice_arrays from keras....
32.224335
83
0.623717
371f4ea7362504af95802b40a1ae8e406cb61f3a
10,522
py
Python
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
5
2015-10-05T11:54:59.000Z
2021-07-07T05:08:56.000Z
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
null
null
null
tests/test_directory_view_get_context_data.py
wildfish/django-directory
7a097e1eca66a2e5f5ae02905b92ecc37ae0db34
[ "MIT" ]
1
2016-03-16T07:59:50.000Z
2016-03-16T07:59:50.000Z
from django.http import QueryDict from django.test import TestCase, RequestFactory from directory.views import DirectoryView from .models import TestModelB, MultipleFieldModel
35.789116
151
0.642558
3720c3899d53ebbf6a2778fd6e3ce1432176eae2
17,466
py
Python
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
1
2020-09-27T11:22:13.000Z
2020-09-27T11:22:13.000Z
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
entrypoint.py
lucteo/action-cxx-toolkit
f181ba4199669f9a4ca17c7786499e33d2313d13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, subprocess from dataclasses import dataclass # Input variables: # INPUT_CHECKS # INPUT_DEPENDENCIES # INPUT_DIRECTORY # INPUT_BUILDDIR # INPUT_CC # INPUT_CFLAGS # INPUT_CXXFLAGS # INPUT_CONANFLAGS # INPUT_CMAKEFLAGS # INPUT_CTESTFLAGS # INPUT_MAKEFLAGS # ...
33.914563
214
0.631455
37216d3efdd9c931e8fe08aa0d3a0f964dd8a029
1,811
py
Python
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_power_of_four.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
20.816092
51
0.617891
3721f9b4857aebb54eda364b32c37163c9b97b18
561
py
Python
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
1
2022-01-19T07:11:05.000Z
2022-01-19T07:11:05.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
10
2021-11-07T14:17:07.000Z
2022-03-30T18:24:48.000Z
vanir/core/exchange/urls.py
guanana/vanir
b0bb9c874795a5803e6437ff0105ea036f1ae7b6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import ExchangeCreateView, ExchangeDeleteView, ExchangeDetailView, ExchangeListView, ExchangeUpdateView app_name = "exchange" urlpatterns = [ path("", ExchangeListView.as_view(), name="exchange_list"), path("add/", ExchangeCreateView.as_view(), name="exchange_add"), ...
43.153846
115
0.736185
37225c968e5f417234da031f05ff2c4ef3bc4d89
3,579
py
Python
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
mycv/utils/pbar_utils.py
duanzhiihao/mycv
184b52f7a5c1b6f603122d4f4050952b65ba0ead
[ "MIT" ]
null
null
null
from collections import OrderedDict from mycv.utils.general import ANSI if __name__ == '__main__': main()
29.825
82
0.531713
372305c2d1fb8224de3b77aaf1f47a6d32e75ba4
2,939
py
Python
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
8
2020-09-10T13:40:07.000Z
2022-03-10T22:52:44.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
294
2020-05-11T12:17:17.000Z
2022-03-31T22:07:52.000Z
example_scripts/tidetable_tutorial.py
British-Oceanographic-Data-Centre/COAsT
4d3d57c9afb61a92063b665626c1828dd2998d2b
[ "MIT" ]
4
2020-05-28T10:43:56.000Z
2021-09-07T10:40:09.000Z
#!/usr/bin/env python3 """ Tutorial for processing tabulated tide gauge data Created on Mon Oct 12 22:30:21 2020 You might scrape tidal highs and lows from a website such as <a title="NTSLF tidal predictions" href="https://www.ntslf.org/tides/tidepred?port=Liverpool"> <img alt="NTSLF tidal predictions" src="https://...
37.202532
103
0.737326
3724a438c48806b5fed578c995c9254f9535f7f6
1,373
py
Python
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
72
2017-05-22T18:22:58.000Z
2019-03-11T22:49:00.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
1
2017-06-09T05:26:43.000Z
2017-08-22T11:41:41.000Z
ai_challenge/env/utils.py
village-people/flying-pig
c86b589aadb02dbfd42a917a388c2b8488ecd338
[ "MIT" ]
3
2017-05-25T08:49:27.000Z
2019-09-09T18:41:54.000Z
# Village People, 2017 from argparse import ArgumentParser def parse_clients_args(endpoints): """ Return an array of tuples (ip, port) extracted from ip:port string :param args_clients: :return: """ return [str.split(str(client), ':') for client in endpoints]
41.606061
80
0.611071
3725a03ff33ceb614141f34ea4cafeace14f8296
721
py
Python
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
null
null
null
practice/leetcode/lc0238_product_excpt_self.py
deehzee/dsalgo
025bf292e5a2c4e079cecb0c284ab6aeae9a07f4
[ "MIT" ]
1
2020-08-06T16:50:07.000Z
2020-08-06T16:50:07.000Z
def product_except_self(A): ''' 238. Product of Array Except Self ================================= Given an array A of n integers (n > 1), return an array where the i-th element is the product of all but the i-th element of A. Restrictions: ------------- 1. Don't use division 2. Us...
24.033333
74
0.482663
3726727223ff1c3c48169567a42d07d0a4165647
452
py
Python
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
2
2021-04-02T07:58:50.000Z
2021-04-02T08:37:00.000Z
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
pnuml/learner/utils/weight_initializer.py
Snowapril/pnu-machine-learning-2021
bba2410fece99aded2b118cb1ea98de3d250cb87
[ "MIT" ]
null
null
null
import numpy as np def xavier_uniform_weight(shape, seed=0): """ initialize weight matrix with xavier_uniform_initializer. matrix size will be shape arguments """ np.random.seed(seed) scale = 1 / max(1., np.sum(shape) / 2.) limit = np.sqrt(scale * 3.) return np.random.uniform(-limit, l...
22.6
61
0.654867
372749ced3100fd6460b5bb6d9752ed56e2a92b1
5,952
py
Python
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
1
2015-11-05T10:26:49.000Z
2015-11-05T10:26:49.000Z
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
eventtools/tests/models/occurrence.py
atkinson/glamkit-eventtools
ed0b06c22ca3390506f4fac327493f871b0b4520
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.test import TestCase from eventtools.tests._inject_app import TestCaseWithApp as AppTestCase from eventtools.tests.eventtools_testapp.models import * from datetime import date, time, datetime, timedelta from eventtools.tests._fixture import bigfixture, reload_films from eventtools.ut...
38.901961
193
0.649362
37289cb1a30c4bf356b2cf2d3ff9602d8438b905
1,756
py
Python
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
dslowikowski/commcare-hq
ad8885cf8dab69dc85cb64f37aeaf06106124797
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
custom/m4change/migrations/0004_auto__add_field_mcctstatus_modified_on.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
46.210526
193
0.602506
372a1246ed0dcfcdbea326ad609c7b48827fe89f
6,231
py
Python
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
3
2021-06-02T04:07:35.000Z
2021-12-27T20:21:46.000Z
src/data.py
gkovacs81/argus_server
97ebf705ed3e61a69bd561faf495e2c19bda510d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse from sqlalchemy.exc import ProgrammingError from monitoring.constants import ROLE_ADMIN, ROLE_USER from models import Keypad, KeypadType, Sensor, SensorType, User, Zone from monitoring.database import Session from models import metadata SENSOR_TYPES = [ SensorType(1, name...
36.652941
132
0.67437
372abdbaa3a72f1cf8f94702fe632481d4798115
1,595
py
Python
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
1
2018-01-10T21:41:27.000Z
2018-01-10T21:41:27.000Z
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
src/actionFactory.py
koleberd/goaldependency
b4572758c405c90b33408497429531db82f5d22b
[ "FTL", "CNRI-Python", "CECILL-B", "AAL" ]
null
null
null
from action import * from playerState import * import gameController import os.path import json ### #parses json containing known actions #produces actions that return a specified PS ###
28.482143
131
0.592476
372d79c40069d52a6abd36688789216fbc3fb69f
653
py
Python
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
61
2019-10-07T19:20:15.000Z
2022-03-09T21:28:18.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
9
2020-03-14T21:24:05.000Z
2021-06-01T13:27:45.000Z
src/pybullet_planning/interfaces/kinematics/__init__.py
mcx/pybullet_planning
cc90e8620dd61acc7fc4246638d91f222b64e77a
[ "MIT" ]
11
2020-08-20T12:54:55.000Z
2022-01-27T06:05:51.000Z
""" ******************************************************************************** interfaces.kinematics ******************************************************************************** .. currentmodule:: pybullet_planning.interfaces.kinematics Kinematics interface -------------------- .. autosummary:: :toctre...
21.766667
80
0.537519
372e1a3008c4b808410b6df31c41c5b99e78576d
2,904
py
Python
seeq/models/lattice_plot.py
juanjosegarciaripoll/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
13
2019-07-31T17:00:37.000Z
2021-02-02T18:34:34.000Z
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
null
null
null
seeq/models/lattice_plot.py
Ydeh22/seeq
3554550c3348fbaae398737cf4ae5510a34d6665
[ "MIT" ]
5
2019-11-04T17:54:40.000Z
2022-02-16T23:04:56.000Z
import matplotlib.collections import matplotlib.pyplot as plt import matplotlib.tri as tri import scipy.sparse as sp import numpy as np def plot_lattice(L, ax=None, dot='.'): """Plot a 2D or 3D representation of the lattice on the given axis, or create one if none is given. Parameters ---------- ...
31.225806
79
0.551653
372eaae9ab2c16dd902249d10915b4c6382a3850
3,143
py
Python
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
1
2016-05-27T19:58:53.000Z
2016-05-27T19:58:53.000Z
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
fake_modules.py
meissnert/StarCluster-Plugins
a84dc5f62b5a37e7843c0fb4ac69011ecd766e51
[ "MIT" ]
null
null
null
from starcluster.clustersetup import ClusterSetup from starcluster.logger import log
69.844444
130
0.673242
372ec5bb74cde700d6daf808f9e274dcb999cf1b
49
py
Python
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-13T20:15:52.000Z
2018-10-13T20:15:52.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
1
2018-10-17T04:04:57.000Z
2018-10-17T04:04:57.000Z
Nino/Files/config.py
rdhuper/Project_Crypto
49e22c1f7d01e4689073f89d2c79a6cf419e47e3
[ "MIT" ]
null
null
null
# Enter your password for SQL sqlpw = "password"
16.333333
29
0.734694
372f233c0bcb9fb29c757ffe4ac5e45a5fb9ba0e
10,696
py
Python
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
nl2codemodel/src/nltocode/eval/score.py
SmartDataAnalytics/codeCAI
18a31541506d89b72cd07e498ef43dfa657877f8
[ "MIT" ]
null
null
null
import argparse import logging as log import re from collections import defaultdict from difflib import SequenceMatcher from os.path import commonprefix import pandas as pd import torch from torch.nn.functional import nll_loss, log_softmax from nltocode.datamodule import NL2CodeTrainDataModule from nltocode.grammar.g...
39.036496
117
0.703628
372f64e338493a2a24b995d3c6180d315a7bd7b3
11,735
py
Python
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
5
2021-01-23T06:43:01.000Z
2022-02-22T06:40:03.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
4
2022-02-09T04:44:50.000Z
2022-02-09T04:48:26.000Z
fast_tmp/admin/utils_bak.py
Chise1/fastapi-cli
e8e1bb20279880ea4de9c3358e49412dc644c98a
[ "Apache-2.0" ]
3
2021-01-13T09:40:42.000Z
2021-01-14T03:18:26.000Z
from typing import List, Optional, Type from tortoise import BackwardFKRelation, ForeignKeyFieldInstance, ManyToManyFieldInstance, Model from tortoise.fields import ( BigIntField, BooleanField, CharField, DateField, DatetimeField, DecimalField, FloatField, IntField, JSONField, S...
40.32646
100
0.545718
37319bdaa284f723a5abf8c32c3ba570386d947b
5,943
py
Python
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
cv/yolov3/yolov3_gpu/src/detection.py
hellowaywewe/deeplearning
fcd12cb2cc46f17725b139571891b9c212e999d5
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict import numpy as np import sys import cv2 import pandas as pd label_list = [ 'Bird_spp', 'Blue_sheep', 'Glovers_pika', 'Gray_wolf', 'Himalaya_marmot', 'Red_fox', 'Snow_leopard', 'Tibetan_snowcock', 'Upland_Buzzard', 'White-lipped_deer' ]
38.341935
119
0.502272
2e92b47f2d6ffa829108d4338b27ad0da0819ace
7,348
py
Python
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
RSNA Pneumonia Detection Challenge/Retina_net model.py
YakinRubaiat/Kaggle-competition
3c9cc9f2ef180bbde2a17c1332c0d13eca0e4a37
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import pandas as pd import numpy as np import scipy.misc import pydicom import glob import sys import os import pandas as pd import base64 from IPython.display import HTML # In[ ]: from scipy.ndimage.interpolation import zoom # In[ ]: get_ipython().system('gi...
24.331126
274
0.651606
2e92f90fb3e8266f62a37e3918ac6d4ec8f50ca0
369
py
Python
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
2
2019-12-25T16:24:43.000Z
2022-01-16T14:43:00.000Z
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
null
null
null
qt-python-ui/qt-python.py
mortengunnufsen/examples-Qt
83e1b4c394863335852acc445fc0cf687ee7f9b6
[ "BSD-3-Clause" ]
5
2020-02-25T09:04:39.000Z
2020-12-28T21:14:00.000Z
#!/usr/bin/env python import sys from qtpy import QtWidgets if __name__ == '__main__': window()
17.571429
42
0.636856
2e9316c66aa980440c5346bc184412999eb69eb1
7,321
py
Python
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
1
2020-02-24T03:47:17.000Z
2020-02-24T03:47:17.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
21
2020-01-20T13:29:51.000Z
2022-03-12T00:11:12.000Z
core/admin.py
StateArchivesOfNorthCarolina/ratom_server
7fc2c179f1baee85c4b95cdf64a2d5d690d2482e
[ "MIT" ]
3
2020-08-27T09:20:34.000Z
2022-01-24T06:20:14.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils.html import format_html from django.db.models import Count from django.template.defaultfilters import filesizeformat from django.utils.translation import gettext_lazy as _ from core import models as ratom
29.639676
130
0.511406
2e940fa64dc6865ad17f9dcc7e74b2aaa6bf5fca
148
py
Python
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
2
2019-06-12T13:13:00.000Z
2021-04-08T18:05:53.000Z
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
setup.py
Syndelis/cellular-automata
0fd38cb03e83c3a4fde2e5b4acc994dc1e189d30
[ "Xnet", "X11" ]
null
null
null
# Cython compiler from distutils.core import setup from Cython.Build import cythonize setup(name='CA base class', ext_modules=cythonize("ca.pyx"))
24.666667
60
0.790541
2e963cd2a0462916e761886c42ba2584a9589e19
2,762
py
Python
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
plugins/ibm_qradar/unit_test/test_start_ariel_search.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
null
null
null
import os import sys from unittest.mock import patch from unittest import TestCase from insightconnect_plugin_runtime.exceptions import ( PluginException, ConnectionTestException, ) from icon_ibm_qradar.actions.start_ariel_search import StartArielSearch from unit_test.helpers.ariel_search import ArielSearchH...
32.116279
100
0.652788
2e97acf2470e0d21cbc675a63fe3d4483f62b6c4
682
py
Python
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/services/test/build_url_test.py
asdfghjjklllllaaa/infra
8f63af54e46194cd29291813f2790ff6e986804d
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/services/test/build_url_test.py
xinghun61/infra
b5d4783f99461438ca9e6a477535617fadab6ba3
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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. from services import build_url from waterfall.test.wf_testcase import WaterfallTestCase
34.1
72
0.73607
2e993f4791d05c0ec353fdb6e68bb9e8aa5e5559
1,677
py
Python
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
1
2018-11-26T16:43:36.000Z
2018-11-26T16:43:36.000Z
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
evaluator/evaluator_matrix.py
CryptoRichy/OctoBot
1ca5bd2ba4b8fc09859518fcb2a62f74a1435019
[ "Apache-2.0" ]
null
null
null
from config.cst import EvaluatorMatrixTypes from tools.evaluators_util import check_valid_eval_note
37.266667
79
0.630292
2e9aa47756ac21e3388a034195d347bd40bff78f
3,615
py
Python
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
null
null
null
deepjet_geometric/datasets/djc_v2_dataset.py
lgray/deepjet-geometric
2efe7ef80fecb470d3ef55a4ec67bbb19b45a846
[ "MIT" ]
3
2021-02-10T13:31:54.000Z
2022-03-24T17:24:05.000Z
import os.path as osp import glob import h5py import numpy as np from tqdm import tqdm import torch from torch_geometric.data import Data from torch_geometric.data import Dataset
30.897436
92
0.517289
2e9ab8241a8266c7db8bfa58384994c04aa38a39
1,427
py
Python
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat_integrationtests/functional/test_versionnegotiation.py
noironetworks/heat
7cdadf1155f4d94cf8f967635b98e4012a7acfb7
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# 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, software # d...
38.567568
78
0.685354
2e9af0aa8d93c643754acda802091390f3f473d0
1,848
py
Python
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
1
2022-01-25T06:28:51.000Z
2022-01-25T06:28:51.000Z
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
app/plugins/notife.py
MoeZilla/BlueMoonVampireBot
af074f846b56e7a4f262740d7b65b32ab11a4e42
[ "MIT" ]
null
null
null
""" MIT License Copyright (C) 2021-2022, NkSama Copyright (C) 2021-2022 Moezilla Copyright (c) 2021, Sylviorus, <https://github.com/Sylviorus/BlueMoonVampireBot> This file is part of @BlueMoonVampireBot (Antispam Telegram Bot) Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
37.714286
80
0.765152
2e9bd9729c6377e6989819bbf1d32c6c58841a32
403
py
Python
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
24
2018-08-16T03:17:08.000Z
2021-06-10T20:43:13.000Z
apps/users/migrations/0004_user_username.py
kevotovar/topdeck-arena
e09753a29837847bdc239cd98a1942711c953bbe
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-18 15:38 from django.db import migrations, models
21.210526
73
0.602978
2e9cb527ff1f857656488e0800350e5fc6febf44
13,024
py
Python
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-05-26T08:16:01.000Z
2021-05-26T08:16:01.000Z
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
null
null
null
mmcls/models/backbones/t2t_vit.py
kivanctezoren/mmclassification
5c73d4b29f61c47d379bbec4621a465099e64bd7
[ "Apache-2.0" ]
1
2021-12-11T07:52:59.000Z
2021-12-11T07:52:59.000Z
# Copyright (c) OpenMMLab. All rights reserved. from copy import deepcopy from typing import Sequence import numpy as np import torch import torch.nn as nn from mmcv.cnn import build_norm_layer from mmcv.cnn.bricks.transformer import FFN from mmcv.cnn.utils.weight_init import trunc_normal_ from mmcv.runner.base_module...
35.391304
79
0.589527
2e9e32236f3aacd45c54c96674594afc7e16ce46
2,313
py
Python
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
182
2017-01-26T18:11:57.000Z
2021-09-07T07:39:52.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
428
2016-12-21T14:53:43.000Z
2019-07-14T09:33:54.000Z
geopyspark/tests/geotrellis/rddwrapper_test.py
geotrellis/geotrellis-python
97bcb17a56ed4b4059e2f0dbab97706562cac692
[ "Apache-2.0" ]
66
2017-01-05T19:16:15.000Z
2022-02-23T12:49:50.000Z
import os import sys import numpy as np import pytest import unittest from geopyspark.geotrellis import Tile from geopyspark.geotrellis.layer import RasterLayer from geopyspark.geotrellis.constants import LayerType from geopyspark.tests.base_test_class import BaseTestClass from pyspark.storagelevel import StorageLevel...
33.521739
77
0.596628
2e9e378b71918a48cd1b5aa6e11813c09f19056c
432
py
Python
pia/cli.py
soasme/bamboo
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
4
2016-04-04T17:30:43.000Z
2016-04-11T11:03:38.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
2
2016-04-04T09:44:57.000Z
2016-04-04T09:49:44.000Z
pia/cli.py
soasme/pia
5c2b879dcbeafc46990d6bfda6f376acc7a55f01
[ "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- """ pia.cli ~~~~~~~~~~~~~ A simple command line application for pia. """ import click def main(): """ Pia main function """ cli() if __name__ == '__main__': main()
11.675676
42
0.509259
2e9f955cd520a372ad16539bc58013fcc42d5c6b
1,222
py
Python
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
1
2020-12-25T03:33:44.000Z
2020-12-25T03:33:44.000Z
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
FEArena/feaapi/admin.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import core from .models import build from .models import play admin.site.register(core.FireEmblemGame) admin.site.register(core.Unit) admin.site.register(core.Class) admin.site.register(core.Weapon) admin.site.register(core.Item) admin.site.r...
32.157895
52
0.837152
2ea10f31b9ad39b588a659cb52c25dc409daa644
207
py
Python
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
5
2017-04-28T08:03:15.000Z
2018-12-29T03:52:46.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
2
2020-01-15T06:25:48.000Z
2020-11-23T13:58:27.000Z
pytijo/constants.py
darinsikanic/structifytext
ff36ee92f483d8499710827773560f4886b07765
[ "Apache-2.0" ]
1
2019-05-02T10:44:53.000Z
2019-05-02T10:44:53.000Z
# Global KEYWORD_CHAR = "#" # API Keywords KEYWORD_ID = "#id" KEYWORD_START = "#start" KEYWORD_END = "#end" # Modules MODULE_CHAR = "@" CORE_MODULE_PACKAGE = "pytijo.modules" DEFAULT_MODULE_NAME = "tijo_re"
18.818182
38
0.719807
2ea11475a7fe329519530a13d7b064e4322a451f
742
py
Python
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
rpi_rilla/light.py
gthar/rpi_rilla
50cb6aac0ead4094d72447538aca0296d1335a5a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import RPi.GPIO as GPIO from rpi_rilla.helpers import update_yaml GPIO.setmode(GPIO.BOARD)
21.2
57
0.603774
2ea297ebd14c9f18c3e486da0ab8842cf15efdc3
1,476
py
Python
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
90
2019-10-05T13:19:22.000Z
2022-03-09T22:49:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
17
2019-10-28T11:13:05.000Z
2022-02-22T12:33:23.000Z
core/anchor.py
calmisential/TensorFlow2.0_SSD
737a631608a8c2d3f2213f9139c1c0af0063f1d1
[ "MIT" ]
54
2019-09-26T06:47:39.000Z
2022-03-25T15:36:23.000Z
import numpy as np import math from configuration import IMAGE_HEIGHT, IMAGE_WIDTH, ASPECT_RATIOS, FEATURE_MAPS, \ DEFAULT_BOXES_SIZES, DOWNSAMPLING_RATIOS from itertools import product
37.846154
116
0.603659
2ea32157d60a32cc39cebcfdf2909acc3fb3af7b
16,006
py
Python
tmp.py
devYaoYH/CodinGame_GitC
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
2
2018-05-15T12:07:24.000Z
2020-03-10T15:49:29.000Z
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
null
null
null
tmp.py
devYaoYH/codingame_gitc
f55db74dc53d8f2e8d71bc652dc792e6d005adf2
[ "MIT" ]
1
2018-04-02T14:53:22.000Z
2018-04-02T14:53:22.000Z
''' Reinforce function - Takes a list of targets to be reinforced - Weighs targets - Sends reinforcements if available ''' ''' Attack function - Prioritizes Upgrade if base will not get overrun in the future - Gets a list of valid targets (enemy + neutrals) n...
49.401235
211
0.590216
2ea338d3af063a419c39ebbdc6516e42c2946316
1,185
py
Python
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
5
2022-01-14T17:15:35.000Z
2022-03-11T09:51:49.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
2
2022-01-18T15:17:54.000Z
2022-01-18T15:19:25.000Z
tests/test_complex.py
chenzhaiyu/abspy
c03d26e4ddb81d17467573ca2f399a9cb608a4be
[ "MIT" ]
1
2022-01-15T08:12:08.000Z
2022-01-15T08:12:08.000Z
from pathlib import Path import numpy as np from abspy import CellComplex dir_tests = Path(__file__).parent def example_cell_complex(): """ Simple CellComplex construction from specified planes and bounds. """ # start from two planes planes = np.array([[0, 1, 0, -50], [0, 0, 1, -50]]) # spe...
26.931818
93
0.678481
2ea3a75a5f2751bf316fd5b79db613c01ad75117
1,106
py
Python
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
src/frr/tests/topotests/lib/exa-receive.py
zhouhaifeng/vpe
9c644ffd561988e5740021ed26e0f7739844353d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ exa-receive.py: Save received routes form ExaBGP into file """ import argparse import os from sys import stdin from datetime import datetime parser = argparse.ArgumentParser() parser.add_argument( "--no-timestamp", dest="timestamp", action="store_false", help="Disable timestamps" ) par...
25.136364
88
0.660036
2ea3aab54423adec72cba91766a80d7a10a99caf
2,068
py
Python
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
1
2022-03-15T23:23:03.000Z
2022-03-15T23:23:03.000Z
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
unicrypto/backends/pure/external/AES/ccm.py
ac-rn/unicrypto
bb3205612d2d7943817d55aa93de67806ceabf0d
[ "MIT" ]
null
null
null
from Cryptodome.Cipher import AES import struct # https://tools.ietf.org/html/rfc3610 if __name__ == '__main__': import os EncryptionKey = b'\xff'*16 nonce = os.urandom(11) hdr = b'\xFF'* 40 msg_data = b'\xAA' * 1024 cipher = AES.new(EncryptionKey, AES.MODE_CCM, nonce) cipher.update(hdr) enc_data = ciphe...
25.85
95
0.640232
2ea49685661b1bbd513afcd73c45bc80909614c1
1,878
py
Python
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
17
2021-09-08T08:21:03.000Z
2022-03-24T16:57:02.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
1
2021-12-16T15:40:16.000Z
2021-12-16T15:40:16.000Z
PyGenetic/mutation.py
Omair-R/PyGenetic
27c97e0958b65b6163a6fb9e9e5089eb2dc7dae2
[ "MIT" ]
6
2021-12-16T14:55:15.000Z
2022-01-11T18:05:35.000Z
import numpy as np
34.145455
77
0.583067
2ea4c520dd53a2a52f11b5e7a9e632d6c39aba9d
3,480
py
Python
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
tools/eval.py
jiaruixu/Detectron
baa3392405402438f8c339727aa9c0704dc9fa72
[ "Apache-2.0" ]
null
null
null
"""Evaluate a network with Detectron.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import cv2 # NOQA (Must import before importing caffe2 due to bug in cv2) import os import pprint import sys imp...
31.071429
161
0.675862
2ea5aaa2c98d99adc13ed905c0058e7f02231385
2,847
py
Python
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/nodes/tests/containers_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import nose.tools as nt import numpy as np import theano import treeano.nodes as tn fX = theano.config.floatX
29.968421
75
0.488936
2ea5e98a4fc2b8a1c6d0d0f71589f165127c59dd
3,231
py
Python
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
3
2015-11-21T10:39:44.000Z
2019-11-17T16:34:53.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
1
2015-11-23T19:43:48.000Z
2015-11-23T19:45:06.000Z
pupa/migrations/0001_initial.py
datamade/pupa
7c7d2937dfa0c8347e47661a6ed42fd28a9e16d4
[ "BSD-3-Clause" ]
5
2015-11-22T09:23:14.000Z
2019-11-17T16:34:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
40.898734
280
0.535747
2ea60c9a91259a0b51917497b57172f651d30c70
1,112
py
Python
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
models/estudiante.py
javierdaza/directorio_estudiantes
13f5963cccec278dec4fde7332a4491d9220c059
[ "MIT" ]
null
null
null
from urllib.parse import urlparse import datetime from decouple import config from peewee import * database_proxy = DatabaseProxy() production = config('PRODUCTION', cast=bool) if production: if config('HEROKU', cast=int) == 1: url = urlparse(config('DATABASE_URL')) database = PostgresqlData...
24.173913
65
0.678058
2ea6798fa3e1352a78ff1f506bcd6a8b03ba29cd
2,213
py
Python
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
draftplot_PWx.py
erwinlambert/alphabeta
04dd03de3521556067c997c2deaf0d6560124b7b
[ "BSD-3-Clause" ]
null
null
null
from scipy.integrate import odeint import os import matplotlib as mpl import numpy as np import matplotlib.pyplot as plt import sys hstep = .01 sstep = .01 hmin = 0. hmax = 2. smin = 0. smax = 3. rmin = .01 rmax = 3. rstep = .1 rr = np.arange(rmin,rmax+rstep,rstep) LL3 = 1.2 LL4 = 0.22 dx = .01 s0 = .01 h0 = .01 ...
21.485437
50
0.619973
2ea6f2f3bf56a4b8ce0430cc6d5843b95908a1ac
4,405
py
Python
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
solid-pancake/solid_pancake_cli.py
sharyar/solid-pancake
26eb519fbfcb5f195527cda06ff4a93e7c0018a7
[ "MIT" ]
null
null
null
# CLI application for sentiment analysis of a user's tweets # Load constants # Check if saved model exists, if it does not, ask user if ok to train # Save model for vectorizer as well # Get user's twitter address # Ask if he wants a word cloud too # Start analyzing - Show animation for loading? # display graph of se...
32.873134
112
0.695119
2ea88745253e3b4338317f561c7e7bcfe24b4d43
1,237
py
Python
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
util.py
melkamar/fitanketa-miner
fa1d990a20f218cf1a2dde1d8485453f19ab597e
[ "MIT" ]
null
null
null
import datetime def get_semester(date: datetime.datetime) -> str: """ Semesters are coded B161 (winter 2016/2017), B162 (summer 2016/2017) etc. They are obtained by comparing dates: January-February year X -> winter semester of year (X-1)/X March-September year X -> summer semester of ye...
30.170732
86
0.641067
2ea8c2bf1fba5f3a643f0cdd98c6a5c896e24557
1,465
py
Python
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
vsutillib/vsutillib-misc/vsutillib/misc/strFormatTimeDelta.py
akai10tsuki/vsutillib
6d623171cc2a5c66a94fb508bfc312abeab49ff2
[ "MIT" ]
null
null
null
""" format timedelta object """ from string import Formatter def strFormatTimeDelta(tDelta, fmt=None): """ strFormatTimeDelta format time delta string. If fmt is None a format of 'N days N hours N minutes N seconds' will be used starting with the first non zero N found in the calculations. Args...
29.3
86
0.579522
2ea90ea2807bc0d66bfcd1a09e321202c437d6ed
951
py
Python
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
tests/conftest.py
carlegbert/crocodile
8b78c9d1610ba4977f718807e4ec442ce249f62a
[ "MIT" ]
null
null
null
import json from hashlib import sha1 import hmac from os import path import pytest from crocodile.app import create_app TEST_SECRET = 'test_secret'
19.02
75
0.674027
2ea9a3d5c1e2aaee9a2edabc627b486bd2b84f2b
5,091
py
Python
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
1
2018-05-13T06:26:23.000Z
2018-05-13T06:26:23.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
46
2018-04-27T19:13:11.000Z
2019-06-10T20:45:27.000Z
gatelfpytorchjson/modules/TextClassBiLstmCnnSingle.py
GateNLP/gate-lf-pytorch-wrapper
a08e180e56062dc03247ff0eb2414c0179ef7863
[ "Apache-2.0" ]
2
2019-06-01T11:44:08.000Z
2019-06-18T03:27:19.000Z
from gatelfpytorchjson import CustomModule from gatelfpytorchjson import EmbeddingsModule import torch import torch.nn as nn import torch.nn.functional as F import sys import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) streamhandler = logging.StreamHandler(stream=sys.stderr) formatter =...
41.390244
117
0.659006
2ea9f0f2aa03f595d96934647cb51c4753435863
728
py
Python
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
null
null
null
server/server/main.py
john-sonz/federated-learning-iot
4eb698dff6c43bfefeea8f99eaa6aa0765200fc8
[ "MIT" ]
1
2022-01-10T15:39:32.000Z
2022-01-10T15:39:32.000Z
import flwr as fl import os from flwr.server.strategy import FedAvg os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" ENV = os.environ FRACTION_FIT = float(ENV.get('FRACTION_FIT', "0.5")) MIN_AVAILABLE_CLIENTS = int(ENV.get('MIN_AVAILABLE_CLIENTS', "5")) NUM_ROUNDS = int(ENV.get('NUM_ROUNDS', "10")) SERVER_ADDRESS = ENV.get...
33.090909
96
0.773352
2eaa782a586f2d229922037eef6508d342caa110
10,279
py
Python
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
29
2017-04-27T18:08:38.000Z
2020-11-14T06:54:37.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
1
2017-06-16T19:47:52.000Z
2017-06-16T19:47:52.000Z
plot_functions.py
Noahs-ARK/idea_relations
b84427ede926f4272a1f60a3554d9674d70582cc
[ "MIT" ]
8
2017-04-27T20:14:28.000Z
2019-03-18T16:50:55.000Z
"""Adapt plot functions with seaborn to get more beautiful plots.""" from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import os import collections import itertools import numpy as np import scipy.stats a...
36.580071
88
0.594027
2eaa925e072fda3917a52d9ce1d563a4bee27bae
599
py
Python
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
2
2021-02-25T12:58:23.000Z
2021-11-30T13:03:27.000Z
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
null
null
null
Mask_RCNN/Faster_RCNN_New/vis_data.py
pkasten/Chiral-molecule-detection
fdeac581484b2b058eff863e2b5cd49b217fc4f5
[ "MIT" ]
1
2021-12-01T15:55:04.000Z
2021-12-01T15:55:04.000Z
import random from detectron2.utils.visualizer import Visualizer from detectron2.data.catalog import MetadataCatalog, DatasetCatalog import mol_data import cv2 mol_metadata = MetadataCatalog.get("mol") print(mol_metadata) dataset_dicts = DatasetCatalog.get("mol") for d in random.sample(dataset_dicts, ...
28.52381
68
0.686144
2eaaf9b464b30657bb954716ce433490091b5cd9
1,916
py
Python
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
train/docker/src/train.py
samuelrojolopez/ml_technical_challenge
09b3d1e20243e0329042360d10af2d1832126c4a
[ "MIT" ]
null
null
null
# coding: utf-8 import pandas as pd from glob import glob from joblib import dump from imblearn.over_sampling import SMOTE from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier if __name__ == "__main__": TRAINING_DATA_PATH = "/opt/ml/input/data/train/" MODE...
26.246575
77
0.635699
2eabbc492325693d84c09f8314053d43a9d2b56b
20,786
py
Python
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T20:01:13.000Z
2022-03-26T20:01:13.000Z
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
null
null
null
pyne/tests/spatial_solvers/ahot_script.py
AllSafeCyberSecur1ty/Nuclear-Engineering
302d6dcc7c0a85a9191098366b076cf9cb5a9f6e
[ "MIT" ]
1
2022-03-26T19:59:13.000Z
2022-03-26T19:59:13.000Z
"""AHOT Spatial Solver tests""" # TODO: # Add tests with supported warning configurations? # a = populate_with_warnings("AHOTN") # a = populate_with_warnings("DGFEM") import numpy as np from numpy.testing import assert_array_almost_equal import pyne.spatialsolver from .dictionary_populate_test import ( populate_...
36.024263
85
0.537285
2eac1b4af86faa566a0da740a08ed19d0bd17c1d
646
py
Python
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
3
2021-05-20T02:36:30.000Z
2021-11-28T16:00:15.000Z
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
null
null
null
asynchronous_qiwi/call/API/QIWIWallet/payment_api/currency_rates.py
LexLuthorReal/asynchronous_qiwi
5847a8d4008493656e973e5283888a4e57234962
[ "MIT" ]
1
2021-11-28T16:00:20.000Z
2021-11-28T16:00:20.000Z
from .....data.URL import QIWIWalletURLS from .....data_types.connector.request_type import GET from .....connector.aiohttp_connector import Connector
38
86
0.684211
2eac8b4e05486b52eb12dc6e758aba64c32a1220
5,877
py
Python
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
1
2021-06-01T16:35:00.000Z
2021-06-01T16:35:00.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
249
2015-02-24T19:06:53.000Z
2021-07-30T09:01:53.000Z
okonomiyaki/file_formats/setuptools_egg.py
enthought/okonomiyaki
51b8b4fa8d17255e13c097402691726545cf5b4c
[ "BSD-3-Clause" ]
4
2015-02-19T21:29:12.000Z
2016-01-14T21:02:39.000Z
import os.path import re import sys try: import sysconfig except ImportError: # Python 2.6 support sysconfig = None import warnings from okonomiyaki.errors import OkonomiyakiError from okonomiyaki.platforms import PythonImplementation from okonomiyaki.utils import py3compat from ._egg_info import _guess_pytho...
29.681818
79
0.609495
2ead2418ac79686f81faf8e79b899ef5370e790b
1,145
py
Python
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
Python/leetcode.271.encode-and-decode-strings.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
# Your Codec object will be instantiated and called as such: # codec = Codec() # codec.decode(codec.encode(strs))
30.131579
88
0.535371
2eaee1f5ab79283db12741ad1f4f0ff16bd8988e
3,761
py
Python
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
3
2016-01-04T06:28:52.000Z
2020-09-20T13:18:40.000Z
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
shipyard/rules/base/build.py
clchiou/garage
446ff34f86cdbd114b09b643da44988cf5d027a3
[ "MIT" ]
null
null
null
"""Base of all build rules.""" from pathlib import Path from garage import scripts from foreman import define_parameter, rule, to_path (define_parameter.path_typed('root') .with_doc('Path to the root directory of this repository.') .with_default(Path(__file__).parent.parent.parent.parent)) (define_parameter.pa...
29.155039
78
0.650625
2eafb50bbce7f7a6466757554ee9222412c1f278
1,099
py
Python
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
4
2019-02-07T14:58:21.000Z
2021-01-28T08:43:46.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
8
2018-12-29T14:08:48.000Z
2021-03-19T07:54:54.000Z
examples/crud/authentication.py
fossabot/vial
0e33a68f5e0dd6a9a9877163f263114fc9e5f774
[ "MIT" ]
3
2019-01-07T05:50:39.000Z
2020-10-24T10:26:54.000Z
from functools import wraps from models import User
28.179487
94
0.591447
2eb0484af9cce8ea841dc9edc7631fe9d4a6ea0c
13,938
py
Python
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
extractVerb.py
StatisticalProject/timetobirth
0a7acfe51d8eb5195e9d5cbe3e7378a0b73a3842
[ "Apache-2.0" ]
null
null
null
import urllib, json import urllib.request,os import socket import random import re socket.setdefaulttimeout(50) #https://www.hide-my-ip.com/fr/proxylist.shtml # .*(\[\{.*\]).* KEY="A00239D3-45F6-4A0A-810C-54A347F144C2" KEY="720129CF233B4CA2DF97DAE48C8717E1" KEY="35d28185-0ca1-47f0-8caf-edc457802c9d" KEY="B...
49.425532
235
0.570311
2eb2116844f3cc0a0343be2f4899a9026e234186
9,739
py
Python
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
cli.py
summunity/DjangoReact_CLI
89f4b60028c04a800aa44f1476c63bab27e0b382
[ "MIT" ]
null
null
null
""" Diamond Cronjob ================= Event Detection based on data stored in Diamond :Author: Nik Sumikawa :Date: Nov 3, 2020 """ import logging log = logging.getLogger(__name__) import pandas as pd from src.apps.interface import * from src.git.interface import * import os if __name__ == "__main__": #...
26.60929
95
0.505904
2eb22faa9efa6dff300c7bf44da3227149fe3aa6
7,636
py
Python
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
src/DataBase/LogTool/LogTool.py
swipswaps/Wind-Blade-Inspection
24613b9f2fbab224ffd3bbfc1082aa1547c19779
[ "MIT" ]
null
null
null
''' Author: Hans Erik Heggem Email: hans.erik.heggem@gmail.com Project: Master's Thesis - Autonomous Inspection Of Wind Blades Repository: Master's Thesis - CV (Computer Vision ''' import timeit from getpass import getpass from src.DroneVision.DroneVision_src.hardware.imageTools import MatplotShow ''' @brief LogT...
38.761421
226
0.64484
2eb2a9edba41e9d0531222c23fa4b4443640a537
99
py
Python
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
3
2019-03-09T05:19:23.000Z
2019-04-06T09:26:36.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2020-02-23T10:38:04.000Z
2020-02-23T10:38:04.000Z
acmicpc/11719/11719.py
love-adela/algorithm
4ccd02173c96f8369962f1fd4e5166a221690fa2
[ "MIT" ]
1
2019-05-22T13:47:53.000Z
2019-05-22T13:47:53.000Z
while True: try: n = str(input()) print(n) except EOFError: break
14.142857
24
0.464646
2eb3d07900dd0c7f4751ad09bc670f3fadf5606f
458
py
Python
examples/zeromq_first.py
msabramo/diesel
a1ed7ed0358d0fec8592e23aafc3b7ec167ab649
[ "BSD-3-Clause" ]
224
2015-01-03T06:33:05.000Z
2021-11-22T03:19:02.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
12
2015-01-01T03:35:15.000Z
2021-05-22T23:37:28.000Z
examples/zeromq_first.py
dowski/diesel
d9824e467805caf40e0ba21b88a27db38e64c352
[ "BSD-3-Clause" ]
37
2015-01-04T01:47:55.000Z
2022-03-03T02:04:15.000Z
from diesel import quickstart, quickstop, sleep, first from diesel.protocols.zeromq import DieselZMQSocket, zctx, zmq import time quickstart(get_messages)
24.105263
83
0.637555
2eb55e581f300c9a4e077505d8a2d1a9bac31f8e
1,652
py
Python
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
homework.py
dieundead/studies
7da3a15b576ec1e2953c7fdf5762d88a42dea1d3
[ "MIT" ]
null
null
null
testlist_bubblesort = [40,723, 781, 610, 440, 819, 728, 280, 998, 744, 40, 303, 708, 279, 910] testlist_decision = [560, 769, 349, 97, 881, 108, 827, 131, 301, 952, 255, 787, 625, 549, 5] testlist_insertion = [984, 738, 859, 281, 548, 399, 894, ...
38.418605
80
0.580508
2eb564479c3dbf656497d8b1066141ca9f3fba07
4,728
py
Python
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
bookstore/src/book/dao/BookDao.py
mehulk99/Online-Book-Store
27c64b31e6fd33ae3db0bde351f889518de41eb1
[ "Apache-2.0" ]
null
null
null
''' Created on 14-May-2019 @author: mehulk99 ''' from flask import jsonify from bookstore.src.config import BookConfig from bookstore.src.dao.DataAccessor import DataAccessor from ...category.CategoryService import CategoryService from ...models.core.business.books.BookRepository import BookRepository from ...searc...
38.129032
187
0.592851
2eb6625729f0d7d088a530fc6cdd71cef8012fd9
641
py
Python
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
null
null
null
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2020-02-02T18:27:23.000Z
2020-02-02T18:49:24.000Z
tests/unit/api_notebook/test_Jp_GSheets.py
pbx-gs/OSBot-Jupyter
4c05384c46b6ba818a6856bf016b829b737cd72c
[ "Apache-2.0" ]
2
2019-12-15T23:36:37.000Z
2020-03-23T11:22:03.000Z
from unittest import TestCase from osbot_utils.utils.Dev import Dev from osbot_jupyter.api_notebook.Jp_GSheets import Jp_GSheets
22.103448
72
0.672387
2eb6a5b3ad9075ee31087bd668337d5de2ad9d3f
3,583
py
Python
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
82
2018-11-13T05:39:44.000Z
2022-01-18T17:08:44.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
25
2018-12-02T18:45:52.000Z
2022-03-21T22:54:19.000Z
stickerfinder/telegram/keyboard/settings.py
annihilatorrrr/sticker-finder
873468f8de26cc32d1de9b688140569b8086ab5b
[ "MIT" ]
23
2019-01-22T20:04:50.000Z
2022-02-01T14:57:28.000Z
"""Maintenance related keyboards.""" from telegram import ( InlineKeyboardMarkup, InlineKeyboardButton, ) from stickerfinder.helper.callback import build_user_data, build_data def get_settings_keyboard(user): """Get the inline keyboard for settings.""" international_payload = build_user_data("user_tog...
32.279279
87
0.64192
2eba00efde07993dc1c59983d15c23b1545c645f
1,931
py
Python
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
2
2020-07-28T10:47:40.000Z
2021-11-14T20:07:21.000Z
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
code/zeroinsertion_aging/plot-fewinsertion.py
andim/paper-tcellimprint
e89605e51014fa3f347f96bab3d3d84c2b013a2f
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib import palettable import pandas as pd import sys sys.path.append('..') from lib import * plt.style.use('../custom.mplstyle') names = ['oneInsertion', 'twoInsertion'] agebinsize = 10.0 agebins = np.arange(0.0, 90.0, agebinsize) bin_ts = agebins[:-1...
32.183333
95
0.663387
2eba2b798479eb6da1c8d9471ea3f803852412fc
2,894
py
Python
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
library/library/modules/bigip_drop_connection.py
meverett1167/Ansible_Demos
dad515d43af19bcb201f31929e03352d09097efc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2017 F5 Networks Inc. # Copyright (c) 2016 Michael Perzel # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'...
24.735043
91
0.622668