hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
682223aac708033196ca76e4af2af0958377ef44
478
py
Python
assign5-2.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
assign5-2.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
assign5-2.py
arhue/python-learning
058c93315fd5aa76584e32432e7c80cb3972478e
[ "MIT" ]
null
null
null
smallest=None largest=None while True: number=input("Enter number") if number=="done": break try: number=int(number) except: print("Invalid input") continue if (smallest is None) or (largest is None): smallest=number largest=number ...
18.384615
47
0.59205
a3287cf8bbd3a68ea99d14968e74d7a18a30b7bd
565
py
Python
resources/evaluation/SoK/dump_ida_layout.py
russells-crockpot/lancelot
50fcc92d19757c50fe78355bd7d65c1a409c47a6
[ "Apache-2.0" ]
46
2019-06-27T11:22:22.000Z
2021-12-15T20:01:47.000Z
resources/evaluation/SoK/dump_ida_layout.py
russells-crockpot/lancelot
50fcc92d19757c50fe78355bd7d65c1a409c47a6
[ "Apache-2.0" ]
80
2019-06-11T20:19:09.000Z
2022-03-01T19:57:35.000Z
resources/evaluation/SoK/dump_ida_layout.py
russells-crockpot/lancelot
50fcc92d19757c50fe78355bd7d65c1a409c47a6
[ "Apache-2.0" ]
8
2019-06-29T17:12:09.000Z
2021-07-09T23:06:47.000Z
import idaapi import idautils lines = [] for ea in idautils.Functions(0x0, 0xFFFFFFFFFFFFFFFF): lines.append("function: %s" % hex(ea)) f = idaapi.get_func(ea) for bb in idaapi.FlowChart(f, flags=idaapi.FC_PREDS): lines.append("basic block: %s" % hex(bb.start_ea)) for head in idautils.Hea...
23.541667
59
0.630088
75a6e1c86fc2818f914f617b2653877796b24632
2,960
py
Python
api_core/tests/unit/gapic/test_config.py
bomboradata/bombora-google-cloud-python
255bbebe6c50490f40fcc3eed40bae1e77e03859
[ "Apache-2.0" ]
null
null
null
api_core/tests/unit/gapic/test_config.py
bomboradata/bombora-google-cloud-python
255bbebe6c50490f40fcc3eed40bae1e77e03859
[ "Apache-2.0" ]
null
null
null
api_core/tests/unit/gapic/test_config.py
bomboradata/bombora-google-cloud-python
255bbebe6c50490f40fcc3eed40bae1e77e03859
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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, ...
32.888889
74
0.642905
c6b0279da339fcc60ab4e52a5f3706d89dbb9a9d
1,283
py
Python
sdks/python/client/setup.py
parallel-domain/argo-workflows
c055b48b6e216dcdeb1c9840f14199a72329bdaf
[ "Apache-2.0" ]
1
2022-02-24T01:45:03.000Z
2022-02-24T01:45:03.000Z
sdks/python/client/setup.py
parallel-domain/argo-workflows
c055b48b6e216dcdeb1c9840f14199a72329bdaf
[ "Apache-2.0" ]
18
2022-02-01T23:09:58.000Z
2022-03-31T23:28:41.000Z
sdks/python/client/setup.py
parallel-domain/argo-workflows
c055b48b6e216dcdeb1c9840f14199a72329bdaf
[ "Apache-2.0" ]
null
null
null
""" Argo Workflows API Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/ # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-g...
29.837209
206
0.71629
022ec08bb4f8811e5ed2815213d66e0ab529d349
1,022
py
Python
data_migration/conf/default_settings.py
gangh/bk-sops
29f4b4915be42650c2eeee637e0cf798e4066f09
[ "Apache-2.0" ]
1
2019-12-23T07:23:35.000Z
2019-12-23T07:23:35.000Z
data_migration/conf/default_settings.py
bk-sops/bk-sops
9f5950b13473bf7b5032528b20016b7a571bb3cd
[ "Apache-2.0" ]
9
2020-02-12T03:15:49.000Z
2021-06-10T22:04:51.000Z
data_migration/conf/default_settings.py
bk-sops/bk-sops
9f5950b13473bf7b5032528b20016b7a571bb3cd
[ "Apache-2.0" ]
1
2022-01-17T11:32:05.000Z
2022-01-17T11:32:05.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
44.434783
115
0.779843
65e203f967f624e25312edce83f04dd3f9f50f12
7,033
py
Python
toyClassification/Ensemble-MAP-Adam/eval.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
110
2019-06-04T13:30:23.000Z
2022-03-05T07:37:52.000Z
toyClassification/Ensemble-MAP-Adam/eval.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
3
2020-08-31T17:12:39.000Z
2021-09-12T01:21:24.000Z
toyClassification/Ensemble-MAP-Adam/eval.py
dataflowr/evaluating_bdl
b7d7e3f2b8095a0ec43118d2b69b4b49e0b910f2
[ "MIT" ]
23
2019-06-05T08:53:28.000Z
2022-03-05T09:01:25.000Z
# code-checked # server-checked from model import ToyNet import torch import torch.utils.data import torch.nn as nn from torch.autograd import Variable import torch.optim as optim import torch.nn.functional as F import numpy as np import pickle import matplotlib matplotlib.use("Agg") import matplotlib.pyplot as plt ...
37.015789
192
0.690886
08e79bfcd21c031ba1ce8d2212e5dd87cd9bf5a3
1,428
py
Python
test/unit/app/jobs/test_expression_run.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
test/unit/app/jobs/test_expression_run.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
test/unit/app/jobs/test_expression_run.py
quacksawbones/galaxy-1
65f7259b29d3886e526d9be670c60d9da9fbe038
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
import json import os import shutil import subprocess import tempfile from galaxy.tools import expressions from galaxy.util import galaxy_directory LIB_DIRECTORY = os.path.join(galaxy_directory(), "lib") def test_run_simple(): test_directory = tempfile.mkdtemp() try: environment_path = os.path.join(...
31.043478
88
0.591737
3c1c06b8328510e7a9ca9b7222db610dcc3ec94c
7,482
py
Python
yolo/train.py
antcc/proyecto-vc
a98f82e47a5121ada6a72349f5c03874ded840c0
[ "MIT" ]
null
null
null
yolo/train.py
antcc/proyecto-vc
a98f82e47a5121ada6a72349f5c03874ded840c0
[ "MIT" ]
null
null
null
yolo/train.py
antcc/proyecto-vc
a98f82e47a5121ada6a72349f5c03874ded840c0
[ "MIT" ]
null
null
null
import os import numpy as np import json from .voc import parse_voc_annotation from .yolo import create_yolov3_model, dummy_loss from .utils.utils import makedirs from keras.callbacks import EarlyStopping, ReduceLROnPlateau from keras.optimizers import Adam from .callbacks import CustomModelCheckpoint, CustomTensorBoar...
34.962617
116
0.619487
e3c6a88a0a757fd3e0d2c2f03ea37fea4172c341
27,747
py
Python
src/python/zensols/deeplearn/model/facade.py
plandes/deeplearn
925f02200c62a7dc798e474ed94a86e009fd1ebf
[ "MIT" ]
2
2021-04-30T17:19:14.000Z
2021-05-04T03:48:59.000Z
src/python/zensols/deeplearn/model/facade.py
plandes/deeplearn
925f02200c62a7dc798e474ed94a86e009fd1ebf
[ "MIT" ]
null
null
null
src/python/zensols/deeplearn/model/facade.py
plandes/deeplearn
925f02200c62a7dc798e474ed94a86e009fd1ebf
[ "MIT" ]
null
null
null
from __future__ import annotations """Client entry point to the model. """ __author__ = 'Paul Landes' from typing import Any, Callable, List, Union, Iterable from dataclasses import dataclass, field, InitVar import sys import logging import pandas as pd from io import TextIOBase from pathlib import Path from zensols....
35.618742
87
0.622698
423be0178255ff7a723bba0b5acd380df905f96e
3,986
py
Python
openbci/utils/utilities.py
vishwas1234567/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
414
2015-01-18T21:53:07.000Z
2020-04-05T11:50:35.000Z
openbci/utils/utilities.py
vishwas1234567/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
106
2015-02-19T19:18:17.000Z
2020-03-14T17:19:43.000Z
openbci/utils/utilities.py
ikmckenz/OpenBCI_Python
25232ac7602e0b651796dcaa0bc710c1d9cc700c
[ "MIT" ]
206
2015-01-04T06:27:55.000Z
2020-03-03T12:18:54.000Z
from openbci.utils.constants import Constants def make_tail_byte_from_packet_type(packet_type): """ Converts a packet type {Number} into a OpenBCI stop byte :param packet_type: {int} The number to smash on to the stop byte. Must be 0-15, out of bounds input will result in a 0 :return: A prop...
38.326923
99
0.64275
e51296583a7589b8dd1b84a687b54794360ac033
8,885
py
Python
experimental/single_model_uncertainty/flags.py
athon-millane/uncertainty-baselines
aa504fc51aac6d4cac47dbd34aa672c670dfbd28
[ "Apache-2.0" ]
1
2021-01-22T15:06:24.000Z
2021-01-22T15:06:24.000Z
experimental/single_model_uncertainty/flags.py
gpleiss/uncertainty-baselines
60b08e50e8d64cbd4d09689a35d5be81ed15e624
[ "Apache-2.0" ]
null
null
null
experimental/single_model_uncertainty/flags.py
gpleiss/uncertainty-baselines
60b08e50e8d64cbd4d09689a35d5be81ed15e624
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Uncertainty Baselines 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 ap...
41.134259
80
0.685988
e03c0997de5b42e67d95ebdd0d51ca007999ea17
4,285
py
Python
src/util.py
xujiajiadexiaokeai/asahi-installer
95356ecd2b2492258b73b8f16a136ff59ed255bb
[ "MIT" ]
null
null
null
src/util.py
xujiajiadexiaokeai/asahi-installer
95356ecd2b2492258b73b8f16a136ff59ed255bb
[ "MIT" ]
null
null
null
src/util.py
xujiajiadexiaokeai/asahi-installer
95356ecd2b2492258b73b8f16a136ff59ed255bb
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT import re, logging, sys, os, stat, shutil def ssize(v): suffixes = ["B", "KB", "MB", "GB", "TB"] for i in suffixes: if v < 1000 or i == suffixes[-1]: if isinstance(v, int): return f"{v} {i}" else: return f"{v:.2f} {i...
24.912791
71
0.51972
af8ba33d77f0f6e676072703aad0d8a9beb9cd00
25,348
py
Python
glance/api/v2/router.py
qweraqq/glance
65b62485dfa336d26b1eae2d26a7b5e6495109a7
[ "Apache-2.0" ]
null
null
null
glance/api/v2/router.py
qweraqq/glance
65b62485dfa336d26b1eae2d26a7b5e6495109a7
[ "Apache-2.0" ]
null
null
null
glance/api/v2/router.py
qweraqq/glance
65b62485dfa336d26b1eae2d26a7b5e6495109a7
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
46.853974
78
0.505129
72650d7b36ecabca3bdb10b613a8b3ce6baf7daf
92
py
Python
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/misc/test-table-2/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1fzxjxXBP0xL-dPJp1NvSKaXbutItrW9pUbIq_fHUDuo'
23
68
0.836957
5fd0cb3f94f485ae87b4d3cd349f8c18be456f49
16,093
py
Python
ml4tc/machine_learning/neural_net_test.py
thunderhoser/ml4tc
f01645d014f3cd2e9f24c5791d62e573ad3ab1bd
[ "MIT" ]
2
2021-08-24T04:24:22.000Z
2021-09-29T07:52:21.000Z
ml4tc/machine_learning/neural_net_test.py
thunderhoser/ml4tc
dd97972675c462634cf43fa9ad486049429095e9
[ "MIT" ]
null
null
null
ml4tc/machine_learning/neural_net_test.py
thunderhoser/ml4tc
dd97972675c462634cf43fa9ad486049429095e9
[ "MIT" ]
null
null
null
"""Unit tests for neural_net.py.""" import unittest import numpy import xarray from ml4tc.utils import example_utils from ml4tc.machine_learning import neural_net TOLERANCE = 1e-6 # The following constants are used to test _find_desired_times. DESIRED_TIMES_UNIX_SEC = numpy.array( [0, 900, 1800, 2700, 3600, 4500...
34.758099
80
0.712235
c8a6fa017ce7a74e44f8329c6d8b955d29170888
413
py
Python
icv/image/transforms/normalize.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
5
2019-09-10T04:02:19.000Z
2020-07-24T07:46:08.000Z
icv/image/transforms/normalize.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
null
null
null
icv/image/transforms/normalize.py
dmxj/icv
0b074ec9475f2c70038d2e8b7166414fd5b93e61
[ "MIT" ]
1
2020-03-20T03:44:04.000Z
2020-03-20T03:44:04.000Z
# -*- coding: UTF-8 -*- import numpy as np from .colorspace import bgr2rgb, rgb2bgr from ..io import imread def imnormalize(img, mean, std, to_rgb=True): img = imread(img).astype(np.float32) if to_rgb: img = bgr2rgb(img) return (img - mean) / std def imdenormalize(img, mean, std, to_bgr=True): ...
21.736842
47
0.62954
896b3ee6f12605da063bf1a452f4b586a38810fa
26,469
py
Python
cairis/mio/ModelImport.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
cairis/mio/ModelImport.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
cairis/mio/ModelImport.py
RAIJ95/https-github.com-failys-cairis
86601347ea016f4a3f90b6942093d63e91de5f74
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
36.609959
336
0.726284
ea7c4aae3a7e3f510947653303ccff6dd78abceb
874
py
Python
server/app/models/meta/pydanticbase.py
michael0liver/fullstack-fastapi-vuejs-template
a686b7b71dca04f90538d00b350158cb6d7e9db2
[ "MIT" ]
15
2020-06-14T05:35:05.000Z
2021-08-01T15:30:38.000Z
server/app/models/meta/pydanticbase.py
michael0liver/fullstack-fastapi-vuejs-template
a686b7b71dca04f90538d00b350158cb6d7e9db2
[ "MIT" ]
1
2022-02-27T19:32:18.000Z
2022-02-27T19:32:18.000Z
server/app/models/meta/pydanticbase.py
michael0liver/fullstack-fastapi-vuejs-template
a686b7b71dca04f90538d00b350158cb6d7e9db2
[ "MIT" ]
1
2021-09-06T03:21:51.000Z
2021-09-06T03:21:51.000Z
from datetime import datetime import orjson from pydantic import BaseModel def orjson_dumps(v, *, default): """ orjson.dumps returns bytes, to match standard json.dumps we need to decode. orjson.dumps option arguments provide many options such as `option=orjson.OPT_SERIALIZE_UUID` to natively encode UUID...
28.193548
132
0.718535
bd28aa813787812a9f859a6e23c64d5b82a682c0
961
py
Python
basic/conf/urls.py
spinico/django-projects-boilerplates
22d47f60d282d0edb9c0f1b84bb3e9e84949bd25
[ "MIT" ]
null
null
null
basic/conf/urls.py
spinico/django-projects-boilerplates
22d47f60d282d0edb9c0f1b84bb3e9e84949bd25
[ "MIT" ]
null
null
null
basic/conf/urls.py
spinico/django-projects-boilerplates
22d47f60d282d0edb9c0f1b84bb3e9e84949bd25
[ "MIT" ]
null
null
null
"""conf URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.main, name='main') Class-based vi...
32.033333
77
0.699272
376f05fee3af0ab766386c378224632b6963da42
4,636
py
Python
philoseismos/gprMax/output.py
sir-dio/old-philoseismos
4c830971641313abd95693b24965ede261c6824b
[ "MIT" ]
1
2019-10-27T14:03:00.000Z
2019-10-27T14:03:00.000Z
philoseismos/gprMax/output.py
sir-dio/old-philoseismos
4c830971641313abd95693b24965ede261c6824b
[ "MIT" ]
null
null
null
philoseismos/gprMax/output.py
sir-dio/old-philoseismos
4c830971641313abd95693b24965ede261c6824b
[ "MIT" ]
null
null
null
""" philoseismos: with passion for the seismic method. This file defines the gprMax.Output class, used to load the output of gprMax. @author: Dubrovin Ivan e-mail: dubrovin.io@icloud.com """ import h5py import numpy as np import glob import os from philoseismos.gprMax.constants import output_attributes class Outp...
34.857143
89
0.545298
a634950377089ab9eb722cb046a76dc4f340d9a3
4,623
py
Python
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
cvservices/api.py
amabdallah/ControlledVocabulariesTemplate
751e5a87da0bc036311b4e8aa8408eb69bee716b
[ "BSD-3-Clause" ]
null
null
null
import os import csv import json import StringIO from collections import OrderedDict from django.http.response import HttpResponse from tastypie.api import Api from tastypie.resources import ModelResource from tastypie.serializers import Serializer from tastypie.utils.mime import build_content_type from rdfserializer.a...
32.556338
116
0.58209
7b1934590385883f1e8be2e72d2e37a0047a3b78
4,430
py
Python
cle/backends/regions.py
mattrepl/cle
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
1
2021-05-11T17:27:28.000Z
2021-05-11T17:27:28.000Z
cle/backends/regions.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
cle/backends/regions.py
fiberx/cle-fiber
08f5f24d61470da8a99ee0c40f2185397a958313
[ "BSD-2-Clause" ]
null
null
null
from ..utils import key_bisect_find, key_bisect_insort_left # # Container # class Regions(object): """ A container class acting as a list of regions (sections or segments). Additionally, it keeps an sorted list of all regions that are mapped into memory to allow fast lookups. We assume none of the ...
30.136054
116
0.601129
4fd3c4e559b4ea39684ac1d1e20cfc11ef8bafe1
88
py
Python
voter/apps.py
emre/steeminator
1f1a162be838ae5d90db1ea36786a80d362af0ad
[ "MIT" ]
4
2018-07-31T20:55:34.000Z
2019-05-28T06:39:05.000Z
voter/apps.py
emre/steeminator
1f1a162be838ae5d90db1ea36786a80d362af0ad
[ "MIT" ]
5
2018-08-01T07:05:25.000Z
2018-08-01T07:11:42.000Z
voter/apps.py
emre/steeminator
1f1a162be838ae5d90db1ea36786a80d362af0ad
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AccountsConfig(AppConfig): name = 'voter'
14.666667
33
0.75
3c5c699628824fa6bfa22fe26b800300d28360c4
1,263
py
Python
test/actions.py
ekarpovs/gfsm
f338ec8609f8034af746af7c45353103b4870c9a
[ "MIT" ]
null
null
null
test/actions.py
ekarpovs/gfsm
f338ec8609f8034af746af7c45353103b4870c9a
[ "MIT" ]
null
null
null
test/actions.py
ekarpovs/gfsm
f338ec8609f8034af746af7c45353103b4870c9a
[ "MIT" ]
null
null
null
# User actions implementation # Test user action's wrapper example def fsm_action(implementation): def execute(context): __name__ = implementation.__name__ print("test wrapper for action:", __name__) # Separate user functions from a FSM # Get a relevant user datacls data = {} data = impleme...
15.216867
47
0.710214
eaf4f9c147ed9a703407eb6a6c962f24abee4998
3,286
py
Python
test/test_api.py
skyformat99/pynng
ce1696dafb4b71603a8968fd59364fb784e5d507
[ "MIT" ]
null
null
null
test/test_api.py
skyformat99/pynng
ce1696dafb4b71603a8968fd59364fb784e5d507
[ "MIT" ]
null
null
null
test/test_api.py
skyformat99/pynng
ce1696dafb4b71603a8968fd59364fb784e5d507
[ "MIT" ]
null
null
null
import pytest import trio import pynng addr = 'tcp://127.0.0.1:13131' addr2 = 'tcp://127.0.0.1:13132' def test_dialers_get_added(): with pynng.Pair0() as s: assert len(s.dialers) == 0 s.dial(addr, block=False) assert len(s.dialers) == 1 s.dial(addr2, block=False) assert ...
30.425926
78
0.615946
050ebde3418a3c5c63c56bdf6448a12576fef650
3,373
py
Python
custom_components/senec/config_flow.py
Exceptionfault/home-assistant-senec
cedb3de9b0251b1680a05c7dd09429c9e62d3de2
[ "Apache-2.0" ]
null
null
null
custom_components/senec/config_flow.py
Exceptionfault/home-assistant-senec
cedb3de9b0251b1680a05c7dd09429c9e62d3de2
[ "Apache-2.0" ]
null
null
null
custom_components/senec/config_flow.py
Exceptionfault/home-assistant-senec
cedb3de9b0251b1680a05c7dd09429c9e62d3de2
[ "Apache-2.0" ]
null
null
null
"""Config flow for senec integration.""" import logging from urllib.parse import ParseResult, urlparse import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_NAME from homeassistant.core import HomeAssistant, callback from homeassistant.util import slugify fro...
35.505263
87
0.631782
2a0d3123c1bf106387534c010a0b9dfec11c4eb7
3,141
py
Python
_plugins/compress_images.py
Kripner/slama.dev
8654b68626b237287b3f662b01f5f6b22a0fea6b
[ "MIT" ]
null
null
null
_plugins/compress_images.py
Kripner/slama.dev
8654b68626b237287b3f662b01f5f6b22a0fea6b
[ "MIT" ]
null
null
null
_plugins/compress_images.py
Kripner/slama.dev
8654b68626b237287b3f662b01f5f6b22a0fea6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import hashlib from typing import * from subprocess import Popen, PIPE import yaml os.chdir(os.path.dirname(os.path.realpath(__file__))) MAX = 10 # out of 100 CACHE_FOLDER = "../.jekyll-cache/compress_images" SUB = "Images" full_size = 0 # total size of images bef...
31.727273
83
0.606813
9d57d843ec24030c14fe25d0c939eb8b7e0860ff
127
py
Python
aws_lambda_powertools/middleware_factory/__init__.py
Sordie/aws-lambda-powertools-python
12c512b78b8830bf2ed09e35d640df14afacfc1a
[ "Apache-2.0" ]
1,208
2020-05-20T19:06:29.000Z
2022-03-30T14:17:47.000Z
aws_lambda_powertools/middleware_factory/__init__.py
Sordie/aws-lambda-powertools-python
12c512b78b8830bf2ed09e35d640df14afacfc1a
[ "Apache-2.0" ]
859
2020-05-22T09:59:54.000Z
2022-03-31T08:31:30.000Z
aws_lambda_powertools/middleware_factory/__init__.py
Sordie/aws-lambda-powertools-python
12c512b78b8830bf2ed09e35d640df14afacfc1a
[ "Apache-2.0" ]
163
2020-05-18T21:08:25.000Z
2022-03-28T12:03:37.000Z
""" Utilities to enhance middlewares """ from .factory import lambda_handler_decorator __all__ = ["lambda_handler_decorator"]
25.4
45
0.795276
5718b03b742e76ff3c6c80675aee0c32b18ec5f9
5,921
py
Python
telemetry/telemetry/internal/results/artifact_results_unittest.py
bopopescu/chromium72-third-party-catapult
774e1355b871e13bb858147a136e9cb476f55030
[ "BSD-3-Clause" ]
1
2019-01-04T10:08:58.000Z
2019-01-04T10:08:58.000Z
telemetry/telemetry/internal/results/artifact_results_unittest.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/results/artifact_results_unittest.py
kind-john/catapult
29635376119833f172a58a48a3282d353ce55d2b
[ "BSD-3-Clause" ]
1
2019-04-21T23:48:15.000Z
2019-04-21T23:48:15.000Z
# Copyright 2017 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. import os import unittest import mock from telemetry.internal.results import artifact_results from telemetry.internal.util import file_handle from py_util...
35.668675
75
0.680122
c39e90424293fbe3182a84cdbda5e9922943ef7a
903
py
Python
cloudmesh/pi/led_bar.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
2
2017-09-18T00:56:36.000Z
2018-06-01T23:41:23.000Z
cloudmesh/pi/led_bar.py
cloudmesh/cloudmesh-pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
1
2018-04-16T18:37:17.000Z
2018-04-16T18:37:17.000Z
cloudmesh/pi/led_bar.py
cloudmesh/cloudmesh.pi
bdf706b3763031341c41b811749064c293e73c14
[ "Apache-2.0" ]
3
2017-09-20T11:13:54.000Z
2017-11-30T23:48:37.000Z
import time import grovepi class LedBar: def __init__(self, pin=3, color = 0): """ color = 0 starts counting led 1 from the Red LED end color = 0 starts counting led 1 from the green LED end """ self.ledbar = pin grovepi.ledBar_init(self.ledbar,color) def setLevel(self,level = 0): """ le...
22.02439
55
0.61794
60daa69403d0d2ec016b501ca295bb328a000dd7
4,717
py
Python
netboxapi_client/__main__.py
bpetit/netboxapi-client
380f0469fd5452997c4a1cf00e0e2dd3f5218edf
[ "MIT" ]
23
2017-10-13T12:44:41.000Z
2021-04-07T22:27:07.000Z
netboxapi_client/__main__.py
bpetit/netboxapi-client
380f0469fd5452997c4a1cf00e0e2dd3f5218edf
[ "MIT" ]
3
2018-02-02T15:14:56.000Z
2019-01-10T18:33:50.000Z
netboxapi_client/__main__.py
bpetit/netboxapi-client
380f0469fd5452997c4a1cf00e0e2dd3f5218edf
[ "MIT" ]
6
2018-02-01T22:45:08.000Z
2019-12-10T21:57:09.000Z
#!/usr/bin/python import argparse import json import os, sys import pprint from netboxapi_client import Api, create, show, enum, delete, update, patch import urllib3 def get_configuration(path="{}/netboxapi.json".format(os.getcwd())): """get_configuration Returns a dictionnary containing all elements written...
29.48125
132
0.510282
011f26e626261ae0d0f374ebc60108948362473e
4,560
py
Python
psaw/download_posts_user.py
dbeley/reddit-scraper
15c20fc07cac673ff0909f32d3195a21c01aeb53
[ "MIT" ]
8
2019-08-24T11:25:13.000Z
2022-02-27T18:32:25.000Z
psaw/download_posts_user.py
dbeley/reddit-scripts
15c20fc07cac673ff0909f32d3195a21c01aeb53
[ "MIT" ]
7
2020-05-04T04:32:43.000Z
2021-06-01T23:45:36.000Z
psaw/download_posts_user.py
dbeley/reddit-scripts
15c20fc07cac673ff0909f32d3195a21c01aeb53
[ "MIT" ]
1
2019-06-13T11:30:04.000Z
2019-06-13T11:30:04.000Z
#!/usr/bin/env python """ Download posts from one or several users and export it in xlsx or csv. """ from psaw import PushshiftAPI import argparse import time import logging import pandas as pd from pathlib import Path logger = logging.getLogger() temps_debut = time.time() COLUMNS = [ "date", ...
25.909091
87
0.55307
cf438d0f12bdfed02b7ae7b612c40f9070484814
140
py
Python
pico/ch_19_digital_input.py
simonmonk/raspberrypi_cookbook_ed4
dc320dfae4252f70c812af1dd7739d13d09615c1
[ "MIT" ]
7
2022-03-19T18:53:39.000Z
2022-03-22T13:41:30.000Z
pico/ch_19_digital_input.py
simonmonk/raspberrypi_cookbook_ed4
dc320dfae4252f70c812af1dd7739d13d09615c1
[ "MIT" ]
null
null
null
pico/ch_19_digital_input.py
simonmonk/raspberrypi_cookbook_ed4
dc320dfae4252f70c812af1dd7739d13d09615c1
[ "MIT" ]
null
null
null
from machine import Pin from utime import sleep switch = Pin(16, Pin.IN, Pin.PULL_UP) while True: print(switch.value()) sleep(0.1)
17.5
37
0.7
76872370a808acd096337adf4b4a9668d69d4641
14,298
py
Python
hudson/hudson.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
hudson/hudson.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
hudson/hudson.py
HansGiesen/hudson
7642e50279290bf1e4cc930c88eece5ce025b4ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 ''' HuDSoN Created on Jun 17, 2019 @author: Hans Giesen (giesen@seas.upenn.edu) Copyright 2019 Xilinx, 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 restric...
38.435484
80
0.634914
be69d9f05a9c5a7b416110d70052188d817e8962
125
py
Python
ChineseChef.py
shyed2001/Python_Programming
93ef958e3d8aa77f9191b550972235ce4fe4a6cb
[ "bzip2-1.0.6" ]
2
2019-05-01T04:32:14.000Z
2019-05-04T11:28:18.000Z
ChineseChef.py
shyed2001/python-learning-basics
93ef958e3d8aa77f9191b550972235ce4fe4a6cb
[ "bzip2-1.0.6" ]
null
null
null
ChineseChef.py
shyed2001/python-learning-basics
93ef958e3d8aa77f9191b550972235ce4fe4a6cb
[ "bzip2-1.0.6" ]
null
null
null
from Chef import Chef class ChineseChef(Chef): def make_Fried_rice(self): print("The chef makes Fried_rice")
25
42
0.696
ba8a2ca27cf007cce547ab126d2ce6a440d074be
952
py
Python
dc17/dates.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
dc17/dates.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
dc17/dates.py
lamby/dc17.dc.o
83cc79ad6f627b8c203fe62b7fcc9ff7abd84ee4
[ "0BSD" ]
null
null
null
import datetime def meals(orga=False): day = datetime.date(2017, 7, 31) if orga: day = datetime.date(2017, 7, 28) while day <= datetime.date(2017, 8, 13): yield ('breakfast', day) if day < datetime.date(2017, 8, 13): yield ('lunch', day) yield ('dinner', day...
26.444444
67
0.565126
6d198fd1f6c3cf25bda8b37324395cdda602ba49
17,185
py
Python
representation_batch_rl/representation_batch_rl/vpn_pixels.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
representation_batch_rl/representation_batch_rl/vpn_pixels.py
xxdreck/google-research
dac724bc2b9362d65c26747a8754504fe4c615f8
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
representation_batch_rl/representation_batch_rl/vpn_pixels.py
admariner/google-research
7cee4b22b925581d912e8d993625c180da2a5a4f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
35.951883
89
0.654001
3fefd0a4b142e905b89e34411e51075216e4a6ec
23,778
py
Python
planemo/galaxy/activity.py
martin-raden/planemo
e14fc36550934efa9dab42efc1a0db04dd138294
[ "CC-BY-3.0" ]
null
null
null
planemo/galaxy/activity.py
martin-raden/planemo
e14fc36550934efa9dab42efc1a0db04dd138294
[ "CC-BY-3.0" ]
null
null
null
planemo/galaxy/activity.py
martin-raden/planemo
e14fc36550934efa9dab42efc1a0db04dd138294
[ "CC-BY-3.0" ]
null
null
null
"""Module provides generic interface to running Galaxy tools and workflows.""" import json import os import tempfile import time import bioblend import requests import yaml from bioblend.galaxy.client import Client from bioblend.util import attach_file from galaxy.tools.cwl.util import ( DirectoryUploadTarget, ...
36.191781
128
0.624989
cd428d944b5bd9280b5ba81f4c37e183df917776
908
py
Python
megatron/model/__init__.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
1,871
2020-12-22T14:44:29.000Z
2022-03-31T14:21:40.000Z
megatron/model/__init__.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
300
2020-12-23T17:51:43.000Z
2022-03-30T17:34:42.000Z
megatron/model/__init__.py
igor0/gpt-neox
3ad61952c290669d3741c01f767d41fdee5215c5
[ "Apache-2.0" ]
235
2020-12-23T19:45:19.000Z
2022-03-31T20:33:47.000Z
# coding=utf-8 # # Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version. # # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file exc...
43.238095
137
0.781938
4c4bbe43198de20a5336118ceeafa1035ed1e252
36,135
py
Python
inversionson/components/project.py
xiaolongma/Inversionson
d8a065d862bd554b073d2a72767a359635163ba1
[ "MIT" ]
2
2021-08-28T14:08:23.000Z
2021-08-30T00:35:53.000Z
inversionson/components/project.py
xiaolongma/Inversionson
d8a065d862bd554b073d2a72767a359635163ba1
[ "MIT" ]
null
null
null
inversionson/components/project.py
xiaolongma/Inversionson
d8a065d862bd554b073d2a72767a359635163ba1
[ "MIT" ]
null
null
null
""" A class which includes information regarding inversion and sets up all the components that are needed inside the inversion itself. """ # from __future__ import absolute_import import os import toml import pprint import shutil from inversionson import InversionsonError, InversionsonWarning import warnings from .c...
39.319913
90
0.565878
f003eb8cc6a5821323d04dfdee79d8576eaa7dd0
7,821
py
Python
test/querystring_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
test/querystring_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
test/querystring_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from urlblocks.query_string import QueryString from urlblocks.six import u class QueryStringTest(unittest.TestCase): def test_preserves_equality_with_original_string(self): assert QueryString('abc=123') == 'abc=123' def test_preserves_hash_value_of_original_...
43.45
90
0.611942
83645ae779f551c4016ef6046dd6651a4741537e
1,176
py
Python
code/cuboid_route/sol_86.py
bhavinjawade/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
2
2020-07-16T08:16:32.000Z
2020-10-01T07:16:48.000Z
code/cuboid_route/sol_86.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
null
null
null
code/cuboid_route/sol_86.py
Psingh12354/project-euler-solutions
56bf6a282730ed4b9b875fa081cf4509d9939d98
[ "Apache-2.0" ]
1
2021-05-07T18:06:08.000Z
2021-05-07T18:06:08.000Z
# -*- coding: utf-8 -*- ''' File name: code\cuboid_route\sol_86.py Author: Vaidic Joshi Date created: Oct 20, 2018 Python Version: 3.x ''' # Solution to Project Euler Problem #86 :: Cuboid route # # For more information see: # https://projecteuler.net/problem=86 # Problem Statement ''' A spider, S,...
39.2
341
0.733844
e1357de3acc6500f0b0e8c1ab62aa06d2e96bc43
266
py
Python
app/api/__init__.py
jakuboskera/guestbook
78d154560f669caf1f81561feb389c9aaaa6a24e
[ "Apache-2.0" ]
null
null
null
app/api/__init__.py
jakuboskera/guestbook
78d154560f669caf1f81561feb389c9aaaa6a24e
[ "Apache-2.0" ]
1
2022-02-07T21:19:13.000Z
2022-02-07T21:19:13.000Z
app/api/__init__.py
jakuboskera/guestbook
78d154560f669caf1f81561feb389c9aaaa6a24e
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint from flask_restx import Api from app.api.entries import api as entries blueprint = Blueprint("api", __name__) api = Api( blueprint, title="Guestbook", version="1.0", description="Guestbook simple API" ) api.add_namespace(entries)
20.461538
83
0.759398
54de2dd9f1a670b4f039fb697bd512d0ad59bb51
553
py
Python
examples/animations/nonvarinterp.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
examples/animations/nonvarinterp.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
examples/animations/nonvarinterp.py
ruohoruotsi/coldtype
13993e5a4fa3f99c6800fed2496bd5a374e4f53f
[ "Apache-2.0" ]
null
null
null
from coldtype import * mdpb = Font.Cacheable("~/Type/fonts/fonts/MDNichrome0.7-Black.otf") mdpl = Font.Cacheable("~/Type/fonts/fonts/MDNichrome0.7-Light.otf") r = Rect(1080, 1080) def build(font, **kwargs): return (StSt("Inter-\npolation", font, 250, leading=50, **kwargs) .align(r) .pen()...
26.333333
67
0.614828
0676be4a445469b6f9436f6c893398c720812ae4
109
py
Python
exercises/en/solution_penguins.py
UBC-MDS/exploratory-data-viz
83b704ce10d1ff5e10bfd4cdfa872ac52993fd54
[ "CC-BY-4.0" ]
null
null
null
exercises/en/solution_penguins.py
UBC-MDS/exploratory-data-viz
83b704ce10d1ff5e10bfd4cdfa872ac52993fd54
[ "CC-BY-4.0" ]
88
2020-12-04T06:56:51.000Z
2021-05-10T22:02:45.000Z
exercises/en/solution_penguins.py
flor14/ds-toolbox
5ff3730b114a96a3ea4491af74d0a0ba33385054
[ "CC-BY-4.0" ]
4
2021-01-13T09:30:57.000Z
2021-08-03T20:49:31.000Z
import altair as alt import pandas as pd penguins_df = pd.read_csv('data/penguins.csv') penguins_df.info()
15.571429
46
0.770642
24446d8805320eebfca7c4364ee1cccd06a10218
371
py
Python
scripts/NYU/_solarized.py
amueller/curfil
47c97be43abe62035f4da290276176f0120c0be0
[ "MIT" ]
2
2015-04-14T13:43:43.000Z
2020-03-13T20:56:42.000Z
scripts/NYU/_solarized.py
ferasha/curfil
f8c257dcb3a74aaa5c25eaa91c29a6dcbad04211
[ "MIT" ]
null
null
null
scripts/NYU/_solarized.py
ferasha/curfil
f8c257dcb3a74aaa5c25eaa91c29a6dcbad04211
[ "MIT" ]
null
null
null
colors = [ (0, 43, 54), (7, 54, 66), # floor (88, 110, 117), (101, 123, 131), (131, 148, 150), (147, 161, 161), # structure (238, 232, 213), (253, 246, 227), (181, 137, 0), # prop (203, 75, 22), # furniture (220, 50, 47), (211, 54, 130), (108, 113, 196), (38, ...
19.526316
33
0.423181
53da66bc12a9ca7bb175e4dcb7e4b5f385b5ef19
86
py
Python
workflower/plugins/tableau_document/__init__.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
workflower/plugins/tableau_document/__init__.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
workflower/plugins/tableau_document/__init__.py
dmenezesgabriel/workflower
db2358abdd2d133b85baea726e013e71171e5cf3
[ "MIT" ]
null
null
null
from workflower.plugins.tableau_document.plugin import ( TableauDocumentPlugin, )
21.5
56
0.813953
fe3562bfcc48bef27b69eb221c9228c50913cb31
3,933
py
Python
ai_project.py
chinmaypatil2442/Sentiment-Analysis
99faf7ee1f8fe56b28364e4b5118f38f0bfa308d
[ "MIT" ]
null
null
null
ai_project.py
chinmaypatil2442/Sentiment-Analysis
99faf7ee1f8fe56b28364e4b5118f38f0bfa308d
[ "MIT" ]
null
null
null
ai_project.py
chinmaypatil2442/Sentiment-Analysis
99faf7ee1f8fe56b28364e4b5118f38f0bfa308d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """AI_Project.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/168iKzn1_I4CBDVbzs895IgK5wFh0EDSE """ from nltk.stem.wordnet import WordNetLemmatizer from nltk.corpus import twitter_samples, stopwords from nltk.tag import po...
33.615385
98
0.709636
0ae5e292197060f32eea30fcda0a47fabccc41e8
2,684
py
Python
paddlenlp/transformers/distilbert/tokenizer.py
pangyoki/PaddleNLP
2afd760d0e548aae443b5c313f421e08de7398c3
[ "Apache-2.0" ]
1
2022-01-13T00:54:33.000Z
2022-01-13T00:54:33.000Z
paddlenlp/transformers/distilbert/tokenizer.py
pangyoki/PaddleNLP
2afd760d0e548aae443b5c313f421e08de7398c3
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/distilbert/tokenizer.py
pangyoki/PaddleNLP
2afd760d0e548aae443b5c313f421e08de7398c3
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # # 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 Licens...
41.9375
117
0.672131
19f03d2a5bd26fca75c5110a73249cdff7a6600a
3,406
py
Python
039_Combination_Sum.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
039_Combination_Sum.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
039_Combination_Sum.py
joshlyman/Josh-LeetCode
cc9e2cc406d2cbd5a90ee579efbcaeffb842c5ed
[ "MIT" ]
null
null
null
# Backtracking class Solution: def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]: if not candidates: return candidates.sort() paths = [] results = [] index = 0 cursum = 0 # paths, results,...
27.918033
108
0.53347
657a153b4fc667a1d7e8530a7b8862d6ca0e3327
885
py
Python
plugins/qrcode.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
15
2016-09-25T12:19:52.000Z
2020-08-29T00:15:22.000Z
plugins/qrcode.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
1
2017-12-18T01:36:48.000Z
2017-12-18T04:57:36.000Z
plugins/qrcode.py
PouriaDev/Python-Project
537c78a2099374e3280c61ce20458399d258ec60
[ "MIT" ]
20
2016-09-29T08:50:56.000Z
2021-10-03T19:50:00.000Z
# -*- coding: utf-8 -*- @bot.message_handler(commands=['qrcode', 'Qrcode']) def qr_image(message): userlang = redisserver.get("settings:user:language:" + str(message.from_user.id)) userid = message.from_user.id banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid)) if banlist: return if l...
49.166667
115
0.680226
ac30ba323327540a506c86bb551be81fc5f2667d
2,057
py
Python
aoc/d04/main.py
klittlepage/aoc2020
7135ac08263480a8cc9d6536d7caeb26bf85ae4f
[ "MIT" ]
null
null
null
aoc/d04/main.py
klittlepage/aoc2020
7135ac08263480a8cc9d6536d7caeb26bf85ae4f
[ "MIT" ]
null
null
null
aoc/d04/main.py
klittlepage/aoc2020
7135ac08263480a8cc9d6536d7caeb26bf85ae4f
[ "MIT" ]
null
null
null
import itertools as it import re from typing import cast, Dict, IO, Iterator, Tuple import aoc.common as common _REQUIRED_FIELDS = set(['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid']) def parse(input_file: IO) -> Iterator[Dict[str, str]]: yield from (dict(cast(Tuple[str, str], tuple(pair.split(':'))) for pai...
34.864407
78
0.576082
dfad5cc708c191bd8b5ee4c551e65196854f86b2
3,059
py
Python
bcp/files.py
mikealfare/bcp
5d43acaa89474cf31648b80f3f0c5b0d4ed2bb2f
[ "MIT" ]
3
2019-08-14T15:38:40.000Z
2019-11-13T06:15:53.000Z
bcp/files.py
mikealfare/bcp
5d43acaa89474cf31648b80f3f0c5b0d4ed2bb2f
[ "MIT" ]
7
2019-08-24T17:16:20.000Z
2019-12-27T12:46:33.000Z
bcp/files.py
mikealfare/bcp
5d43acaa89474cf31648b80f3f0c5b0d4ed2bb2f
[ "MIT" ]
null
null
null
""" This module contains data structures required to create and access files. Users will generally only need to use DataFile directly. LogFile and ErrorFile are used indirectly by the BCP classes. Example: .. code-block:: python from bcp import DataFile # create a csv to write out my data my_file = Data...
29.699029
118
0.645309
da714ae373960a4b32b956c6a70855cb170d489b
10,527
py
Python
google/ads/googleads/v9/services/services/keyword_plan_idea_service/transports/grpc.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/services/services/keyword_plan_idea_service/transports/grpc.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/services/services/keyword_plan_idea_service/transports/grpc.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.608696
104
0.624204
d6d97c623bb58f49ff38bfceec2bf7a18332e877
1,053
py
Python
neptune/new/integrations/pytorch_lightning/__init__.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
254
2020-01-27T14:18:57.000Z
2022-03-31T21:40:33.000Z
neptune/new/integrations/pytorch_lightning/__init__.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
160
2020-02-05T11:00:22.000Z
2022-03-31T08:50:24.000Z
neptune/new/integrations/pytorch_lightning/__init__.py
Raalsky/neptune-client
24ac58581774e61056d49cd1a22727799c14ad54
[ "Apache-2.0" ]
23
2020-02-07T09:19:50.000Z
2022-02-15T09:52:56.000Z
# # Copyright (c) 2021, Neptune Labs Sp. z o.o. # # 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 agr...
35.1
82
0.733143
df7c555603b8d0443283d4e4880ee6ed5aba9ae0
1,344
py
Python
setup.py
morganbye/finances_at_home
03896e5e84112843f88c99cb4639af7f9bf81550
[ "MIT" ]
null
null
null
setup.py
morganbye/finances_at_home
03896e5e84112843f88c99cb4639af7f9bf81550
[ "MIT" ]
null
null
null
setup.py
morganbye/finances_at_home
03896e5e84112843f88c99cb4639af7f9bf81550
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.md') as readme_file: readme = readme_file.read() with open('HISTORY.md') as history_file: history = history_file.read() requirements = [ ] setup_requirements = ['pytest-runne...
28.595745
75
0.665923
c338be8224a07c2e4ae1e1e5cd96992f6f9b1ab2
21,294
py
Python
open_worm_analysis_toolbox/statistics/histogram.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
35
2016-03-02T06:32:16.000Z
2021-12-17T22:57:22.000Z
open_worm_analysis_toolbox/statistics/histogram.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
80
2015-12-30T21:55:57.000Z
2021-03-13T10:38:47.000Z
open_worm_analysis_toolbox/statistics/histogram.py
suzil/open-worm-analysis-toolbox
ea1d3cddcefb6724e3d531cbced32092ac431411
[ "MIT" ]
17
2016-02-19T09:25:39.000Z
2021-12-17T22:57:33.000Z
# -*- coding: utf-8 -*- """ TODO: Most of the attributes here are not computed initially. We should add a paragraph or two regarding design decisions made here This code is generally interfaced with by the HistogramManager. The Histogram class, and its subclass, MergedHistogram: MergedHistoram contains a construc...
30.995633
82
0.563821
c3aa9597fa73edb1c24f7041d3d166875333b97b
18,773
py
Python
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/environment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/environment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/environment.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
31.926871
158
0.642891
9547e1617998802f3d5812e8a863227c7b5d1313
1,422
py
Python
config/settings/test.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
null
null
null
config/settings/test.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
4
2021-09-10T16:21:53.000Z
2021-09-17T18:04:22.000Z
config/settings/test.py
udrems/cyberexperiment
9ad9c9580cd9dd1c28c0d8e27975f5bca530e101
[ "MIT" ]
2
2021-09-08T07:50:59.000Z
2021-09-08T16:15:26.000Z
""" With these settings, tests run faster. """ from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env( "DJANGO_SECRET_KEY", default="Q6IK3vG2I...
33.857143
80
0.510549
ce9b43f1ad0f8cc84fb01c56e69f9cfc71d0b87a
9,157
py
Python
tools/marvin/marvin/marvinInit.py
redbridge/cloudstack
2218053fb11d501950e4beb80e9bee4ae472b5b4
[ "ECL-2.0", "Apache-2.0" ]
2
2015-02-10T07:21:58.000Z
2021-05-07T08:52:17.000Z
tools/marvin/marvin/marvinInit.py
redbridge/cloudstack
2218053fb11d501950e4beb80e9bee4ae472b5b4
[ "ECL-2.0", "Apache-2.0" ]
2
2015-06-11T02:17:06.000Z
2015-06-22T20:46:42.000Z
tools/marvin/marvin/marvinInit.py
redbridge/cloudstack
2218053fb11d501950e4beb80e9bee4ae472b5b4
[ "ECL-2.0", "Apache-2.0" ]
4
2015-05-25T15:53:52.000Z
2018-05-23T14:08:07.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.528689
75
0.580539
058ba0c74677a204db27b5421df18c9b02c7e481
14,849
py
Python
geos/kml.py
nono303/geos
212a2e12f73a899f1034d6c3d31acdd5b52afe7f
[ "BSD-3-Clause" ]
null
null
null
geos/kml.py
nono303/geos
212a2e12f73a899f1034d6c3d31acdd5b52afe7f
[ "BSD-3-Clause" ]
null
null
null
geos/kml.py
nono303/geos
212a2e12f73a899f1034d6c3d31acdd5b52afe7f
[ "BSD-3-Clause" ]
null
null
null
""" This module serves for generating Google Earth KML files which create an overlay of tiled web maps. This module comes with three major classes: * KMLMaster: Creates a KML that contains network links to multiple KMLMapRoots (-> overview over available maps) * KMLMapRoot: Root documen...
35.694712
105
0.62819
24a89bb973af8bff4e93592c4dfaee4b8acaffd5
3,822
py
Python
contributions/api/models/capabilities/capability.py
rokmetro/rokwire-building-blocks-api-fork
0208388394478c31186ab8b9356bd00e13dc2433
[ "Apache-2.0" ]
1
2022-01-13T12:21:39.000Z
2022-01-13T12:21:39.000Z
contributions/api/models/capabilities/capability.py
rokmetro/rokwire-building-blocks-api-fork
0208388394478c31186ab8b9356bd00e13dc2433
[ "Apache-2.0" ]
313
2019-04-12T22:00:21.000Z
2022-03-31T20:47:11.000Z
contributions/api/models/capabilities/capability.py
rokmetro/rokwire-building-blocks-api-fork
0208388394478c31186ab8b9356bd00e13dc2433
[ "Apache-2.0" ]
6
2019-04-04T13:19:07.000Z
2021-12-02T05:28:38.000Z
# Copyright 2020 Board of Trustees of the University of Illinois. # # 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 ...
29.4
87
0.702773
1311a09ef936864cd63340f1d515337049b08eba
1,147
py
Python
simple_http_server_redis_session/__init__.py
keijack/python-simple-http-server-redis-session
84c16037370e621d093452ea2e4898dcc357871e
[ "MIT" ]
2
2021-05-13T11:16:07.000Z
2021-05-27T22:40:33.000Z
simple_http_server_redis_session/__init__.py
keijack/python-simple-http-server-redis-session
84c16037370e621d093452ea2e4898dcc357871e
[ "MIT" ]
null
null
null
simple_http_server_redis_session/__init__.py
keijack/python-simple-http-server-redis-session
84c16037370e621d093452ea2e4898dcc357871e
[ "MIT" ]
1
2021-08-08T05:21:47.000Z
2021-08-08T05:21:47.000Z
# -*- coding: utf-8 -*- """ Copyright (c) 2021 Keijack Wu 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,...
44.115385
78
0.789015
882c849ad8ae0364f5e0e4971a74b543ea4cfd23
364
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/xmlrpc.client/xmlrpc_ServerProxy_use_datetime.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/xmlrpc.client/xmlrpc_ServerProxy_use_datetime.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/python3-book-examples/xmlrpc.client/xmlrpc_ServerProxy_use_datetime.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# """ """ # end_pymotw_header import xmlrpc.client server = xmlrpc.client.ServerProxy("http://localhost:9000", use_datetime=True) now = server.now() print("With:", now, type(now), now.__class__.__name__) server = xmlrpc.client.ServerProxy("http://localhost:9000", use_datetime=False) now = server.now() print("Without...
24.266667
79
0.728022
ce35194245417bde2383de1adc5f52ce7ba0fdaa
6,190
py
Python
barython/screen.py
aruhier/barython
3761e2e163c52de407c7781dc9991a3eba464652
[ "BSD-3-Clause" ]
null
null
null
barython/screen.py
aruhier/barython
3761e2e163c52de407c7781dc9991a3eba464652
[ "BSD-3-Clause" ]
14
2016-01-19T23:32:38.000Z
2017-04-19T16:21:50.000Z
barython/screen.py
Anthony25/barython
3761e2e163c52de407c7781dc9991a3eba464652
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from collections import OrderedDict import itertools import logging import threading import xcffib import xcffib.xproto import xcffib.randr from barython import _BarSpawner logger = logging.getLogger("barython") def get_randr_screens(): conn = xcffib.connect() conn.randr = conn(xcff...
30.79602
77
0.564459
917f79b141e81bdfe0165b7ba5374d52422dd74a
51,046
py
Python
salt/salt/utils/schema.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
1
2017-11-21T16:57:27.000Z
2017-11-21T16:57:27.000Z
salt/salt/utils/schema.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
null
null
null
salt/salt/utils/schema.py
smallyear/linuxLearn
342e5020bf24b5fac732c4275a512087b47e578d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` salt.utils.schema ~~~~~~~~~~~~~~~~~ Object Oriented Configuration - JSON Schema compatible generator This code was inspired by `jsl`__, "A Python DSL for describing JSON schemas". .. __: http://jsl.readthed...
36.100424
118
0.552991
ae127cbb6ecda2bce8e1f72a93417b0eb37c0344
195,719
py
Python
manila/tests/share/drivers/huawei/test_huawei_nas.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
159
2015-01-02T09:35:15.000Z
2022-01-04T11:51:34.000Z
manila/tests/share/drivers/huawei/test_huawei_nas.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
5
2015-07-24T09:28:21.000Z
2020-11-20T04:33:51.000Z
manila/tests/share/drivers/huawei/test_huawei_nas.py
openstack/manila
1ebae738c235c6f1874ac7b11307e0d5fb567dba
[ "Apache-2.0" ]
128
2015-01-05T22:52:28.000Z
2021-12-29T14:00:58.000Z
# Copyright (c) 2014 Huawei Technologies Co., Ltd. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
41.74003
79
0.538558
8a83b977601f60094fa000a41455789dc9c8a1f2
274
py
Python
django_structlog/__init__.py
kashewnuts/django-structlog
1b4849039ee92688b53c502853a152c78a2dfe51
[ "MIT" ]
null
null
null
django_structlog/__init__.py
kashewnuts/django-structlog
1b4849039ee92688b53c502853a152c78a2dfe51
[ "MIT" ]
null
null
null
django_structlog/__init__.py
kashewnuts/django-structlog
1b4849039ee92688b53c502853a152c78a2dfe51
[ "MIT" ]
null
null
null
""" ``django-structlog`` is a structured logging integration for ``Django`` project using ``structlog``. """ default_app_config = "django_structlog.apps.DjangoStructLogConfig" name = "django_structlog" VERSION = (2, 1, 0) __version__ = ".".join(str(v) for v in VERSION)
24.909091
104
0.718978
e484776bd34671098e0506ad5be8a04c5cb55158
8,265
py
Python
docs/conf.py
jkj728/yara
6fe1fb57edcb34815221bb58890ffbfef54e4067
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jkj728/yara
6fe1fb57edcb34815221bb58890ffbfef54e4067
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jkj728/yara
6fe1fb57edcb34815221bb58890ffbfef54e4067
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # yara documentation build configuration file, created by # sphinx-quickstart on Tue Jul 8 11:04:03 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
30.839552
79
0.717362
0028aa6303a294fbf64f37d98cac62c570371c12
66,302
py
Python
wagtail/users/tests.py
NabilMostafa/wagtail
d949946434508fb4b118f5ab83966463ce510163
[ "BSD-3-Clause" ]
2
2020-10-19T13:10:14.000Z
2020-11-29T05:17:13.000Z
wagtail/users/tests.py
NabilMostafa/wagtail
d949946434508fb4b118f5ab83966463ce510163
[ "BSD-3-Clause" ]
3
2015-03-10T12:19:01.000Z
2021-10-14T22:24:06.000Z
wagtail/users/tests.py
NabilMostafa/wagtail
d949946434508fb4b118f5ab83966463ce510163
[ "BSD-3-Clause" ]
1
2016-04-04T12:58:24.000Z
2016-04-04T12:58:24.000Z
import unittest.mock from django import forms from django.apps import apps from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.core.exceptions import ImproperlyConfigured from django.core.files.uploadedfile import SimpleUp...
40.85151
126
0.645335
db449fd9ce4c69c6ffec242a6b307280e77d3f17
131
py
Python
app.py
RuneHistory/runehistory-api
4e857c7fdbdf585d57cf4c7fe6214b565ac37a22
[ "MIT" ]
null
null
null
app.py
RuneHistory/runehistory-api
4e857c7fdbdf585d57cf4c7fe6214b565ac37a22
[ "MIT" ]
6
2018-06-14T13:58:43.000Z
2018-07-16T14:02:24.000Z
app.py
RuneHistory/runehistory-api
4e857c7fdbdf585d57cf4c7fe6214b565ac37a22
[ "MIT" ]
null
null
null
from runehistory_api import make_app app = make_app(__name__) if __name__ == '__main__': app.run(host='0.0.0.0', debug=True)
18.714286
39
0.709924
2110f9c5fb79d3f73918a8c8d78043a4027f0ed6
4,236
py
Python
backend/api/migrations/0035_auto_20191105_1851.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
null
null
null
backend/api/migrations/0035_auto_20191105_1851.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
7
2020-06-06T00:58:09.000Z
2022-02-26T20:03:02.000Z
backend/api/migrations/0035_auto_20191105_1851.py
Kovszasz/MYG
fc932bef8b67d568ac60bba5604009550570fca9
[ "MIT" ]
null
null
null
# Generated by Django 2.2.7 on 2019-11-05 18:51 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('auth', '0011_update_proxy_permissions'), ('api', '0034_post_ispublic'), ] ...
30.042553
156
0.524315
de764e7db93965f80056ec9ad57a7348c1e00dd7
15,004
py
Python
python/ray/tests/test_command_runner.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
39
2021-02-02T23:09:31.000Z
2022-03-28T16:39:12.000Z
python/ray/tests/test_command_runner.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
77
2021-06-05T07:04:56.000Z
2022-03-26T07:04:33.000Z
python/ray/tests/test_command_runner.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
20
2021-02-05T05:51:39.000Z
2022-03-04T21:13:24.000Z
import logging import pytest from unittest.mock import patch from ray.tests.test_autoscaler import MockProvider, MockProcessRunner from ray.autoscaler.command_runner import CommandRunnerInterface from ray.autoscaler._private.command_runner import SSHCommandRunner, \ DockerCommandRunner, KubernetesCommandRunner, _w...
36.864865
582
0.623834
0468f5539682f07b189c296e7886ce4965d0d697
18,063
py
Python
python/GafferImageTest/MergeTest.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
31
2017-07-10T10:02:07.000Z
2022-02-08T13:54:14.000Z
python/GafferImageTest/MergeTest.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
null
null
null
python/GafferImageTest/MergeTest.py
Tuftux/gaffer
5acaf7cbfadbae841dc06854121ca85dcc5c338c
[ "BSD-3-Clause" ]
3
2017-11-04T15:30:11.000Z
2018-09-25T18:36:11.000Z
########################################################################## # # Copyright (c) 2013-2015, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redi...
36.863265
144
0.64884
f7367b85ef33529c5c360e68d214cb8e6a80a38f
4,752
py
Python
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
9
2021-03-18T23:10:27.000Z
2022-03-11T23:43:55.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/lib/colourchooser/canvas.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
2
2019-03-11T05:06:49.000Z
2019-03-22T21:48:49.000Z
""" PyColourChooser Copyright (C) 2002 Michael Gilfix <mgilfix@eecs.tufts.edu> This file is part of PyColourChooser. This version of PyColourChooser is open source; you can redistribute it and/or modify it under the licensed terms. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRA...
32.547945
71
0.643729
40b6d5378a4c3825f42ec5c82e096f8be1291759
945
py
Python
Dec2021/mpi4py/ex7_mpi_pi.py
sbailey/tutorials
5820fb72da2ffec368e59bffdaecc94a2039060c
[ "BSD-3-Clause" ]
22
2018-09-01T23:52:49.000Z
2022-01-22T20:30:54.000Z
Dec2021/mpi4py/ex7_mpi_pi.py
sbailey/tutorials
5820fb72da2ffec368e59bffdaecc94a2039060c
[ "BSD-3-Clause" ]
40
2017-06-24T23:08:03.000Z
2021-06-10T23:22:37.000Z
Dec2021/mpi4py/ex7_mpi_pi.py
sbailey/tutorials
5820fb72da2ffec368e59bffdaecc94a2039060c
[ "BSD-3-Clause" ]
9
2018-05-22T16:18:27.000Z
2021-06-10T23:13:42.000Z
""" Example6. Calculate Pi (3.1415..) with a simple code based on trapzoidal method. run with $> python <scipt name> """ import numpy as np from mpi4py import MPI from time import time def f(x): return 4.0/(1.0+x*x) def trap(local_a,local_b,local_n,h): # trapzoidal method estimate = (f(...
19.285714
64
0.620106
fa0c46d1f6f31aad108090d6161234cb3a6269a0
3,581
py
Python
autocleus/climaker/components.py
ludah65/autocleus
b7403894e4f72d7874af4d888ec63bd1e7832c02
[ "Apache-2.0" ]
2
2021-05-21T15:51:24.000Z
2021-05-21T17:27:48.000Z
autocleus/climaker/components.py
ludah65/autocleus
b7403894e4f72d7874af4d888ec63bd1e7832c02
[ "Apache-2.0" ]
null
null
null
autocleus/climaker/components.py
ludah65/autocleus
b7403894e4f72d7874af4d888ec63bd1e7832c02
[ "Apache-2.0" ]
null
null
null
import os import sys import argparse import importlib as imp import types import autocleus.cmd as cmd from autocleus.library.parsers import BaseArgumentParser, FancyHelpFormatter, read_cli_conf class CLImaker(): def __init__(self, cmdpath, cli_description): self.cmdpath = cmdpath self.cli_descrip...
31.412281
91
0.659313
b4b31123560144a6e3b691034c487cdd03bc2de1
1,505
py
Python
torrent.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
torrent.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
torrent.py
dcheno/dripdrop
ed8b3b18d0796192d0f8cfa09efd2aece078ea9b
[ "MIT" ]
null
null
null
import os from hashlib import sha1 from bencode3 import bdecode, bencode """Handle data related to a torrent and its torrent file""" class TorrentError(Exception): pass class Torrent: """Hold information coming from a torrent file.""" def __init__(self, tor_file_path): self.path = tor_file_pat...
31.354167
75
0.636545
8c046c703710a54e97190a49937be7db9091d360
21,085
py
Python
icenumerics/colloidalice.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
null
null
null
icenumerics/colloidalice.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
8
2019-10-04T09:04:23.000Z
2021-09-29T18:01:21.000Z
icenumerics/colloidalice.py
aortiza/icenumerics
983bfff616f5bedee0ccefd0f9fad10e50e23e83
[ "MIT" ]
1
2019-10-10T10:25:43.000Z
2019-10-10T10:25:43.000Z
import numpy as np import copy as cp import matplotlib.pyplot as plt import matplotlib.patches as ptch import matplotlib.animation as anm import scipy.spatial as spa import pandas as pd import warnings from icenumerics.geometry import * from icenumerics.parameters import * from icenumerics.spins import * from . impor...
38.830571
302
0.576334
c03ee7c4af7f405edfa4302f782d43ad147c3996
1,166
py
Python
subjective_logic/testjpy.py
tum-i4/SACPS-robotics-system
dfa56cde0b433ff1c31a1ddcbf2c108247115a36
[ "MIT" ]
null
null
null
subjective_logic/testjpy.py
tum-i4/SACPS-robotics-system
dfa56cde0b433ff1c31a1ddcbf2c108247115a36
[ "MIT" ]
null
null
null
subjective_logic/testjpy.py
tum-i4/SACPS-robotics-system
dfa56cde0b433ff1c31a1ddcbf2c108247115a36
[ "MIT" ]
null
null
null
import jpy # Create a new JVM with the SL library on its classpath jpy.create_jvm(['-Xmx512M', '-Djava.class.path=/home/sebastian/catkin_ws_Malte/knowledge_aggregation/subjective_logic/build/libs/subjective-logic-java-library-0.1.0.jar']) # Get a reference of the SubjectiveOpinion Java class through jpy bridge Subjec...
36.4375
171
0.754717
407d8f0d1a8e091683e148b00a791b2009d9a020
4,443
py
Python
GANs/sagan/match.py
shikisawamura/nnabla-examples
baf4e4cc620dedbf4368683325c0fb868676850d
[ "Apache-2.0" ]
1
2020-08-03T12:49:25.000Z
2020-08-03T12:49:25.000Z
GANs/sagan/match.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
null
null
null
GANs/sagan/match.py
takuseno/nnabla-examples
070d25078ad3d5458744dbfd390cdd926e20e573
[ "Apache-2.0" ]
1
2020-04-25T06:11:28.000Z
2020-04-25T06:11:28.000Z
# Copyright (c) 2017 Sony Corporation. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
34.44186
90
0.664191
5f108b04b2e28a0d76459e9c9a07fd35e28cd55a
1,213
py
Python
tests/core/test_cluster_defaults.py
xmh19936688/rancher
2ad6bddf645515fe62d3e4a06cebd53fbbf9751e
[ "Apache-2.0" ]
1
2019-02-19T01:46:20.000Z
2019-02-19T01:46:20.000Z
tests/core/test_cluster_defaults.py
xmh19936688/rancher
2ad6bddf645515fe62d3e4a06cebd53fbbf9751e
[ "Apache-2.0" ]
1
2022-02-16T16:55:21.000Z
2022-02-16T16:55:26.000Z
tests/core/test_cluster_defaults.py
xmh19936688/rancher
2ad6bddf645515fe62d3e4a06cebd53fbbf9751e
[ "Apache-2.0" ]
null
null
null
import pytest import json @pytest.mark.skip(reason="cluster-defaults disabled") def test_initial_defaults(admin_mc): cclient = admin_mc.client schema_defaults = {} setting_defaults = {} data = cclient.schema.types['cluster'].resourceFields default = data["enableNetworkPolicy"]["default"] for...
35.676471
73
0.688376
84bb084ea5304458106fe05b3a935cf3a440f79b
3,562
gyp
Python
node_modules/ethereumjs-vm/node_modules/merkle-patricia-tree/node_modules/secp256k1/binding.gyp
thejdavid/EthTrading
349415ba84de31bf1b800c7c62c642fe6b5b44ad
[ "MIT" ]
12
2018-09-12T05:59:27.000Z
2020-04-12T13:32:04.000Z
node_modules/ethereumjs-vm/node_modules/merkle-patricia-tree/node_modules/secp256k1/binding.gyp
thejdavid/EthTrading
349415ba84de31bf1b800c7c62c642fe6b5b44ad
[ "MIT" ]
6
2020-09-07T23:38:46.000Z
2022-03-23T16:33:56.000Z
node_modules/ethereumjs-vm/node_modules/merkle-patricia-tree/node_modules/secp256k1/binding.gyp
thejdavid/EthTrading
349415ba84de31bf1b800c7c62c642fe6b5b44ad
[ "MIT" ]
9
2018-10-03T21:00:13.000Z
2019-08-22T18:52:39.000Z
{ "targets": [{ "target_name": "secp256k1", "variables": { "with_gmp%": "<!(./utils/has_lib.sh gmpxx && ./utils/has_lib.sh gmp)" }, "sources": [ "./src/addon.cc", "./src/secretkey.cc", "./src/publickey.cc", "./src/signature.cc", "./src/sign.cc", "./src/verify....
24.565517
78
0.3863
0e6a425e045c083ae9d336bcfa90b6a0e157b575
3,573
py
Python
skip/serializers/v1/serializers.py
LCOGT/skip
2524ba71c39876aae8a31fff3de55e6cb7aa1f83
[ "BSD-3-Clause" ]
null
null
null
skip/serializers/v1/serializers.py
LCOGT/skip
2524ba71c39876aae8a31fff3de55e6cb7aa1f83
[ "BSD-3-Clause" ]
4
2020-09-10T20:31:54.000Z
2022-02-27T18:40:23.000Z
skip/serializers/v1/serializers.py
scimma/skip
aa9437d8c4f7d5edbffaec20e6651339241bbb95
[ "BSD-3-Clause" ]
null
null
null
from astropy.coordinates import Angle from astropy import units from skip.models import Alert, Topic from rest_framework import serializers class AlertSerializer(serializers.ModelSerializer): alert_identifier = serializers.CharField(source='identifier') alert_timestamp = serializers.CharField(source='timesta...
43.048193
118
0.631962
547c2e607c8e1523fe5f11af958ca426ca45a3c8
445
py
Python
setup.py
sagar30051991/helpdesk
d6b8e29ba70464c8ecbe5af9bb2ffcf3c3ab8610
[ "MIT" ]
1
2017-09-12T17:03:38.000Z
2017-09-12T17:03:38.000Z
setup.py
sagar30051991/helpdesk
d6b8e29ba70464c8ecbe5af9bb2ffcf3c3ab8610
[ "MIT" ]
null
null
null
setup.py
sagar30051991/helpdesk
d6b8e29ba70464c8ecbe5af9bb2ffcf3c3ab8610
[ "MIT" ]
3
2016-06-03T11:21:40.000Z
2017-09-12T17:03:39.000Z
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os version = '0.0.1' with open("requirements.txt", "r") as f: install_requires = f.readlines() setup( name='helpdesk', version=version, description='helpdesk', author='helpdesk', author_email='makarand.b@indictranstech.co...
21.190476
49
0.698876
1be784a8369c06aa9ff1c7ec776c634a56078a00
574
py
Python
tripaille/commands/feature/delete_orphans.py
mboudet/python-tripal
c1d0128b16b7c0d3794e217993b053bf0fb64a71
[ "MIT" ]
3
2017-09-08T15:16:07.000Z
2019-07-18T12:00:18.000Z
tripaille/commands/feature/delete_orphans.py
abretaud/python-tripal
9988f5a648a40be21d2ae553b2eda91c15fa881e
[ "MIT" ]
9
2018-04-21T14:33:50.000Z
2019-02-08T09:59:32.000Z
tripaille/commands/feature/delete_orphans.py
abretaud/python-tripal
9988f5a648a40be21d2ae553b2eda91c15fa881e
[ "MIT" ]
2
2018-09-04T13:00:40.000Z
2018-12-04T14:59:33.000Z
import click from tripaille.cli import pass_context from tripaille.decorators import custom_exception, str_output @click.command('delete_orphans') @click.option( "--job_name", help="Name of the job", type=str ) @click.option( "--no_wait", help="Return immediately without waiting for job completion...
20.5
76
0.722997
7a151c62700c85b03fb4fe0dee3f57f53297e2c0
5,903
py
Python
mmocr/models/textdet/losses/bs_loss_tb.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
mmocr/models/textdet/losses/bs_loss_tb.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
mmocr/models/textdet/losses/bs_loss_tb.py
zzx0226/mmocr
50354895244339a392b4f1af5a35963883923cca
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import numpy as np import torch import torch.nn.functional as F from mmdet.core import multi_apply from torch import nn from mmocr.models.builder import LOSSES @LOSSES.register_module() class BSLoss_tb(nn.Module): """The class for implementing FCENet loss. FCE...
38.835526
121
0.571066
060025f16c04bb4d9f51088613da854542257688
1,080
py
Python
manage_versions/settings.py
zilohumberto/PySvn-Handle-Delta-Deploy
197a55ebda688c0f480bd3bb72db7e5e8bd163f9
[ "Unlicense" ]
null
null
null
manage_versions/settings.py
zilohumberto/PySvn-Handle-Delta-Deploy
197a55ebda688c0f480bd3bb72db7e5e8bd163f9
[ "Unlicense" ]
null
null
null
manage_versions/settings.py
zilohumberto/PySvn-Handle-Delta-Deploy
197a55ebda688c0f480bd3bb72db7e5e8bd163f9
[ "Unlicense" ]
null
null
null
import codecs import json #all vars for default to start! class svnSettings: count = 2 dir_local = [] dir_server = [] concurrent_id = 0 dir_toGenerate = [] last_revison = [] config = None source_config_file = "C:\Desarrollo-Practica\PySvn\manage_versions\config.json" def ...
31.764706
84
0.612037
18523b5118c989f63c92949de9a0fc3d3f08a849
40,248
py
Python
circup.py
jepler/circup
751578094b9e79410fb01805a4a51f14b2ee368a
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
circup.py
jepler/circup
751578094b9e79410fb01805a4a51f14b2ee368a
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
circup.py
jepler/circup
751578094b9e79410fb01805a4a51f14b2ee368a
[ "MIT", "MIT-0", "Unlicense" ]
null
null
null
# SPDX-FileCopyrightText: 2019 Nicholas Tollervey, written for Adafruit Industries # # SPDX-License-Identifier: MIT """ CircUp -- a utility to manage and update libraries on a CircuitPython device. """ import ctypes import glob import json import logging import os from pathlib import Path import re import shutil from...
37.47486
89
0.611906
a2ab56021c5f70e5d83d62278481e4102b0e0b64
12,487
py
Python
thinc/neural/_classes/rnn.py
alephmelo/thinc
5c4340eddbe1f21649f773bc68b4b0600cf414ba
[ "MIT" ]
1
2018-10-30T07:19:27.000Z
2018-10-30T07:19:27.000Z
thinc/neural/_classes/rnn.py
alephmelo/thinc
5c4340eddbe1f21649f773bc68b4b0600cf414ba
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
thinc/neural/_classes/rnn.py
alephmelo/thinc
5c4340eddbe1f21649f773bc68b4b0600cf414ba
[ "MIT" ]
1
2020-11-18T06:18:15.000Z
2020-11-18T06:18:15.000Z
from ...api import layerize from ..util import get_array_module from .model import Model def begin_stepwise_tanh(X, nG): xp = get_array_module(X) Y = xp.zeros(X.shape, dtype='f') def tanh_fwd(t): Y[t] = xp.tanh(X[t]) return Y[t] def tanh_bwd(dY): return (1-Y**2) * dY return...
32.100257
84
0.51005
1c5029a56352751e5100e49abd7dc7e5c540acd0
2,061
py
Python
harness/tests/experiment/fixtures/tf_keras_xor_model_native.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
1
2021-03-29T13:39:45.000Z
2021-03-29T13:39:45.000Z
harness/tests/experiment/fixtures/tf_keras_xor_model_native.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
null
null
null
harness/tests/experiment/fixtures/tf_keras_xor_model_native.py
ybt195/determined
913fdc3b81ef33c2760bdb128c8ce9179e4ab9b2
[ "Apache-2.0" ]
null
null
null
import argparse import pathlib import tensorflow as tf from tensorflow.keras.layers import Dense from tensorflow.keras.losses import binary_crossentropy from tensorflow.keras.metrics import categorical_accuracy from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import SGD from determined....
32.203125
95
0.697234
62bb9b71c2d8e63c85c6b48ce0f22a89e2dd4bcc
2,097
py
Python
algoplex/api/simulator/market_data_sim.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
algoplex/api/simulator/market_data_sim.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
algoplex/api/simulator/market_data_sim.py
dmitryaleks/algo-plex
c83421642fc1ac11e558126ec73909b175b07862
[ "BSD-2-Clause" ]
null
null
null
from algoplex.api.common.market_data import MarketData import threading import os import time class MarketDataSim(MarketData): def __init__(self, market_data_file): self.market_data_file = market_data_file self.subscribers = [] self.subscribed = False self.watcher = None se...
32.261538
86
0.587983
f484f4f51c852a95329552a015ff19480994c6bd
22,935
py
Python
download_from_google_storage.py
Cosium/depot_tools
e117e46a6894979f85f6329dcb04c945a93f37d8
[ "BSD-3-Clause" ]
null
null
null
download_from_google_storage.py
Cosium/depot_tools
e117e46a6894979f85f6329dcb04c945a93f37d8
[ "BSD-3-Clause" ]
null
null
null
download_from_google_storage.py
Cosium/depot_tools
e117e46a6894979f85f6329dcb04c945a93f37d8
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 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. """Download files from Google Storage based on SHA1 sums.""" import hashlib import optparse import os import Queue import re impo...
38.546218
80
0.628733
7b0b22b56f833b28e7450791b63e46edb618aad3
473
py
Python
tests/test_sho.py
aticio/legitindicators
a3ecbbe8739df84f0a7031d78c13ed809c68ca9a
[ "MIT" ]
4
2020-04-06T15:02:30.000Z
2021-05-26T12:39:06.000Z
tests/test_sho.py
aticio/legitindicators
a3ecbbe8739df84f0a7031d78c13ed809c68ca9a
[ "MIT" ]
null
null
null
tests/test_sho.py
aticio/legitindicators
a3ecbbe8739df84f0a7031d78c13ed809c68ca9a
[ "MIT" ]
1
2020-04-06T14:32:03.000Z
2020-04-06T14:32:03.000Z
import requests from legitindicators import simple_harmonic_oscillator BINANCE_URL = "https://api.binance.com/api/v3/klines" SYMBOL = "BTCUSDT" INTERVAL = "1h" PARAMS = {"symbol":SYMBOL, "interval":INTERVAL} def test_simple_harmonic_oscillator(): response = requests.get(url=BINANCE_URL, params=PARAMS) data = ...
29.5625
59
0.725159
ac36ed19f20332170297f0b88a490b3149179d1f
612
py
Python
system/protocols/mumble/structs.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
16
2015-01-02T00:16:11.000Z
2019-06-03T06:23:11.000Z
system/protocols/mumble/structs.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
31
2015-01-18T12:14:53.000Z
2018-01-07T13:32:29.000Z
system/protocols/mumble/structs.py
UltrosBot/Ultros
639efc11f73ebf7e8f47f0554aced00a559d9e2d
[ "Artistic-2.0" ]
9
2015-02-13T09:38:53.000Z
2020-11-29T19:59:32.000Z
# coding=utf-8 from collections import namedtuple __author__ = 'Sean' Version = namedtuple("Version", ["version", "release", "os", "os_version"]) class Stats(object): """ Mumble user connection stats """ def __init__(self, good=0, late=0, lost=0, resync=0): self.good = good self.l...
20.4
75
0.545752
1f603fab01c3d2c1cf16a9d8afbfac005ba6bd14
23,314
py
Python
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3_preview/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3_preview/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/keyvault/azure-keyvault-administration/azure/keyvault/administration/_generated/v7_3_preview/models/_models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
34.184751
100
0.639616
63e5f3aab9d74ecb6f10b3d99d408267a48c8eb1
113
py
Python
MonoTools/stellar/isoclassify/isoclassify/__init__.py
hposborn/MonoTools
972c0e2ef23e8008ba43ab3e8a94b526db35d7fc
[ "BSD-2-Clause" ]
6
2020-07-27T18:00:39.000Z
2022-03-15T07:33:46.000Z
stellar/isoclassify/isoclassify/__init__.py
hposborn/NamastePymc3
243e73ce813163f787e89b24c44a3e97549df3a7
[ "MIT" ]
14
2020-06-17T03:48:37.000Z
2022-02-07T18:16:52.000Z
stellar/isoclassify/isoclassify/__init__.py
hposborn/NamastePymc3
243e73ce813163f787e89b24c44a3e97549df3a7
[ "MIT" ]
1
2019-09-26T18:19:15.000Z
2019-09-26T18:19:15.000Z
import os DATADIR = os.environ['ISOCLASSIFY'] from .grid import * from .direct import * from . import pipeline
14.125
35
0.734513
e560f795a151acf991ac7cd74cf9277326a126d0
2,371
py
Python
cities/admin.py
aleluc13/django-cities
80de1e14b4e056f31b50bb1addb3b247b5b15ad2
[ "MIT" ]
null
null
null
cities/admin.py
aleluc13/django-cities
80de1e14b4e056f31b50bb1addb3b247b5b15ad2
[ "MIT" ]
null
null
null
cities/admin.py
aleluc13/django-cities
80de1e14b4e056f31b50bb1addb3b247b5b15ad2
[ "MIT" ]
null
null
null
from django.contrib.gis import admin import swapper from .models import (Continent, Country, Region, Subregion, City, District, PostalCode, AlternativeName) class CitiesAdmin(admin.OSMGeoAdmin): openlayers_url = 'https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js' ra...
32.479452
95
0.694222
326682fcbc6b9c31c05ced77402a981f40dec7bd
2,248
py
Python
opencivicdata/elections/migrations/0006_auto_20171005_2029.py
palewire/python-opencivicdata
7862be45bef6846d3e284995d208fabcc8635362
[ "BSD-3-Clause" ]
20
2017-06-23T17:31:48.000Z
2021-11-23T19:20:58.000Z
opencivicdata/elections/migrations/0006_auto_20171005_2029.py
palewire/python-opencivicdata
7862be45bef6846d3e284995d208fabcc8635362
[ "BSD-3-Clause" ]
70
2015-01-06T18:40:22.000Z
2017-05-24T18:06:52.000Z
opencivicdata/elections/migrations/0006_auto_20171005_2029.py
california-civic-data-coalition/python-opencivicdata-django
375cd09d48908a7be58186de64f470b233f616d6
[ "BSD-3-Clause" ]
17
2017-05-25T17:05:57.000Z
2021-06-05T14:45:39.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-05 20:29 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [("elections", "0005_auto_20170823_1648")] operations = [ ...
38.758621
192
0.589413
82ec860f8afa037573d1a4785b2565bae6972d3a
2,492
py
Python
tests/models/validators/v2_1_2/jsd_4ca2db1143ebb5d7.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
32
2019-09-05T05:16:56.000Z
2022-03-22T09:50:38.000Z
tests/models/validators/v2_1_2/jsd_4ca2db1143ebb5d7.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
35
2019-09-07T18:58:54.000Z
2022-03-24T19:29:36.000Z
tests/models/validators/v2_1_2/jsd_4ca2db1143ebb5d7.py
oboehmer/dnacentersdk
25c4e99900640deee91a56aa886874d9cb0ca960
[ "MIT" ]
18
2019-09-09T11:07:21.000Z
2022-03-25T08:49:59.000Z
# -*- coding: utf-8 -*- """Cisco DNA Center Delete SP Profile data model. Copyright (c) 2019-2021 Cisco Systems. 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 wit...
32.363636
78
0.614366