hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
46c21ee432203e4faaed951a674e8b3697ff71ef
434
py
Python
api.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
null
null
null
api.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
null
null
null
api.py
wilsonfilhodev/gis
65926fd36460a7a3590ef7511ccae1d64e3d9988
[ "MIT" ]
null
null
null
from flask import Flask import main app = Flask("GIS") @app.route('/', methods=['GET']) def home(): return "Ok!" @app.route('/vegetation-cover', methods=['GET']) def vegetationCover(): return { "filename" : main.fileName(), "cover" : main.cover(), "area" : main.area(), "centro...
21.7
72
0.576037
f8d074f5149e6925419be186c5dcdb473a742bf6
696
py
Python
algo/quick_sort.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
algo/quick_sort.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
algo/quick_sort.py
xta0/Python-Playground
513ebd2ad7f0a8c69f2f04b4f7524b31e76fa5bc
[ "MIT" ]
null
null
null
import random def quick_sort(array, left, right): if left >= right: return #choose the left most number as a pivot pivot = array[left] l = left r = right while l<r: #move right part first while array[r] >= pivot and r>l: r -=1 #then move left p...
22.451613
50
0.554598
6144a5add9dd3621e7ec5080e4bd27092991a4c8
3,834
py
Python
cyndiloza/apps/places/models.py
richardcornish/cyndiloza
f2c7e06a44821b9999e991ce6fc45487c9bbc26b
[ "BSD-3-Clause" ]
null
null
null
cyndiloza/apps/places/models.py
richardcornish/cyndiloza
f2c7e06a44821b9999e991ce6fc45487c9bbc26b
[ "BSD-3-Clause" ]
null
null
null
cyndiloza/apps/places/models.py
richardcornish/cyndiloza
f2c7e06a44821b9999e991ce6fc45487c9bbc26b
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from localflavor.us.us_states import US_STATES import re class District(models.Model): name = models.CharField(_("name"), max_length=250) slug = models.SlugField(_("slug"), unique...
61.83871
417
0.698226
d0c2375a034e97ca3dcedbebfa61c2b81d40c4a1
11,748
py
Python
allauth/socialaccount/models.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
allauth/socialaccount/models.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
allauth/socialaccount/models.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from django.core.exceptions import PermissionDenied from django.db import models from django.contrib.auth import authenticate from django.contrib.sites.models import Site from django.utils.encoding import python_2_unicode_compatible from django.utils.crypto import get_random_stri...
37.896774
79
0.620106
ede1c9b506f5d87d519b7504be9090623e6f8dcd
448
py
Python
python-backend/app/extensions.py
victoria-elasticsearch/mds
3046f2c1b58ac2230278def3f23b0d24fcd82d55
[ "Apache-2.0" ]
null
null
null
python-backend/app/extensions.py
victoria-elasticsearch/mds
3046f2c1b58ac2230278def3f23b0d24fcd82d55
[ "Apache-2.0" ]
null
null
null
python-backend/app/extensions.py
victoria-elasticsearch/mds
3046f2c1b58ac2230278def3f23b0d24fcd82d55
[ "Apache-2.0" ]
1
2019-01-12T23:44:13.000Z
2019-01-12T23:44:13.000Z
from flask_jwt_oidc import JwtManager from flask_sqlalchemy import SQLAlchemy from flask_uploads import UploadSet, AllExcept, EXECUTABLES, SCRIPTS from flask_restplus import Api from .config import Config db = SQLAlchemy() jwt = JwtManager() api = Api(prefix=Config.BASE_PATH, doc='{}/'.format(Config.BASE_PATH), ...
34.461538
70
0.78125
127f5b0daa338e519335e66b13f3da91555af663
9,448
py
Python
simulation/characterization_and_control.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
simulation/characterization_and_control.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
simulation/characterization_and_control.py
rajibchakravorty/QDataSet
8eb21b8c7dad5654358021dd73b93ab90443f6d0
[ "MIT" ]
null
null
null
"""Example of running ML algorithm on simulated experiment data """ import numpy as np import tensorflow.keras as K from qmldataset import pauli_operators, create_custom_simulator, run_experiment def create_open_quantum_system_simulator(distortion=False): """We create a simple simulator experiment as example ...
32.805556
115
0.700572
000df33b6ba8d0a72e446c88fd8126ddd39efe88
513
py
Python
src/python/pipelines/dimorphite/run.py
Waztom/pipelines
63ac14d05446ced622fd2acb86c9b84dcc5feae8
[ "Apache-2.0" ]
24
2017-04-04T19:12:34.000Z
2022-03-09T16:29:06.000Z
src/python/pipelines/dimorphite/run.py
Waztom/pipelines
63ac14d05446ced622fd2acb86c9b84dcc5feae8
[ "Apache-2.0" ]
22
2017-06-02T07:03:52.000Z
2021-03-27T09:44:08.000Z
src/python/pipelines/dimorphite/run.py
Waztom/pipelines
63ac14d05446ced622fd2acb86c9b84dcc5feae8
[ "Apache-2.0" ]
19
2017-05-18T10:27:58.000Z
2021-08-02T10:44:01.000Z
from rdkit import Chem import dimorphite_dl #suppl = [Chem.MolFromSmiles(s) for s in ["C[C@](F)(Br)CC(O)=O", "CCCCCN"]] suppl = Chem.SDMolSupplier('Kinase_inhibs.sdf') #suppl = Chem.SDMolSupplier('dhfr_standardized.sdf') print(suppl) protonated_mols = dimorphite_dl.run_with_mol_list( suppl, min_ph=5.0, m...
23.318182
75
0.615984
1324b6b8750e4778c63bc716908391df72874d58
1,846
py
Python
selfdrive/data_collection/gps_uploader.py
mgarrison5098/ArnePilot
d3dfefb230d1a023c86444b31bc98a04b6703684
[ "MIT" ]
null
null
null
selfdrive/data_collection/gps_uploader.py
mgarrison5098/ArnePilot
d3dfefb230d1a023c86444b31bc98a04b6703684
[ "MIT" ]
null
null
null
selfdrive/data_collection/gps_uploader.py
mgarrison5098/ArnePilot
d3dfefb230d1a023c86444b31bc98a04b6703684
[ "MIT" ]
null
null
null
import os import json import gzip import ftplib import string import random import datetime from common.params import Params from common.op_params import opParams op_params = opParams() uniqueID = op_params.get('uniqueID') def upload_data(): filepath = "/data/openpilot/selfdrive/data_collection/gps-data" if os.pat...
31.288136
137
0.611593
61de8c4f82d7794ca62ee5fb25ebdf075a625461
19,371
py
Python
slowfast/datasets/ptv_datasets.py
alimottaghi/SlowFast
0b9a638e9c323bee06f23bce37a6867e5b2e2e16
[ "Apache-2.0" ]
367
2022-01-14T03:32:25.000Z
2022-03-31T04:48:20.000Z
slowfast/datasets/ptv_datasets.py
Abefocuson/SlowFast
f24bbd59195280ce8697968c172e5120fb2265d2
[ "Apache-2.0" ]
27
2022-01-27T07:12:49.000Z
2022-03-31T04:31:13.000Z
slowfast/datasets/ptv_datasets.py
Abefocuson/SlowFast
f24bbd59195280ce8697968c172e5120fb2265d2
[ "Apache-2.0" ]
53
2022-01-18T11:21:43.000Z
2022-03-31T06:42:41.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import functools import os from typing import Dict import torch from torch.utils.data import ( DistributedSampler, RandomSampler, SequentialSampler, ) from torchvision.transforms import Compose, Lambda from torchvision.transforms._tran...
32.556303
84
0.543648
85275ac2bbf820bf918dec30012cb39a978d1ca0
2,437
py
Python
test/programytest/storage/stores/sql/dao/test_lookup.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:13:45.000Z
2018-09-01T20:00:55.000Z
test/programytest/storage/stores/sql/dao/test_lookup.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
1
2018-09-12T18:30:17.000Z
2018-09-12T18:30:17.000Z
test/programytest/storage/stores/sql/dao/test_lookup.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
5
2018-08-21T00:08:36.000Z
2018-09-23T06:11:04.000Z
import unittest from programy.storage.stores.sql.dao.lookup import Denormal from programy.storage.stores.sql.dao.lookup import Normal from programy.storage.stores.sql.dao.lookup import Gender from programy.storage.stores.sql.dao.lookup import Person from programy.storage.stores.sql.dao.lookup import Person2 class De...
37.492308
88
0.651211
daa782f289f0cce4a6a2f76ff5685f88d38a8a50
5,438
py
Python
motions.py
alisaleemh/viper
0bbd7e0b5ef8dd256982e745e9ea67fc4a496607
[ "Apache-2.0" ]
null
null
null
motions.py
alisaleemh/viper
0bbd7e0b5ef8dd256982e745e9ea67fc4a496607
[ "Apache-2.0" ]
null
null
null
motions.py
alisaleemh/viper
0bbd7e0b5ef8dd256982e745e9ea67fc4a496607
[ "Apache-2.0" ]
null
null
null
import os import math import xlwt def serpentineForward(wb): ws = wb.add_sheet('SerpentineForward') lag = .5712 # Phase lag between segments frequency = 1 # Oscillation frequency of segments. amplitude = 40 # Amplitude of the serpentine motion of the snake rightOffset = 5 # Right turn offset l...
48.123894
100
0.673961
86f37a40dffe0176928ff7e7932ae6ae602b5b0d
7,504
py
Python
src/test/resources/mockserver/app/app.py
xebialabs-community/xld-skytap-plugin
3d6caa9cca97c10f508f5e282b9ecea16cae3c80
[ "MIT" ]
null
null
null
src/test/resources/mockserver/app/app.py
xebialabs-community/xld-skytap-plugin
3d6caa9cca97c10f508f5e282b9ecea16cae3c80
[ "MIT" ]
null
null
null
src/test/resources/mockserver/app/app.py
xebialabs-community/xld-skytap-plugin
3d6caa9cca97c10f508f5e282b9ecea16cae3c80
[ "MIT" ]
null
null
null
#!flask/bin/python # # Copyright 2020 XEBIALABS # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
36.251208
462
0.714286
ab4c7d04e69fed94640b95e094037e5eecdd6d54
4,193
py
Python
molecule/command/test.py
brianhelba/molecule
fbe61c0337c038464b4592ce1904e4880a9b18c1
[ "MIT" ]
3
2020-05-19T21:20:35.000Z
2022-03-20T12:11:06.000Z
molecule/command/test.py
brianhelba/molecule
fbe61c0337c038464b4592ce1904e4880a9b18c1
[ "MIT" ]
null
null
null
molecule/command/test.py
brianhelba/molecule
fbe61c0337c038464b4592ce1904e4880a9b18c1
[ "MIT" ]
3
2020-05-22T03:30:50.000Z
2022-03-19T08:35:31.000Z
# Copyright (c) 2015-2018 Cisco Systems, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge...
28.331081
139
0.677796
4c5ce262d3302b54c8ffaf5abeef42f767779b39
2,746
py
Python
cvxpy/atoms/elementwise/entr.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
3,285
2015-01-03T04:02:29.000Z
2021-04-19T14:51:29.000Z
cvxpy/atoms/elementwise/entr.py
QiuWJX/cvxpy
fd1c225b0cdf541618e292cae1a4c7ea25ddc934
[ "ECL-2.0", "Apache-2.0" ]
1,138
2015-01-01T19:40:14.000Z
2021-04-18T23:37:31.000Z
cvxpy/atoms/elementwise/entr.py
phschiele/cvxpy
a43aed7447b87f6d0fbc6f71ae5c7b84183f3369
[ "ECL-2.0", "Apache-2.0" ]
765
2015-01-02T19:29:39.000Z
2021-04-20T00:50:43.000Z
""" Copyright 2013 Steven Diamond, Eric Chu 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...
28.604167
74
0.619082
dd5190ab075967d11f4cf7cd49c94891d8e4e59c
1,467
py
Python
marketo_dynamic_email_content/marketing_newsletter_python/upload_images.py
tyron-pretorius/zapier
e415cb8ecf2b4edd8992ab51eb34bf436c1052dd
[ "MIT" ]
null
null
null
marketo_dynamic_email_content/marketing_newsletter_python/upload_images.py
tyron-pretorius/zapier
e415cb8ecf2b4edd8992ab51eb34bf436c1052dd
[ "MIT" ]
null
null
null
marketo_dynamic_email_content/marketing_newsletter_python/upload_images.py
tyron-pretorius/zapier
e415cb8ecf2b4edd8992ab51eb34bf436c1052dd
[ "MIT" ]
null
null
null
#input variables to Zapier Step 9: Upload Images to Marketo input={ 'token': 'Token' #from Step 2: Get Marketo Access Token 'paths': 'Dbx Links' #from Step 8: Get Temporary Dropbox Links 'dbx': 'Dropbox Values' #from Step 1: New Spreadsheet Row } import requests import urllib import json import re payload = { '...
26.672727
95
0.63531
b3c34fab49cf955390ba1156f6e6938d3d045121
16,251
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/4-sender_receiver_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/4-sender_receiver_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/4-sender_receiver_20.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
40.325062
89
0.568211
1e15cc5c02dd483a33554dfa3657a6bbcecc6f63
7,125
py
Python
stacker/commands/stacker/base.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:01:01.000Z
2021-11-06T17:01:01.000Z
stacker/commands/stacker/base.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
null
null
null
stacker/commands/stacker/base.py
GoodRx/stacker
0cf1df67b4ae5aeda5845442c84905909101c238
[ "BSD-2-Clause" ]
1
2021-11-06T17:00:53.000Z
2021-11-06T17:00:53.000Z
import argparse from collections import Mapping import logging from ...environment import parse_environment from ...logger import setup_logging class KeyValueAction(argparse.Action): def __init__(self, option_strings, dest, default=None, nargs=None, **kwargs): if nargs: raise...
43.711656
79
0.568421
6c96232d4fde8b349927d39f4dcc9d62f010a29a
427
py
Python
news/__init__.py
light-white/meeting
464c1047d3cd9e620f9a4095f453186ef81cc854
[ "Apache-2.0" ]
null
null
null
news/__init__.py
light-white/meeting
464c1047d3cd9e620f9a4095f453186ef81cc854
[ "Apache-2.0" ]
null
null
null
news/__init__.py
light-white/meeting
464c1047d3cd9e620f9a4095f453186ef81cc854
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from os import path from django.apps import AppConfig # add by chr 20160719 VERBOSE_APP_NAME = u"新闻公告" def get_current_app_name(file): return path.dirname(file).replace('\\', '/').split('/')[-1] class AppVerboseNameConfig(AppConfig): name = get_current_app_name(__file__) verbose_name...
35.583333
86
0.751756
4aeb888054ba468691c5e25c48aad8984da7953c
4,731
py
Python
var/spack/repos/builtin/packages/bazel/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/bazel/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/bazel/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import inspect from spack import * from multiprocessing import cpu_count from spack.util.environment import env_flag from...
47.31
113
0.67956
96c5cf88489972377e8cd2eb08a9ecca28edb283
5,389
py
Python
test/functional/sapling_key_import_export.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
test/functional/sapling_key_import_export.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
test/functional/sapling_key_import_export.py
PassionCash/PassionCashCoin
389a2fce7458cb400b900b0e816ed24db90f3c92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Zcash developers # Copyright (c) 2020 The Passion developers # Distributed under the MIT software license, see the accompanying # file COPYING or https://www.opensource.org/licenses/mit-license.php . from decimal import Decimal from test_framework.test_framework import P...
39.918519
106
0.638894
eac20a43d35463b60349e8c6e9b6857776e9ff25
2,730
py
Python
gnes/encoder/numeric/tf_pq.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
gnes/encoder/numeric/tf_pq.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
gnes/encoder/numeric/tf_pq.py
awesome-archive/gnes
21311f05747303d0acdc303f2ade830ef971f47d
[ "Apache-2.0" ]
null
null
null
# Tencent is pleased to support the open source community by making GNES available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. 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...
35.921053
95
0.63663
cc76ae8d769a7fcd9b0ecae6921c1441e2d5111e
2,216
py
Python
anyping/views.py
ngchmsys/Anyping
7aee2012d83b284251d59afd5e55820e003f89b9
[ "MIT" ]
null
null
null
anyping/views.py
ngchmsys/Anyping
7aee2012d83b284251d59afd5e55820e003f89b9
[ "MIT" ]
null
null
null
anyping/views.py
ngchmsys/Anyping
7aee2012d83b284251d59afd5e55820e003f89b9
[ "MIT" ]
null
null
null
from pathlib import Path import json from django.shortcuts import render from django.http import HttpResponse from bs4 import BeautifulSoup import requests AXIOS = 'https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js' VUE = 'https://cdn.jsdelivr.net/npm/vue/dist/vue.js' # Create your views here. def index(request)...
31.211268
91
0.568141
518841d4185c38e99126446c72998cc85a7be4ae
22,727
py
Python
bot/exts/events/advent_of_code/_cog.py
Sn4u/sir-lancebot
f0501714374f50467b63f75be545625ff96b170a
[ "MIT" ]
77
2018-11-19T18:38:50.000Z
2020-11-16T22:49:59.000Z
bot/exts/events/advent_of_code/_cog.py
Sn4u/sir-lancebot
f0501714374f50467b63f75be545625ff96b170a
[ "MIT" ]
373
2018-11-17T16:06:06.000Z
2020-11-20T22:55:03.000Z
bot/exts/events/advent_of_code/_cog.py
Sn4u/sir-lancebot
f0501714374f50467b63f75be545625ff96b170a
[ "MIT" ]
165
2018-11-19T04:04:44.000Z
2020-11-18T17:53:28.000Z
import json import logging from datetime import datetime, timedelta from pathlib import Path from typing import Optional import arrow import discord from async_rediscache import RedisCache from discord.ext import commands, tasks from bot.bot import Bot from bot.constants import ( AdventOfCode as AocConfig, Channe...
46.287169
115
0.649624
805b9753d191ed410b2b5c51d7b02b1bcb8b1a8e
2,700
py
Python
webserver/plugins/meta/baike/api.py
Starainrt/talebook
0fa65da39b48fd84cfd56524b87b7156807f08b3
[ "BSD-2-Clause" ]
1
2022-03-23T06:35:13.000Z
2022-03-23T06:35:13.000Z
webserver/plugins/meta/baike/api.py
Whichbfj28/talebook
dabaa3f6638eddd10b0f06176ba648911892d7da
[ "BSD-2-Clause" ]
null
null
null
webserver/plugins/meta/baike/api.py
Whichbfj28/talebook
dabaa3f6638eddd10b0f06176ba648911892d7da
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 # -*- coding: UTF-8 -*- """ This is the standard runscript for all of calibre's tools. Do not modify it unless you know what you are doing. """ import re, logging, traceback from .baidubaike.baidubaike import Page import requests BAIKE_ISBN = "0000000000001" KEY = "BaiduBaike" CHROME_HEADERS = { ...
30.337079
95
0.591852
28d68d6a1abaed6345caefdc22bbd9df023c0892
240
py
Python
AtC_Gra_Con_031-040/AGC035/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Gra_Con_031-040/AGC035/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
AtC_Gra_Con_031-040/AGC035/A.py
yosho-18/AtCoder
50f6d5c92a01792552c31ac912ce1cd557b06fb0
[ "MIT" ]
null
null
null
n = int(input()) ans = float("INF") for i in range(1, n): t = list(str(n - i)) t = [int(m) for m in t] u = list(str(i)) u = [int(m) for m in u] if ans > int(sum(t) + sum(u)): ans = int(sum(t) + sum(u)) print(ans)
24
34
0.475
fc9bd35f71c5337351e520122e83de33359e925d
7,348
py
Python
code/process_QA_metrics.py
chrispycheng/nuisance
4ba140b2b8760a45a594cd49451b6d4a7e1cc3db
[ "Apache-2.0" ]
null
null
null
code/process_QA_metrics.py
chrispycheng/nuisance
4ba140b2b8760a45a594cd49451b6d4a7e1cc3db
[ "Apache-2.0" ]
8
2020-06-29T13:01:22.000Z
2021-01-21T02:05:24.000Z
code/process_QA_metrics.py
chrispycheng/nuisance
4ba140b2b8760a45a594cd49451b6d4a7e1cc3db
[ "Apache-2.0" ]
1
2020-08-11T14:09:25.000Z
2020-08-11T14:09:25.000Z
#!/usr/bin/env python3 # Processing the JSON files in this folder # Chris Cheng 2018 import os import os.path as op import json import csv import re import datetime import time import sys from optparse import OptionParser, Option from glob import glob # FILE PATHS TO BE ESTABLISHED bids_subject = 'qa' bids_ds_path ...
40.822222
142
0.593767
f198156fc2bae0669e0cf55d2178611f9bb6531c
10,712
py
Python
mi/dataset/parser/dosta_abcdjm_ctdbp_dcl.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
1
2018-09-14T23:28:29.000Z
2018-09-14T23:28:29.000Z
mi/dataset/parser/dosta_abcdjm_ctdbp_dcl.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
33
2017-04-25T19:53:45.000Z
2022-03-18T17:42:18.000Z
mi/dataset/parser/dosta_abcdjm_ctdbp_dcl.py
cdobs/mi-instrument
99f9322a4afabc5dff9b0fad12166075efce838c
[ "BSD-2-Clause" ]
31
2015-03-04T01:01:09.000Z
2020-10-28T14:42:12.000Z
#!/usr/bin/env python """ @package mi.dataset.parser @file mi-dataset/mi/dataset/parser/dosta_abcdjm_ctdbp_dcl.py @author Jeff Roy @brief Parser for the dosta_d_ctdbp_dcl dataset driver This file contains code for the dosta_d_ctdbp_dcl parser and code to produce data particles. The input file is ASCII. The record ty...
44.820084
120
0.687827
8584c13a254bd319a12fb50997d5414d0f1bcc41
9,692
py
Python
tests/forms/test_widgets.py
Starou/django-stachoutils
b6f7b67edfcbb626014abae78a71348043537bff
[ "BSD-3-Clause" ]
3
2017-04-26T10:32:05.000Z
2017-12-22T11:11:15.000Z
tests/forms/test_widgets.py
Starou/django-stachoutils
b6f7b67edfcbb626014abae78a71348043537bff
[ "BSD-3-Clause" ]
22
2017-12-21T09:19:56.000Z
2020-11-30T15:48:33.000Z
tests/forms/test_widgets.py
Starou/django-stachoutils
b6f7b67edfcbb626014abae78a71348043537bff
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.test import TestCase from .models import Car class WidgetsTest(TestCase): def test_render_admin_texte_editeur_widget(self): from django_stachoutils.forms.widgets import AdminTexteEditeur class CarForm(forms.ModelForm): des...
43.855204
242
0.51135
e825e2d3c380a76074a3d4b3496041d8743c4225
8,979
py
Python
intersight/model/kubernetes_virtual_machine_infra_config_policy_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/kubernetes_virtual_machine_infra_config_policy_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/kubernetes_virtual_machine_infra_config_policy_list_all_of.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
51.017045
1,678
0.649627
83c09b09ced4d9ed87de692e31726cb119dfe7ef
8,617
py
Python
shitty_thigs_to_run/Schach.py
JStoppe/chess_first_try
0fd763e50688c57f277f25d3d859c815a6f01d32
[ "MIT" ]
null
null
null
shitty_thigs_to_run/Schach.py
JStoppe/chess_first_try
0fd763e50688c57f277f25d3d859c815a6f01d32
[ "MIT" ]
null
null
null
shitty_thigs_to_run/Schach.py
JStoppe/chess_first_try
0fd763e50688c57f277f25d3d859c815a6f01d32
[ "MIT" ]
null
null
null
gameboard = [['T2', 'k2', 'B2', 'Q2', 'K2', 'B2', 'k2', 'T2'], ['P2', 'P2', 'P2', 'P2', 'P2', 'P2', 'P2', 'P2'], ['00', '00', '00', '00', '00', '00', '00', '00'], ['00', '00', '00', '00', '00', '00', '00', '00'], ['00', '00', '00', '00', '00', '00', '00', '00'], ...
48.960227
131
0.595567
59507d036a6050331c83b4096c48a86229c2e6d1
2,327
py
Python
scripts/tester.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
null
null
null
scripts/tester.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
null
null
null
scripts/tester.py
Ais105/course_project
a4ea3991756be2d12ae3fef9db6956f9d09c0c07
[ "MIT" ]
1
2020-02-18T20:56:57.000Z
2020-02-18T20:56:57.000Z
""" [X] repos [X] branches [X] files for commit [X] tags [X] submodules [ ] bags for changed files """ import git import os import shutil from github_client.client import GitHubClient from utils.painter import paint if __name__ == '__main__': user = os.environ['user_name'] password =...
32.319444
88
0.696605
900ddbb8d8722c9bd6655d66cec0fffca963d7fa
6,351
py
Python
unfollower_checker.py
andreamisu/instagram_unfollow_checker
322a6a541ed564f1fb88450037cab664a95342e4
[ "MIT" ]
12
2021-03-20T00:57:50.000Z
2022-02-06T10:54:08.000Z
unfollower_checker.py
andreamisu/instagram_unfollow_checker
322a6a541ed564f1fb88450037cab664a95342e4
[ "MIT" ]
null
null
null
unfollower_checker.py
andreamisu/instagram_unfollow_checker
322a6a541ed564f1fb88450037cab664a95342e4
[ "MIT" ]
null
null
null
import json import codecs import datetime from os import supports_follow_symlinks import os.path import logging import argparse import pickle from datetime import date try: from instagram_private_api import ( Client, ClientError, ClientLoginError, ClientCookieExpiredError, ClientLoginRequiredError...
36.5
122
0.633129
ee281707fe95747634e28165aa8f1462436a701a
14,395
py
Python
cobra_sbml_validator.py
npusarla/cobra_sbml_validator
3dffb18c8d56906bc34fd155b83a9eee6f194684
[ "MIT" ]
null
null
null
cobra_sbml_validator.py
npusarla/cobra_sbml_validator
3dffb18c8d56906bc34fd155b83a9eee6f194684
[ "MIT" ]
null
null
null
cobra_sbml_validator.py
npusarla/cobra_sbml_validator
3dffb18c8d56906bc34fd155b83a9eee6f194684
[ "MIT" ]
null
null
null
from gzip import GzipFile from bz2 import decompress as bz2_decompress from tempfile import NamedTemporaryFile from json import dumps import shutil from os import mkdir, unlink, path from os.path import isdir, isfile, join from Bio import Entrez, SeqIO Entrez.email = 'npusarla@ucsd.edu' import argparse import re from...
32.940503
116
0.599931
cdf6bfcb8b82fb61707a238c4d8f2cef225498c6
28,464
py
Python
openstack_dashboard/test/api_tests/neutron_tests.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/api_tests/neutron_tests.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/api_tests/neutron_tests.py
kogotko/carburetor
4afa3f51de877d955e6e1cc71c0bd7e07d606ad6
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
42.231454
84
0.642917
418bae306e971977cbd296aef04af81602fe9efe
726
py
Python
weather/interfaces/fastapi/app.py
gustavorodarte/weather-api
15d461fc56df2ff5922c2c23f00b4fe02cc37b93
[ "MIT" ]
null
null
null
weather/interfaces/fastapi/app.py
gustavorodarte/weather-api
15d461fc56df2ff5922c2c23f00b4fe02cc37b93
[ "MIT" ]
null
null
null
weather/interfaces/fastapi/app.py
gustavorodarte/weather-api
15d461fc56df2ff5922c2c23f00b4fe02cc37b93
[ "MIT" ]
null
null
null
from fastapi.applications import FastAPI from toolz import pipe from weather.config.environment import Settings from weather.interfaces.fastapi.api import weather, root def _create_instance(settings: Settings) -> FastAPI: return FastAPI( debug=settings.WEB_APP_DEBUG, title=settings.WEB_APP_TITLE,...
25.928571
57
0.735537
de547ead7bac5dba7935e3ec65699c76b422c8a5
709
py
Python
evalml/model_family/utils.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
null
null
null
evalml/model_family/utils.py
BlockchainClimateInstitute/price_microservice
11d1cff8965fe1befc997e9da3dc09efceed4579
[ "BSD-3-Clause" ]
13
2021-03-04T19:29:09.000Z
2022-03-07T01:00:43.000Z
evalml/model_family/utils.py
RG4421/evalml
33c62abe6d107d1da2f54e9e44a90f18aaf916a9
[ "BSD-3-Clause" ]
null
null
null
from .model_family import ModelFamily def handle_model_family(model_family): """Handles model_family by either returning the ModelFamily or converting from a string Arguments: model_family (str or ModelFamily): Model type that needs to be handled Returns: ModelFamily """ if isin...
30.826087
91
0.682652
8d357c52f1d1fdcfc41100137a1f6935cbaaa598
19,975
py
Python
moler/cmd/unix/ip_route.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
moler/cmd/unix/ip_route.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
moler/cmd/unix/ip_route.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- """ ip route command module. """ __author__ = 'Yang Snackwell, Marcin Usielski, Grzegorz Latuszek' __copyright__ = 'Copyright (C) 2018-2019, Nokia' __email__ = 'snackwell.yang@nokia-sbell.com, marcin.usielski@nokia.com, grzegorz.latuszek@nokia.com' import re from moler.cmd.unix.genericunix im...
40.191147
119
0.501176
90b801d343545a11009f0b5ecc8dd2af2c9f92ca
3,189
py
Python
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
ecommerce_project/apps/ecommerce/migrations/0001_initial.py
mlopezf2019/guadalupe_sowos_examen_3
813f960f2428ac5d753a02888134ac3992e9018e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-27 20:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( ...
41.415584
123
0.54688
abfa3610a777d28f7a1c86eb4f303d79691834ef
2,662
py
Python
heat/objects/user_creds.py
stackriot/heat
9ed612906e388eda8bf850420cbceef54e05841c
[ "Apache-2.0" ]
265
2015-01-02T09:33:22.000Z
2022-03-26T23:19:54.000Z
heat/objects/user_creds.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
8
2015-09-01T15:43:19.000Z
2021-12-14T05:18:23.000Z
heat/objects/user_creds.py
HyunJin-Jeong/heat
8353fddf9ebfb0eca67d6f2b2feb529031acff89
[ "Apache-2.0" ]
295
2015-01-06T07:00:40.000Z
2021-09-06T08:05:06.000Z
# Copyright 2014 Intel Corp. # # 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, soft...
35.972973
78
0.698347
516f6aa44b9612dc3b604f7bdca517eae16eb731
5,664
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutSettings.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutSettings.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/TableLayoutSettings.py
tranconbv/ironpython-stubs
a601759e6c6819beff8e6b639d18a24b7e351851
[ "MIT" ]
null
null
null
class TableLayoutSettings(LayoutSettings,ISerializable): """ Collects the characteristics associated with table layouts. """ def Instance(self): """ This function has been arbitrarily put into the stubs""" return TableLayoutSettings() def GetCellPosition(self,control): """ GetCellPosition(self: Tabl...
37.019608
215
0.72334
def588da5d19e53894fc9cf5027f364037f7f864
2,820
py
Python
tock/hours/models.py
rykelley/tock
baffd4dbb38663c60acf4a0e5a1a10b38dd5f55a
[ "CC0-1.0" ]
null
null
null
tock/hours/models.py
rykelley/tock
baffd4dbb38663c60acf4a0e5a1a10b38dd5f55a
[ "CC0-1.0" ]
2
2021-06-10T23:57:13.000Z
2022-03-21T22:22:46.000Z
tock/hours/models.py
rykelley/tock
baffd4dbb38663c60acf4a0e5a1a10b38dd5f55a
[ "CC0-1.0" ]
null
null
null
from .utils import ValidateOnSaveMixin from projects.models import Project from django.contrib.auth.models import User from django.core.validators import MaxValueValidator from django.db import models class ReportingPeriod(ValidateOnSaveMixin, models.Model): start_date = models.DateField(unique=True) end_dat...
34.814815
77
0.665957
c34715e4e1251b5c3e86b8e54b73a20d41473df3
829
py
Python
sanic_transmute/route.py
pawelkoston/sanic-transmute
8c841d86edec6b69df746cbcc50f74cf36ff951f
[ "MIT" ]
50
2017-05-30T00:04:33.000Z
2022-01-30T17:12:52.000Z
sanic_transmute/route.py
yunstanford/sanic-transmute
5040819d0bd6024e257603f69d12984a3b112cf0
[ "MIT" ]
6
2017-11-04T20:19:46.000Z
2020-02-14T07:39:29.000Z
sanic_transmute/route.py
pawelkoston/sanic-transmute
8c841d86edec6b69df746cbcc50f74cf36ff951f
[ "MIT" ]
11
2017-10-08T02:05:58.000Z
2021-11-25T08:31:18.000Z
from transmute_core import TransmuteFunction, default_context from .handler import create_handler from .swagger import get_swagger_spec def add_route(app_or_blueprint, fn, context=default_context): """ a decorator that adds a transmute route to the application """ transmute_func = TransmuteFunction( ...
31.884615
93
0.726176
d41d677dc3e882a4c866903b824171c7267e2200
5,505
py
Python
froi/gui/component/watersheddialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/gui/component/watersheddialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
froi/gui/component/watersheddialog.py
zhouguangfu/FreeROI
0605c2a0fe2457e3703a4a7548299fc2c1e9aca0
[ "BSD-3-Clause" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from PyQt4.QtCore import * from PyQt4.QtGui import * from froi.algorithm import segment class WatershedDialog(QDialog): """A dialog for watershed options""" def __init__(self, model, main_win, ...
34.40625
76
0.592189
8ad1af2ff6e27f3ff9dc6a739e0b2de8b0245872
12,712
py
Python
hazelcast/proxy/pn_counter.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
3
2020-05-01T15:01:54.000Z
2021-01-27T14:51:45.000Z
hazelcast/proxy/pn_counter.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
null
null
null
hazelcast/proxy/pn_counter.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
1
2020-12-01T20:00:35.000Z
2020-12-01T20:00:35.000Z
import functools import random from hazelcast.core import DataMemberSelector from hazelcast.future import Future from hazelcast.proxy.base import Proxy from hazelcast.cluster import VectorClock from hazelcast.protocol.codec import pn_counter_add_codec, pn_counter_get_codec, \ pn_counter_get_configured_replica_coun...
43.834483
119
0.698553
5d2657d922e4f5b514e3b833e0d4f236b2fbe27f
1,381
py
Python
Bio/SeqUtils/CodonUsageIndices.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
2,856
2015-01-01T07:10:06.000Z
2022-03-31T18:17:25.000Z
Bio/SeqUtils/CodonUsageIndices.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
3,429
2015-01-05T11:11:42.000Z
2022-03-31T13:08:10.000Z
Bio/SeqUtils/CodonUsageIndices.py
lukasz-kozlowski/biopython
6b601cf09234e1e82cfc94ad5030389036cb6343
[ "BSD-3-Clause" ]
1,619
2015-01-05T13:07:11.000Z
2022-03-31T19:19:52.000Z
# Copyright 2003 Yair Benita. All rights reserved. # This file is part of the Biopython distribution and governed by your # choice of the "Biopython License Agreement" or the "BSD 3-Clause License". # Please see the LICENSE file that should have been included as part of this # package. """Codon adaption indexes, inclu...
47.62069
79
0.570601
f0316123635fc0f94c83144415fd822f2b984359
548
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/aline-feb0122-dev-23489
b5a1c66492698159f5fa07108226169ac7891738
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/aline-feb0122-dev-23489
b5a1c66492698159f5fa07108226169ac7891738
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-dev/aline-feb0122-dev-23489
b5a1c66492698159f5fa07108226169ac7891738
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "aline-feb0122-dev-23489.botics.co" site_params = { "name": "Aline Feb0122", } if custom_domain: site_params["domain"] = custom_domain Site.objects.up...
21.076923
61
0.658759
4d2a7c4d61754cd90f97ce9c0bb8b474b536f95d
988
py
Python
setup.py
ChaiZhi/coscmd
0b560e8fe105a74cb0246a1d60baef58d9661eb1
[ "MIT" ]
null
null
null
setup.py
ChaiZhi/coscmd
0b560e8fe105a74cb0246a1d60baef58d9661eb1
[ "MIT" ]
null
null
null
setup.py
ChaiZhi/coscmd
0b560e8fe105a74cb0246a1d60baef58d9661eb1
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from platform import python_version_tuple from coscmd import cos_global def requirements(): with open('requirements.txt', 'r') as fileobj: requirements = [line.strip() for line in fileobj] version = python_version_tuple() if version[...
25.333333
58
0.623482
da4bfe35dfc05177fbd47e21bc8824d80ee08f43
817
py
Python
app/common/sorter.py
D-0x10/h4s-api
37422c9b7cfcc9961f172dfc927de45a7504a67e
[ "MIT" ]
3
2018-04-12T10:37:36.000Z
2018-04-12T12:30:04.000Z
app/common/sorter.py
perssonsimon1/flask-api
37422c9b7cfcc9961f172dfc927de45a7504a67e
[ "MIT" ]
1
2021-04-30T20:34:38.000Z
2021-04-30T20:34:38.000Z
app/common/sorter.py
perssonsimon1/flask-api
37422c9b7cfcc9961f172dfc927de45a7504a67e
[ "MIT" ]
null
null
null
from app import app from app.tsn import accidents import json def sorted_list(numElements, keyFunc, descending=True, year='2017', keyFuncReturnsList = False): item_dict = dict() result = accidents.get(year).json()['value'] for item in result: keyRet = keyFunc(item) if keyFuncReturnsList: ...
27.233333
96
0.570379
b6d4d61acee2c1c4334bb73011bb0e39b1d7647e
7,611
py
Python
kubernetes/client/models/v1_horizontal_pod_autoscaler.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
kubernetes/client/models/v1_horizontal_pod_autoscaler.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
kubernetes/client/models/v1_horizontal_pod_autoscaler.py
Prahladk09/python-1
2dfb3035535e4be52ba549f1ff47acbe573b73f6
[ "Apache-2.0" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
31.845188
281
0.62252
2d2914e3c1c17f6f3164a9073021a9b50080d601
3,582
py
Python
python_backend/modules/jisho.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
null
null
null
python_backend/modules/jisho.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
2
2021-12-26T23:34:02.000Z
2021-12-26T23:34:11.000Z
python_backend/modules/jisho.py
BenLeong0/japanese_vocab_fetcher
c441eaf46c7330f9319216a6321ce8ec8d3de6cc
[ "MIT" ]
null
null
null
import json from threading import Thread import requests from custom_types.alternative_string_types import Kaki, URL from custom_types.exception_types import APIError from custom_types.jisho_api_types import JishoAPIItem, JishoAPIResponse from custom_types.response_types import JishoExtraItem, JishoMainData, Response...
27.553846
98
0.666667
e42c6966546d3ce9d578bac7ae251ca85f723735
8,893
py
Python
korbinian/filtering/tmseg.py
teese/korbinian
3715b40830957f04c4f44b01025449bc6b6a936e
[ "MIT" ]
3
2018-03-08T12:03:50.000Z
2018-04-09T12:44:39.000Z
korbinian/filtering/tmseg.py
teese/korbinian
3715b40830957f04c4f44b01025449bc6b6a936e
[ "MIT" ]
2
2018-06-06T09:51:11.000Z
2018-08-06T15:56:41.000Z
korbinian/filtering/tmseg.py
teese/korbinian
3715b40830957f04c4f44b01025449bc6b6a936e
[ "MIT" ]
null
null
null
""" Author: Dominik Müller Created: May 7 00:06 2018 Dependencies: Python >=3.3 pandas tmseg Purpose: Protein Data Science Analysis of evolutionary sequences of transmembrane proteins Credits: Mark Teese Martin Ortner ...
42.146919
125
0.646351
347ee909395bdfe9b3f35b3422daad489aaae579
447
py
Python
src/dataset/migrations/0015_dataset_filesize.py
matthiasplappert/motion-annotation-tool
129f0a2ee731b8d8e01f9794ee35dabf17696ef9
[ "MIT" ]
5
2017-01-26T12:57:43.000Z
2020-05-25T06:13:48.000Z
src/dataset/migrations/0015_dataset_filesize.py
matthiasplappert/motion-annotation-tool
129f0a2ee731b8d8e01f9794ee35dabf17696ef9
[ "MIT" ]
3
2020-06-05T17:43:45.000Z
2021-06-10T19:35:19.000Z
src/dataset/migrations/0015_dataset_filesize.py
matthiasplappert/motion-annotation-tool
129f0a2ee731b8d8e01f9794ee35dabf17696ef9
[ "MIT" ]
1
2021-02-09T04:46:03.000Z
2021-02-09T04:46:03.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.2 on 2016-06-14 10:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dataset', '0014_dataset'), ] operations = [ migrations.AddField( ...
21.285714
57
0.612975
d43fd88fe2ef2caef82d157f84881e77dfc542b5
537
py
Python
gym_chip8/envs/core/constants.py
brocolab/gym-chip8
3c1599bf901838f690dca144db7b7d6cee36dbfc
[ "MIT" ]
2
2017-07-19T18:50:37.000Z
2021-12-16T13:46:59.000Z
gym_chip8/envs/core/constants.py
brocolab/gym-chip8
3c1599bf901838f690dca144db7b7d6cee36dbfc
[ "MIT" ]
3
2017-07-19T12:16:36.000Z
2017-07-19T12:20:48.000Z
gym_chip8/envs/core/constants.py
brocolab/gym-chip8
3c1599bf901838f690dca144db7b7d6cee36dbfc
[ "MIT" ]
null
null
null
FREQUENCY = 60 MEMORY_SIZE = 0x1000 PROGRAM_OFFSET = 0x200 SZ_INSTR = 0x2 SCREEN_ROWS = 32 SCREEN_COLS = 64 INSTRUCTIONS_PER_CYCLE = 9 FONT_OFFSET = 0x000 FONT_SIZE = 5 FONTDATA = ( "F0909090F0" # 0 "2060202070" # 1 "F010F080F0" # 2 "F010F010F0" # 3 "9090F01010" # 4 "F080F010F0" # 5 "...
18.517241
26
0.590317
deb17513508467e3a979bd4500c53e01e8a6f645
246
py
Python
backend/src/web/home.py
felipeduardo/cursospythonpro
a6e642b409881fa434ebffdbd51f101962e485a7
[ "MIT" ]
1
2017-03-27T22:24:47.000Z
2017-03-27T22:24:47.000Z
backend/src/web/home.py
almeida-marcusaf/cursos-apppy
97349bc56409ef25b902d3c0b6a61615c627a7ba
[ "MIT" ]
null
null
null
backend/src/web/home.py
almeida-marcusaf/cursos-apppy
97349bc56409ef25b902d3c0b6a61615c627a7ba
[ "MIT" ]
1
2021-03-05T21:17:23.000Z
2021-03-05T21:17:23.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from web import my_form from zen import router def index(_write_tmpl): url = router.to_path(my_form) _write_tmpl('templates/home.html', {'form_url': url})
24.6
57
0.735772
dfb70f79bfe1b03f913e6e8af5834e27f18965e6
1,024
py
Python
tiprocessing/ProcessIRTimelapse.py
felixriese/thermal-image-processing
17508a8d4486b418604e16126180837bf9ed8768
[ "BSD-3-Clause" ]
21
2019-12-05T08:57:49.000Z
2021-09-12T09:05:52.000Z
ProcessIRTimelapse.py
INNOVASE/THERMAL-IMAGE-PROCESSING
d92a21e3589186140f13b623225999acc06b7adb
[ "BSD-3-Clause" ]
1
2020-05-05T05:15:54.000Z
2020-05-06T11:47:20.000Z
ProcessIRTimelapse.py
INNOVASE/THERMAL-IMAGE-PROCESSING
d92a21e3589186140f13b623225999acc06b7adb
[ "BSD-3-Clause" ]
10
2020-02-01T11:24:58.000Z
2021-12-10T08:15:18.000Z
"""Export data (timelapse) from IR camera frames to CSV.""" import csv from .IRUtils import processIRTimelapse if __name__ == "__main__": # input directory input_dir = "/path/to/inputfiles/" # export path export_path = "/IRExport/" # list of .TMC files ir_list = "ir_list_myexperiment.csv" ...
28.444444
63
0.595703
79a6bec880b0e708c73d0823ec116aa16ea380c7
4,262
py
Python
lesson6/word2vec_utils.py
hadifar/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
10
2018-09-16T16:18:21.000Z
2019-11-05T22:13:24.000Z
lesson6/word2vec_utils.py
Ehsan-Yaghoubi/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
null
null
null
lesson6/word2vec_utils.py
Ehsan-Yaghoubi/tensorflow-starter
187b6956e3a0cc45a065e753240eced93bc4c592
[ "MIT" ]
5
2018-12-22T10:08:09.000Z
2019-12-22T07:14:32.000Z
import os import random import sys from collections import Counter from helper.utils import download_one_file, safe_mkdir sys.path.append('..') import zipfile import numpy as np import tensorflow as tf def read_data(file_path): """ Read data into a list of tokens There should be 17,005,207 tokens """...
35.815126
92
0.693806
0f76b296502a94501860c0517a41d75f947d06bf
2,155
py
Python
xsocs/gui/widgets/Containers.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
xsocs/gui/widgets/Containers.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
xsocs/gui/widgets/Containers.py
omserta/xsocs
5e1cf1352233498c48f0566e0b819e18373e95e5
[ "MIT" ]
null
null
null
# coding: utf-8 # /*########################################################################## # # Copyright (c) 2015-2016 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to d...
38.482143
79
0.605568
9e69cc6b28560b896de62ecee65e45266108cf01
647
py
Python
learning/bin/rst2xml.py
leonelcs/python_learning
f583cda1797e9b2e6658ac32659b79ccd29073fa
[ "MIT" ]
null
null
null
learning/bin/rst2xml.py
leonelcs/python_learning
f583cda1797e9b2e6658ac32659b79ccd29073fa
[ "MIT" ]
null
null
null
learning/bin/rst2xml.py
leonelcs/python_learning
f583cda1797e9b2e6658ac32659b79ccd29073fa
[ "MIT" ]
null
null
null
#!/Users/leonelcs/python/python_learning/learning/bin/python3.7 # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: imp...
26.958333
70
0.746522
1e5c3c3d260184f11eaec49121b7b68115dae935
2,741
py
Python
backend/server/apps/ml/tests.py
exile79/my_ml_service
e912cb169b817fd8dfd490e1ffbdc71727a34c29
[ "MIT" ]
null
null
null
backend/server/apps/ml/tests.py
exile79/my_ml_service
e912cb169b817fd8dfd490e1ffbdc71727a34c29
[ "MIT" ]
null
null
null
backend/server/apps/ml/tests.py
exile79/my_ml_service
e912cb169b817fd8dfd490e1ffbdc71727a34c29
[ "MIT" ]
null
null
null
import inspect from django.test import TestCase from apps.ml.income_classifier.random_forest import RandomForestClassifier from apps.ml.income_classifier.extra_trees import ExtraTreesClassifier from apps.ml.registry import MLRegistry class MLTests(TestCase): def test_rf_algorithm(self): input_data = { ...
37.040541
84
0.587012
62e67574ff414cef9dd57ca86caec43477a33960
4,495
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_length.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformLength(unittest.TestCase): def setUp(self): self.data = { "list": ["Canada", "Argentina", "Cyprus", "Schweden", "Norway", "USA", "Germany", "United Kingdom", "Z"], ...
39.086957
118
0.448498
6e03dfc997709eb9c15a397ade136d1bb6a78553
1,719
py
Python
orthogonal_snakemake/remove_inchikeys_in_metlin.py
plbremer/cfmid_4_benchmarking
11f7b12dad4db56d9cb8dbcb57503ddfa786fd78
[ "MIT" ]
null
null
null
orthogonal_snakemake/remove_inchikeys_in_metlin.py
plbremer/cfmid_4_benchmarking
11f7b12dad4db56d9cb8dbcb57503ddfa786fd78
[ "MIT" ]
null
null
null
orthogonal_snakemake/remove_inchikeys_in_metlin.py
plbremer/cfmid_4_benchmarking
11f7b12dad4db56d9cb8dbcb57503ddfa786fd78
[ "MIT" ]
null
null
null
orthogonal_similarity_input_address=snakemake.input.orthogonal_similarity_input_address metlin_inchikey_address=snakemake.input.metlin_inchikey_address orthogonal_similarity_output_address=snakemake.output.orthogonal_similarity_output_address def get_set_of_firstblock_from_list(inchikey_list_address): inchike...
32.433962
169
0.776033
d44ecf6d068a67fb7eb00b9e1a9e992b2057664a
354
py
Python
src/radios/exceptions.py
frenck/python-radios
f5b36cab45b639f2d11fe003033914473e66db08
[ "MIT" ]
7
2022-02-21T13:20:15.000Z
2022-02-26T10:58:17.000Z
src/radios/exceptions.py
frenck/python-radios
f5b36cab45b639f2d11fe003033914473e66db08
[ "MIT" ]
2
2022-03-07T16:46:22.000Z
2022-03-30T06:34:03.000Z
src/radios/exceptions.py
frenck/python-radios
f5b36cab45b639f2d11fe003033914473e66db08
[ "MIT" ]
null
null
null
"""Exceptions for the Radio Browser API.""" class RadioBrowserError(Exception): """Generic Radio Browser exception.""" class RadioBrowserConnectionError(RadioBrowserError): """Radio Browser connection exception.""" class RadioBrowserConnectionTimeoutError(RadioBrowserConnectionError): """Radio Browser...
25.285714
70
0.774011
b5aa9a93b129d2fdae12ab6e5818640d0e4b2d4e
13,697
py
Python
ApiTutorial/snippets/migrations/0001_initial.py
CodeForTravel/Django_REST_API_Practice
aec8fc05a50e0fb764ceef2e1a0b8590c820881f
[ "bzip2-1.0.6" ]
null
null
null
ApiTutorial/snippets/migrations/0001_initial.py
CodeForTravel/Django_REST_API_Practice
aec8fc05a50e0fb764ceef2e1a0b8590c820881f
[ "bzip2-1.0.6" ]
null
null
null
ApiTutorial/snippets/migrations/0001_initial.py
CodeForTravel/Django_REST_API_Practice
aec8fc05a50e0fb764ceef2e1a0b8590c820881f
[ "bzip2-1.0.6" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-20 19:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
391.342857
11,632
0.566839
b6525d10509aa0e1af1d07ed185023545b4aab1f
1,550
py
Python
vega/search_space/fine_grained_space/sample/random_search.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
vega/search_space/fine_grained_space/sample/random_search.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
vega/search_space/fine_grained_space/sample/random_search.py
qixiuai/vega
3e6588ea4aedb03e3594a549a97ffdb86adb88d1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
32.291667
78
0.687742
be91d6555f19a8f53bde468c45b409bb60b6798d
268
py
Python
site/demo.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
site/demo.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
site/demo.py
CKPBot/site
af8d4f7ebc370accefb61f1977782f127141ca68
[ "MIT" ]
null
null
null
import Chatbot.console as console import Chatbot.chatbot as Chatbot c = console.Console() while True: speech = input('Input a sentence:') res,path = c.rule_match(speech) c.write_output(speech,res,path) #chatter = Chatbot.Chatbot() #chatter.waiting_loop()
24.363636
39
0.735075
45657c3b0a8311b717bc3ac4bf9e086f3cc0282f
1,552
py
Python
pysmi/reader/base.py
pysnmp/pysmi
8859f4e81bb4d2ee7396e710163782a59aed854b
[ "BSD-2-Clause" ]
null
null
null
pysmi/reader/base.py
pysnmp/pysmi
8859f4e81bb4d2ee7396e710163782a59aed854b
[ "BSD-2-Clause" ]
null
null
null
pysmi/reader/base.py
pysnmp/pysmi
8859f4e81bb4d2ee7396e710163782a59aed854b
[ "BSD-2-Clause" ]
null
null
null
# # This file is part of pysmi software. # # Copyright (c) 2015-2019, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pysmi/license.html # import os class AbstractReader(object): maxMibSize = 10000000 # MIBs can't be that large fuzzyMatching = True # try different file names while searching ...
29.283019
76
0.568943
ec540bf572403cb1bf58e32fc33b9826963f5736
2,308
py
Python
test/create_testdata.py
ViktorAlm/FARM
e127d421773d80037c6b5c49c63cd0b107ba6cfd
[ "Apache-2.0" ]
1,551
2019-07-17T18:21:08.000Z
2022-03-24T18:09:07.000Z
test/create_testdata.py
ViktorAlm/FARM
e127d421773d80037c6b5c49c63cd0b107ba6cfd
[ "Apache-2.0" ]
555
2019-07-23T09:00:54.000Z
2022-03-31T15:31:06.000Z
test/create_testdata.py
ViktorAlm/FARM
e127d421773d80037c6b5c49c63cd0b107ba6cfd
[ "Apache-2.0" ]
259
2019-07-22T08:12:01.000Z
2022-03-26T09:41:00.000Z
import argparse import json import logging import os import pprint logger = logging.getLogger(__name__) def squad_subsample(): if not os.path.exists("samples/qa"): os.makedirs("samples/qa") with open('../data/squad20/dev-v2.0.json') as json_file: data = json.load(json_file) ss = data["da...
36.0625
142
0.65338
ffdc8c860e47c1889087511142ec6aca889e8f6e
22,675
py
Python
figures/utils/cnnlstm_analysis_utils.py
ndawlab/vectorRPE
d4cd6734b6d71e93e66f2e98edd745951866d8ac
[ "MIT" ]
null
null
null
figures/utils/cnnlstm_analysis_utils.py
ndawlab/vectorRPE
d4cd6734b6d71e93e66f2e98edd745951866d8ac
[ "MIT" ]
null
null
null
figures/utils/cnnlstm_analysis_utils.py
ndawlab/vectorRPE
d4cd6734b6d71e93e66f2e98edd745951866d8ac
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib import numpy as np import pandas as pd from mpl_toolkits.mplot3d import Axes3D import os import zipfile import io #### DATA MANIPULATION def get_params_from_zip(load_path): model_file = zipfile.ZipFile(load_path + '.zip', "r") parameter_bytes = model_file.r...
34.831029
171
0.635987
3b25385418578d9624b61a6b93fa15b01f18faec
2,694
py
Python
python/heterocl/mlir/utils.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/utils.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
python/heterocl/mlir/utils.py
chhzh123/heterocl
856e9b8ad877d11280a7e457e91ca89803c05570
[ "Apache-2.0" ]
null
null
null
import hcl_mlir from hcl_mlir.dialects import hcl as hcl_d from hcl_mlir.ir import * from ..config import init_dtype from ..types import Fixed, Float, Int, Type, UFixed, UInt, dtype_to_str def hcl_dtype_to_mlir(dtype): if hcl_mlir.is_hcl_mlir_type(dtype): return dtype elif isinstance(dtype, Int): ...
32.457831
71
0.635486
4a854d7aaddf8e8c0cb4ba19ec065e37815af4c0
2,673
py
Python
MkDocs/build.py
HACManchester/Apps.Cad
e60e94e80330b7dc75a4e4cd978c4ecf0ba9c4ab
[ "CC0-1.0" ]
null
null
null
MkDocs/build.py
HACManchester/Apps.Cad
e60e94e80330b7dc75a4e4cd978c4ecf0ba9c4ab
[ "CC0-1.0" ]
null
null
null
MkDocs/build.py
HACManchester/Apps.Cad
e60e94e80330b7dc75a4e4cd978c4ecf0ba9c4ab
[ "CC0-1.0" ]
null
null
null
#! python3 import os, sys, subprocess, shutil # Full url of site is http://asofttech.github.io/Appst.Gentoo.Rpi/ # MkDocs Build Script class MkDocsBuild(object): # Class Init def __init__(self): self.SRCDIR = "Docs" self.BUILDDIR = "site" self.MKDOCSDIR = "./" # Run a command ...
31.821429
130
0.565657
8988021aec092f1d85a3c5564f06449c80d20170
1,824
py
Python
TestCiphers/TandemCipher.py
nlitsme/pyCryproAdapter
5382982b7263d357ec3d897075e0b24a74417e2d
[ "MIT" ]
2
2018-10-14T21:09:51.000Z
2019-12-22T22:50:59.000Z
TestCiphers/TandemCipher.py
nlitsme/pyCryproAdapter
5382982b7263d357ec3d897075e0b24a74417e2d
[ "MIT" ]
null
null
null
TestCiphers/TandemCipher.py
nlitsme/pyCryproAdapter
5382982b7263d357ec3d897075e0b24a74417e2d
[ "MIT" ]
2
2020-07-12T17:35:48.000Z
2021-02-19T18:30:40.000Z
""" `TandemCipher` is the cipher as used in many GSMK products. It XORs the result of an AES and a Twofish encryption, each initialized with a different SHA256 of the masterkey. Note that I am using a factory class here, instead of a factory module as is common in pyCrypto. """ from Crypto.Util.strxor import strxor i...
28.5
96
0.676535
5948b49657534301faa5fbd617aefcf01b619072
962
py
Python
recipe_scrapers/tudogostoso.py
renrut/recipe-scrapers
6358ac057b12f7666ca50ad878468933512f4d0a
[ "MIT" ]
1
2021-01-18T01:43:36.000Z
2021-01-18T01:43:36.000Z
recipe_scrapers/tudogostoso.py
renrut/recipe-scrapers
6358ac057b12f7666ca50ad878468933512f4d0a
[ "MIT" ]
null
null
null
recipe_scrapers/tudogostoso.py
renrut/recipe-scrapers
6358ac057b12f7666ca50ad878468933512f4d0a
[ "MIT" ]
null
null
null
from ._abstract import AbstractScraper from ._utils import get_minutes, normalize_string class TudoGostoso(AbstractScraper): @classmethod def host(self): return 'tudogostoso.com.br' def title(self): return normalize_string(self.soup.find('h1').get_text()) def total_time(self): ...
24.05
64
0.575884
fb5babeedc1cede68e90bee8870899d90ea79e76
643
py
Python
LeetCodeSolutions/LeetCode_0831.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
24
2020-03-28T06:10:25.000Z
2021-11-23T05:01:29.000Z
LeetCodeSolutions/LeetCode_0831.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
null
null
null
LeetCodeSolutions/LeetCode_0831.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
8
2020-05-18T02:43:16.000Z
2021-05-24T18:11:38.000Z
class Solution: def maskPII(self, S: str) -> str: s = S.lower() if '@' in s: t = s.split('@') t[0] = t[0][0] + '*' * 5 + t[0][-1] return '@'.join(t) else: t = [] for c in s: if '0' <= c <= '9': t....
27.956522
47
0.250389
f8c989a954d3fd7e23733b0fe179124c6a367214
56,097
py
Python
src/django/api/serializers.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
null
null
null
src/django/api/serializers.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
null
null
null
src/django/api/serializers.py
azavea/open-apparel-registry
20f7a6d502d9152c85ee7f2696b25b6badf98924
[ "MIT" ]
null
null
null
from collections import defaultdict from django.conf import settings from django.core import exceptions from django.db import transaction from django.contrib.auth.forms import PasswordResetForm from django.contrib.auth import password_validation from django.urls import reverse from django.db.models import Count from r...
36.168279
119
0.617769
3b16fa0d660a06b807e7f50cd240221d44151bd8
2,050
py
Python
Superhero-statistics-project/code.py
Monalisajana/ga-learner-dsmp-repo
1a1333a22fac0a4404d8bb0c1edca1f87fdeb43f
[ "MIT" ]
null
null
null
Superhero-statistics-project/code.py
Monalisajana/ga-learner-dsmp-repo
1a1333a22fac0a4404d8bb0c1edca1f87fdeb43f
[ "MIT" ]
null
null
null
Superhero-statistics-project/code.py
Monalisajana/ga-learner-dsmp-repo
1a1333a22fac0a4404d8bb0c1edca1f87fdeb43f
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data = pd.read_csv(path) #print (data) data['Gender'].replace('-','Agender',inplace=True) #print(data) gender_count = data['Gender'].value_counts() print(gender_count) plt.hi...
23.563218
84
0.686829
df2b39af1927b6439bf68ef07090d7fb94c2444b
2,002
py
Python
main.py
Kakadu123/ConferenceApp
1397e6d3ab89e9a71825590056d526382044f23e
[ "Apache-2.0" ]
null
null
null
main.py
Kakadu123/ConferenceApp
1397e6d3ab89e9a71825590056d526382044f23e
[ "Apache-2.0" ]
null
null
null
main.py
Kakadu123/ConferenceApp
1397e6d3ab89e9a71825590056d526382044f23e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ main.py -- Udacity conference server-side Python App Engine HTTP controller handlers for memcache & task queue access $Id$ created by wesc on 2014 may 24 """ __author__ = 'wesc+api@google.com (Wesley Chun)' import webapp2 from google.appengine.api import app_identity from google.appe...
32.290323
81
0.671329
a891f966af0a6ad38cbfcf65bb3d3278ce548675
3,920
py
Python
docker/cas/src/funanidb.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
null
null
null
docker/cas/src/funanidb.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
3
2019-01-09T23:18:11.000Z
2020-07-08T10:36:35.000Z
docker/cas/src/funanidb.py
jdehaan/Funani
a70b5743c383c0f071cd93585bb41442052d9b38
[ "BSD-2-Clause" ]
1
2019-04-27T05:27:16.000Z
2019-04-27T05:27:16.000Z
# -*- coding: utf-8 -*- import logging import os from metadb import MetadataDatabase from mediadb import MediaDatabase from address import hash_file, shard LOGGER = logging.getLogger('funanidb') EXTENSIONS_IMAGES = ( '.jpg', '.jpeg', '.png', '.dng', '.tif', '.tiff', '.pnm', '.cr2', '.cr3', '.bmp', '.xcf'...
34.690265
97
0.619643
98b58937c88de3bc826d24a73c5fd6ba72b1e5bb
7,350
py
Python
jax/tools/jax_to_hlo.py
alexdavies/jax
812df27a2d8f61bfac95ff2867d1284cac81837f
[ "ECL-2.0", "Apache-2.0" ]
4
2021-04-02T03:46:28.000Z
2021-12-04T22:52:50.000Z
jax/tools/jax_to_hlo.py
alexdavies/jax
812df27a2d8f61bfac95ff2867d1284cac81837f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax/tools/jax_to_hlo.py
alexdavies/jax
812df27a2d8f61bfac95ff2867d1284cac81837f
[ "ECL-2.0", "Apache-2.0" ]
1
2020-09-23T14:01:13.000Z
2020-09-23T14:01:13.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.75
80
0.705714
f34bcb914457643d3faf5a4737a0eca01ce7daea
7,239
py
Python
src/game.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
4
2020-10-12T01:16:08.000Z
2020-10-27T13:05:56.000Z
src/game.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
null
null
null
src/game.py
trapsidanadir/flappy-bird
22d1ee90aaae55b4371889f4d9f83ace9f464dad
[ "MIT" ]
null
null
null
import time import os import random import pygame import neat import pickle from src.params import * from src.bird import Bird from src.pipes import Pipe from src.floor import Floor def draw_window(win,birds, pipes, floor, score, alive=True, stats = False): win.blit(BG_IMAGE, (0,0)) floor.draw(win) i...
31.889868
128
0.495372
9e39dbd2c34cb124b64b5239a5694fea016c3797
7,754
py
Python
machine learning/Random Forests/decision_tree.py
guiming-shi/assignment-algorithm
ac2cb1efcd08becb8f1904b5124bcd3e01f5756a
[ "MIT" ]
null
null
null
machine learning/Random Forests/decision_tree.py
guiming-shi/assignment-algorithm
ac2cb1efcd08becb8f1904b5124bcd3e01f5756a
[ "MIT" ]
null
null
null
machine learning/Random Forests/decision_tree.py
guiming-shi/assignment-algorithm
ac2cb1efcd08becb8f1904b5124bcd3e01f5756a
[ "MIT" ]
null
null
null
# Reference from the url: https://blog.csdn.net/asialee_bird/article/details/81118245 from math import log import operator # select_data[0] is the data # select_data[1] is the index of the data # select_data[2] is the index of the feature # len(select_data[0][0]) is the number of the feature(add the label(yes/no)) c...
43.561798
187
0.523214
b8bf47efcfb46e7b5fe41696a14dcad00f1b4c94
19,289
py
Python
bitmovin/resources/models/codecconfigurations/h265_codec_configuration.py
bitmovin/bitmovin-python
d183718d640117dd75141da261901dc2f60433b0
[ "Unlicense" ]
44
2016-12-12T17:37:23.000Z
2021-03-03T09:48:48.000Z
bitmovin/resources/models/codecconfigurations/h265_codec_configuration.py
bitmovin/bitmovin-python
d183718d640117dd75141da261901dc2f60433b0
[ "Unlicense" ]
38
2017-01-09T14:45:45.000Z
2022-02-27T18:04:33.000Z
bitmovin/resources/models/codecconfigurations/h265_codec_configuration.py
bitmovin/bitmovin-python
d183718d640117dd75141da261901dc2f60433b0
[ "Unlicense" ]
27
2017-02-02T22:49:31.000Z
2019-11-21T07:04:57.000Z
from bitmovin.errors import InvalidTypeError from bitmovin.resources.enums import H265Profile, H265Level, BAdapt, MaxCTUSize, TUInterDepth, TUIntraDepth, \ MotionSearch, VideoFormat, H265AdaptiveQuantizationMode from bitmovin.utils import Serializable from .video_codec_configuration import VideoCodecConfiguration ...
48.464824
150
0.629945
4e59fc3b54b0715043be0a85caf3ac4d41f9a292
3,346
py
Python
app.py
redouane-dev/opencv-detection-test
9d8fa0fcca7e8852dbc9c6465c1a241920591608
[ "MIT" ]
null
null
null
app.py
redouane-dev/opencv-detection-test
9d8fa0fcca7e8852dbc9c6465c1a241920591608
[ "MIT" ]
null
null
null
app.py
redouane-dev/opencv-detection-test
9d8fa0fcca7e8852dbc9c6465c1a241920591608
[ "MIT" ]
null
null
null
import cv2 import logging, coloredlogs face_cascade = cv2.CascadeClassifier('./classifiers/haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('./classifiers/haarcascade_eye.xml') smile_cascade = cv2.CascadeClassifier('./classifiers/haarcascade_smile.xml') def detect_n_plot(frame, detect_eyes=T...
32.485437
116
0.604005
9c70775542465cdec925b8dd054b918153a55a49
3,205
py
Python
tests/complex/graph_runs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/complex/graph_runs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
tests/complex/graph_runs.py
marcelotrevisani/acorns
682749b0963ffc0a3998a7065ef505fc95123f50
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import os import json import seaborn as sns import re sns.set(style="darkgrid") labels = ['3D_P1_non_zero', '3D_P2_non_zero', '3D_P3_non_zero', '3D_P4_non_zero'] def atoi(text): return int(text) if text.isdigit() else text def natural_keys(text): ...
41.089744
120
0.673323
5fca5ec3eb2edd8bee942cb5679f0fb00cdb8403
1,751
py
Python
kopf/structs/dicts.py
thevennamaneni/kopf
020f8bc91268225d43575e1bb69470ef10ae6113
[ "MIT" ]
null
null
null
kopf/structs/dicts.py
thevennamaneni/kopf
020f8bc91268225d43575e1bb69470ef10ae6113
[ "MIT" ]
null
null
null
kopf/structs/dicts.py
thevennamaneni/kopf
020f8bc91268225d43575e1bb69470ef10ae6113
[ "MIT" ]
null
null
null
""" Some basic dicts and field-in-a-dict manipulation helpers. """ import collections.abc from typing import Any, Union, Mapping, Tuple, List, Text, Iterable, Optional FieldPath = Tuple[str, ...] FieldSpec = Union[None, Text, FieldPath, List[str]] _UNSET = object() def parse_field( field: FieldSpec, ) -> Fi...
24.661972
87
0.586522
a98e97ae9935aeaf3a39dc6b932d437b1880067b
573
py
Python
app/observation/views.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
null
null
null
app/observation/views.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
3
2018-07-20T02:05:50.000Z
2018-07-20T09:28:59.000Z
app/observation/views.py
FC-Oasis/Hackerthon-Django
d92c83d42424b0f25ca2d1e7fe70c4e6de2486c5
[ "MIT" ]
1
2018-08-10T08:16:52.000Z
2018-08-10T08:16:52.000Z
import datetime from django.http import HttpResponse from django.shortcuts import render from .models import Record def add(request): if request.method == 'POST': record = Record.objects.create( humidity=int(request.POST.get('Humidity')), temperature=int(request.POST.get('Tempera...
26.045455
98
0.643979
e2aa4801492f5952192e7f016f8dc9071eea3f3b
2,498
py
Python
tomodachi/envelope/json_base.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
null
null
null
tomodachi/envelope/json_base.py
xdmiodz/tomodachi
abe449b0d09683cfc4791e61bc951b0de796e80b
[ "MIT" ]
100
2021-04-21T10:00:09.000Z
2022-03-24T23:13:32.000Z
tomodachi/envelope/json_base.py
justcallmelarry/tomodachi
ea5718e25b9e140e8e44a8803d6c8f915f26b392
[ "MIT" ]
1
2020-09-04T05:53:16.000Z
2020-09-04T05:53:16.000Z
import base64 import json import time import uuid import zlib from typing import Any, Dict, Tuple, Union PROTOCOL_VERSION = "tomodachi-json-base--1.0.0" class JsonBase(object): @classmethod async def build_message(cls, service: Any, topic: str, data: Any, **kwargs: Any) -> str: data_encoding = "raw" ...
39.03125
117
0.529223
7c45030c28fdf5c99af2ebac1775dfe6ca71366d
7,595
py
Python
SimG4CMS/Calo/test/python/runHFPMT_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
SimG4CMS/Calo/test/python/runHFPMT_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
SimG4CMS/Calo/test/python/runHFPMT_cfg.py
Purva-Chaudhari/cmssw
32e5cbfe54c4d809d60022586cf200b7c3020bcf
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") #process.load("SimG4CMS.Calo.testGeometryPMTXML_cfi") process.load("Geometry.CMSCommonData.cmsHFPMTAverageXML_cfi") #process.lo...
39.557292
83
0.685188
84f32af721d5f741e241e13856224f52bd489bad
7,916
py
Python
custom_components/worldtidesinfocustom/camera.py
jugla/worldtidesinfocustom
eeb0b5a6527478037c5c4914518a459264c73909
[ "MIT" ]
13
2021-01-21T03:19:12.000Z
2021-12-21T23:08:13.000Z
custom_components/worldtidesinfocustom/camera.py
jugla/worldtidesinfocustom
eeb0b5a6527478037c5c4914518a459264c73909
[ "MIT" ]
15
2021-01-06T23:42:48.000Z
2021-12-26T17:00:17.000Z
custom_components/worldtidesinfocustom/camera.py
jugla/worldtidesinfocustom
eeb0b5a6527478037c5c4914518a459264c73909
[ "MIT" ]
2
2021-01-07T14:51:20.000Z
2021-03-31T21:40:38.000Z
"""Camera worldtides.info.""" # Python library import logging _LOGGER = logging.getLogger(__name__) import os import time from datetime import datetime, timedelta import homeassistant.helpers.config_validation as cv # PyPy Library import requests import voluptuous as vol # HA library from homeassistant.components....
26.474916
84
0.661066
7e15cc90f923feb60abf7b2d6d270d1b511f5e63
1,829
py
Python
web/addons/crm/calendar_event.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/crm/calendar_event.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/crm/calendar_event.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
42.534884
135
0.632039
fa8271f62813d707b36c632d1daa8eaf7940a6c7
9,562
py
Python
lib/notification_service/notification_service/event_storage.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
lib/notification_service/notification_service/event_storage.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
lib/notification_service/notification_service/event_storage.py
flink-extended/ai-flow
d1427a243097d94d77fedbe1966500ae26975a13
[ "Apache-2.0" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.000Z
# # Copyright 2022 The AI Flow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
35.284133
105
0.593077
3e56e8ce3386690aad5ae0931ebd2ec3bd0d1211
1,877
py
Python
examples/activity/basics/hello/interactivespaces.example.activity.hello.python/src/main/resources/activity/HelloActivity.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/activity/basics/hello/interactivespaces.example.activity.hello.python/src/main/resources/activity/HelloActivity.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/activity/basics/hello/interactivespaces.example.activity.hello.python/src/main/resources/activity/HelloActivity.py
EndPointCorp/interactivespaces
74b052e5a184f1273010df5d02dc693a64b098e7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
## # Copyright (C) 2012 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 t...
32.362069
80
0.717102
41c4ac67c30c4357defba21e2e40338971a1fe3f
3,915
py
Python
_Workflow-IntheRound/Metashape_PythonScripts_04-Part_02_DetectMarkers-OptimizeMarkerError.py
campbell-ja/MetashapePythonScripts
b4a54e49558a8a7d1c5dc2327f878a8c354bbe58
[ "CC0-1.0" ]
4
2021-06-17T03:06:19.000Z
2022-02-08T17:39:29.000Z
_Workflow-IntheRound/Metashape_PythonScripts_04-Part_02_DetectMarkers-OptimizeMarkerError.py
campbell-ja/MetashapePythonScripts
b4a54e49558a8a7d1c5dc2327f878a8c354bbe58
[ "CC0-1.0" ]
null
null
null
_Workflow-IntheRound/Metashape_PythonScripts_04-Part_02_DetectMarkers-OptimizeMarkerError.py
campbell-ja/MetashapePythonScripts
b4a54e49558a8a7d1c5dc2327f878a8c354bbe58
[ "CC0-1.0" ]
null
null
null
# This script created by Joseph Aaron Campbell - 10/2020 # Use this as a learning tool only. # I am not responsible for any damage to data or hardware if the script is not properly utilized. # Following Code tested and based on Metashape Pro 1.6.2 using Windows 10 Pro """ With Help from: https://www.agisoft.com/...
37.644231
125
0.657216
1b236b9ebc5fdedabb61019b726faaee38357210
1,274
py
Python
tests/unit/test_article.py
vyahello/newspaper-parser
ad986dfc43e089f376ffe96251cf6481df133329
[ "MIT" ]
null
null
null
tests/unit/test_article.py
vyahello/newspaper-parser
ad986dfc43e089f376ffe96251cf6481df133329
[ "MIT" ]
3
2020-08-20T10:19:16.000Z
2022-01-28T10:38:22.000Z
tests/unit/test_article.py
vyahello/newspaper-parser
ad986dfc43e089f376ffe96251cf6481df133329
[ "MIT" ]
null
null
null
import pytest from article.article import Article, _Content, _to_single_line from tests.markers import unit pytestmark = unit @pytest.fixture(scope="module") def content() -> _Content: yield _Content( html="html", authors="authors", title="title", text="text", top_image="t...
23.163636
72
0.61617
2fe2aa166347d0e1648d36408763967a48c3f22f
1,844
py
Python
echecs_espoir/service/mahjong/models/hutype/eighty_eight/dasixi.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
14
2020-03-22T14:03:51.000Z
2022-02-21T09:28:39.000Z
echecs_espoir/service/mahjong/models/hutype/eighty_eight/dasixi.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
null
null
null
echecs_espoir/service/mahjong/models/hutype/eighty_eight/dasixi.py
obespoir/echecs
e4bb8be1d360b6c568725aee4dfe4c037a855a49
[ "AFL-3.0" ]
7
2020-03-22T13:57:43.000Z
2022-02-21T09:30:17.000Z
# coding=utf-8 import copy import time from service.mahjong.models.hutype.basetype import BaseType from service.mahjong.constants.carddefine import CardType from service.mahjong.models.hutype.basetype import BaseType from service.mahjong.constants.carddefine import CardType, CARD_SIZE from service.mahjong.models.card....
32.928571
68
0.564534
124f82036d465c38f43f89f767951e4892ebf820
1,286
py
Python
iotools/gui/widget/text.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
1
2019-08-28T17:03:27.000Z
2019-08-28T17:03:27.000Z
iotools/gui/widget/text.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
null
null
null
iotools/gui/widget/text.py
matthewgdv/iohandler
1df420dd3ae2e022d0aa4db864fd4af0dbd665cc
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Any from PySide6 import QtWidgets from iotools.command.argument import StringArgument from .base import WidgetHandler class Text(WidgetHandler): """A manager class for a simple text Text widget which can capture text and has editor-like features.""" _a...
27.361702
108
0.66874
e26a3da9f8f09b2ae33b82ee2c121ddfa8fe6065
10,117
py
Python
mi/dataset/parser/rte_o_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/rte_o_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/rte_o_dcl.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @package mi.dataset.parser.rte_o_stc @file marine-integrations/mi/dataset/parser/rte_o_stc.py @author Jeff Roy @brief Parser for the rte_o_stc dataset driver Release notes: Initial Release """ __author__ = 'Jeff Roy' __license__ = 'Apache 2.0' import calendar import copy f...
42.154167
115
0.614411
e8672d2083f4f345b50f89d6f4cfdce44fd80ca7
944
py
Python
toontown/uberdog/DistributedWhitelistMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/uberdog/DistributedWhitelistMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/uberdog/DistributedWhitelistMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
import socket import datetime import os from direct.distributed.DistributedObjectGlobal import DistributedObjectGlobal from direct.distributed.DistributedObject import DistributedObject from toontown.toonbase import ToontownGlobals class DistributedWhitelistMgr(DistributedObject): notify = directNotify.newCategory...
29.5
78
0.726695
cb21f5ceb7cf828e43aca8a838a1f6db71524503
9,134
py
Python
magenta/models/svg_vae/datagen_beam.py
KenniVelez/magenta
e86b7de2ffd36173b694e00c44268d1b3b774224
[ "Apache-2.0" ]
null
null
null
magenta/models/svg_vae/datagen_beam.py
KenniVelez/magenta
e86b7de2ffd36173b694e00c44268d1b3b774224
[ "Apache-2.0" ]
null
null
null
magenta/models/svg_vae/datagen_beam.py
KenniVelez/magenta
e86b7de2ffd36173b694e00c44268d1b3b774224
[ "Apache-2.0" ]
1
2022-03-07T04:46:27.000Z
2022-03-07T04:46:27.000Z
# Copyright 2022 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.979757
80
0.659404
b9adbb62ef5fb05400721ff3e004007275c1f976
2,223
py
Python
day08_Scrapy/AQI/AQI/spiders/aqi_redisspider.py
xiangzaizi/base_spider
fa548f43e1f92016e710f9ffeb912e61eb690433
[ "MIT" ]
null
null
null
day08_Scrapy/AQI/AQI/spiders/aqi_redisspider.py
xiangzaizi/base_spider
fa548f43e1f92016e710f9ffeb912e61eb690433
[ "MIT" ]
null
null
null
day08_Scrapy/AQI/AQI/spiders/aqi_redisspider.py
xiangzaizi/base_spider
fa548f43e1f92016e710f9ffeb912e61eb690433
[ "MIT" ]
null
null
null
#coding:utf-8 import scrapy # 1. 导入RedisSpider类 from scrapy_redis.spiders import RedisSpider from AQI.items import AqiItem # 2. 修改继承的父类 class AqiRedisSpider(RedisSpider): name = "aqiredisspider" allowed_domains = ["aqistudy.cn"] base_url = "https://www.aqistudy.cn/historydata/" #start_urls = [base_u...
34.734375
107
0.591543
998cc640553a25b0a7a8c3ce08719c51c1f932f3
5,631
py
Python
rl_ctrnn/ctrnn.py
cooperuser/rl_ctrnn
5f05585dc6f017de60eec9929b8523a8d4da80f7
[ "MIT" ]
1
2021-10-05T13:30:00.000Z
2021-10-05T13:30:00.000Z
rl_ctrnn/ctrnn.py
cooperuser/rl_ctrnn
5f05585dc6f017de60eec9929b8523a8d4da80f7
[ "MIT" ]
null
null
null
rl_ctrnn/ctrnn.py
cooperuser/rl_ctrnn
5f05585dc6f017de60eec9929b8523a8d4da80f7
[ "MIT" ]
null
null
null
from typing import Mapping from typing_extensions import TypeAlias from copy import deepcopy from .array_to_dict import array_to_dict from numpy.random import Generator import numpy as np from .ranges import Range, CtrnnRanges Array: TypeAlias = np.ndarray def wiggle_room(d: float) -> float: if d == 0: ...
34.975155
85
0.595809