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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
622058c389457c7cd876a630d6f12b0ece1a7dc1 | 1,342 | py | Python | pelicanconf.py | ChrisAD/attack-website | 222c03f17ea13375753b7323cc7327430974890b | [
"Apache-2.0"
] | 9 | 2020-05-05T22:23:53.000Z | 2021-10-15T18:13:17.000Z | pelicanconf.py | ChrisAD/attack-website | 222c03f17ea13375753b7323cc7327430974890b | [
"Apache-2.0"
] | null | null | null | pelicanconf.py | ChrisAD/attack-website | 222c03f17ea13375753b7323cc7327430974890b | [
"Apache-2.0"
] | 2 | 2020-05-19T05:38:02.000Z | 2021-01-27T12:12:34.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
import json
import uuid
import sys
# import plugins
PLUGIN_PATHS = ['plugins']
PLUGINS = ['assets']
AUTHOR = 'MITRE'
SITENAME = 'ATT&CK'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
THEME = '... | 23.137931 | 77 | 0.698957 |
62219b03355dbbadf9063de4f0e77f3db6e7d6b9 | 1,810 | py | Python | playbooks/roles/configure-vlan-for-ucsm-baremetal/configure_vlan_on_ucsm_bm.py | CiscoSystems/project-config-third-party | 4f9ca3048d8701db673eaf13714f2b7f529a1831 | [
"Apache-2.0"
] | 2 | 2017-09-19T15:52:22.000Z | 2017-10-30T11:19:05.000Z | playbooks/roles/configure-vlan-for-ucsm-baremetal/configure_vlan_on_ucsm_bm.py | CiscoSystems/project-config-third-party | 4f9ca3048d8701db673eaf13714f2b7f529a1831 | [
"Apache-2.0"
] | 24 | 2017-10-31T11:36:04.000Z | 2018-11-30T17:19:50.000Z | playbooks/roles/configure-vlan-for-ucsm-baremetal/configure_vlan_on_ucsm_bm.py | CiscoSystems/project-config-third-party | 4f9ca3048d8701db673eaf13714f2b7f529a1831 | [
"Apache-2.0"
] | 4 | 2017-09-18T16:02:34.000Z | 2018-05-24T14:58:16.000Z | import argparse
from ucsmsdk.ucshandle import UcsHandle
from ucsmsdk.mometa.vnic.VnicEtherIf import VnicEtherIf
from ucsmsdk.mometa.fabric.FabricVlan import FabricVlan
parser = argparse.ArgumentParser()
parser.add_argument('ucsm_ip')
parser.add_argument('username')
parser.add_argument('password')
parser.add_argument('... | 33.518519 | 77 | 0.674033 |
6221a46e082c35a5b882386742c5234fe505e8f6 | 9,529 | py | Python | test/propagation_warn_only_test.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | test/propagation_warn_only_test.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | test/propagation_warn_only_test.py | lechat/jenkinsflow | 87396069dda4f0681829e5d4e264e4f09ae34131 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 - 2015 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
from pytest import raises
from jenkinsflow.flow import serial, parallel, FailedChildJobException, FailedChildJobsException, Propagation, BuildResult
from .framework import api_selec... | 50.68617 | 149 | 0.683702 |
6221e9086b65f59966870eca97102d109aabb9a1 | 3,458 | py | Python | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/interface/dhcpv4discoveredinfo/dhcpv4discoveredinfo.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null |
# Copyright 1997 - 2018 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, merge, p... | 34.58 | 217 | 0.738577 |
62232ec4709e08c7148a5e26f3dac3505151c613 | 17,678 | py | Python | ThreeBotPackages/radicaleserver/radicale/config.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | ThreeBotPackages/radicaleserver/radicale/config.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | ThreeBotPackages/radicaleserver/radicale/config.py | jimbertools/jumpscaleX_threebot | 9909aa270a1f5d04350c440ad787d755b905c456 | [
"Apache-2.0"
] | null | null | null | # This file is part of Radicale Server - Calendar Server
# Copyright 2008-2017 Guillaume Ayoub
# Copyright 2008 Nicolas Kandel
# Copyright 2008 Pascal Halter
# Copyright 2017-2019 Unrud <unrud@outlook.com>
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gener... | 37.060797 | 119 | 0.461195 |
6224e1d3f02d7b9dda37a271e14789ceeccd2dd5 | 574 | py | Python | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 2 | 2019-12-24T13:32:22.000Z | 2019-12-26T11:26:08.000Z | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 1 | 2019-12-26T07:53:34.000Z | 2019-12-26T07:53:34.000Z | code_hashers/attendant.py | ksajan/iis-ms-del | 6339f639d674fedb88454b43dcd64493be2a4558 | [
"MIT"
] | 35 | 2019-12-22T05:05:43.000Z | 2019-12-22T07:16:56.000Z |
# def getDetails():
| 24.956522 | 76 | 0.651568 |
622711071eb4006f1628d4e6d3019ab6f40c0b83 | 1,773 | py | Python | projects/nano_det/net/header.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | projects/nano_det/net/header.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | projects/nano_det/net/header.py | yunshangyue71/mycodes | 54b876004c32d38d9c0363fd292d745fee8dff3c | [
"Apache-2.0"
] | null | null | null | import torch
from torch import nn
from net.init_net import xavier_init
from net.basic_cnn import DWConvBnReluPool
"""
DW-DW-PW
"""
if __name__ == '__main__':
from torchsummary import summary
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
net = Head().to(device)
summary(net, (96... | 30.050847 | 96 | 0.5815 |
622719ea6c5735ec54aa9dbdf7b5a6d8d0c52ce7 | 1,115 | py | Python | hard-gists/1191457/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/1191457/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/1191457/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | #!/usr/bin/env python
import urllib
import sys
import json
from mwlib import parser
from mwlib.refine import compat
if __name__ == "__main__":
params = urllib.urlencode({
"format": "json",
"action": "query",
"prop": "revisions",
"rvprop": "content",
"titles": "ISO_3166-1",
"rvsection": "4",
})
wc = urll... | 22.755102 | 75 | 0.625112 |
6228f1664df5b9ec6866831755970b61d71b6d58 | 3,058 | py | Python | ECC_main/platform/slack.py | dongh9508/ECC-main | 904110b70ba3e459d92c6d21a5ad1693b4ee726a | [
"MIT"
] | 2 | 2019-01-23T00:04:18.000Z | 2019-02-01T10:09:15.000Z | ECC_main/platform/slack.py | dongh9508/ECC-main | 904110b70ba3e459d92c6d21a5ad1693b4ee726a | [
"MIT"
] | 26 | 2018-07-11T07:59:46.000Z | 2021-02-08T20:21:46.000Z | ECC_main/platform/slack.py | dongh9508/ECC-main | 904110b70ba3e459d92c6d21a5ad1693b4ee726a | [
"MIT"
] | 2 | 2018-08-31T14:08:19.000Z | 2018-08-31T15:14:29.000Z | from .platformBase import PlatformBase
from django.http import HttpResponse, JsonResponse
from ECC_main.baseRequest import BaseRequest
import ECC_main.settings
import threading
import requests | 35.149425 | 95 | 0.624591 |
62291b009a583ae54f27aedb9899f9e284646d88 | 598 | py | Python | Classes/ex17.py | oDallas/PythomBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | 1 | 2019-06-02T18:59:18.000Z | 2019-06-02T18:59:18.000Z | Classes/ex17.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | Classes/ex17.py | oDallas/PythonBR | 7d3b3bcefe05ce483f6aa664bbc4962a1e0fd285 | [
"MIT"
] | null | null | null | """"
Crie uma Fazenda de Bichinhos instanciando vrios objetos bichinho e mantendo o controle deles atravs de uma lista.
Imite o funcionamento do programa bsico, mas ao invs de exigis que o usurio tome conta de um nico bichinho,
exija que ele tome conta da fazenda inteira. Cada opo do menu deveria permitir que o usurio ... | 59.8 | 119 | 0.797659 |
6229642233706b071d8517f87c02f6fac096a7c6 | 10,468 | py | Python | train.py | Thanh-Hoo/Custom_train_PanNet | aa50df0e32991d35112f3de6627baea963f0827a | [
"MIT"
] | null | null | null | train.py | Thanh-Hoo/Custom_train_PanNet | aa50df0e32991d35112f3de6627baea963f0827a | [
"MIT"
] | null | null | null | train.py | Thanh-Hoo/Custom_train_PanNet | aa50df0e32991d35112f3de6627baea963f0827a | [
"MIT"
] | null | null | null | '''
THis is the main training code.
'''
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "0" # set GPU id at the very begining
import argparse
import random
import math
import numpy as np
import torch
import torch.nn.parallel
import torch.optim as optim
import torch.utils.data
import torch.nn.functional as F
from torch.m... | 40.261538 | 154 | 0.545472 |
6229671a08873684c79e48db6345c98847757965 | 3,070 | py | Python | bioprocs/scripts/chipseq/pPeakToRegPotential.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 2 | 2021-09-10T00:17:52.000Z | 2021-10-10T09:53:09.000Z | bioprocs/scripts/chipseq/pPeakToRegPotential.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 1 | 2021-12-02T07:54:09.000Z | 2021-12-02T07:54:09.000Z | bioprocs/scripts/chipseq/pPeakToRegPotential.py | pwwang/biopipen | d53b78aa192fd56a5da457463b099b2aa833b284 | [
"MIT"
] | 2 | 2021-09-10T00:17:54.000Z | 2021-10-10T09:56:40.000Z | import math, gzip
peakfile = "{{peakfile}}"
genefile = "{{genefile}}"
arg_inst = {{args.signal | repr}}
arg_gf = "{{args.genefmt}}"
arg_pf = "{{args.peakfmt}}"
arg_wd = int({{args.window | repr}})
d0 = arg_wd / 2
assert (isinstance(arg_inst, bool))
assert (arg_gf in ['ucsc', 'bed', 'ucsc+gz', 'bed+gz'])
as... | 29.238095 | 76 | 0.587948 |
622a87127bb1d17eed572fa385184b37ffbcf8bc | 1,549 | py | Python | parsifal/reviews/migrations/0014_auto_20150710_1445.py | michelav/parsifal | 6633699ad64fd354ddef27f8802a76b7ec7c4ef8 | [
"MIT"
] | 1 | 2020-11-12T08:36:41.000Z | 2020-11-12T08:36:41.000Z | parsifal/reviews/migrations/0014_auto_20150710_1445.py | michelav/parsifal | 6633699ad64fd354ddef27f8802a76b7ec7c4ef8 | [
"MIT"
] | 7 | 2019-11-06T12:44:12.000Z | 2022-01-13T01:48:22.000Z | parsifal/reviews/migrations/0014_auto_20150710_1445.py | michelav/parsifal | 6633699ad64fd354ddef27f8802a76b7ec7c4ef8 | [
"MIT"
] | 3 | 2019-10-05T04:16:59.000Z | 2021-04-20T05:00:50.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
| 37.780488 | 164 | 0.586185 |
622afea05f222949c88d139d2a220b387b5d925a | 58,968 | py | Python | lua_protobuf/generator.py | JoJo2nd/lua-protobuf | f3fc8d451d4b43152e28a9a1eaa98aa744dcd0f5 | [
"Apache-2.0"
] | null | null | null | lua_protobuf/generator.py | JoJo2nd/lua-protobuf | f3fc8d451d4b43152e28a9a1eaa98aa744dcd0f5 | [
"Apache-2.0"
] | null | null | null | lua_protobuf/generator.py | JoJo2nd/lua-protobuf | f3fc8d451d4b43152e28a9a1eaa98aa744dcd0f5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2011 Gregory Szorc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | 38.692913 | 171 | 0.633734 |
622c20a0f1ed0a0cb3f5825e401509f63208a68b | 6,303 | py | Python | autoimpute/AutoImpute.py | milescsmith/AutoImpute | b327283f6fe4efc9528052218ad7dbf094c8962c | [
"MIT"
] | null | null | null | autoimpute/AutoImpute.py | milescsmith/AutoImpute | b327283f6fe4efc9528052218ad7dbf094c8962c | [
"MIT"
] | null | null | null | autoimpute/AutoImpute.py | milescsmith/AutoImpute | b327283f6fe4efc9528052218ad7dbf094c8962c | [
"MIT"
] | null | null | null | import os
import numpy as np
import scipy.io
import tensorflow as tf
from sklearn.metrics import mean_absolute_error, mean_squared_error
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
def autoimpute(data: str, debug: bool = True, debug_display_step: int = 1,
hidden_units: int = 2000, lambda_val: int = 1, initial_learning... | 38.668712 | 245 | 0.712201 |
622e6af5c7a24d6c89c506a8003134f044a4178c | 6,358 | py | Python | began/train.py | imironhead/ml_gan | f6c3bbb8de9d487cbf8ff821117768ffed04278e | [
"MIT"
] | 8 | 2017-06-11T05:03:30.000Z | 2019-02-13T14:16:47.000Z | began/train.py | imironhead/ml_gan | f6c3bbb8de9d487cbf8ff821117768ffed04278e | [
"MIT"
] | null | null | null | began/train.py | imironhead/ml_gan | f6c3bbb8de9d487cbf8ff821117768ffed04278e | [
"MIT"
] | null | null | null | """
"""
import began
import glob
import os
import tensorflow as tf
FLAGS = tf.app.flags.FLAGS
def sanity_check():
"""
"""
if not os.path.isdir(FLAGS.portraits_dir_path):
raise Exception('invalid portraits directory')
def build_dataset_reader():
"""
"""
paths_png_wildcards = os.path... | 27.764192 | 79 | 0.619063 |
622f35e7c59c0030afa33973573d5f2d9c50a69c | 2,771 | py | Python | custom/abt/reports/tests/test_fixture_utils.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 471 | 2015-01-10T02:55:01.000Z | 2022-03-29T18:07:18.000Z | custom/abt/reports/tests/test_fixture_utils.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 14,354 | 2015-01-01T07:38:23.000Z | 2022-03-31T20:55:14.000Z | custom/abt/reports/tests/test_fixture_utils.py | dimagilg/commcare-hq | ea1786238eae556bb7f1cbd8d2460171af1b619c | [
"BSD-3-Clause"
] | 175 | 2015-01-06T07:16:47.000Z | 2022-03-29T13:27:01.000Z | import doctest
from nose.tools import assert_equal, assert_true
from corehq.apps.fixtures.models import (
FieldList,
FixtureDataItem,
FixtureItemField,
)
from custom.abt.reports import fixture_utils
from custom.abt.reports.fixture_utils import (
dict_values_in,
fixture_data_item_to_dict,
)
| 26.644231 | 59 | 0.512811 |
622f4213fd755d69fc4b1a99782a6a2eaed6ce0c | 1,223 | py | Python | test/test_edit_contact.py | Lenchik13/Testing | fce156bfb639773056745ab1be19a840770739d4 | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Lenchik13/Testing | fce156bfb639773056745ab1be19a840770739d4 | [
"Apache-2.0"
] | null | null | null | test/test_edit_contact.py | Lenchik13/Testing | fce156bfb639773056745ab1be19a840770739d4 | [
"Apache-2.0"
] | null | null | null | from model.contact import Contact
import random
| 42.172414 | 123 | 0.611611 |
622f91861f9e766601a659b3e6368f910237afb0 | 159 | py | Python | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | Source Codes Testing/list1.py | urstrulykkr/Python | 098ed5d391f0e62d4950ca80cc57a032c65d1637 | [
"MIT"
] | null | null | null | lst1=list()
lst1.append('K')
lst1.append('A')
lst2=['U', 'S', 'H', 'I', 'K']
print(lst1+lst2)
print(lst2[0] +lst2[1]+lst1[1])
for i in lst1+lst2:
print(i)
| 14.454545 | 32 | 0.578616 |
6231b011e60ef30120a9f211ba32d24a861eec6c | 17,825 | py | Python | sintel_GANs/flow_cgan_sintel_ssim_uv.py | tanlinc/opticalFlowGAN | f568e531265029f2f25f223ee92e1f53c0bb52f6 | [
"MIT"
] | 1 | 2018-07-24T05:40:44.000Z | 2018-07-24T05:40:44.000Z | sintel_GANs/flow_cgan_sintel_ssim_uv.py | tanlinc/opticalFlowGAN | f568e531265029f2f25f223ee92e1f53c0bb52f6 | [
"MIT"
] | null | null | null | sintel_GANs/flow_cgan_sintel_ssim_uv.py | tanlinc/opticalFlowGAN | f568e531265029f2f25f223ee92e1f53c0bb52f6 | [
"MIT"
] | null | null | null | import os, sys
sys.path.append(os.getcwd())
import time
import numpy as np
import tensorflow as tf
import tflib as lib
import tflib.ops.linear
import tflib.ops.conv2d
import tflib.ops.batchnorm
import tflib.ops.deconv2d
import tflib.save_images
import tflib.plot
import tflib.flow_handler as fh
import tflib.SINTELdata... | 52.272727 | 176 | 0.675792 |
6232533ff943a823cead2f8d5e39f9cced275e1a | 872 | py | Python | Development/Scripts/sobel_edge_regular.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | null | null | null | Development/Scripts/sobel_edge_regular.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | 1 | 2021-11-11T14:47:43.000Z | 2021-11-11T14:52:51.000Z | Development/Scripts/sobel_edge_regular.py | simonsimon006/tensorflow-wavelets | 21a095bf0048ae2488ca5ae4961d2cbfe94263a9 | [
"MIT"
] | 1 | 2021-11-11T12:18:21.000Z | 2021-11-11T12:18:21.000Z | import cv2
# Read the original image
img = cv2.imread('../input/LennaGrey.png', 1)
# Display original image
cv2.imshow('Original', img)
cv2.waitKey(0)
# Convert to graycsale
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# Blur the image for better edge detection
img_blur = cv2.GaussianBlur(img_gray, (3,3), 0)
# S... | 36.333333 | 113 | 0.738532 |
6232c87d0d4107ba98750270bdd408dd5d0b9dfa | 1,389 | py | Python | src/python/pants/backend/terraform/target_types.py | danxmoran/pants | 7fafd7d789747c9e6a266847a0ccce92c3fa0754 | [
"Apache-2.0"
] | null | null | null | src/python/pants/backend/terraform/target_types.py | danxmoran/pants | 7fafd7d789747c9e6a266847a0ccce92c3fa0754 | [
"Apache-2.0"
] | 22 | 2022-01-27T09:59:50.000Z | 2022-03-30T07:06:49.000Z | src/python/pants/backend/terraform/target_types.py | danxmoran/pants | 7fafd7d789747c9e6a266847a0ccce92c3fa0754 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from dataclasses import dataclass
from pants.engine.rules import collect_rules
from pants.engine.target import (
COMMON_TARGET_FIELDS,
Dependen... | 26.711538 | 92 | 0.735781 |
623385600c5a7bc996eaff731400e30ab4f95471 | 4,462 | py | Python | src/mdns_client/util.py | bgamari/micropython-mdns | b1a9473cd5200e97ee578be4c623bbd610f46b6c | [
"MIT"
] | 22 | 2021-01-06T02:52:35.000Z | 2022-03-18T00:28:01.000Z | src/mdns_client/util.py | bgamari/micropython-mdns | b1a9473cd5200e97ee578be4c623bbd610f46b6c | [
"MIT"
] | 3 | 2021-04-19T15:44:09.000Z | 2021-08-31T19:17:24.000Z | src/mdns_client/util.py | bgamari/micropython-mdns | b1a9473cd5200e97ee578be4c623bbd610f46b6c | [
"MIT"
] | 5 | 2021-03-10T10:24:46.000Z | 2021-10-11T15:57:24.000Z | import struct
import uasyncio
from mdns_client.constants import REPEAT_TYPE_FLAG, TYPE_CNAME, TYPE_MX, TYPE_NS, TYPE_PTR, TYPE_SOA, TYPE_SRV
def dotted_ip_to_bytes(ip: str) -> bytes:
"""
Convert a dotted IPv4 address string into four bytes, with
some sanity checks
"""
ip_ints = [int(i) for i in ... | 29.163399 | 110 | 0.64814 |
6235e26627f5dd8b3c591b34af122e6dd4fe2d7f | 1,029 | py | Python | algorithms/selection_sort.py | maneeshd/Algorithms-and-DataStructures | 5c50de586657f0135edaa2e624dfe2648c9c4eef | [
"MIT"
] | null | null | null | algorithms/selection_sort.py | maneeshd/Algorithms-and-DataStructures | 5c50de586657f0135edaa2e624dfe2648c9c4eef | [
"MIT"
] | null | null | null | algorithms/selection_sort.py | maneeshd/Algorithms-and-DataStructures | 5c50de586657f0135edaa2e624dfe2648c9c4eef | [
"MIT"
] | null | null | null | """
@author: Maneesh D
@date: 11-Jul-17
@intepreter: Python 3.6
Worst Case Analysis: Selection Sort -> O(n^2)
"""
from timeit import Timer, default_timer
from random import shuffle
ARR = list()
def selection_sort(data):
"""Selection sort implementation"""
for i in range(len(data)):
min_pos = i
... | 23.386364 | 71 | 0.595724 |
623654c971708305dfa901f1772fac7478631021 | 917 | py | Python | image_repo/migrations/0002_auto_20210505_1448.py | elena-kolomeets/Django-Repo | f326b058dc70562a6815248df1b7550c0b634a73 | [
"MIT"
] | null | null | null | image_repo/migrations/0002_auto_20210505_1448.py | elena-kolomeets/Django-Repo | f326b058dc70562a6815248df1b7550c0b634a73 | [
"MIT"
] | null | null | null | image_repo/migrations/0002_auto_20210505_1448.py | elena-kolomeets/Django-Repo | f326b058dc70562a6815248df1b7550c0b634a73 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-05-05 12:48
from django.db import migrations, models
| 26.970588 | 75 | 0.555071 |
6236a853e217ec41f065c4c8899eb05e1e528ac1 | 21,375 | py | Python | ToricLearning/ising.py | danielfreeman11/thermal-toric-code | 3718f1b16737dfae09443466f6cfb65036faaa89 | [
"MIT"
] | 6 | 2017-11-15T00:54:13.000Z | 2021-11-21T02:08:21.000Z | ToricLearning/ising.py | danielfreeman11/thermal-toric-code | 3718f1b16737dfae09443466f6cfb65036faaa89 | [
"MIT"
] | null | null | null | ToricLearning/ising.py | danielfreeman11/thermal-toric-code | 3718f1b16737dfae09443466f6cfb65036faaa89 | [
"MIT"
] | null | null | null | """
Ising model one-shot dynamics simulation.
From C. Daniel Freeman (2016 http://arxiv.org/abs/1603.05005)
"""
import logging
import math
import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
#import isingutils.py
import random
from random import choice
import copy
import sys
from compil... | 34.364952 | 215 | 0.705076 |
62379999fae8c7604ac402164b9ffd7d1051d067 | 41,940 | py | Python | pkg/vtreat/vtreat_impl.py | sthagen/pyvtreat | 01cd9a70a6e1af779057fea90a9a43c2822cceb2 | [
"BSD-3-Clause"
] | 1 | 2019-12-23T19:53:27.000Z | 2019-12-23T19:53:27.000Z | pkg/vtreat/vtreat_impl.py | sthagen/pyvtreat | 01cd9a70a6e1af779057fea90a9a43c2822cceb2 | [
"BSD-3-Clause"
] | null | null | null | pkg/vtreat/vtreat_impl.py | sthagen/pyvtreat | 01cd9a70a6e1af779057fea90a9a43c2822cceb2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 20 12:07:57 2019
@author: johnmount
"""
from abc import ABC
import math
import pprint
import warnings
import numpy
import pandas
import vtreat.util
import vtreat.transform
def fit_clean_code(*, incoming_column_name, x, params, imputation_map):
if not vtrea... | 38.869323 | 115 | 0.612375 |
62383bc8933f1f4eaa948064e8b702400552ae83 | 428 | py | Python | resqs/core/urls.py | UMass-Rescue/moto | 3aa52aca28c622be9708da5fd31a8c8b92801634 | [
"Apache-2.0"
] | null | null | null | resqs/core/urls.py | UMass-Rescue/moto | 3aa52aca28c622be9708da5fd31a8c8b92801634 | [
"Apache-2.0"
] | null | null | null | resqs/core/urls.py | UMass-Rescue/moto | 3aa52aca28c622be9708da5fd31a8c8b92801634 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from .responses import MotoAPIResponse
url_bases = ["https?://motoapi.amazonaws.com"]
response_instance = MotoAPIResponse()
url_paths = {
"{0}/resqs-api/$": response_instance.dashboard,
"{0}/resqs-api/data.json": response_instance.model_data,
"{0}/resqs-api/reset":... | 30.571429 | 70 | 0.752336 |
6238442b97ca6a6ef8a0ad9749bdaae56317f29d | 1,305 | py | Python | hammer/tracker.py | mizerlou/hammer | 353f176bffff4a6b7726361cdafb986fe2302f19 | [
"Apache-2.0"
] | 1 | 2016-06-06T20:22:13.000Z | 2016-06-06T20:22:13.000Z | hammer/tracker.py | mizerlou/hammer | 353f176bffff4a6b7726361cdafb986fe2302f19 | [
"Apache-2.0"
] | null | null | null | hammer/tracker.py | mizerlou/hammer | 353f176bffff4a6b7726361cdafb986fe2302f19 | [
"Apache-2.0"
] | null | null | null | import anydbm, os.path, time, bsddb, sys
| 27.1875 | 68 | 0.514943 |
623beafade5cf281facce9b0ef0d77606bd2dfcb | 1,353 | py | Python | code/glove_bot.py | AmanPriyanshu/Bavardez | 221980add10a8bea69db4d3357660d27a8d6cdb3 | [
"MIT"
] | 1 | 2021-12-28T13:16:17.000Z | 2021-12-28T13:16:17.000Z | glove_bot.py | AmanPriyanshu/Bavardez | 221980add10a8bea69db4d3357660d27a8d6cdb3 | [
"MIT"
] | null | null | null | glove_bot.py | AmanPriyanshu/Bavardez | 221980add10a8bea69db4d3357660d27a8d6cdb3 | [
"MIT"
] | null | null | null | import random
import torch
import pandas as pd
import numpy as np
from glove_model import get_model
from intent_initializer import read_all_intents, read_all_responses
from GloVe_helper import GloVeLoader
PATH = './config/'
BOT_NAME = 'Bavardez'
if __name__ == '__main__':
main() | 27.06 | 107 | 0.725795 |
623c5e03f30d1e94a196a72edaa4010032eb29e4 | 984 | py | Python | tests/coworks/biz/test_biz_ms.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/biz/test_biz_ms.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | tests/coworks/biz/test_biz_ms.py | sidneyarcidiacono/coworks | 7f51b83e8699ced991d16a5a43ad19e569b6e814 | [
"MIT"
] | null | null | null | import pytest
import requests
from tests.coworks.biz.biz_ms import BizMS
from tests.coworks.tech.test_ms import SimpleMS
| 30.75 | 85 | 0.642276 |
623d0484a6ad38e8b613031601faa989033dfbd4 | 1,030 | py | Python | d3rlpy/iterators/random_iterator.py | YangRui2015/d3rlpy | da778b2a2b0afbafe25395296baecd0d4d0cd0d5 | [
"MIT"
] | 1 | 2021-05-08T06:21:05.000Z | 2021-05-08T06:21:05.000Z | d3rlpy/iterators/random_iterator.py | YangRui2015/d3rlpy | da778b2a2b0afbafe25395296baecd0d4d0cd0d5 | [
"MIT"
] | null | null | null | d3rlpy/iterators/random_iterator.py | YangRui2015/d3rlpy | da778b2a2b0afbafe25395296baecd0d4d0cd0d5 | [
"MIT"
] | null | null | null | from typing import List, cast
import numpy as np
from ..dataset import Episode, Transition
from .base import TransitionIterator
| 26.410256 | 76 | 0.635922 |
623e6cd0ebfab7a2fa9506ea275e7ff09e80964a | 420 | py | Python | src/logger.py | Electronya/rc-mission-operator | 2e1571a68df9df82629ebc4eebb248c055fe6066 | [
"MIT"
] | null | null | null | src/logger.py | Electronya/rc-mission-operator | 2e1571a68df9df82629ebc4eebb248c055fe6066 | [
"MIT"
] | 8 | 2021-09-02T23:58:28.000Z | 2021-11-20T22:49:16.000Z | src/logger.py | Electronya/rc-mission-operator | 2e1571a68df9df82629ebc4eebb248c055fe6066 | [
"MIT"
] | null | null | null | import logging
import os
def initLogger() -> object:
"""
Initialize the logger.
"""
logger_level = logging.INFO
if 'APP_ENV' in os.environ:
if os.environ['APP_ENV'] == 'dev':
logger_level = logging.DEBUG
logging.basicConfig(level=logger_level,
form... | 21 | 59 | 0.552381 |
623f19da861cce44fb9bf0964c673c92b5ac9b2f | 713 | py | Python | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | learn_big_data_on_aws/config.py | MacHu-GWU/learn_big_data_on_aws-project | 0db78c35a1712fdd905763fd299663982e44601c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from s3pathlib import S3Path
config = Config()
| 24.586207 | 67 | 0.695652 |
623f3e0f81181826dc28972fa527ecf69b25e1f9 | 15,091 | py | Python | tests/test_plotter_utils.py | natter1/GEDFReader | 360454c80d7aef375d3d5a825e51073ab8bc3d98 | [
"MIT"
] | null | null | null | tests/test_plotter_utils.py | natter1/GEDFReader | 360454c80d7aef375d3d5a825e51073ab8bc3d98 | [
"MIT"
] | 2 | 2021-05-03T22:04:17.000Z | 2021-05-04T10:33:32.000Z | tests/test_plotter_utils.py | natter1/gdef_reader | 360454c80d7aef375d3d5a825e51073ab8bc3d98 | [
"MIT"
] | null | null | null | """
This file contains tests for plotter_utils.py.
@author: Nathanael Jhrmann
"""
import matplotlib.pyplot as plt
import numpy as np
import pytest
from matplotlib.figure import Figure
from gdef_reporter.plotter_styles import get_plotter_style_histogram
from gdef_reporter.plotter_utils import plot_to_ax, create_plot, ... | 49.316993 | 120 | 0.673514 |
62407f44181f5ecd79d5e3e000c96c7ee62ec644 | 3,590 | py | Python | eahub/profiles/tests/test_tags_api.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 36 | 2019-02-22T23:07:14.000Z | 2022-02-10T13:24:27.000Z | eahub/profiles/tests/test_tags_api.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 717 | 2019-02-21T22:07:55.000Z | 2022-02-26T15:17:49.000Z | eahub/profiles/tests/test_tags_api.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 19 | 2019-04-14T14:37:56.000Z | 2022-02-14T22:05:16.000Z | from typing import Tuple
from rest_framework.test import APITestCase
from eahub.profiles.models import Profile, ProfileTag, ProfileTagTypeEnum
from eahub.tests.cases import EAHubTestCase
| 40.795455 | 77 | 0.659331 |
62416172cffe17c94f2ee1ae5b11d654511779a9 | 279 | py | Python | Task1/chapter14.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | Task1/chapter14.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | Task1/chapter14.py | shkhaider2015/AI_Lab_Task | 642a0d5e30515dac6972da194741b829cdc63f30 | [
"Unlicense"
] | null | null | null | # addition will takes place after multiplication and addition
num1 = 1 + 4 * 3 / 2;
# same as 5 * 3 /2
num2 = (1 + 4) * 3 / 2;
# same as 1+12/2
num3 = 1 + (4 * 3) / 2;
print("python follow precedence rules");
# this should produce 7.5
print(num1);
print(num2);
print(num3); | 18.6 | 61 | 0.620072 |
6242dfa1c761870f2a85f43957247c13b7b53277 | 173 | py | Python | cosypose/simulator/__init__.py | ompugao/cosypose | 4e471c16f19d5ee632668cd52eaa57b562f287d6 | [
"MIT"
] | 202 | 2020-08-19T19:28:03.000Z | 2022-03-29T07:10:47.000Z | cosypose/simulator/__init__.py | ompugao/cosypose | 4e471c16f19d5ee632668cd52eaa57b562f287d6 | [
"MIT"
] | 66 | 2020-08-24T09:28:05.000Z | 2022-03-31T07:11:06.000Z | cosypose/simulator/__init__.py | ompugao/cosypose | 4e471c16f19d5ee632668cd52eaa57b562f287d6 | [
"MIT"
] | 66 | 2020-08-19T19:28:05.000Z | 2022-03-18T20:47:55.000Z | from .body import Body
from .camera import Camera
from .base_scene import BaseScene
from .caching import BodyCache, TextureCache
from .textures import apply_random_textures
| 28.833333 | 44 | 0.843931 |
62434c56ee7f47b918c8fe7743e7266baa6b6971 | 2,186 | py | Python | python/scorecard/Config.py | opme/SurgeonScorecard | 788f63fd4f906b27435d18565675553c7b738830 | [
"Apache-2.0"
] | 6 | 2016-11-25T02:01:54.000Z | 2021-08-01T21:54:46.000Z | python/scorecard/Config.py | opme/SurgeonScorecard | 788f63fd4f906b27435d18565675553c7b738830 | [
"Apache-2.0"
] | null | null | null | python/scorecard/Config.py | opme/SurgeonScorecard | 788f63fd4f906b27435d18565675553c7b738830 | [
"Apache-2.0"
] | 2 | 2018-02-20T15:13:25.000Z | 2020-02-16T07:56:06.000Z | import os
import sys
import configparser
| 39.745455 | 96 | 0.515554 |
624457e04a90c3819a6cdb9b28bb79d1ea2ace26 | 726 | py | Python | message_passing_nn/utils/loss_function/loss_functions.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | null | null | null | message_passing_nn/utils/loss_function/loss_functions.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | 1 | 2020-12-13T10:37:03.000Z | 2020-12-13T10:37:03.000Z | message_passing_nn/utils/loss_function/loss_functions.py | mathisi-ai/message-passing-neural-network | d6e27fcf05d06268a461e5f9d9cf81b7e3a5dc09 | [
"MIT"
] | null | null | null | from torch import nn
loss_functions = {
"MSE": nn.MSELoss,
"MSEPenalty": nn.MSELoss,
"L1": nn.L1Loss,
"CrossEntropy": nn.CrossEntropyLoss,
"CTC": nn.CTCLoss,
"NLL": nn.NLLLoss,
"PoissonNLL": nn.PoissonNLLLoss,
"KLDiv": nn.KLDivLoss,
"BCE": nn.BCELoss,
"BCEWithLogits": nn.BCEWith... | 30.25 | 56 | 0.69697 |
6244eae08f282f33089c904acc046111406cab02 | 234 | py | Python | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | ex15.py | phyupyarko/python-exercises | f231ca8c8c1f2614bb166cc72ce45860eff88c1d | [
"MIT"
] | null | null | null | from sys import argv
script, filename=argv
txt = open(filename)
print(f"Here's your file {filename}:")
print(txt.read())
print("Type the filename again:")
file_again = input("> ")
txt_again = open (file_again)
print(txt_again.read())
| 23.4 | 38 | 0.726496 |
624637a865a05ff1c7e0a5862f34089e64e6bb76 | 4,042 | py | Python | samples/vsphere/vcenter/setup/datacenter.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 589 | 2017-03-09T19:01:22.000Z | 2022-03-23T08:18:32.000Z | samples/vsphere/vcenter/setup/datacenter.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 244 | 2017-03-09T19:37:36.000Z | 2022-03-29T07:14:21.000Z | samples/vsphere/vcenter/setup/datacenter.py | restapicoding/VMware-SDK | edc387a76227be1ad7c03e5eeaf603351574f70c | [
"MIT"
] | 304 | 2017-03-09T19:15:01.000Z | 2022-03-31T04:26:59.000Z | """
* *******************************************************
* Copyright (c) VMware, Inc. 2016-2018. All Rights Reserved.
* SPDX-License-Identifier: MIT
* *******************************************************
*
* DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, WHET... | 36.414414 | 93 | 0.700643 |
6247004e81f0b5ed0a8cf58645c7483019728044 | 2,622 | py | Python | chesstab/samples/chessboard.py | RogerMarsh/chesstab | 01d375dc6bf025b621612a84513e55c4640a78ad | [
"BSD-3-Clause"
] | null | null | null | chesstab/samples/chessboard.py | RogerMarsh/chesstab | 01d375dc6bf025b621612a84513e55c4640a78ad | [
"BSD-3-Clause"
] | null | null | null | chesstab/samples/chessboard.py | RogerMarsh/chesstab | 01d375dc6bf025b621612a84513e55c4640a78ad | [
"BSD-3-Clause"
] | null | null | null | # chessboard.py
# Copyright 2008 Roger Marsh
# Licence: See LICENCE (BSD licence)
"""Demonstrate chess board class and methods to draw position on board."""
if __name__ == "__main__":
import tkinter
from pgn_read.core.piece import Piece
from pgn_read.core.constants import (
FEN_WHITE_KING,
... | 33.615385 | 74 | 0.561022 |
624ae61e4b1438e943cbf012e0b99192c749fb82 | 3,694 | py | Python | Pandas/8_GroupingAndAggregating .py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | 1 | 2021-10-01T09:59:22.000Z | 2021-10-01T09:59:22.000Z | Pandas/8_GroupingAndAggregating .py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | Pandas/8_GroupingAndAggregating .py | ErfanRasti/PythonCodes | 5e4569b760b60c9303d5cc68650a2448c9065b6d | [
"MIT"
] | null | null | null | # %%
"""
Let's get familiar with Grouping and Aggregating.
Aggregating means combining multiple pieces of data into a single result.
Mean, median or the mod are aggregating functions.
"""
import pandas as pd
# %%
df = pd.read_csv(
"developer_survey_2019/survey_results_public.csv", index_col="Respondent")... | 25.475862 | 79 | 0.666486 |
624cbb34ddb09a80deca0b22d3e463f92b89210a | 13,077 | py | Python | code/cantera_tools.py | goldmanm/RMG_isotopes_paper_data | 234bd5266de71d6ec9179cb3a7ff490cb56ef91a | [
"MIT"
] | null | null | null | code/cantera_tools.py | goldmanm/RMG_isotopes_paper_data | 234bd5266de71d6ec9179cb3a7ff490cb56ef91a | [
"MIT"
] | null | null | null | code/cantera_tools.py | goldmanm/RMG_isotopes_paper_data | 234bd5266de71d6ec9179cb3a7ff490cb56ef91a | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import re
import warnings
import copy
import cantera as ct
def run_simulation(solution, times, conditions=None,
condition_type = 'adiabatic-constant-volume',
output_species = True,
output_reactions = True,
... | 44.030303 | 261 | 0.640132 |
624d1459e0b41f6ddd69ef8b0b14aebd60ee00c3 | 4,495 | py | Python | chariquisitor.py | strycore/chariquisitor | 539dcbf5e051222371e747547a8b1e8805db4366 | [
"WTFPL"
] | 1 | 2017-09-26T09:59:54.000Z | 2017-09-26T09:59:54.000Z | chariquisitor.py | strycore/chariquisitor | 539dcbf5e051222371e747547a8b1e8805db4366 | [
"WTFPL"
] | null | null | null | chariquisitor.py | strycore/chariquisitor | 539dcbf5e051222371e747547a8b1e8805db4366 | [
"WTFPL"
] | null | null | null | import json
from collections import defaultdict
SEGMENTS = ['workings', 'shinies', 'controls', 'fun']
REVIEWERS = ['venn', 'jordan', 'pedro']
if __name__ == '__main__':
games_totals = get_totals_per_game()
print("%i full reviews available" % len(games_totals))
print_top_games(games_totals)
p... | 34.844961 | 115 | 0.588877 |
624d23bb02f0a1700a789fe03a84f9cdb053398e | 2,970 | py | Python | dense_main.py | Ale-Ba2lero/CNN-FromScratch | 8337db42f3aa0eae878a2724f382039c27498d70 | [
"MIT"
] | 1 | 2021-09-17T17:06:16.000Z | 2021-09-17T17:06:16.000Z | dense_main.py | Ale-Ba2lero/CNN-FromScratch | 8337db42f3aa0eae878a2724f382039c27498d70 | [
"MIT"
] | null | null | null | dense_main.py | Ale-Ba2lero/CNN-FromScratch | 8337db42f3aa0eae878a2724f382039c27498d70 | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import minmax_scale
import matplotlib.pyplot as plt
from model.loss import CategoricalCrossEntropy
from model.layers.dense import Dense
from model.layers.relu import LeakyReLU
from model.layers.softmax import Softmax
fro... | 31.595745 | 105 | 0.596633 |
624dc465ea933ab310312f6e6dd327e58c7d9b64 | 3,156 | py | Python | Tools/Scripts/webkitpy/common/interrupt_debugging.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/Scripts/webkitpy/common/interrupt_debugging.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/Scripts/webkitpy/common/interrupt_debugging.py | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | # Copyright (C) 2019 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the f... | 36.697674 | 131 | 0.701521 |
624ded040b53f88852fd60dd292b8fb6fb23b421 | 1,164 | py | Python | django_watermark_images/items/migrations/0001_initial.py | abarto/django-watermark-images | 5f01c8f0da7359c4d96650029d5beb70938fbe47 | [
"MIT"
] | 11 | 2016-12-05T01:12:46.000Z | 2021-05-05T21:41:14.000Z | django_watermark_images/items/migrations/0001_initial.py | abarto/django-watermark-images | 5f01c8f0da7359c4d96650029d5beb70938fbe47 | [
"MIT"
] | 1 | 2020-11-30T13:26:06.000Z | 2020-12-05T11:44:59.000Z | django_watermark_images/items/migrations/0001_initial.py | abarto/django-watermark-images | 5f01c8f0da7359c4d96650029d5beb70938fbe47 | [
"MIT"
] | 3 | 2017-02-07T03:36:42.000Z | 2020-08-10T00:16:04.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-10 16:15
from __future__ import unicode_literals
from django.db import migrations, models
import django_extensions.db.fields
import items.models
| 35.272727 | 124 | 0.630584 |
62508c428e962c8534fc320110d894864b15ebbe | 11,380 | py | Python | cadnano/views/documentwindow.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 1 | 2022-03-27T14:37:32.000Z | 2022-03-27T14:37:32.000Z | cadnano/views/documentwindow.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | null | null | null | cadnano/views/documentwindow.py | mctrinh/cadnano2.5 | d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736 | [
"BSD-3-Clause"
] | 1 | 2021-01-22T02:29:38.000Z | 2021-01-22T02:29:38.000Z | from PyQt5.QtCore import Qt
from PyQt5.QtCore import QSettings
from PyQt5.QtCore import QPoint, QSize
from PyQt5.QtWidgets import QGraphicsScene
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets import QGraphicsItem
from PyQt5.QtWidgets import QAction, QApplication, QWidget
from cadnano import app
from cad... | 39.79021 | 102 | 0.675747 |
6250a79068b77c4892032d50b57910bd5cac5d15 | 42,245 | py | Python | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.py | Vibaswan/ixnetwork_restpy | 239fedc7050890746cbabd71ea1e91c68d9e5cad | [
"MIT"
] | null | null | null | uhd_restpy/testplatform/sessions/ixnetwork/topology/ospfv3_c029fd7cd4a9e9897b7b4e4547458751.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,... | 41.951341 | 565 | 0.639981 |
6251e5f75335276f9c6c9626a85c2811646b3967 | 1,970 | py | Python | train/loss/mss_loss.py | jdasam/ddsp-pytorch | cefa59881331e0f76eb073317a311c867e331ac2 | [
"MIT"
] | 88 | 2020-02-26T16:37:53.000Z | 2022-03-16T23:27:17.000Z | train/loss/mss_loss.py | hihunjin/my_ddsp-pytorch | 2f7f9222b20ba34b3976a8f78c8efa696b4665c5 | [
"MIT"
] | 3 | 2020-07-25T05:03:17.000Z | 2022-03-23T17:37:38.000Z | train/loss/mss_loss.py | hihunjin/my_ddsp-pytorch | 2f7f9222b20ba34b3976a8f78c8efa696b4665c5 | [
"MIT"
] | 17 | 2020-06-03T09:11:10.000Z | 2021-11-25T10:24:25.000Z | """
Implementation of Multi-Scale Spectral Loss as described in DDSP,
which is originally suggested in NSF (Wang et al., 2019)
"""
import torch
import torch.nn as nn
import torchaudio
import torch.nn.functional as F
| 28.142857 | 99 | 0.618274 |
6255b36ebec98e609bf24f715546b55d46c7815b | 8,889 | py | Python | tests/test_triton_server.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | tests/test_triton_server.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | tests/test_triton_server.py | jishminor/model_analyzer | 8593a473bcc923f90a892cffe59fa9980b55c27f | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 38.986842 | 79 | 0.673304 |
625618420b8b42e1290ca8d84b7cf2668f7fc56c | 5,490 | py | Python | modules/help_urls/help_urls.py | xochilt/cousebuilder | 50c524ad1406b77288efdc616812877e0c85aeb5 | [
"Apache-2.0"
] | null | null | null | modules/help_urls/help_urls.py | xochilt/cousebuilder | 50c524ad1406b77288efdc616812877e0c85aeb5 | [
"Apache-2.0"
] | null | null | null | modules/help_urls/help_urls.py | xochilt/cousebuilder | 50c524ad1406b77288efdc616812877e0c85aeb5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015 Google Inc. 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 applicable law or ... | 31.193182 | 79 | 0.67541 |
625670c4163cea1c3e5232cab52845847be981b8 | 4,584 | py | Python | imm/samplers/noncollapsed.py | tscholak/imm | cbf588800ddb3b3b57843d85a92d881f43fd5702 | [
"Apache-2.0"
] | 9 | 2016-02-15T00:40:18.000Z | 2020-05-14T10:22:53.000Z | imm/samplers/noncollapsed.py | tscholak/imm | cbf588800ddb3b3b57843d85a92d881f43fd5702 | [
"Apache-2.0"
] | null | null | null | imm/samplers/noncollapsed.py | tscholak/imm | cbf588800ddb3b3b57843d85a92d881f43fd5702 | [
"Apache-2.0"
] | 2 | 2016-01-29T17:46:42.000Z | 2020-11-18T04:57:20.000Z | # -*- coding: utf-8 -*-
"""
Non-collapsed samplers.
"""
import numpy as np
from .generic import (GenericGibbsSampler, GenericRGMSSampler,
GenericSAMSSampler, GenericSliceSampler)
from ..models import (CollapsedConjugateGaussianMixture,
ConjugateGaussianMixture, NonconjugateGaussianMixture)
from ..mod... | 34.208955 | 77 | 0.662522 |
62578dce0eabf4b8ae7fad7a5b39c7aa9bac6caa | 393 | py | Python | api/urls.py | Emmastro/medmer-api | c17366a92506b6ac1bdedc85ad0c29c3d2b36b5d | [
"Apache-2.0"
] | null | null | null | api/urls.py | Emmastro/medmer-api | c17366a92506b6ac1bdedc85ad0c29c3d2b36b5d | [
"Apache-2.0"
] | 1 | 2021-07-12T06:32:14.000Z | 2021-07-12T06:32:14.000Z | api/urls.py | Emmastro/medmer | c17366a92506b6ac1bdedc85ad0c29c3d2b36b5d | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('accounts/', include('django.contrib.auth.urls')),
path('', include('home.urls')),
path('admin/', admin.site.urls),
path('registration/medic', include('medic.urls')),
path('registration/patient', include('pa... | 32.75 | 59 | 0.676845 |
6258836d166a8d6c1882a706cc1e2bf3153eda25 | 55 | py | Python | src/evolvepy/integrations/__init__.py | EltonCN/evolvepy | 4489264d6c03ea4f3c23ea665fdf12fe4ead1ccc | [
"MIT"
] | 1 | 2022-01-13T21:11:53.000Z | 2022-01-13T21:11:53.000Z | src/evolvepy/integrations/__init__.py | EltonCN/evolvepy | 4489264d6c03ea4f3c23ea665fdf12fe4ead1ccc | [
"MIT"
] | null | null | null | src/evolvepy/integrations/__init__.py | EltonCN/evolvepy | 4489264d6c03ea4f3c23ea665fdf12fe4ead1ccc | [
"MIT"
] | null | null | null | '''
EvolvePy's integrations with other modules.
''' | 18.333333 | 47 | 0.672727 |
62588608a3f5e4881c91b92770889c28b45edea4 | 587 | py | Python | subdomain.py | ouldevloper/subDomainFinder | 3b888e8267d8b89401a468d2622edd6716a88293 | [
"MIT"
] | null | null | null | subdomain.py | ouldevloper/subDomainFinder | 3b888e8267d8b89401a468d2622edd6716a88293 | [
"MIT"
] | null | null | null | subdomain.py | ouldevloper/subDomainFinder | 3b888e8267d8b89401a468d2622edd6716a88293 | [
"MIT"
] | null | null | null | import requests
import re
url=input("Enter Url [ex: example.com]: ")
getSubDomain(url) | 34.529412 | 95 | 0.524702 |
62592611062846e8ddc9453d08b3f9cc749f88fa | 129 | py | Python | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/20.03-File-handling.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | file = open("text.txt", "r")
file2 = open("text2.txt", "w")
for data in file:
file2.write(data)
file.close()
file2.close()
| 14.333333 | 30 | 0.620155 |
625a19aeeb78d1a163e46b551accd53b6ef2d20c | 532 | py | Python | torch2trt/__init__.py | SnowMasaya/torch2trt | d526b2473805f9b9a704a201bef3ce5be25d284f | [
"MIT"
] | 2 | 2020-07-10T06:26:03.000Z | 2020-07-10T07:38:08.000Z | torch2trt/__init__.py | SnowMasaya/torch2trt | d526b2473805f9b9a704a201bef3ce5be25d284f | [
"MIT"
] | 1 | 2020-02-16T09:43:35.000Z | 2020-02-16T09:43:35.000Z | torch2trt/__init__.py | SnowMasaya/torch2trt | d526b2473805f9b9a704a201bef3ce5be25d284f | [
"MIT"
] | 1 | 2019-10-14T01:11:23.000Z | 2019-10-14T01:11:23.000Z | from .torch2trt import *
from .converters import *
import tensorrt as trt
try:
load_plugins()
PLUGINS_LOADED = True
except OSError:
PLUGINS_LOADED = False
| 24.181818 | 103 | 0.716165 |
625bb84667ccfd99b5f46c321c52127e25ca0ad0 | 4,614 | py | Python | ediel-parser/lib/cli/com.py | sun-labs/ediclue | 22836afc3eca6eebd800cf5d843166656ceaeaae | [
"MIT"
] | 3 | 2020-05-30T09:15:40.000Z | 2021-11-17T20:06:27.000Z | ediel-parser/lib/cli/com.py | sun-labs/ediclue | 22836afc3eca6eebd800cf5d843166656ceaeaae | [
"MIT"
] | null | null | null | ediel-parser/lib/cli/com.py | sun-labs/ediclue | 22836afc3eca6eebd800cf5d843166656ceaeaae | [
"MIT"
] | 1 | 2020-12-25T16:37:13.000Z | 2020-12-25T16:37:13.000Z | import os
from lib.EDICommunicator import EDICommunicator
from lib.EDIParser import EDIParser
import lib.cli.tools as tools
from types import SimpleNamespace | 39.435897 | 117 | 0.657781 |
625c8a42b10a793670359b3599bb4463084222aa | 154 | py | Python | 04_working_with_list/4_2_animals.py | simonhoch/python_basics | 4ecf12c074e641e3cdeb0a6690846eb9133f96af | [
"MIT"
] | null | null | null | 04_working_with_list/4_2_animals.py | simonhoch/python_basics | 4ecf12c074e641e3cdeb0a6690846eb9133f96af | [
"MIT"
] | null | null | null | 04_working_with_list/4_2_animals.py | simonhoch/python_basics | 4ecf12c074e641e3cdeb0a6690846eb9133f96af | [
"MIT"
] | null | null | null | animals = ['cat', 'dog', 'pig']
for animal in animals :
print (animal + 'would make a great pet.')
print ('All of those animals would makea great pet')
| 30.8 | 53 | 0.668831 |
625d706044520dc3362905ca933c2db2e59ae151 | 145 | py | Python | backend/mytutorials/telegrambot/urls.py | mahmoodDehghan/MyTests | a67693e14eda2257490f295909d17b6f3f962543 | [
"MIT"
] | null | null | null | backend/mytutorials/telegrambot/urls.py | mahmoodDehghan/MyTests | a67693e14eda2257490f295909d17b6f3f962543 | [
"MIT"
] | null | null | null | backend/mytutorials/telegrambot/urls.py | mahmoodDehghan/MyTests | a67693e14eda2257490f295909d17b6f3f962543 | [
"MIT"
] | null | null | null | from django.urls import path
from .views import start_bot, end_bot
urlpatterns = [
path('startbot/', start_bot),
path('endbot/', end_bot),
] | 20.714286 | 37 | 0.717241 |
62602e529718a96dbd2a4603b293f7ef9ea48276 | 420 | py | Python | tests/performance/cte-arm/tests/csvm_ijcnn1.py | alexbarcelo/dislib | 989f81f235ae30b17410a8d805df258c7d931b38 | [
"Apache-2.0"
] | 36 | 2018-10-22T19:21:14.000Z | 2022-03-22T12:10:01.000Z | tests/performance/cte-arm/tests/csvm_ijcnn1.py | alexbarcelo/dislib | 989f81f235ae30b17410a8d805df258c7d931b38 | [
"Apache-2.0"
] | 329 | 2018-11-22T18:04:57.000Z | 2022-03-18T01:26:55.000Z | tests/performance/cte-arm/tests/csvm_ijcnn1.py | alexbarcelo/dislib | 989f81f235ae30b17410a8d805df258c7d931b38 | [
"Apache-2.0"
] | 21 | 2019-01-10T11:46:39.000Z | 2022-03-17T12:59:45.000Z | import performance
import dislib as ds
from dislib.classification import CascadeSVM
if __name__ == "__main__":
main()
| 22.105263 | 66 | 0.697619 |
6261861dfa046a0934777f8f23b5ec284278ef51 | 1,115 | py | Python | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | 5 | 2021-03-19T07:05:50.000Z | 2021-03-31T22:53:52.000Z | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | null | null | null | py_connect/exceptions.py | iparaskev/py_connect | 43476cddfb25130d058fcf59928454f867af8feb | [
"BSD-3-Clause"
] | null | null | null | """Exceptions of the library"""
| 24.23913 | 67 | 0.744395 |
6261f7a9c9b18a89ffbec87fba08c79cb2839e13 | 1,151 | py | Python | code/glucocheck/homepage/migrations/0007_auto_20210315_1807.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | code/glucocheck/homepage/migrations/0007_auto_20210315_1807.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | code/glucocheck/homepage/migrations/0007_auto_20210315_1807.py | kmcgreg5/Glucocheck | 4ab4ada7f967ae41c1241c94523d14e693e05dd4 | [
"FSFAP"
] | null | null | null | # Generated by Django 3.1.7 on 2021-03-15 22:07
from django.db import migrations, models
| 34.878788 | 338 | 0.600348 |
6262bae7dfc3df2c02ba7e5efae6983d3daa02cb | 1,826 | py | Python | models/SnapshotTeam.py | Fa1c0n35/RootTheBoxs | 4f2a9886c8eedca3039604b93929c8c09866115e | [
"Apache-2.0"
] | 1 | 2019-06-29T08:40:54.000Z | 2019-06-29T08:40:54.000Z | models/SnapshotTeam.py | Fa1c0n35/RootTheBoxs | 4f2a9886c8eedca3039604b93929c8c09866115e | [
"Apache-2.0"
] | null | null | null | models/SnapshotTeam.py | Fa1c0n35/RootTheBoxs | 4f2a9886c8eedca3039604b93929c8c09866115e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mar 11, 2012
@author: moloch
Copyright 2012 Root the Box
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/licen... | 29.451613 | 83 | 0.7092 |
6263cf2679c6dfa1a07724e0812c51922a103bc9 | 2,544 | py | Python | src/train.py | DanCh11/virtual-assistant | b6601f20bd851864f4a76dd4c73c8c5266a0014f | [
"MIT"
] | null | null | null | src/train.py | DanCh11/virtual-assistant | b6601f20bd851864f4a76dd4c73c8c5266a0014f | [
"MIT"
] | null | null | null | src/train.py | DanCh11/virtual-assistant | b6601f20bd851864f4a76dd4c73c8c5266a0014f | [
"MIT"
] | null | null | null | import json
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import Dataset, DataLoader
from model import NeuralNetwork
from nltk_utils import stem, tokenize, bag_of_words
with open('./data/data.json', 'r') as f:
data = json.load(f)
all_words = []
tags = []
xy = []
for intent... | 22.315789 | 94 | 0.66195 |
62643e087525aca4ccc614812b7bfd674336652f | 411 | py | Python | pythonexercicios/ex101-funcvotacao.py | marroni1103/exercicios-pyton | 734162cc4b63ed30d754a6efe4c5622baaa1a50b | [
"MIT"
] | null | null | null | pythonexercicios/ex101-funcvotacao.py | marroni1103/exercicios-pyton | 734162cc4b63ed30d754a6efe4c5622baaa1a50b | [
"MIT"
] | null | null | null | pythonexercicios/ex101-funcvotacao.py | marroni1103/exercicios-pyton | 734162cc4b63ed30d754a6efe4c5622baaa1a50b | [
"MIT"
] | null | null | null |
print('-' * 30)
anonasc = int(input('Em que ano voc nasceu? '))
print(voto(anonasc))
| 25.6875 | 52 | 0.610706 |
62665baa3c795d7ea68ea728720da3de2371a899 | 4,289 | py | Python | map_objects/tile.py | matteobarbieri/libtcod-tutorial | 2be59978483d1c754b736a0fe96c9554e9ba8547 | [
"MIT"
] | 1 | 2019-03-09T14:20:51.000Z | 2019-03-09T14:20:51.000Z | map_objects/tile.py | matteobarbieri/libtcod-tutorial | 2be59978483d1c754b736a0fe96c9554e9ba8547 | [
"MIT"
] | null | null | null | map_objects/tile.py | matteobarbieri/libtcod-tutorial | 2be59978483d1c754b736a0fe96c9554e9ba8547 | [
"MIT"
] | null | null | null | import random
import libtcodpy as libtcod
GRAY_PALETTE = [
# libtcod.Color(242, 242, 242),
libtcod.Color(204, 204, 204),
libtcod.Color(165, 165, 165),
libtcod.Color(127, 127, 127),
libtcod.Color(89, 89, 89),
]
class Floor(Tile):
"""
A block representing traversable terrain
"""
cla... | 24.508571 | 75 | 0.569597 |
62668c6700d6f2b1513772cf655859cb23f0af9f | 16,717 | py | Python | src/mrnet/utils/reaction.py | hpatel1567/mrnet | b9989b63ba7aa39cfaf484e78d872ba2cc2d2a20 | [
"BSD-3-Clause-LBNL"
] | 9 | 2020-11-06T23:02:29.000Z | 2021-04-28T01:49:34.000Z | src/mrnet/utils/reaction.py | hpatel1567/mrnet | b9989b63ba7aa39cfaf484e78d872ba2cc2d2a20 | [
"BSD-3-Clause-LBNL"
] | 118 | 2020-11-09T06:49:10.000Z | 2021-07-05T01:16:32.000Z | src/mrnet/utils/reaction.py | hpatel1567/mrnet | b9989b63ba7aa39cfaf484e78d872ba2cc2d2a20 | [
"BSD-3-Clause-LBNL"
] | 8 | 2020-11-06T23:02:36.000Z | 2021-04-20T00:39:52.000Z | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from collections import defaultdict
from typing import Dict, List, Optional, Tuple, Union
import numpy as np
from mip import BINARY, CBC, MINIMIZE, Model, xsum
from mrnet.core.mol_entry import MoleculeEntry
_... | 38.166667 | 90 | 0.664413 |
6266929bceaa00edbf464b5a4d2470f14089186d | 16,271 | py | Python | test/test_info_api.py | fattureincloud/fattureincloud-python-sdk | f3a40fac345751014ea389680efdaef90f03bac1 | [
"MIT"
] | 2 | 2022-02-17T08:33:17.000Z | 2022-03-22T09:27:00.000Z | test/test_info_api.py | fattureincloud/fattureincloud-python-sdk | f3a40fac345751014ea389680efdaef90f03bac1 | [
"MIT"
] | null | null | null | test/test_info_api.py | fattureincloud/fattureincloud-python-sdk | f3a40fac345751014ea389680efdaef90f03bac1 | [
"MIT"
] | null | null | null | """
Fatture in Cloud API v2 - API Reference
Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 400.000 businesses in Italy. The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol. # noq... | 49.606707 | 587 | 0.685698 |
62691bca9ef85cd31b36e1e397faed73d833bd04 | 2,992 | py | Python | tests/test_year_2018.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 179 | 2017-10-05T12:41:10.000Z | 2022-03-24T22:18:25.000Z | tests/test_year_2018.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 17 | 2018-10-23T00:51:13.000Z | 2021-11-22T11:40:06.000Z | tests/test_year_2018.py | l0pht511/jpholiday | 083145737b61fad3420c066968c4329d17dc3baf | [
"MIT"
] | 17 | 2018-10-19T11:13:07.000Z | 2022-01-29T08:05:56.000Z | # coding: utf-8
import datetime
import unittest
import jpholiday
| 53.428571 | 94 | 0.684492 |
6269876471cdc3a3de7a8b8ea2665c1065be9cdf | 222 | py | Python | src/server_3D/API/Rice/miscellaneous/tools.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | 1 | 2021-05-18T16:10:49.000Z | 2021-05-18T16:10:49.000Z | src/server_3D/API/Rice/miscellaneous/tools.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null | src/server_3D/API/Rice/miscellaneous/tools.py | robertpardillo/Funnel | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | [
"MIT"
] | null | null | null |
import numpy
__author__ = 'roberto'
| 17.076923 | 35 | 0.581081 |
6269ffcac7da3b6435494d0d70dbe0aa69f6f55f | 324 | py | Python | conjur_api/__init__.py | cyberark/conjur-api-python | 7dd1819bf68042620a06f38e395c3eb2989202a9 | [
"Apache-2.0"
] | 1 | 2022-03-09T18:25:29.000Z | 2022-03-09T18:25:29.000Z | conjur_api/__init__.py | cyberark/conjur-api-python | 7dd1819bf68042620a06f38e395c3eb2989202a9 | [
"Apache-2.0"
] | null | null | null | conjur_api/__init__.py | cyberark/conjur-api-python | 7dd1819bf68042620a06f38e395c3eb2989202a9 | [
"Apache-2.0"
] | null | null | null | """
conjur_api
Package containing classes that are responsible for communicating with the Conjur server
"""
__version__ = "0.0.5"
from conjur_api.client import Client
from conjur_api.interface import CredentialsProviderInterface
from conjur_api import models
from conjur_api import errors
from conjur_api import provid... | 24.923077 | 88 | 0.83642 |
626aa70e6e3d3a3eb14c59bc2e95240dc23ccc35 | 9,346 | py | Python | examples/test_BoxCutter.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | examples/test_BoxCutter.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | examples/test_BoxCutter.py | pompiduskus/pybox2d | 4393bc93df4828267d2143327abd76de6f146750 | [
"Zlib"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# C++ version Copyright (c) 2006-2007 Erin Catto http://www.box2d.org
# Python version by Ken Lauer / sirkne at gmail dot com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any dam... | 35.267925 | 105 | 0.591162 |
626b51aefb27ae8f4702b720697fa00e55d0360c | 1,309 | py | Python | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | robot_simulator/grid/positioning.py | darshikaf/toy-robot-simulator | 408d160033728d65e9bac376d3af7fc84c520f31 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import annotations
import math
| 27.270833 | 71 | 0.578304 |
626ba702d88f0299279f562b39bddc29df5ddcaa | 6,128 | py | Python | src/utils/zarr_to_netcdf.py | jhkennedy/itslive | 68b89b337548fe4e86a3d066c3fb2e4c2aaeed70 | [
"MIT"
] | 8 | 2021-02-19T02:29:29.000Z | 2021-11-10T05:26:30.000Z | src/utils/zarr_to_netcdf.py | jhkennedy/itslive | 68b89b337548fe4e86a3d066c3fb2e4c2aaeed70 | [
"MIT"
] | 11 | 2021-03-29T02:15:38.000Z | 2021-11-18T23:29:33.000Z | src/utils/zarr_to_netcdf.py | jhkennedy/itslive | 68b89b337548fe4e86a3d066c3fb2e4c2aaeed70 | [
"MIT"
] | 3 | 2021-12-06T06:05:34.000Z | 2022-03-13T16:44:44.000Z | """
Script to convert Zarr store to the NetCDF format file.
Usage:
python zarr_to_netcdf.py -i ZarrStoreName -o NetCDFFileName
Convert Zarr data stored in ZarrStoreName to the NetCDF file NetCDFFileName.
"""
import argparse
import timeit
import warnings
import xarray as xr
from itscube_types import Coords, DataVars... | 39.535484 | 90 | 0.557115 |
626c09d5e7442d6e48e408bb35182589e7d6f723 | 87 | py | Python | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | null | null | null | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | 1 | 2019-11-30T23:39:38.000Z | 2019-12-01T04:34:35.000Z | tests/periodicities/Business_Day/Cycle_Business_Day_200_B_24.py | jmabry/pyaf | afbc15a851a2445a7824bf255af612dc429265af | [
"BSD-3-Clause"
] | null | null | null | import pyaf.tests.periodicities.period_test as per
per.buildModel((24 , 'B' , 200));
| 17.4 | 50 | 0.724138 |
626c365969d9ff73eed75430ed790344b66ecdd6 | 932 | py | Python | conanfile.py | maurodelazeri/conan-cpp-httplib | 1a6ce1f1a79eb43071e8dc1bb6f84fba010aabd3 | [
"MIT"
] | null | null | null | conanfile.py | maurodelazeri/conan-cpp-httplib | 1a6ce1f1a79eb43071e8dc1bb6f84fba010aabd3 | [
"MIT"
] | null | null | null | conanfile.py | maurodelazeri/conan-cpp-httplib | 1a6ce1f1a79eb43071e8dc1bb6f84fba010aabd3 | [
"MIT"
] | 1 | 2019-12-03T19:35:48.000Z | 2019-12-03T19:35:48.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from conans import ConanFile, CMake, tools
import os
| 32.137931 | 88 | 0.651288 |
626ca157c2ac9db263365279311bac86dc999674 | 328 | py | Python | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | backmarker/api/viewsets/driver_viewset.py | jmp/backmarker | e12a094d92dec798ad10aa8890fabe84f946c303 | [
"MIT"
] | null | null | null | from rest_framework.viewsets import ReadOnlyModelViewSet
from backmarker.api.serializers.driver_serializer import DriverSerializer
from backmarker.models.driver import Driver
| 29.818182 | 73 | 0.829268 |
626cc4db6e624b921fb50a7db02432aa617a9dbd | 215 | py | Python | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | shell/response.py | YorkSu/deepgo | 2f22ad50d2958a4f1c7dfc0af6fcd448f5e7e18d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Response
======
Response Class
"""
from deepgo.core.kernel.popo import VO
| 11.315789 | 38 | 0.609302 |
626d65ee956ce1cac3af4218ef107258e83fd84e | 4,793 | py | Python | src/python/pants/option/options_fingerprinter_test.py | bastianwegge/pants | 43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2 | [
"Apache-2.0"
] | 1,806 | 2015-01-05T07:31:00.000Z | 2022-03-31T11:35:41.000Z | src/python/pants/option/options_fingerprinter_test.py | bastianwegge/pants | 43f0b90d41622bee0ed22249dbaffb3ff4ad2eb2 | [
"Apache-2.0"
] | 9,565 | 2015-01-02T19:01:59.000Z | 2022-03-31T23:25:16.000Z | src/python/pants/option/options_fingerprinter_test.py | ryanking/pants | e45b00d2eb467b599966bca262405a5d74d27bdd | [
"Apache-2.0"
] | 443 | 2015-01-06T20:17:57.000Z | 2022-03-31T05:28:17.000Z | # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pathlib import Path
import pytest
from pants.option.custom_types import (
DictValueComponent,
ListValueComponent,
UnsetBool,
dict_with_files_option,
dir_option,
... | 31.741722 | 99 | 0.636345 |
626e4c17d238ffdd4b719fcf03cef903734ecb10 | 201 | py | Python | secondstring.py | Kokouvi/reversorder | 157e39eaf424d816715080dbce0850670836e8fd | [
"MIT"
] | null | null | null | secondstring.py | Kokouvi/reversorder | 157e39eaf424d816715080dbce0850670836e8fd | [
"MIT"
] | null | null | null | secondstring.py | Kokouvi/reversorder | 157e39eaf424d816715080dbce0850670836e8fd | [
"MIT"
] | null | null | null | str = "The quick brown fox jumps over the lazy dog." # initial string
reversed = "".join(reversed(str)) #.join() method merges all of the charactera
print(reversed[0:43:2]) # print the reversed string
| 50.25 | 78 | 0.731343 |
626e9153453be95674085a5a9f6b92944cbfbd68 | 1,660 | py | Python | image_extractor.py | IstoVisio/script_image_extractor | dda8c8bb96a16d1ffe5d52af198b66bd619edc4f | [
"MIT"
] | null | null | null | image_extractor.py | IstoVisio/script_image_extractor | dda8c8bb96a16d1ffe5d52af198b66bd619edc4f | [
"MIT"
] | null | null | null | image_extractor.py | IstoVisio/script_image_extractor | dda8c8bb96a16d1ffe5d52af198b66bd619edc4f | [
"MIT"
] | null | null | null | import os
import sys
import syglass as sy
from syglass import pyglass
import numpy as np
import tifffile
import subprocess
if __name__== "__main__":
main() | 29.642857 | 79 | 0.704217 |
627004517552f92e1e2ec8fa749130e02a42b77f | 7,531 | py | Python | scaffoldgraph/analysis/enrichment.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | 121 | 2019-12-12T15:30:16.000Z | 2022-02-28T02:00:54.000Z | scaffoldgraph/analysis/enrichment.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | 8 | 2020-04-04T15:37:26.000Z | 2021-11-17T07:30:31.000Z | scaffoldgraph/analysis/enrichment.py | trumanw/ScaffoldGraph | a594e5c5effe6c5e45c0061a235ccbeb64e416f9 | [
"MIT"
] | 28 | 2019-12-16T11:58:53.000Z | 2021-11-19T09:57:46.000Z | """
scaffoldgraph.analysis.enrichment
Module contains an implementation of Compound Set Enrichment from the papers:
- Compound Set Enrichment: A Novel Approach to Analysis of Primary HTS Data.
- Mining for bioactive scaffolds with scaffold networks: Improved compound set enrichment from primary screening data.
"""
fr... | 41.379121 | 118 | 0.659673 |
62711db72244e06a03957f6f565656dd9ee94885 | 803 | py | Python | ejercicio_fichero/ejercicio_fichero1/fichero.py | Ironwilly/python | f6d42c685b4026b018089edb4ae8cc0ca9614e86 | [
"CC0-1.0"
] | null | null | null | ejercicio_fichero/ejercicio_fichero1/fichero.py | Ironwilly/python | f6d42c685b4026b018089edb4ae8cc0ca9614e86 | [
"CC0-1.0"
] | null | null | null | ejercicio_fichero/ejercicio_fichero1/fichero.py | Ironwilly/python | f6d42c685b4026b018089edb4ae8cc0ca9614e86 | [
"CC0-1.0"
] | null | null | null | # Lee el fichero y procsalo de tal manera que sea capaz de mostrar
# la temperatura mxima para una ciudad dada. Esa ciudad la debe poder
# recibir como un argumento de entrada. Si la ciudad no existe, se deber
# manejar a travs de una excepcin.
import csv
provincia = input('Diga el nombre de la ciudad: ')
with open... | 29.740741 | 97 | 0.655044 |
62728052af8201aa2645d7c22783e76db3275ed8 | 4,059 | py | Python | python/brunel/magics.py | Ross1503/Brunel | c6b6323fa6525c2e1b5f83dc6f97bdeb237e3b06 | [
"Apache-2.0"
] | 306 | 2015-09-03T18:04:21.000Z | 2022-02-12T15:15:39.000Z | python/brunel/magics.py | Ross1503/Brunel | c6b6323fa6525c2e1b5f83dc6f97bdeb237e3b06 | [
"Apache-2.0"
] | 313 | 2015-09-09T14:20:14.000Z | 2020-09-14T02:00:05.000Z | python/brunel/magics.py | Ross1503/Brunel | c6b6323fa6525c2e1b5f83dc6f97bdeb237e3b06 | [
"Apache-2.0"
] | 88 | 2015-09-11T16:45:22.000Z | 2021-11-28T12:35:48.000Z | # Copyright (c) 2015 IBM Corporation and others.
#
# 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... | 34.692308 | 105 | 0.584134 |
62735fa3cb9b4a375ffe477b83e79ab29f0e085c | 537 | py | Python | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | 1 | 2017-01-10T23:24:55.000Z | 2017-01-10T23:24:55.000Z | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | 1 | 2017-01-08T00:01:21.000Z | 2017-01-08T00:01:21.000Z | plugs_newsletter/emails.py | solocompt/plugs-newsletter | 57b9aa2caf9ed5bd5adf25839dbf52b85c0afa53 | [
"MIT"
] | null | null | null | """
Plugs Newsletter Emails
"""
from plugs_mail.mail import PlugsMail
| 26.85 | 76 | 0.748603 |
6273ea53c245381a5adf539a8b0c5e691d335b8c | 4,526 | py | Python | modules/smsapi/proxy.py | kamilpp/iwm-project | d3d816b5a30047e4ec7c7e17d1f71e189858190a | [
"MIT"
] | null | null | null | modules/smsapi/proxy.py | kamilpp/iwm-project | d3d816b5a30047e4ec7c7e17d1f71e189858190a | [
"MIT"
] | null | null | null | modules/smsapi/proxy.py | kamilpp/iwm-project | d3d816b5a30047e4ec7c7e17d1f71e189858190a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
import mimetypes
from io import BytesIO
try:
from urllib2 import Request, urlopen, URLError
from urllib import urlencode
except ImportError:
from urllib.request import Request, urlopen
from urllib.parse import urlencode
from urllib.error import URLError... | 26.623529 | 117 | 0.532037 |
62753c5006150ce17ceda04507da80a31675516b | 775 | py | Python | maverick_api/modules/base/mission/util/srtm/make_dict.py | deodates-dev/UAV-maverick-api | 15cf9e0bac6faf4b9361f060395f656575304097 | [
"MIT"
] | 4 | 2018-02-10T01:00:35.000Z | 2019-07-03T04:21:28.000Z | maverick_api/modules/base/mission/util/srtm/make_dict.py | deodates-dev/UAV-maverick-api | 15cf9e0bac6faf4b9361f060395f656575304097 | [
"MIT"
] | 244 | 2018-02-01T22:39:51.000Z | 2021-07-29T05:58:48.000Z | maverick_api/modules/base/mission/util/srtm/make_dict.py | deodates-dev/UAV-maverick-api | 15cf9e0bac6faf4b9361f060395f656575304097 | [
"MIT"
] | 6 | 2018-02-12T10:58:05.000Z | 2020-09-09T13:41:04.000Z | #!/usr/bin/python
import fileinput
import json
url_base = "https://dds.cr.usgs.gov/srtm/version2_1/SRTM3"
regions = [
"Africa",
"Australia",
"Eurasia",
"Islands",
"North_America",
"South_America",
]
srtm_dict = {}
srtm_directory = "srtm.json"
for region in regions:
print("Processing", ... | 20.945946 | 78 | 0.606452 |
62758b3a2a4619c1b6d03498fcd2b870db5024e4 | 495 | py | Python | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | gail/crowd_sim/configs/icra_benchmark/sarl.py | ben-milanko/PyTorch-RL | 4d7be8a7f26f21b490c93191dca1844046a092df | [
"MIT"
] | null | null | null | from configs.icra_benchmark.config import BaseEnvConfig, BasePolicyConfig, BaseTrainConfig, Config
| 27.5 | 98 | 0.733333 |
62781a4622485a3c3996f4345f375edf051908c6 | 83 | py | Python | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | backend/bios/apps.py | juanrmv/torre-test | 39c4f8928f6f51e462975ef5f89c7a9b5bb05733 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
| 13.833333 | 33 | 0.73494 |
62785d99c24915bf064dcffd95ccc1f5a52eab27 | 3,982 | py | Python | tests/snuba/eventstream/test_eventstream.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/snuba/eventstream/test_eventstream.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | tests/snuba/eventstream/test_eventstream.py | pierredup/sentry | 0145e4b3bc0e775bf3482fe65f5e1a689d0dbb80 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from datetime import datetime, timedelta
import six
import time
import logging
from sentry.utils.compat.mock import patch, Mock
from sentry.event_manager import EventManager
from sentry.eventstream.kafka import KafkaEventStream
from sentry.eventstream.snuba import SnubaEventStre... | 35.238938 | 94 | 0.619789 |
627cfb04842724bdfb5432c95eabf0e23e11ea54 | 470 | py | Python | modulo.py | Alex9808/py101 | 18c585c1433e8ec6f5e4962e556a781e0c3c3cd5 | [
"MIT"
] | 25 | 2018-08-14T22:13:13.000Z | 2021-07-23T04:14:06.000Z | modulo.py | Alex9808/py101 | 18c585c1433e8ec6f5e4962e556a781e0c3c3cd5 | [
"MIT"
] | 1 | 2021-05-21T23:46:42.000Z | 2021-05-21T23:46:42.000Z | modulo.py | Alex9808/py101 | 18c585c1433e8ec6f5e4962e556a781e0c3c3cd5 | [
"MIT"
] | 34 | 2018-07-30T20:48:17.000Z | 2022-02-04T19:01:27.000Z | #! /bin/bash/python3
'''Ejemplo de un script que puede ser importado como mdulo.'''
titulo = "Espacio muestral"
datos = (76, 81, 75, 77, 80, 75, 76, 79, 75)
def promedio(encabezado, muestra):
'''Despliega el contenido de encabezado,as como el clculo del promedio de muestra, ingresado en una lista o tupla... | 39.166667 | 126 | 0.678723 |
627d2e10dedbd895286404f157c63ff39dd0589c | 368 | py | Python | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | experiments/duet_dataloader/input_file_generator.py | 18praveenb/ss-vq-vae | 89e76d69d6127b27ae4cc066a1a1f9c4147fb020 | [
"Apache-2.0"
] | null | null | null | genres = ['blues', 'classical', 'country', 'disco', 'hiphop', 'jazz', 'metal', 'pop', 'reggae', 'rock']
num_files = 100
with open(f'INPUT_FULL', 'w') as f:
for genre in genres:
for i in range(num_files):
for j in range(6):
f.write(f'/datasets/duet/genres/{genre}.{i:05d}.{j}.wav /... | 52.571429 | 121 | 0.578804 |
627df994c37f89a314b88935ba858af233d102af | 549 | py | Python | generate_nginx_config.py | AppScale/appscake | 615597765e835015c1e8d8bc70921a655f8aa86a | [
"BSD-3-Clause"
] | null | null | null | generate_nginx_config.py | AppScale/appscake | 615597765e835015c1e8d8bc70921a655f8aa86a | [
"BSD-3-Clause"
] | 1 | 2021-06-08T09:51:49.000Z | 2021-06-08T09:51:49.000Z | generate_nginx_config.py | isabella232/appscake | 615597765e835015c1e8d8bc70921a655f8aa86a | [
"BSD-3-Clause"
] | 1 | 2021-06-08T09:48:33.000Z | 2021-06-08T09:48:33.000Z | import jinja2
import os
import socket
my_public_ip = os.popen("curl -L http://metadata/computeMetadata/v1beta1/instance/network-interfaces/0/access-configs/0/external-ip").read()
my_private_ip = socket.gethostbyname(socket.gethostname())
template_contents = open('/root/appscake/nginx_config').read()
template = jinja2... | 42.230769 | 140 | 0.812386 |
627e2692036a975d4c6bc119811af70c6ad6b162 | 909 | py | Python | VisualizedSorting/Controller.py | lachieggg/Misc | 066149309e3e4634cded168687c7dfc3a3a4d6f3 | [
"MIT"
] | null | null | null | VisualizedSorting/Controller.py | lachieggg/Misc | 066149309e3e4634cded168687c7dfc3a3a4d6f3 | [
"MIT"
] | null | null | null | VisualizedSorting/Controller.py | lachieggg/Misc | 066149309e3e4634cded168687c7dfc3a3a4d6f3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from Window import Window
from Constants import *
from Algorithms.MergeSort import MergeSort
from Algorithms.QuickSort import QuickSort
from Algorithms.BubbleSort import BubbleSort
from Algorithms.InsertionSort import InsertionSort
from Algorithms.SelectionSort import SelectionSor... | 22.725 | 50 | 0.664466 |
627e4b8f24eb8ffa6dd2d71640b1a2b1b78cf92a | 3,688 | py | Python | openslides_backend/presenter/get_forwarding_meetings.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 5 | 2020-01-20T13:57:15.000Z | 2021-03-27T14:14:44.000Z | openslides_backend/presenter/get_forwarding_meetings.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 859 | 2020-01-11T22:58:37.000Z | 2022-03-30T14:54:06.000Z | openslides_backend/presenter/get_forwarding_meetings.py | MJJojo97/openslides-backend | af0d1edb0070e352d46f285a1ba0bbe3702d49ae | [
"MIT"
] | 16 | 2020-01-04T20:28:57.000Z | 2022-02-10T12:06:54.000Z | from typing import Any
import fastjsonschema
from ..permissions.permission_helper import has_perm
from ..permissions.permissions import Permissions
from ..shared.exceptions import PermissionDenied, PresenterException
from ..shared.patterns import Collection, FullQualifiedId
from ..shared.schema import required_id_sch... | 36.88 | 119 | 0.574837 |
627e648e181ccec154beb32ed33085244d73a0fd | 638 | py | Python | settings.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | 9 | 2021-10-11T01:16:23.000Z | 2022-01-13T14:07:08.000Z | settings.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | 1 | 2021-10-30T09:49:08.000Z | 2021-10-30T09:49:08.000Z | settings.py | gyyang/olfaction_evolution | 434baa85b91f450e1ab63c6b9eafb8d370f1df96 | [
"MIT"
] | null | null | null | """User specific settings."""
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['font.size'] = 7
mpl.rcParams['pdf.fonttype'] = 42
mpl.rcParams['ps.fonttype'] = 42
mpl.rcParams['font.family'] = 'arial'
mpl.rcParams['mathtext.fontset'] = 'stix'
seqcmap = mpl.cm.cool_r
try:
import seaborn as sn... | 29 | 81 | 0.731975 |