hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c03228b2ca7a1e5710fd3d833f2457053dd2e585 | 834 | py | Python | 2015/solutions/day1.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null | 2015/solutions/day1.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null | 2015/solutions/day1.py | rsizem2/aoc_2020 | aa2dbf72a4c44930755bd9cc132ad7854f742f09 | [
"MIT"
] | null | null | null |
puzzle1()
puzzle2() | 20.85 | 46 | 0.464029 |
c032d43f5d12902206b5df36fccb87158ca21d3e | 466 | py | Python | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | setup.py | Kamuish/StarSearch | 63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='starsearch',
version='0.3',
description='Package to dig into the ESO archives',
author='Joo Camacho',
author_email='joao.camacho@astro.up.pt',
license='MIT',
url='https://github.com/jdavidrcamach... | 24.526316 | 57 | 0.592275 |
c033f2c7fd8a3e95e76135943dd54b89791b98ca | 4,192 | py | Python | test/integration/test_genomes.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | test/integration/test_genomes.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | 6 | 2021-11-11T20:57:49.000Z | 2021-12-10T15:30:33.000Z | test/integration/test_genomes.py | beatrizserrano/galaxy | e149d9d32e1bca6c07c38b1a9cdabfee60323610 | [
"CC-BY-3.0"
] | null | null | null | import os
import tempfile
from unittest.mock import patch
from galaxy.exceptions import (
ObjectNotFound,
ReferenceDataError,
)
from galaxy_test.driver import integration_util
BUILDS_DATA = (
"?\tunspecified (?)",
"hg_test\tdescription of hg_test",
"hg_test_nolen\tdescription of hg_test_nolen",
)
... | 37.765766 | 105 | 0.659351 |
c034484825d157d2b2d547cd6cfeff947673d5f5 | 2,310 | py | Python | examples/exersice2DimRed.py | s2812135/Data_Challenges_WiSe2122 | a55372f444e7344af4e2e1f04e4244fb8cefeefe | [
"MIT"
] | null | null | null | examples/exersice2DimRed.py | s2812135/Data_Challenges_WiSe2122 | a55372f444e7344af4e2e1f04e4244fb8cefeefe | [
"MIT"
] | null | null | null | examples/exersice2DimRed.py | s2812135/Data_Challenges_WiSe2122 | a55372f444e7344af4e2e1f04e4244fb8cefeefe | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import os
from tqdm import tqdm
import pacmap
import matplotlib.pyplot as plt
from sklearn.manifold import TSNE
import umap
| 29.615385 | 98 | 0.587446 |
c0347d378ceb67aeed162b5a86aeec563c7f0a79 | 5,757 | py | Python | release.py | jhofmann/yubiauth | 724feb45b54db196af406edf87f2bfcc2e849842 | [
"BSD-2-Clause"
] | 17 | 2015-01-06T16:28:55.000Z | 2021-11-21T15:26:01.000Z | release.py | DalavanCloud/yubiauth | 42292de043f8e106384796ff233be0b2dc930f60 | [
"BSD-2-Clause"
] | 4 | 2015-09-11T14:00:14.000Z | 2017-05-25T15:00:17.000Z | release.py | DalavanCloud/yubiauth | 42292de043f8e106384796ff233be0b2dc930f60 | [
"BSD-2-Clause"
] | 9 | 2015-03-11T22:37:47.000Z | 2022-03-01T21:17:35.000Z | # Copyright (c) 2013 Yubico AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | 38.125828 | 78 | 0.605176 |
c034cf5f5c4b3712b5f752c6874beaede0ef7f49 | 10,949 | py | Python | fabfile.py | 8081594571/bgtools_web | f99389788f6e8db0d1b7781f41af819efd7e9dc2 | [
"MIT"
] | 1 | 2020-10-01T15:56:12.000Z | 2020-10-01T15:56:12.000Z | fabfile.py | Arvindvishwakarma/bgtools_web | 82b03c49e00a6ffcc563289c68bcf2a7a6985633 | [
"MIT"
] | null | null | null | fabfile.py | Arvindvishwakarma/bgtools_web | 82b03c49e00a6ffcc563289c68bcf2a7a6985633 | [
"MIT"
] | 1 | 2020-10-01T06:53:41.000Z | 2020-10-01T06:53:41.000Z |
# Credit goes to https://bitbucket.org/spookylukey/django-fabfile-starter/src
import os
import datetime as dt
from io import StringIO
import json
import posixpath
import fabric
import requests
from fabsettings import (USER, HOST, DJANGO_APP_NAME,
DJANGO_APPS_DIR, LOGS_ROOT_DIR,
... | 38.017361 | 115 | 0.574664 |
c034fca0ee726969b9b040225228ff287755ee94 | 5,273 | py | Python | Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py | roycechan/portfolio | 5e6a916031d2a3c60d2757483fc4765941d6f1f0 | [
"MIT"
] | 1 | 2022-03-14T04:59:54.000Z | 2022-03-14T04:59:54.000Z | Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py | roycechan/portfolio | 5e6a916031d2a3c60d2757483fc4765941d6f1f0 | [
"MIT"
] | null | null | null | Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py | roycechan/portfolio | 5e6a916031d2a3c60d2757483fc4765941d6f1f0 | [
"MIT"
] | null | null | null | import torch
from torch import nn
from torch.autograd import Variable
import config
def test():
net = ShuffleNetV2(2300, 2)
x = Variable(torch.randn(3, 3, 32, 32))
y = net(x)
print("end", y.size())
if __name__ == '__main__':
test()
| 36.365517 | 120 | 0.616537 |
c036324f468e909b938249cc16b70ee9b1588b7d | 6,264 | py | Python | warhorn_api.py | jagerkin/warbot | d30851a454b9eef45d5d4d095ae63e846229153d | [
"Apache-2.0"
] | 1 | 2021-12-23T05:09:01.000Z | 2021-12-23T05:09:01.000Z | warhorn_api.py | jagerkin/warbot | d30851a454b9eef45d5d4d095ae63e846229153d | [
"Apache-2.0"
] | 1 | 2021-12-23T05:00:24.000Z | 2021-12-23T05:00:24.000Z | warhorn_api.py | jagerkin/warbot | d30851a454b9eef45d5d4d095ae63e846229153d | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Michael Olson
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 32.968421 | 98 | 0.608397 |
c036c5b85abcd0ef620f9e8bbff718b557b0b6ee | 13,750 | py | Python | regnerf/internal/models.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | regnerf/internal/models.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | regnerf/internal/models.py | gunpowder78/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 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... | 38.300836 | 84 | 0.663273 |
c03730c3fe56f310fa37ff5662b46d4ef0a1326f | 13,948 | py | Python | Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py | prophetl33t/o3de | eaeeb883eee1594b1b93327f6909eebd1a826caf | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py | prophetl33t/o3de | eaeeb883eee1594b1b93327f6909eebd1a826caf | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py | prophetl33t/o3de | eaeeb883eee1594b1b93327f6909eebd1a826caf | [
"Apache-2.0",
"MIT"
] | null | null | null | # coding:utf-8
#!/usr/bin/python
#
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
# ------------------------------------------------------------------------... | 41.144543 | 99 | 0.674649 |
c03733662ac655fa4e1af62db62b069a9399ac49 | 1,958 | py | Python | lib/data/finetune_imagenet.py | liqi17thu/Stand-Alone-Self-Attention | 43c016ca14a9f5ce7ab59eefe2c41d96df04d151 | [
"MIT"
] | 1 | 2020-11-29T15:59:07.000Z | 2020-11-29T15:59:07.000Z | lib/data/finetune_imagenet.py | liqi17thu/Stand-Alone-Self-Attention | 43c016ca14a9f5ce7ab59eefe2c41d96df04d151 | [
"MIT"
] | null | null | null | lib/data/finetune_imagenet.py | liqi17thu/Stand-Alone-Self-Attention | 43c016ca14a9f5ce7ab59eefe2c41d96df04d151 | [
"MIT"
] | null | null | null | import torch
import torchvision.datasets as datasets
import torchvision.transforms as transforms
from lib.data.data_util import ImageNetPolicy, ToBGRTensor
from lib.config import cfg
from lib.data.transformer_v2 import get_transforms
| 35.6 | 110 | 0.689479 |
c03974668d2a1ee4545cf6fd342d588c2d650bb4 | 6,519 | py | Python | test/acceptance/test_kamma.py | marceljanerfont/kamma | a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68 | [
"MIT"
] | 1 | 2017-06-05T04:40:01.000Z | 2017-06-05T04:40:01.000Z | test/acceptance/test_kamma.py | marceljanerfont/kamma | a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68 | [
"MIT"
] | 2 | 2017-06-29T14:23:59.000Z | 2017-06-29T14:24:58.000Z | test/acceptance/test_kamma.py | marceljanerfont/kamma | a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
try:
import unittest2 as unittest
except ImportError:
import unittest
from multiprocessing import Manager
from random import randint
import logging
import sys
import os
import copy
import shutil
# add kamma path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dir... | 33.953125 | 144 | 0.666973 |
c03a48434d8a8fb57465d077a992cea579fd3c43 | 855 | py | Python | wrappers/python/demo_mp_sync.py | Qworg/libfreenect | 4cca607b37debdd006c3e693954292da11402a7e | [
"Apache-2.0"
] | 10 | 2020-03-09T02:31:01.000Z | 2021-12-14T18:29:27.000Z | wrappers/python/demo_mp_sync.py | Qworg/libfreenect | 4cca607b37debdd006c3e693954292da11402a7e | [
"Apache-2.0"
] | null | null | null | wrappers/python/demo_mp_sync.py | Qworg/libfreenect | 4cca607b37debdd006c3e693954292da11402a7e | [
"Apache-2.0"
] | 1 | 2018-06-23T04:58:30.000Z | 2018-06-23T04:58:30.000Z | #!/usr/bin/env python
import freenect
import matplotlib.pyplot as mp
import frame_convert
import signal
keep_running = True
def handler(signum, frame):
"""Sets up the kill handler, catches SIGINT"""
global keep_running
keep_running = False
mp.ion()
mp.gray()
mp.figure(1)
image_depth = mp.imshow(get_d... | 21.375 | 76 | 0.730994 |
c03ae4d1c246454dbef54627c8b2804bc08c11f8 | 1,189 | py | Python | codes/models/modules/LPIPS/compute_dists.py | DinJerr/BasicSR | b992a386e63daed5193b775080b9066ff2421d85 | [
"Apache-2.0"
] | 5 | 2020-06-07T18:07:45.000Z | 2020-09-06T02:13:52.000Z | codes/models/modules/LPIPS/compute_dists.py | DinJerr/BasicSR | b992a386e63daed5193b775080b9066ff2421d85 | [
"Apache-2.0"
] | null | null | null | codes/models/modules/LPIPS/compute_dists.py | DinJerr/BasicSR | b992a386e63daed5193b775080b9066ff2421d85 | [
"Apache-2.0"
] | 1 | 2020-06-28T05:55:41.000Z | 2020-06-28T05:55:41.000Z | #import models
from models.modules.LPIPS import perceptual_loss as models
####################
# metric
####################
model = None
def calculate_lpips(img1_im, img2_im, use_gpu=False, net='squeeze', spatial=False):
'''calculate Perceptual Metric using LPIPS
img1_im, img2_im: BGR image from [0,255]
... | 27.651163 | 94 | 0.612279 |
c03b78905f8ecc14f0212e38dfa62f635acd9408 | 59,338 | py | Python | msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"MIT"
] | null | null | null | msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py | thewahome/msgraph-cli | 33127d9efa23a0e5f5303c93242fbdbb73348671 | [
"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 ... | 30.259052 | 119 | 0.701945 |
c03be9166bd151ec0d6a3cb24a69aeb0b4160c8e | 456 | py | Python | evntbus/decorators.py | jmwri/eventbus | fe91ab2486b99bffb0232c23d45d0c5dedce1b42 | [
"MIT"
] | null | null | null | evntbus/decorators.py | jmwri/eventbus | fe91ab2486b99bffb0232c23d45d0c5dedce1b42 | [
"MIT"
] | null | null | null | evntbus/decorators.py | jmwri/eventbus | fe91ab2486b99bffb0232c23d45d0c5dedce1b42 | [
"MIT"
] | null | null | null | import typing
if typing.TYPE_CHECKING:
from evntbus.bus import Bus
| 25.333333 | 66 | 0.644737 |
c03c898e35d62712b812e780c7c19ccba395542b | 1,481 | py | Python | src/shortcircuit/model/crestprocessor.py | farshield/shortcircu | 87d45ea85b78e3e7da72b7b44755dc429b4fdf5a | [
"MIT"
] | 35 | 2016-06-22T20:07:31.000Z | 2021-04-07T11:02:08.000Z | src/shortcircuit/model/crestprocessor.py | farshield/shortcircu | 87d45ea85b78e3e7da72b7b44755dc429b4fdf5a | [
"MIT"
] | 15 | 2016-06-17T09:36:02.000Z | 2020-10-30T11:39:07.000Z | src/shortcircuit/model/crestprocessor.py | farshield/shortcircu | 87d45ea85b78e3e7da72b7b44755dc429b4fdf5a | [
"MIT"
] | 16 | 2016-10-02T16:09:18.000Z | 2021-05-29T02:51:14.000Z | # crestprocessor.py
import threading
from PySide import QtCore
from crest.crest import Crest
| 29.62 | 107 | 0.704929 |
c03d2bdffd5f75d12bc1d6868d5c20f3a01b1c33 | 4,496 | py | Python | src/commands/pipelines.py | vicobits/sawi-cli | 0e3717e0e3d853599b87f8ea147a3f1e9566344b | [
"MIT"
] | 1 | 2019-05-02T05:16:07.000Z | 2019-05-02T05:16:07.000Z | src/commands/pipelines.py | vicobits/wise-cli | 0e3717e0e3d853599b87f8ea147a3f1e9566344b | [
"MIT"
] | null | null | null | src/commands/pipelines.py | vicobits/wise-cli | 0e3717e0e3d853599b87f8ea147a3f1e9566344b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import click
from src.commands.project import Project
from src.commands.server import Server
from src.commands.config import WebServer
from src.common.context import CommandContext
from src.common.decorators import settings, update_config_file
| 28.636943 | 99 | 0.635899 |
c03e4bfd7eee3d8023944a7e3e5535ae1233ba11 | 1,341 | py | Python | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | build.py | jmetzz/coffee-chatbot | da7e76d9532c8e5e38a47a19ffed1f1e27601766 | [
"MIT"
] | null | null | null | from pybuilder.core import use_plugin, init
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
name = "ActionServerPybuilder"
default_task = ['install_dependencies', 'analyze', 'publish']
| 35.289474 | 78 | 0.774049 |
c03eda4a030a4816bf3db4784bc7ac9588f4b176 | 4,278 | py | Python | electrumsv/devices/hw_wallet/plugin.py | tuoshao/electrumsv | 5f0132cafa2c90bb36c8a574874e027e44a637e6 | [
"MIT"
] | 1 | 2021-12-28T10:52:11.000Z | 2021-12-28T10:52:11.000Z | electrumsv/devices/hw_wallet/plugin.py | SomberNight/electrumsv | 28262e3cab7b73e4960466f8aee252975953acf8 | [
"MIT"
] | null | null | null | electrumsv/devices/hw_wallet/plugin.py | SomberNight/electrumsv | 28262e3cab7b73e4960466f8aee252975953acf8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- mode: python -*-
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2016 The Electrum developers
#
# 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... | 39.611111 | 97 | 0.679056 |
c0418cbebf8e032e1171fe327cac277a1bbb13e1 | 631 | py | Python | api_service/tests/test_model_ids.py | seattleflu/Seattle-Flu-Incidence-Mapper | 2b72e53da974874b98e1811cdb77e170c33999f1 | [
"MIT"
] | 6 | 2019-03-22T18:28:04.000Z | 2021-02-23T03:53:19.000Z | api_service/tests/test_model_ids.py | seattleflu/Seattle-Flu-Incidence-Mapper | 2b72e53da974874b98e1811cdb77e170c33999f1 | [
"MIT"
] | 103 | 2019-04-03T15:30:06.000Z | 2021-11-15T17:48:22.000Z | api_service/tests/test_model_ids.py | seattleflu/incidence-mapper | 2b72e53da974874b98e1811cdb77e170c33999f1 | [
"MIT"
] | 6 | 2019-07-01T04:43:44.000Z | 2021-02-13T21:46:18.000Z | import unittest
from seattle_flu_incidence_mapper.utils import get_model_id
| 39.4375 | 163 | 0.681458 |
c04331c5a5c72cc4fd22977bf1a531a2facdca4e | 445 | py | Python | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | Cleaning.py | TharindraParanagama/MovieClassification | 2cdee9a2aaf1f55d0a59b20181e69c524c4d5895 | [
"MIT"
] | null | null | null | import csv
input = open('MovieI.csv', 'rb')
output = open('MovieO.csv', 'wb')
writer = csv.writer(output)
for row in csv.reader(input):
for i in range(len(row)):
if(row[0]==''):
break
elif(row[1]==''):
break
elif(row[2]==''):
break
elif(row[3]==''... | 21.190476 | 33 | 0.483146 |
c0451d8d32195eb2257b24e61657609915f300f2 | 87 | py | Python | venues/apps.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 18 | 2018-12-06T01:46:37.000Z | 2021-10-17T10:37:17.000Z | venues/apps.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 194 | 2018-11-04T12:50:49.000Z | 2022-01-06T22:43:43.000Z | venues/apps.py | danroberts728/hsvdotbeer | 5b977bf4a7aab149ad56564b3adbb09424500308 | [
"Apache-2.0"
] | 7 | 2019-03-18T05:36:06.000Z | 2020-12-25T03:27:29.000Z | from django.apps import AppConfig
| 14.5 | 33 | 0.747126 |
c045d1511440dddecfef10dbcd54c672252a332e | 1,137 | py | Python | problems/remove-duplicates-from-sorted-list.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/remove-duplicates-from-sorted-list.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | problems/remove-duplicates-from-sorted-list.py | sailikhithk/tech-interview-prep | e833764cf98915d56118bddfa0e01871c58de75e | [
"Apache-2.0"
] | null | null | null | """
The key is to use a set to remember if we seen the node or not.
Next, think about how we are going to *remove* the duplicate node?
The answer is to simply link the previous node to the next node.
So we need to keep a pointer `prev` on the previous node as we iterate the linked list.
So, the solution.
Create a set ... | 34.454545 | 88 | 0.602463 |
c046ab37f041136a24de450d5779fbb10cbaed54 | 3,344 | py | Python | corehq/apps/analytics/signals.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2020-05-05T13:10:01.000Z | 2020-05-05T13:10:01.000Z | corehq/apps/analytics/signals.py | kkrampa/commcare-hq | d64d7cad98b240325ad669ccc7effb07721b4d44 | [
"BSD-3-Clause"
] | 1 | 2019-12-09T14:00:14.000Z | 2019-12-09T14:00:14.000Z | corehq/apps/analytics/signals.py | MaciejChoromanski/commcare-hq | fd7f65362d56d73b75a2c20d2afeabbc70876867 | [
"BSD-3-Clause"
] | 5 | 2015-11-30T13:12:45.000Z | 2019-07-01T19:27:07.000Z | from __future__ import absolute_import
from __future__ import unicode_literals
import six
from django.conf import settings
from django.contrib.auth.signals import user_logged_in
from corehq.apps.analytics.tasks import (
track_user_sign_in_on_hubspot,
HUBSPOT_COOKIE,
update_hubspot_properties,
identify,... | 39.341176 | 99 | 0.720993 |
c046c72c4e753549e8ec891d9f48179094bc06ed | 775 | py | Python | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | 2 | 2019-10-25T16:35:41.000Z | 2019-10-26T10:54:00.000Z | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | null | null | null | manage.py | BeyondLam/Flask_Blog_Python3 | 274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6 | [
"Apache-2.0"
] | null | null | null | from app import create_app, db
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = create_app("develop")
manager = Manager(app)
Migrate(app, db)
manager.add_command("db", MigrateCommand)
# ,manager
if __name__ == '__main__':
manager.run() | 27.678571 | 101 | 0.707097 |
c047ab7812a83340a4a3ccb035cf5db37d2b6b67 | 2,954 | py | Python | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:01.000Z | 2021-06-04T14:27:15.000Z | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | null | null | null | qiling/qiling/cc/intel.py | mrTavas/owasp-fstm-auto | 6e9ff36e46d885701c7419db3eca15f12063a7f3 | [
"CC0-1.0"
] | 2 | 2021-05-05T12:03:09.000Z | 2021-06-04T14:27:21.000Z | #!/usr/bin/env python3
#
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
from unicorn.x86_const import (
UC_X86_REG_AX, UC_X86_REG_EAX, UC_X86_REG_RAX, UC_X86_REG_RCX,
UC_X86_REG_RDI, UC_X86_REG_RDX, UC_X86_REG_RSI, UC_X86_REG_R8,
UC_X86_REG_R9, UC_X86_REG_R10
)
from qiling import Qili... | 26.854545 | 122 | 0.728842 |
c048a21dfcef4ce86fe3963107c1c071b1d5b9b1 | 2,639 | py | Python | Alexa_Dynamo.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | Alexa_Dynamo.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | Alexa_Dynamo.py | gnomesoup/pyDynamo | dea046e96f7973fcb6c28a274a3092b246457551 | [
"Unlicense",
"MIT"
] | null | null | null | ### ----------- Python Code ------------###
import csv
from flask import Flask, render_template
from flask_ask import Ask, statement, question, session
import pandas as pd
### ------------- Start Alexa Stuff ---------###
app = Flask(__name__)
ask = Ask(app, "/")
#logging.getLogger("flask_ask").setLevel(logging.DE... | 30.333333 | 71 | 0.575597 |
c04935b8a935560d2540de8efce949baca20ee57 | 846 | py | Python | HW/hklearn/model.py | leguiart/Machine-Learning | 2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253 | [
"MIT"
] | null | null | null | HW/hklearn/model.py | leguiart/Machine-Learning | 2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253 | [
"MIT"
] | null | null | null | HW/hklearn/model.py | leguiart/Machine-Learning | 2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253 | [
"MIT"
] | null | null | null | import abc
'''
Interfaz sobre la cual todo modelo implementa.
Todo modelo dentro de la biblioteca hklearn implementa
los siguientes comportamientos:
-fit : Entrena el modelo con un a matriz de ejemplos X y sus respectivas etiquetas y
-predict : El modelo entrenado, predice con base en una entrada X
... | 31.333333 | 89 | 0.640662 |
c0499e4593031598062f2a6d6d126c43c5ef1d2d | 35,951 | py | Python | pecos/utils/smat_util.py | UniqueUpToPermutation/pecos | 52dba0b6a1d5d0809838ac9ddb6c02a93da2624e | [
"Apache-2.0",
"BSD-3-Clause"
] | 2 | 2021-07-28T21:09:58.000Z | 2021-09-24T03:37:45.000Z | pecos/utils/smat_util.py | UniqueUpToPermutation/pecos | 52dba0b6a1d5d0809838ac9ddb6c02a93da2624e | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pecos/utils/smat_util.py | UniqueUpToPermutation/pecos | 52dba0b6a1d5d0809838ac9ddb6c02a93da2624e | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2021-09-24T04:00:47.000Z | 2021-09-24T04:00:47.000Z | # Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acco... | 38.992408 | 208 | 0.648549 |
c04a299ef4dc134ab3bfdfd03d7e5fd9d275da7c | 1,944 | py | Python | MSMetaEnhancer/libs/Curator.py | xtrojak/pyMSPannotator | 4d6ec0ee9781294c621271a6c045e0b15102bb9b | [
"MIT"
] | 2 | 2021-06-16T07:42:02.000Z | 2021-06-16T09:26:59.000Z | MSMetaEnhancer/libs/Curator.py | xtrojak/pyMSPannotator | 4d6ec0ee9781294c621271a6c045e0b15102bb9b | [
"MIT"
] | 34 | 2021-06-15T09:52:51.000Z | 2021-11-11T13:47:11.000Z | MSMetaEnhancer/libs/Curator.py | xtrojak/pyMSPannotator | 4d6ec0ee9781294c621271a6c045e0b15102bb9b | [
"MIT"
] | 4 | 2021-06-09T06:42:19.000Z | 2021-07-21T08:37:06.000Z | from matchms import utils
| 29.907692 | 89 | 0.598251 |
c04a2a3eb342ba391c15029d393dfe3507aca08e | 2,498 | py | Python | bin/install_megadrivers.py | antmicro/kvm-aosp-external-mesa3d | 9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f | [
"MIT"
] | null | null | null | bin/install_megadrivers.py | antmicro/kvm-aosp-external-mesa3d | 9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f | [
"MIT"
] | null | null | null | bin/install_megadrivers.py | antmicro/kvm-aosp-external-mesa3d | 9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# encoding=utf-8
# Copyright 2017-2018 Intel Corporation
# 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
#... | 33.756757 | 82 | 0.67534 |
c04af6a3b44f5f5884d745baba056412e928f38e | 478 | py | Python | python_files/helpers.py | nilamo/pytchie | 2e7a7501f23d393bdb66b64466f62d2ef741b778 | [
"MIT"
] | 10 | 2019-01-21T14:59:39.000Z | 2022-01-25T19:45:57.000Z | python_files/helpers.py | nilamo/pytchie | 2e7a7501f23d393bdb66b64466f62d2ef741b778 | [
"MIT"
] | 6 | 2019-09-26T08:09:41.000Z | 2019-10-22T14:54:19.000Z | python_files/helpers.py | nilamo/pytchie | 2e7a7501f23d393bdb66b64466f62d2ef741b778 | [
"MIT"
] | 3 | 2019-09-27T23:05:39.000Z | 2019-10-22T01:11:06.000Z | #!/usr/bin/env python
import os
import sys
def midi_to_freq(num):
""" Takes a MIDI number and returns a frequency in Hz for corresponding note. """
num_a = num - 69
freq = 440 * 2**(num_a / 12.0)
return freq
if __name__ == '__main__':
print(midi_to_freq(69))
print(midi_to_freq(60))
print(m... | 23.9 | 85 | 0.656904 |
c04af8ddce186b3fd697e8b4010edd2847a07c3a | 2,896 | py | Python | test/integrationMyndFskr.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 18 | 2015-03-12T17:42:44.000Z | 2021-12-27T10:32:22.000Z | test/integrationMyndFskr.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 13 | 2016-01-27T10:19:07.000Z | 2021-12-13T20:24:36.000Z | test/integrationMyndFskr.py | redhog/ferenda | 6935e26fdc63adc68b8e852292456b8d9155b1f7 | [
"BSD-2-Clause"
] | 6 | 2016-11-28T15:41:29.000Z | 2022-01-08T11:16:48.000Z | # -*- coding: utf-8 -*-
from __future__ import (absolute_import, division,
print_function, unicode_literals)
from builtins import *
import os
import sys
import shutil
import inspect
from ferenda import TextReader, util
from ferenda.testutil import RepoTester, file_parametrize
from ferenda.compa... | 39.135135 | 82 | 0.631906 |
c04b151e636326dee485fc70fa9e09aa52af0717 | 2,319 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import... | 55.214286 | 118 | 0.850367 |
c04b8e57191159c1e20db662b36e4eb42827c687 | 2,652 | py | Python | benchbuild/projects/benchbuild/xz.py | sturmianseq/benchbuild | e3cc1a24e877261e90baf781aa67a9d6f6528dac | [
"MIT"
] | 11 | 2017-10-05T08:59:35.000Z | 2021-05-29T01:43:07.000Z | benchbuild/projects/benchbuild/xz.py | sturmianseq/benchbuild | e3cc1a24e877261e90baf781aa67a9d6f6528dac | [
"MIT"
] | 326 | 2016-07-12T08:11:43.000Z | 2022-03-28T07:10:11.000Z | benchbuild/projects/benchbuild/xz.py | sturmianseq/benchbuild | e3cc1a24e877261e90baf781aa67a9d6f6528dac | [
"MIT"
] | 13 | 2016-06-17T12:13:35.000Z | 2022-01-04T16:09:12.000Z | from plumbum import local
import benchbuild as bb
from benchbuild.environments.domain.declarative import ContainerImage
from benchbuild.source import HTTP
from benchbuild.utils.cmd import make, tar
| 36.833333 | 77 | 0.536199 |
c04bfbdd189377e61884680d0c03817aca6a78ee | 1,101 | py | Python | train.py | sazzad/CarND-Behavioral-Cloning-P3 | 46599661bf194cf22683f49cae749eb403aaff01 | [
"MIT"
] | null | null | null | train.py | sazzad/CarND-Behavioral-Cloning-P3 | 46599661bf194cf22683f49cae749eb403aaff01 | [
"MIT"
] | null | null | null | train.py | sazzad/CarND-Behavioral-Cloning-P3 | 46599661bf194cf22683f49cae749eb403aaff01 | [
"MIT"
] | null | null | null | import numpy as np
import csv
import cv2
from keras.models import Sequential
from keras.layers import Dense, Flatten
if __name__ == "__main__":
X_train, y_train = load_data()
train(X_train, y_train) | 28.973684 | 80 | 0.647593 |
c04ce8c06bdc166d9b3b9ffe4880ea147a89ea15 | 3,226 | py | Python | models/FedXXX/resnet_utils.py | TD21forever/QoS-Predcition-Algorithm-library | f4503462887d719a39c9ccddd6cc55546e783fd5 | [
"MIT"
] | 2 | 2022-02-08T08:19:59.000Z | 2022-02-17T01:42:54.000Z | models/FedXXX/resnet_utils.py | TD21forever/QoS-Predcition-Algorithm-library | f4503462887d719a39c9ccddd6cc55546e783fd5 | [
"MIT"
] | null | null | null | models/FedXXX/resnet_utils.py | TD21forever/QoS-Predcition-Algorithm-library | f4503462887d719a39c9ccddd6cc55546e783fd5 | [
"MIT"
] | null | null | null | from abc import get_cache_token
from collections import OrderedDict
from torch import nn
# short cut
# block
# resnetblock
# resnet layerencoder
if __name__ == "__main__":
m = ResNetEncoder()
print(get_parameter_number(m))
| 28.548673 | 91 | 0.614073 |
c04d90069f191974d0ed369a9c73406bd54fa0cc | 2,114 | py | Python | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | xblock/test/test_json_conversion.py | edly-io/XBlock | 60d01a32e5bfe1b543f598cbc56ba3f4d736129d | [
"Apache-2.0"
] | null | null | null | """
Tests asserting that ModelTypes convert to and from json when working
with ModelDatas
"""
# Allow inspection of private class members
# pylint: disable=protected-access
from mock import Mock
from xblock.core import XBlock
from xblock.fields import Field, Scope, ScopeIds
from xblock.field_data import DictFieldData
... | 28.186667 | 120 | 0.64333 |
c04dc0e5e93dcddb8cf11931aefe2f5bf4588f05 | 10,592 | py | Python | uq_benchmark_2019/experiment_utils.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | uq_benchmark_2019/experiment_utils.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | uq_benchmark_2019/experiment_utils.py | pedersor/google-research | 6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2022 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... | 36.273973 | 80 | 0.715823 |
c04f13b9a712c28cf890f8bd241f887d6602c688 | 42,844 | py | Python | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | modisco/coordproducers.py | Bluedragon137/tfmodisco | d7c56b21e1bb58b07695ef3035f173b7d1a039e6 | [
"MIT"
] | null | null | null | from __future__ import division, print_function, absolute_import
from .core import SeqletCoordinates
from modisco import util
import numpy as np
from collections import defaultdict, Counter, OrderedDict
import itertools
import sys
import time
from .value_provider import (
AbstractValTransformer, AbsPercentileValTra... | 42.294176 | 80 | 0.618336 |
c04f8c1ca8657a2985f474bb739ac4de154e1a01 | 425 | py | Python | Google Jam/2016/lastword.py | djphan/Prog-Problems | db79d76f8a40e844c8cc61b3df2c0d52737ee9e4 | [
"MIT"
] | null | null | null | Google Jam/2016/lastword.py | djphan/Prog-Problems | db79d76f8a40e844c8cc61b3df2c0d52737ee9e4 | [
"MIT"
] | null | null | null | Google Jam/2016/lastword.py | djphan/Prog-Problems | db79d76f8a40e844c8cc61b3df2c0d52737ee9e4 | [
"MIT"
] | null | null | null | import sys
numTests = input()
for i in range (0, int(numTests)):
print ("Case #" + str(i+1) +": " + str(lastWord(input())))
| 25 | 100 | 0.647059 |
c04ff3ada5e9e3495ef3e426dee60d1388e47451 | 62,817 | py | Python | aiotdlib/api/types/update.py | pylakey/pytdlib | a390a298a24a7123f3f3aec9f995dee6d51a478e | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/types/update.py | pylakey/pytdlib | a390a298a24a7123f3f3aec9f995dee6d51a478e | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/types/update.py | pylakey/pytdlib | a390a298a24a7123f3f3aec9f995dee6d51a478e | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 29.203626 | 318 | 0.692711 |
c0507144735d0e0532afa021b9f51f1bb1e7c543 | 3,908 | py | Python | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | null | null | null | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | 3 | 2020-08-07T10:41:44.000Z | 2021-01-27T08:56:57.000Z | lib/tests/test_integration.py | OneIdentity/safeguard-sessions-plugin-cyberark-vault | 34f8c7a826b6b89c3c9a649b5395798263b4077f | [
"MIT"
] | null | null | null | #
# Copyright (c) 2019 One Identity
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, di... | 36.185185 | 139 | 0.753327 |
c050754add3acb4ba8ba228383257d1e46d1352d | 2,997 | py | Python | forum_modules/akismet/startup.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2017-07-14T09:58:07.000Z | 2017-07-14T09:58:07.000Z | forum_modules/akismet/startup.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | forum_modules/akismet/startup.py | Stackato-Apps/osqa | 728bb43ae913e33769c52f40cadb26721faaf2b2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import json
from django.utils.translation import ugettext as _
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.utils.encoding import smart_str
from django.shortcuts import render_to_response
from forum.modules import decorate
from forum import views
fro... | 38.423077 | 129 | 0.610944 |
c051e45b01f5963f9aee4c9d0f6e2146b9de7aad | 7,077 | py | Python | prototype/python/element_translator.py | doanminhdang/YAML_MATH | 4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8 | [
"MIT"
] | 1 | 2019-06-29T16:54:59.000Z | 2019-06-29T16:54:59.000Z | prototype/python/element_translator.py | doanminhdang/YAML_MATH | 4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8 | [
"MIT"
] | null | null | null | prototype/python/element_translator.py | doanminhdang/YAML_MATH | 4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8 | [
"MIT"
] | null | null | null | """
Translate an element, which is described by the YAML method file
and a descriptor file, into a target function.
Procedure:
1. When analyzing a YAML file, parse the call to the method-element, to get:
- list of inputs,
- list of outputs
2. Parse the YAML of that element, to know the name of the inputs and outputs... | 39.758427 | 94 | 0.687014 |
c0549485e176a6b48bb54cda44e0d335364d8ccb | 16,351 | py | Python | build_feature_vectors_32.py | weberdc/find_hccs | 43fcb151901f48765ea8e4ccf0b82dbb726762a3 | [
"Apache-2.0"
] | 7 | 2020-10-23T20:41:30.000Z | 2021-11-20T14:00:25.000Z | build_feature_vectors_32.py | weberdc/find_hccs | 43fcb151901f48765ea8e4ccf0b82dbb726762a3 | [
"Apache-2.0"
] | 5 | 2020-11-25T00:29:43.000Z | 2021-11-01T02:15:29.000Z | build_feature_vectors_32.py | weberdc/find_hccs | 43fcb151901f48765ea8e4ccf0b82dbb726762a3 | [
"Apache-2.0"
] | 2 | 2021-05-31T06:51:08.000Z | 2022-02-09T13:55:18.000Z | #!/usr/bin/env python3
import csv
import gzip
import json
import networkx as nx
import sys
import time
import utils
from argparse import ArgumentParser
from calculate_activity_network import embedded_extended_tweet_url, root_of_conversation
from collections import defaultdict
from datetime import datetime
from utils ... | 43.836461 | 153 | 0.633906 |
c0556573b1b396000e337b73f3de0c54b4d2d005 | 374 | py | Python | src/viewer/abs/forms.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 8 | 2021-03-20T13:12:25.000Z | 2022-02-07T11:17:40.000Z | src/viewer/abs/forms.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 8 | 2021-03-07T03:23:46.000Z | 2021-06-01T10:49:56.000Z | src/viewer/abs/forms.py | ozacas/asxtrade | a3645ae526bfc7a546fdf2a39520feda99e3390a | [
"Apache-2.0"
] | 3 | 2020-12-08T10:22:23.000Z | 2021-08-04T01:59:24.000Z | from django import forms
from django.core.exceptions import ValidationError
from abs.models import dataflows
| 31.166667 | 83 | 0.71123 |
c058a47a9fcf9cced343a8955317d5594bcf17a7 | 734 | py | Python | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | 1 | 2022-01-16T10:00:24.000Z | 2022-01-16T10:00:24.000Z | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/dot1x/clear.py | patrickboertje/genielibs | 61c37aacf3dd0f499944555e4ff940f92f53dacb | [
"Apache-2.0"
] | null | null | null | # Python
import logging
# Unicon
from unicon.core.errors import SubCommandFailure
# Logger
log = logging.getLogger(__name__)
def clear_access_session_intf(device, intf):
""" clear access-session interface {}
Args:
device (`obj`): Device object
intf('str'): Name of the interface ... | 24.466667 | 83 | 0.622616 |
c059b518fc62b90809941f99c3bd5f94aa341ed5 | 9,713 | py | Python | pipeline/forms.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | null | null | null | pipeline/forms.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | 1 | 2021-09-20T22:02:21.000Z | 2021-09-21T13:55:41.000Z | pipeline/forms.py | jnis77diver/django-pipeline | 8bac57adae84615d9d79ad19b2b591c2e46879f9 | [
"MIT"
] | 1 | 2021-09-18T01:39:48.000Z | 2021-09-18T01:39:48.000Z | """Support for referencing Pipeline packages in forms and widgets."""
from __future__ import unicode_literals
from django.contrib.staticfiles.storage import staticfiles_storage
from django.utils.functional import cached_property
try:
from django.utils.six import iteritems, add_metaclass
except ImportError:
fr... | 34.81362 | 79 | 0.615258 |
c05cbafe5128e838bdc6f0435f143a4bec7be43b | 1,838 | py | Python | api_user/views.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | api_user/views.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | api_user/views.py | archkwon/python-django-restful-mysql | a8097c08057de9656cb40266420fcffebb11bdb6 | [
"MIT"
] | null | null | null | from django.http import QueryDict
from django.http.response import JsonResponse
from rest_framework import viewsets, status
from rest_framework.views import APIView
from .serializers import *
# | 31.152542 | 72 | 0.650707 |
c05d4625afeae008646d224702597baba51c509c | 5,043 | py | Python | vms/create_kit_files.py | vmssoftware/python_3_8_2 | 06cdf3fc9ae103afc55cbd5657ba7c7d09120a81 | [
"CNRI-Python-GPL-Compatible"
] | 3 | 2020-11-30T22:36:38.000Z | 2021-01-22T01:00:06.000Z | vms/create_kit_files.py | vmssoftware/python_3_8_2 | 06cdf3fc9ae103afc55cbd5657ba7c7d09120a81 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | vms/create_kit_files.py | vmssoftware/python_3_8_2 | 06cdf3fc9ae103afc55cbd5657ba7c7d09120a81 | [
"CNRI-Python-GPL-Compatible"
] | 1 | 2021-04-13T13:17:02.000Z | 2021-04-13T13:17:02.000Z | import os
import re
import sys
if __name__ == "__main__":
import getopt
import datetime
opts, args = getopt.getopt(sys.argv[1:], '', ['type=', 'major=', 'minor=', 'level=', 'edit='])
type = 'F'
major = '3'
minor = '8'
level = '2'
edit = '' # 'd' + datetime.date.today().strftime('%Y... | 26.265625 | 120 | 0.601229 |
c05de0c488b3f0907732a9cffd73ea481b5c0be6 | 10,458 | py | Python | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | 4 | 2016-06-19T20:02:12.000Z | 2017-02-27T19:55:49.000Z | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | 6 | 2016-01-20T20:24:42.000Z | 2016-08-17T02:31:43.000Z | dotfiles/config/feltnerm/bin/dots.py | feltnerm/dotfiles | 0984ade31ecfcd003e1cce4f165fcd717e9b6317 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
# .py
# @TODO:
# - fix the diffing
# - use rsync across hosts or something fancy
import argparse, difflib, functools, re, shutil, subprocess, sys, time, os
from pprint import pprint
__description__ = "Manage your dotfiles."
ls = lambda path: os.listdir(path)
ls_abs = lambda path: [os.path.join... | 34.288525 | 104 | 0.52467 |
c05e6da89d714cfca87531c2eed521c2ad804f17 | 246 | py | Python | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | null | null | null | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | null | null | null | plot_log_population.py | catskillsresearch/openasr20 | b9821c4ee6a51501e81103c1d6d4db0ea8aaa31e | [
"Apache-2.0"
] | 1 | 2021-07-28T02:13:21.000Z | 2021-07-28T02:13:21.000Z | import matplotlib.pylab as plt
| 24.6 | 69 | 0.707317 |
c05e9891a35e2b972d23578bd72644f77e52bb11 | 12,711 | py | Python | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | 1 | 2020-02-16T13:18:39.000Z | 2020-02-16T13:18:39.000Z | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | 3 | 2017-11-10T14:06:05.000Z | 2020-04-10T08:27:00.000Z | src/stargazer/stargazer.py | magazino/stargazer | d350959b830b084d31656682721f68b22683ceba | [
"MIT"
] | null | null | null | """
Driver class for Hagisonic Stargazer, with no ROS dependencies.
"""
from serial import Serial
from collections import deque
import re
import yaml
import time
import logging
import rospy
import numpy as np
from threading import Thread, Event
from tf import transformations
# STX: char that represents the start of a ... | 33.274869 | 131 | 0.567855 |
c06110be42afdd7912f3230ce0bb253e62f06b14 | 107 | py | Python | example.py | karishmashuklaa/flatifyLists | af9c1cfc45c29756ff9e285dba65f3b4909dabab | [
"MIT"
] | null | null | null | example.py | karishmashuklaa/flatifyLists | af9c1cfc45c29756ff9e285dba65f3b4909dabab | [
"MIT"
] | null | null | null | example.py | karishmashuklaa/flatifyLists | af9c1cfc45c29756ff9e285dba65f3b4909dabab | [
"MIT"
] | null | null | null | from flatifylists import flatifyList
example = [[[1,2], [3,[4,[5],6],7],8,9]]
print(flatifyList(example)) | 21.4 | 40 | 0.672897 |
c0619baa743809ca6b4e84726f67140652acbe34 | 834 | py | Python | pympeg/_probe.py | AP-Atul/pympeg | 26d18883d528ce73c09982f61440d170661165ae | [
"Unlicense"
] | 5 | 2021-01-18T03:19:32.000Z | 2021-04-27T06:58:41.000Z | pympeg/_probe.py | AP-Atul/pympeg | 26d18883d528ce73c09982f61440d170661165ae | [
"Unlicense"
] | null | null | null | pympeg/_probe.py | AP-Atul/pympeg | 26d18883d528ce73c09982f61440d170661165ae | [
"Unlicense"
] | null | null | null | import os
import json
import subprocess
from ._exceptions import ProbeException
__all__ = ['probe']
def probe(filename, cmd='ffprobe', timeout=None):
"""Runs the ffprobe on the given file and outputs in json format """
if not os.path.isfile(filename):
raise FileExistsError(f"Input file {filename} d... | 24.529412 | 72 | 0.640288 |
c063c02a86fbd38bc9d19422a9222b6d2583e226 | 252 | py | Python | example/func_doc.py | tinashime/Python27 | b632918c7368a9bcfc5af8353e136247d954fb5e | [
"bzip2-1.0.6"
] | null | null | null | example/func_doc.py | tinashime/Python27 | b632918c7368a9bcfc5af8353e136247d954fb5e | [
"bzip2-1.0.6"
] | null | null | null | example/func_doc.py | tinashime/Python27 | b632918c7368a9bcfc5af8353e136247d954fb5e | [
"bzip2-1.0.6"
] | null | null | null | def printMax(x,y):
'''prints the maximum of two numbers.
The two values must be integers.'''
x = int(x)
y = int(y)
if x > y:
print x,'is maximun'
else:
print y,'is maximum'
printMax(3,5)
print printMax.__doc__
| 18 | 41 | 0.575397 |
c064dd6092bc97df5e3082e40d12bf519228fd1e | 16,602 | py | Python | wifi_dos_own.py | Mr-Cracker-Pro/red-python-scripts | 5bead83038aadf53fc868fb9a786cb37824b18eb | [
"MIT"
] | 1,353 | 2021-01-07T17:12:01.000Z | 2022-03-31T21:30:38.000Z | wifi_dos_own.py | deepahir/red-python-scripts | 5deef698bf505de30735120e7c3bab34707ad32c | [
"MIT"
] | 29 | 2021-01-30T21:12:16.000Z | 2022-03-04T15:06:12.000Z | wifi_dos_own.py | deepahir/red-python-scripts | 5deef698bf505de30735120e7c3bab34707ad32c | [
"MIT"
] | 1,238 | 2021-01-07T17:05:18.000Z | 2022-03-31T23:25:04.000Z | #!/usr/bin/env python3
# Disclaimer:
# This script is for educational purposes only.
# Do not use against any network that you don't own or have authorization to test.
#!/usr/bin/python3
# We will be using the csv module to work with the data captured by airodump-ng.
import csv
# If we move csv files to a backup ... | 50.1571 | 219 | 0.634743 |
c0668c5403b0ea8527a26c2985cb37df3eafd6d0 | 597 | py | Python | lightwood/mixers/helpers/debugging.py | ritwik12/lightwood | 7975688355fba8b0f8349dd55a1b6cb625c3efd0 | [
"MIT"
] | null | null | null | lightwood/mixers/helpers/debugging.py | ritwik12/lightwood | 7975688355fba8b0f8349dd55a1b6cb625c3efd0 | [
"MIT"
] | null | null | null | lightwood/mixers/helpers/debugging.py | ritwik12/lightwood | 7975688355fba8b0f8349dd55a1b6cb625c3efd0 | [
"MIT"
] | null | null | null | import subprocess
def get_gpu_memory_map():
'''
Keys are device ids as integers.
Values are memory usage as integers in MB.
'''
result = subprocess.check_output(
[
'nvidia-smi', '--query-gpu=memory.used',
'--format=csv,nounits,noheader'
], encoding='... | 27.136364 | 66 | 0.631491 |
c066f48fe0ef8d58aa4b19024e03a53d9943e528 | 2,010 | py | Python | optimization/prac1/tests/test_ridge.py | shaandesai1/AIMS | fee0be214b393af2184d565eb1e9aebb4eb6eeec | [
"MIT"
] | null | null | null | optimization/prac1/tests/test_ridge.py | shaandesai1/AIMS | fee0be214b393af2184d565eb1e9aebb4eb6eeec | [
"MIT"
] | null | null | null | optimization/prac1/tests/test_ridge.py | shaandesai1/AIMS | fee0be214b393af2184d565eb1e9aebb4eb6eeec | [
"MIT"
] | null | null | null | import unittest
from sys import argv
import numpy as np
import torch
from objective.ridge import Ridge, Ridge_ClosedForm, Ridge_Gradient
from .utils import Container, assert_all_close, assert_all_close_dict
if __name__ == '__main__':
unittest.main(argv=argv)
| 30.923077 | 79 | 0.656716 |
c0670360313a88da7a90013e4063946791935b2d | 11,795 | py | Python | app/parking/views.py | zollf/CITS3200 | 95fb7569dad325c057e441cd7265d3e85735c058 | [
"CC0-1.0"
] | null | null | null | app/parking/views.py | zollf/CITS3200 | 95fb7569dad325c057e441cd7265d3e85735c058 | [
"CC0-1.0"
] | null | null | null | app/parking/views.py | zollf/CITS3200 | 95fb7569dad325c057e441cd7265d3e85735c058 | [
"CC0-1.0"
] | null | null | null | from django.shortcuts import redirect
from django.http.response import JsonResponse
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_protect
from django.contrib.auth.decorators import login_required
from rest_framework.response import Response
from rest_framework.decorators import api... | 36.292308 | 120 | 0.603815 |
c068ebb6bccce46da01fec0d1da4f714e0e2357e | 33,949 | py | Python | utils.py | eepLearning/learn2learn | 4ed48e69f1ca5c9508331e15fd4a8f65c3cae750 | [
"MIT"
] | null | null | null | utils.py | eepLearning/learn2learn | 4ed48e69f1ca5c9508331e15fd4a8f65c3cae750 | [
"MIT"
] | null | null | null | utils.py | eepLearning/learn2learn | 4ed48e69f1ca5c9508331e15fd4a8f65c3cae750 | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch.autograd import grad
from learn2learn.utils import clone_module, update_module
from torch import nn, optim
def maml_update(model, lr, grads=None):
"""
[[Source]](https://github.com/learnables/learn2learn/blob/master/learn2learn/algorithms/maml.py)
**Description**
Perfo... | 34.855236 | 113 | 0.745353 |
c06a8301008200b139bb039c709d82f05d2164d7 | 1,602 | py | Python | sigda/test/graylog.py | yangluoshen/sigda | 83a2149d07edfbe56be95d5dc2a316c044bee54e | [
"BSD-2-Clause"
] | null | null | null | sigda/test/graylog.py | yangluoshen/sigda | 83a2149d07edfbe56be95d5dc2a316c044bee54e | [
"BSD-2-Clause"
] | 3 | 2017-08-21T07:26:11.000Z | 2017-11-09T02:19:23.000Z | sigda/test/graylog.py | yangluoshen/sigda | 83a2149d07edfbe56be95d5dc2a316c044bee54e | [
"BSD-2-Clause"
] | null | null | null | #coding:utf-8
#from graypy import GELFHandler
import logging.config
import logging
'''
handler = GELFHandler(host='0.0.0.0', port=12201)
logger = logging.getLogger()
logger.addHandler(handler)
logger.error('catch error')
'''
LOG_LEVEL = 'DEBUG'
LOG_CONFIG = get_log_config('sigda')
logging.config.dictConfig(LOG_CO... | 23.910448 | 92 | 0.473159 |
c06b4470ee6ba272de73e528bcb01060567707f9 | 142 | py | Python | instanotifier/fetcher/scripts/fetcher.py | chaudbak/instanotifier | d29bc6bd9b7a003403886bfff1376b2c1925cc74 | [
"MIT"
] | null | null | null | instanotifier/fetcher/scripts/fetcher.py | chaudbak/instanotifier | d29bc6bd9b7a003403886bfff1376b2c1925cc74 | [
"MIT"
] | 6 | 2020-06-06T01:27:17.000Z | 2022-02-10T11:20:17.000Z | instanotifier/fetcher/scripts/fetcher.py | chaudbak/instanotifier | d29bc6bd9b7a003403886bfff1376b2c1925cc74 | [
"MIT"
] | null | null | null | from instanotifier.fetcher import tests
| 20.285714 | 59 | 0.739437 |
c06b5a0da650cb5b7106dc53e3294c6abe96376c | 676 | py | Python | clase_4/populate_alumnos.py | noctilukkas/python-programming | 0ced5e1390e5501bae79fd30dd2baefd7bc09040 | [
"Apache-2.0"
] | null | null | null | clase_4/populate_alumnos.py | noctilukkas/python-programming | 0ced5e1390e5501bae79fd30dd2baefd7bc09040 | [
"Apache-2.0"
] | null | null | null | clase_4/populate_alumnos.py | noctilukkas/python-programming | 0ced5e1390e5501bae79fd30dd2baefd7bc09040 | [
"Apache-2.0"
] | null | null | null | import sqlite3
if __name__ == '__main__':
main()
| 22.533333 | 79 | 0.597633 |
fbe36d61bbb46c7d89d9f7a7b5921b3928eef150 | 366 | py | Python | cap11/main.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap11/main.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap11/main.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | import sqlite3
con = sqlite3.connect('agenda.db')
cursor = con.cursor()
cursor.execute('''
create table if not exists agenda(
nome text,
telefone text)
''')
cursor.execute('''
insert into agenda(nome, telefone)
values(?, ?)
''', ("Tamara", "51-98175-05... | 22.875 | 42 | 0.562842 |
fbe380b10e29919d567688beee1e5f00654464f3 | 4,298 | py | Python | falconcv/data/scraper/flickr_scraper.py | haruiz/FalconCV | 0c9444451a60c8f6375c30426811160ae79b02ba | [
"Apache-2.0"
] | 16 | 2020-06-05T01:26:04.000Z | 2020-09-18T23:56:14.000Z | falconcv/data/scraper/flickr_scraper.py | haruiz/FalconCV | 0c9444451a60c8f6375c30426811160ae79b02ba | [
"Apache-2.0"
] | 13 | 2020-06-01T17:35:22.000Z | 2020-09-22T23:19:27.000Z | falconcv/data/scraper/flickr_scraper.py | haruiz/FalconCV | 0c9444451a60c8f6375c30426811160ae79b02ba | [
"Apache-2.0"
] | 2 | 2020-06-06T06:10:58.000Z | 2020-06-08T07:19:24.000Z | import logging
import math
import re
import time
import dask
import numpy as np
import requests
import json
import xml.etree.ElementTree as ET
from falconcv.data.scraper.scraper import ImagesScraper
from falconcv.util import ImageUtil
logger = logging.getLogger(__name__)
FLICKR_ENDPOINT = "https://www.flickr.com/servic... | 37.701754 | 90 | 0.543509 |
fbe3b3f30ddf6f664ac393236c6cc50652de4531 | 9,893 | py | Python | argparser.py | geoff-smith/MCplotscripts | 16dd5fd849671bb082a71f08492676be876209d3 | [
"MIT"
] | null | null | null | argparser.py | geoff-smith/MCplotscripts | 16dd5fd849671bb082a71f08492676be876209d3 | [
"MIT"
] | null | null | null | argparser.py | geoff-smith/MCplotscripts | 16dd5fd849671bb082a71f08492676be876209d3 | [
"MIT"
] | null | null | null | # argParser
# this class generates a RunParams object from the args passed to the script
from runparams import *
import os.path
import string
## handles args passed to the program
#
| 39.730924 | 153 | 0.574548 |
fbe4f5813f57f07bcd01eac89fa0f4bcc8abfeac | 1,326 | py | Python | floppy/_surf-garbage.py | hillscott/windows | ba32cd43db1bd1495f0150ab0c32ee63b5a5d415 | [
"Apache-2.0"
] | null | null | null | floppy/_surf-garbage.py | hillscott/windows | ba32cd43db1bd1495f0150ab0c32ee63b5a5d415 | [
"Apache-2.0"
] | null | null | null | floppy/_surf-garbage.py | hillscott/windows | ba32cd43db1bd1495f0150ab0c32ee63b5a5d415 | [
"Apache-2.0"
] | null | null | null | # pip install -U pywinauto
from pywinauto.application import Application
import subprocess
import time
subprocess.run('SCHTASKS /DELETE /TN BuildTasks\\Sites /f')
app = Application(backend='uia')
app.start('C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe --force-renderer-accessibility ')
window = app.top_win... | 27.625 | 103 | 0.748115 |
fbe52989054e585791a8f893935e850e1910b673 | 992 | py | Python | sla/migrations/0005_slaprobe_workflow.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 84 | 2017-10-22T11:01:39.000Z | 2022-02-27T03:43:48.000Z | sla/migrations/0005_slaprobe_workflow.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 22 | 2017-12-11T07:21:56.000Z | 2021-09-23T02:53:50.000Z | sla/migrations/0005_slaprobe_workflow.py | prorevizor/noc | 37e44b8afc64318b10699c06a1138eee9e7d6a4e | [
"BSD-3-Clause"
] | 23 | 2017-12-06T06:59:52.000Z | 2022-02-24T00:02:25.000Z | # ----------------------------------------------------------------------
# Migrate SLAProbe to workflow
# ----------------------------------------------------------------------
# Copyright (C) 2007-2021 The NOC Project
# See LICENSE for details
# ----------------------------------------------------------------------
... | 31 | 90 | 0.484879 |
fbe699dad305df809951dcf85f4ec36f0f78ab23 | 2,640 | py | Python | seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | seqpos/lib/python2.7/site-packages/mercurial/dirstateguard.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | # dirstateguard.py - class to allow restoring dirstate after failure
#
# Copyright 2005-2007 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from __future__ import absolute_import
from .i18n import ... | 34.736842 | 77 | 0.610227 |
fbe71debd90d8d660d1121d1807a3090d9eabd7b | 2,061 | py | Python | config.py | mF2C/UserManagement | 0a44f8fbf86a140156da2f87a25490345f296cbb | [
"Apache-2.0"
] | null | null | null | config.py | mF2C/UserManagement | 0a44f8fbf86a140156da2f87a25490345f296cbb | [
"Apache-2.0"
] | 12 | 2017-10-25T08:05:32.000Z | 2019-11-13T14:29:42.000Z | config.py | mF2C/UserManagement | 0a44f8fbf86a140156da2f87a25490345f296cbb | [
"Apache-2.0"
] | 1 | 2017-10-24T10:13:55.000Z | 2017-10-24T10:13:55.000Z | """
CONFIGURATION FILE
This is being developed for the MF2C Project: http://www.mf2c-project.eu/
Copyright: Roi Sucasas Font, Atos Research and Innovation, 2017.
This code is licensed under an Apache 2.0 license. Please, refer to the LICENSE.TXT file for more information
Created on 18 oct. 2018
@author: Roi Sucasas... | 32.714286 | 109 | 0.501698 |
fbe8a390825becc2ff9eab5332457693f2473fbc | 3,606 | py | Python | pysnmp-with-texts/IANA-MALLOC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/IANA-MALLOC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/IANA-MALLOC-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module IANA-MALLOC-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IANA-MALLOC-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:50:25 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | 100.166667 | 537 | 0.781475 |
fbe96376f6c7e8ea5a7177b454718260bda00d58 | 112 | py | Python | api/base/views/__init__.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 197 | 2016-12-08T02:33:32.000Z | 2022-03-23T14:27:47.000Z | api/base/views/__init__.py | simpsonw/atmosphere | 3a5203ef0b563de3a0e8c8c8715df88186532d7a | [
"BSD-3-Clause"
] | 385 | 2017-01-03T22:51:46.000Z | 2020-12-16T16:20:42.000Z | api/base/views/__init__.py | benlazarine/atmosphere | 38fad8e4002e510e8b4294f2bb5bc75e8e1817fa | [
"BSD-3-Clause"
] | 50 | 2016-12-08T08:32:25.000Z | 2021-12-10T00:21:39.000Z | from .version import VersionViewSet, DeployVersionViewSet
__all__ = ["VersionViewSet", "DeployVersionViewSet"]
| 28 | 57 | 0.821429 |
fbed4a160c462e80695d00929515e53d559a44ef | 455 | py | Python | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 528 | 2020-01-28T18:21:00.000Z | 2021-12-09T06:27:51.000Z | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 360 | 2020-01-28T18:34:30.000Z | 2021-12-10T08:03:32.000Z | amaranth/vendor/xilinx_spartan_3_6.py | psumesh/nmigen | 7d611b8fc1d9e58853ff268ec38ff8f4131a9774 | [
"BSD-2-Clause"
] | 100 | 2020-02-06T21:55:46.000Z | 2021-11-25T19:20:44.000Z | import warnings
from .xilinx import XilinxPlatform
__all__ = ["XilinxSpartan3APlatform", "XilinxSpartan6Platform"]
XilinxSpartan3APlatform = XilinxPlatform
XilinxSpartan6Platform = XilinxPlatform
# TODO(amaranth-0.4): remove
warnings.warn("instead of amaranth.vendor.xilinx_spartan_3_6.XilinxSpartan3APlatform and... | 26.764706 | 90 | 0.782418 |
fbee0d4e9115c00d9a52094547d27c43033ebffb | 2,968 | py | Python | spatialtis/_plotting/api/community_map.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 10 | 2020-07-14T13:27:35.000Z | 2021-11-24T21:41:30.000Z | spatialtis/_plotting/api/community_map.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | 21 | 2021-01-10T09:39:25.000Z | 2022-03-12T01:04:52.000Z | spatialtis/_plotting/api/community_map.py | Mr-Milk/SpatialTis | bcdc6df5213b8b256cbe4c9a7c0f3b5e6d3c56b6 | [
"Apache-2.0"
] | null | null | null | from ast import literal_eval
from collections import Counter
from typing import Dict, Optional
from anndata import AnnData
from spatialtis.config import Config, analysis_list
from ...utils import doc
from ..base import graph_position_interactive, graph_position_static
from .utils import query_df
| 31.242105 | 91 | 0.637466 |
fbef292579d80d2de80ed4ab24cb1a2133c269b6 | 7,209 | py | Python | pynics/binparse/castep_bin_results.py | ThatPerson/pynics | ae9dd58fa4353c4907f6fd7d6ad368029a4288f1 | [
"MIT"
] | 2 | 2019-10-03T21:18:17.000Z | 2019-10-05T13:08:36.000Z | pynics/binparse/castep_bin_results.py | ThatPerson/pynics | ae9dd58fa4353c4907f6fd7d6ad368029a4288f1 | [
"MIT"
] | 2 | 2021-06-25T15:11:27.000Z | 2021-10-04T13:23:04.000Z | pynics/binparse/castep_bin_results.py | ThatPerson/pynics | ae9dd58fa4353c4907f6fd7d6ad368029a4288f1 | [
"MIT"
] | 1 | 2021-06-25T14:32:07.000Z | 2021-06-25T14:32:07.000Z | # Python 2-to-3 compatibility code
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import collections
from pynics.binparse.forbinfile import RecordError
# Utility routine
castep_bin_olist = {
'E_FERMI... | 34.826087 | 78 | 0.629768 |
fbef307f38bef0fc49bdcc1050b0a7022b885117 | 1,084 | py | Python | epi-poc-demo/node-b/node-b.py | onnovalkering/epif-poc | 0fac10ce59037fbf8725f09808813dbab71ff70a | [
"Apache-2.0"
] | null | null | null | epi-poc-demo/node-b/node-b.py | onnovalkering/epif-poc | 0fac10ce59037fbf8725f09808813dbab71ff70a | [
"Apache-2.0"
] | null | null | null | epi-poc-demo/node-b/node-b.py | onnovalkering/epif-poc | 0fac10ce59037fbf8725f09808813dbab71ff70a | [
"Apache-2.0"
] | null | null | null | import os
import socket
import threading
HEADER = 64
PORT = 5053
FW = "192.168.101.2"
ADDR = (FW, PORT)
FORMAT = 'utf-8'
DISCONNECT_MESSAGE = "!DISCONNECT"
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(ADDR)
print("[STARTING] server is starting...")
start()
| 23.565217 | 74 | 0.628229 |
fbef8b98b95a0bd508e97ef365acd9e2c1cbd2ce | 652 | py | Python | sliding_window/equal_substring.py | sleebapaul/codeforces | 50c8bff0b36e6ce7e8f89c7c827ae8845f80098e | [
"MIT"
] | null | null | null | sliding_window/equal_substring.py | sleebapaul/codeforces | 50c8bff0b36e6ce7e8f89c7c827ae8845f80098e | [
"MIT"
] | null | null | null | sliding_window/equal_substring.py | sleebapaul/codeforces | 50c8bff0b36e6ce7e8f89c7c827ae8845f80098e | [
"MIT"
] | null | null | null | """
1208. Get Equal Substrings Within Budget
Straight forward. Asked the max len, so count the max each time.
""" | 27.166667 | 72 | 0.518405 |
fbef9d38a58cfa2a1c22c680025cec376e6993bf | 13,836 | py | Python | test/functional/esperanza_withdraw.py | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | null | null | null | test/functional/esperanza_withdraw.py | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | null | null | null | test/functional/esperanza_withdraw.py | frolosofsky/unit-e | d3d12508b915986841bd19c4dee9e50dd662a112 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The Unit-e developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import UnitETestFramework
from test_framework.util import (
json,
con... | 46.901695 | 113 | 0.568661 |
fbf016290a6953a4fa95305b7831cd89ba6cb242 | 2,213 | py | Python | test/geocoders/placefinder.py | gongso1st/geopy | 9252f4b12197ff3c5e3fae50d9bae74974d5d20f | [
"MIT"
] | 1 | 2019-07-17T14:38:52.000Z | 2019-07-17T14:38:52.000Z | test/geocoders/placefinder.py | gongso1st/geopy | 9252f4b12197ff3c5e3fae50d9bae74974d5d20f | [
"MIT"
] | null | null | null | test/geocoders/placefinder.py | gongso1st/geopy | 9252f4b12197ff3c5e3fae50d9bae74974d5d20f | [
"MIT"
] | 1 | 2021-06-28T01:20:12.000Z | 2021-06-28T01:20:12.000Z |
import unittest
from geopy.compat import u
from geopy.point import Point
from geopy.geocoders import YahooPlaceFinder
from test.geocoders.util import GeocoderTestBase, env
| 28.371795 | 87 | 0.598735 |
fbf1cd1a479f1f30a64fa316deccf90f2fde6080 | 1,151 | py | Python | inetdxmlrpc.py | Leonidas-from-XIV/sandbox | ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50 | [
"WTFPL"
] | null | null | null | inetdxmlrpc.py | Leonidas-from-XIV/sandbox | ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50 | [
"WTFPL"
] | null | null | null | inetdxmlrpc.py | Leonidas-from-XIV/sandbox | ca1f53d4ba1c27be4397c18bf3d5a2ccf9db6a50 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python2.4
# -*- encoding: latin-1 -*-
"""A small XML-RPC Server running under control
of the internet superserver inetd.
Configuring:
Add this line to your inetd.conf
embedxmlrpc stream tcp nowait user /usr/sbin/tcpd inetdxmlrpc.py
Where user is the user to execute the script and
inetdxmlp... | 25.577778 | 77 | 0.645526 |
fbf23a32edea1c76b286e1eb5b7cddd3cfc77494 | 17,504 | py | Python | examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 38 | 2017-04-26T04:00:09.000Z | 2022-02-10T02:51:05.000Z | examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 17 | 2017-11-20T20:47:09.000Z | 2022-02-09T23:48:46.000Z | examples/tensorflow/train/crnn_chinese/code_multi/tools/train_shadownet_multi.py | soar-zhengjian/uai-sdk | e195bd3fb2b97aca7dac6722d332c25b7070481f | [
"Apache-2.0"
] | 28 | 2017-07-08T05:23:13.000Z | 2020-08-18T03:12:27.000Z | """
Train shadow net script
"""
import argparse
import functools
import itertools
import os
import os.path as ops
import sys
import time
import numpy as np
import tensorflow as tf
import pprint
import shadownet
import six
from six.moves import xrange # pylint: disable=redefined-builtin
sys.path.append('/data/')
fr... | 40.424942 | 159 | 0.584324 |
fbf29fa665c3f19650fb43d520ce03961090f743 | 7,007 | py | Python | ovs/extensions/hypervisor/hypervisors/vmware.py | mflu/openvstorage_centos | 280a98d3e5d212d58297e0ffcecd325dfecef0f8 | [
"Apache-2.0"
] | 1 | 2015-08-29T16:36:40.000Z | 2015-08-29T16:36:40.000Z | ovs/extensions/hypervisor/hypervisors/vmware.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | ovs/extensions/hypervisor/hypervisors/vmware.py | rootfs-analytics/openvstorage | 6184822340faea1d2927643330a7aaa781d92d36 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 CloudFounders NV
#
# 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 writ... | 34.860697 | 123 | 0.628942 |
fbf2ccc900304e6fa6940b6cc3e4418b5177231a | 6,314 | py | Python | fake_switches/dell10g/command_processor/config_interface.py | idjaw/fake-switches | 9b481e17a26cca24bf3ef44466feebf9bff794f8 | [
"Apache-2.0"
] | null | null | null | fake_switches/dell10g/command_processor/config_interface.py | idjaw/fake-switches | 9b481e17a26cca24bf3ef44466feebf9bff794f8 | [
"Apache-2.0"
] | 1 | 2022-02-11T03:49:01.000Z | 2022-02-11T03:49:01.000Z | fake_switches/dell10g/command_processor/config_interface.py | idjaw/fake-switches | 9b481e17a26cca24bf3ef44466feebf9bff794f8 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Internap.
#
# 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, so... | 46.77037 | 119 | 0.548939 |
fbf2e31cb815224097d8066fca9f33447d38f065 | 939 | py | Python | setup.py | Spredzy/python-memsource | 9624a1e93dab9cec874164fb390432c51ab0de31 | [
"Apache-2.0"
] | null | null | null | setup.py | Spredzy/python-memsource | 9624a1e93dab9cec874164fb390432c51ab0de31 | [
"Apache-2.0"
] | null | null | null | setup.py | Spredzy/python-memsource | 9624a1e93dab9cec874164fb390432c51ab0de31 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import setuptools
from memsource import version
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="memsource",
version=version.__version__,
author="Yanis Guenane",
author_email="yguenane+opensource@gmail.com",
desc... | 27.617647 | 61 | 0.664537 |
fbf375a6746c12699f7672902496fe49ba8773ae | 5,637 | py | Python | sktime/transformations/series/func_transform.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 2 | 2021-12-28T10:48:11.000Z | 2022-03-06T18:08:01.000Z | sktime/transformations/series/func_transform.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | 2 | 2021-04-19T17:38:33.000Z | 2021-07-25T18:44:10.000Z | sktime/transformations/series/func_transform.py | marcio55afr/sktime | 25ba2f470f037366ca6b0e529137d3d0a6191e2e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
"""Implements FunctionTransformer, a class to create custom transformers."""
__author__ = ["Bouke Postma"]
__all__ = ["FunctionTransformer"]
import numpy as np
from sktime.transformations.base import _SeriesToSeriesTransformer
from sktime.utils.validation.series imp... | 33.553571 | 88 | 0.631896 |
fbf4288218731b27d1646ee39344ec7cc83f8d4a | 13,963 | py | Python | regparser/tree/xml_parser/reg_text.py | cfpb/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 36 | 2015-01-05T21:17:36.000Z | 2020-04-28T21:02:55.000Z | regparser/tree/xml_parser/reg_text.py | DalavanCloud/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 49 | 2015-01-28T15:54:25.000Z | 2018-08-20T20:20:08.000Z | regparser/tree/xml_parser/reg_text.py | DalavanCloud/regulations-parser | 9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424 | [
"CC0-1.0"
] | 23 | 2015-01-28T15:34:18.000Z | 2021-02-20T10:53:34.000Z | # vim: set encoding=utf-8
import re
from lxml import etree
import logging
from regparser import content
from regparser.tree.depth import heuristics, rules, markers as mtypes
from regparser.tree.depth.derive import derive_depths
from regparser.tree.struct import Node
from regparser.tree.paragraph import p_level_of
from... | 37.840108 | 78 | 0.587911 |
fbf49444e0f4679af981bbaa8faf8266920ca318 | 1,216 | py | Python | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | setup.py | mark-dawn/stytra | be1d5be0a44aeb685d475240d056ef7adf60ed06 | [
"MIT"
] | null | null | null | from distutils.core import setup
from setuptools import find_packages
setup(
name="stytra",
version="0.1",
author="Vilim Stih, Luigi Petrucco @portugueslab",
author_email="vilim@neuro.mpg.de",
license="MIT",
packages=find_packages(),
install_requires=[
"pyqtgraph>=0.10.0",
... | 28.27907 | 105 | 0.591283 |
fbf4c0c322e799620006a7ec56b567282c3ba0ca | 226 | py | Python | checkTicTacToe/checkTicTacToe.py | nate-ar-williams/coding-questions | 24baa901a786e6e2c4e8ea823a26416bc51e1f6a | [
"MIT"
] | null | null | null | checkTicTacToe/checkTicTacToe.py | nate-ar-williams/coding-questions | 24baa901a786e6e2c4e8ea823a26416bc51e1f6a | [
"MIT"
] | null | null | null | checkTicTacToe/checkTicTacToe.py | nate-ar-williams/coding-questions | 24baa901a786e6e2c4e8ea823a26416bc51e1f6a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# let board be 3x3 bool array
if __name__ == '__main__':
main()
| 12.555556 | 32 | 0.588496 |
fbf52c7f3a9bab66d56f2bccbaf8974ecb5420d3 | 2,138 | py | Python | openerp/exceptions.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 3 | 2016-01-29T14:39:49.000Z | 2018-12-29T22:42:00.000Z | openerp/exceptions.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | 2 | 2016-03-23T14:29:41.000Z | 2017-02-20T17:11:30.000Z | openerp/exceptions.py | ntiufalara/openerp7 | 903800da0644ec0dd9c1dcd34205541f84d45fe4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | 37.508772 | 78 | 0.658092 |
fbf6f8315c8b89ca91d3b286cb9fd7bfaffd9e47 | 83,653 | py | Python | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 18 | 2020-05-30T01:41:24.000Z | 2021-03-04T08:07:35.000Z | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 1 | 2020-08-13T02:19:42.000Z | 2020-08-13T02:19:42.000Z | MainUi.py | james646-hs/Fgo_teamup | f1e5c6f514818b68e9abb9eab3c6103fd000819a | [
"MIT"
] | 2 | 2020-06-13T18:23:07.000Z | 2020-08-13T02:08:54.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainUi.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 64.746904 | 106 | 0.748927 |
fbf8cddf274b4edc3f9ca19f3358df84f5395fdb | 4,122 | py | Python | utils/argparse.py | toytag/self-supervised-learning-for-semantic-segmentation | b3326df6d1fa045fabb27fc30542313adee00d30 | [
"MIT"
] | null | null | null | utils/argparse.py | toytag/self-supervised-learning-for-semantic-segmentation | b3326df6d1fa045fabb27fc30542313adee00d30 | [
"MIT"
] | null | null | null | utils/argparse.py | toytag/self-supervised-learning-for-semantic-segmentation | b3326df6d1fa045fabb27fc30542313adee00d30 | [
"MIT"
] | null | null | null | import argparse
| 64.40625 | 90 | 0.566715 |
fbf9c31021598e1cfc750b4e1fb2c63076b4d3ce | 2,401 | py | Python | finicky/schema.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | 14 | 2021-02-12T19:04:21.000Z | 2021-03-12T18:18:09.000Z | finicky/schema.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | 5 | 2021-02-12T16:04:37.000Z | 2021-04-14T12:05:02.000Z | finicky/schema.py | yaaminu/yaval | 32f04ecfa092c978fc026f6b7f58d6cf2defd8c9 | [
"MIT"
] | null | null | null | from finicky.validators import ValidationException
def validate(schema, data, hook=None):
"""
Given an input named `data` validate it against `schema` returning errors encountered if any and the input data.
It's important to note that, validation continues even if an error is encountered.
:param schem... | 49 | 118 | 0.678051 |
fbfb1bbd5566de1b6744d8dee7be28df74fd818c | 3,194 | py | Python | tests/unique_test.py | yohplala/vaex | ca7927a19d259576ca0403ee207a597aaef6adc2 | [
"MIT"
] | null | null | null | tests/unique_test.py | yohplala/vaex | ca7927a19d259576ca0403ee207a597aaef6adc2 | [
"MIT"
] | null | null | null | tests/unique_test.py | yohplala/vaex | ca7927a19d259576ca0403ee207a597aaef6adc2 | [
"MIT"
] | null | null | null | from common import small_buffer
import pytest
import numpy as np
import pyarrow as pa
import vaex
| 33.270833 | 102 | 0.584534 |
fbfb4b2b18ec51f6264b25bae8ef574c623943f4 | 810 | py | Python | utils/utilsFreq.py | geobook2015/magPy | af0f31fc931786ac6f8d69a5290366418035859d | [
"Apache-2.0"
] | 1 | 2021-05-19T18:29:15.000Z | 2021-05-19T18:29:15.000Z | utils/utilsFreq.py | geobook2015/magPy | af0f31fc931786ac6f8d69a5290366418035859d | [
"Apache-2.0"
] | null | null | null | utils/utilsFreq.py | geobook2015/magPy | af0f31fc931786ac6f8d69a5290366418035859d | [
"Apache-2.0"
] | 2 | 2021-06-03T01:59:02.000Z | 2021-07-03T07:47:10.000Z | # utility functions for frequency related stuff
import numpy as np
import numpy.fft as fft
import math
# use this function for all FFT calculations
# then if change FFT later (i.e. FFTW), just replace one function
| 27.931034 | 65 | 0.728395 |
fbfbfe77a095f3da5c436ccb64b9b59f084a3b2c | 2,329 | py | Python | tools/extract_keywords.py | bitdotioinc/pglast | da4c0b1c237aad98894179af9cd29e044d526ba8 | [
"PostgreSQL"
] | null | null | null | tools/extract_keywords.py | bitdotioinc/pglast | da4c0b1c237aad98894179af9cd29e044d526ba8 | [
"PostgreSQL"
] | null | null | null | tools/extract_keywords.py | bitdotioinc/pglast | da4c0b1c237aad98894179af9cd29e044d526ba8 | [
"PostgreSQL"
] | null | null | null | # -*- coding: utf-8 -*-
# :Project: pglast -- Extract keywords from PostgreSQL header
# :Created: dom 06 ago 2017 23:34:53 CEST
# :Author: Lele Gaifax <lele@metapensiero.it>
# :License: GNU General Public License version 3 or later
# :Copyright: 2017, 2018 Lele Gaifax
#
from collections import defaultdict
fr... | 30.246753 | 88 | 0.613568 |
fbfc768e9b9032e8d1b05f89ef3578bc75d58172 | 1,913 | py | Python | tests/vi/test_indent_text_object.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | 6 | 2017-04-01T05:30:08.000Z | 2017-04-05T14:17:40.000Z | tests/vi/test_indent_text_object.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | 1 | 2017-04-04T06:47:13.000Z | 2017-04-04T14:26:32.000Z | tests/vi/test_indent_text_object.py | trishume/VintageousPlus | 1dd62435138234979fe5bb413e1731119b017daf | [
"MIT"
] | null | null | null | from collections import namedtuple
from sublime import Region as R
from VintageousPlus.tests import set_text
from VintageousPlus.tests import add_sel
from VintageousPlus.tests import ViewTest
from VintageousPlus.vi.text_objects import find_indent_text_object
test = namedtuple('simple_test', 'content start expected ... | 28.552239 | 149 | 0.681652 |
fbfd008303bf64141666afab184cb7b1413f62e6 | 1,417 | py | Python | example_write_camera_frames_to_hdf5.py | mihsamusev/pytrl_demo | 411a74cb5f3601f03438f608b4cf8e451a88345e | [
"MIT"
] | null | null | null | example_write_camera_frames_to_hdf5.py | mihsamusev/pytrl_demo | 411a74cb5f3601f03438f608b4cf8e451a88345e | [
"MIT"
] | null | null | null | example_write_camera_frames_to_hdf5.py | mihsamusev/pytrl_demo | 411a74cb5f3601f03438f608b4cf8e451a88345e | [
"MIT"
] | null | null | null | import cv2
from imutils.paths import list_images
import imutils
import re
import datetime
from datasets.hdf5datasetwriter import HDF5DatasetWriter
import progressbar
def get_timestamp(impath):
"assuming that the timestamp is a part of the image name"
date_str = impath.split(".")[0]
date_str = re.split(r"im... | 31.488889 | 79 | 0.715596 |