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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1d3d2bbc91fe562ff03d1024258dfe9a2092f42 | 4,237 | py | Python | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 5 | 2020-02-07T23:24:05.000Z | 2021-07-23T23:37:41.000Z | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 11 | 2020-01-13T10:02:33.000Z | 2022-02-10T14:42:36.000Z | main/admin.py | japmeet01/fplmanager-website | c7a533f49acb04ee56876dff8759bb68468b0592 | [
"MIT"
] | 11 | 2020-02-07T23:24:09.000Z | 2020-10-16T14:57:54.000Z | from django.contrib import admin
from django.http import HttpResponse
from django.urls import path
from django.shortcuts import render, HttpResponse, redirect
from django import forms
import os
import csv
from io import TextIOWrapper, StringIO
from .models import Player, Team, Usage, XgLookup
| 31.619403 | 164 | 0.618126 |
a1d4680a92b1711d0003c4bd4a72a28789727f68 | 221 | py | Python | Muta3DMaps/core/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | Muta3DMaps/core/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | Muta3DMaps/core/__init__.py | NatureGeorge/SIFTS_Plus_Muta_Maps | 60f84e6024508e65ee3791103762b95666d3c646 | [
"MIT"
] | null | null | null | # @Created Date: 2019-11-24 09:07:07 pm
# @Filename: __init__.py
# @Email: 1730416009@stu.suda.edu.cn
# @Author: ZeFeng Zhu
# @Last Modified: 2019-12-23 04:23:51 pm
# @Copyright (c) 2019 MinghuiGroup, Soochow University
| 31.571429 | 54 | 0.714932 |
a1d5ed8760ff10427163bf99b2b4a26de7553293 | 3,217 | py | Python | tests/test_utils/test_file.py | dcambie/spectrochempy | e376082d66be7a4c528b7d83be076d77534e39bd | [
"CECILL-B"
] | 3 | 2021-04-09T09:13:21.000Z | 2022-01-09T00:05:42.000Z | tests/test_utils/test_file.py | fernandezc/spectrochempy | 4707c51dba0032c160afc40682fa16d4b9855ded | [
"CECILL-B"
] | null | null | null | tests/test_utils/test_file.py | fernandezc/spectrochempy | 4707c51dba0032c160afc40682fa16d4b9855ded | [
"CECILL-B"
] | null | null | null | # -*- coding: utf-8 -*-
# =====================================================================================================================
# Copyright () 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. =
# CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See full... | 42.893333 | 120 | 0.500155 |
a1d778137bf41265c501edad6184cfc3fae9a1be | 1,450 | py | Python | toontown/safezone/ETreasurePlannerAI.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | null | null | null | toontown/safezone/ETreasurePlannerAI.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 1 | 2021-06-08T17:16:48.000Z | 2021-06-08T17:16:48.000Z | toontown/safezone/ETreasurePlannerAI.py | SuperM0use24/TT-CL-Edition | fdad8394f0656ae122b687d603f72afafd220c65 | [
"MIT"
] | 3 | 2021-06-03T05:36:36.000Z | 2021-06-22T15:07:31.000Z | from toontown.safezone.DistributedETreasureAI import DistributedETreasureAI
from toontown.safezone.RegenTreasurePlannerAI import RegenTreasurePlannerAI
| 39.189189 | 104 | 0.37931 |
a1da8b92dc0cdcfd459c2434f84a887452586f81 | 2,204 | py | Python | user_roles/role_add.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 1 | 2022-03-17T12:51:45.000Z | 2022-03-17T12:51:45.000Z | user_roles/role_add.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 2 | 2021-11-03T15:34:40.000Z | 2021-12-14T19:50:20.000Z | user_roles/role_add.py | PaloAltoNetworks/pcs-migration-management | 766c8c861befa92e593b23ad6d248e33f62054bb | [
"ISC"
] | 4 | 2021-11-09T17:57:01.000Z | 2022-01-24T17:41:21.000Z | from sdk.color_print import c_print
from user_roles import role_translate_id
from tqdm import tqdm | 42.384615 | 108 | 0.606624 |
a1dabed16e80b17dead966e6cd7f52d07e673b7f | 6,641 | py | Python | Apps/phdigitalshadows/dsapi/service/ds_base_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 74 | 2019-10-22T02:00:53.000Z | 2022-03-15T12:56:13.000Z | Apps/phdigitalshadows/dsapi/service/ds_base_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 375 | 2019-10-22T20:53:50.000Z | 2021-11-09T21:28:43.000Z | Apps/phdigitalshadows/dsapi/service/ds_base_service.py | ryanbsaunders/phantom-apps | 1befda793a08d366fbd443894f993efb1baf9635 | [
"Apache-2.0"
] | 175 | 2019-10-23T15:30:42.000Z | 2021-11-05T21:33:31.000Z | # File: ds_base_service.py
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
import json
import time
import base64
from functools import wraps
from ..config import ds_api_host, ds_api_base
from .ds_abstract_service import DSAbstractService
| 38.166667 | 111 | 0.511971 |
a1dac102f27e519bf75cf582e4948e7c1ea1984f | 4,216 | py | Python | examples/motion_planning.py | luisgaboardi/Motion-Planning-Carla-Simulator | 4270fd3b7e488876a8ac249c217a7fb219e8d27b | [
"MIT"
] | null | null | null | examples/motion_planning.py | luisgaboardi/Motion-Planning-Carla-Simulator | 4270fd3b7e488876a8ac249c217a7fb219e8d27b | [
"MIT"
] | 4 | 2021-05-13T11:33:06.000Z | 2022-02-08T06:26:55.000Z | examples/motion_planning.py | luisgaboardi/Motion-Planning-Carla-Simulator | 4270fd3b7e488876a8ac249c217a7fb219e8d27b | [
"MIT"
] | null | null | null | # Imports para o Carla
import glob
import os
import sys
try:
sys.path.append(glob.glob('../carla/dist/carla-*%d.%d-%s.egg' % (
sys.version_info.major,
sys.version_info.minor,
'win-amd64' if os.name == 'nt' else 'linux-x86_64'))[0])
except IndexError:
pass
import carla
try:
sys.path... | 36.344828 | 164 | 0.671015 |
a1dad65039164684afc4c0a9e16a88052f3e201e | 5,705 | py | Python | hr_api.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | null | null | null | hr_api.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | 4 | 2018-11-13T20:44:50.000Z | 2018-11-16T19:47:09.000Z | hr_api.py | AznStevy/heart_rate_sentinel_server | e241ee705221be643a3c3773a2e5ed9c129c733f | [
"MIT"
] | null | null | null | import json
import requests
post_url = "http://127.0.0.1:5000/api/"
# ---------- general web interfacing ----------------------
def post(endpoint, payload, uri="http://127.0.0.1:5000/api/"):
"""
Posts to the flask web server.
Args:
endpoint: The endpoint of the API
payload: Payload accor... | 26.169725 | 96 | 0.632954 |
a1dba833aadc169502823d1b0bf416f69fbfd572 | 1,845 | py | Python | upload/tasks/import_gene_list_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | upload/tasks/import_gene_list_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | upload/tasks/import_gene_list_task.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | from genes.gene_matching import tokenize_gene_symbols, GeneSymbolMatcher
from genes.models import GeneList
from snpdb.models import ImportStatus
from upload.models import UploadedGeneList
from upload.tasks.import_task import ImportTask
from variantgrid.celery import app
ImportGeneListTask = app.register_task(Import... | 37.653061 | 117 | 0.750678 |
a1dd42d9f4784232b6f6958623ffb26f5fc9185f | 467 | py | Python | Covid Dashboard/loadconfig.py | jamespilcher/daily-covid-dashboard | 4f71eba2216dcda4b577baeb37a97a3abf4fe1bd | [
"MIT"
] | null | null | null | Covid Dashboard/loadconfig.py | jamespilcher/daily-covid-dashboard | 4f71eba2216dcda4b577baeb37a97a3abf4fe1bd | [
"MIT"
] | null | null | null | Covid Dashboard/loadconfig.py | jamespilcher/daily-covid-dashboard | 4f71eba2216dcda4b577baeb37a97a3abf4fe1bd | [
"MIT"
] | null | null | null | """Loads the config.json file and store key value pairs into variables"""
import json
with open('config.json', 'r', encoding='utf-8') as f:
config = json.load(f)
config_location_type = config['location_type']
config_location = config['location']
country = config['country']
config_covid_terms = config['... | 31.133333 | 74 | 0.734475 |
a1de14ec6277bfec1f83bc1158b25a9e6f73c868 | 65 | py | Python | autoprotocol/version.py | kevin-ss-kim/autoprotocol-python | f55818e31b5c49bc093291f3ecc452f2b061e0a9 | [
"BSD-3-Clause"
] | null | null | null | autoprotocol/version.py | kevin-ss-kim/autoprotocol-python | f55818e31b5c49bc093291f3ecc452f2b061e0a9 | [
"BSD-3-Clause"
] | null | null | null | autoprotocol/version.py | kevin-ss-kim/autoprotocol-python | f55818e31b5c49bc093291f3ecc452f2b061e0a9 | [
"BSD-3-Clause"
] | null | null | null | """Maintains current version of package"""
__version__ = "6.1.2"
| 21.666667 | 42 | 0.707692 |
a1df17bbb39f33b932712fb69914ace1053665c5 | 51,350 | py | Python | models/flownet2.py | D-Nilsson/GRFP | 539fe2a9ecbd5daf60e20ce56af872d90ba60a4b | [
"MIT"
] | 58 | 2018-06-13T13:58:51.000Z | 2022-03-08T03:07:10.000Z | models/flownet2.py | yyyyqy/GRFP | 539fe2a9ecbd5daf60e20ce56af872d90ba60a4b | [
"MIT"
] | 13 | 2018-07-10T07:50:54.000Z | 2021-06-09T17:55:16.000Z | models/flownet2.py | yyyyqy/GRFP | 539fe2a9ecbd5daf60e20ce56af872d90ba60a4b | [
"MIT"
] | 11 | 2018-06-13T17:00:42.000Z | 2022-03-01T03:15:24.000Z | import glob, os
import numpy as np
import tensorflow as tf
import tensorflow.contrib.graph_editor as ge | 63.473424 | 253 | 0.574761 |
a1e2e6423c6af48c84a3959d270e3cdaa9b51fa4 | 874 | py | Python | mdm/utils.py | agnihotri7/dj_mdm | 9fc68393d270d361d2a37b726282277b15121658 | [
"MIT"
] | null | null | null | mdm/utils.py | agnihotri7/dj_mdm | 9fc68393d270d361d2a37b726282277b15121658 | [
"MIT"
] | null | null | null | mdm/utils.py | agnihotri7/dj_mdm | 9fc68393d270d361d2a37b726282277b15121658 | [
"MIT"
] | null | null | null | """
"""
import sys
import uuid
import base64
import fileinput
import datetime
from django.utils import timezone
from django.conf import settings
from django.shortcuts import get_object_or_404
from urlparse import urlparse, parse_qs
from APNSWrapper import *
from mdm.models import MDMDevice, DeviceCommand
| 25.705882 | 71 | 0.751716 |
a1e35648e878d2c215539f5ee4e619b32ea82f3c | 34,207 | py | Python | gollyx_maps/rainbow.py | golly-splorts/gollyx-maps | ad57b6e0665a7f2a54f2cfa31717ce152ac3d046 | [
"MIT"
] | null | null | null | gollyx_maps/rainbow.py | golly-splorts/gollyx-maps | ad57b6e0665a7f2a54f2cfa31717ce152ac3d046 | [
"MIT"
] | null | null | null | gollyx_maps/rainbow.py | golly-splorts/gollyx-maps | ad57b6e0665a7f2a54f2cfa31717ce152ac3d046 | [
"MIT"
] | null | null | null | import math
import itertools
from operator import itemgetter
import json
import os
import random
from .geom import hflip_pattern, vflip_pattern, rot_pattern
from .patterns import (
get_pattern_size,
get_pattern_livecount,
get_grid_empty,
get_grid_pattern,
segment_pattern,
methuselah_quadrants_pa... | 27.946895 | 113 | 0.540562 |
a1e396a0fe0bfe84f4e348a5cd7eab9d9e2a1638 | 2,962 | py | Python | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | filemanipulator.py | paulkramme/mit-license-adder | 1865413c1932a3108883dc2b77c67608d56be275 | [
"MIT"
] | null | null | null | #!/usr/bin/python2
import tempfile
import sys
import datetime
mit_license = ("""\
/*
MIT License
Copyright (c) 2016 Paul Kramme
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 restrictio... | 32.911111 | 89 | 0.668467 |
a1e520db04d481d770fcb8c7ed4dbac6d857ce44 | 4,048 | py | Python | ve/unit/test_list_scalar.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | ve/unit/test_list_scalar.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | ve/unit/test_list_scalar.py | aneels3/pyvsc | 692fa2baa9cc0251411b3a8ace2854b7e65c288a | [
"Apache-2.0"
] | null | null | null | '''
Created on Jun 21, 2020
@author: ballance
'''
import vsc
from vsc_test_case import VscTestCase
from vsc.visitors.model_pretty_printer import ModelPrettyPrinter
| 27.726027 | 68 | 0.447381 |
a1e5a8c1e742d2b35abb789d741addea637b7ba0 | 5,344 | py | Python | config-server/test.py | wtsi-hgi/webhook-router | a36987055ec4c1bcb443d391807c6469e3d21ba8 | [
"MIT"
] | 2 | 2017-11-21T11:16:44.000Z | 2022-01-05T23:17:50.000Z | config-server/test.py | wtsi-hgi/webhook-router | a36987055ec4c1bcb443d391807c6469e3d21ba8 | [
"MIT"
] | 14 | 2017-10-17T16:05:39.000Z | 2022-02-12T02:42:49.000Z | config-server/test.py | wtsi-hgi/webhook-router | a36987055ec4c1bcb443d391807c6469e3d21ba8 | [
"MIT"
] | null | null | null | import json
from configserver import ConfigServer, get_postgres_db
from configserver.errors import InvalidRouteUUIDError
from flask.testing import FlaskClient
import pytest
from peewee import SqliteDatabase
import logging
from uuid import uuid4
import functools
from typing import Iterable
def test_create_route(router... | 31.621302 | 94 | 0.691804 |
a1e5ccbd0c595e22be2f8bf21bf5897f8d70355d | 1,318 | py | Python | Scripts/spliter.py | sawa25/PDFs-TextExtract | bdc4469deab8b023135165ce8dbc63577927a508 | [
"MIT"
] | 87 | 2020-05-08T00:04:17.000Z | 2022-03-27T11:39:04.000Z | Scripts/spliter.py | tzo13123/PDFs-TextExtract | 3d00b7b4007557e1467fb5aca8bf8e37513de124 | [
"MIT"
] | 5 | 2020-06-24T13:22:37.000Z | 2021-04-10T21:39:32.000Z | Scripts/spliter.py | tzo13123/PDFs-TextExtract | 3d00b7b4007557e1467fb5aca8bf8e37513de124 | [
"MIT"
] | 49 | 2020-05-08T00:08:01.000Z | 2022-02-04T21:04:03.000Z | import os
from PyPDF2 import PdfFileReader, PdfFileWriter
#Solution based in two functions:
#1.pdf remove : Remove existed pdf documents(result for your last split operation)
#2.pdf splitter : Split your main pdf document into group of documents.
if __name__ == '__main__':
path = '../PDFs-TextExtract/pd... | 32.95 | 107 | 0.69044 |
a1e6051e4e110799735dcb4615879dd95634d238 | 107 | py | Python | swagger_client/apis/__init__.py | sendx/sendx-api-python | edce9755d3718efb12cb5493da7cbac961cb1d9b | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/__init__.py | sendx/sendx-api-python | edce9755d3718efb12cb5493da7cbac961cb1d9b | [
"Apache-2.0"
] | null | null | null | swagger_client/apis/__init__.py | sendx/sendx-api-python | edce9755d3718efb12cb5493da7cbac961cb1d9b | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
# import apis into api package
from .contact_api import ContactApi
| 21.4 | 38 | 0.841121 |
a1e9308fe3ee5db7d2721276c33a44e2c57e6e80 | 3,915 | py | Python | strategy/overreact_strategy.py | tseng1026/SideProject-Investment | e7135e667cdee16d1d754ca0f9ebd88226083e66 | [
"MIT"
] | null | null | null | strategy/overreact_strategy.py | tseng1026/SideProject-Investment | e7135e667cdee16d1d754ca0f9ebd88226083e66 | [
"MIT"
] | null | null | null | strategy/overreact_strategy.py | tseng1026/SideProject-Investment | e7135e667cdee16d1d754ca0f9ebd88226083e66 | [
"MIT"
] | null | null | null | from typing import Callable
import numpy as np
from constants.constants import IndicatorType
from strategy.base import BaseStrategy
| 35.590909 | 78 | 0.585951 |
a1ed273b2e4ad00a56a2ecb5eabb664805ce9cd8 | 12,746 | py | Python | src/erpbrasil/edoc/provedores/issnet.py | Engenere/erpbrasil.edoc | 2e835cc191407a8261c6f27933b7660d74b5a691 | [
"MIT"
] | 8 | 2019-09-27T05:59:06.000Z | 2022-01-16T21:04:04.000Z | src/erpbrasil/edoc/provedores/issnet.py | Engenere/erpbrasil.edoc | 2e835cc191407a8261c6f27933b7660d74b5a691 | [
"MIT"
] | 18 | 2020-10-05T19:23:59.000Z | 2022-02-22T11:39:22.000Z | src/erpbrasil/edoc/provedores/issnet.py | Engenere/erpbrasil.edoc | 2e835cc191407a8261c6f27933b7660d74b5a691 | [
"MIT"
] | 10 | 2019-11-28T14:03:02.000Z | 2022-02-25T14:06:14.000Z | # coding=utf-8
# Copyright (C) 2020 - TODAY, Marcel Savegnago - Escodoo
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import xml.etree.ElementTree as ET
from datetime import datetime
from erpbrasil.base import misc
from erpbrasil.edoc.nfse import NFSe
... | 40.722045 | 122 | 0.581751 |
a1ed89cc5c2446b1fe11b61f094fef9e3b0b2652 | 1,647 | py | Python | python/filter_MA.py | vsellemi/macroeconomic-forecasting | a5ad1b88daae084f258c0f5e5b9bd9d145934375 | [
"MIT"
] | 3 | 2021-11-29T11:18:40.000Z | 2021-12-21T15:05:06.000Z | python/filter_MA.py | vsellemi/macroeconomic-forecasting | a5ad1b88daae084f258c0f5e5b9bd9d145934375 | [
"MIT"
] | null | null | null | python/filter_MA.py | vsellemi/macroeconomic-forecasting | a5ad1b88daae084f258c0f5e5b9bd9d145934375 | [
"MIT"
] | 4 | 2021-11-29T11:18:48.000Z | 2021-12-22T01:36:59.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 7 14:40:40 2021
@author: victorsellemi
"""
import numpy as np
def filter_MA(Y,q = 2):
"""
DESCRIPTION:
Decompose a time series into a trend and stationary component
using the moving average (MA) filter (i.e., low pass fi... | 24.58209 | 105 | 0.538555 |
a1ed8f64fdb7a590a23d44e6a7e10803d5c52975 | 3,480 | py | Python | LightFields/xmlFiles/generateXMLFiles.py | sudarshannagesh90/OptimizationDeepLearningImageProcessing | 36ab96ce29a2403166f8f176eb84062c2db7cc6e | [
"MIT"
] | null | null | null | LightFields/xmlFiles/generateXMLFiles.py | sudarshannagesh90/OptimizationDeepLearningImageProcessing | 36ab96ce29a2403166f8f176eb84062c2db7cc6e | [
"MIT"
] | null | null | null | LightFields/xmlFiles/generateXMLFiles.py | sudarshannagesh90/OptimizationDeepLearningImageProcessing | 36ab96ce29a2403166f8f176eb84062c2db7cc6e | [
"MIT"
] | null | null | null | import xml.etree.ElementTree as etree
import xml.dom.minidom
import subprocess
import os
import imageio
import h5py
import numpy as np
filenames = ["airboat","al","alfa147","cessna","cube","diamond","dodecahedron","gourd","humanoid_quad","humanoid_tri","icosahedron","lamp","magnolia","minicooper","octahedron","powe... | 47.027027 | 280 | 0.72069 |
a1ee7d9e488784cc542ed9f4aaf3c9cd7f803d7f | 3,001 | py | Python | _old/test.py | DanielRabl/libtw2 | ebcc833aa418e0ee25ff1da2881f7102dc7efa5d | [
"Apache-2.0",
"MIT"
] | 30 | 2017-07-21T19:05:07.000Z | 2022-01-14T16:24:53.000Z | _old/test.py | DanielRabl/libtw2 | ebcc833aa418e0ee25ff1da2881f7102dc7efa5d | [
"Apache-2.0",
"MIT"
] | 50 | 2017-11-20T16:43:05.000Z | 2022-03-02T21:37:45.000Z | _old/test.py | DanielRabl/libtw2 | ebcc833aa418e0ee25ff1da2881f7102dc7efa5d | [
"Apache-2.0",
"MIT"
] | 12 | 2017-07-21T19:05:10.000Z | 2021-04-09T20:22:58.000Z | import datafile
from collections import defaultdict
#struct CMapItemImage_v1
#{
# int m_Version;
# int m_Width;
# int m_Height;
# int m_External;
# int m_ImageName;
# int m_ImageData;
#} ;
#struct CMapItemImage : public CMapItemImage_v1
#{
# enum { CURRENT_VERSION=2 };
# int m_Format;
#};
if __name__ == '__main__':... | 25.008333 | 104 | 0.673775 |
a1ee7de4317afbc181dee20858eea2b69d2fac4c | 5,414 | py | Python | tests/test_rotate_3dmarkers.py | CRBS/etspecutil | d0b42730545cbf04e0cb222a40845e19ff9ee3f0 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | tests/test_rotate_3dmarkers.py | CRBS/etspecutil | d0b42730545cbf04e0cb222a40845e19ff9ee3f0 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | tests/test_rotate_3dmarkers.py | CRBS/etspecutil | d0b42730545cbf04e0cb222a40845e19ff9ee3f0 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_rotate_3dmarkers
----------------------------------
Tests for `rotate_3dmarkers` module.
"""
import sys
import unittest
import os.path
import tempfile
import shutil
import logging
from etspecutil.marker import MarkersList
from etspecutil.marker import MarkersFr... | 35.155844 | 76 | 0.579424 |
a1efd6d129721046eb1d2381c5f7945eeeb81f90 | 431 | py | Python | tests/conftest.py | asvetlov/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 24 | 2016-12-25T16:24:45.000Z | 2020-04-07T14:39:28.000Z | tests/conftest.py | jettify/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 168 | 2016-11-12T20:50:34.000Z | 2022-03-18T02:09:08.000Z | tests/conftest.py | jettify/aiohttp_mako | 8fb66bd35b8cb4a2fa91e33f3dff918e4798a15a | [
"Apache-2.0"
] | 9 | 2016-12-13T10:48:26.000Z | 2020-09-17T10:42:40.000Z | import sys
import pytest
import aiohttp_mako
from aiohttp import web
| 22.684211 | 64 | 0.584687 |
a1f3d906821dbcf88254a5e1e8e69f73b13693e7 | 3,583 | py | Python | CraftMasterGame/src/enemy.py | Athelios/CraftMaster | 636cc60681d3199b3ae685690ee427fe81672541 | [
"MIT"
] | null | null | null | CraftMasterGame/src/enemy.py | Athelios/CraftMaster | 636cc60681d3199b3ae685690ee427fe81672541 | [
"MIT"
] | null | null | null | CraftMasterGame/src/enemy.py | Athelios/CraftMaster | 636cc60681d3199b3ae685690ee427fe81672541 | [
"MIT"
] | null | null | null | from npc import *
import math
from pyglet import image
from pyglet.graphics import TextureGroup
import os
import json
| 42.654762 | 155 | 0.568518 |
a1f67693d5e8c244c0eda84f1334ad34e26d18f3 | 754 | py | Python | goldsrc/mdl/structs/bodypart.py | half5life/SourceIO | f3dc6db92daa537acbb487ce09f371866f6e3e7f | [
"MIT"
] | 1 | 2021-07-12T12:55:27.000Z | 2021-07-12T12:55:27.000Z | goldsrc/mdl/structs/bodypart.py | half5life/SourceIO | f3dc6db92daa537acbb487ce09f371866f6e3e7f | [
"MIT"
] | null | null | null | goldsrc/mdl/structs/bodypart.py | half5life/SourceIO | f3dc6db92daa537acbb487ce09f371866f6e3e7f | [
"MIT"
] | null | null | null | from typing import List
from .model import StudioModel
from ....source_shared.base import Base
from ....utilities.byte_io_mdl import ByteIO
| 30.16 | 80 | 0.619363 |
a1f747225cd20292d907c35e437ba676e03d1874 | 511 | py | Python | app/core/auth.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | app/core/auth.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | app/core/auth.py | oxfn/owtest | f4eeae225ef67684d96edd5708c44a0fd639d037 | [
"Unlicense"
] | null | null | null | from fastapi import Depends
from fastapi.exceptions import HTTPException
from fastapi.security import OAuth2PasswordBearer
from app.models.users import User, UserRepository
get_token = OAuth2PasswordBearer(tokenUrl="/login")
| 28.388889 | 70 | 0.749511 |
a1f94bf8941a2359311bcdccf3b7596591d7d459 | 1,449 | py | Python | hard-gists/4471462/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/4471462/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/4471462/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
#
# Author: Fred C.
# Email:
#
from __future__ import print_function
from collections import defaultdict
import sys
import DNS
import re
RE_PARSE = re.compile(r'(ip4|ip6|include|redirect)[:=](.*)', re.IGNORECASE)
MAX_RECURSION = 5
if __name__ == '__main__':
whitelist = set()
with open(sys.a... | 21.308824 | 75 | 0.63285 |
a1f99eeded3cabb05a888e2acb13ce873a05d09f | 895 | bzl | Python | tools/build_rules/cc_resources.bzl | justbuchanan/kythe | 91da8b42354cd3b6818be5a9bf4389fd144ff6e5 | [
"Apache-2.0"
] | null | null | null | tools/build_rules/cc_resources.bzl | justbuchanan/kythe | 91da8b42354cd3b6818be5a9bf4389fd144ff6e5 | [
"Apache-2.0"
] | null | null | null | tools/build_rules/cc_resources.bzl | justbuchanan/kythe | 91da8b42354cd3b6818be5a9bf4389fd144ff6e5 | [
"Apache-2.0"
] | null | null | null |
# Returns the generated files directory root.
#
# Note: workaround for https://github.com/bazelbuild/bazel/issues/4463.
| 34.423077 | 79 | 0.484916 |
a1fa4d83464708be7267466fae9107d6a82954d1 | 32,249 | py | Python | modelling/model_seiihurd_matrices.py | lhunlindeion/Mathematical-and-Statistical-Modeling-of-COVID19-in-Brazil | 164f19fcf04fe391aa7515fe436c63c6534fa89c | [
"MIT"
] | 37 | 2020-03-28T16:36:56.000Z | 2021-11-16T11:34:55.000Z | modelling/model_seiihurd_matrices.py | lhunlindeion/Mathematical-and-Statistical-Modeling-of-COVID19-in-Brazil | 164f19fcf04fe391aa7515fe436c63c6534fa89c | [
"MIT"
] | 1 | 2020-05-29T16:39:03.000Z | 2020-06-01T19:29:55.000Z | modelling/model_seiihurd_matrices.py | lhunlindeion/Mathematical-and-Statistical-Modeling-of-COVID19-in-Brazil | 164f19fcf04fe391aa7515fe436c63c6534fa89c | [
"MIT"
] | 9 | 2020-03-28T00:00:16.000Z | 2021-02-19T14:41:47.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 19 18:08:01 2020
@author: Felipe A. C. Pereira
Implementao do ajuste do modelo SEIIHURD com separao de grupos. Necessita
de mais verificaes e funes para simplificar o input. Baseado nas classes
disponveis no modelos.py
"""
import numpy as np
from ... | 48.936267 | 152 | 0.593135 |
a1fac0722dfead6d7d06eddcce884f4ba1c9a684 | 2,447 | py | Python | src/fogml/generators/knn_code_generator.py | bkulawska/FogML | fdcb2f0bf759f1994a6f788e9e60dd2d3b65919a | [
"Apache-2.0"
] | null | null | null | src/fogml/generators/knn_code_generator.py | bkulawska/FogML | fdcb2f0bf759f1994a6f788e9e60dd2d3b65919a | [
"Apache-2.0"
] | null | null | null | src/fogml/generators/knn_code_generator.py | bkulawska/FogML | fdcb2f0bf759f1994a6f788e9e60dd2d3b65919a | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
from sklearn.neighbors import KNeighborsClassifier
from .base_generator import BaseGenerator
| 34.957143 | 91 | 0.585206 |
a1fbd1b0e28715e9bf42d61fcecc21a928f44f08 | 8,719 | py | Python | modules/plugins/__init__.py | sungkomp/sambro | 4618d785d03424d122206d88d9ebfb6971486e2c | [
"MIT"
] | 5 | 2017-02-03T16:29:43.000Z | 2018-12-17T15:43:36.000Z | modules/plugins/__init__.py | sungkomp/sambro | 4618d785d03424d122206d88d9ebfb6971486e2c | [
"MIT"
] | 84 | 2016-04-11T12:47:42.000Z | 2019-05-27T03:46:09.000Z | modules/plugins/__init__.py | sungkomp/sambro | 4618d785d03424d122206d88d9ebfb6971486e2c | [
"MIT"
] | 3 | 2016-11-29T15:27:18.000Z | 2019-10-15T02:46:45.000Z | # -*- coding: utf-8 -*-
import os
import sys
from gluon import current
from gluon.storage import Storage
__all__ = ("PluginLoader",
)
# Name of the plugin directory in modules
PLUGINS = "plugins"
# Module names to ignore when scanning for plugins
IGNORE = ("skeleton", "__init__")
# Name of the setup fu... | 31.02847 | 83 | 0.513476 |
a1fbde784a20640d80d64437aa8dd036428fff1c | 15,105 | py | Python | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | CCMtask/ccm.py | yyFFans/DemoPractises | e0e08413efc598489401c8370f4c7762b3493851 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ccm.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
| 57 | 112 | 0.732539 |
a1fe7d59bcfb1477b00dec04a015c0d87e23fbf2 | 11,758 | py | Python | openstack_dashboard/management/commands/make_web_conf.py | wilk/horizon | bdf7e692227367a928325acdd31088971d3c4ff4 | [
"Apache-2.0"
] | 1 | 2019-08-07T08:46:03.000Z | 2019-08-07T08:46:03.000Z | openstack_dashboard/management/commands/make_web_conf.py | wilk/horizon | bdf7e692227367a928325acdd31088971d3c4ff4 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | openstack_dashboard/management/commands/make_web_conf.py | wilk/horizon | bdf7e692227367a928325acdd31088971d3c4ff4 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # 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, software
# distributed under t... | 35.203593 | 78 | 0.58743 |
a1fe9f599cc2d428cbcc60b9598dd9359a4d7d5f | 1,107 | py | Python | codes/convergence_elasticity_advection/meshManager.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | 1 | 2021-06-18T14:52:03.000Z | 2021-06-18T14:52:03.000Z | codes/convergence_elasticity/meshManager.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | 1 | 2019-01-07T13:11:11.000Z | 2019-01-07T13:11:11.000Z | codes/convergence_elasticity_advection/meshManager.py | adRenaud/research | 2f0062a1800d7a17577bbfc2393b084253d567f4 | [
"MIT"
] | null | null | null | # !/usr/bin/python
import numpy as np
import math as m
| 22.14 | 76 | 0.532972 |
a1fedb42ea7da198208259c1cf29d8481af7dd8f | 3,202 | py | Python | exarl/agents/agent_vault/_prioritized_replay.py | schr476/EXARL | 7f4596bd8b3d7960aaf52bc677ceac4f37029834 | [
"BSD-3-Clause"
] | 2 | 2022-02-03T20:33:17.000Z | 2022-02-10T22:43:32.000Z | exarl/agents/agent_vault/_prioritized_replay.py | schr476/EXARL | 7f4596bd8b3d7960aaf52bc677ceac4f37029834 | [
"BSD-3-Clause"
] | 40 | 2022-01-25T18:03:12.000Z | 2022-03-31T21:43:32.000Z | exarl/agents/agent_vault/_prioritized_replay.py | schr476/EXARL | 7f4596bd8b3d7960aaf52bc677ceac4f37029834 | [
"BSD-3-Clause"
] | 1 | 2022-02-10T14:33:30.000Z | 2022-02-10T14:33:30.000Z | import random
import numpy as np
import tensorflow as tf
from collections import deque
| 32.673469 | 119 | 0.628045 |
b8009f8fd07294eb10166608312734f91397abd7 | 5,722 | py | Python | rmtt_tracker/scripts/roi_tracker.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | rmtt_tracker/scripts/roi_tracker.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | rmtt_tracker/scripts/roi_tracker.py | cavayangtao/rmtt_ros | e89383510373e9ff9c8bb5c43ae719ca575ef2f5 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
# coding=utf-8
# pip install opencv_contrib_python
# tianbot_mini/image_raw/compressed
# roi
import sys
import os
import rospy
import sensor_msgs.msg
from cv_bridge import CvBridge
import cv2
import numpy as np
from sensor_msgs.msg import RegionOfInterest as ROI
from sensor_msgs.msg import Compress... | 31.097826 | 113 | 0.54072 |
b80101fcb0f7ec764004534f9989b58dc2d327bf | 4,236 | py | Python | api-scanner/method_analysis_job.py | ybqdren/Python-JavaAPI-Scanner | 69e2de07c95a8edf526dfb4b8eb14deec5693061 | [
"Apache-2.0"
] | null | null | null | api-scanner/method_analysis_job.py | ybqdren/Python-JavaAPI-Scanner | 69e2de07c95a8edf526dfb4b8eb14deec5693061 | [
"Apache-2.0"
] | null | null | null | api-scanner/method_analysis_job.py | ybqdren/Python-JavaAPI-Scanner | 69e2de07c95a8edf526dfb4b8eb14deec5693061 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
# @Author: ZhaoWen <withzhaowen@126.com>
# @Date: 2021/1/2
# @GiteePath: https://gitee.com/openeuler2020/team-1186152014
from method_analysis_utils.scanner import get_scanner,token_type
import os
import logging.config
from method_analysis_utils.complier import get_complier
#
logging.config.f... | 28.24 | 96 | 0.581681 |
b8014951415d289b10583d9f4dc51aea80536fbd | 4,905 | py | Python | ksteta3pi/Consideredbkg/MC_12_11134011_MagUp.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | ksteta3pi/Consideredbkg/MC_12_11134011_MagUp.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | ksteta3pi/Consideredbkg/MC_12_11134011_MagUp.py | Williams224/davinci-scripts | 730642d2ff13543eca4073a4ce0932631195de56 | [
"MIT"
] | null | null | null | #-- GAUDI jobOptions generated on Mon Jul 20 10:20:49 2015
#-- Contains event types :
#-- 11134011 - 42 files - 900254 events - 251.92 GBytes
#-- Extra information about the data processing phases:
#-- Processing Pass Step-125836
#-- StepId : 125836
#-- StepName : Stripping20-NoPrescalingFlagged for Sim08... | 62.088608 | 215 | 0.798777 |
b801fafbe89ab89d0893778ef60e2212843497d8 | 12,257 | py | Python | pyqtree.py | GuillemHerrera/Pyqtree | 4f8491ba543ec26b6bf9272ee3e2f0f455eff259 | [
"MIT"
] | null | null | null | pyqtree.py | GuillemHerrera/Pyqtree | 4f8491ba543ec26b6bf9272ee3e2f0f455eff259 | [
"MIT"
] | null | null | null | pyqtree.py | GuillemHerrera/Pyqtree | 4f8491ba543ec26b6bf9272ee3e2f0f455eff259 | [
"MIT"
] | null | null | null | """
# Pyqtree
Pyqtree is a pure Python spatial index for GIS or rendering usage.
It stores and quickly retrieves items from a 2x2 rectangular grid area,
and grows in depth and detail as more items are added.
The actual quad tree implementation is adapted from
[Matt Rasmussen's compbio library](https://github.com/mdras... | 34.821023 | 121 | 0.59566 |
b8028a1a0d82b7861ade532f7556efe716f52f14 | 1,136 | py | Python | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day10/calci.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | from logo import logo
symbols = ['+', '-', '/', '*']
operations = {'+': add, '-': subtract,
'*': multiply, '/': divide}
Calci()
| 21.037037 | 100 | 0.529049 |
b805c6c952721423e773c7922c3d8b331193cf4b | 6,089 | py | Python | shoptimizer_api/optimizers_builtin/condition_optimizer.py | leozz37/shoptimizer | a940306cba4040e9d69e1ae2ce077c2a6a108c1f | [
"Apache-2.0"
] | null | null | null | shoptimizer_api/optimizers_builtin/condition_optimizer.py | leozz37/shoptimizer | a940306cba4040e9d69e1ae2ce077c2a6a108c1f | [
"Apache-2.0"
] | null | null | null | shoptimizer_api/optimizers_builtin/condition_optimizer.py | leozz37/shoptimizer | a940306cba4040e9d69e1ae2ce077c2a6a108c1f | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | 40.059211 | 84 | 0.702414 |
b805e135095833b9aacb9e146ceaa3844c6781fb | 670 | py | Python | setup.py | comradepopo/p4rmyknife | e34a12a86cc090e3add25dc5baa7f6629586a4c6 | [
"Apache-2.0"
] | null | null | null | setup.py | comradepopo/p4rmyknife | e34a12a86cc090e3add25dc5baa7f6629586a4c6 | [
"Apache-2.0"
] | 1 | 2019-10-18T23:10:11.000Z | 2019-10-18T23:10:11.000Z | setup.py | comradepopo/p4rmyknife | e34a12a86cc090e3add25dc5baa7f6629586a4c6 | [
"Apache-2.0"
] | null | null | null | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
'description': 'P4rmyKnife - The Swiss Army Knife for P4',
'author': 'Assembla, Inc.',
'url': 'https://assembla.com/'
'author_email': 'louis@assembla.com',
'version': '0.1',
'install_requires': [],
... | 25.769231 | 62 | 0.626866 |
b807feaa7b46fd15709c8ce5d95d9ec7f33de619 | 446 | py | Python | utilities/readProperties.py | harry-100/qa-automation-framework | 5fbe03e930820537e53f2d26b1c2b2bd2b222bf5 | [
"MIT"
] | null | null | null | utilities/readProperties.py | harry-100/qa-automation-framework | 5fbe03e930820537e53f2d26b1c2b2bd2b222bf5 | [
"MIT"
] | null | null | null | utilities/readProperties.py | harry-100/qa-automation-framework | 5fbe03e930820537e53f2d26b1c2b2bd2b222bf5 | [
"MIT"
] | null | null | null | from configparser import RawConfigParser
config = RawConfigParser()
config.read("configuration/config.ini")
| 20.272727 | 52 | 0.7287 |
b80bab1732354a9bf5c8b8066aa6d633362ec4a1 | 181 | py | Python | tinyq/__init__.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | 14 | 2017-08-02T23:30:16.000Z | 2021-05-31T19:58:29.000Z | tinyq/__init__.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | null | null | null | tinyq/__init__.py | mozillazg/tinyq | fd9ecc593931c9b315c4aeb9150389b3e4ae670e | [
"MIT"
] | 2 | 2017-03-13T09:36:05.000Z | 2017-10-27T14:33:48.000Z | # -*- coding: utf-8 -*-
from tinyq.app import Application # noqa
__version__ = '0.3.0'
__author__ = 'mozillazg'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2017 mozillazg'
| 22.625 | 46 | 0.696133 |
b80bd1236784afca06c2fdaedb154f5764c38921 | 258 | py | Python | henrietta/tests/__init__.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | null | null | null | henrietta/tests/__init__.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | 12 | 2018-09-12T03:56:04.000Z | 2019-02-15T04:12:53.000Z | henrietta/tests/__init__.py | zkbt/henrietta | 653d798b241ad5591b704967a0413a2457a4e734 | [
"MIT"
] | null | null | null | from .test_lightcurves import *
from .test_statistics import *
from .test_models import *
from .test_fitting import *
from .test_tools import *
from .test_photometry import *
from .test_tpf import *
from .test_imaging import *
from .test_photometry import *
| 25.8 | 31 | 0.790698 |
b80c3a78699daca713934719586192ebb12c7028 | 340 | py | Python | personas.py | Ulzahk/Practica-Python-CRUD | 2657be639bce88e5774f3b16c11ecbb33c41bc83 | [
"MIT"
] | null | null | null | personas.py | Ulzahk/Practica-Python-CRUD | 2657be639bce88e5774f3b16c11ecbb33c41bc83 | [
"MIT"
] | null | null | null | personas.py | Ulzahk/Practica-Python-CRUD | 2657be639bce88e5774f3b16c11ecbb33c41bc83 | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
person = Person('David', 34)
print('Age: {}'.format(person.age))
person.say_hello() | 18.888889 | 87 | 0.585294 |
b80d9fd4d22bb1d71b3dd29f2cdfd01260186b03 | 614 | py | Python | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | python/right_couch_move.py | ktmock13/PiCouch | 21992efca9fa382c7a02c10fb037a994143038c6 | [
"Apache-2.0"
] | null | null | null | import RPi.GPIO as GPIO
from time import sleep
import sys
#setup
GPIO.setmode(GPIO.BOARD)
openRelay=11
closeRelay=13
GPIO.setup(openRelay, GPIO.OUT)
GPIO.setup(closeRelay, GPIO.OUT)
#get cmd args
duration = float(sys.argv[1])
opening = sys.argv[2] in ['true', 'True', '1', 'TRUE']
relay = openRelay if opening else cl... | 20.466667 | 66 | 0.640065 |
b80eb5f1166695a86c73eccb3c18067bd324e51b | 3,725 | py | Python | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | 12 | 2020-06-06T01:22:26.000Z | 2022-03-12T00:13:42.000Z | lib/python3.7/site-packages/dash_bootstrap_components/_components/Popover.py | dukuaris/Django | d34f3e3f09028511e96b99cae7faa1b46458eed1 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
| 67.727273 | 432 | 0.720537 |
b81062d8563ac7d8651bf77dad80875a2f3da169 | 3,954 | py | Python | aries_cloudagent/wallet/tests/test_key_pair.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 247 | 2019-07-02T21:10:21.000Z | 2022-03-30T13:55:33.000Z | aries_cloudagent/wallet/tests/test_key_pair.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 1,462 | 2019-07-02T20:57:30.000Z | 2022-03-31T23:13:35.000Z | aries_cloudagent/wallet/tests/test_key_pair.py | kuraakhilesh8230/aries-cloudagent-python | ee384d1330f6a50ff45a507392ce54f92900f23a | [
"Apache-2.0"
] | 377 | 2019-06-20T21:01:31.000Z | 2022-03-30T08:27:53.000Z | from asynctest import TestCase as AsyncTestCase
import json
from ...storage.error import StorageNotFoundError
from ..util import bytes_to_b58
from ..key_type import KeyType
from ...core.in_memory import InMemoryProfile
from ...storage.in_memory import InMemoryStorage
from ..key_pair import KeyPairStorageManager, KEY_... | 35.303571 | 88 | 0.687405 |
b8116854eec000b484014c431645628bfade8561 | 6,191 | py | Python | sonipy/scales/frequency.py | Sabrina-Knappe/sonipy | eaf89afaee0d9c2d5ba7a035d43e651b8919b84e | [
"MIT"
] | 22 | 2020-07-04T19:05:25.000Z | 2022-02-25T08:39:01.000Z | sonipy/scales/frequency.py | Sabrina-Knappe/sonipy | eaf89afaee0d9c2d5ba7a035d43e651b8919b84e | [
"MIT"
] | 6 | 2020-07-07T17:09:00.000Z | 2021-04-12T16:37:41.000Z | sonipy/scales/frequency.py | Sabrina-Knappe/sonipy | eaf89afaee0d9c2d5ba7a035d43e651b8919b84e | [
"MIT"
] | 6 | 2020-07-07T08:28:33.000Z | 2021-12-21T03:52:09.000Z | from __future__ import print_function
import warnings
import numpy as np
C4 = 261.6 # Hz
piano_max = 4186.01 # Hz
piano_min = 27.5000 # Hz - not audible
__all__ = ['cent_per_value','get_f_min','get_f_max','FrequencyScale']
def cent_per_value(f_min, f_max, v_min, v_max):
"""
This function takes in a freque... | 34.977401 | 181 | 0.63237 |
b8118840491eaf33f7fcef02b6ab1cab5378d698 | 338 | py | Python | core_admin/des/ccd/daemon.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | null | null | null | core_admin/des/ccd/daemon.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | 112 | 2018-04-24T19:10:55.000Z | 2022-02-26T16:55:02.000Z | core_admin/des/ccd/daemon.py | linea-it/tno | f973381280504ceb1b606b5b3ccc79b6b8c2aa4f | [
"MIT"
] | null | null | null | from apscheduler.schedulers.background import BackgroundScheduler
from des.ccd import start_pipeline
scheduler = BackgroundScheduler()
scheduler.add_job(
download_queue,
'interval',
# minutes=1
seconds=20,
max_instances=1,
id='des_download_ccd'
)
scheduler.start()
| 16.095238 | 65 | 0.739645 |
b811d6fa0121474e3b20b511fc6bfce131c9ffa7 | 440 | py | Python | calc-app/input_console.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | calc-app/input_console.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | calc-app/input_console.py | t4d-classes/python_10042021 | e2c28448ad66784c429655ab766f902b76d6ac79 | [
"MIT"
] | null | null | null | from common.input import input_int, input_float
| 20 | 57 | 0.725 |
b811e4d73c683e7404a77a68edf057c683bf41a7 | 1,872 | py | Python | tools/stimgen/gen_recall.py | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | 2 | 2016-08-12T15:06:02.000Z | 2021-10-05T08:12:17.000Z | tools/stimgen/gen_recall.py | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | 2 | 2017-04-23T17:22:23.000Z | 2017-05-25T14:22:51.000Z | tools/stimgen/gen_recall.py | herenvarno/gsbn | 47ed0932b605d8b3cf9661f9308908364ad5892e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import sys
import re
import math
import random
import matplotlib.pyplot as plt
import numpy as np
from google.protobuf import text_format
sys.path.append(os.path.dirname(os.path.realpath(__file__))+"/../../build")
import gsbn_pb2
if len(sys.argv) < 1:
print("Arguments wrong! Please r... | 25.643836 | 115 | 0.744658 |
b81231fb69c94c906db0d3069a6a4df0633be007 | 174 | py | Python | python/find_country/city.py | lukasjoc/scritps | ebcffef0a3977ab8bb1bebf20383c350bd7baa37 | [
"0BSD"
] | 1 | 2020-11-09T19:32:43.000Z | 2020-11-09T19:32:43.000Z | python/find_country/city.py | lukasjoc/scritps | ebcffef0a3977ab8bb1bebf20383c350bd7baa37 | [
"0BSD"
] | null | null | null | python/find_country/city.py | lukasjoc/scritps | ebcffef0a3977ab8bb1bebf20383c350bd7baa37 | [
"0BSD"
] | null | null | null | #!/usr/bin/env python3
from geopy.geocoders import Nominatim
locator = Nominatim(user_agent="getcity")
loc = locator.geocode("Munich")
print(loc.latitude, loc.longitude)
| 17.4 | 41 | 0.764368 |
b8126bfcea007e0faa9e48fd38823790a37c5d11 | 6,448 | py | Python | bitio/src/microbit/repl/repl.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 85 | 2017-06-09T20:53:46.000Z | 2022-03-09T21:35:05.000Z | bitio/src/microbit/repl/repl.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 34 | 2017-06-09T20:52:05.000Z | 2021-02-19T19:49:45.000Z | bitio/src/microbit/repl/repl.py | hungjuchen/Atmosmakers | 4e8e64fba3d7a31840f69a5aa3823247aa5dca02 | [
"MIT"
] | 32 | 2017-06-09T10:15:19.000Z | 2021-11-20T09:08:08.000Z | # repl/repl.py
#
# A REPL interface to a micro:bit or similar device running MicroPython
# This is written on top of pyserial, however the dependency on pyserial
# is soft (as the serial instance is passed in as a constructor parameter
# and the detection of the need to bytes-encode strings is dynamic).
# Thus you can ... | 35.234973 | 108 | 0.563896 |
b814083d787036eed69c0998c2575b86f722e9ca | 3,172 | py | Python | src/cocoannot/annotpreferred/models.py | coco-tasks/annotation-tool | ebd2e77ec8aeddedb9f87f457b6d5d8989b602db | [
"MIT"
] | 9 | 2019-04-18T15:35:38.000Z | 2021-06-07T08:01:27.000Z | src/cocoannot/annotpreferred/models.py | coco-tasks/annotation-tool | ebd2e77ec8aeddedb9f87f457b6d5d8989b602db | [
"MIT"
] | 1 | 2019-07-16T10:07:09.000Z | 2019-07-16T10:07:09.000Z | src/cocoannot/annotpreferred/models.py | coco-tasks/annotation-tool | ebd2e77ec8aeddedb9f87f457b6d5d8989b602db | [
"MIT"
] | 3 | 2020-05-20T12:06:59.000Z | 2020-12-12T06:45:26.000Z | from django.contrib.auth.models import User
from django.db import models
from markdownx.models import MarkdownxField
| 33.041667 | 108 | 0.698298 |
b81415a0a71fcac22aeb01aa39ba0c4dc0f68e8c | 13,866 | py | Python | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2015-11-05T21:38:38.000Z | 2015-11-05T21:38:38.000Z | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | data/meterpreter/meterpreter.py | codex8/metasploit-framework | eb745af12fe591e94f8d6ce9dac0396d834991ab | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
import code
import ctypes
import os
import random
import select
import socket
import struct
import subprocess
import sys
import threading
has_windll = hasattr(ctypes, 'windll')
#
# Constants
#
PACKET_TYPE_REQUEST = 0
PACKET_TYPE_RESPONSE = 1
PACKET_TYPE_PLAIN_REQUEST = 10
PACKET_TYPE_PLAIN_RESPONSE ... | 33.737226 | 134 | 0.706044 |
b814b973d8e54a857c2c3fc248c1064d45ba00c1 | 8,599 | py | Python | utils/dev/feature.py | brunocvs7/bot_detection_twitter_profile_features | 44a88b0774bdab33da78f7679e109ccd8c34f4df | [
"MIT"
] | 1 | 2021-11-03T02:22:57.000Z | 2021-11-03T02:22:57.000Z | utils/dev/feature.py | brunocvs7/bot_detection_twitter_profile_features | 44a88b0774bdab33da78f7679e109ccd8c34f4df | [
"MIT"
] | null | null | null | utils/dev/feature.py | brunocvs7/bot_detection_twitter_profile_features | 44a88b0774bdab33da78f7679e109ccd8c34f4df | [
"MIT"
] | 1 | 2021-11-01T00:49:07.000Z | 2021-11-01T00:49:07.000Z | from sklearn.preprocessing import MinMaxScaler
from sklearn.pipeline import Pipeline
from scipy.stats import chi2_contingency
from sklearn.compose import ColumnTransformer
from boruta import BorutaPy
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import OrdinalEncoder
from sklearn.impute... | 41.946341 | 186 | 0.636818 |
b814f40aa31389fa14c7b83364d7da4918d56140 | 6,293 | py | Python | apiserver/apiserver/web/challenge.py | AlexParra03/Halite-III | 1f108a0d9a07397400621e9a7ccefd7f4f13fee2 | [
"MIT"
] | 1 | 2021-07-01T20:57:24.000Z | 2021-07-01T20:57:24.000Z | apiserver/apiserver/web/challenge.py | the-higgs/Halite-III | 1f108a0d9a07397400621e9a7ccefd7f4f13fee2 | [
"MIT"
] | null | null | null | apiserver/apiserver/web/challenge.py | the-higgs/Halite-III | 1f108a0d9a07397400621e9a7ccefd7f4f13fee2 | [
"MIT"
] | null | null | null | """
User challenge API endpoints - list user's challenges & issue new ones
"""
import datetime
import flask
import sqlalchemy
from .. import model, util
from . import match as match_api
from . import util as api_util
from .blueprint import web_api
| 36.587209 | 87 | 0.622755 |
b8155fb4487ab6eefaea72ef47aa753b0a19b9bd | 264 | py | Python | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 1 | 2020-12-08T19:00:33.000Z | 2020-12-08T19:00:33.000Z | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 3 | 2021-03-30T13:47:03.000Z | 2021-09-22T19:03:46.000Z | txtjokes/urls.py | paqman85/txtjokes | d5b9faa1fd3f797c2feee277b8cd428cc05a17ed | [
"MIT"
] | 1 | 2020-04-24T14:39:03.000Z | 2020-04-24T14:39:03.000Z | from django.conf import settings
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('txt-jokes-administratus/', admin.site.urls),
path('accounts/', include('allauth.urls')),
path('', include('pages.urls')),
]
| 24 | 54 | 0.704545 |
b8180b5b5c77d3a1a684f4f02028d017f4b7a210 | 1,909 | py | Python | newsservice/requestnews.py | mohawk781/newsservice | 0b7007c632211e35000dfba5e8ff9f23cff9450d | [
"Apache-2.0"
] | null | null | null | newsservice/requestnews.py | mohawk781/newsservice | 0b7007c632211e35000dfba5e8ff9f23cff9450d | [
"Apache-2.0"
] | 1 | 2021-06-01T23:59:17.000Z | 2021-06-01T23:59:17.000Z | newsservice/requestnews.py | mohawk781/newsservice | 0b7007c632211e35000dfba5e8ff9f23cff9450d | [
"Apache-2.0"
] | 1 | 2019-09-06T10:51:08.000Z | 2019-09-06T10:51:08.000Z | import json
from newsservice.models import News
from flask import (Blueprint, request)
bp = Blueprint('request', __name__)
| 38.959184 | 133 | 0.655317 |
b8185170e7135ee17602f233ff3d6eb5d6bbc140 | 943 | py | Python | tests/test_lexer.py | movermeyer/rexlex | 6c451a3b7e9134cbdf895a7ec5682e480480ef1a | [
"BSD-3-Clause"
] | null | null | null | tests/test_lexer.py | movermeyer/rexlex | 6c451a3b7e9134cbdf895a7ec5682e480480ef1a | [
"BSD-3-Clause"
] | null | null | null | tests/test_lexer.py | movermeyer/rexlex | 6c451a3b7e9134cbdf895a7ec5682e480480ef1a | [
"BSD-3-Clause"
] | 1 | 2018-03-05T00:40:04.000Z | 2018-03-05T00:40:04.000Z | import re
import unittest
from rexlex import Lexer
from rexlex.lexer.itemclass import get_itemclass
| 21.930233 | 54 | 0.510074 |
b8187e4887ed852a5b867debdeeccee5408895fe | 7,134 | py | Python | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | 2 | 2018-02-05T12:41:31.000Z | 2018-11-23T04:13:13.000Z | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | null | null | null | Engine/src/tests/algorithms/neuralnetwork/convolutional/conv_net_test.py | xapharius/HadoopML | c0129f298007ca89b538eb1a3800f991141ba361 | [
"MIT"
] | null | null | null | import unittest
import numpy as np
import utils.imageutils as imgutils
import utils.numpyutils as nputils
from algorithms.neuralnetwork.convolutional.conv_net import ConvNet
from datahandler.numerical.NumericalDataSet import NumericalDataSet
import utils.serialization as srlztn
if __name__ == "__main__":
#impor... | 49.2 | 158 | 0.610457 |
b819490a0e749fdb6fa33717dab9405f34226e11 | 2,747 | py | Python | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | null | null | null | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | 23 | 2017-08-25T16:48:57.000Z | 2022-02-16T00:55:42.000Z | docker/eXist-seed/app/connector.py | ThomasTos/Pogues-Back-Office | b346d94407bf36e37d705b1d220ab0775a120574 | [
"MIT"
] | 13 | 2017-07-03T09:15:36.000Z | 2021-07-02T07:43:10.000Z | import requests
from requests.auth import HTTPBasicAuth
import sys
import os
from string import rfind
import base64 | 32.702381 | 127 | 0.581361 |
b81a09ef1cba709f702bd49fe66d6f2697a395a3 | 5,736 | py | Python | handy/2011722086_Assign3/main_app.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | 2 | 2017-11-01T12:46:06.000Z | 2017-12-02T04:01:25.000Z | handy/2011722086_Assign3/main_app.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | null | null | null | handy/2011722086_Assign3/main_app.py | HDNua/kwin | 33ce866c2b37faa1a5940354a0e5b3919e5eecc8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue May 30 16:43:10 2017
provided code
@author: Minsooyeo
"""
import os
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
from PIL import Image as im
import numpy as np
import utills as ut
import tensorflow as tf
sess = tf.InteractiveSession()
train_epoch = 5000
... | 36.303797 | 116 | 0.566597 |
b81de3e83d88be8e9727e5be630e392a0dd09037 | 3,176 | py | Python | ilrma.py | annie-gu/MVAE | 252b052d69eae9a0b47f4058baf0fe565992f12f | [
"MIT"
] | 1 | 2022-01-08T03:31:31.000Z | 2022-01-08T03:31:31.000Z | ilrma.py | annie-gu/MVAE | 252b052d69eae9a0b47f4058baf0fe565992f12f | [
"MIT"
] | null | null | null | ilrma.py | annie-gu/MVAE | 252b052d69eae9a0b47f4058baf0fe565992f12f | [
"MIT"
] | 2 | 2020-06-21T12:55:53.000Z | 2020-11-16T00:56:36.000Z | import numpy as np
from common import projection_back
EPS = 1e-9
def ilrma(mix, n_iter, n_basis=2, proj_back=True):
"""Implementation of ILRMA (Independent Low-Rank Matrix Analysis).
This algorithm is called ILRMA1 in http://d-kitamura.net/pdf/misc/AlgorithmsForIndependentLowRankMatrixAnalysis.pdf
It on... | 37.809524 | 119 | 0.55699 |
b81ecc580a437a3d551ab5dfa4a59c26d6b5e052 | 367 | py | Python | tests/routes/test_pages.py | Biosystems-Analytics-Lab/shellcast | 8d578bfa3d66d75502f1a133fe6263d376694247 | [
"CC-BY-4.0"
] | 5 | 2021-03-24T19:19:48.000Z | 2022-01-11T09:27:13.000Z | tests/routes/test_pages.py | Biosystems-Analytics-Lab/shellcast | 8d578bfa3d66d75502f1a133fe6263d376694247 | [
"CC-BY-4.0"
] | 1 | 2022-01-13T15:11:09.000Z | 2022-01-13T21:16:10.000Z | tests/routes/test_pages.py | Biosystems-Analytics-Lab/shellcast | 8d578bfa3d66d75502f1a133fe6263d376694247 | [
"CC-BY-4.0"
] | null | null | null | import pytest
| 20.388889 | 34 | 0.700272 |
b81fcb30f8bd89568af442548e95ceeba2331cfd | 412 | py | Python | Task -01/loop.py | kanzul12/cp19_voice_detector | db5478b118bab46897b4230d366e11b9ad65e0ce | [
"MIT"
] | 2 | 2019-04-19T08:26:09.000Z | 2019-04-30T12:52:58.000Z | Task -01/loop.py | kanzul12/cp19_voice_detector | db5478b118bab46897b4230d366e11b9ad65e0ce | [
"MIT"
] | 5 | 2019-05-03T07:47:35.000Z | 2019-05-13T08:37:11.000Z | Task -01/loop.py | kanzul12/cp19_voice_detector | db5478b118bab46897b4230d366e11b9ad65e0ce | [
"MIT"
] | null | null | null | num= int (input("enter number of rows="))
for i in range (1,num+1):
for j in range(1,num-i+1):
print (" ",end="")
for j in range(2 and 9):
print("2","9")
for i in range(1, 6):
for j in range(1, 10):
if i==5 or i+j==5 or j-i==4:
print("*", end... | 16.48 | 44 | 0.383495 |
6293f58cd98657d8f6c935c1d17ddd8632667efa | 4,819 | py | Python | examples/racing/models/HyperNN.py | Chris-Carvelli/DeepNeuroevolution | 72e11fd08273ee1b25c346abd90b76a5975c39db | [
"MIT"
] | null | null | null | examples/racing/models/HyperNN.py | Chris-Carvelli/DeepNeuroevolution | 72e11fd08273ee1b25c346abd90b76a5975c39db | [
"MIT"
] | null | null | null | examples/racing/models/HyperNN.py | Chris-Carvelli/DeepNeuroevolution | 72e11fd08273ee1b25c346abd90b76a5975c39db | [
"MIT"
] | 1 | 2021-05-14T15:08:15.000Z | 2021-05-14T15:08:15.000Z | import random
import math
from functools import reduce
import torch
import torch.nn as nn
| 32.782313 | 87 | 0.552812 |
62961303726bbf57667dd5ce6020b5b0a4afb7e5 | 8,351 | py | Python | O.py | duongnguyenkt11/data-realtime | 9d8f6c8e0f6a766c058d0696669543dbafaff63c | [
"MIT"
] | null | null | null | O.py | duongnguyenkt11/data-realtime | 9d8f6c8e0f6a766c058d0696669543dbafaff63c | [
"MIT"
] | null | null | null | O.py | duongnguyenkt11/data-realtime | 9d8f6c8e0f6a766c058d0696669543dbafaff63c | [
"MIT"
] | null | null | null | from functools import reduce
from bokeh.plotting import figure, output_file, show
from bokeh.io import output_notebook
from CONSTANTS import *
from utilities import *
from bokeh.plotting import figure, output_file, show
import pandas as pd, numpy as np
ENVIRON = C.LOCAL
| 41.137931 | 124 | 0.524009 |
6296eebeb1e65d269ec9089013edb6a402685434 | 6,790 | py | Python | project1/evaluation.py | DiscoBroccoli/logistic-regression-and-naive-Bayes-from-Scratch | bcb24a9258ea004a3694e6eaa524b499c2584f96 | [
"MIT"
] | null | null | null | project1/evaluation.py | DiscoBroccoli/logistic-regression-and-naive-Bayes-from-Scratch | bcb24a9258ea004a3694e6eaa524b499c2584f96 | [
"MIT"
] | null | null | null | project1/evaluation.py | DiscoBroccoli/logistic-regression-and-naive-Bayes-from-Scratch | bcb24a9258ea004a3694e6eaa524b499c2584f96 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# [0,0] = TN
# [1,1] = TP
# [0,1] = FP
# [1,0] = FN
# cm is a confusion matrix
# Accuracy: (TP + TN) / Total
# Precision: TP / (TP + FP)
# False positive rate: FP / N = FP / (FP + TN)
# True positive rate: TP / P = TP / ... | 29.267241 | 126 | 0.610162 |
62982d88e6406e32cdc302d54bc0206efda33025 | 957 | py | Python | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 144 | 2020-09-13T22:54:57.000Z | 2022-02-24T21:54:25.000Z | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 587 | 2020-05-06T18:55:07.000Z | 2021-09-20T13:14:53.000Z | LeetCode/0005_Longest_Palindromic_Substring.py | Achyut-sudo/PythonAlgorithms | 21fb6522510fde7a0877b19a8cedd4665938a4df | [
"MIT"
] | 523 | 2020-09-09T12:07:13.000Z | 2022-02-24T21:54:31.000Z | '''
Problem:-
Given a string s, find the longest palindromic substring in s.
You may assume that the maximum length of s is 1000.
Example 1:
Input: "babad"
Output: "bab"
Note: "aba" is also a valid answer.
''' | 25.184211 | 63 | 0.378265 |
6299c0fed43754304eadd3c72255fa97d06e27b5 | 119 | py | Python | pyimagesearch/utils/__init__.py | agoila/lisa-faster-R-CNN | 3b88c9b7da2106a805089f9619ea62cdc1f21d99 | [
"MIT"
] | 17 | 2018-09-09T10:56:58.000Z | 2022-02-22T07:18:50.000Z | pyimagesearch/utils/__init__.py | agoila/lisa-faster-R-CNN | 3b88c9b7da2106a805089f9619ea62cdc1f21d99 | [
"MIT"
] | null | null | null | pyimagesearch/utils/__init__.py | agoila/lisa-faster-R-CNN | 3b88c9b7da2106a805089f9619ea62cdc1f21d99 | [
"MIT"
] | 21 | 2018-09-19T11:07:10.000Z | 2022-02-22T07:18:45.000Z | # import the necessary packages
from .agegenderhelper import AgeGenderHelper
from .imagenethelper import ImageNetHelper | 39.666667 | 44 | 0.87395 |
6299f854c3c07764e1143810fd65fb9514af0ec6 | 2,965 | py | Python | pylibressl/cipher/onion.py | yl3dy/pylibressl | ffc3e195a31a6c96b28e52a7e146995219b220b2 | [
"MIT"
] | 2 | 2021-08-22T00:43:05.000Z | 2021-08-22T01:57:28.000Z | pylibressl/cipher/onion.py | yl3dy/pylibressl | ffc3e195a31a6c96b28e52a7e146995219b220b2 | [
"MIT"
] | null | null | null | pylibressl/cipher/onion.py | yl3dy/pylibressl | ffc3e195a31a6c96b28e52a7e146995219b220b2 | [
"MIT"
] | 1 | 2021-08-24T19:09:06.000Z | 2021-08-24T19:09:06.000Z | from .. import lib
from ..exceptions import *
from .. import _libressl
from .cipher import BaseCipher
from .auth import BaseCipherAuth
from .auth import GOST89_HMAC_Streebog512, AES256_GCM
ffi, clib = _libressl.ffi, _libressl.lib
Onion_AES256_GOST89 = OnionCipher.new((AES256_GCM, GOST89_HMAC_Streebog512),
... | 37.0625 | 79 | 0.577403 |
629aa7218a98f287f8a5760fc5e65461390c3529 | 1,149 | py | Python | tests/plots/density_estimate.py | bws428/ambiance | 8cbc5fe38f34e1ce8ccf568d0961ad6573f7b612 | [
"Apache-2.0"
] | 18 | 2020-03-06T14:54:29.000Z | 2022-03-21T20:20:42.000Z | tests/plots/density_estimate.py | bws428/ambiance | 8cbc5fe38f34e1ce8ccf568d0961ad6573f7b612 | [
"Apache-2.0"
] | 7 | 2020-04-19T15:21:54.000Z | 2022-03-05T14:27:38.000Z | tests/plots/density_estimate.py | bws428/ambiance | 8cbc5fe38f34e1ce8ccf568d0961ad6573f7b612 | [
"Apache-2.0"
] | 7 | 2019-12-30T16:22:24.000Z | 2021-09-08T07:36:23.000Z | import os
import numpy as np
import matplotlib.pyplot as plt
from ambiance import Atmosphere, CONST
HERE = os.path.abspath(os.path.dirname(__file__))
FILE_NAME = os.path.basename(__file__).replace('.py', '.png')
PATH_OUT = os.path.join(HERE, FILE_NAME)
# Make an atmosphere object
heights = np.linspace(-10e3, 90e3,... | 27.357143 | 68 | 0.711923 |
629b94b4505379de3aa682273cf3ce0b75e0c007 | 1,277 | py | Python | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/tests/test_sets.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2015-01-29T06:52:36.000Z | 2015-01-29T06:52:36.000Z | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/tests/test_sets.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | pkgs/numba-0.24.0-np110py27_0/lib/python2.7/site-packages/numba/tests/test_sets.py | wangyum/anaconda | 6e5a0dbead3327661d73a61e85414cf92aa52be6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from __future__ import print_function
import numba.unittest_support as unittest
from numba.utils import PYVERSION
from .support import TestCase, enable_pyobj_flags
needs_set_literals = unittest.skipIf(PYVERSION < (2, 7),
"set literals unavailable before Python 2.7")
if __name... | 29.697674 | 82 | 0.653876 |
629ca661207da75df901826b3e4cddc99718c385 | 1,188 | py | Python | docs/_static/rc4.py | Varbin/pep272-encryption | db0795396226a9d49d8825e29c550739ff222539 | [
"CC0-1.0"
] | 1 | 2021-07-08T21:37:17.000Z | 2021-07-08T21:37:17.000Z | docs/_static/rc4.py | Varbin/pep272-encryption | db0795396226a9d49d8825e29c550739ff222539 | [
"CC0-1.0"
] | null | null | null | docs/_static/rc4.py | Varbin/pep272-encryption | db0795396226a9d49d8825e29c550739ff222539 | [
"CC0-1.0"
] | null | null | null | from pep272_encryption import PEP272Cipher, MODE_ECB
block_size = 1
key_size = 0
assert RC4Cipher(b'\x01\x02\x03\x04\x05').encrypt(b'\x00'*16) \
== b"\xb29c\x05\xf0=\xc0'\xcc\xc3RJ\n\x11\x18\xa8"
| 27.627907 | 71 | 0.574074 |
629e0a7c590dbbe85c6d17dfffa34ca982e371ac | 12,316 | py | Python | Packages/mdpopups/st3/mdpopups/st_color_scheme_matcher.py | Michael-Villano/Sublime-setup | 15a992d5982337169dadb50fd0dbca4ca3be992e | [
"MIT"
] | 49 | 2016-06-29T22:51:50.000Z | 2020-07-06T09:15:41.000Z | Packages/mdpopups/st3/mdpopups/st_color_scheme_matcher.py | Michael-Villano/Sublime-setup | 15a992d5982337169dadb50fd0dbca4ca3be992e | [
"MIT"
] | 1 | 2019-07-20T11:09:14.000Z | 2019-07-20T11:09:14.000Z | Packages/mdpopups/st3/mdpopups/st_color_scheme_matcher.py | Michael-Villano/Sublime-setup | 15a992d5982337169dadb50fd0dbca4ca3be992e | [
"MIT"
] | 13 | 2016-09-13T13:26:24.000Z | 2021-04-28T03:17:19.000Z | """
color_scheme_matcher.
Licensed under MIT.
Copyright (C) 2012 Andrew Gibson <agibsonsw@gmail.com>
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 limit... | 43.985714 | 120 | 0.60531 |
629f16a424f010c4c41e887a5a673cd1324c487c | 820 | py | Python | hadoop/hadoop/node.py | DropletProbe/shellscripts | d070eef24cd6003694d81a3bdc38f2097452c076 | [
"MIT"
] | null | null | null | hadoop/hadoop/node.py | DropletProbe/shellscripts | d070eef24cd6003694d81a3bdc38f2097452c076 | [
"MIT"
] | null | null | null | hadoop/hadoop/node.py | DropletProbe/shellscripts | d070eef24cd6003694d81a3bdc38f2097452c076 | [
"MIT"
] | null | null | null | import re
# if __name__ == "__main__":
# a = Node(1, "192.168.1.300", 1, 1)
# a.validate()
| 28.275862 | 132 | 0.540244 |
629facc04419dcfc8b14e0e646d18577710d3fd8 | 134 | py | Python | Python/School/C7/q2.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | Python/School/C7/q2.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | Python/School/C7/q2.py | abdalrhmanyasser/Abdalrhman_Rep | e0fc3caa2cc04e92f591ccd7934586986d194000 | [
"CC0-1.0"
] | null | null | null | from random import *
l = []
for i in range(50):
l.append(randint(1, 100))
print(l)
for i in range(len(l)):
l[i] **= 2
print(l) | 16.75 | 29 | 0.58209 |
62a017f4ec169c103d6b2ccf1047abf661d12ee5 | 827 | py | Python | code401challengespython/radix_sort/radix_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/radix_sort/radix_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | code401challengespython/radix_sort/radix_sort.py | danhuyle508/data-structures-and-algorithms | 476f32ebcde0350390e36d32e5dc7911ac9bab09 | [
"MIT"
] | null | null | null | import math | 28.517241 | 60 | 0.436518 |
62a043b5cf107ad3ad2080e48c27d0e71c339360 | 4,232 | py | Python | main_no_module.py | KMU-AELAB-AL/random | 40c796cb6936742eace4651b1525ba6bea88b37d | [
"MIT"
] | null | null | null | main_no_module.py | KMU-AELAB-AL/random | 40c796cb6936742eace4651b1525ba6bea88b37d | [
"MIT"
] | null | null | null | main_no_module.py | KMU-AELAB-AL/random | 40c796cb6936742eace4651b1525ba6bea88b37d | [
"MIT"
] | null | null | null | import os
import random
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
import torch.optim.lr_scheduler as lr_scheduler
from torch.utils.data.sampler import SubsetRandomSampler
from torchvision.datasets import CIFAR100, CIFAR10
from tqdm import tqdm
from config... | 32.553846 | 119 | 0.629962 |
62a2a70bfd5dba6090a4f4d7e8ad09c40c0c9748 | 1,284 | py | Python | deployment_scripts/python/modules/deploy_mgmt.py | Nexenta/fuel-plugin-nexentaedge | 6cd55bdfd40b4e9e841834b4f8dac29f1684af8e | [
"Apache-2.0"
] | null | null | null | deployment_scripts/python/modules/deploy_mgmt.py | Nexenta/fuel-plugin-nexentaedge | 6cd55bdfd40b4e9e841834b4f8dac29f1684af8e | [
"Apache-2.0"
] | null | null | null | deployment_scripts/python/modules/deploy_mgmt.py | Nexenta/fuel-plugin-nexentaedge | 6cd55bdfd40b4e9e841834b4f8dac29f1684af8e | [
"Apache-2.0"
] | null | null | null | import sys
from nexentaedge.utils import get_sid
from nexentaedge.nedgeConfigurator import NedgeMgmtConfigurator
from utils import get_iface_name_by_mac_from_list
from utils import get_deployment_config
if __name__ == '__main__':
main()
| 29.181818 | 79 | 0.63785 |
62a3ad6a413be7104ebcc620eae261f63aeb9314 | 1,234 | py | Python | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | bookmarks/account/urls.py | dorotan/social | f78dc84554ef37c40f661ee1350bd3d5ade51d46 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
from django.contrib.auth import views as auth_views
from django.contrib.auth import views
from . import views
urlpatterns = [
#Custom login view
# url(r'^login/$', views.user_login, name='login'),
#Builtin login view
url(r'^login/$', auth_views.login, name='login'),
... | 51.416667 | 143 | 0.71799 |
62a3b336bd6bebedcff30395fd32342d7e3cb1c2 | 10,195 | py | Python | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | 1 | 2015-11-08T12:46:28.000Z | 2015-11-08T12:46:28.000Z | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | null | null | null | examples/twitter.py | alex/remoteobjects | 4fd1d03fc5ec041fa226d93bdf4a0188ce569b4c | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) 2009 Six Apart Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this lis... | 32.059748 | 114 | 0.665326 |
62a5341859cb97bf208e99d03085417e4406b355 | 1,119 | py | Python | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | droxi/drox/write.py | andydude/droxtools | d608ceb715908fb00398c0d28eee74286fef3750 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# droxi
# Copyright (c) 2014, Andrew Robbins, All rights reserved.
#
# This library ("it") is free software; it is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; you can redistribute it and/or modify it under the terms of the
# GNU Lesser Gen... | 31.971429 | 93 | 0.669348 |
62a6aa5f52b205b9fb58d93a1dc26a90e2c69fff | 5,224 | py | Python | hathor/transaction/aux_pow.py | mbnunes/hathor-core | e5e0d4a627341e2a37ee46db5c9354ddb7f8dfb8 | [
"Apache-2.0"
] | 51 | 2019-12-28T03:33:27.000Z | 2022-03-10T14:03:03.000Z | hathor/transaction/aux_pow.py | mbnunes/hathor-core | e5e0d4a627341e2a37ee46db5c9354ddb7f8dfb8 | [
"Apache-2.0"
] | 316 | 2019-09-10T09:20:05.000Z | 2022-03-31T20:18:56.000Z | hathor/transaction/aux_pow.py | jansegre/hathor-core | 22b3de6be2518e7a0797edbf0e4f6eb1cf28d6fd | [
"Apache-2.0"
] | 19 | 2020-01-04T00:13:18.000Z | 2022-02-08T21:18:46.000Z | # Copyright 2021 Hathor Labs
#
# 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, s... | 41.460317 | 105 | 0.647205 |
62a6cdcc5cf9bca5a11b6dc4e9f38e91015abe52 | 502 | py | Python | cortex/export/__init__.py | mvdoc/pycortex | bc8a93cac9518e3c1cd89650c703f9f3814e805b | [
"BSD-2-Clause"
] | 423 | 2015-01-06T02:46:46.000Z | 2022-03-23T17:20:38.000Z | cortex/export/__init__.py | mvdoc/pycortex | bc8a93cac9518e3c1cd89650c703f9f3814e805b | [
"BSD-2-Clause"
] | 243 | 2015-01-03T02:10:03.000Z | 2022-03-31T19:29:48.000Z | cortex/export/__init__.py | mvdoc/pycortex | bc8a93cac9518e3c1cd89650c703f9f3814e805b | [
"BSD-2-Clause"
] | 136 | 2015-03-23T20:35:59.000Z | 2022-03-09T13:39:10.000Z | from .save_views import save_3d_views
from .panels import plot_panels
from ._default_params import (
params_inflatedless_lateral_medial_ventral,
params_flatmap_lateral_medial,
params_occipital_triple_view,
params_inflated_dorsal_lateral_medial_ventral,
)
__all__ = [
"save_3d_views",
"plot_panel... | 27.888889 | 52 | 0.804781 |
62a72c2067d3b5d382112ffdbd4e31435a1725b9 | 1,456 | py | Python | pyfr/plugins/dtstats.py | DengSonic/PyFR | dde524ed56f4a4feca376b51db4b21eb6fa4b113 | [
"BSD-3-Clause"
] | 1 | 2020-06-23T16:37:06.000Z | 2020-06-23T16:37:06.000Z | pyfr/plugins/dtstats.py | synthetik-technologies/PyFR | 9d4d5e96a8a9d5ca47970ec197b251ae8b0ecdda | [
"BSD-3-Clause"
] | null | null | null | pyfr/plugins/dtstats.py | synthetik-technologies/PyFR | 9d4d5e96a8a9d5ca47970ec197b251ae8b0ecdda | [
"BSD-3-Clause"
] | 1 | 2020-08-21T02:50:17.000Z | 2020-08-21T02:50:17.000Z | # -*- coding: utf-8 -*-
from pyfr.mpiutil import get_comm_rank_root
from pyfr.plugins.base import BasePlugin, init_csv
| 29.12 | 76 | 0.581731 |
62a840352bdaa921e3b37484cc7f2c625c055007 | 1,989 | py | Python | scripts/cylindrical.py | NunchakusLei/Panoramas-with-image-stitching | a0c9a292d53f22e4de82fe337935c946064fe519 | [
"Apache-2.0"
] | 3 | 2020-12-24T19:02:19.000Z | 2021-07-17T07:48:54.000Z | scripts/cylindrical.py | NunchakusLei/Panoramas-with-image-stitching | a0c9a292d53f22e4de82fe337935c946064fe519 | [
"Apache-2.0"
] | null | null | null | scripts/cylindrical.py | NunchakusLei/Panoramas-with-image-stitching | a0c9a292d53f22e4de82fe337935c946064fe519 | [
"Apache-2.0"
] | null | null | null | # The source of this script is from:
# https://github.com/TejasNaikk/Image-Alignment-and-Panoramas/blob/master/main.py
import cv2
import numpy as np
import math
'''
Warp an image from cartesian coordinates (x, y) into cylindrical coordinates (theta, h)
Returns: (image, mask)
Mask is [0,255], and has 255s wherever the... | 29.25 | 87 | 0.581699 |
62a90788c7716583df977b2015db0ceb313c24a8 | 7,490 | py | Python | fmt/pythonfmt/fmt.py | KarlRong/Safe-RL-for-Driving | 67484911ca8ad9f1476e96043c379c01cd5ced8c | [
"Apache-2.0"
] | null | null | null | fmt/pythonfmt/fmt.py | KarlRong/Safe-RL-for-Driving | 67484911ca8ad9f1476e96043c379c01cd5ced8c | [
"Apache-2.0"
] | null | null | null | fmt/pythonfmt/fmt.py | KarlRong/Safe-RL-for-Driving | 67484911ca8ad9f1476e96043c379c01cd5ced8c | [
"Apache-2.0"
] | null | null | null | import math
import random
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from fmt.pythonfmt.doubleintegrator import filter_reachable, gen_trajectory, show_trajectory
from fmt.pythonfmt.world import World
# FMTree class
| 40.486486 | 105 | 0.554072 |
62aaf966c075e395977fecf28d9050755afb7dda | 2,338 | py | Python | algorithms/edit_distance.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | 1 | 2018-06-12T12:00:33.000Z | 2018-06-12T12:00:33.000Z | algorithms/edit_distance.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | null | null | null | algorithms/edit_distance.py | costincaraivan/cs-refresher | 008fdb2af661310c65f656f017ec34e5df004424 | [
"MIT"
] | null | null | null | # import unittest
import logging
from timeit import timeit
logging.basicConfig(level=logging.INFO)
logging.info(edit_distance_recursive("intention", "execution"))
logging.info(edit_distance_recursive("jackrabbits", "jackhammer"))
logging.info(edit_distance_recursive("ie", "e"))
logging.info(edit_distance_iterat... | 27.505882 | 86 | 0.618477 |
62ab97280947669585b79c2c2795dd161b100377 | 2,365 | py | Python | hybrid_cloud_patches/3rd_lib/python/pyvcloud-11/setup.py | Hybrid-Cloud/badam | 390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb | [
"Apache-2.0"
] | 2 | 2015-06-15T02:16:33.000Z | 2022-02-23T07:10:38.000Z | hybrid_cloud_patches/3rd_lib/python/pyvcloud-11/setup.py | Hybrid-Cloud/badam | 390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb | [
"Apache-2.0"
] | 7 | 2016-05-13T06:39:45.000Z | 2016-05-20T02:55:31.000Z | hybrid_cloud_patches/3rd_lib/python/pyvcloud-11/setup.py | Hybrid-Cloud/badam | 390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb | [
"Apache-2.0"
] | 4 | 2015-11-02T04:02:50.000Z | 2021-05-13T17:06:00.000Z | # VMware vCloud Python SDK
# Copyright (c) 2014 VMware, 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... | 37.539683 | 74 | 0.659197 |
62ac5880cfcb73a7f5f41808ba14ed348ca4e208 | 607 | py | Python | net_utils.py | mfatihaktas/edge-load-balance | b866ca47ba37a605eeba05658b1d302f6855a23f | [
"MIT"
] | null | null | null | net_utils.py | mfatihaktas/edge-load-balance | b866ca47ba37a605eeba05658b1d302f6855a23f | [
"MIT"
] | null | null | null | net_utils.py | mfatihaktas/edge-load-balance | b866ca47ba37a605eeba05658b1d302f6855a23f | [
"MIT"
] | null | null | null | from debug_utils import *
# TODO: does not work
| 24.28 | 95 | 0.634267 |
62ac8d841db4303175fa7656df2488f0b321c7c1 | 2,086 | py | Python | auto.py | fabiaant/Automation-car-generator | aa57f1a69e4c4b1abf123b6bb88863862d43c4eb | [
"MIT"
] | 1 | 2018-10-05T15:12:08.000Z | 2018-10-05T15:12:08.000Z | auto.py | fabiaant/Automation-car-generator | aa57f1a69e4c4b1abf123b6bb88863862d43c4eb | [
"MIT"
] | null | null | null | auto.py | fabiaant/Automation-car-generator | aa57f1a69e4c4b1abf123b6bb88863862d43c4eb | [
"MIT"
] | 1 | 2021-08-30T01:18:36.000Z | 2021-08-30T01:18:36.000Z | import random
options = {
"year": {
"start": 1946,
"end": 2020
},
"body": ["Sedan", "Wagon", "Hatchback", "Coupe", "SUV", "Utility", "MPV",
"Convertible", "Van"],
"engine_location": ["front", "mid", "rear"],
"engine_mounting": ["transverse", "longitudinal"],
"drive": ["FWD",... | 27.813333 | 88 | 0.57047 |
62ad2faaa4417f27b1e2dd75edf9e858d937f1c1 | 5,786 | bzl | Python | docs.bzl | es-ude/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 3 | 2019-06-26T14:08:12.000Z | 2020-03-10T06:24:46.000Z | docs.bzl | es-ude/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 31 | 2019-06-10T10:50:58.000Z | 2021-08-06T13:43:54.000Z | docs.bzl | es-uni-due/EmbeddedSystemsBuildScripts | 276c3ca78ba8285cd26c3c10443d89ccc403a69c | [
"MIT"
] | 5 | 2019-07-08T23:33:39.000Z | 2020-10-11T20:35:25.000Z | def _doxygen_archive_impl(ctx):
"""Generate a .tar.gz archive containing documentation using Doxygen.
Args:
name: label for the generated rule. The archive will be "%{name}.tar.gz".
doxyfile: configuration file for Doxygen, @@OUTPUT_DIRECTORY@@ will be replaced with the actual output dir
... | 37.816993 | 114 | 0.610093 |
62ae8dd259b43e9f8c27ede31598aad711abeea2 | 234 | py | Python | patches/reduceRNG.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 13 | 2020-09-13T16:50:28.000Z | 2022-03-22T20:49:54.000Z | patches/reduceRNG.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 10 | 2020-06-27T12:34:38.000Z | 2022-01-03T12:15:42.000Z | patches/reduceRNG.py | muffinjets/LADXR | bbd82a5b7bac015561bb6a4cfe1c5fa017f827f5 | [
"MIT"
] | 18 | 2020-05-29T17:48:04.000Z | 2022-02-08T03:36:08.000Z | from assembler import ASM
| 23.4 | 88 | 0.636752 |