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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e14d6f0551ebee50376c52df3cd3465b333386e1 | 9,395 | py | Python | ktsp.py | lum4chi/mylearn | 8a66fd5ebc32a70783132e185b4f5ce18ce14c5f | [
"MIT"
] | null | null | null | ktsp.py | lum4chi/mylearn | 8a66fd5ebc32a70783132e185b4f5ce18ce14c5f | [
"MIT"
] | null | null | null | ktsp.py | lum4chi/mylearn | 8a66fd5ebc32a70783132e185b4f5ce18ce14c5f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# coding: utf-8
# author: Francesco Lumachi <francesco.lumachi@gmail.com>
import pandas as pd
import numpy as np
from itertools import islice
from sklearn.utils.validation import check_X_y
| 41.570796 | 92 | 0.571368 |
e14da54b265b1cbaa55d62627f5c4770644546b4 | 11,089 | py | Python | picmodels/models/care_advisors/daily_metrics_models/services/read.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/care_advisors/daily_metrics_models/services/read.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | picmodels/models/care_advisors/daily_metrics_models/services/read.py | bbcawodu/careadvisors-backend | 5ebd3c0fc189b2486cea92b2a13c0bd8a0ee3838 | [
"MIT"
] | null | null | null | import datetime
import picmodels.models
from picmodels.models.utils import filter_db_queryset_by_id
from picmodels.models.care_advisors.navigator_models.services.read import filter_navigator_objs_by_f_and_l_name
from picmodels.models.care_advisors.navigator_models.services.read import filter_navigator_objs_by_first_na... | 44.179283 | 155 | 0.742447 |
e14dbf37cac6b30fd02dacd5e179dc9f00f542ab | 3,405 | py | Python | beakerx/beakerx/commands.py | acq/beakerx | 584023ce0fdb052713855d8a9455e6d7422e53da | [
"Apache-2.0"
] | null | null | null | beakerx/beakerx/commands.py | acq/beakerx | 584023ce0fdb052713855d8a9455e6d7422e53da | [
"Apache-2.0"
] | null | null | null | beakerx/beakerx/commands.py | acq/beakerx | 584023ce0fdb052713855d8a9455e6d7422e53da | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 TWO SIGMA OPEN SOURCE, 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 agre... | 35.842105 | 138 | 0.698678 |
e14e630e471443793b9fd29816d201fc888da13e | 2,512 | py | Python | attnganw/runner.py | cptanalatriste/AttnGAN | 6b8641cd5eb9c3a0bba73904b5c639784d6c3ec8 | [
"MIT"
] | null | null | null | attnganw/runner.py | cptanalatriste/AttnGAN | 6b8641cd5eb9c3a0bba73904b5c639784d6c3ec8 | [
"MIT"
] | null | null | null | attnganw/runner.py | cptanalatriste/AttnGAN | 6b8641cd5eb9c3a0bba73904b5c639784d6c3ec8 | [
"MIT"
] | null | null | null | from datetime import datetime
from typing import List
import dateutil
from datasets import TextDataset
from miscc.config import cfg_from_file, cfg
from torchvision.transforms import transforms
from attnganw.train import GanTrainerWrapper, BirdGenerationFromCaption
| 44.857143 | 108 | 0.624602 |
e150737ff1e7de27f34b49c4df0d1658c30b7b57 | 2,469 | py | Python | Gds/src/fprime_gds/common/data_types/sys_data.py | m-aleem/fprime | ae8a2a43a39d0e8a1908a82b48106467357d6cba | [
"Apache-2.0"
] | 1 | 2020-05-12T03:43:36.000Z | 2020-05-12T03:43:36.000Z | Gds/src/fprime_gds/common/data_types/sys_data.py | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 5 | 2020-05-26T21:38:02.000Z | 2020-05-26T21:43:33.000Z | Gds/src/fprime_gds/common/data_types/sys_data.py | abcouwer-jpl/fprime | f28c92e31d58e7e44bff09ad57d574ca5d5e91c7 | [
"Apache-2.0"
] | 3 | 2020-09-05T18:17:21.000Z | 2020-11-15T04:06:24.000Z | '''
@brief Base class for system data classes.
This class defines the interface for cata classes which are intended to hold
a specific data item (packet, channel, event). This data item includes the time
of the data as well as data such as channel value or argument value.
@date Created July 2, 2018
@author R. Joseph ... | 24.939394 | 79 | 0.617254 |
e15162de1790d30c48e2c7c4e83b30934c311fba | 3,063 | py | Python | txdav/carddav/datastore/query/test/test_filter.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | 1 | 2017-02-18T19:22:19.000Z | 2017-02-18T19:22:19.000Z | txdav/carddav/datastore/query/test/test_filter.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | null | null | null | txdav/carddav/datastore/query/test/test_filter.py | eventable/CalendarServer | 384444edb1966b530bc391789afbe3fb9cd6fd3e | [
"Apache-2.0"
] | null | null | null | ##
# Copyright (c) 2011-2015 Apple 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 l... | 31.57732 | 224 | 0.647405 |
e151f9085880a3aa0708d3748aa966d97630b3db | 8,259 | py | Python | train/erfnet_pspnet_hier33.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | train/erfnet_pspnet_hier33.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | train/erfnet_pspnet_hier33.py | elnino9ykl/Sequential-Hierarchical-ERF-PSPNet | c7fe42967894b15f6ed82608cd1836a17fec0260 | [
"MIT"
] | null | null | null | # ERFNet full model definition for Pytorch
# Sept 2017
# Eduardo Romera
#######################
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
#ERFNet
| 33.987654 | 124 | 0.593413 |
e15240f37f48e80c43aa04132d7d8be1877669db | 1,009 | py | Python | wsgi.py | nam4dev/evedom_demo | 3cba0cf8e37f6fa75af006c4a99a0b3fab7c2e13 | [
"MIT"
] | null | null | null | wsgi.py | nam4dev/evedom_demo | 3cba0cf8e37f6fa75af006c4a99a0b3fab7c2e13 | [
"MIT"
] | null | null | null | wsgi.py | nam4dev/evedom_demo | 3cba0cf8e37f6fa75af006c4a99a0b3fab7c2e13 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
WSGI script
Setup Application, Authentication, ...
"""
import os
from eve import Eve
from evedom import loader
# from your_app.authentication.token import TokenBasedAuth
__author__ = "nam4dev"
__created__ = '08/11/2017'
ROOT_PATH = os.path.dirname(
os.pa... | 16.274194 | 58 | 0.620416 |
e152f4d6dde06ac4acdcd8bfa8623f41a066db20 | 1,654 | py | Python | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | null | null | null | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | mercycorps/TolaWorkflow | 59542132fafd611081adb0e8cfaa04abc5886d7a | [
"Apache-2.0"
] | 268 | 2020-03-31T15:46:59.000Z | 2022-03-31T18:01:08.000Z | workflow/migrations/0027_tolausercountryroles_tolauserprogramroles.py | Falliatcom-sa/falliatcom | 39fb926de072c296ed32d50cccfb8003ca870739 | [
"Apache-2.0"
] | 1 | 2021-01-05T01:58:24.000Z | 2021-01-05T01:58:24.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2019-01-18 17:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 47.257143 | 151 | 0.628174 |
e15353b2bdb09ab7d8c47ead4ff13403eb177890 | 753 | py | Python | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | set-2/challenge-11.py | natehouk/cryptopals-crypto-challenges-solutions | 3b89a94d42a9b052b2f79d37ba3fa9e3ec17c869 | [
"MIT"
] | null | null | null | import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import random
from util.util import pad, detect_aes_ecb, generate_key, ammend_plaintext, encrypt_random
# Chosen plaintext
plaintext = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
# Generate data and encrypt plaintext
key = g... | 30.12 | 89 | 0.749004 |
e1570b21e8b27475e013ab8eb1dbd45fef7957ed | 5,457 | py | Python | lib/python3.6/site-packages/example/authorize_driver.py | venkyyPoojari/Smart-Mirror | 256b7a870f8cda2965b848a66574ee38254274f5 | [
"MIT"
] | 187 | 2015-10-02T13:47:33.000Z | 2022-03-23T08:09:22.000Z | lib/python3.6/site-packages/example/authorize_driver.py | venkyyPoojari/Smart-Mirror | 256b7a870f8cda2965b848a66574ee38254274f5 | [
"MIT"
] | 44 | 2015-12-08T04:31:14.000Z | 2022-03-14T17:33:11.000Z | lib/python3.6/site-packages/example/authorize_driver.py | venkyyPoojari/Smart-Mirror | 256b7a870f8cda2965b848a66574ee38254274f5 | [
"MIT"
] | 88 | 2015-10-11T03:09:01.000Z | 2022-03-19T04:16:37.000Z | # Copyright (c) 2017 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | 33.478528 | 79 | 0.721092 |
e1572ceb180b2c59c917246045f255f6d9bcd968 | 10,766 | py | Python | orangeplus/OPTICS_w.py | panatronic-git/orange-plus | b51643d5edaa7de78388bc38a7695eec64331d27 | [
"CC0-1.0"
] | null | null | null | orangeplus/OPTICS_w.py | panatronic-git/orange-plus | b51643d5edaa7de78388bc38a7695eec64331d27 | [
"CC0-1.0"
] | null | null | null | orangeplus/OPTICS_w.py | panatronic-git/orange-plus | b51643d5edaa7de78388bc38a7695eec64331d27 | [
"CC0-1.0"
] | null | null | null | # -*- coding: utf-8 -*-
""" A data clustering widget for the Orange3.
This is a data clustering widget for Orange3, that implements the OPTICS algorithm.
OPTICS stands for "Ordering Points To Identify the Clustering Structure".
This is a very useful algorithm for clustering data when the dataset is unlabel... | 34.396166 | 145 | 0.612205 |
e157ca6b782a8b3accbd943a60246d4523efb4e1 | 2,590 | py | Python | message_prototypes/base_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | 1 | 2021-02-26T04:40:00.000Z | 2021-02-26T04:40:00.000Z | message_prototypes/base_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | null | null | null | message_prototypes/base_message.py | agratoth/py-message-prototypes | a23527f8264631e947ed2a6657b325036005330f | [
"MIT"
] | null | null | null | import json
from message_prototypes.exceptions import MissingModelException
| 30.116279 | 70 | 0.508108 |
e1597f1ccc9fdad83bd98d093bad683b7edf4352 | 2,015 | py | Python | Tests/Methods/Geometry/test_is_inside.py | Eomys/pyleecan | 9a8cea3e62f63bc73417fe09770bd4d480021e35 | [
"Apache-2.0"
] | 95 | 2019-01-23T04:19:45.000Z | 2022-03-17T18:22:10.000Z | Tests/Methods/Geometry/test_is_inside.py | Eomys/pyleecan | 9a8cea3e62f63bc73417fe09770bd4d480021e35 | [
"Apache-2.0"
] | 366 | 2019-02-20T07:15:08.000Z | 2022-03-31T13:37:23.000Z | Tests/Methods/Geometry/test_is_inside.py | Eomys/pyleecan | 9a8cea3e62f63bc73417fe09770bd4d480021e35 | [
"Apache-2.0"
] | 74 | 2019-01-24T01:47:31.000Z | 2022-02-25T05:44:42.000Z | # -*- coding: utf-8 -*
import pytest
from pyleecan.Classes.Circle import Circle
from pyleecan.Classes.Segment import Segment
from pyleecan.Classes.SurfLine import SurfLine
# Configuring the test of is_inside
inside_test = list()
# Test 1 : checking if a point is inside a circle of radius 1 at 0 + 0j
C1 = ... | 31 | 89 | 0.651613 |
e15a7dcff0d33ea587927f028856b4941738c99e | 542 | py | Python | examples/polling_tweets_example.py | Cheetah97/nitter_scraper | 2da2cf9dca66c7ff9b02c06fccf1cfad772f14a5 | [
"MIT"
] | 21 | 2020-08-31T06:20:36.000Z | 2022-01-10T19:22:00.000Z | examples/polling_tweets_example.py | Cheetah97/nitter_scraper | 2da2cf9dca66c7ff9b02c06fccf1cfad772f14a5 | [
"MIT"
] | 2 | 2021-02-09T18:19:51.000Z | 2021-07-25T17:27:59.000Z | examples/polling_tweets_example.py | Cheetah97/nitter_scraper | 2da2cf9dca66c7ff9b02c06fccf1cfad772f14a5 | [
"MIT"
] | 4 | 2020-12-20T01:31:30.000Z | 2022-01-24T14:22:13.000Z | import time
from nitter_scraper import NitterScraper
last_tweet_id = None
with NitterScraper(port=8008) as nitter:
while True:
for tweet in nitter.get_tweets("dgnsrekt", pages=1, break_on_tweet_id=last_tweet_id):
if tweet.is_pinned is True:
continue
if tweet.is_r... | 21.68 | 93 | 0.605166 |
e15ca3d18b760bf74faf9a038392f2b6d8bb59b6 | 11,697 | py | Python | esse/mainapp/migrations/0003_auto_20210225_0350.py | alexeevivan/bookstore | d5698a5681a5d4f6b7616aacd3ac384d25b306e5 | [
"Unlicense"
] | null | null | null | esse/mainapp/migrations/0003_auto_20210225_0350.py | alexeevivan/bookstore | d5698a5681a5d4f6b7616aacd3ac384d25b306e5 | [
"Unlicense"
] | null | null | null | esse/mainapp/migrations/0003_auto_20210225_0350.py | alexeevivan/bookstore | d5698a5681a5d4f6b7616aacd3ac384d25b306e5 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-25 00:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 62.550802 | 162 | 0.608703 |
e15ca6e7927c7dfaebe88887cd584126de16a196 | 45 | py | Python | mypo/sampler/__init__.py | sonesuke/my-portfolio | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | 2 | 2021-03-14T00:14:25.000Z | 2021-09-04T16:26:02.000Z | mypo/sampler/__init__.py | sonesuke/my-portfolio | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | 104 | 2021-02-21T08:11:11.000Z | 2021-09-26T03:02:27.000Z | mypo/sampler/__init__.py | sonesuke/mypo | 4fd19fdee8a0aa13194cab0df53c83218c5664e3 | [
"MIT"
] | null | null | null | # flake8: noqa
from .sampler import Sampler
| 11.25 | 28 | 0.755556 |
e15cf3b8a65ba6fdc8baa289bed190ee2b034ffe | 295 | py | Python | tools/com/test/test_alpha.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | tools/com/test/test_alpha.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | tools/com/test/test_alpha.py | AnthonyEdvalson/Machina | fefb058591dd7b62817c75277d5ca0eb6dbd8c3a | [
"MIT"
] | null | null | null | from tools.com.alpha import Flow, Path
| 17.352941 | 74 | 0.522034 |
e15d3dcf46973ac9dc62ab07128caefad49a8319 | 907 | py | Python | compile.py | DrSuiunbek/pbc | 6dd3dc4e480483a885d80cd9c01b80c4ae9fb076 | [
"MIT"
] | null | null | null | compile.py | DrSuiunbek/pbc | 6dd3dc4e480483a885d80cd9c01b80c4ae9fb076 | [
"MIT"
] | null | null | null | compile.py | DrSuiunbek/pbc | 6dd3dc4e480483a885d80cd9c01b80c4ae9fb076 | [
"MIT"
] | null | null | null | import argparse
import os
import subprocess
from subprocess import call
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("filename", help="the name of the solidity file")
args = parser.parse_args()
filename = args.filename
cwd = os.getcwd()
datadir = os.path.... | 29.258065 | 136 | 0.680265 |
e15d5e4f994eb2a0d1d81f21279363ad0216ad9f | 1,283 | py | Python | app/machine_learning/utils.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | app/machine_learning/utils.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | null | null | null | app/machine_learning/utils.py | jonzxz/project-piscator | 588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef | [
"MIT"
] | 1 | 2021-02-18T03:08:21.000Z | 2021-02-18T03:08:21.000Z | import re
import joblib
from sklearn.ensemble import RandomForestClassifier
from typing import List, Tuple
# Cleans up a messed up HTML / tabbed raw content into space delimited content
# Flattens a list of tuples for (Sender, SenderDomain) into [Sender, SenderDomain]
# By right there SHOULD only be a single pair but... | 42.766667 | 82 | 0.747467 |
e15e1ca2f5eb878425d154d27fca023b5942afb5 | 1,637 | py | Python | sendgrid_email.py | ssiddhantsharma/open-source-library-data-collector | 9def970707a3995239ef75958a9b03736da4a73e | [
"MIT"
] | null | null | null | sendgrid_email.py | ssiddhantsharma/open-source-library-data-collector | 9def970707a3995239ef75958a9b03736da4a73e | [
"MIT"
] | null | null | null | sendgrid_email.py | ssiddhantsharma/open-source-library-data-collector | 9def970707a3995239ef75958a9b03736da4a73e | [
"MIT"
] | null | null | null | import os
import sendgrid
from sendgrid.helpers.mail import Content, Email, Mail
from bs4 import BeautifulSoup
| 41.974359 | 132 | 0.592547 |
e15e7f996a734bfc0abd1bd0f37b1c7a308de458 | 2,141 | py | Python | ckilpailija.py | bittikettu/JTimer | d0b4a6173e84c89286874865427741bd595cf955 | [
"MIT"
] | null | null | null | ckilpailija.py | bittikettu/JTimer | d0b4a6173e84c89286874865427741bd595cf955 | [
"MIT"
] | null | null | null | ckilpailija.py | bittikettu/JTimer | d0b4a6173e84c89286874865427741bd595cf955 | [
"MIT"
] | null | null | null | import json
| 33.984127 | 176 | 0.566558 |
e15f0f7648e65dbaf7aa7dffa649f9d29bce17dd | 1,436 | py | Python | hessen/frankfurt.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | 12 | 2022-02-23T11:06:06.000Z | 2022-03-04T17:21:44.000Z | hessen/frankfurt.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | hessen/frankfurt.py | risklayer/corona-landkreis-crawler | 2e82448ff614240365de9493eafa0e6a620ac615 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
## Tommy
from botbase import *
_frankfurt_st = re.compile(r"Stand:\s*(\d\d?\. *\w+ 20\d\d, \d\d?(?::\d\d)?) Uhr")
schedule.append(Task(8, 5, 12, 5, 360, frankfurt, 6412))
if __name__ == '__main__': frankfurt(googlesheets())
| 47.866667 | 180 | 0.66922 |
e15f87d69b9f385338407a9fb5c01c89ecaa7425 | 2,065 | py | Python | lib/utils/timeout.py | kustodian/aerospike-admin | 931ee55ccd65ba3e20e6611a0294c92b09e8cfcb | [
"Apache-2.0"
] | null | null | null | lib/utils/timeout.py | kustodian/aerospike-admin | 931ee55ccd65ba3e20e6611a0294c92b09e8cfcb | [
"Apache-2.0"
] | null | null | null | lib/utils/timeout.py | kustodian/aerospike-admin | 931ee55ccd65ba3e20e6611a0294c92b09e8cfcb | [
"Apache-2.0"
] | null | null | null | # Copyright 2013-2018 Aerospike, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 29.927536 | 88 | 0.701695 |
e15f893232695e92454619ed0274fe5e5ba282b5 | 101 | py | Python | src/myapp/admin.py | anmquangw/viu-upload-file | bfbff413cc92e454226fced5fe504b7cebc6c102 | [
"MIT"
] | null | null | null | src/myapp/admin.py | anmquangw/viu-upload-file | bfbff413cc92e454226fced5fe504b7cebc6c102 | [
"MIT"
] | 2 | 2020-06-21T01:47:59.000Z | 2020-06-27T12:39:24.000Z | src/myapp/admin.py | sonnhfit/DocShare | 50d9b8c333144780385f970197519ddda61bd502 | [
"MIT"
] | null | null | null | """from django.contrib import admin
from .models import DemoModel
admin.site.register(DemoModel)"""
| 20.2 | 35 | 0.782178 |
e15fdd67f6de5e7d590eb91ddbbf06d3e3d45dea | 2,015 | py | Python | straightlanespipeline.py | semeniuta/CarND-AdvancedLaneLines | 57fbdc6cc9596f299b4517514d487573f7c373b4 | [
"MIT"
] | null | null | null | straightlanespipeline.py | semeniuta/CarND-AdvancedLaneLines | 57fbdc6cc9596f299b4517514d487573f7c373b4 | [
"MIT"
] | null | null | null | straightlanespipeline.py | semeniuta/CarND-AdvancedLaneLines | 57fbdc6cc9596f299b4517514d487573f7c373b4 | [
"MIT"
] | null | null | null | import lanelines
from compgraph import CompGraph, CompGraphRunner
import numpy as np
import cv2
func_dict = {
'grayscale': lanelines.grayscale,
'get_image_shape': lambda im : im.shape,
'canny': lanelines.canny,
'define_lanes_region': lanelines.define_lanes_region,
'apply_region_mask': lanelines.ap... | 35.350877 | 135 | 0.68536 |
e1601ec501793267dab5b7a344de5c414ede0c73 | 2,904 | py | Python | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | null | null | null | PA1/ArrayListTests/main_create_tests.py | tordisuna/SC-T-201-GSKI | 1e89e5b31e7d74aeecae3dffe2df7ac9e8bb40f2 | [
"MIT"
] | 1 | 2021-02-12T11:36:53.000Z | 2021-02-12T11:36:53.000Z |
import random
from random import Random
r = Random()
f = open("extra_tests.txt", "w+")
f.write("new int")
c = 2
for _ in range(64):
c = write_test_line(f, r, c, 0)
c = write_test_line(f, r, c, 1)
for _ in range(128):
c = write_test_line(f, r, c, 0)
c = write_test_line(f, r, c, 1)
for _ in range(512):
... | 19.755102 | 43 | 0.512741 |
e160ba46a79b2de84010dbbe846ade7d792604fe | 4,305 | py | Python | stock deep learning/7-2.LSTM(stock).py | nosy0411/Deep-learning-project | b0864579ec1fef4c6224397e3c39e4fce051c93a | [
"MIT"
] | null | null | null | stock deep learning/7-2.LSTM(stock).py | nosy0411/Deep-learning-project | b0864579ec1fef4c6224397e3c39e4fce051c93a | [
"MIT"
] | null | null | null | stock deep learning/7-2.LSTM(stock).py | nosy0411/Deep-learning-project | b0864579ec1fef4c6224397e3c39e4fce051c93a | [
"MIT"
] | null | null | null | # LSTM(GRU) : KODEX200 (2010 ~ ) .
# KODEX200 , 10, 40 10 .
# 20 (step = 20) , .
# ??
#
# 2018.11.22, ()
# --------------------------------------------------------------------------
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from MyUtil import Yahoo... | 30.75 | 102 | 0.625784 |
e1627f07a28ba766216726e8582242703156a953 | 1,486 | py | Python | media.py | wduncanfraser/movie_trailer_website | deaa134862772df09cf8af79a6990d140848fb80 | [
"MIT"
] | null | null | null | media.py | wduncanfraser/movie_trailer_website | deaa134862772df09cf8af79a6990d140848fb80 | [
"MIT"
] | null | null | null | media.py | wduncanfraser/movie_trailer_website | deaa134862772df09cf8af79a6990d140848fb80 | [
"MIT"
] | null | null | null | """media.py: Module for movie_trailer_website, contains Movie class"""
import webbrowser
import urllib
import json
| 37.15 | 101 | 0.672275 |
e163903fd0678839e9ef90435028e77dc1cbf097 | 103 | py | Python | src/moredataframes/mdf_core.py | GlorifiedStatistics/MoreDataframes | 147d5b8104d1cbd1cf2836220f43fb6c8ca099b7 | [
"MIT"
] | null | null | null | src/moredataframes/mdf_core.py | GlorifiedStatistics/MoreDataframes | 147d5b8104d1cbd1cf2836220f43fb6c8ca099b7 | [
"MIT"
] | null | null | null | src/moredataframes/mdf_core.py | GlorifiedStatistics/MoreDataframes | 147d5b8104d1cbd1cf2836220f43fb6c8ca099b7 | [
"MIT"
] | null | null | null | """
A collection of useful functions for manipulating/encoding pandas dataframes for data science.
"""
| 25.75 | 94 | 0.786408 |
e163f95d62fc70e17e021921220d7ea02e910aa6 | 23,493 | py | Python | superslomo/model.py | myungsub/meta-interpolation | f7afee9d1786f67e6f548c2734f91858f803c5dc | [
"MIT"
] | 74 | 2020-04-03T06:26:39.000Z | 2022-03-25T16:51:28.000Z | superslomo/model.py | baiksung/meta-interpolation | 72dd3b2e56054bb411ed20301583a0e67d9ea293 | [
"MIT"
] | 6 | 2020-07-09T20:09:23.000Z | 2021-09-20T11:12:24.000Z | superslomo/model.py | baiksung/meta-interpolation | 72dd3b2e56054bb411ed20301583a0e67d9ea293 | [
"MIT"
] | 19 | 2020-04-16T09:18:38.000Z | 2021-12-28T08:25:12.000Z | import torch
import torchvision
import torchvision.transforms as transforms
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from model_utils import *
# Creating an array of `t` values for the 7 intermediate frames between
# reference frames I0 and I1.
t = np.l... | 35.011923 | 293 | 0.548717 |
e164e5d3815dee52bdeb5d8a12184fbf1db5055b | 11,970 | py | Python | adaptfx/discrete_programs/updater_discrete.py | rmnldwg/Adaptive-fractionation | 5525cbd635e9afdbf5556b2a95dd31bdb222db66 | [
"MIT"
] | 1 | 2021-07-15T12:23:25.000Z | 2021-07-15T12:23:25.000Z | adaptfx/discrete_programs/updater_discrete.py | rmnldwg/Adaptive-fractionation | 5525cbd635e9afdbf5556b2a95dd31bdb222db66 | [
"MIT"
] | 1 | 2021-11-29T18:50:05.000Z | 2021-12-10T15:32:50.000Z | adaptfx/discrete_programs/updater_discrete.py | rmnldwg/Adaptive-fractionation | 5525cbd635e9afdbf5556b2a95dd31bdb222db66 | [
"MIT"
] | 1 | 2021-11-29T10:52:42.000Z | 2021-11-29T10:52:42.000Z | # -*- coding: utf-8 -*-
"""
In this file are all the needed functions to calculate an adaptive fractionation treatment plan. The value_eval and the result_calc function are the only ones that should be used
This file requires all sparing factors to be known, therefore, it isnt suited to do active treatment planning ... | 68.4 | 250 | 0.693317 |
e16731d27b2926a6e8972922d05bae1f6e5d75bb | 240 | py | Python | ltc/base/admin.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | 4 | 2016-12-30T13:26:59.000Z | 2017-04-26T12:07:36.000Z | ltc/base/admin.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | ltc/base/admin.py | v0devil/jltom | b302a39a187b8e1154c6deda636a4db8b30bb40b | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from ltc.base.models import Project, Test, Configuration
# Register your models here.
admin.site.register(Project)
admin.site.register(Test)
admin.site.register(Configuration)
| 24 | 56 | 0.808333 |
e168edf2fd4a9f7e34f7a83253f12b25417c2d21 | 3,113 | py | Python | examples/utils/interaction.py | epuzanov/pivy | 2f049c19200ab4a3a1e4740268450496c12359f9 | [
"ISC"
] | 29 | 2019-12-28T10:37:16.000Z | 2022-02-09T10:48:04.000Z | examples/utils/interaction.py | epuzanov/pivy | 2f049c19200ab4a3a1e4740268450496c12359f9 | [
"ISC"
] | 29 | 2019-12-26T13:46:11.000Z | 2022-03-29T18:14:33.000Z | examples/utils/interaction.py | epuzanov/pivy | 2f049c19200ab4a3a1e4740268450496c12359f9 | [
"ISC"
] | 17 | 2019-12-29T11:49:32.000Z | 2022-02-23T00:28:18.000Z | import sys
from PySide2.QtWidgets import QApplication
from PySide2.QtGui import QColor
from pivy import quarter, coin, graphics, utils
def main():
app = QApplication(sys.argv)
utils.addMarkerFromSvg("test.svg", "CUSTOM_MARKER", 40)
viewer = quarter.QuarterWidget()
root = graphics.InteractionSeparat... | 28.824074 | 72 | 0.615805 |
e169422102864465f508bcbb4404b6271b866de1 | 4,673 | py | Python | utils/data_process.py | cltl/a-proof-zonmw | f6d1a83fc77223bf8b58c9d465aae301269bb679 | [
"Apache-2.0"
] | 2 | 2021-02-08T08:24:06.000Z | 2021-11-12T10:23:23.000Z | utils/data_process.py | cltl/a-proof-zonmw | f6d1a83fc77223bf8b58c9d465aae301269bb679 | [
"Apache-2.0"
] | null | null | null | utils/data_process.py | cltl/a-proof-zonmw | f6d1a83fc77223bf8b58c9d465aae301269bb679 | [
"Apache-2.0"
] | 2 | 2021-12-07T22:14:56.000Z | 2021-12-14T09:06:16.000Z | """
Functions used in pre-processing of data for the machine learning pipelines.
"""
import pandas as pd
from pandas.api.types import is_scalar
from pathlib import Path
from sklearn.model_selection import GroupShuffleSplit
def concat_annotated(datadir):
"""
Concatenate all "annotated_df_*_parsed*.pkl" files... | 29.024845 | 130 | 0.650332 |
e16c926aa6450fc30f72e50b4463f6a0fcd7d9ad | 276 | py | Python | venv/Lib/site-packages/numpy/typing/tests/data/fail/lib_utils.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 11 | 2020-06-28T04:30:26.000Z | 2022-03-26T08:40:47.000Z | venv/Lib/site-packages/numpy/typing/tests/data/fail/lib_utils.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 150 | 2019-09-30T11:22:36.000Z | 2021-08-02T06:19:29.000Z | venv/Lib/site-packages/numpy/typing/tests/data/fail/lib_utils.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 20 | 2021-11-07T13:55:56.000Z | 2021-12-02T10:54:01.000Z | import numpy as np
np.deprecate(1) # E: No overload variant
np.deprecate_with_doc(1) # E: incompatible type
np.byte_bounds(1) # E: incompatible type
np.who(1) # E: incompatible type
np.lookfor(None) # E: incompatible type
np.safe_eval(None) # E: incompatible type
| 19.714286 | 48 | 0.721014 |
e16db721abb59e634b09680c4bdf3796a1a5328b | 6,115 | py | Python | VoiceAssistant/Project_Basic_struct/speakListen.py | TheRealMilesLee/Python | d145c848a7ba76e8e523e4fe06e2a0add7e2fae1 | [
"MIT"
] | 1 | 2018-12-05T11:04:47.000Z | 2018-12-05T11:04:47.000Z | VoiceAssistant/Project_Basic_struct/speakListen.py | MarkHooland/Python | d145c848a7ba76e8e523e4fe06e2a0add7e2fae1 | [
"MIT"
] | null | null | null | VoiceAssistant/Project_Basic_struct/speakListen.py | MarkHooland/Python | d145c848a7ba76e8e523e4fe06e2a0add7e2fae1 | [
"MIT"
] | null | null | null | import time
from colorama import Fore, Back, Style
import speech_recognition as sr
import os
import pyttsx3
import datetime
from rich.progress import Progress
python = pyttsx3.init("sapi5") # name of the engine is set as Python
voices = python.getProperty("voices")
#print(voices)
python.setProperty("voice... | 35.970588 | 118 | 0.594113 |
e16e5534d48d16f412f05cd80a5b2d4be81a0792 | 702 | py | Python | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | null | null | null | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | 26 | 2021-03-10T22:07:57.000Z | 2021-03-11T12:13:35.000Z | api/krenak_api/apps/activities/migrations/0008_auto_20210506_2357.py | bacuarabrasil/krenak | ad6a3af5ff162783ec9bd40d07a82f09bf35071b | [
"MIT"
] | null | null | null | # Generated by Django 3.1.7 on 2021-05-06 23:57
from django.db import migrations, models
import django.db.models.deletion
| 28.08 | 175 | 0.633903 |
e16f4dbb7cb5166fe73ac09acb1a07de0138e0d3 | 2,330 | py | Python | Data_pre/encoding_feature.py | KaifangXu/API | 47cb17e35a381e50b25bbda9aa7e5216482af022 | [
"MIT"
] | null | null | null | Data_pre/encoding_feature.py | KaifangXu/API | 47cb17e35a381e50b25bbda9aa7e5216482af022 | [
"MIT"
] | null | null | null | Data_pre/encoding_feature.py | KaifangXu/API | 47cb17e35a381e50b25bbda9aa7e5216482af022 | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
from scipy import signal,stats
from flask import Flask,request,jsonify
import json
import re
import os
import data_utils as utils
import sklearn.preprocessing as pre
configpath=os.path.join(os.path.dirname(__file__),'config.txt')
try:
config = utils.py_configs... | 31.066667 | 125 | 0.564807 |
e16fa8e2b0d20fbbd86dbb386c3a783cd3b7617b | 13,708 | py | Python | src/utils.py | mmin0/SigDFP | e2a93faa658741d693b8070bcc7038d2fb7c3e74 | [
"MIT"
] | null | null | null | src/utils.py | mmin0/SigDFP | e2a93faa658741d693b8070bcc7038d2fb7c3e74 | [
"MIT"
] | null | null | null | src/utils.py | mmin0/SigDFP | e2a93faa658741d693b8070bcc7038d2fb7c3e74 | [
"MIT"
] | 1 | 2022-02-28T23:26:23.000Z | 2022-02-28T23:26:23.000Z |
import torch
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
from matplotlib.legend_handler import HandlerTuple
from matplotlib.ticker import FormatStrFormatter
#from tqdm import tqdm
matplotlib.rcParams['pdf.fonttype'] = 42
matplotlib.rcParams['ps.fonttype'] = 42
plt.rc('xtick', labelsize=... | 33.031325 | 153 | 0.587978 |
e170d7139c31119e1eb476ae084b331e0ed0a722 | 100 | py | Python | lambdata_doinalangille/__init__.py | doinalangille/lambdata_doinalangille | f57e1f9f87615bc9d1d1cfada530a542ea4551a1 | [
"MIT"
] | null | null | null | lambdata_doinalangille/__init__.py | doinalangille/lambdata_doinalangille | f57e1f9f87615bc9d1d1cfada530a542ea4551a1 | [
"MIT"
] | 3 | 2020-03-24T18:29:36.000Z | 2021-02-02T22:42:20.000Z | lambdata_doinalangille/__init__.py | doinalangille/lambdata_doinalangille | f57e1f9f87615bc9d1d1cfada530a542ea4551a1 | [
"MIT"
] | 1 | 2020-02-11T23:05:07.000Z | 2020-02-11T23:05:07.000Z | """
lambdata - a collection of Data Science helper functions
"""
import pandas as pd
import sklearn | 16.666667 | 56 | 0.76 |
e171d508606a36edd465712b9674cad13c99de99 | 1,554 | py | Python | jsConsole/__init__.py | Animenosekai/jsConsole | e2604988f20a0d0d93578f786ee7beaf72b9afbc | [
"MIT"
] | null | null | null | jsConsole/__init__.py | Animenosekai/jsConsole | e2604988f20a0d0d93578f786ee7beaf72b9afbc | [
"MIT"
] | null | null | null | jsConsole/__init__.py | Animenosekai/jsConsole | e2604988f20a0d0d93578f786ee7beaf72b9afbc | [
"MIT"
] | null | null | null | """
pyJsConsole wrapper.
Anime no Sekai - 2020
"""
from .internal.javascript import classes as JSClass
console = JSClass._Console()
document = JSClass._Document()
history = JSClass._History()
Math = JSClass._Math()
navigator = JSClass._Navigator()
screen = JSClass._Screen()
window = JSClass._Window()
browser = JSCl... | 23.19403 | 71 | 0.70592 |
e1741137c9f22621cbb2d5cd7d5c872d48ea9402 | 45,528 | py | Python | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | grr/client/client_actions/file_finder_test.py | panhania/grr | fe16a7311a528e31fe0e315a880e98273b8df960 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Tests the client file finder action."""
import collections
import glob
import hashlib
import os
import platform
import shutil
import subprocess
import unittest
import mock
import psutil
import unittest
from grr.client import comms
from grr.client.client_actions import file_finder as client_f... | 35.708235 | 80 | 0.698405 |
e174818f6b393a98ed554aec714f2c139a01e0c8 | 1,624 | py | Python | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | lesson13/sunzhaohui/reboot/deploy/models.py | herrywen-nanj/51reboot | 1130c79a360e1b548a6eaad176eb60f8bed22f40 | [
"Apache-2.0"
] | null | null | null | from django.db import models
# Create your models here.
from django.db import models
from users.models import UserProfile
| 40.6 | 113 | 0.67734 |
e177afe5c4e52b6ea7d71deed0bddae35b953491 | 83 | py | Python | config.py | zombodotcom/twitchUserData | 50c702b832515a946d55c2f5ca79b51436352ef2 | [
"MIT",
"Unlicense"
] | 1 | 2019-10-22T06:23:56.000Z | 2019-10-22T06:23:56.000Z | config.py | zombodotcom/twitchUserData | 50c702b832515a946d55c2f5ca79b51436352ef2 | [
"MIT",
"Unlicense"
] | null | null | null | config.py | zombodotcom/twitchUserData | 50c702b832515a946d55c2f5ca79b51436352ef2 | [
"MIT",
"Unlicense"
] | null | null | null | Client_ID = "<Your Client ID>"
Authorization = "Bearer <Insert Bearer token Here>" | 41.5 | 51 | 0.73494 |
e17842bac608c397e2ccd355daad8b350e2c2102 | 1,900 | py | Python | echo_client.py | gauravssnl/Python3-Network-Programming | 32bb5a4872bce60219c6387b6f3c2e7f31b0654a | [
"MIT"
] | 4 | 2017-12-04T15:05:35.000Z | 2021-03-24T11:53:39.000Z | echo_client.py | gauravssnl/Python3-Network-Programming | 32bb5a4872bce60219c6387b6f3c2e7f31b0654a | [
"MIT"
] | null | null | null | echo_client.py | gauravssnl/Python3-Network-Programming | 32bb5a4872bce60219c6387b6f3c2e7f31b0654a | [
"MIT"
] | null | null | null | import socket
host = 'localhost'
# we need to define encode function for converting string to bytes string
# this will be use for sending/receiving data via socket
encode = lambda text: text.encode()
# we need to define deocde function for converting bytes string to string
# this will convert bytes string sent/reci... | 31.666667 | 79 | 0.644211 |
e179f0630567fb54dca2d83ae47722317d2637db | 2,247 | py | Python | my_collection/paxos/proposer.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | my_collection/paxos/proposer.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | my_collection/paxos/proposer.py | khanh-nguyen-code/my-collection | 31581ef0b1dae67aafb1f4e64b9973a38cc01edf | [
"MIT"
] | null | null | null | from typing import Optional
from my_collection.paxos.common import NodeId, Router, ProposalId, Value, PrepareRequest, is_majority, PrepareResponse, \
Proposal, ProposeRequest, ProposeResponse, CODE_OK
| 38.084746 | 121 | 0.659546 |
e17a77153a0967bee562363294a90df123d695b6 | 6,551 | py | Python | .leetcode/749.contain-virus.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/749.contain-virus.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | .leetcode/749.contain-virus.py | KuiyuanFu/PythonLeetCode | 8962df2fa838eb7ae48fa59de272ba55a89756d8 | [
"MIT"
] | null | null | null | # @lc app=leetcode id=749 lang=python3
#
# [749] Contain Virus
#
# https://leetcode.com/problems/contain-virus/description/
#
# algorithms
# Hard (49.14%)
# Likes: 190
# Dislikes: 349
# Total Accepted: 7.5K
# Total Submissions: 15.2K
# Testcase Example: '[[0,1,0,0,0,0,0,1],[0,1,0,0,0,0,0,1],[0,0,0,0,0,0,0,1],[0,... | 29.376682 | 96 | 0.523432 |
e17b963468c4245e4f159926617ef232d646797a | 4,309 | py | Python | src/robotcontrol.py | social-robotics-lab/dog_sample | e70706bdbdbb7be222ee71cd9529dc433bf705ce | [
"MIT"
] | null | null | null | src/robotcontrol.py | social-robotics-lab/dog_sample | e70706bdbdbb7be222ee71cd9529dc433bf705ce | [
"MIT"
] | null | null | null | src/robotcontrol.py | social-robotics-lab/dog_sample | e70706bdbdbb7be222ee71cd9529dc433bf705ce | [
"MIT"
] | null | null | null | import json
import os.path
import socket
import subprocess
from pydub import AudioSegment
from typing import Dict, List
#---------------------
# Low level functions
#---------------------
def recv(ip:str, port:int) -> str:
conn = connect(ip, port)
size = read_size(conn)
data = read_data(conn, size)
c... | 31.683824 | 116 | 0.620562 |
e17ccdc4212c86466c9d7221473dc6138120cb0b | 1,375 | py | Python | exercises/shortest-path/ShortestPath.py | maxwellmattryan/cs-313e | 462a871475ba956e364a0faf98284633462984b8 | [
"MIT"
] | 1 | 2020-02-05T23:56:16.000Z | 2020-02-05T23:56:16.000Z | exercises/shortest-path/ShortestPath.py | maxwellmattryan/cs-313e | 462a871475ba956e364a0faf98284633462984b8 | [
"MIT"
] | null | null | null | exercises/shortest-path/ShortestPath.py | maxwellmattryan/cs-313e | 462a871475ba956e364a0faf98284633462984b8 | [
"MIT"
] | 2 | 2020-03-09T16:26:00.000Z | 2021-07-23T03:17:11.000Z | import math
main()
| 25.462963 | 76 | 0.589091 |
e17d136893ad674b6eda0ec3efee1f8fda058d2d | 341 | py | Python | Data Analysis/csv remove other label.py | byew/python-do-differernt-csv | 094b154834ee48210c2ee4a6a529d8fe76055fb7 | [
"MIT"
] | null | null | null | Data Analysis/csv remove other label.py | byew/python-do-differernt-csv | 094b154834ee48210c2ee4a6a529d8fe76055fb7 | [
"MIT"
] | null | null | null | Data Analysis/csv remove other label.py | byew/python-do-differernt-csv | 094b154834ee48210c2ee4a6a529d8fe76055fb7 | [
"MIT"
] | null | null | null | import pandas as pd
exa = pd.read_csv('en_dup.csv')
exa.loc[exa['label'] =='F', 'label']= 0
exa.loc[exa['label'] =='T', 'label']= 1
exa.loc[exa['label'] =='U', 'label']= 2
#label2, 01
exa0 = exa.loc[exa["label"] == 0]
exa1 = exa.loc[exa["label"] == 1]
exa = [exa0, exa1]
exa = pd.concat(exa)
exa.to_csv('train.csv... | 17.947368 | 39 | 0.595308 |
e17d6ab7a795e35c2eccfd187299cdaa6e5f367c | 60,009 | py | Python | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 32 | 2015-02-20T09:03:09.000Z | 2022-02-25T22:32:52.000Z | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 5 | 2015-05-18T15:08:40.000Z | 2020-03-05T19:18:01.000Z | pySPACE/resources/dataset_defs/stream.py | pyspace/pyspace | 763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62 | [
"BSD-3-Clause"
] | 18 | 2015-09-28T07:16:38.000Z | 2021-01-20T13:52:19.000Z | """ Reader objects and main class for continuous data (time series)
Depending on the storage format, the fitting reader is loaded and takes care
of reading the files.
.. todo:: unify with analyzer collection!
eeg source and analyzer sink node should work together
this connection should be documented w... | 42.111579 | 137 | 0.580613 |
e17db1fd4e96affffe66942426ac284e73e8b345 | 10,463 | py | Python | tests/base/test_endpoints_authentication.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 8 | 2018-07-04T09:54:46.000Z | 2022-03-17T08:21:06.000Z | tests/base/test_endpoints_authentication.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 19 | 2018-04-18T07:24:55.000Z | 2022-03-04T01:03:15.000Z | tests/base/test_endpoints_authentication.py | rapydo/http-api | ef0a299173195145303069534d45d446ea4da93a | [
"MIT"
] | 7 | 2018-07-03T12:17:50.000Z | 2021-05-05T04:33:32.000Z | from restapi.connectors import Connector
from restapi.env import Env
from restapi.services.authentication import BaseAuthentication, Role
from restapi.tests import API_URI, BaseTests, FlaskClient
from restapi.utilities.logs import log
| 35.228956 | 88 | 0.60346 |
e17f627e7014eaf9f501344de8ac94066bc5da4f | 70,860 | py | Python | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | null | null | null | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 21 | 2019-09-16T15:26:53.000Z | 2022-01-11T09:14:39.000Z | katsdpscripts/rts_session.py | ska-sa/katsdpscripts | f9eaa867aad8b94c715f7286953124df00b5781c | [
"BSD-3-Clause"
] | 1 | 2019-11-11T11:47:54.000Z | 2019-11-11T11:47:54.000Z | ###############################################################################
# SKA South Africa (http://ska.ac.za/) #
# Author: cam@ska.ac.za #
# Copyright @ 2013 SKA SA. All rights reserved. #
... | 50.14862 | 185 | 0.62869 |
e17fa16cc2830c70bdb6cc63e17b12437230ec42 | 499 | py | Python | projects/webptspy/apps/account/admin.py | codelieche/testing | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | 2 | 2017-08-10T03:40:22.000Z | 2017-08-17T13:20:16.000Z | projects/webptspy/apps/account/admin.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | projects/webptspy/apps/account/admin.py | codelieche/webpts | 1f4a3393f761654d98588c9ba90596a307fa59db | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
from django.contrib import admin
from .models import UserProfile
# Register your models here.
admin.site.register(UserProfile, UserProfileModelAdmin)
| 26.263158 | 64 | 0.653307 |
e18273cb48126cd36d2e98bfcd448716a51f67d4 | 396 | py | Python | axicli.py | notpeter/AxiDraw_API | d9c35eb93fd85f96cf197908415822af9a725b41 | [
"MIT"
] | null | null | null | axicli.py | notpeter/AxiDraw_API | d9c35eb93fd85f96cf197908415822af9a725b41 | [
"MIT"
] | 3 | 2021-01-17T04:31:57.000Z | 2021-01-17T04:36:41.000Z | axicli.py | notpeter/AxiDraw_API | d9c35eb93fd85f96cf197908415822af9a725b41 | [
"MIT"
] | null | null | null | '''
axicli.py - Command line interface (CLI) for AxiDraw.
For quick help:
python axicli.py --help
Full user guide:
https://axidraw.com/doc/cli_api/
This script is a stand-alone version of AxiDraw Control, accepting
various options and providing a facility for setting default values.
'''
from axicli.a... | 19.8 | 68 | 0.729798 |
e183076e1912547a48c02bb69c7456b82ec312ba | 852 | py | Python | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | qualification_round_2017/C.py | asukakenji/codejam2018 | a519f522337d7faf3d07a84f6e24f0161f95c880 | [
"MIT"
] | null | null | null | # code jam: Qualification Round 2017: Problem C. Bathroom Stalls
T = read_int()
x = 1
while x <= T:
N, K = read_int_n()
y, z = get_y_z(N, K)
print 'Case #{}: {} {}'.format(x, y, z)
x += 1
| 23.027027 | 64 | 0.419014 |
e1842583bfd3115c7825344cdde05a9fbfaf3644 | 1,143 | py | Python | tests/integration/modules/test_vmc_vm_stats.py | kdsalvy/salt-ext-modules-vmware-1 | 9fdc941692e4c526f575f33b2ce23c1470582934 | [
"Apache-2.0"
] | 10 | 2021-11-02T20:24:44.000Z | 2022-03-11T05:54:27.000Z | tests/integration/modules/test_vmc_vm_stats.py | waynew/salt-ext-modules-vmware | 9f693382772061676c846c850df6ff508b7f3a91 | [
"Apache-2.0"
] | 83 | 2021-10-01T15:13:02.000Z | 2022-03-31T16:22:40.000Z | tests/integration/modules/test_vmc_vm_stats.py | waynew/salt-ext-modules-vmware | 9f693382772061676c846c850df6ff508b7f3a91 | [
"Apache-2.0"
] | 15 | 2021-09-30T23:17:27.000Z | 2022-03-23T06:54:22.000Z | """
Integration Tests for vmc_vm_stats execution module
"""
import pytest
| 30.078947 | 87 | 0.724409 |
e18531179510c781afbb8fd1aa7db0ab08f90a40 | 2,134 | py | Python | uncompy3/decomp_dec.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | uncompy3/decomp_dec.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | uncompy3/decomp_dec.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # MENTOL
# At:Sun Nov 24 15:04:31 2019
if len(bytecode) == 0:
print('\x1b[1;93mbyte code kosong\nharap masukkan bytecodenya\x1b[0m')
exit()
import marshal, sys, os, random, string, time
try:
from uncompyle6.main import decompile
except:
os.system('pip install uncompyle6')
from uncompyle6.main imp... | 32.830769 | 643 | 0.49672 |
e189d16da8174a3b154f79a433e1c07828f194cc | 650 | py | Python | tests/unit/proxy/roundtrip/test_janus_graph_proxy.py | joshthoward/amundsenmetadatalibrary | 87e2b44f0e44ca643f087bff6bd6b39d4ae9e9ad | [
"Apache-2.0"
] | 3 | 2021-02-09T13:52:03.000Z | 2022-02-26T02:36:02.000Z | tests/unit/proxy/roundtrip/test_janus_graph_proxy.py | joshthoward/amundsenmetadatalibrary | 87e2b44f0e44ca643f087bff6bd6b39d4ae9e9ad | [
"Apache-2.0"
] | 1 | 2021-02-08T23:21:04.000Z | 2021-02-08T23:21:04.000Z | tests/unit/proxy/roundtrip/test_janus_graph_proxy.py | joshthoward/amundsenmetadatalibrary | 87e2b44f0e44ca643f087bff6bd6b39d4ae9e9ad | [
"Apache-2.0"
] | 2 | 2021-02-23T18:23:35.000Z | 2022-03-18T15:12:25.000Z | # Copyright Contributors to the Amundsen project.
# SPDX-License-Identifier: Apache-2.0
from typing import Any, Mapping
import unittest
from .abstract_gremlin_proxy_tests import abstract_gremlin_proxy_test_class
from .roundtrip_janusgraph_proxy import RoundtripJanusGraphProxy
| 40.625 | 91 | 0.803077 |
e18aabf2262561727c96e58389bdf2da5dd573c7 | 3,829 | py | Python | scripts/performance/config.py | atsgen/tf-test | 2748fcd81491450c75dadc71849d2a1c11061029 | [
"Apache-2.0"
] | 5 | 2020-09-29T00:36:57.000Z | 2022-02-16T06:51:32.000Z | scripts/performance/config.py | atsgen/tf-test | 2748fcd81491450c75dadc71849d2a1c11061029 | [
"Apache-2.0"
] | 27 | 2019-11-02T02:18:34.000Z | 2022-02-24T18:49:08.000Z | scripts/performance/config.py | atsgen/tf-test | 2748fcd81491450c75dadc71849d2a1c11061029 | [
"Apache-2.0"
] | 20 | 2019-11-28T16:02:25.000Z | 2022-01-06T05:56:58.000Z | from builtins import str
from builtins import range
from builtins import object
import os
import fixtures
import testtools
from vn_test import VNFixture
from vm_test import VMFixture
from common.connections import ContrailConnections
from policy_test import PolicyFixture
from policy.config import AttachPolicyFixture
f... | 47.271605 | 121 | 0.659441 |
e18bc1c9af4bc77f3e745030b60675eb8770630a | 4,048 | py | Python | deepspeech_pytorch/testing.py | Chudbrochil/deepspeech.pytorch-2.1 | d5d01e33ef383edb79c6a5b1584c134587108deb | [
"MIT"
] | 13 | 2022-01-25T01:26:56.000Z | 2022-03-18T00:46:38.000Z | deepspeech_pytorch/testing.py | Chudbrochil/deepspeech.pytorch-2.1 | d5d01e33ef383edb79c6a5b1584c134587108deb | [
"MIT"
] | null | null | null | deepspeech_pytorch/testing.py | Chudbrochil/deepspeech.pytorch-2.1 | d5d01e33ef383edb79c6a5b1584c134587108deb | [
"MIT"
] | 1 | 2021-03-03T06:14:21.000Z | 2021-03-03T06:14:21.000Z | import hydra
import torch
from tqdm import tqdm
from deepspeech_pytorch.configs.inference_config import EvalConfig
from deepspeech_pytorch.decoder import GreedyDecoder
from deepspeech_pytorch.loader.data_loader import SpectrogramDataset, AudioDataLoader
from deepspeech_pytorch.utils import load_model, load_decoder
| 42.610526 | 104 | 0.561759 |
e18d4a143a071cc6ef045ea47a03a5bc0de604f9 | 483 | py | Python | api/aps3/tasklist/tasklist/main.py | Gustavobb/megadados | 6a653314e0c93c866ec86be2119d64bf297d2f5a | [
"MIT"
] | null | null | null | api/aps3/tasklist/tasklist/main.py | Gustavobb/megadados | 6a653314e0c93c866ec86be2119d64bf297d2f5a | [
"MIT"
] | null | null | null | api/aps3/tasklist/tasklist/main.py | Gustavobb/megadados | 6a653314e0c93c866ec86be2119d64bf297d2f5a | [
"MIT"
] | null | null | null | # pylint: disable=missing-module-docstring
from fastapi import FastAPI
from .routers import task, user
tags_metadata = [
{
'name': 'task',
'description': 'Operations related to tasks.',
},
]
app = FastAPI(
title='Task list',
description='Task-list project for the **Megadados** course'... | 23 | 65 | 0.672878 |
e18d760e51cdf1f8ab9695881861681dcd4595c4 | 214 | py | Python | silver_bullet/contain_value.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/contain_value.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | silver_bullet/contain_value.py | Hojung-Jeong/Silver-Bullet-Encryption-Tool | 5ea29b3cd78cf7488e0cbdcf4ea60d7c9151c2a7 | [
"Apache-2.0"
] | null | null | null | '''
>List of functions
1. contain(value,limit) - contains a value between 0 to limit
'''
| 16.461538 | 62 | 0.705607 |
e18de74748857a558fcaeea0ccf6405de06e2047 | 6,388 | py | Python | code/train.py | TONGJINGLV/dagan | 4b6701f0a31026d9a45ab988a645f0a2249cc45c | [
"MIT"
] | null | null | null | code/train.py | TONGJINGLV/dagan | 4b6701f0a31026d9a45ab988a645f0a2249cc45c | [
"MIT"
] | null | null | null | code/train.py | TONGJINGLV/dagan | 4b6701f0a31026d9a45ab988a645f0a2249cc45c | [
"MIT"
] | null | null | null | from data import NumericalField, CategoricalField, Iterator
from data import Dataset
from synthesizer import MaskGenerator_MLP, ObservedGenerator_MLP, Discriminator, Handler, ObservedGenerator_LSTM
from random import choice
import multiprocessing
import pandas as pd
import numpy as np
import torch
import argparse
impor... | 32.426396 | 153 | 0.706951 |
e18f60246990c305ae61d8fc90992d5ea5e04b27 | 4,054 | py | Python | front-end/testsuite-python-lib/Python-3.1/Lib/test/test_pep277.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2020-11-26T18:53:46.000Z | 2020-11-26T18:53:46.000Z | front-end/testsuite-python-lib/Python-3.1/Lib/test/test_pep277.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | null | null | null | front-end/testsuite-python-lib/Python-3.1/Lib/test/test_pep277.py | MalloyPower/parsing-python | b2bca5eed07ea2af7a2001cd4f63becdfb0570be | [
"MIT"
] | 1 | 2019-04-11T11:27:01.000Z | 2019-04-11T11:27:01.000Z | # Test the Unicode versions of normal file functions
# open, os.open, os.stat. os.listdir, os.rename, os.remove, os.mkdir, os.chdir, os.rmdir
import sys, os, unittest
from test import support
if not os.path.supports_unicode_filenames:
raise unittest.SkipTest("test works only on NT+")
filenames = [
'abc',
'... | 35.252174 | 88 | 0.583128 |
e18feeef1d44b1fb5822da8d7afcebfd40c0bfe3 | 1,336 | py | Python | test/unit/test_utils.py | managedbyq/q-dbt | 01f1918fe5cbf3036b7197b8e3211960403718f3 | [
"Apache-2.0"
] | 1 | 2018-06-20T17:51:20.000Z | 2018-06-20T17:51:20.000Z | test/unit/test_utils.py | managedbyq/q-dbt | 01f1918fe5cbf3036b7197b8e3211960403718f3 | [
"Apache-2.0"
] | null | null | null | test/unit/test_utils.py | managedbyq/q-dbt | 01f1918fe5cbf3036b7197b8e3211960403718f3 | [
"Apache-2.0"
] | 1 | 2018-10-18T18:45:38.000Z | 2018-10-18T18:45:38.000Z | import unittest
import dbt.utils
| 30.363636 | 67 | 0.450599 |
e191203fe2262ef390df012127682a8cc60f4320 | 1,006 | py | Python | results.py | ejnnr/steerable_pdo_experiments | 17902e56641cefe305b935c8733b45aa066bf068 | [
"BSD-3-Clause"
] | null | null | null | results.py | ejnnr/steerable_pdo_experiments | 17902e56641cefe305b935c8733b45aa066bf068 | [
"BSD-3-Clause"
] | null | null | null | results.py | ejnnr/steerable_pdo_experiments | 17902e56641cefe305b935c8733b45aa066bf068 | [
"BSD-3-Clause"
] | null | null | null | import argparse
from pathlib import Path
import numpy as np
import yaml
# this script takes in a folder path and then recursively collects all
# results.yaml files in that directory. It averages them and prints
# summary statistics
parser = argparse.ArgumentParser(description="Analyze the results")
parser.add_argume... | 25.794872 | 87 | 0.672962 |
e19165bb436973e6fab40bd344665853870c9891 | 4,541 | py | Python | Pgnet.py | rs-lsl/Pgnet | b31de7c93619a40bfb194bda0ad2889e732c1db6 | [
"MIT"
] | 2 | 2021-12-27T06:27:56.000Z | 2022-03-12T05:19:59.000Z | Pgnet.py | rs-lsl/Pgnet | b31de7c93619a40bfb194bda0ad2889e732c1db6 | [
"MIT"
] | null | null | null | Pgnet.py | rs-lsl/Pgnet | b31de7c93619a40bfb194bda0ad2889e732c1db6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: lsl
E-mail: cug_lsl@cug.edu.cn
"""
import sys
import argparse
sys.path.append("/home/aistudio/code")
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as data
import time
from Pgnet_structure import Pg_net
from Pgnet_dataset imp... | 36.620968 | 120 | 0.657564 |
e1927fcb892725b69d50542f139eaa6330088fdc | 14,716 | py | Python | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 47 | 2016-05-20T02:33:26.000Z | 2022-03-02T01:48:57.000Z | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 7 | 2020-04-09T13:40:56.000Z | 2022-01-24T19:18:50.000Z | tracing/plugins/ath10k_pktlog.py | lumag/qca-swiss-army-knife | 5ede3cc07e9a52f115101c28f833242b772eeaab | [
"ISC"
] | 41 | 2016-04-19T06:31:14.000Z | 2022-03-30T06:25:09.000Z | #
# Copyright (c) 2014-2017 Qualcomm Atheros, Inc.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... | 31.177966 | 106 | 0.632509 |
e1936080a3e49021025bc658618c985bef1143b7 | 731 | py | Python | tgtypes/models/venue.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/venue.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | tgtypes/models/venue.py | autogram/tgtypes | 90f8d0d35d3c372767508e56c20777635e128e38 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import TYPE_CHECKING, Optional
from ._base import TelegramObject
if TYPE_CHECKING: # pragma: no cover
from .location import Location
| 25.206897 | 80 | 0.689466 |
e19376010ad54eee24bb9ce56fbcb72f63a795cb | 2,457 | py | Python | nsa.py | hypervis0r/nsaproductgenerator | e384717e0eb2746bd58d041963b49e4772192f0a | [
"MIT"
] | null | null | null | nsa.py | hypervis0r/nsaproductgenerator | e384717e0eb2746bd58d041963b49e4772192f0a | [
"MIT"
] | null | null | null | nsa.py | hypervis0r/nsaproductgenerator | e384717e0eb2746bd58d041963b49e4772192f0a | [
"MIT"
] | 1 | 2022-02-25T13:06:14.000Z | 2022-02-25T13:06:14.000Z | import random
import argparse
# TODO: Parse word lists from files
words = {
"codenames_adjective": [
"quantum",
"loud",
"red",
"blue",
"green",
"yellow",
"irate",
"angry",
"peeved",
"happy",
"slimy",
"sleepy",
"junior",
"slicker",
"united",
... | 16.944828 | 119 | 0.483923 |
e195525885c756f6c1eaa22f28ac15deda8bb369 | 2,886 | py | Python | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | null | null | null | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | 6 | 2015-01-01T09:15:28.000Z | 2016-10-20T08:09:26.000Z | bob/blitz/extension.py | bioidiap/bob.blitz | 348d7cf3866b549cac576efc3c6f3df24245d9fd | [
"BSD-3-Clause"
] | 3 | 2015-08-05T12:16:45.000Z | 2018-02-01T19:55:40.000Z | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Andre Anjos <andre.anjos@idiap.ch>
# Mon 18 Nov 21:38:19 2013
"""Extension building for using this package
"""
import numpy
from pkg_resources import resource_filename
from bob.extension import Extension as BobExtension
# forward the build_ext command from bob.e... | 31.032258 | 79 | 0.698545 |
e195971c01d6f8dcda846bd7ff1f32bb1f7099e8 | 4,248 | py | Python | src/RosGazeboLibrary/Gazebo.py | hielsnoppe/robotframework-rosgazebolibrary | a91d48413d4af95856964644b149898b538c6724 | [
"Apache-2.0"
] | null | null | null | src/RosGazeboLibrary/Gazebo.py | hielsnoppe/robotframework-rosgazebolibrary | a91d48413d4af95856964644b149898b538c6724 | [
"Apache-2.0"
] | null | null | null | src/RosGazeboLibrary/Gazebo.py | hielsnoppe/robotframework-rosgazebolibrary | a91d48413d4af95856964644b149898b538c6724 | [
"Apache-2.0"
] | null | null | null | from robot.api.deco import keyword
from robot.libraries.BuiltIn import BuiltIn | 29.296552 | 94 | 0.638889 |
e1960d36e95888a08f212b033eea9c1cb048cffe | 1,143 | py | Python | tests/unit/test_hass.py | boonhapus/hautomate | f111a8ad86d5f07183903ec99c1981569e0ee046 | [
"MIT"
] | null | null | null | tests/unit/test_hass.py | boonhapus/hautomate | f111a8ad86d5f07183903ec99c1981569e0ee046 | [
"MIT"
] | null | null | null | tests/unit/test_hass.py | boonhapus/hautomate | f111a8ad86d5f07183903ec99c1981569e0ee046 | [
"MIT"
] | null | null | null | from ward import test, each, raises
from homeassistant.core import HomeAssistant
from hautomate.settings import HautoConfig
from hautomate import Hautomate
import pydantic
from tests.fixtures import cfg_data_hauto
| 26.581395 | 67 | 0.632546 |
e19634e1c0e6ad67f639ff7b727b4525f8c022d4 | 1,186 | py | Python | test/arguments/with_range_check_code/python/Bit4RangeCheckTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 86 | 2018-09-06T09:30:53.000Z | 2022-03-27T01:12:36.000Z | test/arguments/with_range_check_code/python/Bit4RangeCheckTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 362 | 2018-09-04T20:21:24.000Z | 2022-03-30T15:14:38.000Z | test/arguments/with_range_check_code/python/Bit4RangeCheckTest.py | dkBrazz/zserio | 29dd8145b7d851fac682d3afe991185ea2eac318 | [
"BSD-3-Clause"
] | 20 | 2018-09-10T15:59:02.000Z | 2021-12-01T15:38:22.000Z | import unittest
import zserio
from testutils import getZserioApi
BIT4_LOWER_BOUND = 0
BIT4_UPPER_BOUND = 15
| 34.882353 | 99 | 0.73946 |
e196eb274e00b4e5d8027a1161feb36eab5a1ff6 | 1,931 | py | Python | src/MainAPP/migrations/0030_auto_20181211_1246.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | null | null | null | src/MainAPP/migrations/0030_auto_20181211_1246.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 9 | 2017-11-21T15:45:18.000Z | 2022-02-11T03:37:54.000Z | src/MainAPP/migrations/0030_auto_20181211_1246.py | mizamae/HomeAutomation | 8c462ee4c31c1fea6792cb19af66a4d2cf7bb2ca | [
"MIT"
] | 1 | 2020-07-22T02:24:17.000Z | 2020-07-22T02:24:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-12-11 11:46
from __future__ import unicode_literals
from django.db import migrations, models
| 47.097561 | 252 | 0.651476 |
e1970edc7bf4ebc76f1931f011d41021ea8563bf | 18,954 | py | Python | qdms/PulsedProgramming.py | 3it-nano/QDMS | 9ec2d4e198c00f394d8882517c4b3b336c7fe8c2 | [
"MIT"
] | 1 | 2021-11-21T15:18:27.000Z | 2021-11-21T15:18:27.000Z | qdms/PulsedProgramming.py | 3it-nano/QDMS | 9ec2d4e198c00f394d8882517c4b3b336c7fe8c2 | [
"MIT"
] | null | null | null | qdms/PulsedProgramming.py | 3it-nano/QDMS | 9ec2d4e198c00f394d8882517c4b3b336c7fe8c2 | [
"MIT"
] | null | null | null | import numpy as np
import math
import time
| 43.672811 | 219 | 0.614013 |
e197f5d2fbd28b451da6017706229aff6b5fef77 | 462 | py | Python | tests/test_push.py | associatedpress/datakit-dworld | 21ccd0e468c7064d62022a2f136c0f8f47bbabb9 | [
"ISC"
] | 2 | 2019-09-07T02:03:46.000Z | 2021-03-06T14:43:01.000Z | tests/test_push.py | associatedpress/datakit-dworld | 21ccd0e468c7064d62022a2f136c0f8f47bbabb9 | [
"ISC"
] | 5 | 2019-09-06T22:24:26.000Z | 2021-04-27T21:42:18.000Z | tests/test_push.py | associatedpress/datakit-dworld | 21ccd0e468c7064d62022a2f136c0f8f47bbabb9 | [
"ISC"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# from unittest import mock
# from datakit_dworld.push import Push
def test_push(capsys):
"""Sample pytest test function with a built-in pytest fixture as an argument.
"""
# cmd = Greeting(None, None, cmd_name='dworld push')
# parsed_args = mock.Mock()
... | 25.666667 | 81 | 0.655844 |
e19851b68758ad2c430ee4ac03534a5235c71909 | 1,742 | py | Python | cool_filter.py | Andrea055/Imager | 8463fb18253a97f0c93b11f36104881b7e003f41 | [
"MIT"
] | 7 | 2019-03-31T00:02:42.000Z | 2022-01-30T00:30:46.000Z | cool_filter.py | Andrea055/Imager | 8463fb18253a97f0c93b11f36104881b7e003f41 | [
"MIT"
] | 21 | 2018-11-29T14:35:08.000Z | 2019-01-11T08:00:26.000Z | cool_filter.py | Andrea055/Imager | 8463fb18253a97f0c93b11f36104881b7e003f41 | [
"MIT"
] | 17 | 2018-11-27T01:15:29.000Z | 2019-12-29T19:41:30.000Z | import cv2
import numpy as np
from scipy.interpolate import UnivariateSpline
| 32.259259 | 74 | 0.703215 |
e198e752d01863b4604a77f7225e25fec572d794 | 623 | py | Python | src/evaluators/sample_evaluators/swd_sample_evaluator.py | gmum/cwae-pytorch | 7fb31a5d12a0a637be7dde76f0e11e80ec4a345d | [
"MIT"
] | 4 | 2020-08-20T20:51:24.000Z | 2022-01-26T23:56:35.000Z | src/evaluators/sample_evaluators/swd_sample_evaluator.py | gmum/cwae-pytorch | 7fb31a5d12a0a637be7dde76f0e11e80ec4a345d | [
"MIT"
] | null | null | null | src/evaluators/sample_evaluators/swd_sample_evaluator.py | gmum/cwae-pytorch | 7fb31a5d12a0a637be7dde76f0e11e80ec4a345d | [
"MIT"
] | 1 | 2021-12-24T14:13:40.000Z | 2021-12-24T14:13:40.000Z | import torch
from metrics.swd import sliced_wasserstein_distance
from evaluators.sample_evaluators.base_sample_evaluator import BaseSampleEvaluator
from noise_creator import NoiseCreator
| 38.9375 | 89 | 0.781701 |
e199a6e60b58553046744ab0013002524ed3e824 | 473 | py | Python | topic-db/topicdb/core/models/language.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 184 | 2019-01-10T03:50:50.000Z | 2022-03-31T19:45:16.000Z | topic-db/topicdb/core/models/language.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 11 | 2019-04-07T07:39:11.000Z | 2022-02-17T13:29:32.000Z | topic-db/topicdb/core/models/language.py | anthcp-infocom/Contextualise | 0136660fcb965fd70fb4c7a33de7973a69ee9fec | [
"MIT"
] | 9 | 2019-10-26T02:43:59.000Z | 2021-11-03T00:49:10.000Z | """
Language enumeration. Part of the StoryTechnologies project.
June 12, 2016
Brett Alistair Kromkamp (brett.kromkamp@gmail.com)
"""
from enum import Enum
| 18.92 | 60 | 0.64482 |
e199bdb1802d5fdf8365414f161e96d1a070a7b9 | 899 | py | Python | utils/migrations/0002_alter_electricitybilling_unit_price_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | 1 | 2022-03-16T13:29:30.000Z | 2022-03-16T13:29:30.000Z | utils/migrations/0002_alter_electricitybilling_unit_price_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | utils/migrations/0002_alter_electricitybilling_unit_price_and_more.py | shumwe/rental-house-management-system | f97f22afa8bc2740ed08baa387c74b93e02fac0c | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-02 17:24
from django.db import migrations, models
| 31 | 130 | 0.604004 |
e19e2e064598322d4426a31b5e25a817d667c8db | 13,017 | py | Python | lemur/roles/views.py | pandragoq/lemur | 4f289c790b6638be49dc6614045bcad01bebf7ba | [
"Apache-2.0"
] | null | null | null | lemur/roles/views.py | pandragoq/lemur | 4f289c790b6638be49dc6614045bcad01bebf7ba | [
"Apache-2.0"
] | null | null | null | lemur/roles/views.py | pandragoq/lemur | 4f289c790b6638be49dc6614045bcad01bebf7ba | [
"Apache-2.0"
] | null | null | null | """
.. module: lemur.roles.views
:platform: Unix
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
from flask import Blueprint
from flask import make_response, jsonify, abort, g
from flask.e... | 29.186099 | 112 | 0.520089 |
e19e4bc332d90affe3ea70c17d43f480bce982e0 | 16,454 | py | Python | backend/core/workspaces/dataView.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | null | null | null | backend/core/workspaces/dataView.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | 50 | 2021-03-28T03:06:19.000Z | 2021-10-18T12:36:16.000Z | backend/core/workspaces/dataView.py | makakken/roseguarden | 9a867f3d5e979b990bf474dcba81e5e9d0814c6a | [
"MIT"
] | 1 | 2021-07-30T07:12:46.000Z | 2021-07-30T07:12:46.000Z | """
The roseguarden project
Copyright (C) 2018-2020 Marcus Drobisch,
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This pr... | 38.533958 | 109 | 0.521454 |
e19eb98e8bf34e916a97b5b0db5e158713913cb4 | 3,892 | py | Python | demo/video_gpuaccel_demo.py | chenxinfeng4/mmdetection | a99a1aaa5e4a7614f2f89f2350e1b917b2a8ca7e | [
"Apache-2.0"
] | 1 | 2021-12-10T15:08:22.000Z | 2021-12-10T15:08:22.000Z | demo/video_gpuaccel_demo.py | q3394101/mmdetection | ca11860f4f3c3ca2ce8340e2686eeaec05b29111 | [
"Apache-2.0"
] | null | null | null | demo/video_gpuaccel_demo.py | q3394101/mmdetection | ca11860f4f3c3ca2ce8340e2686eeaec05b29111 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import cv2
import mmcv
import numpy as np
import torch
from torchvision.transforms import functional as F
from mmdet.apis import init_detector
from mmdet.datasets.pipelines import Compose
try:
import ffmpegcv
except ImportError:
raise ImportErro... | 34.140351 | 77 | 0.659044 |
e1a102da5af50dd136ac3eab04d096bc659e8951 | 1,234 | py | Python | scripts/benchmark_1_rdomset.py | bluegenes/spacegraphcats | 35f8057068e4fe79ab83ac4efe91d1b0f389e1ea | [
"BSD-3-Clause"
] | null | null | null | scripts/benchmark_1_rdomset.py | bluegenes/spacegraphcats | 35f8057068e4fe79ab83ac4efe91d1b0f389e1ea | [
"BSD-3-Clause"
] | null | null | null | scripts/benchmark_1_rdomset.py | bluegenes/spacegraphcats | 35f8057068e4fe79ab83ac4efe91d1b0f389e1ea | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
"""
Benchmark the rdomset (catlas level 1) algorithm, without I/O considerations.
"""
import sys, os
# add spacegraphcats package to import path:
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
import spacegraphcats
from spacegraphcats.catlas import catlas
import argparse
impor... | 28.697674 | 77 | 0.658833 |
e1a1374935fa7cc8ec68a7212a8ba5b8c016fac8 | 2,107 | py | Python | pyob/mixins/pyob_set_label.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | pyob/mixins/pyob_set_label.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | pyob/mixins/pyob_set_label.py | khunspoonzi/pyob | b1b134b708585add15d04fa75001f3364f31dd74 | [
"MIT"
] | null | null | null | #
# PYOB SET LABEL MIXIN
#
| 36.327586 | 88 | 0.366398 |
e1a2f60719c963dbaf1979085fd5c1225ad3b6d9 | 1,547 | py | Python | proto/twowfuck.py | hanss314/twowfuck | 43d4f7b8c9f6b1e547f57d0c56b1db2972393c1e | [
"Unlicense"
] | null | null | null | proto/twowfuck.py | hanss314/twowfuck | 43d4f7b8c9f6b1e547f57d0c56b1db2972393c1e | [
"Unlicense"
] | null | null | null | proto/twowfuck.py | hanss314/twowfuck | 43d4f7b8c9f6b1e547f57d0c56b1db2972393c1e | [
"Unlicense"
] | null | null | null | import time
from hashlib import sha1
| 28.127273 | 93 | 0.513251 |
e1a32855943669310a5b6aeb210eb2e39273f98a | 5,915 | py | Python | simba/process_data_log.py | justinshenk/simba | a58ccd0ceeda201c1452d186033ce6b25fbab564 | [
"MIT"
] | 1 | 2021-12-15T07:30:33.000Z | 2021-12-15T07:30:33.000Z | simba/process_data_log.py | justinshenk/simba | a58ccd0ceeda201c1452d186033ce6b25fbab564 | [
"MIT"
] | null | null | null | simba/process_data_log.py | justinshenk/simba | a58ccd0ceeda201c1452d186033ce6b25fbab564 | [
"MIT"
] | 1 | 2021-11-14T09:15:30.000Z | 2021-11-14T09:15:30.000Z | import pandas as pd
import os
from configparser import ConfigParser, NoSectionError, NoOptionError
from datetime import datetime
import numpy as np
import glob
from simba.rw_dfs import *
| 49.291667 | 200 | 0.598478 |
e1a33e79602cf7d5b3c579918699d4ae4a866f09 | 3,812 | py | Python | SphinxReportPlugins/MatplotlibPlugin/__init__.py | Tim-HU/sphinx-report | 3a0dc225e594c4b2083dff7a93b6d77054256416 | [
"BSD-2-Clause"
] | 1 | 2020-04-10T12:48:40.000Z | 2020-04-10T12:48:40.000Z | SphinxReportPlugins/MatplotlibPlugin/__init__.py | Tim-HU/sphinx-report | 3a0dc225e594c4b2083dff7a93b6d77054256416 | [
"BSD-2-Clause"
] | null | null | null | SphinxReportPlugins/MatplotlibPlugin/__init__.py | Tim-HU/sphinx-report | 3a0dc225e594c4b2083dff7a93b6d77054256416 | [
"BSD-2-Clause"
] | null | null | null | import os
import re
import warnings
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.image as image
from matplotlib import _pylab_helpers
from matplotlib.cbook import exception_to_str
import seaborn
from SphinxReport.Component import *
from SphinxReport import Config, Utils
| 35.626168 | 97 | 0.471144 |
e1a3af379a95b5a4e4e2ab062711e4da48ff07ad | 4,358 | py | Python | nips2018/utils/plotting.py | kovacspe/Sinz2018_NIPS | c0aad625e516bed57f3ee52b39195c8817527d66 | [
"MIT"
] | 5 | 2018-10-30T05:39:11.000Z | 2021-03-20T12:00:25.000Z | nips2018/utils/plotting.py | kovacspe/Sinz2018_NIPS | c0aad625e516bed57f3ee52b39195c8817527d66 | [
"MIT"
] | null | null | null | nips2018/utils/plotting.py | kovacspe/Sinz2018_NIPS | c0aad625e516bed57f3ee52b39195c8817527d66 | [
"MIT"
] | 5 | 2019-03-08T13:48:39.000Z | 2020-10-04T13:27:56.000Z | import cv2
import imageio
import numpy as np
import matplotlib.pyplot as plt
from itertools import product, zip_longest
import seaborn as sns
| 36.932203 | 106 | 0.630564 |
e1a3e676ffda7283905e72fd2a219c469d9b17cf | 2,115 | py | Python | src/tests/samples.py | BeholdersEye/PyBitmessage | 362a975fbf1ec831d3107c7442527225bc140162 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 5 | 2018-03-24T17:33:03.000Z | 2019-07-01T07:16:19.000Z | src/tests/samples.py | BeholdersEye/PyBitmessage | 362a975fbf1ec831d3107c7442527225bc140162 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 15 | 2018-03-19T00:04:57.000Z | 2021-12-10T17:21:54.000Z | src/tests/samples.py | BeholdersEye/PyBitmessage | 362a975fbf1ec831d3107c7442527225bc140162 | [
"MIT",
"BSD-2-Clause-FreeBSD"
] | 5 | 2019-05-15T08:42:57.000Z | 2019-09-17T12:21:37.000Z | """Various sample data"""
from binascii import unhexlify
magic = 0xE9BEB4D9
# These keys are from addresses test script
sample_pubsigningkey = unhexlify(
'044a367f049ec16cb6b6118eb734a9962d10b8db59c890cd08f210c43ff08bdf09d'
'16f502ca26cd0713f38988a1237f1fc8fa07b15653c996dc4013af6d15505ce')
sample_pubencrypt... | 47 | 115 | 0.858629 |
e1a48794127b8e659f4702ccf90e46361a4d8c86 | 9,123 | py | Python | court_scraper/platforms/wicourts/pages/search.py | mscarey/court-scraper | 0e13976d901352a09cfd7e48450bbe427494f48e | [
"0BSD"
] | 1 | 2021-08-20T08:24:55.000Z | 2021-08-20T08:24:55.000Z | court_scraper/platforms/wicourts/pages/search.py | palewire/court-scraper | da4b614fb16806d8b5117373d273f802ca93a8cb | [
"0BSD"
] | null | null | null | court_scraper/platforms/wicourts/pages/search.py | palewire/court-scraper | da4b614fb16806d8b5117373d273f802ca93a8cb | [
"0BSD"
] | null | null | null | from urllib.parse import parse_qs
from anticaptchaofficial.hcaptchaproxyless import hCaptchaProxyless
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from court_scraper.base.selenium_helpers import Sel... | 45.38806 | 110 | 0.645183 |
e1a571d93e123889de55adde281c383678e87c9f | 392 | py | Python | bitmovin_api_sdk/encoding/encodings/muxings/mp3/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 11 | 2019-07-03T10:41:16.000Z | 2022-02-25T21:48:06.000Z | bitmovin_api_sdk/encoding/encodings/muxings/mp3/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 8 | 2019-11-23T00:01:25.000Z | 2021-04-29T12:30:31.000Z | bitmovin_api_sdk/encoding/encodings/muxings/mp3/__init__.py | jaythecaesarean/bitmovin-api-sdk-python | 48166511fcb9082041c552ace55a9b66cc59b794 | [
"MIT"
] | 13 | 2020-01-02T14:58:18.000Z | 2022-03-26T12:10:30.000Z | from bitmovin_api_sdk.encoding.encodings.muxings.mp3.mp3_api import Mp3Api
from bitmovin_api_sdk.encoding.encodings.muxings.mp3.customdata.customdata_api import CustomdataApi
from bitmovin_api_sdk.encoding.encodings.muxings.mp3.information.information_api import InformationApi
from bitmovin_api_sdk.encoding.encodings.m... | 78.4 | 113 | 0.903061 |
e1a57aedd9dcfceea7d88aacf27bf3e654f2a6f2 | 6,107 | py | Python | platform/bl_interface.py | sumasree98/2022-ectf-insecure-example | ed0a1e3618bca226b0cacd0157ff32a7f4fec2d9 | [
"Apache-2.0"
] | null | null | null | platform/bl_interface.py | sumasree98/2022-ectf-insecure-example | ed0a1e3618bca226b0cacd0157ff32a7f4fec2d9 | [
"Apache-2.0"
] | null | null | null | platform/bl_interface.py | sumasree98/2022-ectf-insecure-example | ed0a1e3618bca226b0cacd0157ff32a7f4fec2d9 | [
"Apache-2.0"
] | 1 | 2022-01-28T02:30:35.000Z | 2022-01-28T02:30:35.000Z | # 2022 eCTF
# Bootloader Interface Emulator
# Ben Janis
#
# (c) 2022 The MITRE Corporation
#
# This source file is part of an example system for MITRE's 2022 Embedded System
# CTF (eCTF). This code is being provided only for educational purposes for the
# 2022 MITRE eCTF competition, and may not meet MITRE standards fo... | 27.885845 | 80 | 0.595055 |
e1a5eed695e57412a97412dd5eb33192adae977e | 968 | py | Python | Excel_python_demo.py | SJG88/excel_vba_python | ba7413be23796c67f921fe5428cd52592fdb54a9 | [
"MIT"
] | null | null | null | Excel_python_demo.py | SJG88/excel_vba_python | ba7413be23796c67f921fe5428cd52592fdb54a9 | [
"MIT"
] | null | null | null | Excel_python_demo.py | SJG88/excel_vba_python | ba7413be23796c67f921fe5428cd52592fdb54a9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This is a script to demo how to open up a macro enabled excel file, write a pandas dataframe to it
and save it as a new file name.
Created on Mon Mar 1 17:47:41 2021
@author: Shane Gore
"""
import os
import xlwings as xw
import pandas as pd
os.chdir(r"C:\Users\Shane Gore\De... | 23.047619 | 99 | 0.669421 |
e1a7e0683b31fbc7612eb7456c53935a17b8dbcf | 31,709 | py | Python | code/Elipsoide_Clark_FAT.py | birocoles/paper-magnetic-elipsoid | 81d9b2e39cbb942f619f590ad389eb30d58b46d4 | [
"BSD-3-Clause"
] | 1 | 2017-02-26T15:19:25.000Z | 2017-02-26T15:19:25.000Z | code/Elipsoide_Clark_FAT.py | birocoles/paper-magnetic-elipsoid | 81d9b2e39cbb942f619f590ad389eb30d58b46d4 | [
"BSD-3-Clause"
] | null | null | null | code/Elipsoide_Clark_FAT.py | birocoles/paper-magnetic-elipsoid | 81d9b2e39cbb942f619f590ad389eb30d58b46d4 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import division
import numpy as np
from scipy import linalg
from matplotlib import pyplot as plt
from fatiando.gravmag import sphere
from fatiando import mesher, gridder, utils
from fatiando.vis import mpl
import scipy.special
import scipy.interpolate
def elipsoide (xp,yp,zp,inten,i... | 30.372605 | 216 | 0.583431 |
e1a8d307cf28e74c7cd2efb91e428fd65a4beecc | 852 | py | Python | app.py | aserhatdemir/digitalocean | 4ae2bfc2831b4fae15d9076b3b228c9a4bda44e7 | [
"MIT"
] | null | null | null | app.py | aserhatdemir/digitalocean | 4ae2bfc2831b4fae15d9076b3b228c9a4bda44e7 | [
"MIT"
] | null | null | null | app.py | aserhatdemir/digitalocean | 4ae2bfc2831b4fae15d9076b3b228c9a4bda44e7 | [
"MIT"
] | null | null | null | from do import DigitalOcean
import argparse
import json
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-token')
args = parser.parse_args()
# parse_input(args.file)
do_play(args.token)
| 23.027027 | 61 | 0.627934 |
e1a8f6b9d508e5ab80894a039b117dd4b1afc6ed | 343 | py | Python | convert_twitter_data.py | charlieyou/data-science-final-project | 7968261c3e44fe3544360a08fea271b611d105c1 | [
"Apache-2.0"
] | null | null | null | convert_twitter_data.py | charlieyou/data-science-final-project | 7968261c3e44fe3544360a08fea271b611d105c1 | [
"Apache-2.0"
] | null | null | null | convert_twitter_data.py | charlieyou/data-science-final-project | 7968261c3e44fe3544360a08fea271b611d105c1 | [
"Apache-2.0"
] | null | null | null | import cPickle as pickle
import pandas as pd
if __name__ == '__main__':
fnames = set(['clinton_tweets.json', 'trump_tweets.json'])
for fname in fnames:
df = pd.read_json('data/' + fname)
df = df.transpose()
df = df['text']
pickle.dump([(i, v) for i, v in zip(df.index, df.values... | 28.583333 | 85 | 0.597668 |