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
06e18cf5697a829f771dde0f046db8abd87f6db9
1,922
py
Python
py/plot_dustwapogee.py
jobovy/apogee-maps
0316e95bdf9b85f3f4b758e8e67dc197d228288f
[ "BSD-3-Clause" ]
1
2020-06-28T14:22:20.000Z
2020-06-28T14:22:20.000Z
py/plot_dustwapogee.py
jobovy/apogee-maps
0316e95bdf9b85f3f4b758e8e67dc197d228288f
[ "BSD-3-Clause" ]
null
null
null
py/plot_dustwapogee.py
jobovy/apogee-maps
0316e95bdf9b85f3f4b758e8e67dc197d228288f
[ "BSD-3-Clause" ]
3
2015-10-05T21:59:32.000Z
2017-02-03T11:53:45.000Z
############################################################################### # plot_dustwapogee: plot the dust-map at 5 kpc with the APOGEE fields in the # sample overlayed ############################################################################### import sys import numpy import healpy import ...
39.22449
79
0.549428
4df76d9d16ebef4879463d98f98dc3aad5226176
567
py
Python
zvo_app/migrations/0009_auto_20210215_0221.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
1
2021-02-15T08:18:35.000Z
2021-02-15T08:18:35.000Z
zvo_app/migrations/0009_auto_20210215_0221.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
null
null
null
zvo_app/migrations/0009_auto_20210215_0221.py
relativelyIntuitive/ZeeboVO
498f538f2e47b15e129502eebe729b673e308086
[ "BSD-Source-Code" ]
null
null
null
# Generated by Django 3.1.5 on 2021-02-15 02:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('zvo_app', '0008_auto_20210206_2354'), ] operations = [ migrations.RenameField( model_name='video', old_name='file', ...
22.68
68
0.557319
7aff85be10990abde551cbc4bb8adc9dcf095ef6
8,832
py
Python
bundle/calamares/src/libcalamares/locale/cldr-extractor.py
ehalferty/garchinstall
29185f13a53d6bef0983349f29856a349e753d0a
[ "BSD-2-Clause" ]
null
null
null
bundle/calamares/src/libcalamares/locale/cldr-extractor.py
ehalferty/garchinstall
29185f13a53d6bef0983349f29856a349e753d0a
[ "BSD-2-Clause" ]
null
null
null
bundle/calamares/src/libcalamares/locale/cldr-extractor.py
ehalferty/garchinstall
29185f13a53d6bef0983349f29856a349e753d0a
[ "BSD-2-Clause" ]
null
null
null
#! /usr/bin/env python3 # # === This file is part of Calamares - <https://calamares.io> === # # SPDX-FileCopyrightText: 2019 Adriaan de Groot <groot@kde.org> # SPDX-License-Identifier: BSD-2-Clause # """ Python3 script to scrape some data out of ICU CLDR supplemental data. To use this script, you must have downlo...
32.470588
130
0.629189
60f36fd233f12b99e64684081d7a7ba9722c8402
10,221
py
Python
egs/aishell/asr/simple_v1/mmi_bigram_decode.py
hegc/snowfall
6905440ce55741edbd8dd1ae53cc9565406b75c5
[ "Apache-2.0" ]
null
null
null
egs/aishell/asr/simple_v1/mmi_bigram_decode.py
hegc/snowfall
6905440ce55741edbd8dd1ae53cc9565406b75c5
[ "Apache-2.0" ]
null
null
null
egs/aishell/asr/simple_v1/mmi_bigram_decode.py
hegc/snowfall
6905440ce55741edbd8dd1ae53cc9565406b75c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu) # 2021 Pingfeng Luo # Apache 2.0 import k2 import logging import numpy as np import os import torch from k2 import Fsa, SymbolTable from kaldialign import edit_distance from pathlib import Path from typ...
37.43956
114
0.626553
b02a0537e785a7daa8a82fff86b0718e41e9af26
7,389
py
Python
classrad/maps/utils.py
piotrekwoznicki/Radiomics
2184292b48b25588f5df28c79fa471819243d02f
[ "Apache-2.0" ]
1
2021-10-16T12:43:21.000Z
2021-10-16T12:43:21.000Z
classrad/maps/utils.py
piotrekwoznicki/Radiomics
2184292b48b25588f5df28c79fa471819243d02f
[ "Apache-2.0" ]
null
null
null
classrad/maps/utils.py
piotrekwoznicki/Radiomics
2184292b48b25588f5df28c79fa471819243d02f
[ "Apache-2.0" ]
null
null
null
import itertools import logging import os from collections import defaultdict from os.path import join from typing import Callable, List, Optional, Sequence, Tuple, Union import matplotlib.pyplot as plt import numpy as np from radiomics import featureextractor from SimpleITK import GetImageFromArray logging.getLogger...
38.087629
116
0.604818
8d1741c21a207b1fc67e0972136482fad5eaa31d
321
py
Python
aiogram_oop_framework/views/content_types_views/any_content_type_message.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/views/content_types_views/any_content_type_message.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
aiogram_oop_framework/views/content_types_views/any_content_type_message.py
drforse/aiogram_oop_framework
ee56b6a0893300fea43f01c2f4c4ea8b5fae1424
[ "MIT" ]
null
null
null
from aiogram.types import ContentType from .base import BaseContentTypesView class AnyContentTypeMessageView(BaseContentTypesView): """Same as :class:`aiogram_oop_framework.views.content_types_views.animation.AnimationView`, but content_types defaults to ContentType.all()""" content_types = ContentType.all()...
35.666667
147
0.816199
eaef614f164ae5877dda5cab1eabb6d36208fd1b
3,920
py
Python
sleuth/tests/test_services.py
trussworks/aws-iam-sleuth
8a3e570ca72331b032124edb22bcf1e1688251ee
[ "Apache-2.0" ]
6
2020-05-25T18:58:39.000Z
2021-11-22T21:36:56.000Z
sleuth/tests/test_services.py
trussworks/terraform-aws-iam-sleuth
5c35c238e256c8cbf9f43d86a37114e4e1c3e7b3
[ "Apache-2.0" ]
58
2020-05-14T19:30:10.000Z
2021-09-15T21:15:14.000Z
sleuth/tests/test_services.py
trussworks/aws-iam-sleuth
8a3e570ca72331b032124edb22bcf1e1688251ee
[ "Apache-2.0" ]
3
2020-05-19T20:30:32.000Z
2021-08-18T06:15:45.000Z
from freezegun import freeze_time import datetime import pytest from sleuth.services import format_slack_id, prepare_sns_message, prepare_slack_message from sleuth.auditor import Key, User created = datetime.datetime(2019, 1, 1, tzinfo=datetime.timezone.utc) lastused = created = datetime.datetime(2019, 1, 3, tzinfo=...
35.315315
127
0.64949
66f13a3f18ff6383c2b237abe6b75ff83301cedb
1,797
py
Python
datapackage_pipelines_plus_plus/base_processors/base_dump.py
OriHoch/datapackage-pipelines-plus-plus
99031da1e115eff4d63c7ce65bd3289966ea742a
[ "MIT" ]
4
2017-08-17T14:35:12.000Z
2018-08-29T13:27:01.000Z
datapackage_pipelines_plus_plus/base_processors/base_dump.py
OriHoch/datapackage-pipelines-plus-plus
99031da1e115eff4d63c7ce65bd3289966ea742a
[ "MIT" ]
null
null
null
datapackage_pipelines_plus_plus/base_processors/base_dump.py
OriHoch/datapackage-pipelines-plus-plus
99031da1e115eff4d63c7ce65bd3289966ea742a
[ "MIT" ]
null
null
null
from datapackage_pipelines_plus_plus.base_processors.filter_resource import FilterResourceBaseProcessor import logging DEFAULT_COMMIT_EVERY = 1000 class BaseDumpProcessor(FilterResourceBaseProcessor): def _commit(self, rows): raise NotImplementedError() @property def _log_prefix(self): ...
36.673469
104
0.635504
b02a4be47d411019391879cb25d21cc255f7746c
2,683
py
Python
avionics/firmware/monitors/generate_ltc4151_monitor.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1,178
2020-09-10T17:15:42.000Z
2022-03-31T14:59:35.000Z
avionics/firmware/monitors/generate_ltc4151_monitor.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
1
2020-05-22T05:22:35.000Z
2020-05-22T05:22:35.000Z
avionics/firmware/monitors/generate_ltc4151_monitor.py
leozz37/makani
c94d5c2b600b98002f932e80a313a06b9285cc1b
[ "Apache-2.0" ]
107
2020-09-10T17:29:30.000Z
2022-03-18T09:00:14.000Z
# Copyright 2020 Makani Technologies LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.5375
77
0.709281
b35d79d1945c2917f59d323477462078a6a967ef
2,858
py
Python
model/slim/eval_image_classifier_mine.py
jmftrindade/miniplaces_challenge
9325e814571000633e233433006b4e913194a34e
[ "MIT" ]
2
2019-11-18T18:31:27.000Z
2020-02-27T09:14:02.000Z
model/slim/eval_image_classifier_mine.py
jmftrindade/miniplaces_challenge
9325e814571000633e233433006b4e913194a34e
[ "MIT" ]
null
null
null
model/slim/eval_image_classifier_mine.py
jmftrindade/miniplaces_challenge
9325e814571000633e233433006b4e913194a34e
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.python.training import saver as tf_saver from nets import nets_factory import cv2 import numpy as np import nets import json from preprocessing import preprocessing_factory from nets import nets_factory from google.protobuf.json_format import MessageToJson slim = tf.contrib.sli...
40.828571
163
0.589573
438ec95289152e58dc108b68fe05576ec94f7a37
1,868
py
Python
setup.py
santhoshse7en/IMDb
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
1
2019-09-09T08:46:11.000Z
2019-09-09T08:46:11.000Z
setup.py
santhoshse7en/imdby
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
13
2019-05-24T05:17:03.000Z
2019-05-29T12:19:18.000Z
setup.py
santhoshse7en/imdby
c76cfa3fc9a1326587707dbab3800d0e9a32d045
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/santhoshse7en/imdby """ # -*- encoding: utf-8 -*- from __future__ import absolute_import, print_function # Always prefer setuptools over distutils from distutils.core import setup fro...
42.454545
91
0.616167
b8c12777f1736c5e51db03c906f6e8b95bddf6be
6,715
py
Python
tests/training/test_ubuntu_corpus_training.py
kooktao/chatterBotMaster
79d809ee7c227a976dedf1c7fa0e665d30eae606
[ "BSD-3-Clause" ]
1
2021-06-14T11:39:34.000Z
2021-06-14T11:39:34.000Z
tests/training/test_ubuntu_corpus_training.py
kooktao/chatterBotMaster
79d809ee7c227a976dedf1c7fa0e665d30eae606
[ "BSD-3-Clause" ]
null
null
null
tests/training/test_ubuntu_corpus_training.py
kooktao/chatterBotMaster
79d809ee7c227a976dedf1c7fa0e665d30eae606
[ "BSD-3-Clause" ]
1
2020-06-26T13:36:41.000Z
2020-06-26T13:36:41.000Z
from unittest.mock import Mock from io import BytesIO import tarfile import os from tests.base_case import ChatBotTestCase from chatterbot.trainers import UbuntuCorpusTrainer class UbuntuCorpusTrainerTestCase(ChatBotTestCase): """ Test the Ubuntu Corpus trainer class. """ def setUp(self): sup...
31.232558
89
0.635592
2b0745bccccc3052060773154d017d4109aa0de4
5,059
py
Python
venv/lib/python3.7/site-packages/google/api/monitoring_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
venv/lib/python3.7/site-packages/google/api/monitoring_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
21
2020-03-01T18:21:09.000Z
2020-05-26T14:49:08.000Z
venv/lib/python3.7/site-packages/google/api/monitoring_pb2.py
nicholasadamou/StockBird
257396479667863d4ee122ea46adb86087c9aa78
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/api/monitoring.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflec...
39.523438
600
0.779798
ab8c36b04b6e61baa565f0fdf41519ceddc0889d
5,829
py
Python
src/loss/__init__.py
XenonLamb/CSConvNet
b8fbf016789e54805b1ac87925e2cc8c00e8e3a6
[ "MIT" ]
1
2021-08-19T03:23:31.000Z
2021-08-19T03:23:31.000Z
src/loss/__init__.py
XenonLamb/CSConvNet
b8fbf016789e54805b1ac87925e2cc8c00e8e3a6
[ "MIT" ]
1
2021-05-17T09:06:00.000Z
2021-07-12T15:16:59.000Z
src/loss/__init__.py
XenonLamb/CSConvNet
b8fbf016789e54805b1ac87925e2cc8c00e8e3a6
[ "MIT" ]
2
2021-03-03T12:52:35.000Z
2021-07-13T11:47:45.000Z
import os from importlib import import_module import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class Loss(nn.modules.loss._Loss): def __init__(self, args, ckp): super(Loss, self).__init__() ...
33.693642
112
0.528736
08d725b9e699b7689b9633a9e29e67ddae697703
2,565
py
Python
bot.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
null
null
null
bot.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
1
2021-02-08T20:48:06.000Z
2021-02-08T20:48:06.000Z
bot.py
Sendouc/lohi-python
7cc41f3fcaafe1776f9416112579fc068aad8d81
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import traceback from cogs.utils import config, ids, api from cogs.utils.on_message import on_competitive_feed_post INITIAL_EXTENSIONS = ( "cogs.splatoon", "cogs.misc", "cogs.admin", "cogs.tourney", "cogs.sniping", ) bot = commands.Bot(command_prefi...
25.909091
94
0.670175
73bea842ca6a84faf8f33909181370d5a04c3f38
102
py
Python
output/models/ms_data/element/elem_z019_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/element/elem_z019_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/element/elem_z019_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.element.elem_z019_xsd.elem_z019 import Series __all__ = [ "Series", ]
17
72
0.754902
c7721e99390e4fa44876c29b51654a0de8274f3a
3,017
py
Python
examples/ex_start_guest.py
crossbario/crossbar-fabric-public
68aad6bcf86ebf5b15dd296db3a152227540b805
[ "MIT" ]
3
2017-12-19T11:22:02.000Z
2018-07-17T11:06:19.000Z
examples/ex_start_guest.py
crossbario/crossbar-fabric-public
68aad6bcf86ebf5b15dd296db3a152227540b805
[ "MIT" ]
23
2017-08-22T20:26:31.000Z
2018-02-09T19:58:25.000Z
examples/ex_start_guest.py
crossbario/crossbar-fabric-public
68aad6bcf86ebf5b15dd296db3a152227540b805
[ "MIT" ]
3
2017-08-22T19:01:11.000Z
2021-05-15T18:15:18.000Z
# Copyright (c) Crossbar.io Technologies GmbH, licensed under The MIT License (MIT) import asyncio from cbsh import client # the ID of the guest worker we will start (on each node) GUEST_ID = u'sleeper1' # the config of the guest worker we will start GUEST_CONFIG = { u'type': u'guest', u'executable': u'/bin...
33.522222
119
0.614186
f4acc8823ffebf87345861846ae37268355c428a
5,311
py
Python
flowserv/model/parameter/enum.py
anrunw/flowserv-core-1
7116b7060aa68ab36bf08e6393be166dc5db955f
[ "MIT" ]
1
2020-02-13T18:57:53.000Z
2020-02-13T18:57:53.000Z
flowserv/model/parameter/enum.py
anrunw/flowserv-core-1
7116b7060aa68ab36bf08e6393be166dc5db955f
[ "MIT" ]
46
2020-02-14T22:14:33.000Z
2021-06-10T21:17:49.000Z
flowserv/model/parameter/enum.py
anrunw/flowserv-core-1
7116b7060aa68ab36bf08e6393be166dc5db955f
[ "MIT" ]
3
2021-05-06T15:22:29.000Z
2021-06-01T16:19:36.000Z
# This file is part of the Reproducible and Reusable Data Analysis Workflow # Server (flowServ). # # Copyright (C) 2019-2021 NYU. # # flowServ is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Declarations for enumeration parameter va...
31.05848
86
0.583694
d29a7c0f32b5ad9ef97cd8e57ea3cfec851d41e4
11,413
py
Python
ansys/dpf/core/nodes.py
pscedu/DPF-Core
05816d1d4940aacc2b51055ab67b8f4c31fc1ca3
[ "MIT" ]
null
null
null
ansys/dpf/core/nodes.py
pscedu/DPF-Core
05816d1d4940aacc2b51055ab67b8f4c31fc1ca3
[ "MIT" ]
null
null
null
ansys/dpf/core/nodes.py
pscedu/DPF-Core
05816d1d4940aacc2b51055ab67b8f4c31fc1ca3
[ "MIT" ]
null
null
null
""" Nodes ===== """ import numpy as np from ansys import dpf from ansys.dpf.core import field, property_field from ansys.grpc.dpf import meshed_region_pb2 from ansys.dpf.core.errors import protect_grpc class Node: """Encapsulates all properties of a node in the mesh. A node is created from the :...
28.820707
97
0.586699
66a029766849920edd1c8a9b98cc74e3509abe9f
3,525
py
Python
heap/heap.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
7
2015-11-15T05:34:33.000Z
2021-04-29T00:39:08.000Z
heap/heap.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
null
null
null
heap/heap.py
free-free/Algorithm
174b6bc7a73f5ec1393149d238fc4496b2baedaa
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import numpy as np class MinHeap(object): def __init__(self, sz, data): self.cnt = len(data) self.sz = sz self.heap = [0] * (self.sz + 1) self.heap[1 : self.cnt + 1] = data self.build_heap() def build_heap(self): last_non_leaf = self...
27.115385
82
0.484823
f028d059ad46581a6a2ae3dab87779287b9bcbfe
3,075
py
Python
tests/test_draw/test_logo.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
tests/test_draw/test_logo.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
tests/test_draw/test_logo.py
aberki1234/cogent3
af98b248a999bfeefd4cfed6bd59b4f30442e2d4
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase, main from cogent3.draw.letter import get_character from cogent3.draw.logo import _char_hts_as_lists, get_logo from cogent3.util.dict_array import DictArrayTemplate __author__ = "Gavin Huttley" __copyright__ = "Copyright 2007-2012, The Cogent Project" __credits__ = ["Gavin Huttley"] __l...
30.75
73
0.517398
376eb0513337d518ded6457b8822b51a8d7a1d6f
792
py
Python
src/astrolib/solar_system/orientation_models.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/orientation_models.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
src/astrolib/solar_system/orientation_models.py
space-geek/integrationutils
384375702a6c053aa2e5aaca6b9d5c43d86a16ad
[ "MIT" ]
null
null
null
from astrolib.attitude_elements import Quaternion from astrolib.base_objects import Matrix from astrolib.base_objects import TimeSpan from astrolib.base_objects import Vector3 class CelestialObjectOrientationModel: def __init__(self): pass def get_orientation_at_epoch(self, t: TimeSpan) -> Quaternio...
28.285714
71
0.757576
e952da46d0870a5c78769982ea6bcf8972cdd2d2
860
py
Python
plotly/validators/scatterpolar/unselected/_marker.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2018-07-16T01:51:47.000Z
2018-07-16T01:51:47.000Z
plotly/validators/scatterpolar/unselected/_marker.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatterpolar/unselected/_marker.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__( self, plotly_name='marker', parent_name='scatterpolar.unselected', **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly...
30.714286
70
0.577907
a11326ff098d5bee2ee53c4ae6079b7561ad433e
14,384
py
Python
telegramtui/src/messageBox.py
painor/TelegramTUI
cd2657f41bf95bcf025aa3a9a9a407ea4f1e0a5d
[ "MIT" ]
null
null
null
telegramtui/src/messageBox.py
painor/TelegramTUI
cd2657f41bf95bcf025aa3a9a9a407ea4f1e0a5d
[ "MIT" ]
null
null
null
telegramtui/src/messageBox.py
painor/TelegramTUI
cd2657f41bf95bcf025aa3a9a9a407ea4f1e0a5d
[ "MIT" ]
null
null
null
import textwrap import os.path from telegramtui.src import npyscreen from telegramtui.src.telegramApi import client import aalib from PIL import Image import datetime class MessageBox(npyscreen.BoxTitle): # like a __init__ def create(self, **kwargs): self.emoji = kwargs['emoji'] if 'emoji' in kwargs ...
42.05848
128
0.541365
8000d765d152ba19f2616a8b6ce05a406424d19d
7,808
py
Python
dockers/skylab/snss2-build-indices/add-introns-to-gtf.py
mh11/warp
f1472d99503cfcb5df58e3eebf2c4d6ac2aa43fe
[ "BSD-3-Clause" ]
96
2020-06-16T14:31:18.000Z
2022-03-28T05:13:24.000Z
dockers/skylab/snss2-build-indices/add-introns-to-gtf.py
mh11/warp
f1472d99503cfcb5df58e3eebf2c4d6ac2aa43fe
[ "BSD-3-Clause" ]
555
2020-07-14T17:24:07.000Z
2022-03-31T18:08:33.000Z
dockers/skylab/snss2-build-indices/add-introns-to-gtf.py
mh11/warp
f1472d99503cfcb5df58e3eebf2c4d6ac2aa43fe
[ "BSD-3-Clause" ]
38
2020-07-29T21:04:59.000Z
2022-03-15T09:28:31.000Z
#!/usr/bin/env python3 import argparse import gzip import re from bisect import bisect_left, bisect_right def get_feature(line, feature): features = re.sub('"', "", line.strip().split("\t")[8].strip()) features_dic = {x.split()[0]: x.split()[1] for x in features.split(";") if x} if feature in features_di...
41.094737
106
0.504611
6f5e322ff17289df44cb3bd8c36d8a5fbe31b763
3,596
py
Python
app/recipe/views.py
pmakaruk/recipe-app
078818c04d97545e9bdd2889579328fc0f0f9651
[ "MIT" ]
null
null
null
app/recipe/views.py
pmakaruk/recipe-app
078818c04d97545e9bdd2889579328fc0f0f9651
[ "MIT" ]
null
null
null
app/recipe/views.py
pmakaruk/recipe-app
078818c04d97545e9bdd2889579328fc0f0f9651
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework import viewsets, mixins, status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from core.models import Tag, Ingredient, Recipe from recipe...
33.924528
74
0.663237
ad6a46898fe381dd4c5acd1af70502da133fdcfc
496
py
Python
kit/sorting.py
smohamadabedy/python_genetic
199ef6ce631eb758ea8193f91b434a573e6eebfd
[ "MIT" ]
null
null
null
kit/sorting.py
smohamadabedy/python_genetic
199ef6ce631eb758ea8193f91b434a573e6eebfd
[ "MIT" ]
null
null
null
kit/sorting.py
smohamadabedy/python_genetic
199ef6ce631eb758ea8193f91b434a573e6eebfd
[ "MIT" ]
null
null
null
from kit.dependency_file import * class sorting: def buble_sort(self,pop): length = pop.shape[0]; while (1): c = 0 for x in range(0,length-1): xx1 = pop[x]; xx2 = pop[x+1]; if(xx1["evaluation"] > xx2["evaluation"]):...
26.105263
59
0.364919
b77e6b3cb94b8a1f7ad334dbc4101f526f2971b5
98
py
Python
dispatch_unit/clients/messenger/enums.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
dispatch_unit/clients/messenger/enums.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
dispatch_unit/clients/messenger/enums.py
shashank-iitj/traibot
30676413e30a0f7dc651f1918b33892728a01c1b
[ "Apache-2.0" ]
null
null
null
class ResponseType: TEXT = 'text' BUTTON = 'button' PHOTO = 'photo' CARD = 'card'
16.333333
21
0.561224
081a861023161dae5a66106dd501c1dc14945f4b
1,499
bzl
Python
defs.bzl
nickbreen/bazel_pex
b9e63f8af4ea8c990a1feb130d413746e93e449d
[ "Unlicense" ]
null
null
null
defs.bzl
nickbreen/bazel_pex
b9e63f8af4ea8c990a1feb130d413746e93e449d
[ "Unlicense" ]
null
null
null
defs.bzl
nickbreen/bazel_pex
b9e63f8af4ea8c990a1feb130d413746e93e449d
[ "Unlicense" ]
null
null
null
def _pex_binary(ctx): repos = depset(transitive = [dep[PyInfo].imports for dep in ctx.attr.deps]) inputs = depset(transitive = [dep[PyInfo].transitive_sources for dep in ctx.attr.deps]) print(repos) print(inputs) # imports are prefixed with the workspace_name :shrug: # so that we can avoid hav...
37.475
95
0.605737
f9c4c3968f217dea46c131d3ed83533c22b69ae2
2,423
py
Python
isc_dhcp_leases/test_lease.py
cacoyle/python-isc-dhcp-leases
dc513ea124565d77a7a5bde742ec0a8ffb877fd4
[ "MIT" ]
null
null
null
isc_dhcp_leases/test_lease.py
cacoyle/python-isc-dhcp-leases
dc513ea124565d77a7a5bde742ec0a8ffb877fd4
[ "MIT" ]
null
null
null
isc_dhcp_leases/test_lease.py
cacoyle/python-isc-dhcp-leases
dc513ea124565d77a7a5bde742ec0a8ffb877fd4
[ "MIT" ]
null
null
null
from unittest import TestCase from isc_dhcp_leases.iscdhcpleases import Lease from freezegun import freeze_time from datetime import datetime __author__ = 'Martijn Braam <martijn@brixit.nl>' class TestLease(TestCase): def setUp(self): self.lease_data = { 'starts': '2 2013/12/10 12:57:04', ...
37.276923
107
0.607099
41d790dd1fe2997ad7db97778b3c0a6e8ea7dc6f
48,622
py
Python
idaes/generic_models/unit_models/tests/test_mixer.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
112
2019-02-11T23:16:36.000Z
2022-03-23T20:59:57.000Z
idaes/generic_models/unit_models/tests/test_mixer.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
621
2019-03-01T14:44:12.000Z
2022-03-31T19:49:25.000Z
idaes/generic_models/unit_models/tests/test_mixer.py
carldlaird/idaes-pse
cc7a32ca9fa788f483fa8ef85f3d1186ef4a596f
[ "RSA-MD" ]
154
2019-02-01T23:46:33.000Z
2022-03-23T15:07:10.000Z
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021 # by the softwar...
40.283347
83
0.643289
6bb4dba0a63c6962dccaceac36a6fc5370a11301
23,139
py
Python
src/markov/evaluation_worker.py
aws-deepracer/aws-deepracer-simulation-training-notebook
d46be9d57ab1930a71f5e13419dcbed42cc4d78b
[ "Apache-2.0" ]
3
2021-07-25T15:10:35.000Z
2021-10-30T02:35:33.000Z
src/markov/evaluation_worker.py
aws-deepracer/aws-deepracer-simulation-training-notebook
d46be9d57ab1930a71f5e13419dcbed42cc4d78b
[ "Apache-2.0" ]
null
null
null
src/markov/evaluation_worker.py
aws-deepracer/aws-deepracer-simulation-training-notebook
d46be9d57ab1930a71f5e13419dcbed42cc4d78b
[ "Apache-2.0" ]
3
2021-07-25T15:16:06.000Z
2022-03-28T14:13:22.000Z
'''This module is responsible for launching evaluation jobs''' import argparse import json import logging import os import time from threading import Thread import rospy from rl_coach.base_parameters import TaskParameters from rl_coach.core_types import EnvironmentSteps from rl_coach.data_stores.data_store import Sync...
54.316901
115
0.656078
65a8332958eabf5696b4712bf38b2b0edb50aa73
36,271
py
Python
jp.atcoder/abc032/abc032_c/15389545.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc032/abc032_c/15389545.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc032/abc032_c/15389545.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import math import string import sys from bisect import bisect_left as bi_l from bisect import bisect_right as bi_r from collections import Counter, defaultdict, deque # from numba import jit from heapq import heappop, heappush from itertools import combinations, product import numpy as np from scipy impo...
27.37434
80
0.380083
11c5fe159a43e6259932de544cf972470ee7fe78
34,835
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/lns_a4b3be663ffb1dfb1f114cda5dbbcd4e.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/lns_a4b3be663ffb1dfb1f114cda5dbbcd4e.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/lns_a4b3be663ffb1dfb1f114cda5dbbcd4e.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
43.81761
664
0.659423
1cc9314a0ce393496bf76c85ee61a148c0af9ea2
732
py
Python
HunterCelery/model/__init__.py
tt9133github/hunter
7a1be4ae1fbbadff291742f513d47f0921159648
[ "Apache-2.0" ]
322
2020-01-10T09:08:31.000Z
2022-01-21T06:43:24.000Z
HunterCelery/model/__init__.py
tt9133github/hunter
7a1be4ae1fbbadff291742f513d47f0921159648
[ "Apache-2.0" ]
27
2020-01-10T10:12:21.000Z
2022-03-08T23:38:23.000Z
HunterCelery/model/__init__.py
tt9133github/hunter
7a1be4ae1fbbadff291742f513d47f0921159648
[ "Apache-2.0" ]
128
2020-01-10T09:08:14.000Z
2022-03-18T06:56:01.000Z
#!/ usr/bin/env # coding=utf-8 # # Copyright 2019 ztosec & https://www.zto.com/ # # 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 r...
33.272727
80
0.729508
c5348fd45fc348508eaa7bac2462058b450ec5da
3,628
py
Python
Week 1/id_385/LeetCode_641_385.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 1/id_385/LeetCode_641_385.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 1/id_385/LeetCode_641_385.py
theshaodi/algorithm004-05
cac0cd3bb1211d50936234c08f6ece38677e55cf
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- """ package.module ~~~~~~~~~~~~~~ LeetCode 第641题: 设计循环双端队列 :copyright: (c) 2019-10-18 by liuyajing. :license: OPS, see LICENSE_FILE for more details. """ # 设计实现双端队列。 # 你的实现需要支持以下操作: # # # MyCircularDeque(k):构造函数,双端队列的大小为k。 # insertFront():将一个元素添加到双端队列头部。 如果操作成功返回 true。 ...
26.100719
92
0.594818
02c597e11e4a12162f1000288349cd65a176c6c5
20
py
Python
config-template/{{cookiecutter.location}}/{{cookiecutter.project_slug}}/__init__.py
tolulomo/whyis
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
[ "Apache-2.0" ]
31
2018-05-30T02:41:23.000Z
2021-10-17T01:25:20.000Z
config-template/{{cookiecutter.location}}/{{cookiecutter.project_slug}}/__init__.py
tolulomo/whyis
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
[ "Apache-2.0" ]
115
2018-04-07T00:59:11.000Z
2022-03-02T03:06:45.000Z
config-template/{{cookiecutter.location}}/{{cookiecutter.project_slug}}/__init__.py
tolulomo/whyis
eb50ab3301eb7efd27a1a3f6fb2305dedd910397
[ "Apache-2.0" ]
25
2018-04-07T00:49:55.000Z
2021-09-28T14:29:18.000Z
from . import agent
10
19
0.75
37c2e5c35df8098ac58d1de8a66edd555dd897a8
10,210
py
Python
my_drawing/my_drawing.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
my_drawing/my_drawing.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
my_drawing/my_drawing.py
WenJuiHuang/MyEricProject
e69c791c4a6b4df0013bcb7b7f400f4fba9e3711
[ "MIT" ]
null
null
null
""" File: Name: ---------------------- TODO: """ from campy.graphics.gobjects import GOval, GRect, GPolygon, GLine from campy.graphics.gwindow import GWindow window = GWindow(width=300, height=300) def main(): """ TODO: """ face1 = GPolygon() face1.add_vertex((122, 52)) face1.add_vertex((1...
26.045918
65
0.623115
41f45f25c8897b0bd3c25446866093fe70675587
4,424
py
Python
systemcheck/gui/models/settings_model.py
team-fasel/SystemCheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
2
2017-07-07T13:57:52.000Z
2020-12-11T12:40:55.000Z
systemcheck/gui/models/settings_model.py
team-fasel/systemcheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
1
2017-02-23T19:30:12.000Z
2017-02-28T19:15:44.000Z
systemcheck/gui/models/settings_model.py
team-fasel/systemcheck
cdc18ee0c8bab67f049228d28d03578babfafb3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Generic UI Models """ # define authorship information __authors__ = ['Lars Fasel'] __author__ = ','.join(__authors__) __credits__ = [] __copyright__ = 'Copyright (c) 2017' __license__ = 'GNU AGPLv3' import logging from typing import Any from sqlalchemy_utils.functions import get_type ...
29.493333
130
0.62613
7941d736623b035efc0ec533604ca0753310c982
2,874
py
Python
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
transform/stacked_autoencoder_tf.py
kashefy/transform
bb0855d06c878b5015810bbf6e1f9c7b6b1414a3
[ "BSD-2-Clause" ]
null
null
null
''' Created on May 26, 2017 @author: kashefy ''' from nideep.nets.abstract_net_tf import AbstractNetTF from autoencoder_tf import Autoencoder as AE class StackedAutoencoder(AbstractNetTF): ''' classdocs ''' def _init_learning_params_scoped(self): pass def _init_ops(self): pass...
26.127273
70
0.533403
d3f27ca984ef190954a3d0b4e426d55c1fee5820
17,718
py
Python
management/lifecycle.py
hyejang/qca-dataset-submission
b88fc9cc67072f295224df9165f565a0934c6765
[ "BSD-3-Clause" ]
null
null
null
management/lifecycle.py
hyejang/qca-dataset-submission
b88fc9cc67072f295224df9165f565a0934c6765
[ "BSD-3-Clause" ]
null
null
null
management/lifecycle.py
hyejang/qca-dataset-submission
b88fc9cc67072f295224df9165f565a0934c6765
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os import json import traceback from collections import defaultdict from datetime import datetime from github import Github REPO_NAME = 'openforcefield/qca-dataset-submission' DATASET_FILENAME = 'dataset.json' class DataSet: """A dataset submitted to QCArchive. A dataset h...
31.193662
109
0.614065
9c4e35ba80337006d81cfb39223f7f52d34daf31
79,387
py
Python
sdk/python/pulumi_azure_native/botservice/latest/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_native/botservice/latest/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_native/botservice/latest/_inputs.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.32346
178
0.652827
56942e90a570df4c3a93ae637328c385654ad683
7,763
py
Python
utils/nlp.py
dataml-cn/multiwoz
1d80c64cfe2dd8af301ff2bf3e36b7bfa2789b2b
[ "MIT" ]
null
null
null
utils/nlp.py
dataml-cn/multiwoz
1d80c64cfe2dd8af301ff2bf3e36b7bfa2789b2b
[ "MIT" ]
null
null
null
utils/nlp.py
dataml-cn/multiwoz
1d80c64cfe2dd8af301ff2bf3e36b7bfa2789b2b
[ "MIT" ]
null
null
null
import math import re from collections import Counter from nltk.util import ngrams timepat = re.compile("\d{1,2}[:]\d{1,2}") pricepat = re.compile("\d{1,3}[.]\d{1,2}") fin = open('utils/mapping.pair') replacements = [] for line in fin.readlines(): tok_from, tok_to = line.replace('\n', '').split('\t') replac...
31.052
120
0.482545
89c55f31f3b1cadebbf2927b616c35c5859c4731
5,945
py
Python
test/functional/interface_zmq.py
azsxcv11060/bitcoin
086dae9878680608e189b9aac2a605254d3b4395
[ "MIT" ]
762
2015-03-24T21:36:51.000Z
2022-03-13T03:00:42.000Z
test/functional/interface_zmq.py
azsxcv11060/bitcoin
086dae9878680608e189b9aac2a605254d3b4395
[ "MIT" ]
1,039
2015-03-25T23:58:32.000Z
2022-03-30T00:41:16.000Z
test/functional/interface_zmq.py
azsxcv11060/bitcoin
086dae9878680608e189b9aac2a605254d3b4395
[ "MIT" ]
440
2017-01-01T20:13:20.000Z
2022-02-22T04:18:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the ZMQ notification interface.""" import struct from test_framework.address import ADDRESS_BCRT1...
36.925466
126
0.634146
31eb14277707e5887fc4027906ee43cc89da2a46
131
py
Python
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
source/constant.py
gilbertHuang/CG-diskusage
be448bb76419b43fb43c790836f9182a7773f8ff
[ "MIT" ]
null
null
null
size_unit = ['b', 'kb', 'Mb', 'Gb', 'Tb'] size_diff = 1000 size_round = 2 sort_size_name = 'size' sort_children_name = 'children'
18.714286
41
0.656489
78a153f56bc494878003e2aff658f898f8746172
15,898
py
Python
spyderlib/utils/icon_manager.py
coolspiderghy/spyder
03888fd423680a23c0b0584e5c2b95e24cf81443
[ "MIT" ]
2
2016-01-23T11:52:24.000Z
2021-04-27T03:52:25.000Z
spyderlib/utils/icon_manager.py
coolspiderghy/spyder
03888fd423680a23c0b0584e5c2b95e24cf81443
[ "MIT" ]
null
null
null
spyderlib/utils/icon_manager.py
coolspiderghy/spyder
03888fd423680a23c0b0584e5c2b95e24cf81443
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © 2009- The Spyder Development Team # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import os.path as osp from spyderlib.qt.QtGui import QIcon, QWidget, QStyle from spyderlib.config.base import get_image_path from spyderlib.config.main imp...
60.448669
224
0.437665
508dcf58297d06a8abcca7554ed2880a974de620
29,442
py
Python
tests/unit/orchestrate/pods/config/test_k8s_pod_config.py
varghesejose2020/jina
b3e90cd6a4071a96f7127e71676dcb224d0663a8
[ "Apache-2.0" ]
1
2022-01-31T02:54:55.000Z
2022-01-31T02:54:55.000Z
tests/unit/orchestrate/pods/config/test_k8s_pod_config.py
varghesejose2020/jina
b3e90cd6a4071a96f7127e71676dcb224d0663a8
[ "Apache-2.0" ]
null
null
null
tests/unit/orchestrate/pods/config/test_k8s_pod_config.py
varghesejose2020/jina
b3e90cd6a4071a96f7127e71676dcb224d0663a8
[ "Apache-2.0" ]
null
null
null
from typing import Union, Dict, Tuple import json import pytest from jina.helper import Namespace from jina.hubble import HubExecutor from jina.hubble.hubio import HubIO from jina.parsers import set_pod_parser, set_gateway_parser from jina.serve.networking import K8sGrpcConnectionPool from jina.orchestrate.pods.config...
36.483271
94
0.618674
bf2f2b0882cd35bf1aa92d91a61f7b10eabe926c
4,930
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_express_route_service_providers_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_express_route_service_providers_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations_async/_express_route_service_providers_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
46.509434
135
0.669777
083ecc7db0fba128dafa140f57205cac4cacc02b
1,187
py
Python
watchmen/pipeline/core/dependency/model/factor.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
125
2021-03-13T07:39:46.000Z
2022-02-28T03:14:17.000Z
watchmen/pipeline/core/dependency/model/factor.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
null
null
null
watchmen/pipeline/core/dependency/model/factor.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
17
2021-03-13T07:31:58.000Z
2021-05-20T09:38:02.000Z
from model.model.topic.factor import Factor from watchmen_boot.guid.snowflake import get_surrogate_key from watchmen.pipeline.core.dependency.graph.label import Label from watchmen.pipeline.core.dependency.graph.node import Node from watchmen.pipeline.core.dependency.graph.property import Property def buildFactorNod...
26.977273
69
0.652064
2cd6255efad083ed5c75ed82328ebb182900fa5e
7,282
py
Python
flash/image/segmentation/input.py
mrleu/lightning-flash
644f2b559f87b40a5b623f5260eee0cf924ea0a5
[ "Apache-2.0" ]
null
null
null
flash/image/segmentation/input.py
mrleu/lightning-flash
644f2b559f87b40a5b623f5260eee0cf924ea0a5
[ "Apache-2.0" ]
null
null
null
flash/image/segmentation/input.py
mrleu/lightning-flash
644f2b559f87b40a5b623f5260eee0cf924ea0a5
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning 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 License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
40.910112
116
0.688135
c8567f74c912d5b7672e558636e2538922812607
4,651
py
Python
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_probe_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_probe_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/application_gateway_probe_py3.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.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 ...
49.478723
342
0.666093
c1aed6caabbca76b21f0ea3d652c365b504a1f07
1,943
py
Python
tests/test_parse_absolute_url.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
7
2020-09-23T15:27:09.000Z
2022-03-20T19:31:41.000Z
tests/test_parse_absolute_url.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
160
2020-07-06T17:58:35.000Z
2022-03-30T13:06:07.000Z
tests/test_parse_absolute_url.py
nappex/freezeyt
67ead4552ae402cedfcf4ee8ec76fb8a07850724
[ "MIT" ]
10
2020-07-06T18:05:10.000Z
2022-03-12T21:20:11.000Z
import pytest from freezeyt import RelativeURLError from freezeyt.util import parse_absolute_url def test_absolute(): with pytest.raises(RelativeURLError): parse_absolute_url("/a/b/c") def test_no_scheme(): with pytest.raises(RelativeURLError): parse_absolute_url("pyladies.cz/") def test_no_...
31.33871
79
0.703037
0efe46acc6ad3daac7534e975b408d87dbb35c3f
21,473
py
Python
third_party/tests/Opentitan/util/topgen.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
156
2019-11-16T17:29:55.000Z
2022-01-21T05:41:13.000Z
third_party/tests/Opentitan/util/topgen.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
414
2021-06-11T07:22:01.000Z
2022-03-31T22:06:14.000Z
third_party/tests/Opentitan/util/topgen.py
parzival3/Surelog
cf126533ebfb2af7df321057af9e3535feb30487
[ "Apache-2.0" ]
30
2019-11-18T16:31:40.000Z
2021-12-26T01:22:51.000Z
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Top Module Generator """ import argparse import logging as log import sys from io import StringIO from pathlib import Path import hjson from mako...
36.028523
100
0.607414
e195ef092f122ac41723a4e958523064447e868d
154
py
Python
aas_core_codegen/csharp/stringification/__init__.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
5
2021-12-29T12:55:34.000Z
2022-03-01T17:57:21.000Z
aas_core_codegen/csharp/stringification/__init__.py
gillistephan/aas-core-codegen
5b89ea2ee35aecaca9a1bed7ac81d420cc560f29
[ "MIT" ]
10
2021-12-29T02:15:55.000Z
2022-03-09T11:04:22.000Z
aas_core_codegen/csharp/stringification/__init__.py
aas-core-works/aas-core-csharp-codegen
731f706e2d12bf80722ac55d920fcf5402fb26ef
[ "MIT" ]
2
2021-12-29T01:42:12.000Z
2022-02-15T13:46:33.000Z
"""Generate C# code for de/serialization of enumerations.""" from aas_core_codegen.csharp.stringification import _generate generate = _generate.generate
30.8
61
0.818182
c54e97775e31e3ab069e0978781bf9476c7f5c0e
1,819
py
Python
dcinside/api/comment/create.py
Fr0zens/dc_test
8e593f98035e89398e7ad3947a21f1cfe71cf7c8
[ "MIT" ]
null
null
null
dcinside/api/comment/create.py
Fr0zens/dc_test
8e593f98035e89398e7ad3947a21f1cfe71cf7c8
[ "MIT" ]
null
null
null
dcinside/api/comment/create.py
Fr0zens/dc_test
8e593f98035e89398e7ad3947a21f1cfe71cf7c8
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from builtins import dict from future import standard_library standard_library.install_aliases() from urllib.parse import unquote # noqa from dcin...
29.33871
69
0.66575
5317c4c2ff1a30e594cb17477b77602f479abc33
2,406
py
Python
share/qt/extract_strings_qt.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
share/qt/extract_strings_qt.py
joynicoferna/carpinchocoin
987284642d94e26c2b3b884c14846068d124a24a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2012-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Extract _("...") strings for translation and convert to Qt stringdefs so that they can be picked up by...
27.976744
105
0.629676
b5f816b083de20ffb64aa4571214fb2aeb2c622e
14,970
py
Python
saleor/checkout/fetch.py
Trusty-Serva/saleor
efcc73d4dce771d22de5fe33764d01f30446427a
[ "CC-BY-4.0" ]
1
2021-08-20T02:19:08.000Z
2021-08-20T02:19:08.000Z
saleor/checkout/fetch.py
Trusty-Serva/saleor
efcc73d4dce771d22de5fe33764d01f30446427a
[ "CC-BY-4.0" ]
117
2021-08-23T04:31:08.000Z
2022-03-28T04:40:19.000Z
saleor/checkout/fetch.py
Trusty-Serva/saleor
efcc73d4dce771d22de5fe33764d01f30446427a
[ "CC-BY-4.0" ]
null
null
null
import itertools from dataclasses import dataclass from functools import singledispatch from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union from django.utils.encoding import smart_text from ..shipping.interface import ShippingMethodData from ..shipping.models import ShippingMethodChannelListi...
33.192905
86
0.709552
2f3fbe4fbb4642d25688a7ed4612227d6896dab5
4,756
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/aio/operations_async/_usage_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
1
2020-12-10T03:17:51.000Z
2020-12-10T03:17:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/aio/operations_async/_usage_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2015_06_15/aio/operations_async/_usage_operations_async.py
hurtn/azure-sdk-for-python
64cc053e589691da22fed7a47611199818c99b2b
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.867925
127
0.657065
238f4c02c42419183b0d4800f7770ccecda43460
6,718
py
Python
caer/preprocessing/_patches.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
caer/preprocessing/_patches.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
caer/preprocessing/_patches.py
fossabot/caer
9151a8f3f6a04d2551454969767331a6c1a7bbde
[ "MIT" ]
null
null
null
# Copyright 2020 The Caer Authors. All Rights Reserved. # # Licensed under the MIT License (see LICENSE); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at <https://opensource.org/licenses/MIT> # # ===============================================================...
35.925134
88
0.650342
a458b61c471cdf548268ab81c0b018d3e589c122
4,615
py
Python
detection/train_mask_detector.py
gustavosilva-gss/dolphin
f36d37b6d8d6404202a6a00fea1246c26fd73139
[ "MIT" ]
null
null
null
detection/train_mask_detector.py
gustavosilva-gss/dolphin
f36d37b6d8d6404202a6a00fea1246c26fd73139
[ "MIT" ]
null
null
null
detection/train_mask_detector.py
gustavosilva-gss/dolphin
f36d37b6d8d6404202a6a00fea1246c26fd73139
[ "MIT" ]
null
null
null
# import the necessary packages from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.layers import AveragePooling2D from tensorflow.keras.layers import Dropout from tensorflow.keras.layers import Flatten from tensorflow.keras.lay...
33.686131
71
0.768797
fceaa0c14c4dcfb75bcb597cade1dc838a71c065
12,661
py
Python
python/paddle/fluid/tests/unittests/test_generate_proposals_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
2
2020-02-11T08:53:05.000Z
2020-02-20T08:06:25.000Z
python/paddle/fluid/tests/unittests/test_generate_proposals_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
null
null
null
python/paddle/fluid/tests/unittests/test_generate_proposals_op.py
Sand3r-/Paddle
1217a521554d63caa1381b8716910d0268dfc22d
[ "Apache-2.0" ]
1
2020-09-12T21:35:19.000Z
2020-09-12T21:35:19.000Z
# Copyright (c) 2018 PaddlePaddle Authors. 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 app...
38.250755
83
0.596951
dd01b8b835d50068c2a3bd39f378171d4ec5feef
454
py
Python
jupiter.py
j3camero/moon-predictor
939e5a0f63864f42fb77348b844abf08ffeb2b00
[ "Apache-2.0" ]
1
2016-09-10T15:35:10.000Z
2016-09-10T15:35:10.000Z
jupiter.py
j3camero/moon-predictor
939e5a0f63864f42fb77348b844abf08ffeb2b00
[ "Apache-2.0" ]
null
null
null
jupiter.py
j3camero/moon-predictor
939e5a0f63864f42fb77348b844abf08ffeb2b00
[ "Apache-2.0" ]
null
null
null
from nbody import NBodySimulation sim = NBodySimulation(G=6.67384e-11) sim.AddPlanet(0, 0, 0, 0, 1.89813e27, 'Jupiter') sim.AddPlanet(4.218e8, 0, 0, 17330, 8.9298e22, 'Io') sim.AddPlanet(-6.711e8, 0, 0, -13739, 4.7987e22, 'Europa') sim.AddPlanet(1.0704e9, 0, 0, 10879, 1.4815e23, 'Ganymede') sim.AddPlanet(0, 1.8827e9, ...
41.272727
84
0.687225
086c880c5016cd3af40f42bc03a7b1c6ec4caa7c
458
py
Python
src/utils/dimmable.py
aspinwall-ui/aspinwall
96ea477695d62e3a3b1b91bfcb3cb2d92bb98eb5
[ "MIT" ]
1
2022-03-08T07:00:42.000Z
2022-03-08T07:00:42.000Z
src/utils/dimmable.py
aspinwall-ui/aspinwall
96ea477695d62e3a3b1b91bfcb3cb2d92bb98eb5
[ "MIT" ]
1
2022-01-09T11:22:17.000Z
2022-03-08T05:33:41.000Z
src/utils/dimmable.py
aspinwall-ui/aspinwall
96ea477695d62e3a3b1b91bfcb3cb2d92bb98eb5
[ "MIT" ]
null
null
null
# coding: utf-8 """ Contains the Dimmable mixin for objects that can be dimmed. """ class Dimmable: """ Mixin for objects that can be dimmed. Dimmable objects must have the .dimmable style class. Dimmed objects are given the .dim style class, and undimming the object removes the .dim style class. """ def dim...
19.913043
72
0.69869
ac22b861e4d786b37b65a81cf43313903057a3c3
4,799
py
Python
resoto-ui-upload/resoto_ui_upload/upload.py
someengineering/resoto-ui
3171c8228d9c7d8bd6d138115973a7b0d2353e39
[ "Apache-2.0" ]
3
2022-01-21T10:41:29.000Z
2022-03-26T13:15:10.000Z
resoto-ui-upload/resoto_ui_upload/upload.py
someengineering/resoto-ui
3171c8228d9c7d8bd6d138115973a7b0d2353e39
[ "Apache-2.0" ]
null
null
null
resoto-ui-upload/resoto_ui_upload/upload.py
someengineering/resoto-ui
3171c8228d9c7d8bd6d138115973a7b0d2353e39
[ "Apache-2.0" ]
1
2022-02-06T22:48:18.000Z
2022-02-06T22:48:18.000Z
import os import re import sys import glob import boto3 import requests import time import mimetypes import magic from botocore.client import BaseClient from functools import lru_cache from argparse import Namespace from typing import Optional from . import log mimetypes.init() mime = magic.Magic(mime=True) def upl...
36.082707
114
0.660346
9eaa7b99979bb31fd0884e60a661f16b92e4c067
1,290
py
Python
app/validators/password_form.py
TheSynt4x/flask-blog
11176c15e390f5652ad286b5395f5a27af1c9989
[ "MIT" ]
null
null
null
app/validators/password_form.py
TheSynt4x/flask-blog
11176c15e390f5652ad286b5395f5a27af1c9989
[ "MIT" ]
null
null
null
app/validators/password_form.py
TheSynt4x/flask-blog
11176c15e390f5652ad286b5395f5a27af1c9989
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import SubmitField, PasswordField from wtforms.validators import DataRequired, Length, EqualTo, ValidationError class ChangePasswordForm(FlaskForm): current_password = PasswordField( label='Current Password', validators=[ DataRequired(message='Current passw...
25.294118
77
0.634109
8e0bfdd48a3526a9f711d4eb9fb8b6f5fc45cfb9
11,328
py
Python
fn_machine_learning/fn_machine_learning/lib/resilient_utils.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
fn_machine_learning/fn_machine_learning/lib/resilient_utils.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
fn_machine_learning/fn_machine_learning/lib/resilient_utils.py
devsuds/resilient-community-apps
ce0b087a160dd1c2f86f8c261630b46ce6948ca2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # # (c) Copyright IBM Corp. 2010, 2018. All Rights Reserved. # """ resilient_utils --------------- Collection of resilient util functions """ from fn_machine_learning.lib.ml_logistic_regression import LogisticRegression from fn_m...
38.141414
107
0.572387
672953403a2b313018a7327e6858fccb8b2f96c6
3,735
py
Python
sdks/python/apache_beam/metrics/metricbase.py
dxichen/beam
d02b859cb37e3c9f565785e93384905f1078b409
[ "Apache-2.0", "BSD-3-Clause" ]
2
2018-12-08T05:19:04.000Z
2018-12-08T05:19:07.000Z
sdks/python/apache_beam/metrics/metricbase.py
dxichen/beam
d02b859cb37e3c9f565785e93384905f1078b409
[ "Apache-2.0", "BSD-3-Clause" ]
10
2016-03-21T22:50:43.000Z
2016-07-12T16:59:21.000Z
sdks/python/apache_beam/metrics/metricbase.py
swegner/incubator-beam
5466ac0b8819625b1d0ada3577c1fc103797f9a2
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-11-23T11:49:03.000Z
2018-11-23T11:49:03.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 us...
30.614754
79
0.734672
a290ef9fa4c089a7923eac746470965f145db0fc
13,147
py
Python
tests/components/usb/test_init.py
Airzzz0801/core
a3b8f1a928b7b3677c229cd4bf1435821ea370c8
[ "Apache-2.0" ]
null
null
null
tests/components/usb/test_init.py
Airzzz0801/core
a3b8f1a928b7b3677c229cd4bf1435821ea370c8
[ "Apache-2.0" ]
null
null
null
tests/components/usb/test_init.py
Airzzz0801/core
a3b8f1a928b7b3677c229cd4bf1435821ea370c8
[ "Apache-2.0" ]
null
null
null
"""Tests for the USB Discovery integration.""" import os import sys from unittest.mock import MagicMock, patch, sentinel import pytest from homeassistant.components import usb from homeassistant.const import EVENT_HOMEASSISTANT_STARTED from homeassistant.setup import async_setup_component from . import slae_sh_devic...
35.628726
90
0.667605
abcdfc8b1c3cf5a3b11ea0927efbec6dfa3c0dce
12,645
py
Python
train.py
MichalPitr/KEPLER
8692bb3d1e11673eb7b19a4175827024e916e55e
[ "MIT" ]
98
2020-12-26T04:47:03.000Z
2022-03-31T06:06:53.000Z
train.py
MichalPitr/KEPLER
8692bb3d1e11673eb7b19a4175827024e916e55e
[ "MIT" ]
15
2020-11-30T09:57:09.000Z
2022-03-30T13:56:43.000Z
train.py
MichalPitr/KEPLER
8692bb3d1e11673eb7b19a4175827024e916e55e
[ "MIT" ]
12
2021-01-15T04:27:20.000Z
2022-03-27T04:05:38.000Z
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Train a new model on one or across multiple GPUs. """ import collections import math import random import torch...
38.202417
102
0.652115
85e0c575469fc1e5fff4645207ad55687cf4cfc4
7,676
py
Python
test/functional/test_framework/test_node.py
OpenBlock-Org/OpenBlock
3e070699415be363577af3b6a21785e6a23f8a40
[ "MIT" ]
1
2019-03-03T17:07:43.000Z
2019-03-03T17:07:43.000Z
test/functional/test_framework/test_node.py
OpenBlock-Org/OpenBlock
3e070699415be363577af3b6a21785e6a23f8a40
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
OpenBlock-Org/OpenBlock
3e070699415be363577af3b6a21785e6a23f8a40
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for bitcoind node under test""" import decimal import errno import http.client import json import log...
40.188482
248
0.640568
2cbec99e8ada6d37f7d3e42360873997494f118f
13,686
py
Python
sdk/python/pulumi_azure_native/network/v20200701/virtual_router_peering.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200701/virtual_router_peering.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20200701/virtual_router_peering.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
46.55102
2,223
0.660383
2fce8d5203d0d25f2d1dac51e8ef9348a36b3bcc
9,320
py
Python
docs/conf.py
btubbs/spa
9e14986a1e6a079dfeaf1b0b0c83d749cf38dd54
[ "BSD-3-Clause" ]
14
2015-06-05T19:29:20.000Z
2021-05-07T15:02:56.000Z
docs/conf.py
btubbs/spa
9e14986a1e6a079dfeaf1b0b0c83d749cf38dd54
[ "BSD-3-Clause" ]
5
2015-06-20T17:53:24.000Z
2015-12-14T20:50:24.000Z
docs/conf.py
btubbs/spa
9e14986a1e6a079dfeaf1b0b0c83d749cf38dd54
[ "BSD-3-Clause" ]
3
2015-05-29T09:21:08.000Z
2015-08-06T12:06:22.000Z
# -*- coding: utf-8 -*- # # Spa documentation build configuration file, created by # sphinx-quickstart on Fri May 29 10:38:05 2015. # # 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 c...
31.70068
79
0.71588
dcd6a215e77031096b750419e7fc50b0ac2ce9a0
6,024
py
Python
spyder_mod/Spyder 4.2.1/site-packages/spyder/app/utils.py
sys-bio/tellurium
aa241da8206e8614085398d86cd8a8daae7468c2
[ "Apache-2.0" ]
73
2016-06-13T12:44:28.000Z
2021-12-31T14:44:39.000Z
spyder_mod/Spyder 4.1.3/site-packages/spyder/app/utils.py
sys-bio/tellurium
aa241da8206e8614085398d86cd8a8daae7468c2
[ "Apache-2.0" ]
461
2015-03-26T00:05:16.000Z
2022-03-16T17:24:35.000Z
spyder_mod/Spyder 4.2.1/site-packages/spyder/app/utils.py
sys-bio/tellurium
aa241da8206e8614085398d86cd8a8daae7468c2
[ "Apache-2.0" ]
30
2016-01-18T16:50:54.000Z
2021-07-06T09:29:53.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Utility functions for the Spyder application.""" # Standard library imports import glob import logging import os import os.path as osp import re import sys # Thi...
32.562162
86
0.651228
c3e3b1e87a2f30b5e9517a0d1c39b95fee6caa15
7,398
py
Python
src/summarycode/facet.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/summarycode/facet.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
src/summarycode/facet.py
abhi27-web/scancode-toolk
66f59168fb7824ab9be332712dcaf16340e1aa22
[ "Apache-2.0", "CC0-1.0" ]
null
null
null
# # Copyright (c) 2018 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
32.734513
126
0.681536
074c921fcf35d9a050e45e2cd78b729382b8dd8c
2,533
py
Python
torch2trt_dynamic/converters/interpolate/interpolate.py
jinfagang/pilgrim_torch2trt
27a8e6a195cbc3a83b16483ec4c0930da4aa77e6
[ "MIT" ]
20
2020-10-10T06:14:50.000Z
2021-09-22T08:50:16.000Z
torch2trt_dynamic/converters/interpolate/interpolate.py
jinfagang/pilgrim_torch2trt
27a8e6a195cbc3a83b16483ec4c0930da4aa77e6
[ "MIT" ]
2
2020-11-02T11:45:24.000Z
2021-02-17T15:20:04.000Z
torch2trt_dynamic/converters/interpolate/interpolate.py
jinfagang/pilgrim_torch2trt
27a8e6a195cbc3a83b16483ec4c0930da4aa77e6
[ "MIT" ]
4
2020-10-10T05:14:18.000Z
2020-10-27T01:47:30.000Z
import tensorrt as trt import torch.nn.functional as F from torch2trt_dynamic.torch2trt_dynamic import * from torch2trt_dynamic.module_test import add_module_test from .interpolate_pb2 import interpolate_Message import torch.nn as nn def get_interpolate_plugin(size, mode, align_corners): PLUGIN_NAME = 'interpolat...
34.22973
129
0.719305
8a1874fc8ce0ae61391bfdf5e748a18f54ada054
2,855
py
Python
examples/2DES.py
binggu56/lime
07f60c5105f0bedb11ac389fd671f4f1737a71fe
[ "MIT" ]
4
2020-01-15T11:52:23.000Z
2021-01-05T19:40:36.000Z
examples/2DES.py
binggu56/scitools
3f7ce3d8411a23186c73f1bb87a8778e039fbd0b
[ "MIT" ]
null
null
null
examples/2DES.py
binggu56/scitools
3f7ce3d8411a23186c73f1bb87a8778e039fbd0b
[ "MIT" ]
3
2020-02-14T07:10:44.000Z
2021-04-14T17:49:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 19 15:12:52 2020 @author: Bing Gu @description: Examples of the 2DES modules """ import numpy as np import matplotlib.pyplot as plt from scipy.special import erfc import yaml from matplotlib import cm from numpy import sqrt import sys sys.p...
25.04386
75
0.638879
9f197e2e7e582714ce02d6a204072df3347cbc51
3,333
py
Python
fbpcp/service/container.py
yaroslavvb/fbpcp
9692ff8a1b5dce411e91abaed117f26356cd2a31
[ "MIT" ]
null
null
null
fbpcp/service/container.py
yaroslavvb/fbpcp
9692ff8a1b5dce411e91abaed117f26356cd2a31
[ "MIT" ]
null
null
null
fbpcp/service/container.py
yaroslavvb/fbpcp
9692ff8a1b5dce411e91abaed117f26356cd2a31
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict import abc from typing import Dict, List, Optional from fbpcp.entity.container_instance import Containe...
29.758929
109
0.644464
0173071c92f6e0d8aabcd28861b24141c3a86838
331
py
Python
instagramHome/migrations/0003_remove_post_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
1
2020-06-06T09:35:53.000Z
2020-06-06T09:35:53.000Z
instagramHome/migrations/0003_remove_post_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
4
2021-06-08T21:40:44.000Z
2022-01-13T02:48:45.000Z
instagramHome/migrations/0003_remove_post_likes.py
philip-bbaale/InstagramClone
9f2f219e167224585e6681f8aa00f1f5b0d3ecb9
[ "MIT" ]
1
2020-06-03T15:08:04.000Z
2020-06-03T15:08:04.000Z
# Generated by Django 3.0.6 on 2020-05-31 18:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('instagramHome', '0002_auto_20200531_1839'), ] operations = [ migrations.RemoveField( model_name='post', name='likes', ...
18.388889
53
0.595166
cb12af4d789922e2d5df584e502e30a74d42a0b5
2,038
py
Python
explainaboard/data_utils.py
Shadowlized/ExplainaBoard
45f1c27468e528f8f88df4b01e10253ba96d3a9b
[ "MIT" ]
255
2021-04-14T11:21:35.000Z
2022-03-27T01:59:05.000Z
explainaboard/data_utils.py
ROGERDJQ/ExplainaBoard
4a2a5aeb9cce33198aa748252f9206c6391a695c
[ "MIT" ]
128
2021-04-15T14:30:13.000Z
2022-03-31T18:22:40.000Z
explainaboard/data_utils.py
ROGERDJQ/ExplainaBoard
4a2a5aeb9cce33198aa748252f9206c6391a695c
[ "MIT" ]
27
2021-04-14T15:20:22.000Z
2022-03-28T07:21:54.000Z
import pandas as pd import numpy as np def get_probability_right_or_not(file_path, prob_col, right_or_not_col=None, answer_cols=None): """ :param file_path: the file_path is the path to your file. And the path must include file name. the file name is in this format: test_dataset_model.tsv. the ...
37.054545
96
0.68842
669b94d83cebefe463d92fe08209178d3ab6bb75
1,858
py
Python
pysmFISH/filtering.py
ambrosejcarr/pysmFISH
0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb
[ "MIT" ]
5
2018-05-29T23:03:19.000Z
2022-02-02T02:04:41.000Z
pysmFISH/filtering.py
ambrosejcarr/pysmFISH
0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb
[ "MIT" ]
3
2018-12-18T20:18:38.000Z
2019-01-18T22:47:45.000Z
pysmFISH/filtering.py
ambrosejcarr/pysmFISH
0eb24355f70c0d5c9013a9407fd56f2e1e9ee3cb
[ "MIT" ]
5
2018-08-10T14:54:54.000Z
2021-10-09T13:32:08.000Z
import numpy as np from skimage import filters,img_as_float from scipy import ndimage as nd def nuclei_filtering(img_stack): """ This function remove the background from the nuclei For the sigma I seleced a value quite bigger than the nuclei size in order to remove them from the image. I used wha...
25.805556
80
0.670075
3aba235b748387ecdf748b57101ebe81a46788f5
794
py
Python
todoList/urls.py
Adyyousf/ToDo-List
a5d200b0eab14702c927dc451b47535b80be3093
[ "MIT" ]
1
2021-07-08T05:37:05.000Z
2021-07-08T05:37:05.000Z
todoList/urls.py
Adyyousf/ToDo-List
a5d200b0eab14702c927dc451b47535b80be3093
[ "MIT" ]
null
null
null
todoList/urls.py
Adyyousf/ToDo-List
a5d200b0eab14702c927dc451b47535b80be3093
[ "MIT" ]
null
null
null
"""todoList URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
34.521739
77
0.702771
7e82f517a39cfec212138d0d1093afa88bab843b
5,248
py
Python
ractf/crypto/Really Small Algorithm/solve.py
deut-erium/WriteUps
36b4193f5fab9f95527a48626ecba631d5a03796
[ "MIT" ]
11
2020-06-06T05:28:27.000Z
2022-01-09T00:42:49.000Z
2020/ractf/crypto/Really Small Algorithm/solve.py
CSEA-IITB/WriteUps
46e7f36b0c4ef182cbaf375fd10fda954b6667a0
[ "MIT" ]
1
2020-09-06T18:19:55.000Z
2020-09-06T18:19:55.000Z
ractf/crypto/Really Small Algorithm/solve.py
deut-erium/WriteUps
36b4193f5fab9f95527a48626ecba631d5a03796
[ "MIT" ]
6
2020-06-06T05:36:43.000Z
2021-08-11T10:17:18.000Z
from pwn import remote from gmpy2 import invert PRIMES = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,36...
218.666667
4,814
0.77439
6e065b3209d441e07e661cfbcdd552ccdaa46892
58,064
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_crypto_sam_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_crypto_sam_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_crypto_sam_oper.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_crypto_sam_oper This module contains a collection of YANG definitions for Cisco IOS\-XR crypto\-sam package operational data. This module contains definitions for the following management objects\: sam\: Software authentication manager certificate information Copyright (c) 2013\-2018 by Cisco Sys...
38.995299
454
0.518721
c066509392267996fc186aefbf664cbc3192689b
476
py
Python
Python_for_Everybody-Coursera/CHAPTER_10/chap_10_HW.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
1
2020-09-29T17:29:34.000Z
2020-09-29T17:29:34.000Z
Python_for_Everybody-Coursera/CHAPTER_10/chap_10_HW.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
Python_for_Everybody-Coursera/CHAPTER_10/chap_10_HW.py
andresdelarosa1887/Public-Projects
db8d8e0c0f5f0f7326346462fcdfe21ce8142a12
[ "Unlicense" ]
null
null
null
fhand=open("mbox-short.txt") lst= list() lsta= list() hours= dict() for line in fhand: line= line.rstrip() words= line.split() if len(words)== 0: continue if words[0]== 'From': inter= words[5] lst.append(inter) for time in lst: #print(time) sull= time.split(":") hour= sull[0]...
20.695652
38
0.598739
620166b5c52f8fa6315f65965b35f3c821fa9c5a
4,815
py
Python
deepvoice3_pytorch/__init__.py
TartuNLP/deepvoice3_pytorch
a04f0b31af667b06328dc9573cc1f458f09a5d73
[ "MIT" ]
1
2021-05-09T19:53:31.000Z
2021-05-09T19:53:31.000Z
deepvoice3_pytorch/__init__.py
theFong/deepvoice3_pytorch
90027d27dab2889d856f9db9ffaf39d4f70b3067
[ "MIT" ]
null
null
null
deepvoice3_pytorch/__init__.py
theFong/deepvoice3_pytorch
90027d27dab2889d856f9db9ffaf39d4f70b3067
[ "MIT" ]
1
2021-02-18T09:55:03.000Z
2021-02-18T09:55:03.000Z
# coding: utf-8 # from .version import __version__ import torch from torch import nn from .modules import Embedding class MultiSpeakerTTSModel(nn.Module): """Attention seq2seq model + post processing network """ def __init__(self, seq2seq, postnet, mel_dim=80, linear_dim=513, ...
37.913386
89
0.657944
dea38631014dbdd0011fe93d5c6d1ac9b38abba6
1,299
py
Python
wsgi.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
35
2018-12-18T02:51:09.000Z
2022-03-30T04:43:20.000Z
wsgi.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
172
2018-02-02T14:35:11.000Z
2018-12-04T15:35:30.000Z
wsgi.py
ID2797370/arxiv-search
889402e8eef9a2faaa8e900978cd27ff2784ce33
[ "MIT" ]
13
2019-01-10T22:01:48.000Z
2021-11-05T12:25:08.000Z
"""Web Server Gateway Interface entry-point for UI.""" import os from arxiv.base import logging from search.factory import create_ui_web_app logger = logging.getLogger(__name__) __flask_app__ = None def application(environ, start_response): """WSGI application factory.""" for key, value in environ.items()...
35.108108
78
0.672055
4fde417c8c912cb1a726f0dc5642a8598b8d16d3
8,188
py
Python
track2_unknown/train_esrgan_unknown.py
WeichenLi2020/AMLSII_assignment20_21
61f36b6d9ddcd7608f35dcbffb284b2268a625fe
[ "MIT" ]
null
null
null
track2_unknown/train_esrgan_unknown.py
WeichenLi2020/AMLSII_assignment20_21
61f36b6d9ddcd7608f35dcbffb284b2268a625fe
[ "MIT" ]
null
null
null
track2_unknown/train_esrgan_unknown.py
WeichenLi2020/AMLSII_assignment20_21
61f36b6d9ddcd7608f35dcbffb284b2268a625fe
[ "MIT" ]
null
null
null
from absl import app, flags, logging from absl.flags import FLAGS import os import sys import tensorflow as tf from track2_unknown.modules.models import RRDB_Model, DiscriminatorVGG128,RRDB_Model_scale from track2_unknown.modules.lr_scheduler import MultiStepLR from track2_unknown.modules.losses import (PixelLoss, Cont...
42.206186
116
0.61468
fdc1057a106ee6c657e08412e5e7b9a8481a1838
375
py
Python
conda-recipe/move-conda-package.py
ktanishqk/py-earth
1d8b7f76d4af873cce03772daace2254a9313871
[ "BSD-3-Clause" ]
360
2016-03-30T23:44:51.000Z
2022-03-26T07:54:29.000Z
conda-recipe/move-conda-package.py
ktanishqk/py-earth
1d8b7f76d4af873cce03772daace2254a9313871
[ "BSD-3-Clause" ]
129
2016-03-24T21:21:01.000Z
2022-01-01T17:35:11.000Z
conda-recipe/move-conda-package.py
ktanishqk/py-earth
1d8b7f76d4af873cce03772daace2254a9313871
[ "BSD-3-Clause" ]
92
2016-04-01T04:43:11.000Z
2022-03-16T06:37:28.000Z
import sys import os import yaml import glob import shutil from conda_build.config import config with open(os.path.join(sys.argv[1], 'meta.yaml')) as f: name = yaml.load(f)['package']['name'] binary_package_glob = os.path.join( config.bldpkgs_dir, '{0}*.tar.bz2'.format(name)) binary_package = glob.glob(binary...
23.4375
55
0.736
12fe804038bf4420edc947a1d20d0a44b9ac4877
35,582
py
Python
django_extensions/management/commands/sqldiff.py
glarrain/django-extensions
532f00f291a34748ef9e287148a87a49d734f54e
[ "MIT" ]
null
null
null
django_extensions/management/commands/sqldiff.py
glarrain/django-extensions
532f00f291a34748ef9e287148a87a49d734f54e
[ "MIT" ]
null
null
null
django_extensions/management/commands/sqldiff.py
glarrain/django-extensions
532f00f291a34748ef9e287148a87a49d734f54e
[ "MIT" ]
null
null
null
""" sqldiff.py - Prints the (approximated) difference between models and database TODO: - better support for relations - better support for constraints (mainly postgresql?) - support for table spaces with postgresql - when a table is not managed (meta.managed==False) then only do a one-way sqldiff ? show differ...
50.045007
448
0.630515
27bded2fec06f3b7f79d3f870b77c27214b0d95c
623
py
Python
account.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
account.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
2
2015-11-08T18:50:11.000Z
2015-11-08T18:50:42.000Z
account.py
kalafut/go-ledger
28a625e31d460e0ac2926c53a30f47f159d2b82f
[ "MIT" ]
null
null
null
class Account: def __init__(self, name): self.name = name self.children = None self.parent = None root = Account("__root") def find_or_create(name): """ var child *Account var name string var ok bool idx := strings.Index(acctName, ":") if idx == -1 { name = acctName } else { ...
15.575
50
0.5939
c57a786288dd504f164225199fddd469304b509f
11,133
py
Python
translations/scripts/miasmata-research.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
10
2015-06-13T17:27:18.000Z
2021-02-14T13:03:11.000Z
translations/scripts/miasmata-research.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
2
2020-07-11T18:34:57.000Z
2021-03-07T02:27:46.000Z
translations/scripts/miasmata-research.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
1
2016-03-23T22:26:23.000Z
2016-03-23T22:26:23.000Z
#!/usr/bin/env python from gimpfu import * from miasmata_gimp import * header_font = Font('Neu Phollick Alpha', 45.0, True) font = Font('Neu Phollick Alpha', 40.0, True, -5.0) font_small = Font('Neu Phollick Alpha', 32.0, True, -5.0) research_font = Font('Neu Phollick Alpha Bold', 40.0, False) def desc_font(plant): ...
34.790625
168
0.67017
319a69b9cdad4456188757a3cfb160c0d2945081
1,499
py
Python
TWITOFF/app.py
claudiasofiaC/whoisthebiggesttwit
f1e62a76f69beee5d8b28202a32d95a34df145e7
[ "MIT" ]
null
null
null
TWITOFF/app.py
claudiasofiaC/whoisthebiggesttwit
f1e62a76f69beee5d8b28202a32d95a34df145e7
[ "MIT" ]
null
null
null
TWITOFF/app.py
claudiasofiaC/whoisthebiggesttwit
f1e62a76f69beee5d8b28202a32d95a34df145e7
[ "MIT" ]
null
null
null
"""code for app""" # alphabetical order is the norm from decouple import config from flask import Flask, render_template, request from .models import DB, User from .twitter import add_or_update_user # app factory def create_app(): app = Flask(__name__) # add config for db app.config['SQLALCHEMY_DATABASE_UR...
26.767857
72
0.626418
8437aa4df67942b24fb2e396c5cdec2a455c385b
442
py
Python
Data structures/1-5.py
STARK-yv/Coursera
6f95f925450323f0c91f51bd727bc1c625d3cef1
[ "MIT" ]
null
null
null
Data structures/1-5.py
STARK-yv/Coursera
6f95f925450323f0c91f51bd727bc1c625d3cef1
[ "MIT" ]
null
null
null
Data structures/1-5.py
STARK-yv/Coursera
6f95f925450323f0c91f51bd727bc1c625d3cef1
[ "MIT" ]
null
null
null
def max_sliding_window_naive(sequence, m): maximums = [] for i in range(len(sequence) - m + 1): maximums.append(max(sequence[i:i + m])) return maximums if __name__ == '__main__': n = int(input()) input_sequence = [int(i) for i in input().split()] assert len(input_sequence) ==...
31.571429
84
0.628959
d2c09ed2c7326bc9f1647a18dcbd0ff853839bce
3,179
py
Python
tests/test_pdf_conditional.py
schmitse/zfit
d42588f1d43532a34a81f31e602d2471780690e2
[ "BSD-3-Clause" ]
null
null
null
tests/test_pdf_conditional.py
schmitse/zfit
d42588f1d43532a34a81f31e602d2471780690e2
[ "BSD-3-Clause" ]
null
null
null
tests/test_pdf_conditional.py
schmitse/zfit
d42588f1d43532a34a81f31e602d2471780690e2
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021 zfit import numpy as np import pytest import zfit @pytest.mark.skipif(not zfit.run.get_graph_mode(), reason="Getting stuck for weird reason in eager. TODO.") def test_conditional_pdf_simple(): xobs = zfit.Space('x', (-2, 5)) muobs = zfit.Space('y', (-1, 15)) sigmaobs = zfit.Space('...
38.768293
108
0.672539
c98e0cf50ee63e3f2042ca654667ab881f44765d
1,818
py
Python
inventory/models.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
null
null
null
inventory/models.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
8
2021-03-30T13:03:11.000Z
2022-03-12T00:20:13.000Z
inventory/models.py
shakyasaijal/businessAnalytics
9312bae79709387c6eadd50f87f6be85bd52c396
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from helper import inventory as inventory_helper from employee import models as employee_models from support import models as support_models class Suppliers(models.Model): supplier_name = models.CharField(max_length=255, null=False, blank=F...
34.301887
112
0.744224
f1bc37c59990516ff45c35fb19f81907733b6fc6
1,380
py
Python
cnn_digits/train.py
pdabacus/quantum-unsupremacy
f7811dd2e5e63c0ea9f21deb439e6ff397a04444
[ "Beerware" ]
1
2020-04-17T09:38:30.000Z
2020-04-17T09:38:30.000Z
cnn_digits/train.py
pdabacus/quantum-unsupremacy
f7811dd2e5e63c0ea9f21deb439e6ff397a04444
[ "Beerware" ]
null
null
null
cnn_digits/train.py
pdabacus/quantum-unsupremacy
f7811dd2e5e63c0ea9f21deb439e6ff397a04444
[ "Beerware" ]
null
null
null
from keras.datasets import mnist import matplotlib.pyplot as plt import numpy as np from keras.layers import Flatten from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers.convolutional import MaxPooling2D from keras.utils import np_utils from keras.layers....
32.857143
86
0.777536
843e0617578694bbd62723e12c8ce230ea606e55
586
py
Python
tutorial/mysite/polls/admin.py
tonper19/django_tutorial
0044542fe6b81b6f39b32c51593dbec7dcbd410b
[ "MIT" ]
null
null
null
tutorial/mysite/polls/admin.py
tonper19/django_tutorial
0044542fe6b81b6f39b32c51593dbec7dcbd410b
[ "MIT" ]
null
null
null
tutorial/mysite/polls/admin.py
tonper19/django_tutorial
0044542fe6b81b6f39b32c51593dbec7dcbd410b
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Choice, Question class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ('Date information', {'fields': [ 'p...
24.416667
74
0.641638
4f7c2999b7d724515c9bca31290fc20749f015a8
805
py
Python
ch03-math/matrix.py
GaoX2015/intro_ds
38e239dcf0fbe4b98ca11534ff419af72417a272
[ "Apache-2.0" ]
314
2018-02-11T09:44:21.000Z
2022-03-31T02:55:34.000Z
ch03-math/matrix.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
5
2018-05-27T07:18:09.000Z
2019-03-29T14:07:55.000Z
ch03-math/matrix.py
jianyigengge/intro_ds
886e678e5353e9b4c0d4f3da83a00d6b9a2f06a5
[ "Apache-2.0" ]
262
2018-03-20T07:36:22.000Z
2022-03-08T06:51:58.000Z
# -*- coding: UTF-8 -*- """ 此脚本用于展示矩阵运算 """ # 保证脚本与Python3兼容 from __future__ import print_function import numpy as np from numpy.linalg import inv # 创建矩阵 A = np.matrix([[1, 2], [3, 4], [5, 6]]) print(A) B = np.array(range(1, 7)).reshape(3, 2) print(B) try: A * A except ValueError as e: print(repr(e)) print...
15.784314
40
0.609938
5ce24f118641cfe3cc0868eb0a98eed496dac11c
1,226
py
Python
heron/tools/cli/src/python/deactivate.py
takeratta/heron
7b7c38594186f009741c62d379364b9b45d82b61
[ "Apache-2.0" ]
1
2021-06-29T07:00:10.000Z
2021-06-29T07:00:10.000Z
heron/tools/cli/src/python/deactivate.py
kalimfaria/heron
d59bd016b826006e2af22c7a6452342f5e7d637c
[ "Apache-2.0" ]
null
null
null
heron/tools/cli/src/python/deactivate.py
kalimfaria/heron
d59bd016b826006e2af22c7a6452342f5e7d637c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2016 Twitter. 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...
30.65
84
0.735726
2587b447d1d1c206d086f947499b549fb9a3dc21
27,318
py
Python
code/model/QACGBERT.py
BingzhangZhu/Covid19-ABSA
e488e74ee53882bba56aedfafb3846ab82c4678e
[ "MIT" ]
null
null
null
code/model/QACGBERT.py
BingzhangZhu/Covid19-ABSA
e488e74ee53882bba56aedfafb3846ab82c4678e
[ "MIT" ]
null
null
null
code/model/QACGBERT.py
BingzhangZhu/Covid19-ABSA
e488e74ee53882bba56aedfafb3846ab82c4678e
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function import copy import json import math import six import torch import torch.nn as nn from torch.nn import CrossEntropyLoss import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import coll...
47.592334
125
0.665202