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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3c3ec76a20176afe22ba2e37b489b70bdc6e8aa | 20,109 | py | Python | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | coveord/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | 4 | 2015-01-13T00:27:20.000Z | 2015-01-19T21:21:18.000Z | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | Coveo/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | null | null | null | AwesomeService/coveo-blitz-thrift/src/main/python/awesome/AwesomeService.py | Coveo/Blitz-2015 | 9d8a0fbc3b4ca7cfdce9a3aea0efec205070e946 | [
"Apache-2.0"
] | 1 | 2016-03-11T18:35:02.000Z | 2016-03-11T18:35:02.000Z | #
# Autogenerated by Thrift Compiler (0.9.2)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import TTransport
... | 28.892241 | 188 | 0.675369 |
e3c455dcd759b47e6ff022d0f28b6d8b03f6c49a | 10,382 | py | Python | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | src/org_setup/resources/organizations.py | gilyas/aws-control-tower-org-setup-sample | 65c1a1a0c7b7bb362dff1924f38f63bd8c3a8e41 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*
* 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... | 37.345324 | 119 | 0.573974 |
e3c4a465fcdd23d8bc979d0237347d3db4337947 | 2,095 | py | Python | clint/textui/core.py | mpmman/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 1,230 | 2015-01-03T05:39:25.000Z | 2020-02-18T12:36:03.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 50 | 2015-01-06T17:58:20.000Z | 2018-03-19T13:25:22.000Z | clint/textui/core.py | not-kennethreitz/clint | 9d3693d644b8587d985972b6075d970096f6439e | [
"0BSD"
] | 153 | 2015-01-03T03:56:25.000Z | 2020-02-13T20:59:03.000Z | # -*- coding: utf-8 -*-
"""
clint.textui.core
~~~~~~~~~~~~~~~~~
Core TextUI functionality for Puts/Indent/Writer.
"""
from __future__ import absolute_import
import sys
from contextlib import contextmanager
from .formatters import max_width, min_width, _get_max_width_context
from .cols import columns
from ..util... | 21.822917 | 74 | 0.602864 |
e3c6cfd741e8bd9adaeac0bf0d16ec2396131aa6 | 636 | py | Python | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | null | null | null | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | null | null | null | setup.py | mluciarr/McComplex | e83b5d11ab772a6bdc6233d318f7da5f67b3c5ce | [
"MIT"
] | 1 | 2021-04-14T22:43:33.000Z | 2021-04-14T22:43:33.000Z | #!/usr/bin/env python
from distutils.core import setup
import setuptools
setup(name='McComplex',
version='1.0',
description="""This program reconstructs macrocomplexes of protein-protein
and protein-(DNA/RNA) from a list of files of binary interactions of its chains""",
author='Maria Luca Romero, Ferran Pegenau... | 37.411765 | 84 | 0.748428 |
e3c83e726d786e7b9f87a1f14f06ff2aa47d4a9b | 1,277 | py | Python | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | pymitools/girder/metadataPresets.py | chapmanbe/pymitools | be0f4a3f56dd6c8bb89678368c49e09b3333232c | [
"Apache-2.0"
] | null | null | null | """Metadata presets for commonly used keywords."""
presets = {
chest : {"Anatomical Region":
{"ID": "0001443",
"Name": "chest",
"Ontology Acronym": "UBERON",
"Ontology Name": "Uber Anatomy Ontology",
"Resource URL":
"http://pur... | 29.697674 | 66 | 0.473767 |
e3c99e6c753a7603c000c4cebf8d2e0f312189b5 | 901 | py | Python | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | 1 | 2021-04-23T13:33:16.000Z | 2021-04-23T13:33:16.000Z | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | data/colors-extractor.py | imlolman/Flat-UI-Colors-Chrome-App | d12010360dfeb1d38e8923dbe0fa5c51640b7314 | [
"BSD-Source-Code"
] | null | null | null | from bs4 import BeautifulSoup
import json
source = open('html-source.html', encoding="utf8").read()
soup = BeautifulSoup(source, 'html.parser')
# Prittified to look and understand the structure of Code
# prittified = soup.prettify().encode("utf-8")
# open('prettified.html', 'wb').write(prittified)
color_sets = []
... | 32.178571 | 71 | 0.627081 |
e3ca5e822898bbe283aa33628cdf89af94b959cf | 2,005 | py | Python | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | preprocessing.py | Y-greatigr/Covid19_Model | 30fc0af1ac6c7f68bf072607ee0db194f8c8093a | [
"MIT"
] | null | null | null | # .
# .
import numpy as np
import os
import options as opt
import datetime
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import Normalizer
import joblib
if __name__ == "__main__":
#
data = load()
# x, y
x, y = labeling(data, sight=opt.SIG... | 28.642857 | 98 | 0.551122 |
e3cac54ed59276bd1cf21b47cfa19280c29a0b7c | 20,168 | py | Python | colorpy/colorpy-0.1.0/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | 1 | 2020-11-06T18:16:00.000Z | 2020-11-06T18:16:00.000Z | colorpy/colorpy-0.1.1/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | null | null | null | colorpy/colorpy-0.1.1/illuminants.py | gmweir/QuasiOptics | 0974178984f845597c5209217613c26edf931ed0 | [
"MIT"
] | null | null | null | '''
illuminants.py - Definitions of some standard illuminants.
Description:
Illuminants are spectrums, normalized so that Y = 1.0.
Spectrums are 2D numpy arrays, with one row for each wavelength,
with the first column holding the wavelength in nm, and the
second column the intensity.
The spectrums have a wavelength... | 27.741403 | 106 | 0.555881 |
e3cb6664659c1efec8fe41651c43927d133e5bf2 | 10,046 | py | Python | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | tests/unit/test_functions.py | noahsa/scikit-hts | db067f416172d18f7d0127150c45419883260d54 | [
"MIT"
] | null | null | null | import numpy
import pandas
import hts.hierarchy
from hts.functions import (
_create_bl_str_col,
get_agg_series,
get_hierarchichal_df,
to_sum_mat,
)
| 31.993631 | 86 | 0.429723 |
e3cbbca95424c00d63673acba3c061a2db999558 | 644 | py | Python | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | 2 | 2016-03-22T15:31:38.000Z | 2016-04-05T08:59:39.000Z | tests/settings.py | team23/django_t10e | f25e8ac6507e05968d2dbf1003ec4cb9f35b627e | [
"BSD-3-Clause"
] | null | null | null | import os
import warnings
warnings.simplefilter('always')
test_dir = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'NAME': os.path.join(test_dir, 'db.sqlite'),
'ENGINE': 'django.db.backends.sqlite3',
},
}
USE_I18N = True
USE_L10N = True
INSTALLED_APPS = [
'django.... | 16.512821 | 62 | 0.669255 |
e3cc45c059a23522906c2bbff40ce8bfec753ce5 | 3,101 | py | Python | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | 2 | 2020-05-08T02:17:17.000Z | 2020-05-17T04:55:56.000Z | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | medium/380-Insert Delete GetRandom O(1).py | Davidxswang/leetcode | d554b7f5228f14c646f726ddb91014a612673e06 | [
"Apache-2.0"
] | null | null | null | """
https://leetcode.com/problems/insert-delete-getrandom-o1/
Implement the RandomizedSet class:
bool insert(int val) Inserts an item val into the set if not present. Returns true if the item was not present, false otherwise.
bool remove(int val) Removes an item val from the set if present. Returns true if the item w... | 35.643678 | 215 | 0.660755 |
e3cd17e1ce16cc51bbf2c4408a071cf80ad1dcea | 851 | py | Python | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | 2 | 2019-11-15T19:15:36.000Z | 2022-03-14T12:53:18.000Z | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | src/main/generic_cpu/test3/generic_cpu.py | cicerone/kosim | a9f718a19019c11fd6e6c6fc0164d4d214bbb5e2 | [
"BSL-1.0"
] | null | null | null | #!/usr/bin/env python
#==============================================================================================
# Copyright (c) 2009 Kotys LLC. Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
# Author: Ciceron... | 31.518519 | 95 | 0.551116 |
e3cfcef261416f1b7213e8dce2b540fc137ab1f5 | 7,491 | py | Python | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | 2 | 2021-01-01T17:34:02.000Z | 2021-01-07T13:23:00.000Z | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | smartools/patches/sheets.py | davocarli/smartools | 57e6233efe8da6b34557f99e8d7c24eef77cfd9d | [
"MIT"
] | null | null | null | import smartsheet
# from smartsheet.smartsheet import fresh_operation
from .__smartools import SmartoolsObject, access_levels, RequirementError
from .typed_list import SmartoolsTypedList
smart = smartsheet.Smartsheet("INIT")
smart.Sheets
# Perform Monkey Patch
smartsheet.sheets.Sheets = SmartoolsSheets
smartsheet.mod... | 34.84186 | 165 | 0.707916 |
e3cfd1eba8567bcfd38dbc01b741198461b5c024 | 3,119 | py | Python | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 6 | 2020-08-09T23:41:08.000Z | 2021-03-16T22:05:40.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 1 | 2020-10-02T02:59:38.000Z | 2020-10-02T02:59:38.000Z | modules/persons/application/controllers/v1/phone/create_phone_controller.py | eduardolujan/hexagonal_architecture_django | 8055927cb460bc40f3a2651c01a9d1da696177e8 | [
"BSD-3-Clause"
] | 2 | 2021-03-16T22:05:43.000Z | 2021-04-30T06:35:25.000Z | # -*- coding: utf-8 -*-
# Infra
from modules.shared.infrastructure.log import LoggerDecorator, PyLoggerService
# Application
from modules.persons.application.create import PhoneCreator
from modules.persons.application.create.command import CreatePhoneCommand
# Domain
from modules.shared.domain.http import status as h... | 36.267442 | 83 | 0.631613 |
e3cfd93cdd0841ab2b66bf374189846ddaaf186d | 5,651 | py | Python | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 5 | 2020-05-12T22:00:16.000Z | 2021-11-08T22:16:11.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 24 | 2019-09-26T23:20:11.000Z | 2022-01-14T14:19:14.000Z | tests/test_dispatch_sparql_query_model_catalog.py | KnowledgeCaptureAndDiscovery/OBA_sparql | 9c1c28902ab3d6561b3b6a0f8a7d284688d86326 | [
"Apache-2.0"
] | 1 | 2021-12-01T14:56:09.000Z | 2021-12-01T14:56:09.000Z | import json
import logging
import unittest
from typing import Dict
from SPARQLWrapper import JSONLD
from obasparql.query_manager import QueryManager, QUERIES_TYPES, QUERY_TYPE_GET_ONE_USER
from obasparql.utils import generate_uri
from tests.settings import *
logger = logging.getLogger('testing')
graph_user = generat... | 36.694805 | 463 | 0.585914 |
e3d014948574aa9afc4263cc074b784b2bb1665c | 1,538 | py | Python | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 6 | 2019-03-20T15:15:31.000Z | 2022-02-23T20:11:24.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 1 | 2021-11-20T00:25:48.000Z | 2021-11-20T00:25:48.000Z | cogs/ObjectCache.py | Deivedux/Shiramine | bbaf651a4ccd5f65c8aef1eb09ba8899bb2958db | [
"MIT"
] | 8 | 2019-11-22T05:56:40.000Z | 2021-12-04T17:38:38.000Z | import time
import json
import sqlite3
import os
conn = sqlite3.connect('configs/Database.db')
c = conn.cursor()
start_time = time.time()
with open('configs/config.json') as json_data:
config = json.load(json_data)
server_config_raw = c.execute("SELECT * FROM ServerConfig").fetchall()
server_config = {}
for i in ... | 27.464286 | 80 | 0.737321 |
e3d079b0ac366654644d7bfe8c3c51abdf0bef18 | 308 | py | Python | Afvaldienst/__init__.py | xirixiz/python-afvalwijzer-afvalstoffendienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | 1 | 2019-10-28T12:26:14.000Z | 2019-10-28T12:26:14.000Z | Afvaldienst/__init__.py | xirixiz/afvaldienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | 3 | 2020-09-11T08:38:50.000Z | 2020-09-23T07:08:44.000Z | Afvaldienst/__init__.py | xirixiz/python-afvalwijzer-afvalstoffendienst | ef76b07033848a6f7092e941c6c4a3ec214f2842 | [
"MIT"
] | null | null | null | __author__ = 'Bram van Dartel - xirixiz'
__author_email__ = 'spam@rootrulez.com'
__license__ = 'MIT'
__maintainer_email__ = 'spam@rootrulez.com'
__url__ = 'https://github.com/xirixiz/afvaldienst',
__version__ = '1.1.4'
from .Afvaldienst import Afvaldienst
from .AfvaldienstScraper import AfvaldienstScraper
| 30.8 | 51 | 0.788961 |
e3d0ea8dfddd487de8fd53ee32a9b4f750e83af2 | 4,749 | py | Python | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | 1 | 2022-02-06T08:21:56.000Z | 2022-02-06T15:48:26.000Z | src/python_lib_for_me/date.py | silverag-corgi/python-lib-for-me | ed30c7b879396ca6af53c762d7c919b0ea44bea7 | [
"MIT"
] | null | null | null | '''
'''
import calendar
from datetime import date, datetime, timedelta
from typing import Iterator
from zoneinfo import ZoneInfo
from dateutil.relativedelta import relativedelta
def get_first_date_of_this_month(base_date: date) -> date:
'''
Args:
base_date (date):
... | 24.863874 | 90 | 0.606443 |
e3d1710232166bf85532195c15df881b2381f79f | 267 | py | Python | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 5 | 2021-09-04T05:02:59.000Z | 2021-09-30T18:23:42.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 14 | 2021-09-07T15:17:27.000Z | 2021-10-08T01:09:41.000Z | tpi/main.py | karajan1001/tpi | c7259a8fea023797058deaf487700645df5fe210 | [
"Apache-2.0"
] | 6 | 2021-09-06T08:52:04.000Z | 2022-02-07T21:43:48.000Z | import argparse
import logging
log = logging.getLogger(__name__)
| 16.6875 | 48 | 0.715356 |
e3d176bb8a4ef4588c81f92f7a9d84251d18fd27 | 2,948 | py | Python | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | catkin_ws/src/easter_egg_hunt/scripts/waypoint_states.py | pdscraml/bunny-hunter | 7d6951f5cbcc46ec31c8b17dc66a6297cc4d7536 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Intro to Robotics - EE5900 - Spring 2017
# Final Project
# Philip (Team Lead)
# Ian
# Akhil
#
# Revision: v1.2
# imports
import rospy
import smach
import smach_ros
import time
import actionlib
from easter_egg_hunt.srv import EnableDiscovery
from m... | 33.123596 | 142 | 0.684871 |
e3d20c80e3fd93f5b987a741bdb20323be97f451 | 209 | py | Python | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | null | null | null | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | 1 | 2021-03-10T10:17:52.000Z | 2021-03-10T10:17:52.000Z | templates/hello/views.py | cesarau04/python-react-webapp | 305f69693313065a9ebbe116a34fd27111c86851 | [
"0BSD"
] | null | null | null | from flask import render_template, Blueprint
hello_blueprint = Blueprint('hello', __name__)
| 23.222222 | 46 | 0.760766 |
e3d2b660c79791266d30c8a38f66f8ca7ec0c0c0 | 682 | py | Python | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | project/api/views.py | akxen/pyomo-drf-docker | 9299561e61ce0cc6b40968e078aea84bded1228b | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from .serializers import ModelDataSerializer
from .optimisation.model import run_model
| 31 | 78 | 0.758065 |
e3d5b6ff47680e0205ffd2a767cb7c6b5cf84622 | 1,456 | py | Python | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 2 | 2018-10-03T16:58:57.000Z | 2021-10-04T22:10:48.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 195 | 2019-06-26T17:56:33.000Z | 2022-03-30T20:46:05.000Z | icees_api/features/qgraph_utils.py | xu-hao/ddcr-api | f69c80a84d413078bd36985b6579d2bc32329b8f | [
"MIT"
] | 5 | 2018-09-10T19:45:29.000Z | 2020-10-26T17:59:05.000Z | """Query graph utilities."""
import re
from bmt import Toolkit
BMT = Toolkit()
def get_subcategories(category):
"""Get sub-categories, according to the Biolink model."""
return [
descendant.replace("_", "")
for descendant in BMT.get_descendants(category, formatted=True, reflexive=True)
]... | 30.333333 | 87 | 0.632555 |
e3d5f08a740b483f1653463909ea2ce9beb6acde | 3,493 | py | Python | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | toy-evolve/weno.py | IanHawke/toy-evolve | a1490327dd19492e2c0bb0d9c6909abe8b167135 | [
"MIT"
] | null | null | null | import numpy
C_3 = numpy.array([1, 2]) / 3
a_3 = numpy.array([[3, -1], [1, 1]]) / 2
sigma_3 = numpy.array([[[1, 0], [-2, 1]], [[1, 0], [-2, 1]]])
C_5 = numpy.array([1, 6, 3]) / 10
a_5 = numpy.array([[11, -7, 2], [2, 5, -1], [-1, 5, 2]]) / 6
sigma_5 = numpy.array([[[40, 0, 0],
[-124, 100, 0],
... | 32.342593 | 80 | 0.488405 |
e3d6ee49185d1368971f9d3c026c6acc53822813 | 2,832 | py | Python | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 11 | 2020-12-28T16:22:33.000Z | 2021-11-14T17:09:27.000Z | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | null | null | null | tests/test_optimize.py | ricosjp/siml | 8fc07d798cdedd77622c16221ee44a575d36bad0 | [
"Apache-2.0"
] | 2 | 2021-04-28T09:41:47.000Z | 2021-07-01T21:18:51.000Z | from pathlib import Path
import shutil
import unittest
import numpy as np
import siml.optimize as optimize
import siml.setting as setting
| 35.848101 | 77 | 0.611935 |
e3d7620b8331f1df9da2a2562c6b4d96e926fba0 | 1,773 | py | Python | demo.py | natekspencer/vivintpy | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 3 | 2022-02-10T14:08:59.000Z | 2022-03-30T18:55:25.000Z | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | null | null | null | demo.py | natekspencer/pyvivint | ea65b05871b3f13326ba370112357a6696793bf6 | [
"MIT"
] | 2 | 2021-10-31T01:43:26.000Z | 2021-11-21T13:33:55.000Z | import asyncio
import logging
import os
import pubnub
from vivintpy.account import Account
from vivintpy.devices import VivintDevice
from vivintpy.devices.camera import MOTION_DETECTED, Camera
from vivintpy.exceptions import VivintSkyApiMfaRequiredError
pubnub.set_stream_logger(name="pubnub", level=logging.ERROR)
... | 31.105263 | 87 | 0.648054 |
e3db1939642019da218fde1bd068b8be2f4606ff | 3,811 | py | Python | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | qanda/views.py | Fnechz/StakeOverflow-Clone | 7f17bdb80ebc23a2a5210eb31db6121c5d41e70c | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http.response import HttpResponseRedirect, HttpResponseBadRequest
from django.urls.base import reverse
from django.utils import timezone
from django.views.generic import (
CreateView,
DayArchiveView,
DetailView,
RedirectView,
Templ... | 26.282759 | 78 | 0.708738 |
e3ddafddccd1aee845e95e14e1da8e8b355c53a4 | 92,214 | py | Python | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | 7 | 2022-02-16T12:46:33.000Z | 2022-03-30T15:58:45.000Z | incubator/bootstrap_cli/__main__.py | cognitedata/inso-bootstrap-cli | d2ed0e575703acc7af2a11212357b6fd439f5279 | [
"Apache-2.0"
] | null | null | null | # 888 888
# 888 888
# 888 888
# .d8888b 88888b. 8888b. 88888b. .d88b. .d88b. 888 .d88b. .d88b.
# d88P" 888 "88b "88b 888 "88b d88P"88b d8P Y8b 888 d88... | 42.241869 | 134 | 0.560934 |
e3e011a21c49b5509fea872c5fc1398a8616f542 | 4,440 | py | Python | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | pyhcl/passes/expand_memory.py | raybdzhou/PyChip-py-hcl | 08edc6ad4d2978eb417482f6f92678f8f9a1e3c7 | [
"MIT"
] | null | null | null | from typing import List, Dict
from pyhcl.ir.low_ir import *
from pyhcl.ir.low_prim import *
from pyhcl.passes._pass import Pass
from pyhcl.passes.utils import get_binary_width
DEFAULT_READ_LATENCY = 0
DEFAULT_WRITE_LATENCY = 1 | 45.773196 | 156 | 0.533333 |
e3e0c634baf400be713a2f06ce7ace7a4e212de8 | 2,071 | py | Python | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | ClydeLog.py | bnadeau/open-test-jig | 99891aa96740eac267352d76a45b9dd5e1f55e0e | [
"Apache-2.0"
] | null | null | null | import logging
import time
import os
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
format = "%(asctime)s %(levelname)-10s %(message)s"
id = time.strftime("%Y%m%d-%H%M%S")
#These are the sequences need to get colored ouput
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
COLORS ... | 27.25 | 84 | 0.713182 |
e3e15e7f00bea2796ee5bd52b11a09a192eae24f | 4,485 | py | Python | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 974 | 2015-01-01T08:37:37.000Z | 2022-03-29T16:41:11.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 45 | 2015-05-04T15:57:26.000Z | 2022-03-22T14:40:24.000Z | private_market/test.py | sigmoid3/Dapper | 469ddca6de3b5e977bcba05de57b9e07bf46dd13 | [
"MIT"
] | 414 | 2015-01-05T14:43:01.000Z | 2022-03-28T18:30:58.000Z | from ethereum import tester as t
from ethereum import utils
if __name__ == '__main__':
test()
| 50.965909 | 85 | 0.716611 |
e3e284f2bcaf4183ceaa0d76915531a74b397b67 | 14,338 | py | Python | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | 2 | 2021-07-09T15:10:44.000Z | 2021-07-11T12:42:13.000Z | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | meshreg/visualize/samplevis.py | jonashein/handobjectnet_baseline | 29175be4528f68b8a2aa6dc6aa37ee0a042f93ab | [
"MIT"
] | null | null | null | import torch
import numpy as np
from libyana.visutils.viz2d import visualize_joints_2d
from meshreg.datasets.queries import BaseQueries, TransQueries
from meshreg.visualize import consistdisplay
| 46.401294 | 119 | 0.522597 |
e3e49196e82b3c1f79806bdd2aeb6e1bcf532ba4 | 3,185 | py | Python | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 71 | 2021-03-04T15:10:18.000Z | 2022-03-29T16:37:37.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 1,498 | 2021-03-05T07:28:00.000Z | 2022-03-31T16:28:06.000Z | api_app/api/dependencies/workspaces.py | gauravagrwal/AzureTRE | f3cb1e40e4926f8b196add807b05abec46bb36fc | [
"MIT"
] | 60 | 2021-04-30T10:09:26.000Z | 2022-03-30T12:39:27.000Z | from fastapi import Depends, HTTPException, Path, status
from pydantic import UUID4
from api.dependencies.database import get_repository
from db.errors import EntityDoesNotExist, ResourceIsNotDeployed
from db.repositories.user_resources import UserResourceRepository
from db.repositories.workspace_services import Works... | 56.875 | 224 | 0.82292 |
e3e5cb6c2267ca3e81be3aad88376455fe125b55 | 14,828 | py | Python | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | nnef_tools/conversion/tensorflow/tf_pb_to_tf_py.py | rgiduthuri/NNEF-Tools | 8a9971f897fb5a110dd254e0c20077213f257700 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 The Khronos Group 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 ... | 50.435374 | 115 | 0.658956 |
e3e5d7bb420ff6920778e91d10161cbdad69e4fa | 1,015 | py | Python | CS1410/p5test.py | Davidjbennett/DavidBennett.github.io | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | 3 | 2021-05-18T16:17:29.000Z | 2022-01-20T15:46:59.000Z | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | CS1410/p5test.py | Davidjbennett/DavidBennett | 09a2652b7ace8741bf23c6432abd58ee790b9f0c | [
"MIT"
] | null | null | null | import unittest
from payroll import *
if __name__ == '__main__':
unittest.main() | 39.038462 | 113 | 0.629557 |
e3e6303d7750f26636e0532318d99a61631c9c10 | 17,884 | py | Python | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | EXOSIMS/Completeness/BrownCompleteness.py | dgarrett622/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | 2 | 2016-08-13T18:39:39.000Z | 2020-06-26T00:18:37.000Z | EXOSIMS/Completeness/BrownCompleteness.py | douglase/EXOSIMS | ce41adc8c162b6330eb9cefee83f3a395bcff614 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import numpy as np
from scipy import interpolate
import astropy.units as u
import astropy.constants as const
import os, inspect
try:
import cPickle as pickle
except:
import pickle
import hashlib
from EXOSIMS.Prototypes.Completeness import Completeness
from EXOSIM... | 42.08 | 109 | 0.537575 |
e3e6feda3445e87c646510a9a3a710d5ae1d2df6 | 1,418 | py | Python | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | 1 | 2021-07-08T01:27:25.000Z | 2021-07-08T01:27:25.000Z | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | pylsp/plugins/hover.py | nemethf/python-lsp-server | 34be02a6ce37bab7fb9ba1845006c0af16fb7efc | [
"MIT"
] | null | null | null | # Copyright 2017-2020 Palantir Technologies, Inc.
# Copyright 2021- Python Language Server Contributors.
import logging
from pylsp import hookimpl, _utils
log = logging.getLogger(__name__)
| 28.36 | 74 | 0.662906 |
e3e789b09b4bc5d5bd9a4f91dddf897a4ef4d03a | 4,753 | py | Python | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | LocStat/pipelines/output.py | nhtoshiaki/LocStat | 0196d627d1f16a778cbc8f1996d217d8fee72afb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import items
def write_extension_statistic(self, root_dir_item):
"""
Writes the table with the number of lines and bytes for each file
extension.
"""
if self.file and not self.file.closed:
self.file.write(f'{"Extensao":<10} | {"Linhas"... | 37.722222 | 79 | 0.487482 |
e3e858c279c7da79f073153068c7d9c2b91c90b3 | 736 | py | Python | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:04.000Z | 2020-07-25T23:23:04.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2018-10-04T01:43:25.000Z | 2018-11-28T17:59:12.000Z | greensinversion/regularization.py | isuthermography/greensinversion | 92f272a3649bb2f6b132f8cd239edd68dd2a6a62 | [
"Unlicense"
] | 1 | 2020-07-25T23:23:06.000Z | 2020-07-25T23:23:06.000Z | import numpy as np
| 36.8 | 319 | 0.716033 |
e3e870bbf5df4a845585a4326902f3311e5fcf1d | 1,563 | py | Python | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | examples/telebot.py | b3ntuz1/words | 5d14439e18d9462a02a836afc3497a188bfc3224 | [
"MIT"
] | null | null | null | import flask
import telebot
import words
from dotenv import load_dotenv
load_dotenv()
app = flask.Flask(__name__)
bot = telebot.TeleBot(environ.get("TG_TOKEN"), threaded=False)
WEBHOOK_URL_PATH = "/%s/" % (environ.get("TG_TOKEN"))
# # Remove webhook, it fails sometimes the set if there is a previous webhook
# bot.re... | 31.26 | 106 | 0.68778 |
e3e8a02a4a0c93dadb97549166e65600c319f251 | 547 | py | Python | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | lvsfunc/__init__.py | DeadNews/lvsfunc | 15bc8b99595c5066c15f4aba9fb9989e1068a9ee | [
"MIT"
] | null | null | null | """
lvsfunc, a collection of VapourSynth functions and wrappers written and/or modified by LightArrowsEXE.
If you spot any issues, please do not hesitate to send in a Pull Request
or reach out to me on Discord (LightArrowsEXE#0476)!
"""
# flake8: noqa
from . import aa, comparison, deinterlace, denoise, m... | 26.047619 | 106 | 0.758684 |
e3e90ea49def6ec58ac5f2b5f001c13fe85417ac | 529 | py | Python | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | Roman_to_Integer.py | sujitmandal/leetCode | b52bfd68cd93243765a94a190807f9b79ec4b4af | [
"MIT"
] | null | null | null | roman_dict = {
"I" : 1,
"V" : 5,
"X" : 10,
"L" : 50,
"C" : 100,
"D" : 500,
"M" : 1000
}
obj = Solution()
obj.romanToInt("III")
obj.romanToInt("XXVII")
obj.romanToInt("IV") | 18.241379 | 40 | 0.478261 |
e3ea89a73be617f94a289a935e3c1a5396be4890 | 4,214 | py | Python | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | utils/warmup.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | """
MIT License
Copyright (c) 2019 Ildoo Kim
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, dis... | 48.436782 | 152 | 0.685809 |
e3eab184db32babbdcd60c4ea7969530ce380571 | 2,154 | py | Python | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 5 | 2021-12-09T21:54:35.000Z | 2021-12-14T11:25:57.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 6 | 2021-12-09T21:04:19.000Z | 2022-02-11T11:19:44.000Z | src/ee/deployers.py | marcelotrevisani/ee | 933d6a80402b30943ca3df4a1a120047f7163a4b | [
"MIT"
] | 2 | 2021-02-12T20:20:26.000Z | 2021-12-14T11:24:24.000Z | import abc
import logging
from typing import List
from ee.models import EnvironmentDefinition
logger = logging.getLogger(__name__)
| 27.615385 | 80 | 0.597029 |
e3eb6d0f0d638a2beae2a17150b8764d8ef995b7 | 2,946 | py | Python | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | 1 | 2021-07-13T07:05:29.000Z | 2021-07-13T07:05:29.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | TejasPhutane/Eyantra-2021-Vargi-Bots | ab84a1304101850be8c0f69cfe6de70d53c33189 | [
"MIT"
] | 1 | 2021-06-05T07:58:03.000Z | 2021-06-05T07:58:03.000Z | vb_simulation_pkgs/example_pkgs/pkg_moveit_examples/scripts/node_eg2_predefined_pose.py | ROBODITYA/Eyantra-2021-Vargi-Bots | f1c6a82c46e6e84486a4832b3fbcd02625849447 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import rospy
import sys
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
import actionlib
if __name__ == '__main__':
main()
| 37.291139 | 163 | 0.681942 |
e3ecff00be006576e1644fd5e646a6c21330ba43 | 5,047 | py | Python | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 13 | 2015-02-19T22:14:07.000Z | 2021-02-07T14:16:34.000Z | plugins/pelican_gist/plugin.py | kura/kura.gg | 42c8e0a7a6d9480297df004452b073883ff9693e | [
"MIT"
] | 2 | 2015-07-28T10:02:57.000Z | 2017-07-28T18:08:59.000Z | plugins/pelican_gist/plugin.py | kura/kura.io | 7f9ba2140b93bba86d1367e41706ad72f9e672bf | [
"MIT"
] | 7 | 2015-08-26T16:52:00.000Z | 2019-10-11T05:32:37.000Z | # -*- coding: utf-8 -*-
"""
Gist embedding plugin for Pelican
=================================
This plugin allows you to embed `Gists`_ into your posts.
.. _Gists: https://gist.github.com/
"""
from __future__ import unicode_literals
import hashlib
import logging
import os
import re
import codecs
import pygments
lo... | 30.96319 | 91 | 0.624529 |
e3ed166cf5e760668330d7ff8e4a946c7c875bce | 1,188 | py | Python | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | ass1/rsc/ts.py | suryaavala/network | 291b59dce961448b2a9b92b6a0754ec994a6fb91 | [
"MIT"
] | null | null | null | import time
from socket import *
import sys
host = sys.argv[1]
#port = sys.argv[2]
#message = sys.argv[2]
sock = socket(AF_INET, SOCK_DGRAM)
sock.settimeout(1)
sock.bind((str(host),0))
print(sock.getsockname(),sock.getsockname()[1])
port = 5967
for message in 'abcdefghijklmnopqrstuvwxyz':
sock.sendto(message.e... | 32.108108 | 139 | 0.653199 |
e3edc74364411dacd749db536296fed60fe22954 | 26,799 | py | Python | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | django/docs/ref/contrib/auth.txt.py | roshanba/mangal | f7b428811dc07214009cc33f0beb665ead402038 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXX
XXXX XXXXXXXX XXXXXXXX XXX XXXXXXXXX XXXXXXXX XXX XXX XXXXXXXXXX XX XXXXXXXX
XXXXXXXXXXXXXX XXXXXXX XXX XXXX XXXXXXX XX XXX XXXXX XX XXXXX XXXXXXXXXX XX
XXX XX XXXXXXXXX XXXXXXXXXXXXXX XXX XXXXXXXXXXXXX XXX XXX XXXXXXXXXXXXXXXXXXXX
XXXXX XXXXX XXX... | 38.12091 | 96 | 0.79044 |
e3efc019f189a8a6987dd98946e89c72d64fa190 | 2,218 | py | Python | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | ParasGarg/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 25 | 2017-03-23T04:51:18.000Z | 2022-03-03T21:51:11.000Z | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | null | null | null | BIA 660 - Web Analytics/Assignments/Assignment 2/webcounter.py | vaishnavimecit/Stevens-Computer-Science-Courses-Materials | 13015e6e83471d89ae29474857fe83a81994420f | [
"MIT"
] | 19 | 2018-05-10T05:17:05.000Z | 2022-03-12T05:18:58.000Z | """
A script that reads a file from the web and
returns the all the words having frequency in between two words passed
"""
import re
from nltk.corpus import stopwords
import requests
from operator import itemgetter
if __name__=='__main__':
word1 = "park"
word2 = "amazon"
print(run('http://tedlappas.... | 35.774194 | 175 | 0.626691 |
e3f2542b1e8fcfc1c962b23f153fdbfa31f29be1 | 4,487 | py | Python | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | null | null | null | dev/archery/archery/integration/util.py | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | 8 | 2020-04-10T19:03:51.000Z | 2021-01-21T01:06:28.000Z | dev/archery/archery/integration/util.py | signavio/arrow | 866e6a82e2794b151235c19b8c5cbf1fcaf780ef | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 28.398734 | 77 | 0.654558 |
e3f2b53a7343d04d14b8c9e8a2dd45c0ae9f242e | 4,715 | py | Python | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | python/src/cmdline/write_struct.py | hgmelectronics/xcpsetup | 646d22537f58e59c3fe324da08c4dbe0d5881efa | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python3
import argparse
import ctypes
import json
import sys
if not '..' in sys.path:
sys.path.append('..')
from comm import BoardTypes
from comm import CANInterface
from comm import XCPConnection
from util import plugins
from util import ctypesdict
from util import config
import argProc
plugins.l... | 42.477477 | 145 | 0.634783 |
e3f35c53bc5f2d93179fd278d659372e135f798d | 2,383 | py | Python | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 365 | 2015-02-10T15:10:55.000Z | 2022-03-03T15:50:51.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 45 | 2015-01-09T15:34:20.000Z | 2021-10-05T14:44:23.000Z | doc/python_api/examples/bpy.types.Depsgraph.1.py | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | """
Dependency graph: Evaluated ID example
++++++++++++++++++++++++++++++++++++++
This example demonstrates access to the evaluated ID (such as object, material, etc.) state from
an original ID.
This is needed every time one needs to access state with animation, constraints, and modifiers
taken into account.
"""
impor... | 39.065574 | 99 | 0.675619 |
e3f5aaf3ddf858989f83bcba1743ef73978162e1 | 2,411 | py | Python | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | 1 | 2019-09-10T22:45:24.000Z | 2019-09-10T22:45:24.000Z | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | 3 | 2017-10-06T15:45:34.000Z | 2018-09-11T12:49:57.000Z | upgrade-insecure-requests/support/generate.py | Thezone1975/wpt | 9e201113cf36aefe07fe9c14caa47705d541e141 | [
"BSD-3-Clause"
] | null | null | null | # Usage: execute
# $ python support/generate.py
# at wpt/upgrade-insecure-requests/.
#
# Note: Some tests (link-upgrade.sub.https.html and
# websocket-upgrade.https.html) are not covered by this generator script.
template = '''<!DOCTYPE html>
<html>
<head>
<!-- Generated by wpt/upgrade-insecure-requests/support/genera... | 37.092308 | 89 | 0.690585 |
e3f5cd033fa43c92ae4a7eb4ce55f52eab4be962 | 424 | py | Python | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 3 | 2020-08-02T09:18:27.000Z | 2021-12-22T07:43:37.000Z | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 16 | 2020-11-09T11:35:13.000Z | 2021-12-23T13:04:54.000Z | model_constructor/mxresnet.py | ayasyrev/model_constructor | 3759a02dd9f7aa1ca3e6a4a5aefe72380886207e | [
"Apache-2.0"
] | 2 | 2020-04-08T20:56:48.000Z | 2021-01-20T13:37:52.000Z | from functools import partial
from .activations import Mish
from .net import Net
__all__ = ['mxresnet_parameters', 'mxresnet34', 'mxresnet50']
mxresnet_parameters = {'stem_sizes': [3, 32, 64, 64], 'act_fn': Mish()}
mxresnet34 = partial(Net, name='MXResnet32', expansion=1, layers=[3, 4, 6, 3], **mxresnet_parameters... | 32.615385 | 101 | 0.71934 |
e3f60625a8143b4d147e2f952742a97ef41ee31f | 1,242 | py | Python | 1.undersampling.py | Moons08/TalkingData-Fraud-Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | 1 | 2019-01-18T06:20:54.000Z | 2019-01-18T06:20:54.000Z | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | 1.undersampling.py | Moons08/LightGBM-tutorial-Fraud_Detection | c88fb8b5358f6057603b7725ed2767fab47c51c6 | [
"MIT"
] | null | null | null | import os
import pandas as pd
from imblearn.under_sampling import RandomUnderSampler
from contextlib import contextmanager
import psutil
import time
with timer_memory('undersampling'):
under_sampling()
| 26.425532 | 82 | 0.587762 |
e3f69e5b14024599fb273e979ccbc45a1c411ded | 8,652 | py | Python | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 34 | 2020-03-12T15:40:49.000Z | 2022-02-28T07:13:47.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 104 | 2020-01-06T20:32:19.000Z | 2022-01-02T00:20:14.000Z | spydrnet/plugins/namespace_manager/tests/test_edif_namespace.py | ganeshgore/spydrnet | 22672b8fc7d63461a71077bd20f29df6d38e96f4 | [
"BSD-3-Clause"
] | 10 | 2020-09-02T20:24:00.000Z | 2022-02-24T16:10:07.000Z | import unittest
import spydrnet as sdn
def test_duplicate_definition_elements(self):
def1 = self.gen_definition()
port = def1.create_port()
instance = def1.create_child()
cable = def1.create_cable()
port['EDIF.identifier'] = "my_lib"
instance['EDIF.identifier'] = "m... | 33.66537 | 66 | 0.592811 |
e3f744a34f5cd637c13b66b21c7bdf2144d67708 | 3,344 | py | Python | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 16 | 2020-09-23T06:21:49.000Z | 2022-03-28T05:45:04.000Z | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | null | null | null | tf_agents/benchmark/distribution_strategy_utils.py | FlorisHoogenboom/agents | 2cd5a61e1838b52012271f1fb8617c29a55279a9 | [
"Apache-2.0"
] | 6 | 2020-10-09T06:33:23.000Z | 2022-02-03T16:16:36.000Z | # coding=utf-8
# Copyright 2018 The TF-Agents 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 applicable law... | 34.474227 | 80 | 0.696172 |
e3f85ec084254dfe08068ef5fd90d188baae09d8 | 72 | py | Python | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | 2 | 2021-09-09T14:03:40.000Z | 2021-11-03T03:35:55.000Z | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | null | null | null | barbarism.py | Matimed/Barbarism | 4892092f24f314bc6cfacc1c780436dc59fc90ac | [
"MIT"
] | null | null | null | import pygame as pg
pg.init()
from src.main import Main
main = Main()
| 10.285714 | 25 | 0.708333 |
e3f8f7b3257c5bd12d8d3490e725fe8a7a51ecb9 | 388 | py | Python | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | null | null | null | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | null | null | null | frappe/patches/v7_0/desktop_icons_hidden_by_admin_as_blocked.py | anandpdoshi/frappe | b3546f1ebcac3480eccf5d19371ca534e7ce79bb | [
"MIT"
] | 5 | 2016-06-20T08:48:11.000Z | 2018-12-12T09:42:31.000Z | import frappe | 43.111111 | 88 | 0.737113 |
e3f9d1e7fbd73db26f8548fce222535435572494 | 3,985 | py | Python | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | gen_mirror_json.py | Ashwin4RC/api | e6fc38b5ef8510ab4a11cb492fe49b9ed2cbcc58 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# pylint: disable=missing-docstring,invalid-name,broad-except,cell-var-from-loop
import hashlib
import json
import os
import sys
from utils import get_date_from_zip, get_metadata_from_zip
ALLOWED_BUILDTYPES = ["Alpha", "Beta", "Official", "Gapps"]
ALLOWED_VERSIONS = ["9.0", "10"]
FILE_BASE: s... | 36.227273 | 88 | 0.496863 |
e3f9dc11cb81a8cb80e6cd940f8a035848122990 | 431 | py | Python | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | button/take_screen.py | PitPietro/gpiozero-pyqt5 | 0384d34348841d193c025a1909d909d1bf772a7d | [
"MIT"
] | null | null | null | import os
# from signal import pause
from gpiozero import Button
from datetime import datetime
take_screen()
| 21.55 | 77 | 0.605568 |
e3fb07a9be04e9aa4d5249fcb856df6a2aede22a | 1,435 | py | Python | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | year2020/day21.py | 3schwartz/AdventOfCode | 32f259c4e20c3c4834718411f1053b6a11f71c86 | [
"MIT"
] | null | null | null | import common
lines = common.get_lines('day21_data.txt')
food_dict = {}
all_ingredients = []
for line in lines:
ingredients, allergens = line.split(' (contains ')
allergens = allergens[:-1].split(', ')
ingredients = ingredients.split(' ')
all_ingredients.extend(ingredients)
for alle... | 32.613636 | 90 | 0.627875 |
e3fb126e341fe57625eff17359d622708faa18e2 | 4,279 | py | Python | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | src/model_evaluation.py | Littleote/Analisis_de_contrasenyes | 3837153e82b9da0c6f8ed1c372103944f3acaca6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: david
"""
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from sklearn.model_selection import KFold
from sklearn.metrics import confusion_matrix, classification_report
from sklearn.metrics import PrecisionRecallDisplay, RocCurveDisplay | 40.752381 | 117 | 0.475111 |
e3fb3094156efbfadeca185946c48f3c4d800789 | 1,632 | py | Python | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 130 | 2017-03-10T02:01:38.000Z | 2021-01-10T03:55:30.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 3 | 2018-11-30T00:07:50.000Z | 2020-12-01T13:01:13.000Z | setup.py | zhuzhenping/hf_at_py | edbbefc7dd1d476ed7fd62ad9635888cfc5fcb44 | [
"Apache-2.0"
] | 69 | 2017-04-01T13:57:21.000Z | 2020-10-07T11:29:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/20 8:15
# @Author : HaiFeng
# @Email : 24918700@qq.com
from setuptools import setup
import os
this_directory = os.path.abspath(os.path.dirname(__file__))
#
#
long_description = read_file('readme.md')
long_description_content_type = 'text/m... | 29.142857 | 84 | 0.674632 |
e3fbc1eef6b6ab6c9a1ff3c81478fc53b610ea00 | 6,478 | py | Python | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 5 | 2020-04-14T06:37:45.000Z | 2021-04-26T15:58:01.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 1 | 2020-04-27T03:01:27.000Z | 2020-04-27T03:01:27.000Z | web_console_v2/api/fedlearner_webconsole/scheduler/transaction.py | chen1i/fedlearner | 981514dadbd0aa49ae87d185dd247d310e35605c | [
"Apache-2.0"
] | 13 | 2020-02-20T05:56:52.000Z | 2020-06-08T07:11:25.000Z | # Copyright 2020 The FedLearner Authors. 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 applica... | 39.742331 | 78 | 0.636153 |
e3fd5d581d1b57f36ef591f8271741509e6dd229 | 4,636 | py | Python | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 7 | 2018-03-16T17:26:14.000Z | 2022-03-09T08:19:10.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 70 | 2018-03-09T11:28:12.000Z | 2022-02-17T09:06:17.000Z | src/openeo_grass_gis_driver/models/schema_base.py | marcjansen/openeo-grassgis-driver | 57b309819fdc456fba02cd1ab8fe6731ddfbb66a | [
"Apache-2.0"
] | 13 | 2018-03-12T09:58:24.000Z | 2022-02-23T10:40:11.000Z | # -*- coding: utf-8 -*-
import json
from typing import List, Optional
from flask import make_response
__author__ = "Sren Gebbert"
__copyright__ = "Copyright 2018, Sren Gebbert, mundialis"
__maintainer__ = "Sren Gebbert"
__email__ = "soerengebbert@googlemail.com"
| 24.659574 | 85 | 0.613891 |
e3fdd8b8cbc3926690972bd648e3656a84878e8f | 1,457 | py | Python | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 3 | 2020-04-01T10:51:17.000Z | 2021-08-05T18:35:23.000Z | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | null | null | null | plugins/maya/inventory/action_update_namespace.py | davidlatwe/reveries-config | 4a282dd64a32a9b87bd1a070759b6425ff785d68 | [
"MIT"
] | 1 | 2020-07-05T12:06:30.000Z | 2020-07-05T12:06:30.000Z |
import avalon.api
| 29.734694 | 75 | 0.671929 |
e3fff047d0d4657b650e98281fbe2b1e51ff6026 | 3,694 | py | Python | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | src/outpost/django/salt/serializers.py | medunigraz/outpost.django.salt | bb8d3cefeaa8444ce15979689abdd93ed993304b | [
"BSD-2-Clause"
] | null | null | null | import logging
import gpg
from rest_framework import serializers
from .conf import settings
from . import models
logger = logging.getLogger(__name__)
| 32.403509 | 88 | 0.674066 |
e3fff64e6905d157f27dedffc36bcf8b6222a9c6 | 11,950 | py | Python | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 1 | 2020-06-25T16:39:35.000Z | 2020-06-25T16:39:35.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | 6 | 2020-03-06T12:31:38.000Z | 2021-09-20T15:08:17.000Z | demosauruswebapp/demosaurus/link_thesaurus.py | KBNLresearch/Demosaurus | 9235e315d9eef9d8d64f94a90ab4fc8220670ef2 | [
"Apache-2.0"
] | null | null | null | from flask import (
Blueprint, flash, g, redirect, render_template, get_template_attribute, request, url_for, jsonify
)
#from ....dataprocessing import # dataprocessin .read_rdf import
from demosauruswebapp.demosaurus.db import get_db
import pandas as pd
from nltk.metrics import distance as nl_distance
import re
im... | 49.585062 | 139 | 0.647699 |
5401d3f8943311c53015fddf7d9a9c7b00d0c8d8 | 6,784 | py | Python | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | solver.py | IvoryCandy/char-rnn | a21f3b198770c6c9bef0171bf31b2a1710066da8 | [
"Apache-2.0"
] | null | null | null | import math
import numpy as np
import torch
from torch import nn
from torch.backends import cudnn
from torch.utils.data import DataLoader
from tqdm import tqdm
from model import CharRNN
from data import TextDataset, TextConverter
| 31.849765 | 119 | 0.599204 |
540226b4bbeda54cd1c6e6f8ca8daa02d21b75b8 | 17,360 | py | Python | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 2 | 2020-08-20T15:44:44.000Z | 2021-09-27T07:21:59.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | 9 | 2018-03-02T15:21:22.000Z | 2020-11-07T12:23:09.000Z | mayday_control/scripts/motion_control.py | LasseBoerresen/Mayday | 3e40d9f3eb2727f78cfa915e19fb5706b6a53514 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import random
import math
import unittest
import numpy as np
import pandas as pd
import std_msgs
from std_msgs.msg import String
# from control_msgs.msg import JointControllerState
# from gazebo_msgs.msg import LinkStates
# import matplotlib.pyplot as plt
import dynamixel_adapter
##... | 33.643411 | 120 | 0.589286 |
5402f5bc7398b19a2c1f22b4890e4f4b84f51e3e | 10,278 | py | Python | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 3 | 2022-02-26T17:16:34.000Z | 2022-03-04T15:04:00.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | venv/lib/python3.9/site-packages/trio/socket.py | almmello/frozen | c9928491f694b56a0023926bc763c703ba1fd75a | [
"BSD-2-Clause"
] | 1 | 2022-03-28T09:19:34.000Z | 2022-03-28T09:19:34.000Z | # This is a public namespace, so we don't want to expose any non-underscored
# attributes that aren't actually part of our public API. But it's very
# annoying to carefully always use underscored names for module-level
# temporaries, imports, etc. when implementing the module. So we put the
# implementation in an under... | 48.481132 | 84 | 0.748784 |
54036005b75aaa482dfeae48fd25d054393283e1 | 2,258 | py | Python | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | tests/test_encoders.py | alxlampe/d3rlpy | af7e6bd018a51f95138d121f59c50dc36ec87e3a | [
"MIT"
] | null | null | null | import pytest
from d3rlpy.models.torch.encoders import PixelEncoder
from d3rlpy.models.torch.encoders import PixelEncoderWithAction
from d3rlpy.models.torch.encoders import VectorEncoder
from d3rlpy.models.torch.encoders import VectorEncoderWithAction
from d3rlpy.encoders import create_encoder_factory
from d3rlpy.enco... | 35.84127 | 77 | 0.740478 |
5406dab8bc4f61a6b8581ae628a67e2632c2d5cd | 2,217 | py | Python | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | null | null | null | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 10 | 2020-10-12T04:45:01.000Z | 2020-11-29T12:40:55.000Z | cam/03_face_recognition.py | kimtaehoho/osscap2020 | 7980ab742a1a90fb4405eeabe941504a0b859d20 | [
"Apache-2.0"
] | 1 | 2020-10-12T12:28:42.000Z | 2020-10-12T12:28:42.000Z | # -*- coding: utf-8 -*-
#import game
from glob import glob
file1 = glob("01_face_dataset.py")
file2 = glob("02_face_training.py")
import facedataset
import facetrain
import cv2
import numpy as np
import os
from PIL import Image
#facedataset.first()
#facetrain.second()
recognizer = cv2.face.LBPHFaceRecognizer_create()
... | 28.063291 | 81 | 0.620207 |
540828fed7b9b1cf90bafa38feea72b4a282cfd0 | 1,047 | py | Python | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 1 | 2021-11-25T04:30:51.000Z | 2021-11-25T04:30:51.000Z | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | null | null | null | deprecated/dpr/code/encoder.py | eunaoeh/mrc-level2-nlp-01 | caa893ca7d689200b3528377901d59fa9ca452ac | [
"MIT"
] | 5 | 2021-11-21T22:53:40.000Z | 2022-02-23T09:22:25.000Z | from transformers import (
RobertaModel,
RobertaPreTrainedModel,
BertModel,
BertPreTrainedModel,
)
| 25.536585 | 83 | 0.685769 |
5408382e17eaa39a39eec48a1a272c02bf244807 | 3,395 | py | Python | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | 1 | 2022-02-28T16:33:25.000Z | 2022-02-28T16:33:25.000Z | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | tutorial/calculator/calculator.002.py | UltraStudioLTD/pyTermTk | a1e96b0e7f43906b9fda0b16f19f427919a055c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# MIT License
#
# Copyright (c) 2022 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restricti... | 40.903614 | 86 | 0.742268 |
5408f0d69dd4b712a3e36a300e74e57a1812c78d | 4,433 | py | Python | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | null | null | null | dags/clix_static_visuals_dag.py | CLIxIndia-Dev/clix_dashboard_backend_AF | 4dc2f48fdd1ea312977f8237cec9b9fd71cc20b4 | [
"Apache-2.0"
] | 1 | 2020-03-17T06:40:25.000Z | 2020-03-17T06:40:25.000Z | # This DAG is for running python scripts to generate static visualisation data
# from syncthing every month end
import airflow
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
from airflow.operators.dummy_operator import Dumm... | 39.230088 | 98 | 0.676291 |
540b37aa828992718d326e40cc3e8c5c7baaf141 | 67 | py | Python | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | 7 | 2021-05-18T11:16:49.000Z | 2021-05-30T20:25:12.000Z | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | null | null | null | nadl/__init__.py | siAyush/nadl | 8aa698231e1d198bf823a58c84f139f6f93bc7df | [
"MIT"
] | 1 | 2022-03-02T19:52:25.000Z | 2022-03-02T19:52:25.000Z | from nadl.tensor import Tensor
from nadl.parameter import Parameter | 33.5 | 36 | 0.865672 |
540d12bf750ecb2e910c29f067d4164a9bcaf207 | 30,598 | py | Python | file.py | Tawfiq-MoonHacker/metis_video | 8d63ac458b8b6bfa48a1ec5476dc47be1987f42a | [
"Apache-2.0"
] | null | null | null | file.py | Tawfiq-MoonHacker/metis_video | 8d63ac458b8b6bfa48a1ec5476dc47be1987f42a | [
"Apache-2.0"
] | null | null | null | file.py | Tawfiq-MoonHacker/metis_video | 8d63ac458b8b6bfa48a1ec5476dc47be1987f42a | [
"Apache-2.0"
] | null | null | null | file_forgot_password = ["""<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<style type="text/css">... | 48.878594 | 410 | 0.483365 |
540dd2561e2691981ca01c923a08b27ff3e24e2d | 2,106 | py | Python | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | builder/schedule.py | MyConbook/datatool | 1c12bb5124b48ae827c4832896fd81bf711ad44e | [
"Apache-2.0"
] | null | null | null | import icalendar
import urllib2
import hashlib
import string
import re
import datetime
from database import Database, TableHandler
| 30.085714 | 169 | 0.7132 |
540df69177e6fb46fc901283c03665c416fc9242 | 24,887 | py | Python | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | 1 | 2018-12-07T21:19:58.000Z | 2018-12-07T21:19:58.000Z | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | src/OFS/CopySupport.py | MatthewWilkes/Zope | 740f934fc9409ae0062e8f0cd6dcfd8b2df00376 | [
"ZPL-2.1"
] | null | null | null | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... | 33.952251 | 79 | 0.571704 |
540f2aeaaaa0eee405144a0e73dbe2a9199426b2 | 1,697 | py | Python | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null | Search in a Binary Search Tree.py | frank0215/Leetcode_python | 9428ded4f9abd347b12bfef8aa1dd2d177f3afea | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
#root = [4,2,7,1,3]
# root = TreeNode(4)
# root.left = TreeNode(2)
# root.left.left = TreeNode(1)
# root.right = TreeNode(7)
# root.left.right = TreeNode(3)
# val = 2
root = TreeNode(4, TreeNode(2, TreeNode(1), TreeNode(3)), TreeNode(7))
v... | 23.569444 | 74 | 0.446081 |
541271297050a8dd2d540558c72d94871ade9a15 | 1,019 | py | Python | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | src/data/process_HJ_data.py | simran-grewal/COVID-19-Data-Analysis | 8751aa75c451e956d5b1d1e2d6f2ffbec8dc673a | [
"FTL"
] | null | null | null | import subprocess
import os
import numpy as np
import pandas as pd
from datetime import datetime
if __name__ == '__main__':
store_relational_JH_data() | 42.458333 | 134 | 0.703631 |
5414770e7a98cb88e29d0f46a7ec2949accc8e44 | 1,023 | py | Python | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | wasm-server.py | erique/pt2-clone | f3376a5a40316f15e82feaa321673a8611c31a53 | [
"BSD-3-Clause"
] | null | null | null | # Python 3
import sys
import socketserver
from http.server import SimpleHTTPRequestHandler
# Python 3.7.5 adds in the WebAssembly Media Type. If this is an older
# version, add in the Media Type.
if sys.version_info < (3, 7, 5):
WasmHandler.extensions_map['.wasm'] = 'application/wasm'
if __name__ == '__main__'... | 34.1 | 73 | 0.670577 |
5414822b05eb873a76f59d1b99fc4fca71aebfa2 | 1,850 | py | Python | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | 2 | 2021-03-25T23:02:50.000Z | 2021-03-26T10:41:33.000Z | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | null | null | null | stage.py | boularbahsmail/Asteroids-Game | ef4ae8d2e66ea2875aba83f512610b4da56c9ef1 | [
"CNRI-Python"
] | null | null | null |
import pygame
import sys
import os
from pygame.locals import *
| 29.83871 | 76 | 0.600541 |
5414c4d1cd6ab405e144265b135b1ae64b919a77 | 2,596 | py | Python | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | web/MicroservicesAsAservice/src/notes/app.py | NoXLaw/RaRCTF2021-Challenges-Public | 1a1b094359b88f8ebbc83a6b26d27ffb2602458f | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify, render_template_string
import redis
import requests
import re
import json
import sys
app = Flask(__name__)
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5000)
| 33.282051 | 74 | 0.552003 |
54156bd3caed9e41e591c736c817a669d7acd84f | 1,195 | py | Python | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null | divisiones.py | badgercl/scrappers-congreso-chile | ae2f3f451f6fa90a4964f2c476aecdfc2c5254ee | [
"MIT"
] | null | null | null |
import requests
from bs4 import BeautifulSoup
import json
import pprint
url = 'https://www.bcn.cl/siit/divisionelectoral/index.htm'
res = requests.get(url)
soup = BeautifulSoup(res.text, 'html.parser')
rows = soup.find_all('tbody')[1].find_all('tr')
region = ""
circunscripcion = ""
distrito = ""
comuna = ""
region... | 23.9 | 60 | 0.661925 |
5419760ed6778cfb73074dd68ffc3b8c58ad8780 | 685 | py | Python | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | aws-auth-manager/src/awsauthmanager/app.py | zepplen/aws_tokens | 9249ba00ea0b39ac3c523a9ea3ee2485436e84ef | [
"MIT"
] | null | null | null | ####################################################
# (C) Mark Trimmer, 2016, All Rights Reserved
#
# File Name: app.py
#
# Creation Date: 28-12-2016
#
# Created By: Mark Trimmer
#
# Purpose:
#
####################################################
from __future__ import print_function
from credentialfile import Creden... | 26.346154 | 111 | 0.608759 |
5419a767eec4a75f25fccde0e39c22e20a25e3d6 | 486 | py | Python | setup.py | datamachines/classification-banner | 53ae7ea1104000e60474955f7603c46024a1d06f | [
"Apache-2.0"
] | null | null | null | setup.py | datamachines/classification-banner | 53ae7ea1104000e60474955f7603c46024a1d06f | [
"Apache-2.0"
] | 1 | 2021-06-11T15:30:31.000Z | 2021-06-14T12:58:21.000Z | setup.py | datamachines/classification-banner | 53ae7ea1104000e60474955f7603c46024a1d06f | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='classification-banner',
version='1.0.0',
description='Classification banner compatable with GTK3 and X11.',
author='Mike May',
author_email='mikemay@datamachines.io',
url='https://www.github.com/datamachines/cl... | 32.4 | 72 | 0.687243 |
541ac4d6365b97db764dba02574e6974751b26ba | 371 | py | Python | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 4 | 2015-09-19T11:02:56.000Z | 2019-03-27T11:42:12.000Z | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | null | null | null | synapyse/impl/activation_functions/linear.py | synapyse/synapyse | 8c9ff53ede2d83af27ce771ce1b6ea6a32155b02 | [
"MIT"
] | 1 | 2019-10-29T16:24:28.000Z | 2019-10-29T16:24:28.000Z | from synapyse.base.activation_functions.activation_function import ActivationFunction
__author__ = 'Douglas Eric Fonseca Rodrigues'
| 23.1875 | 85 | 0.698113 |
541acc6e7acab303b472692f00ec1a571d8c6ad5 | 1,027 | py | Python | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | 1 | 2022-02-15T14:03:10.000Z | 2022-02-15T14:03:10.000Z | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | demo/app/libs/description.py | suenklerhaw/seoeffekt | 0a31fdfa1a7246da37e37bf53c03d94c5f13f095 | [
"MIT"
] | null | null | null | #check description
from bs4 import BeautifulSoup
import lxml.html
| 32.09375 | 82 | 0.641675 |
541b0dd061b1cb2fb2dd1d60f50109368732184b | 919 | py | Python | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | backend/projectfiles/GradleProjectFile.py | karllindmark/IsYourProjectUpToDate | ce2df36b8fa39a4732b05dfd75558a914e4e990b | [
"Apache-2.0"
] | null | null | null | import re
from backend.projectfiles.GenericProjectFile import GenericProjectFile
QUOTE = r'(?:["|\'])'
STRING = r'([\w\.\-\+]+)'
GAV_REGEXP = QUOTE + '(?:' + ":".join([STRING, STRING, STRING]) + ')' + QUOTE
| 34.037037 | 82 | 0.516866 |
541c51e665974394ae0ab412789deb2f54ac881a | 1,879 | py | Python | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | 1 | 2020-10-10T21:27:30.000Z | 2020-10-10T21:27:30.000Z | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | null | null | null | python/rhinoscripts/example_csv_loading.py | tasbolat1/hmv-s16 | 7863c66ed645b463b72aef98a5c484a18cc9f396 | [
"BSD-3-Clause"
] | null | null | null | """Example code for importing a single rigid body trajectory into Rhino from a Optitrack CSV file.
Copyright (c) 2016, Garth Zeglin. All rights reserved. Licensed under the terms
of the BSD 3-clause license as included in LICENSE.
Example code for generating a path of Rhino 'planes' (e.g. coordinate frame)
from a tr... | 36.134615 | 98 | 0.734433 |
541d99a0b05066f7ae098ca89430a31ca86b09cb | 91,180 | py | Python | 4_Nback/Nback_practice_lastrun.py | Brinks0211/cognitive_paradigms_patients | 30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e | [
"MIT"
] | 2 | 2020-07-01T12:53:40.000Z | 2020-07-01T13:30:23.000Z | 4_Nback/Nback_practice_lastrun.py | Brinks0211/cognitive_paradigms_patients | 30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e | [
"MIT"
] | null | null | null | 4_Nback/Nback_practice_lastrun.py | Brinks0211/cognitive_paradigms_patients | 30e3f8268e5c2b5ebfffcc4ebbcb46d8e60d039e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy3 Experiment Builder (v2020.1.3),
on 15, 2020, at 09:02
If you publish work using this script the most relevant publication is:
Peirce J, Gray JR, Simpson S, MacAskill M, Hchenberger R, Sogo H, Kastman E, Lindel... | 45.842132 | 121 | 0.66599 |
541db46f26a3ec258d9d85654ca98eae0553065a | 3,271 | py | Python | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | pysal/contrib/geotable/utils.py | cubensys/pysal | 8d50990f6e6603ba79ae1a887a20a1e3a0734e51 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2021-07-19T01:46:17.000Z | 2021-07-19T01:46:17.000Z | from ...cg import asShape as pShape
from ...common import requires as _requires
from warnings import warn
def insert_metadata(df, obj, name=None, inplace=False, overwrite=False):
"""
Insert an object into a dataframe's metadata with a given key.
Arguments
------------
df : pd.DataFrame
... | 33.721649 | 100 | 0.602262 |
541de3fcd94ea7163228d56302142fff219657ee | 287 | py | Python | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | 3 | 2021-04-17T10:20:26.000Z | 2022-03-08T07:36:13.000Z | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | torrent/torrent_tracker/whitelist_api/urls.py | projectpai/paipass | 8b8e70b6808bf026cf957e240c7eed7bfcf4c55d | [
"MIT"
] | null | null | null | from django.urls import path
from whitelist_api.views import AddTorrentInfoHash, RemoveTorrentInfoHash
app_name = 'whitelist_api'
urlpatterns = [
path('add-torrent-info-hash/', AddTorrentInfoHash.as_view()),
path('del-torrent-info-hash/', RemoveTorrentInfoHash.as_view()),
]
| 23.916667 | 73 | 0.766551 |
541e93e13927b8ffff8b83f86083ffe9dd7cdee8 | 1,847 | py | Python | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | vega/core/metrics/pytorch/flops_and_params.py | qixiuai/vega | 3e6588ea4aedb03e3594a549a97ffdb86adb88d1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 33.581818 | 76 | 0.714131 |
5421063007f16d8c808280360658d8af84912272 | 524 | py | Python | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | 2 | 2019-02-13T17:49:18.000Z | 2020-09-30T04:51:53.000Z | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | Projects/project04/pop_shrink.py | tonysulfaro/CSE-331 | b4f743b1127ebe531ba8417420d043e9c149135a | [
"MIT"
] | null | null | null | from Stack import Stack
main() | 17.466667 | 48 | 0.564885 |
5421bfc32b86a8ee54dfb925ef8eac6e4d16b3b0 | 212 | py | Python | pycache/__init__.py | HuiiBuh/pycache | 300bd51f9e575fd77014d6c86497dd58f313f752 | [
"MIT"
] | 1 | 2021-09-04T05:34:26.000Z | 2021-09-04T05:34:26.000Z | pycache/__init__.py | HuiiBuh/pycache | 300bd51f9e575fd77014d6c86497dd58f313f752 | [
"MIT"
] | 1 | 2021-03-14T19:26:01.000Z | 2021-03-16T18:46:38.000Z | pycache/__init__.py | HuiiBuh/pycache | 300bd51f9e575fd77014d6c86497dd58f313f752 | [
"MIT"
] | null | null | null | __version__ = '0.3.2'
# noinspection PyUnresolvedReferences
from ._cache._cache import cache
# noinspection PyUnresolvedReferences
from ._scheduler._scheduler import add_schedule, schedule, ScheduleSubscription
| 30.285714 | 79 | 0.84434 |
5423d564159a63ea1cc7a476c45ce6fae5bb3b4a | 1,670 | py | Python | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 2 | 2021-12-17T15:45:40.000Z | 2021-12-18T14:15:43.000Z | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 2 | 2022-03-30T14:31:12.000Z | 2022-03-31T14:25:25.000Z | bender/tests/test_predict_pipeline.py | otovo/bender | b64f0656658287b932ce44d52e6035682652fe33 | [
"Apache-2.0"
] | 1 | 2021-12-19T17:16:38.000Z | 2021-12-19T17:16:38.000Z | import numpy as np
import pytest
from pandas.core.frame import DataFrame
from bender.importers import DataImporters
from bender.model_loaders import ModelLoaders
from bender.model_trainer.decision_tree import DecisionTreeClassifierTrainer
from bender.split_strategies import SplitStrategies
pytestmark = pytest.mark.as... | 27.833333 | 116 | 0.640719 |