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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d71fa9e2abe22d155154c76e5151b1d3926e5d7 | 1,410 | py | Python | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | null | null | null | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | 11 | 2021-02-17T21:16:36.000Z | 2022-01-14T22:49:27.000Z | validate_staging_area.py | DataBiosphere/hca-import-validation | f57710ec05e3b343bac15cc85d372b4ce2fbe15f | [
"Apache-2.0"
] | 1 | 2021-06-24T15:10:03.000Z | 2021-06-24T15:10:03.000Z | """
Runs a pre-check of a staging area to identify issues that might cause the
snapshot or indexing processes to fail.
"""
import argparse
import sys
from hca.staging_area_validator import StagingAreaValidator
if __name__ == '__main__':
args = _parse_args(sys.argv[1:])
adapter = StagingAreaValidator(
... | 38.108108 | 84 | 0.592199 |
3d7257323cd6a29d01231ce12bd9760e4b104696 | 6,621 | py | Python | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | spider_service/app/spider/selenium/webdriver.py | seniortesting/python-spider | 0b70817373e2e22267ddf3b80b9b7eb15931e41e | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import random
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from app.api.util.web_request import WebRequest, USER_AGENT_PC, USER_AGENT_MOBILE
if __name__ == '__main__':
adsenseClick()
| 37.196629 | 144 | 0.564718 |
3d7270ed2ccd3fdf53730944e85357d2c3e72251 | 2,879 | py | Python | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | Extended Programming Challenges Python/Mnozenie Macierzy/test_main.py | szachovy/School-and-Training | 70f07c0d077da7ba1920d28d881fff7ddcbc37d9 | [
"MIT"
] | null | null | null | import unittest
import main
import re
if __name__ == '__main__':
unittest.main()
| 38.905405 | 118 | 0.632511 |
3d73ea7a25229da399450bef857ee8338b98b235 | 1,210 | py | Python | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 17 | 2015-02-10T12:18:22.000Z | 2018-03-23T05:28:51.000Z | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 3 | 2015-01-12T17:32:20.000Z | 2016-12-13T23:55:38.000Z | setup.py | m45t3r/livedumper | f6441283269b4a602cafea3be5cda9446fc64005 | [
"BSD-2-Clause"
] | 3 | 2015-02-06T09:58:09.000Z | 2016-01-04T23:46:28.000Z | import os
from setuptools import setup
setup(
name="livedumper",
version="0.3.0",
author="Thiago Kenji Okada",
author_email="thiago.mast3r@gmail.com",
description=("Livestreamer stream dumper"),
license="Simplified BSD",
keywords="video streaming downloader dumper",
url='https://github... | 31.842105 | 61 | 0.613223 |
3d75f72f3f1eb09ca962b85e8adb34487fcfe9b8 | 2,862 | py | Python | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | 2 | 2021-03-10T13:13:46.000Z | 2021-03-11T09:03:33.000Z | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | null | null | null | scripts/show_yolo.py | markpp/object_detectors | 8a6cac32ec2d8b578c0d301feceef19390343e85 | [
"MIT"
] | null | null | null | import os
import argparse
import numpy as np
import csv
import cv2
img_w = 0
img_h = 0
if __name__ == "__main__":
"""
Command:
python show_yolo.py -g
"""
# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-g", "--gt", type=str,
... | 28.336634 | 123 | 0.589099 |
3d770d3cc83356d38e93ea226253df080988393a | 8,687 | py | Python | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 262 | 2020-05-05T21:25:17.000Z | 2022-03-22T09:11:15.000Z | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 22 | 2020-05-07T21:20:42.000Z | 2022-02-25T02:44:50.000Z | xp/build/scripts/gg_post_process_xcode_project.py | vladcorneci/golden-gate | fab6e11c4df942c6a915328d805d3265f9ccc8e0 | [
"Apache-2.0"
] | 18 | 2020-05-06T07:21:43.000Z | 2022-02-08T09:49:23.000Z | #! /urs/bin/env python
# Copyright 2017-2020 Fitbit, Inc
# SPDX-License-Identifier: Apache-2.0
#####################################################################
# This script post-processes the XCode project generated
# by CMake, so that it no longer contains absolute paths.
# It also remaps UUIDs so that they ar... | 44.778351 | 138 | 0.610568 |
3d780dd389a1180a4ebe2e338ba4584066d6c9fa | 3,091 | py | Python | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | 2 | 2020-03-16T17:18:20.000Z | 2020-10-19T05:11:19.000Z | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | null | null | null | scripts/US-visa-early-appointment.py | atb00ker/scripts-lab | 71a5cc9c7f301c274798686db4a227e84b65926a | [
"MIT"
] | null | null | null | #!/bin/python3
# Application for getting early US visa interview:
# The tool will Scrape the CGI website and check
# available date before the current appointment date,
# if a date is available, the program will beep.
# NOTE: SET THESE GLOBAL VARIABLES BEFORE USE
# COOKIE: After you login, there is a `cookie`
# ... | 38.160494 | 413 | 0.591071 |
3d7952d5919e3aadff896edcbf8705b6c7253f29 | 3,883 | py | Python | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | null | null | null | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | 4 | 2021-04-08T16:38:32.000Z | 2021-04-12T08:36:59.000Z | src/misc_utils.py | wr339988/TencentAlgo19 | 6506bc47dbc301018064e96cd1e7528609b5cb6c | [
"Apache-2.0"
] | 1 | 2021-04-02T11:09:05.000Z | 2021-04-02T11:09:05.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 33.188034 | 112 | 0.64409 |
3d7a603d1af477e68cfea29362bbe8cb1160699c | 10,713 | py | Python | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T13:00:23.000Z | 2020-07-14T13:00:23.000Z | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | 1 | 2021-06-02T04:45:16.000Z | 2021-06-02T04:45:16.000Z | custom/icds_reports/ucr/tests/test_infra_form_ucr.py | rochakchauhan/commcare-hq | aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236 | [
"BSD-3-Clause"
] | null | null | null | from mock import patch
from custom.icds_reports.ucr.tests.test_base_form_ucr import BaseFormsTest
| 39.677778 | 74 | 0.493419 |
3d7ab6cf1374f5cd2e87a03c6e24173bb82d35b7 | 2,898 | py | Python | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | uq_benchmark_2019/imagenet/end_to_end_test.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 35.341463 | 118 | 0.733954 |
3d7b2d7375396a8c241a8c99281ec5431deb5055 | 1,257 | py | Python | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 37 | 2017-05-12T02:32:26.000Z | 2019-05-03T14:43:08.000Z | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 11 | 2017-08-27T03:36:18.000Z | 2018-10-28T01:31:12.000Z | tests/windows/get_physicaldisk/test_getting_unique_ids_from_output.py | Abd-Elrazek/InQRy | ab9d19a737a41673e8dcc419d49ca0e96476d560 | [
"MIT"
] | 15 | 2019-06-13T11:29:12.000Z | 2022-02-28T06:40:14.000Z | from inqry.system_specs import win_physical_disk
UNIQUE_ID_OUTPUT = """
UniqueId
--------
{256a2559-ce63-5434-1bee-3ff629daa3a7}
{4069d186-f178-856e-cff3-ba250c28446d}
{4da19f06-2e28-2722-a0fb-33c02696abcd}
50014EE20D887D66
eui.0025384161B6798A
5000C5007A75E216
500A07510F1A545C
ATA LITEONIT LMT-256M6M mSATA 256GB ... | 43.344828 | 125 | 0.638823 |
3d7ca16d1d0cb0fd5ce512de12142e0f598017a2 | 572 | py | Python | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | app/models/link.py | aries-zhang/flask-template | 369d77f2910f653f46668dd9bda735954b6c145e | [
"MIT"
] | null | null | null | import time # NOQA
from app import db
| 27.238095 | 63 | 0.63986 |
3d7e43dc6fabcfe8138a99da18574265d9a525c8 | 1,786 | py | Python | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 5 | 2021-02-25T15:54:28.000Z | 2021-04-22T15:43:36.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 7 | 2021-03-15T16:26:23.000Z | 2022-03-16T13:45:18.000Z | pyopenproject/business/services/command/priority/find_all.py | webu/pyopenproject | 40b2cb9fe0fa3f89bc0fe2a3be323422d9ecf966 | [
"MIT"
] | 6 | 2021-06-18T18:59:11.000Z | 2022-03-27T04:58:52.000Z | from pyopenproject.api_connection.exceptions.request_exception import RequestError
from pyopenproject.api_connection.requests.get_request import GetRequest
from pyopenproject.business.exception.business_error import BusinessError
from pyopenproject.business.services.command.find_list_command import FindListCommand
from... | 49.611111 | 93 | 0.594625 |
3d7f09d4c114419bab9ec9c8e10674cc7fff831b | 1,745 | py | Python | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | photos/tests/test_views.py | AndreasMilants/django-photos | 721c2515879a424333859ac48f65d6382b7a48d4 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase
from django.urls import reverse_lazy
from ..models import PHOTO_MODEL, UploadedPhotoModel, IMAGE_SIZES
from .model_factories import get_image_file, get_zip_file
import time
from uuid import uuid4
| 39.659091 | 109 | 0.719198 |
3d81056b0a805d88fa50d75883361df24c0f7eae | 16,756 | py | Python | app.py | cherishsince/PUBG_USB | f9b06d213a0fe294afe4cf2cf6dccce4bb363062 | [
"MulanPSL-1.0"
] | 46 | 2020-07-04T13:33:40.000Z | 2022-03-29T13:42:29.000Z | app.py | kiminh/PUBG_USB | f3a1fa1aedce751fc48aeefd60699a1f02a29a70 | [
"MulanPSL-1.0"
] | 1 | 2020-09-01T01:58:29.000Z | 2020-09-06T11:45:46.000Z | app.py | kiminh/PUBG_USB | f3a1fa1aedce751fc48aeefd60699a1f02a29a70 | [
"MulanPSL-1.0"
] | 21 | 2020-07-08T07:53:56.000Z | 2022-02-02T23:43:56.000Z | import os
import time
from PIL import Image
import pyscreenshot as ImageGrab
import resource
from drive import box_drive64
from util import image_util, data_config_parser
from util.data_parser import read_data
from weapon import weapon, page_check, weapon_selection, left_right_correction
import environment
import thr... | 28.691781 | 107 | 0.59334 |
3d81143199d30bf1afb752289d20dfe6d3a3f506 | 16,009 | py | Python | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | null | null | null | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-01T16:56:58.000Z | 2022-02-27T14:32:32.000Z | src/dataset-dl.py | Mokuichi147/dataset-dl | e669243ccd2d64aa5ccbdd17b430e3d130bb13cd | [
"Apache-2.0",
"MIT"
] | null | null | null | from concurrent.futures import ALL_COMPLETED, ThreadPoolExecutor, as_completed
import csv
import dearpygui.dearpygui as dpg
from os.path import isfile, isdir, join
import pyperclip
import subprocess
import sys
from tempfile import gettempdir
from traceback import print_exc
import core
import extruct
import utilio
fro... | 37.757075 | 151 | 0.639578 |
3d82652d7d5f527c23d139f61d27dabd1f54a20e | 3,813 | py | Python | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 7,073 | 2015-01-01T17:19:16.000Z | 2022-03-31T22:01:29.000Z | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,412 | 2015-01-02T09:29:05.000Z | 2022-03-31T13:10:46.000Z | src/robot/parsing/parser/parser.py | bhirsz/robotframework | d62ee5091ed932aee8fc12ae5e340a5b19288f05 | [
"ECL-2.0",
"Apache-2.0"
] | 2,298 | 2015-01-03T02:47:15.000Z | 2022-03-31T02:00:16.000Z | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | 38.515152 | 79 | 0.702072 |
3d83dae1b7cb47bf096db3ece76a46efed3fa5a8 | 1,835 | py | Python | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2019-03-08T03:06:43.000Z | 2019-03-08T03:06:43.000Z | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | 1 | 2020-10-29T19:54:28.000Z | 2020-10-29T19:54:28.000Z | astronomy_datamodels/tags/fixed_location.py | spacetelescope/astronomy_datamodels | ca5db82d5982781ea763cef9851d4c982fd86328 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from asdf import yamlutil
from asdf.versioning import AsdfSpec
from ..types import AstronomyDataModelType
from ..fixed_location import FixedLocation
| 40.777778 | 96 | 0.683924 |
3d85f7e617337855186eb9a6630f328826ed38ef | 868 | py | Python | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | app/migrations/0003_contacts.py | Joshua-Barawa/Django-IP4 | 5665efe73cf8d2244b7bb35ed627e4e237902156 | [
"Unlicense"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-21 13:04
from django.db import migrations, models
import django.db.models.deletion
| 34.72 | 117 | 0.623272 |
3d8734a866fbee3cba78ae6db665c5cbc41ba2ea | 440 | py | Python | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | 3 | 2020-02-11T23:31:01.000Z | 2021-06-10T21:04:34.000Z | assessment/seeders/base_seeder.py | kenware/Assessment | 69f5e3fbf18dfa2c59eaf3b083ebdba7ca66c9b7 | [
"MIT"
] | null | null | null |
from .seed_assessment_type import seed_assessment
from .seed_question import seed_question
from .seed_answer import seed_answer
from .seed_user import seed_user
from .seed_score import seed_score
from .seed_assessment_name import seed_assessment_name
| 24.444444 | 54 | 0.752273 |
3d89564a5d0fa853d134b34b86a84b5003e24ceb | 328 | py | Python | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | contek_tusk/metric_data.py | contek-io/contek-tusk | 74dc73388367adb958848819b29fe24316c4f6f4 | [
"MIT"
] | null | null | null | from pandas import DataFrame
from contek_tusk.table import Table
| 19.294118 | 60 | 0.655488 |
3d8aee839cc7a45416c287f7da1460240d9b1dd8 | 28 | py | Python | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 22 | 2020-10-10T18:25:04.000Z | 2021-11-09T18:56:34.000Z | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 1 | 2020-11-10T03:50:05.000Z | 2020-11-10T03:50:05.000Z | inlinec/__init__.py | ssize-t/inlinec | 20eca6bf8556a77906ba5f420f09006d6daf4355 | [
"Apache-2.0"
] | 2 | 2020-10-10T16:09:42.000Z | 2021-03-10T16:43:11.000Z | from .inlinec import inlinec | 28 | 28 | 0.857143 |
3d90245ccc4e47d064d2a5aa4296f527b42e0ce2 | 3,360 | py | Python | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | mcastropi.py | martinohanlon/MinecraftInteractiveAstroPi | 0e9f30b25cad83b52553b257103b0e89a09ecc38 | [
"BSD-3-Clause"
] | null | null | null | """
SpaceCRAFT - Astro Pi competition[http://astro-pi.org/] entry
Conceived by Hannah Belshaw
Created by Martin O'Hanlon[http://www.stuffaboutcode.com]
For the Raspberry Pi Foundation[https://www.raspberrypi.org]
mcastropi.py
A movable minecraft model of a Raspberry Pi with an Astro Pi on top
"""
from minec... | 37.752809 | 74 | 0.535714 |
3d9080c01f26c55604e47fcbe8181d860f113c89 | 1,444 | py | Python | utils/pack_images.py | 1mplex/segmentation_image_augmentation | bd93c1589078247c0c7aff8556afc16a7e15be39 | [
"MIT"
] | 15 | 2020-07-21T08:57:38.000Z | 2022-01-24T21:59:10.000Z | utils/pack_images.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 1 | 2021-02-15T21:24:11.000Z | 2021-02-15T21:24:11.000Z | utils/pack_images.py | el-lilya/segmentation_image_augmentation | c16604274a220e00a6fbc4d653ab9c90276a8eba | [
"MIT"
] | 9 | 2021-07-01T02:42:22.000Z | 2022-01-24T21:59:12.000Z | import copy
import math
import numpy as np
# import rpack
from rectpack import newPacker
from rectpack.maxrects import MaxRectsBssf
# def get_pack_coords(sizes):
# # list of [height, width] i.e. img.shape order
# sizes = _change_dim_order(sizes)
# positions = rpack.pack(sizes)
# return _change_dim_o... | 22.5625 | 66 | 0.629501 |
3d90bec081e48c3692736a49abca5a861a8e0892 | 626 | py | Python | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | scripts/modules/task_plan_types/date.py | vkostyanetsky/Organizer | b1f0a05c0b6c6e6ea7a78a6bd7a3c70f85b33eba | [
"MIT"
] | null | null | null | # DD.MM.YYYY (DD , MM , YYYY )
import re
import datetime | 26.083333 | 91 | 0.600639 |
3d92ede6e5d24bbbfeb9c757cc08cd7affa9cd34 | 268 | py | Python | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-01-17T15:49:03.000Z | 2021-01-17T15:49:03.000Z | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | null | null | null | src/pyons/setup.py | larioandr/thesis-models | ecbc8c01aaeaa69034d6fe1d8577ab655968ea5f | [
"MIT"
] | 1 | 2021-03-07T15:31:06.000Z | 2021-03-07T15:31:06.000Z | from setuptools import setup
setup(
name='pyons',
version='1.0',
author="Andrey Larionov",
author_email="larioandr@gmail.com",
license="MIT",
py_modules=['pyons'],
install_requires=[
],
tests_requires=[
'pytest',
],
)
| 15.764706 | 39 | 0.589552 |
3d95e63a148b7fb62965e71316967e479358de64 | 2,262 | py | Python | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 4 | 2016-09-19T03:54:31.000Z | 2021-03-27T23:06:34.000Z | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 1 | 2017-08-01T15:04:57.000Z | 2017-08-08T22:02:46.000Z | html2markdown.py | DeusFigendi/fefebot | 935338c7b082502f25f97ae4874b4e896a04972e | [
"MIT"
] | 6 | 2015-08-24T09:37:41.000Z | 2018-12-26T19:40:42.000Z | #! /usr/bin/env python3.2
import re
| 29 | 183 | 0.517683 |
3d9613c4bf3516cfc004d7af07118d7c31dd361e | 2,572 | py | Python | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | 1 | 2018-04-18T19:10:06.000Z | 2018-04-18T19:10:06.000Z | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | null | null | null | Uebung10/Aufgabe29.py | B0mM3L6000/EiP | f68718f95a2d3cde8ead62b6134ac1b5068881a5 | [
"MIT"
] | 1 | 2018-04-29T08:48:00.000Z | 2018-04-29T08:48:00.000Z |
##################################
"""
29.5:
nein es gilt nicht, wenn z.B. das Dictionary fr verschiedene schlssel gleiche
Bedeutungen hat
z.B. dict erstellt mit den strings:
"haus baum welt"
"rot blau blau"
und bersetzt werden soll:
"baum welt haus"
dann erhlt man am ende: "welt welt haus"
"""
##########... | 28.263736 | 154 | 0.626361 |
3d97e3a10c2e5eda50ea446fddb6d02e4af4f7fc | 543 | py | Python | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 9 | 2015-07-23T06:35:59.000Z | 2020-06-01T04:33:56.000Z | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 28 | 2015-10-16T19:09:58.000Z | 2019-02-28T21:09:54.000Z | p2p/adapters.py | baltimore-sun-data/p2p-python | 5f9648839d17c003104d88fd6cc6ca7a8eddd2c6 | [
"MIT"
] | 5 | 2015-10-15T22:56:10.000Z | 2018-11-13T20:44:39.000Z | from requests.adapters import HTTPAdapter, DEFAULT_POOLBLOCK
from requests.packages.urllib3.poolmanager import PoolManager
| 38.785714 | 78 | 0.664825 |
3d9a1b0edafd4fb0b37e8206295d03027352213c | 18 | py | Python | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | null | null | null | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | 2 | 2019-12-24T01:54:21.000Z | 2019-12-24T02:23:54.000Z | mltk/marl/algorithms/__init__.py | lqf96/mltk | 7187be5d616781695ee68674cd335fbb5a237ccc | [
"MIT"
] | null | null | null | from .phc import * | 18 | 18 | 0.722222 |
3d9ccca595c0005acda152685faed3168eed5797 | 14,006 | py | Python | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | 3 | 2020-03-23T14:00:35.000Z | 2020-09-24T13:56:18.000Z | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | src/elementary_modules.py | rmldj/random-graph-nn-paper | b04537f3312113b118878c37cb314a527c5b3a11 | [
"MIT"
] | null | null | null | import sympy as sym
import torch
import torch.nn as nn
import torch.nn.functional as F
| 43.228395 | 141 | 0.628873 |
3d9d90c223017d9e1ce9c0cffb8a666b613826f2 | 1,326 | py | Python | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | 1 | 2021-09-21T00:00:25.000Z | 2021-09-21T00:00:25.000Z | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | null | null | null | actions.py | rodrigocamposdf/MovieBot | 927ded61a201e6b5c33efd88e9e9a0271a43a4d4 | [
"MIT"
] | 5 | 2020-07-20T18:43:59.000Z | 2020-11-03T22:49:17.000Z | import movies
| 28.212766 | 78 | 0.630468 |
3d9dc45f332b2fb283e892734ee2a5da821f63dd | 118 | py | Python | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | 1 | 2019-04-18T13:43:15.000Z | 2019-04-18T13:43:15.000Z | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | null | null | null | Exercicios7/percorrendoLista.py | vinihf/Prog1_ADS_2019 | 97d2e0cddf72c00a73d0bc3070bb9731e66e19e2 | [
"CC-BY-4.0"
] | null | null | null | lista = list(range(0,10001))
for cont in range(0,10001):
print(lista[cont])
for valor in lista:
print(valor) | 16.857143 | 28 | 0.669492 |
3d9e72965d75f1eba7d57fa18ca18b2a64265bc7 | 8,282 | py | Python | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | 1 | 2020-12-05T15:45:48.000Z | 2020-12-05T15:45:48.000Z | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | 2 | 2021-03-18T07:37:28.000Z | 2021-07-27T14:45:14.000Z | core/spacy_parser.py | teodor-cotet/DiacriticsRestoration | e7b41d75b84ab2131694f16b9bd93448e83069e1 | [
"Apache-2.0"
] | null | null | null | import spacy
from spacy.lang.ro import Romanian
from typing import Dict, List, Iterable
from nltk import sent_tokenize
import re
# JSON Example localhost:8081/spacy application/json
# {
# "lang" : "en",
# "blocks" : ["Dup terminarea oficial a celui de-al doilea rzboi mondial, n conformitate cu discursul lui W.... | 42.255102 | 584 | 0.579087 |
3da0bfcdf3a8e5f3c1aebf2e4b45b14e05c629a8 | 1,375 | py | Python | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | code/bot/bot3.py | josemac95/umucv | f0f8de17141f4adcb4966281c3f83539ebda5f0b | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
# comando con argumentos
# y procesamiento de una imagen
# enviada por el usuario
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from io import BytesIO
from PIL import Image
import cv2 as cv
import skimage.io as io
updater = Updater('api token del bot')
updater.dis... | 28.061224 | 85 | 0.722182 |
3da10758c9f1e0fdc4bba0b279e9579ff6f1b0c5 | 1,236 | py | Python | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | 1 | 2022-03-23T10:18:17.000Z | 2022-03-23T10:18:17.000Z | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | null | null | null | AUTOENCODERS/DataPreparing/CICIDSPreprocessor.py | pawelptak/AI-Anomaly-Detection | 0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5 | [
"MIT"
] | null | null | null | from sklearn.preprocessing import StandardScaler, LabelEncoder, MinMaxScaler, OneHotEncoder
import numpy as np
import pandas as pd
import tqdm
"""
Class for Preprocessing CICIDS2017 Data represented as rows
"""
| 33.405405 | 91 | 0.670712 |
3da195067ff01ae97b234bc41093431b6cebf500 | 646 | py | Python | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 11 | 2020-09-16T06:53:16.000Z | 2021-08-24T21:27:37.000Z | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | null | null | null | class3/collateral/show_genie.py | twin-bridges/netmiko_course | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | [
"Apache-2.0"
] | 5 | 2020-10-18T20:25:59.000Z | 2021-10-20T16:27:00.000Z | import os
from netmiko import ConnectHandler
from getpass import getpass
from pprint import pprint
# Code so automated tests will run properly
# Check for environment variable, if that fails, use getpass().
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
my_device = {
"dev... | 30.761905 | 88 | 0.733746 |
3da20b359813d6186015461736f4d52256b59084 | 2,793 | py | Python | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | pints/tests/test_toy_hes1_michaelis_menten_model.py | lisaplag/pints | 3de6617e57ba5b395edaca48961bfc5a4b7209b3 | [
"RSA-MD"
] | null | null | null | #!/usr/bin/env python3
#
# Tests if the HES1 Michaelis-Menten toy model runs.
#
# This file is part of PINTS (https://github.com/pints-team/pints/) which is
# released under the BSD 3-clause license. See accompanying LICENSE.md for
# copyright notice and full license details.
#
import unittest
import numpy as np
impor... | 38.260274 | 78 | 0.653419 |
3da3144e79a3871eba136a301ca02449b8340d18 | 390 | py | Python | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | 1 | 2019-12-10T08:01:58.000Z | 2019-12-10T08:01:58.000Z | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | null | null | null | pyctogram/instagram_client/relations/__init__.py | RuzzyRullezz/pyctogram | b811c55dc1c74d57ef489810816322e7f2909f3d | [
"MIT"
] | null | null | null | from . base import Actions, get_users
| 39 | 103 | 0.810256 |
3da323f7d830c432cc131d570a30ac74ba6392bd | 1,636 | py | Python | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | day-40-API-Cheapest-Flight-Multiple-Users/data_manager.py | anelshaer/Python100DaysOfCode | 012ae7dda28dc790d3bc4d26df807a4dba179ffe | [
"MIT"
] | null | null | null | import requests
import os
from user_data import UserData
import json
| 34.808511 | 110 | 0.630807 |
3da40761377898e0edc360572dbd5d864963e85c | 4,232 | py | Python | crime_data/resources/incidents.py | 18F/crime-data-api | 3e8cab0fad4caac1d7d8ef1b62ae7a1441752c6c | [
"CC0-1.0"
] | 51 | 2016-09-16T00:37:56.000Z | 2022-01-22T03:48:24.000Z | crime_data/resources/incidents.py | harrisj/crime-data-api | 9b49b5cc3cd8309dda888f49356ee5168c43851a | [
"CC0-1.0"
] | 605 | 2016-09-15T19:16:49.000Z | 2018-01-18T20:46:39.000Z | crime_data/resources/incidents.py | harrisj/crime-data-api | 9b49b5cc3cd8309dda888f49356ee5168c43851a | [
"CC0-1.0"
] | 12 | 2018-01-18T21:15:34.000Z | 2022-02-17T10:09:40.000Z | from webargs.flaskparser import use_args
from itertools import filterfalse
from crime_data.common import cdemodels, marshmallow_schemas, models, newmodels
from crime_data.common.base import CdeResource, tuning_page, ExplorerOffenseMapping
from crime_data.extensions import DEFAULT_MAX_AGE
from flask.ext.cachecontrol imp... | 41.087379 | 157 | 0.708176 |
3da4a9becaa6b35a7f34b4f9c1a6f2e59d92599e | 1,522 | py | Python | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | 3 | 2019-04-05T14:16:17.000Z | 2021-06-25T20:53:03.000Z | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | 6 | 2019-04-04T20:20:16.000Z | 2021-09-27T21:04:39.000Z | deploy_config_generator/output/kube_kong_consumer.py | ApplauseAQI/applause-deploy-config-generator | 46f957fbfe991677f920d5db74b0670385b6e505 | [
"MIT"
] | null | null | null | import copy
from deploy_config_generator.utils import yaml_dump
from deploy_config_generator.output import kube_common
| 31.061224 | 130 | 0.532194 |
3da7fc4300dabd09ec4c470043ea127780e60a3b | 2,450 | py | Python | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | 1 | 2021-12-07T08:02:30.000Z | 2021-12-07T08:02:30.000Z | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | EyePatterns/clustering_algorithms/custom_mean_shift.py | Sale1996/Pattern-detection-of-eye-tracking-scanpaths | 15c832f26dce98bb95445f9f39f454f99bbb6029 | [
"MIT"
] | null | null | null | import numpy as np
| 34.027778 | 87 | 0.646122 |
3da83d4179e3c0fa03b23a086938541e7c9c090e | 931 | py | Python | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 12 | 2019-04-30T16:07:42.000Z | 2021-12-08T08:02:09.000Z | src/tentaclio/clients/athena_client.py | octoenergy/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 74 | 2019-04-25T11:18:22.000Z | 2022-01-18T11:31:14.000Z | src/tentaclio/clients/athena_client.py | datavaluepeople/tentaclio | eb6920a0e115c6c08043063a8c1013d812ec34c8 | [
"MIT"
] | 4 | 2019-05-05T13:13:21.000Z | 2022-01-14T00:33:07.000Z | """AWS Athena query client.
Overrides the `get_df` convenience methods for loading a DataFrame using PandasCursor,
which is more performant than using sql alchemy functions.
"""
import pandas as pd
from pyathena.pandas_cursor import PandasCursor
from . import decorators, sqla_client
__all__ = ["AthenaClient"]
| 32.103448 | 86 | 0.736842 |
3da995d5085338f00dd3653e93f80c4fa924f8b7 | 3,592 | py | Python | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | 11 | 2018-03-27T17:24:35.000Z | 2021-09-21T05:49:11.000Z | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | 64 | 2018-01-24T16:34:42.000Z | 2020-03-23T13:34:07.000Z | tests/unit/merge/merge_test.py | singulared/conflow | f74dec63b23da9791202e99496d3baadd458c1c5 | [
"MIT"
] | null | null | null | import pytest
from conflow.merge import merge_factory
from conflow.node import Node, NodeList, NodeMap
| 26.218978 | 69 | 0.58686 |
3da9ac46abe5207f20db155757f945a1d90d40c8 | 864 | py | Python | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | cartopolar/antarctica_maps.py | dlilien/cartopolar | a425ef205c72e25c5d140c65c1ec99d688618f49 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright 2020 dlilien <dlilien@hozideh>
#
# Distributed under terms of the MIT license.
"""
"""
import numpy as np
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
from .cartopy_overrides import SPS
# import shapely.geometry as sgeom
US... | 24.685714 | 76 | 0.665509 |
3daa549e10afe7d4f29dbdbe102676caed6653f5 | 1,010 | py | Python | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 25 | 2018-07-20T22:31:40.000Z | 2021-07-15T16:58:41.000Z | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 13 | 2018-06-18T23:08:47.000Z | 2022-02-10T07:38:25.000Z | cpdb/toast/tests/test_serializers.py | invinst/CPDBv2_backend | b4e96d620ff7a437500f525f7e911651e4a18ef9 | [
"Apache-2.0"
] | 6 | 2018-05-17T21:59:43.000Z | 2020-11-17T00:30:26.000Z | from django.test import TestCase
from robber import expect
from toast.serializers import ToastDesktopSerializer, ToastMobileSerializer
from toast.factories import ToastFactory
| 31.5625 | 112 | 0.634653 |
3daa64b4b3b876de59fee4ffa1f0970c52c6d7f9 | 12,063 | py | Python | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | null | null | null | wirepas_backend_client/test/kpi_adv.py | PFigs/backend-client | e6f024d8c5b8ba3e7cd1b5c226d16ff643d4bd83 | [
"Apache-2.0"
] | 1 | 2021-09-30T06:38:54.000Z | 2021-09-30T06:38:54.000Z | """
KPI ADV
=======
Script to execute an inventory and otap benchmark for the
advertiser feature.
.. Copyright:
Copyright 2019 Wirepas Ltd under Apache License, Version 2.0.
See file LICENSE for full license details.
"""
import queue
import random
import datetime
import importlib
... | 32.340483 | 120 | 0.607643 |
3dac942409c65786150bee242bc747d471fc5414 | 1,608 | py | Python | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | levenshtein_func.py | Lance-Easley/Document-Similarity | c83fa406acf6308da28867611f567776fc266884 | [
"MIT"
] | null | null | null | import doctest
def leven_distance(iterable1: str or list, iterable2: str or list) -> int:
"""Takes two strings or lists and will find the Levenshtein distance
between the two.
Both iterables must be same type (str or list) for proper functionality.
If given strings, function will find distance per c... | 29.777778 | 77 | 0.559701 |
3dada60e0249d722b9efc92d356114b02e3e0c6c | 18,496 | py | Python | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | filters/Filter.py | Paul1298/ITMO_FS | 219537776d89e52df0c1c07de2c71ce91c679c50 | [
"MIT"
] | null | null | null | from .utils import *
GLOB_MEASURE = {"FitCriterion": _DefaultMeasures.fit_criterion_measure,
"FRatio": _DefaultMeasures.f_ratio_measure,
"GiniIndex": _DefaultMeasures.gini_index,
"InformationGain": _DefaultMeasures.ig_measure,
"MrmrDiscrete": _DefaultM... | 37.670061 | 118 | 0.579477 |
3dae0fc03c90ecfa32dc4ecfd3dd9dd3da1ccb4d | 457 | py | Python | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | null | null | null | h3.py | alexfmsu/pyquantum | 78b09987cbfecf549e67b919bb5cb2046b21ad44 | [
"MIT"
] | 2 | 2020-07-28T08:40:06.000Z | 2022-02-16T23:04:58.000Z | from PyQuantum.TC3.Cavity import Cavity
from PyQuantum.TC3.Hamiltonian3 import Hamiltonian3
capacity = {
'0_1': 2,
'1_2': 2,
}
wc = {
'0_1': 0.2,
'1_2': 0.3,
}
wa = [0.2] * 3
g = {
'0_1': 1,
'1_2': 200,
}
cv = Cavity(wc=wc, wa=wa, g=g, n_atoms=3, n_levels=3)
# cv.wc_info()
# cv.wa_info()
#... | 13.848485 | 60 | 0.603939 |
3daf0b7c2684b25ee98648b971b2e1076b2cf00c | 1,058 | py | Python | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | 1 | 2020-05-18T15:55:09.000Z | 2020-05-18T15:55:09.000Z | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | null | null | null | gamestate-changes/change_statistics/other/rectangleAnimation.py | phylib/MinecraftNDN-RAFNET19 | c7bfa7962707af367fafe9d879bc63637c06aec7 | [
"MIT"
] | null | null | null | # https://stackoverflow.com/questions/31921313/matplotlib-animation-moving-square
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib import animation
x = [0, 1, 2]
y = [0, 10, 20]
y2 = [40, 30, 20]
colors = ['r','b','g','orange']
fig = plt.figure()
plt.axis('equal')
plt.grid()
ax = f... | 25.190476 | 81 | 0.614367 |
3daf498d7521399146cf380a60792cc98a71c488 | 6,145 | py | Python | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | MakeMytripChallenge/script/IFtrial.py | divayjindal95/DataScience | d976a5e3ac9bd36e84149642a5b93f7bfc3540cf | [
"MIT"
] | null | null | null | import sys
import warnings
if not sys.warnoptions:
warnings.simplefilter("ignore")
import numpy as np
import pandas as pd
import matplotlib.pylab as plt
from sklearn.naive_bayes import MultinomialNB
from sklearn.ensemble import RandomForestClassifier
from sklearn.ensemble import GradientBoostingClassifier
from ... | 34.138889 | 300 | 0.682832 |
3daf789bd0a2214d01837395979045b5721435c8 | 16,895 | py | Python | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 198 | 2019-08-16T15:09:23.000Z | 2022-03-30T12:44:00.000Z | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 13 | 2021-01-07T10:15:19.000Z | 2022-03-29T13:01:47.000Z | qf_lib/backtesting/order/order_factory.py | webclinic017/qf-lib | 96463876719bba8a76c8269cef76addf3a2d836d | [
"Apache-2.0"
] | 29 | 2019-08-16T15:21:28.000Z | 2022-02-23T09:53:49.000Z | # Copyright 2016-present CERN European Organization for Nuclear Research
#
# 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.... | 48.409742 | 123 | 0.674223 |
3db22ed381d2b08ee0407932f289e02567c77fca | 1,268 | py | Python | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | src/test_network3.py | chansonzhang/FirstDL | 41ad7def19c42882f0418fe44ce395f7b5492f36 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 Zhang, Chen. 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 re... | 42.266667 | 80 | 0.69795 |
3db26a9a64ef3907fd6d3bfdd43c6b7c844f6a0f | 303 | py | Python | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | 9 | 2021-03-19T08:05:00.000Z | 2022-03-12T00:15:53.000Z | mood_sense/serializers.py | D-Denysenko/health-app | 18d1e9c492fb00694e1987a6cdaa2197ff4efa11 | [
"MIT"
] | null | null | null | from rest_framework import serializers
from .models import Mood
| 23.307692 | 92 | 0.686469 |
3db6b1a2ad7d586c5f66023f21c351a35d9fd997 | 7,604 | py | Python | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 2 | 2016-06-06T03:26:49.000Z | 2017-08-06T18:12:33.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | 60 | 2016-03-19T16:01:27.000Z | 2016-06-23T16:26:10.000Z | Appserver/Test/ApiUnitTesting/testBusquedaCandidatos.py | seguijoaquin/taller2 | f41232516de15fe045805131b09299e5c2634e5e | [
"MIT"
] | null | null | null | import json
import requests
import unittest
import Utilities
# Precondiciones:
# Intereses:
# No debe haber ningun usuario en el Shared que tenga "interesUnico"
#
Address = "http://localhost:8000"
#Tal vez mandar las URIs a sus respectivas clases
URIResgistro = "/registro"
URILogin = "/login"
URIPedirCandidato = ... | 43.451429 | 233 | 0.768017 |
3db6b5d6bbd126263b54d30034f80a8d201b13af | 3,639 | py | Python | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 1 | 2019-11-26T17:49:19.000Z | 2019-11-26T17:49:19.000Z | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 54 | 2018-12-12T18:02:31.000Z | 2022-03-28T19:14:25.000Z | scripts/plots/yearly_summary.py | jarad/dep | fe73982f4c70039e1a31b9e8e2d9aac31502f803 | [
"MIT"
] | 4 | 2020-03-02T22:59:38.000Z | 2021-12-09T15:49:00.000Z | import datetime
import cStringIO
import psycopg2
from shapely.wkb import loads
import numpy as np
import sys
from geopandas import read_postgis
import matplotlib
matplotlib.use("agg")
from pyiem.plot import MapPlot
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from matplotlib.collections impor... | 25.992857 | 74 | 0.622424 |
3db72a55f192a9c9ab68f0478ca0ffc316b36c78 | 1,053 | py | Python | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 15 | 2019-02-12T23:26:09.000Z | 2021-12-21T08:53:58.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 2 | 2019-01-23T21:13:12.000Z | 2019-06-28T15:45:51.000Z | package/diana/utils/iter_dates.py | thomasyi17/diana2 | 2167053dfe15b782d96cb1e695047433f302d4dd | [
"MIT"
] | 6 | 2019-01-23T20:22:50.000Z | 2022-02-03T03:27:04.000Z | from datetime import datetime, timedelta
| 26.325 | 79 | 0.624881 |
3db739475a32d4a4cd03afcbff8864712c35cad0 | 193 | py | Python | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | Exercicios Curso Em Video Mundo 2/ex067.py | JorgeTranin/Python_Curso_Em_Video | be74c9301aafc055bdf883be649cb8b7716617e3 | [
"MIT"
] | null | null | null | cont = 1
while True:
t = int(input('Quer saber a tabuada de que numero ? '))
if t < 0:
break
for c in range (1, 11):
print(f'{t} X {c} = {t * c}')
print('Obrigado!') | 24.125 | 59 | 0.507772 |
3db86f3d8bdc658afbe080624e5b8f952805ce4b | 1,172 | py | Python | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | src/PassGen/PassGen.py | Natthapolmnc/PasswordGenerator | 1d481de1b4773af99558c68e9570d1801c1f6e2e | [
"MIT"
] | null | null | null | import random as rd
| 35.515152 | 59 | 0.617747 |
3db8e72e1423808652d32817702cb2ec2246d0ea | 5,413 | py | Python | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 2 | 2020-06-03T20:19:33.000Z | 2021-04-29T08:05:09.000Z | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 41 | 2020-06-09T11:11:37.000Z | 2022-03-20T21:18:42.000Z | services/offers_service.py | martinmladenov/RankingBot | 1df4e37b4b9a68b3f553b2f55acc77663163be1b | [
"MIT"
] | 9 | 2020-05-27T19:04:55.000Z | 2021-11-01T12:57:55.000Z | from datetime import date, datetime, timedelta
from matplotlib import pyplot as plt, dates as mdates
from matplotlib.ticker import MaxNLocator
from helpers import programmes_helper
filename = 'offers.png'
| 41.320611 | 114 | 0.585258 |
3db9d9cd9e40d9cc018a319420be1ba7e9abac3d | 11,397 | py | Python | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | lib/python3.8/site-packages/ansible_collections/community/postgresql/plugins/modules/postgresql_user_obj_stat_info.py | cjsteel/python3-venv-ansible-2.10.5 | c95395c4cae844dc66fddde9b4343966f4b2ecd5 | [
"Apache-1.1"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Andrew Klychkov (@Andersson007) <aaklychkov@mail.ru>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''... | 33.919643 | 137 | 0.623761 |
3dbac19444fd45965d236a4f1e5266c9a002aefd | 1,586 | py | Python | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 10 | 2020-05-28T07:09:02.000Z | 2021-04-18T07:38:01.000Z | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 4 | 2020-11-13T18:51:09.000Z | 2022-02-10T01:58:16.000Z | lib/run_config.py | king/s3vdc | baa6689a6344f417758d4d8b4e6c6e966a510b32 | [
"MIT"
] | 4 | 2020-05-29T05:05:18.000Z | 2021-04-22T01:33:17.000Z | """
Copyright (C) king.com Ltd 2019
https://github.com/king/s3vdc
License: MIT, https://raw.github.com/king/s3vdc/LICENSE.md
"""
import tensorflow as tf
def _session_config() -> tf.ConfigProto:
"""Constructs a session config specifying gpu memory usage.
Returns:
tf.ConfigProto -- session config.
... | 31.098039 | 104 | 0.708071 |
3dbaf6caeb51e514bda230b2abe9f5f3e8537dce | 974 | py | Python | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | tests/test_address_book.py | kibernick/pycontacts | 9ec7653cdea582b242a6d5f314b4d0c4bb92dd39 | [
"MIT"
] | null | null | null | from pycontacts import AddressBook
from pycontacts.models import Person
from pycontacts.managers import (
EmailAddressManager,
GroupManager,
PhoneNumberManager,
PersonManager,
StreetAddressManager,
)
| 29.515152 | 74 | 0.776181 |
3dbc71f9f330f9191f0001053d461bd694f61316 | 46,266 | py | Python | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | lifeloopweb/db/models.py | jaimecruz21/lifeloopweb | ba0ffe1ea94ba3323a4e9c66c9506a338cae3212 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# pylint: disable=no-value-for-parameter,too-many-nested-blocks
import contextlib
import datetime
import functools
import re
from abc import abstractmethod
import sqlalchemy as sa
from sqlalchemy import event, exc, func, select
from sqlalchemy.ext import declarative
from sqlalchemy.ext import hy... | 37.371567 | 99 | 0.626162 |
3dbe95131f682ae91ac5d0ab7098a4da9541c391 | 267 | py | Python | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | gc_win1.py | danz2004/learning_python | 20cb7d33f898bcc406f33565308132dca31e11cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
seq = 'ACGACGCAGGAGGAGAGTTTCAGAGATCACGAATACATCCATATTACCCAGAGAGAG'
w = 11
for i in range(len(seq) - w + 1):
count = 0
for j in range(i, i + w):
if seq[j] == 'G' or seq[j] == 'C':
count += 1
print(f'{i} {seq[i:i+w]} {(count / w) : .4f}')
| 26.7 | 65 | 0.595506 |
3dbf87737162b90ca8a50c6b75c42c1a4829f712 | 6,159 | py | Python | test/test_auth.py | tjones-commits/server-client-python | b9309fb79564de9f28196b929ee77b0e77a8f504 | [
"CC0-1.0",
"MIT"
] | 470 | 2016-09-14T23:38:48.000Z | 2022-03-31T07:59:53.000Z | test/test_auth.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 772 | 2016-09-09T18:15:44.000Z | 2022-03-31T22:01:08.000Z | test/test_auth.py | jorwoods/server-client-python | fefd6f18d8a6617829c6323879d2c3ed77a4cda6 | [
"CC0-1.0",
"MIT"
] | 346 | 2016-09-10T00:05:00.000Z | 2022-03-30T18:55:47.000Z | import unittest
import os.path
import requests_mock
import tableauserverclient as TSC
TEST_ASSET_DIR = os.path.join(os.path.dirname(__file__), 'assets')
SIGN_IN_XML = os.path.join(TEST_ASSET_DIR, 'auth_sign_in.xml')
SIGN_IN_IMPERSONATE_XML = os.path.join(TEST_ASSET_DIR, 'auth_sign_in_impersonate.xml')
SIGN_IN_ERROR_X... | 49.272 | 117 | 0.664069 |
3dbfa17a77ec527273235935d102cd0d8f5bcbb2 | 7,991 | py | Python | gym_flock/envs/old/flocking.py | katetolstaya/gym-flock | 3236d1dafcb1b9be0cf78b471672e8becb2d37af | [
"MIT"
] | 19 | 2019-07-29T22:19:58.000Z | 2022-01-27T04:38:38.000Z | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | null | null | null | gym_flock/envs/old/flocking.py | henghenghahei849/gym-flock | b09bdfbbe4a96fe052958d1f9e1e9dd314f58419 | [
"MIT"
] | 5 | 2019-10-03T14:44:49.000Z | 2021-12-09T20:39:39.000Z | import gym
from gym import spaces, error, utils
from gym.utils import seeding
import numpy as np
import configparser
from os import path
import matplotlib.pyplot as plt
from matplotlib.pyplot import gca
font = {'family': 'sans-serif',
'weight': 'bold',
'size': 14}
| 36.99537 | 134 | 0.585659 |
3dc00d2a0bc2efe282c87c91e5370202da55e278 | 3,010 | py | Python | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | 8 | 2021-05-20T18:39:35.000Z | 2022-02-25T23:24:21.000Z | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | dod-advana/gamechanger-crawlers | e0113111a39f78bd13f70fa4b3359a688f7dc6e8 | [
"MIT"
] | 4 | 2021-06-14T13:46:46.000Z | 2022-03-02T02:01:49.000Z | dataPipelines/gc_scrapy/gc_scrapy/spiders/army_reserve_spider.py | ekmixon/gamechanger-crawlers | 60a0cf20338fb3dc134eec117bccd519cede9288 | [
"MIT"
] | 4 | 2021-06-30T22:18:52.000Z | 2021-11-17T22:43:27.000Z | import scrapy
import re
from urllib.parse import urljoin, urlencode, parse_qs
from dataPipelines.gc_scrapy.gc_scrapy.items import DocItem
from dataPipelines.gc_scrapy.gc_scrapy.GCSpider import GCSpider
type_and_num_regex = re.compile(r"([a-zA-Z].*) (\d.*)")
| 34.597701 | 94 | 0.571429 |
3dc01664c6a8e4d90955ec90294ebb0c1cb73629 | 4,036 | py | Python | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | lbrynet/daemon/Publisher.py | Invariant-Change/lbry | 2ddd6b051d4457f0d747428e3d97aa37839f3c93 | [
"MIT"
] | null | null | null | import logging
import mimetypes
import os
from twisted.internet import defer
from lbrynet.core import file_utils
from lbrynet.file_manager.EncryptedFileCreator import create_lbry_file
log = logging.getLogger(__name__)
| 51.088608 | 117 | 0.631318 |
3dc0b7210fc8b7d9ca8c5c2087a4723a81de890a | 10,498 | py | Python | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 27 | 2021-04-28T04:51:02.000Z | 2022-03-04T08:57:03.000Z | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 4 | 2021-10-30T13:28:33.000Z | 2022-02-19T01:09:47.000Z | SAMPNet/train.py | bcmi/Image-Composition-Assessment-with-SAMP | 35c093bafdaaa98923d8ba093a73ddf0079ffbc9 | [
"MIT"
] | 3 | 2021-10-30T10:18:02.000Z | 2022-01-16T08:44:43.000Z | import sys,os
from torch.autograd import Variable
import torch.optim as optim
from tensorboardX import SummaryWriter
import torch
import time
import shutil
from torch.utils.data import DataLoader
import csv
from samp_net import EMDLoss, AttributeLoss, SAMPNet
from config import Config
from cadb_dataset import CADBData... | 40.689922 | 130 | 0.561155 |
3dc12e0ce591217b149c51e1d38a5ca5547d4627 | 3,282 | py | Python | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | combine_layer.py | Lynton-Morgan/combine_layer | 93b83ed69b8201db69fff80e60e8cb2955b40cd1 | [
"MIT"
] | null | null | null | import keras
import keras.backend as K
| 33.151515 | 109 | 0.59415 |
3dc274928408de034cf930f3d624022d965d5166 | 4,308 | py | Python | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 12 | 2021-05-20T12:49:52.000Z | 2022-01-12T02:15:33.000Z | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 14 | 2021-05-25T09:28:33.000Z | 2021-09-10T07:54:45.000Z | src/pystage/core/_sound.py | pystage/pystage | 4a76e95f6de2df59736de17fe81219485fde1556 | [
"MIT"
] | 3 | 2021-05-25T12:58:36.000Z | 2022-02-18T04:19:21.000Z | import pygame
from pygame.mixer import music
from pystage.core.assets import SoundManager
from pystage.core._base_sprite import BaseSprite
import time
| 35.02439 | 92 | 0.668524 |
3dc364b351e4b86533cd7ac27b461f7ca088a0a9 | 2,126 | py | Python | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | 1 | 2015-09-09T08:48:03.000Z | 2015-09-09T08:48:03.000Z | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | null | null | null | tests/test_runner/test_discover_runner.py | tomleo/django | ebfb71c64a786620947c9d598fd1ebae2958acff | [
"BSD-3-Clause"
] | 1 | 2020-04-12T19:00:12.000Z | 2020-04-12T19:00:12.000Z | from django.test import TestCase
from django.test.runner import DiscoverRunner
| 30.811594 | 83 | 0.676388 |
3dc48feaabd6085099581154d9df3a8f76e956ee | 1,265 | py | Python | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/rbac/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Basic permissions module."""
from sqlalchemy import or_
def context_query_filter(context_column, contexts):
'''
Intended for use by `model.query.filter(...)`
If `contexts == None`, it's Admin (n... | 25.816327 | 78 | 0.67747 |
3dc61360e96fb602ab782fcc77e9987334f638a2 | 2,075 | py | Python | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | null | null | null | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | null | null | null | buildingspy/examples/dymola/plotResult.py | Mathadon/BuildingsPy | 9b27c6f3c0e2c185d03b846de18ec818a1f10d95 | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-02-16T14:04:15.000Z | 2022-02-16T14:04:15.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# import from future to make Python2 behave like Python3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from future import standard_library
standard_library.install_alias... | 27.302632 | 71 | 0.620723 |
3dc696f09fb0ebe8bc4f7011c19473f98ca4f506 | 335 | py | Python | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | tango_with_django_project/rango/admin.py | DADDYKIKI/tango_with_django_project | da2bbb0b7fd2d587c9af4c7ac14068678b2c38cf | [
"MIT"
] | null | null | null | from django.contrib import admin
from rango.models import Category, Page
admin.site.register(Page)
admin.site.register(Category)
| 22.333333 | 45 | 0.668657 |
3dc6d3255aa8efde45efdc9453d22aa71f26740f | 1,334 | py | Python | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 35 | 2015-03-07T13:30:58.000Z | 2022-02-14T11:44:48.000Z | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 101 | 2015-03-18T03:07:57.000Z | 2019-02-07T12:06:42.000Z | components/python/scripts/bootstrap_validate.py | cloudify-cosmo/cloudify-manager-blueprints | 1908c1a0615fb15cbb118335aa2f9e055b9e5779 | [
"Apache-2.0"
] | 76 | 2015-01-08T10:33:03.000Z | 2021-05-11T08:45:50.000Z | #!/usr/bin/env python
from os.path import join, dirname
from cloudify import ctx
ctx.download_resource(
join('components', 'utils.py'),
join(dirname(__file__), 'utils.py'))
import utils # NOQA
# Most images already ship with the following packages:
#
# python-setuptools
# python-backports
# python-b... | 31.761905 | 73 | 0.709145 |
3dc72f281f6a609f6178afd5c15a1c8b5b592cd3 | 278 | py | Python | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 3 | 2022-03-08T19:02:41.000Z | 2022-03-16T23:04:37.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | 5 | 2022-03-17T02:16:52.000Z | 2022-03-18T02:55:25.000Z | subdomains/gen_master_data.py | sjy5386/subshorts | d8170ee4a66989c3e852f86aa83bab6341e3aa10 | [
"MIT"
] | null | null | null | from .models import ReservedName
| 34.75 | 116 | 0.647482 |
3dc7b5b71b827c183978d2d97338bcdc701937fb | 5,180 | py | Python | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | null | null | null | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | null | null | null | promort_tools/converters/zarr_to_tiledb.py | mdrio/promort_tools | 26f1b96b27046b0480872dcf17b3be057660a51d | [
"MIT"
] | 2 | 2021-05-24T16:04:55.000Z | 2021-09-16T13:58:48.000Z | # Copyright (c) 2021, CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, publish, distribu... | 43.166667 | 107 | 0.663127 |
3dc7bf9b590e7454e8a84ae7d5b2f66655fcd2d8 | 9,121 | py | Python | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | rxmarbles/theme/pencil.py | enbandari/rx-marbles | b95813b5e24818eee272ab7ecf0f130510e60f39 | [
"MIT"
] | null | null | null | from numpy.random import random
import random
root = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="... | 36.338645 | 559 | 0.621642 |
3dc93ff9707b2d135f50553fa063389f067d2b73 | 803 | py | Python | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 11,396 | 2017-09-07T04:56:02.000Z | 2022-03-31T13:56:17.000Z | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 11,046 | 2017-09-07T09:30:46.000Z | 2022-03-31T20:28:01.000Z | awx/main/migrations/0082_v360_webhook_http_method.py | Avinesh/awx | 6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf | [
"Apache-2.0"
] | 3,592 | 2017-09-07T04:14:31.000Z | 2022-03-31T23:53:09.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
| 30.884615 | 98 | 0.731009 |
3dca45f1cb27867b123a5f15fcfde334028fa3ca | 7,964 | py | Python | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | ogc_edr_lib/ogc_api_collection_metadata.py | eugenegesdisc/gmuedr | e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd | [
"MIT"
] | null | null | null | from typing import Tuple, Union
from aiohttp import web
from ogc_edr_lib.ogc_api import OgcApi
import logging
from ogc_edr_lib.ogc_api_collection_metadata_get_queries import (
OgcApiCollectionMetadataGetQueries)
from ogc_edr_lib.ogc_api_collection_metadata_list_data_items import (
OgcApiCollectionMetadataListD... | 63.206349 | 1,561 | 0.708815 |
3dca6b4523ea884f293c6a6b346cc8182bedf764 | 28 | py | Python | tunga/preprocessing/__init__.py | tahtaciburak/tunga | e71a4fa393d692779ab6d674673c5674d7287dac | [
"MIT"
] | 5 | 2020-07-31T19:26:46.000Z | 2020-10-23T11:49:06.000Z | tunga/preprocessing/__init__.py | tunga-ml/tunga | 823fd762054fd513300025cbb1fc799f7e3cf6b1 | [
"MIT"
] | null | null | null | tunga/preprocessing/__init__.py | tunga-ml/tunga | 823fd762054fd513300025cbb1fc799f7e3cf6b1 | [
"MIT"
] | 1 | 2021-09-10T08:24:13.000Z | 2021-09-10T08:24:13.000Z | from .normalization import * | 28 | 28 | 0.821429 |
3dccadbdd4f7bd09cd826b80f7957d192a7141e5 | 800 | py | Python | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 545 | 2019-04-23T12:54:21.000Z | 2022-03-28T07:59:43.000Z | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 109 | 2019-05-21T13:48:27.000Z | 2022-03-18T21:10:32.000Z | runtests.py | resurrexi/django-restql | 6a642a46ae597201214bdaeee5d9e92a62fa4616 | [
"MIT"
] | 44 | 2019-05-15T19:04:01.000Z | 2022-01-31T04:12:59.000Z | #!/usr/bin/env python
import os
import sys
import subprocess
from django.core.management import execute_from_command_line
FLAKE8_ARGS = ['django_restql', 'tests', 'setup.py', 'runtests.py']
WARNING_COLOR = '\033[93m'
END_COLOR = '\033[0m'
if __name__ == '__main__':
runtests()
| 22.857143 | 69 | 0.67375 |
3dccba1140ab8bafa4d46c818af6ac8d4201bac2 | 17,549 | py | Python | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | structured_tables/parser.py | CivicKnowledge/structured_tables | 836ff700f49be51d2a12b2daa3a5460a2fc2fc06 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2016 Civic Knowledge. This file is licensed under the terms of the
# Revised BSD License, included in this distribution as LICENSE
"""
Parser for the Simple Data Package format. The parser consists of several iterable generator
objects.
"""
NO_TERM = '<no_term>' # No parent term -- no '.' -- in ter... | 30.573171 | 108 | 0.570004 |
3dcde3d12d8ff748623472b864c1c6d69f5873ea | 1,462 | py | Python | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | angry-tony/ceph-lcm-decapod | 535944d3ee384c3a7c4af82f74041b0a7792433f | [
"Apache-2.0"
] | 41 | 2016-11-03T16:40:17.000Z | 2019-05-23T08:39:17.000Z | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | Mirantis/ceph-lcm | fad9bad0b94f2ef608362953583b10a54a841d24 | [
"Apache-2.0"
] | 30 | 2016-10-14T10:54:46.000Z | 2017-10-20T15:58:01.000Z | plugins/playbook/deploy_cluster/decapod_plugin_playbook_deploy_cluster/monitor_secret.py | angry-tony/ceph-lcm-decapod | 535944d3ee384c3a7c4af82f74041b0a7792433f | [
"Apache-2.0"
] | 28 | 2016-09-17T01:17:36.000Z | 2019-07-05T03:32:54.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Mirantis 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 ... | 25.649123 | 69 | 0.685363 |
3dce78da1f7ce43271310900e0dcc23b81e61a1a | 1,135 | py | Python | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | 6 | 2017-01-31T19:18:59.000Z | 2020-04-21T17:20:56.000Z | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | null | null | null | scripts/v1/03-collectAllModels.py | groppcw/CLDA | efd59d0dde38d6579366d195c3a0d4e6b1021af5 | [
"Apache-2.0"
] | 3 | 2017-09-20T21:18:36.000Z | 2020-07-29T10:00:30.000Z | # take a bunch of model_0 model_1 etc files and merge them alphabetically
from settings import *
# for each file, load the file into one giant list
# call sort on the list
# write this output somewhere else
for timestep in range(START_IDX,NUM_TIMES):
model = dict()
#Add the full vocabulary to the dictionary
... | 26.395349 | 81 | 0.639648 |
3dd07bf478788d856c11476ddb5329b455ea6168 | 5,428 | py | Python | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | 2 | 2021-05-25T16:17:25.000Z | 2021-07-16T06:30:27.000Z | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | null | null | null | controller/hopfields_registration_server.py | SIDN/p4-scion | 30fc42ac3672a2d862e5537f6990c87ef3c21860 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2021, SIDN Labs
# 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
# list of conditions and the fol... | 40.507463 | 147 | 0.680545 |
3dd1773f50f2af84354e0431bf0e4276687f173e | 3,401 | py | Python | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Server/Python/src/dbs/dao/Oracle/MigrationBlock/Update.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | #!/usr/bin/env python
"""
This module provides Migration.Update data access object.
"""
from WMCore.Database.DBFormatter import DBFormatter
from dbs.utils.dbsExceptionHandler import dbsExceptionHandler
from dbs.utils.DBSDaoTools import create_token_generator
| 46.589041 | 165 | 0.614231 |
3dd18ca1ce7d02c28f4d50d91ff399eaea978a1f | 3,636 | py | Python | cldfbench_lapollaqiang.py | cldf-datasets/lapollaqiang | 40bcba31a65b675a15d2dcac5fae7901619162fc | [
"CC-BY-4.0"
] | null | null | null | cldfbench_lapollaqiang.py | cldf-datasets/lapollaqiang | 40bcba31a65b675a15d2dcac5fae7901619162fc | [
"CC-BY-4.0"
] | 2 | 2020-04-18T10:57:21.000Z | 2020-04-18T12:16:03.000Z | cldfbench_lapollaqiang.py | cldf-datasets/lapollaqiang | 40bcba31a65b675a15d2dcac5fae7901619162fc | [
"CC-BY-4.0"
] | null | null | null | import re
import pathlib
from clldutils.text import strip_chars
from cldfbench import Dataset as BaseDataset
from cldfbench import CLDFSpec
QUOTES = ''
| 33.054545 | 97 | 0.55033 |
3dd25490c9540bd331008a56be6c0ffa65b4b3b0 | 1,752 | py | Python | simple-zero-width-chars-encoder-and-decoder/encoder.py | MihaiAC/Other-Projects | 2ce3b4dbc0edf79124fee929c63a698efbbbf123 | [
"MIT"
] | null | null | null | simple-zero-width-chars-encoder-and-decoder/encoder.py | MihaiAC/Other-Projects | 2ce3b4dbc0edf79124fee929c63a698efbbbf123 | [
"MIT"
] | null | null | null | simple-zero-width-chars-encoder-and-decoder/encoder.py | MihaiAC/Other-Projects | 2ce3b4dbc0edf79124fee929c63a698efbbbf123 | [
"MIT"
] | null | null | null | import sys
import os
args = sys.argv
from_file_path = args[1]
to_file_path = args[2]
word_to_hide = args[3]
if(os.path.isfile(from_file_path) and len(word_to_hide) > 0):
# Read input from file.
f = open(from_file_path,'r')
content = f.read()
f.close()
# Encode the word.
ls = convert_word... | 30.206897 | 98 | 0.622717 |
3dd2a3424b490a95eadbcb0285fa8becc7dbdcc5 | 280 | py | Python | setup.py | lambdaofgod/HOTT | 74ec33dae7ba9f9d382384c6bd2c97b5557f6eea | [
"MIT"
] | null | null | null | setup.py | lambdaofgod/HOTT | 74ec33dae7ba9f9d382384c6bd2c97b5557f6eea | [
"MIT"
] | null | null | null | setup.py | lambdaofgod/HOTT | 74ec33dae7ba9f9d382384c6bd2c97b5557f6eea | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name='HOTT',
version='0.1',
url='https://github.com/lambdaofgod/HOTT',
packages=find_packages(),
install_requires=requirements
)
| 20 | 46 | 0.692857 |
3dd4772c1009f05a2da5ab89f95cb164ef80a08f | 736 | py | Python | setup.py | mdmix4/pymdmix-run | 2c3fdeca39f02429ab0040491e2ad016de210795 | [
"MIT"
] | null | null | null | setup.py | mdmix4/pymdmix-run | 2c3fdeca39f02429ab0040491e2ad016de210795 | [
"MIT"
] | null | null | null | setup.py | mdmix4/pymdmix-run | 2c3fdeca39f02429ab0040491e2ad016de210795 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup
setup(
python_requires=">=3.8",
name="pymdmix-run",
version=getVersion(),
license="MIT",
description="pymdmix plugin for command interpreter",
author="ggutierrez-bio",
author_email="",
url="https://github.com/ggutierrez-bio/mdmix4/... | 23 | 63 | 0.65625 |
3dd4a8f967bc41b59fc8f2382ab1f0506c71e247 | 4,340 | py | Python | aether/forum/forms.py | katajakasa/aetherguild4 | a7e294f0cff11e2508751f1013e6648fdc56bb94 | [
"MIT"
] | null | null | null | aether/forum/forms.py | katajakasa/aetherguild4 | a7e294f0cff11e2508751f1013e6648fdc56bb94 | [
"MIT"
] | 1 | 2021-06-10T17:36:11.000Z | 2021-06-10T17:36:11.000Z | aether/forum/forms.py | katajakasa/aetherguild4 | a7e294f0cff11e2508751f1013e6648fdc56bb94 | [
"MIT"
] | null | null | null | from django.forms import Form, ModelForm, CharField, Textarea
from django.db import transaction
from django.utils.translation import gettext_lazy as _
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from .models import ForumPost, ForumThread, ForumBoard, ForumPostEdit
| 32.631579 | 81 | 0.621429 |
3dd4b115a1efae712e7d58d8046528f7acbf782b | 1,467 | py | Python | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | 11 | 2018-04-17T01:41:11.000Z | 2020-12-11T05:43:21.000Z | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | null | null | null | for_straight_forward_relion/read_star_del_metadata_param.py | homurachan/Block-based-recontruction | b3fc02a0648db6aaa5d77dcc4b8e10f3361d66f4 | [
"WTFPL"
] | 3 | 2019-08-23T07:48:50.000Z | 2020-12-08T07:31:41.000Z | #!/usr/bin/env python
import math,os,sys
try:
from optparse import OptionParser
except:
from optik import OptionParser
if __name__== "__main__":
main()
| 22.227273 | 59 | 0.632584 |
3dd4c39c91d920a780223d1076fe94897deaabd0 | 2,639 | py | Python | python/GafferUI/ProgressBar.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | python/GafferUI/ProgressBar.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | python/GafferUI/ProgressBar.py | cwmartin/gaffer | 1f8a0f75522105c9d5efefac6d55cb61c1038909 | [
"BSD-3-Clause"
] | null | null | null | ##########################################################################
#
# Copyright (c) 2011-2012, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redi... | 33.833333 | 77 | 0.675256 |
3dd4de6bb7f825300faccd73e718c78bb7dd3d78 | 18,444 | py | Python | minihack/agent/rllib/models.py | samvelyan/minihack-1 | 441eba33ba0d240b98aeabe1ff7a0c0b33cd236c | [
"Apache-2.0"
] | 1 | 2021-11-19T01:51:38.000Z | 2021-11-19T01:51:38.000Z | minihack/agent/rllib/models.py | samvelyan/minihack-1 | 441eba33ba0d240b98aeabe1ff7a0c0b33cd236c | [
"Apache-2.0"
] | null | null | null | minihack/agent/rllib/models.py | samvelyan/minihack-1 | 441eba33ba0d240b98aeabe1ff7a0c0b33cd236c | [
"Apache-2.0"
] | 1 | 2021-11-17T15:45:02.000Z | 2021-11-17T15:45:02.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 ... | 33.966851 | 79 | 0.559803 |
3dd4f4c9b22e44b3e89f6ae2ccad38e595e93b8d | 1,149 | py | Python | old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py | ali493/pyro | 1245340077a733e2ab35765eae783b358d2f3af9 | [
"MIT"
] | null | null | null | old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py | ali493/pyro | 1245340077a733e2ab35765eae783b358d2f3af9 | [
"MIT"
] | null | null | null | old/projects/6.884/hybrid_twolinkmanipulator_with_GreedyFeatures.py | ali493/pyro | 1245340077a733e2ab35765eae783b358d2f3af9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 23 12:50:34 2016
@author: alex
"""
from AlexRobotics.dynamic import Manipulator as M
from AlexRobotics.dynamic import Hybrid_Manipulator as HM
from AlexRobotics.control import DPO_features as DPO
import numpy as np
# Define dynamic system
R = HM.Hy... | 24.978261 | 85 | 0.598782 |