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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d60929790eb33c556b8ac1934f6844896e136e3a | 81 | py | Python | version.py | DMcP89/yahoo-oauth | 0153be8c7d03c4ab6634fce8c619e4292019f565 | [
"MIT"
] | 61 | 2015-06-01T08:03:02.000Z | 2021-09-25T14:39:46.000Z | version.py | DMcP89/yahoo-oauth | 0153be8c7d03c4ab6634fce8c619e4292019f565 | [
"MIT"
] | 28 | 2015-06-01T08:03:30.000Z | 2021-09-27T23:08:16.000Z | version.py | DMcP89/yahoo-oauth | 0153be8c7d03c4ab6634fce8c619e4292019f565 | [
"MIT"
] | 19 | 2015-06-06T15:31:28.000Z | 2021-05-23T02:59:31.000Z | # Do not edit this file, pipeline versioning is governed by git tags
__version__= | 40.5 | 68 | 0.802469 |
d6098e88a068d8b50569303641093b4d642d476a | 1,240 | py | Python | tests/test_default.py | krlsdu/ansible-sdkman | 31473737d0e46858932b1386556cbda85478dbc6 | [
"Apache-2.0"
] | null | null | null | tests/test_default.py | krlsdu/ansible-sdkman | 31473737d0e46858932b1386556cbda85478dbc6 | [
"Apache-2.0"
] | null | null | null | tests/test_default.py | krlsdu/ansible-sdkman | 31473737d0e46858932b1386556cbda85478dbc6 | [
"Apache-2.0"
] | null | null | null | sdkman_dir = '/usr/local/sdkman'
| 30.243902 | 76 | 0.682258 |
d609e197017d18ff638787a76403b554be370344 | 2,102 | py | Python | research_scripts/models/metrics.py | mikeyo89/job-scraper | 2cbebc377d34afe9efd740a94ef6c7b2460f9598 | [
"MIT"
] | 1 | 2021-12-27T23:53:28.000Z | 2021-12-27T23:53:28.000Z | research_scripts/models/metrics.py | mikeyo89/job-scraper | 2cbebc377d34afe9efd740a94ef6c7b2460f9598 | [
"MIT"
] | null | null | null | research_scripts/models/metrics.py | mikeyo89/job-scraper | 2cbebc377d34afe9efd740a94ef6c7b2460f9598 | [
"MIT"
] | null | null | null | # Metrics dataset that comprises of vectors which will be searched for in job postings.
pl = [
['python', False],
['c#', False],
['c', False],
['c++', False],
['ruby', False],
['java', False],
[['javascript', 'js'], False],
[['html', 'html5'], False],
['css', False],
['sql', Fal... | 26.275 | 87 | 0.486679 |
d60a7fac3a95dca71de1420dd67565ca4da447a2 | 3,850 | py | Python | image-segmentation/config/config.py | swcho84/image-segmentation | ef9b9b3d832e9efe6f43522cc5ca0e17279d6608 | [
"MIT"
] | 64 | 2019-03-09T08:55:11.000Z | 2022-01-27T07:08:02.000Z | image-segmentation/config/config.py | swcho84/image-segmentation | ef9b9b3d832e9efe6f43522cc5ca0e17279d6608 | [
"MIT"
] | 2 | 2019-11-07T11:49:13.000Z | 2020-01-16T14:39:03.000Z | image-segmentation/config/config.py | swcho84/image-segmentation | ef9b9b3d832e9efe6f43522cc5ca0e17279d6608 | [
"MIT"
] | 21 | 2019-03-09T08:56:35.000Z | 2022-03-02T12:24:43.000Z | from configparser import ConfigParser
import json
import os
from ast import literal_eval
type_caster = {
'int': int,
'str': lambda x: x if x.lower() != 'none' else None,
'float': float,
'bool': lambda x: True if x == 'True' else False if x == 'False' else exec("raise Exception('invalid bool value: {}'.... | 36.666667 | 168 | 0.543896 |
d60b68696ab0e13ca68be8ff221db4648d047fae | 2,676 | py | Python | examples/benchmarks/plot_label_shift.py | ltiao/gp-dre | 5997a74826636a58662f5fa8c41a81d32ba8baa2 | [
"MIT"
] | null | null | null | examples/benchmarks/plot_label_shift.py | ltiao/gp-dre | 5997a74826636a58662f5fa8c41a81d32ba8baa2 | [
"MIT"
] | null | null | null | examples/benchmarks/plot_label_shift.py | ltiao/gp-dre | 5997a74826636a58662f5fa8c41a81d32ba8baa2 | [
"MIT"
] | 1 | 2021-11-10T00:52:11.000Z | 2021-11-10T00:52:11.000Z | # -*- coding: utf-8 -*-
"""
Label Shift
===========
"""
# sphinx_gallery_thumbnail_number = 2
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd
from gpdre.benchmarks import LabelShift
from gpdre.applications.covariate_shift.benchmarks import regression_metric
from gpdre.dat... | 27.306122 | 112 | 0.662182 |
d60bb3f33489816451b9a463c16331528a0cc38f | 353 | py | Python | Bot/get_info.py | dnrhead/mensa_bot | a10b04512219115894b008d50fb7a0970d5d1a44 | [
"Apache-2.0"
] | null | null | null | Bot/get_info.py | dnrhead/mensa_bot | a10b04512219115894b008d50fb7a0970d5d1a44 | [
"Apache-2.0"
] | null | null | null | Bot/get_info.py | dnrhead/mensa_bot | a10b04512219115894b008d50fb7a0970d5d1a44 | [
"Apache-2.0"
] | null | null | null | from db_tools import get_all_user_and_mensas, get_all_mensa_subscriptions,\
get_users
users_mensas = get_all_user_and_mensas()
print("unique sending messages %d" % len(users_mensas))
print("unique users %d" % len(get_users()))
mensas = get_all_mensa_subscriptions()
print("unique mensas %d" % len(mensas))
print("... | 29.416667 | 75 | 0.767705 |
d6108461167974069c65c6a572584dc99e5f0b27 | 65 | py | Python | src/oceansat/commandline.py | brorfred/oceansat | 5b336e385ca5efee5e8c59da97e8f9435b0fd3de | [
"MIT"
] | null | null | null | src/oceansat/commandline.py | brorfred/oceansat | 5b336e385ca5efee5e8c59da97e8f9435b0fd3de | [
"MIT"
] | null | null | null | src/oceansat/commandline.py | brorfred/oceansat | 5b336e385ca5efee5e8c59da97e8f9435b0fd3de | [
"MIT"
] | null | null | null |
import oceansat
| 10.833333 | 31 | 0.738462 |
d6108b5fa4eb3387a55232b0c5fb47448ce7b83d | 2,915 | py | Python | tests/test_data_generators/test_generate.py | elenakulgavaya/fild | 8cfaa158d5c763d826a08f8edc6bde9c4ac96b69 | [
"MIT"
] | null | null | null | tests/test_data_generators/test_generate.py | elenakulgavaya/fild | 8cfaa158d5c763d826a08f8edc6bde9c4ac96b69 | [
"MIT"
] | null | null | null | tests/test_data_generators/test_generate.py | elenakulgavaya/fild | 8cfaa158d5c763d826a08f8edc6bde9c4ac96b69 | [
"MIT"
] | null | null | null | import unittest
from tests.data import AllowedNone, ComposeOptional, Mix, Optional
if __name__ == '__main__':
unittest.main()
| 34.294118 | 73 | 0.716295 |
d611269e7267ec4b426e96b22d2c98447876859d | 3,902 | py | Python | and_beyond/client/ui/accounts/create_account_menu.py | Gaming32/Pyweek32Sandbox | eb29f43f11644a9bbf756c0ff09c74d6ddc4d071 | [
"MIT"
] | 1 | 2021-09-27T11:33:37.000Z | 2021-09-27T11:33:37.000Z | and_beyond/client/ui/accounts/create_account_menu.py | Gaming32/and-Beyond | eb29f43f11644a9bbf756c0ff09c74d6ddc4d071 | [
"MIT"
] | null | null | null | and_beyond/client/ui/accounts/create_account_menu.py | Gaming32/and-Beyond | eb29f43f11644a9bbf756c0ff09c74d6ddc4d071 | [
"MIT"
] | null | null | null | import logging
from asyncio.events import AbstractEventLoop
from typing import TYPE_CHECKING
from and_beyond.client import globals
from and_beyond.client.ui import Ui, UiButton, UiLabel, UiTextInput
from and_beyond.client.ui.label_screen import LabelScreen
from and_beyond.common import USERNAME_REGEX
from zxcvbn impor... | 41.073684 | 112 | 0.636853 |
d61213ab7de50c9a60bac067952659cf38ee277c | 373 | py | Python | decode_can.py | awharkrider/CPSC_3320_HACK_A_CAR | 531bd170a9701808e1e348ff1de50a1c7a586414 | [
"MIT"
] | null | null | null | decode_can.py | awharkrider/CPSC_3320_HACK_A_CAR | 531bd170a9701808e1e348ff1de50a1c7a586414 | [
"MIT"
] | null | null | null | decode_can.py | awharkrider/CPSC_3320_HACK_A_CAR | 531bd170a9701808e1e348ff1de50a1c7a586414 | [
"MIT"
] | null | null | null | from pyvit.file.db import jsondb
from pyvit.hw import socketcan
parser = jsondb.JsonDbParser()
b = parser.parse('examples/example_db.json')
dev = socketcan.SocketCanDev('vcan0')
dev.start()
# Read in file and
# decode frame and print
while True:
frame = dev.recv()
signals = b.parse_frame(frame)
if si... | 17.761905 | 44 | 0.678284 |
d6125c1539b6dd4f0fdf3d0cb8cf22747f85dd3d | 17,224 | py | Python | Graficos.py | Dashboard-Plotly/Dashboard-CO2 | c96ae541cdc68dde6afe67a20dbb40ac86a27128 | [
"MIT"
] | null | null | null | Graficos.py | Dashboard-Plotly/Dashboard-CO2 | c96ae541cdc68dde6afe67a20dbb40ac86a27128 | [
"MIT"
] | null | null | null | Graficos.py | Dashboard-Plotly/Dashboard-CO2 | c96ae541cdc68dde6afe67a20dbb40ac86a27128 | [
"MIT"
] | null | null | null | #Importao das bibliotecas
from pandas import read_csv
from dash import Dash, html, dcc, Input, Output
import plotly.express as px
app = Dash(__name__, title='Emisso de CO2')
df = read_csv("annual-co2-emissions-per-country.csv")
df_array = df.values #Tranformando tudo o que estiver no df em uma lista para parar de u... | 43.38539 | 769 | 0.474106 |
d6128aaf87e5dbb02bad2f67476de3832d5e901a | 1,257 | py | Python | fastapi-master-api/app/service/metrics.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | 1 | 2021-12-25T09:19:25.000Z | 2021-12-25T09:19:25.000Z | fastapi-master-api/app/service/metrics.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | null | null | null | fastapi-master-api/app/service/metrics.py | SionAbes/fullstack-porfolio | 6ca74da425a0f6e2d9b65b2aeb8d5452ff1565a9 | [
"MIT"
] | null | null | null | from typing import List
from app.domain import metric as domain
from app.domain.user_token import LoggedUser
from app.repository.database.metrics import MetricsRepo, metrics_repo
from app.service.authorization import authorize
from sqlalchemy.orm import Session
| 25.653061 | 69 | 0.611774 |
d6169cbe2973f8bdef157451116e0006c93172c8 | 683 | py | Python | supriya/ugens/PV_BinScramble.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/PV_BinScramble.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | supriya/ugens/PV_BinScramble.py | deeuu/supriya | 14fcb5316eccb4dafbe498932ceff56e1abb9d27 | [
"MIT"
] | null | null | null | import collections
from supriya.ugens.PV_ChainUGen import PV_ChainUGen
| 22.032258 | 73 | 0.525622 |
d617cb53c1aff6113206c5e5d387df8dda280fca | 8,490 | py | Python | CS111_CS213/TreeGenerator/turtlegraphics.py | jawaff/CollegeCS | ab7d24bd78719842f8790cc0e6c06dd1b327e416 | [
"Apache-2.0"
] | null | null | null | CS111_CS213/TreeGenerator/turtlegraphics.py | jawaff/CollegeCS | ab7d24bd78719842f8790cc0e6c06dd1b327e416 | [
"Apache-2.0"
] | null | null | null | CS111_CS213/TreeGenerator/turtlegraphics.py | jawaff/CollegeCS | ab7d24bd78719842f8790cc0e6c06dd1b327e416 | [
"Apache-2.0"
] | null | null | null | """
turtlegraphics.py
This module supports simple Turtle Graphics. The Turtle class represents
a turtle object in a graphics window. To instantiate a turtle, enter
turtle = Turtle() # Default window size 200 x 200
or
turtle = Turtle(width = 500, height = 500) # Window size 500 x 500
The turtl... | 29.894366 | 76 | 0.596702 |
d6197c8f322c6e106cd13638291841c5e76b145d | 63 | py | Python | FilterTesting/parameters.py | nikobotics/QuadrotorTesting | 470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0 | [
"MIT"
] | null | null | null | FilterTesting/parameters.py | nikobotics/QuadrotorTesting | 470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0 | [
"MIT"
] | null | null | null | FilterTesting/parameters.py | nikobotics/QuadrotorTesting | 470f5dc9512b8dcce34bb1656b74fbf9c79c1dc0 | [
"MIT"
] | null | null | null | SIZE = 1000
NUM_SENSORS = 2
DETERMINE_EFFECTIVENESS_TRIALS = 10 | 21 | 35 | 0.825397 |
d619e59499d4ab2065147196c6ae2bffbc2f56cd | 4,310 | py | Python | traiders/backend/api/serializers/comment.py | rdilruba/bounswe2019group2 | b373908a4a8e92481f359297aba07245f0a23c1c | [
"Apache-2.0"
] | 11 | 2019-02-15T12:08:32.000Z | 2019-11-14T19:25:09.000Z | traiders/backend/api/serializers/comment.py | bounswe/bounswe2019group2 | 05d41cf7b6bc1b3f994e82495d2a885a6eaa7cf3 | [
"Apache-2.0"
] | 279 | 2019-02-13T14:57:39.000Z | 2022-03-12T00:02:30.000Z | traiders/backend/api/serializers/comment.py | rdilruba/bounswe2019group2 | b373908a4a8e92481f359297aba07245f0a23c1c | [
"Apache-2.0"
] | 13 | 2019-03-20T08:30:55.000Z | 2021-01-31T16:49:14.000Z | from rest_framework import serializers, fields
from rest_framework.exceptions import PermissionDenied
from ..models import ArticleComment, EquipmentComment, Equipment
from . import UserSerializer
| 38.828829 | 109 | 0.628306 |
d619e65c055a22f7471ea471a7d73c6dedb9a000 | 2,614 | py | Python | contrastive_dataloader.py | rajahaseeb147/Alzheimers_final | dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8 | [
"MIT"
] | null | null | null | contrastive_dataloader.py | rajahaseeb147/Alzheimers_final | dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8 | [
"MIT"
] | null | null | null | contrastive_dataloader.py | rajahaseeb147/Alzheimers_final | dd9b8607ec47b4317cb139e8c78c3c0b3c8ca1b8 | [
"MIT"
] | null | null | null | import os
import torch
import torch.utils.data as data
import torchvision.transforms as transform
import numpy as np
from PIL import Image
import cv2
if __name__ == '__main__':
dataset = AlzhDataset()
train_len = int(dataset.__len__() * 0.8)
valid_len = dataset.__len__() - train_len
train, valid = tor... | 35.324324 | 85 | 0.571155 |
d61b02e3c2cbe185d9b13c07deb6296c38aee33e | 3,346 | py | Python | resources/ganttChartDrawer.py | judgyknowitall/ethogram_maker | 605001243717bc6f10e32b24f09de2652b115676 | [
"MIT"
] | null | null | null | resources/ganttChartDrawer.py | judgyknowitall/ethogram_maker | 605001243717bc6f10e32b24f09de2652b115676 | [
"MIT"
] | null | null | null | resources/ganttChartDrawer.py | judgyknowitall/ethogram_maker | 605001243717bc6f10e32b24f09de2652b115676 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 27 12:05:33 2021
@author: Zahra Ghavasieh
Draws a Gantt chart given params
"""
# Importing the matplotlib.pyplot
import matplotlib.pyplot as plt
# Colours used for bars in chart
clrs = [
#'black', # Groom
'tab:orange', # In Place Activi... | 25.937984 | 89 | 0.559474 |
d61b385ee63fb2df0ad78f9cdd0a14b2fe85c71e | 367 | py | Python | setup.py | nontas/trafficsignrecognition | dcf0c2657c14098842ee5f9b9a5cf72be8be7d52 | [
"BSD-3-Clause"
] | null | null | null | setup.py | nontas/trafficsignrecognition | dcf0c2657c14098842ee5f9b9a5cf72be8be7d52 | [
"BSD-3-Clause"
] | 1 | 2017-03-25T10:07:28.000Z | 2017-03-28T08:34:41.000Z | setup.py | nontas/trafficsignrecognition | dcf0c2657c14098842ee5f9b9a5cf72be8be7d52 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='trafficsignrecognition',
version='0.1',
description="Traffic Sign Detection and Recognition",
author='Epameinondas Antonakos',
author_email='antonakosn@gmail.com',
packages=find_packages(),
install_requires=['menpofit>=0.4,<0.5',
... | 26.214286 | 57 | 0.667575 |
d61bab398771bbaa9398eaa8f2cd33b77ed4ebdf | 5,834 | py | Python | data-prep/Landsat/landsat-calculate-yearly-stats.py | jjmcnelis/VegMapper | 9513e121fa6495cf8f61d20908017412a73b1c2e | [
"Apache-2.0"
] | null | null | null | data-prep/Landsat/landsat-calculate-yearly-stats.py | jjmcnelis/VegMapper | 9513e121fa6495cf8f61d20908017412a73b1c2e | [
"Apache-2.0"
] | null | null | null | data-prep/Landsat/landsat-calculate-yearly-stats.py | jjmcnelis/VegMapper | 9513e121fa6495cf8f61d20908017412a73b1c2e | [
"Apache-2.0"
] | null | null | null | import os
import sys
import numpy as np
import rasterio
import dask
import dask.array as da
import certifi
import boto3
from botocore.exceptions import ClientError
"""
This file calculates yearly NDVI statistics (min, mean, max, standard deviation)
per pixel for Landsat tiles in an S3 bucket and outputs a .tif file. ... | 37.63871 | 120 | 0.631471 |
d61c05a3a19fdc413a5ccfadf754e3b2889f7b2e | 7,588 | py | Python | apps/fifth_edition/tests/test_NPC_view_get.py | tylerfrenchx13/django-dnd | b0c78c51aebeed4195fd91a3e55c313c645f9c3b | [
"MIT"
] | null | null | null | apps/fifth_edition/tests/test_NPC_view_get.py | tylerfrenchx13/django-dnd | b0c78c51aebeed4195fd91a3e55c313c645f9c3b | [
"MIT"
] | null | null | null | apps/fifth_edition/tests/test_NPC_view_get.py | tylerfrenchx13/django-dnd | b0c78c51aebeed4195fd91a3e55c313c645f9c3b | [
"MIT"
] | null | null | null | from apps.fifth_edition.models import NPC
from django.test import TestCase
from rest_framework.test import APIClient
| 30.845528 | 93 | 0.6136 |
d61c1827e9bee48f783ccf9d425e7b3db2637bbc | 815 | py | Python | conans/test/unittests/tools/microsoft/test_msbuild.py | thombet/conan | eee0d568ee631fffe1856a5da1c23f47dcdf5c1c | [
"MIT"
] | 1 | 2021-05-29T16:44:56.000Z | 2021-05-29T16:44:56.000Z | conans/test/unittests/tools/microsoft/test_msbuild.py | thombet/conan | eee0d568ee631fffe1856a5da1c23f47dcdf5c1c | [
"MIT"
] | 1 | 2019-06-07T03:02:02.000Z | 2019-06-07T03:02:02.000Z | conans/test/unittests/tools/microsoft/test_msbuild.py | thombet/conan | eee0d568ee631fffe1856a5da1c23f47dcdf5c1c | [
"MIT"
] | 1 | 2021-08-20T19:47:51.000Z | 2021-08-20T19:47:51.000Z | import textwrap
from conan.tools.microsoft import MSBuild
from conans.model.conf import ConfDefinition
from conans.test.utils.mocks import ConanFileMock, MockSettings
| 29.107143 | 63 | 0.6 |
d61c63b1dd316f86e8ffb3040c524a54af923622 | 3,549 | py | Python | main/tests/test_authentication.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 5 | 2021-08-16T16:32:41.000Z | 2022-02-22T03:47:49.000Z | main/tests/test_authentication.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 7 | 2021-04-12T14:48:48.000Z | 2022-02-14T08:30:57.000Z | main/tests/test_authentication.py | Code-and-Response/ISAC-SIMO-Repo-2 | 5b0cb0099e128dbacfdc53bf686ef2b069a51bc6 | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2021-04-28T14:28:34.000Z | 2021-04-28T14:28:34.000Z | from main.authorization import is_admin, is_guest, is_user
from django.contrib.messages.api import get_messages
from django.test.client import Client
from main.forms import LoginForm, RegisterForm
from main.models import User
from django.test import TestCase
from django.urls import reverse
| 51.434783 | 148 | 0.691744 |
d61c9be7e1ffc0dbe58eeae48ca58bb9133715d1 | 1,695 | py | Python | capturemelody.py | eashwar/super-midio-bros | e8572d257efa071b57b4c6107fab03427fa1b64e | [
"MIT"
] | null | null | null | capturemelody.py | eashwar/super-midio-bros | e8572d257efa071b57b4c6107fab03427fa1b64e | [
"MIT"
] | null | null | null | capturemelody.py | eashwar/super-midio-bros | e8572d257efa071b57b4c6107fab03427fa1b64e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
"""Contains an example of midi input, and a separate example of midi output.
By default it runs the output example.
python midi.py --output
python midi.py --input
"""
import sys
import os
import pygame
import pygame.midi
from pygame.locals import *
try: # Ensure set available for output exa... | 21.455696 | 76 | 0.585251 |
d61ecb31d1af9c59bf9f73777d714e9801f16ffd | 837 | py | Python | decide-tree/decide_prune.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | decide-tree/decide_prune.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | decide-tree/decide_prune.py | ubear/MachineLearn | c24947f7078269f51bf7ee0d2167ca6b71152d1e | [
"MIT"
] | null | null | null | #coding:utf-8
from decision_tree import *
if __name__ == '__main__':
from data import my_data
from build_dt_img import draw_tree
tree = build_tree(my_data)
draw_tree(tree, 'previous.jpg')
prune(tree, 1.0)
draw_tree(tree, 'next.jpg')
| 24.617647 | 66 | 0.561529 |
d61fdf22e164038147400e000aa5557c2c904a07 | 195 | py | Python | data_collection/gazette/spiders/sc_imbituba.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 454 | 2018-04-07T03:32:57.000Z | 2020-08-17T19:56:22.000Z | data_collection/gazette/spiders/sc_imbituba.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 254 | 2020-08-18T14:09:43.000Z | 2022-03-28T11:30:51.000Z | data_collection/gazette/spiders/sc_imbituba.py | kaiocp/querido-diario | 86004049c6eee305e13066cf3607d30849bb099a | [
"MIT"
] | 183 | 2018-04-11T15:09:37.000Z | 2020-08-15T18:55:11.000Z | from gazette.spiders.base.fecam import FecamGazetteSpider
| 24.375 | 57 | 0.769231 |
d624afc005581dffbfc08e82838a1665027d366a | 12,517 | py | Python | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null | 1/feature.py | houzeyu2683/NCKUCSIEIIR | 5289de95caed724b395136fcfc8e44fc522aad68 | [
"MIT"
] | null | null | null |
import cv2
import cv2
import pandas
import numpy
# from skimage.metrics import structural_similarity
# def compare(group, by):
# cache = {'by':by, "score":[]}
# for index, item in group.iterrows():
# if(index==0):
# objective = {}
# objective['image'] =... | 33.026385 | 132 | 0.502596 |
d624ba8318c597ce97853f834699f104f42b757d | 545 | py | Python | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | server/apps/posts/models.py | arthamtrust/backend | d1981766297b1cf2888b37af927f69fde750a23e | [
"MIT"
] | null | null | null | from django.db import models
| 22.708333 | 64 | 0.638532 |
d62529fa1e4bca329d5371d9c6d83cde2120ae8f | 251 | py | Python | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | 2 | 2020-04-27T19:54:26.000Z | 2022-03-30T10:06:29.000Z | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | null | null | null | demos/sysmon/schema/queries/__init__.py | rob-blackbourn/bareasgi-graphql | 84e46f4e082630973a275b44811ef1136bbde418 | [
"Apache-2.0"
] | null | null | null | """
GraphQL queries
"""
from graphql import GraphQLObjectType
from .system_queries import LatestQuery
# pylint: disable=invalid-name
RootQueryType = GraphQLObjectType(
name='Queries',
fields=lambda: {
'latest': LatestQuery,
}
)
| 15.6875 | 39 | 0.705179 |
d628384096a682a0c64ae1ad0b4d5405798588dd | 4,781 | py | Python | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | code/bert_utils/bert_utils_simplify_v2/data_loader.py | InscribeDeeper/Text-Classification | 9cd3def58b5bd4b722a5b8fdff60a07d977234aa | [
"MIT"
] | null | null | null | import re
from tensorflow.keras.utils import to_categorical
from collections import Counter
import pandas as pd
import torch
from sklearn.model_selection import train_test_split, StratifiedKFold
from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler
import numpy as np
###############... | 45.971154 | 242 | 0.708011 |
d628eb2618c4fa8efe97f0a1814ba041871e5417 | 9,733 | py | Python | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | null | null | null | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | null | null | null | prometheus_metrics.py | lesykm/healthstats-collector | fb81a6938ab9ae0ff3408642d0d06e2869454a6f | [
"MIT"
] | 1 | 2021-12-23T19:10:39.000Z | 2021-12-23T19:10:39.000Z | import datetime
import os
import pytz
from prometheus_client import CollectorRegistry, Gauge, pushadd_to_gateway
| 39.245968 | 98 | 0.636803 |
d62a7b5bab3d8a5d3f5a1aff360bc9d1b2ac9814 | 2,305 | py | Python | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell-tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | 1 | 2021-08-13T20:40:54.000Z | 2021-08-13T20:40:54.000Z | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | tests/pymcell4_positive/2660_get_current_rxn_count_on_demand_only/observables.py | mcellteam/mcell_tests | 34d2d967b75d56edbae999bf0090641850f4f4fe | [
"MIT"
] | null | null | null | import mcell as m
from parameters import *
from subsystem import *
from geometry import *
# ---- observables ----
viz_output = m.VizOutput(
mode = m.VizMode.ASCII,
output_files_prefix = './viz_data/seed_' + str(get_seed()).zfill(5) + '/Scene',
every_n_timesteps = 1
)
count_a_Cube1 = m.Count(
name = ... | 22.598039 | 102 | 0.688503 |
d62a8b24a611540b7442ff5bbdf17e7e9ceae229 | 1,372 | py | Python | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | custom_logger.py | LC-Duarte/pytil | 271b4e8dee408b586fbd741511116726e10d1fc0 | [
"MIT"
] | null | null | null | #custom_logger.py
#Leonardo Duarte
import logging
#Logging levels
INFO = logging.INFO
DEBUG = logging.DEBUG
WARNING = logging.WARNING
ERROR = logging.ERROR
| 26.384615 | 121 | 0.560496 |
d62b77751af6dbe89d65c59649c018081395e8a3 | 4,403 | py | Python | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 125 | 2015-03-04T09:14:46.000Z | 2022-03-29T07:46:12.000Z | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 1,018 | 2015-01-04T16:01:29.000Z | 2022-03-31T19:23:09.000Z | CPAC/utils/ga.py | gkiar/C-PAC | 0926b451dd8622b25eb68c7bcc770f0156238b23 | [
"BSD-3-Clause"
] | 117 | 2015-01-10T08:05:52.000Z | 2022-01-18T05:16:51.000Z | import configparser
import os
import os.path as op
import requests
import tempfile
import threading
import traceback
import uuid
from CPAC.info import __version__, ga_tracker
udir = op.expanduser('~')
if udir=='/':
udir = tempfile.mkdtemp()
temp_dir = True
tracking_path = op.join(udir, '.cpac')
def track... | 25.16 | 77 | 0.556893 |
d62bdce02dfde4fdc7a6daa118d20a03c2cdd67f | 47 | py | Python | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | src/TEMPer_USB/temper-python-master/temperusb/__init__.py | resolutedreamer/EE199 | 4a18ca64cc414fd33f35794cea2abc8d7c224deb | [
"Apache-2.0"
] | null | null | null | from temper import TemperDevice, TemperHandler
| 23.5 | 46 | 0.87234 |
d62f4ad8fee791fde617fe8a8fcaa03316e1676c | 894 | py | Python | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 25 | 2018-04-12T15:56:47.000Z | 2021-05-17T04:31:20.000Z | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 72 | 2017-06-21T10:59:05.000Z | 2018-03-22T08:52:18.000Z | tests/api/conftest.py | ggardet/mr-provisioner | 8a57806e702d9953a3af304fe52dec8e5de25aff | [
"ECL-2.0",
"Apache-2.0"
] | 13 | 2017-06-16T08:17:03.000Z | 2019-10-03T09:49:46.000Z | import pytest
from mr_provisioner.models import Token
from werkzeug.datastructures import Headers
| 23.526316 | 59 | 0.715884 |
d630e32828aaab8dd2ad6bfc505ea6fcac010e08 | 7,509 | py | Python | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | 2 | 2017-10-12T03:01:21.000Z | 2022-02-03T01:15:20.000Z | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | null | null | null | pirate.py | bobbyluig/pirate | f9b17a652eb475c0057aa556e428e38ebe808172 | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup
import json
from urllib import parse
from datetime import datetime
import time
credentials = {
'kerberos': '',
'password': '',
'device': 'phone1',
'passcodes': []
}
give_pirate(['PE.0608-3', 'PE.0608-6'], credentials, 1485954000) | 27.108303 | 104 | 0.536023 |
d631ffddb2895fc51dd1aaa5d9e97af2b59d8562 | 3,763 | py | Python | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 8 | 2020-04-29T04:59:45.000Z | 2022-03-20T01:26:21.000Z | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 2 | 2021-04-30T21:12:58.000Z | 2022-03-21T22:18:50.000Z | src/modeling/metrics.py | zahrahosseini99/fever2-columbia | 0859c005a960c144de903a095d480fe8c131754a | [
"Apache-2.0"
] | 4 | 2020-05-05T01:18:34.000Z | 2022-03-22T07:20:12.000Z | from typing import Optional
from overrides import overrides
import numpy as np
import torch
from allennlp.training.metrics.metric import Metric
| 37.257426 | 158 | 0.570821 |
d6334e66d12b35aa3a34254a0681cdb454e2df42 | 928 | py | Python | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | 1 | 2020-06-15T18:47:26.000Z | 2020-06-15T18:47:26.000Z | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | null | null | null | SPC/Files/login.py | yadavsuraj20/spc | 442d88c748633d00a6f1db2a3069feb4ac3f45b7 | [
"BSD-3-Clause"
] | 3 | 2020-06-07T04:46:10.000Z | 2020-07-04T12:04:22.000Z | import requests
import getpass
import pickle
import os
import sys
# import webbrowser
# import time
home = os.path.expanduser('~/SPC')
# print(home)
# $ip=$_SERVER['REMOTE_ADDR']
if os.path.isfile(home+'/Pickles/url.pkl'):
fp = open(home+'/Pickles/url.pkl','rb')
url = pickle.load(fp)
else:
exit("First set the serve... | 24.421053 | 60 | 0.682112 |
d633c093faac664c8098b15521bd8dae8ec5b536 | 565 | py | Python | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | null | null | null | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | null | null | null | ci/fetch_pysteps_data.py | pySTEPS/pysteps_tutorials | aeb7cf92603c9b72bf6e80d0870a10daac3a4923 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T08:10:11.000Z | 2022-03-08T08:10:11.000Z | """
Install the pysteps data in a test environment and create a pystepsrc
configuration file pointing to that data.
"""
if __name__ == "__main__":
import argparse
from pysteps.datasets import create_default_pystepsrc, download_pysteps_data
parser = argparse.ArgumentParser(description="Install pysteps data... | 29.736842 | 80 | 0.750442 |
d6353235caf92485faaed3962ae13a7db0c3c200 | 4,723 | py | Python | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | 2 | 2019-12-24T13:56:44.000Z | 2020-05-21T23:23:16.000Z | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | 1 | 2020-01-05T16:30:07.000Z | 2020-01-19T14:19:55.000Z | core/commander.py | brant-ruan/IDF4APEV | b5ca7be867a8720ae8eccefb6c9f49c3d53e6888 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
@File : commander.py
@Time : 2019-04-20 11:04
@Author : Bonan Ruan
@Desc :
"""
from core.executer import Executer
from core.builder import Builder
from core.poc_manager import PoCManager
import utils.utils as utils
import utils.consts as consts
import time
... | 32.798611 | 87 | 0.56913 |
d6357aa58a908129b11e43500c1352a82061c155 | 221 | py | Python | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | simple_fun_#8_kill_kth_bit.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | #Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Simple Fun #8: Kill K-th Bit
#Problem level: 7 kyu
| 20.090909 | 43 | 0.574661 |
d63694f86e4ed918545d1903e9b03048a216a8c1 | 11,872 | py | Python | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 309 | 2018-03-03T22:07:59.000Z | 2022-03-26T08:15:58.000Z | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 125 | 2018-02-27T22:54:03.000Z | 2021-11-05T10:50:15.000Z | notebooks/Easily_creating_MAB_problems.py | balbok0/SMPyBandits | c8ff765687989e0c20ab42c2e2e1d8440923225b | [
"MIT"
] | 60 | 2018-04-30T20:54:24.000Z | 2022-02-21T22:41:46.000Z |
# coding: utf-8
# # Table of Contents
# <p><div class="lev1 toc-item"><a href="#Easily-creating-MAB-problems" data-toc-modified-id="Easily-creating-MAB-problems-1"><span class="toc-item-num">1 </span>Easily creating MAB problems</a></div><div class="lev2 toc-item"><a href="#Constant-arms" data-toc-modifie... | 29.754386 | 2,979 | 0.667284 |
d637a2b8924bbeab40c70b956e11139d73b51255 | 24,464 | py | Python | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | scripts/pathlines_working_2_panel_10.py | alexkaiser/heart_valves | 53f30ec3680503542890a84949b7fb51d1734272 | [
"BSD-3-Clause"
] | null | null | null | # state file generated using paraview version 5.8.0
# ----------------------------------------------------------------
# setup views used in the visualization
# ----------------------------------------------------------------
# trace generated using paraview version 5.8.0
#
# To ensure correct image size when batch p... | 46.333333 | 209 | 0.768762 |
d63812b8fe6e16b469f6f47a426cfd5513175e5a | 1,642 | py | Python | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | null | null | null | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | 9 | 2021-04-01T17:10:50.000Z | 2022-03-24T04:58:44.000Z | filter_plugins/filter_for_dict_list.py | link-u/ansible-roles-v2_php7 | f0572912d80f5660401878c69bb2836e960d1819 | [
"MIT"
] | null | null | null | from ansible.errors import AnsibleError
| 34.93617 | 118 | 0.576736 |
d63938f44216c738332a0d7aa25f8974f8dd7bb6 | 309 | py | Python | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | 5 | 2021-03-10T21:22:31.000Z | 2022-03-23T04:38:07.000Z | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | 59 | 2021-02-13T10:08:23.000Z | 2022-03-14T19:43:55.000Z | tests/functional/en_ABBR/test_numbers.py | staticdev/human-readable | 1c3328560f9b8097e1bc3ec6fceefa486c264fd5 | [
"MIT"
] | null | null | null | """Tests for ru_RU numbers humanizing."""
from pytest_mock import MockerFixture
import human_readable
def test_int_word(activate_en_abbr: MockerFixture) -> None:
"""It returns int word number."""
expected = "12.3 B"
result = human_readable.int_word(12345591313)
assert result == expected
| 22.071429 | 59 | 0.731392 |
d63d3dd54daeaac526e70dbb33215bb44fc3d009 | 733 | py | Python | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | 2 | 2020-08-08T02:02:04.000Z | 2020-12-22T09:12:09.000Z | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | null | null | null | csdnpaper/csdnpaper/pipelines.py | sy2616/DATA | 8d2314b23c9757c8f54a85a01b451aaa29054912 | [
"Apache-2.0"
] | null | null | null | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
from scrapy.pipelines.files import FilesPipeli... | 31.869565 | 66 | 0.721692 |
d63de35a7cbc93490b36f2a69557bc91a57c22d4 | 633 | py | Python | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 17 | 2020-06-13T15:05:55.000Z | 2022-03-16T18:28:53.000Z | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | null | null | null | python/merge_2_sorted_lists.py | anishLearnsToCode/leetcode-algorithms | d5a84e9179a4c3427890313a933fe1950fbcdabc | [
"MIT"
] | 9 | 2020-12-27T19:17:58.000Z | 2022-03-22T07:02:19.000Z | # Definition for singly-linked list.
| 26.375 | 68 | 0.537125 |
d6402fece1eb7235af268a48c88cea7e7009af96 | 1,778 | py | Python | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 3 | 2021-02-25T06:38:13.000Z | 2022-03-22T07:00:15.000Z | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | null | null | null | pirates/leveleditor/worldData/pvpTestv2.py | itsyaboyrocket/pirates | 6ca1e7d571c670b0d976f65e608235707b5737e3 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T06:38:17.000Z | 2021-02-25T06:38:17.000Z | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.leveleditor.worldData.pvpTestv2
from pandac.PandaModules import Point3, VBase3
objectStruct = {'Objects': {'1128540775.81jubutle... | 296.333333 | 1,507 | 0.662542 |
d64364d5d663ab2f6e187dde65f5c3f8303a30c3 | 954 | py | Python | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:22.000Z | 2021-11-19T02:56:22.000Z | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T03:42:58.000Z | 2022-03-29T16:32:16.000Z | paperscraper/6-get_unique_authors.py | ahmed-shariff/scraper | 52bed967db7e08e438daaa8dfa8d9338567ad7c2 | [
"MIT"
] | 1 | 2021-11-19T02:56:28.000Z | 2021-11-19T02:56:28.000Z | # External packages
import sys
import pandas as pd
import ast
import os
# Internal modules
import paperscraper.config as config
if __name__ == "__main__":
main()
sys.exit(os.EX_OK) # code 0, all ok
| 26.5 | 116 | 0.659329 |
d64364dcbe1dd315e49d5ec2ee8c732d5c9f2c9d | 2,511 | py | Python | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 14 | 2020-06-05T09:30:42.000Z | 2022-01-19T00:26:48.000Z | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 6 | 2020-06-09T14:05:21.000Z | 2021-03-18T13:55:15.000Z | src/tiden/tidenfabric.py | mshonichev/example_pkg | 556a703fe8ea4a7737b8cae9c5d4d19c1397a70b | [
"Apache-2.0"
] | 1 | 2020-06-09T13:53:15.000Z | 2020-06-09T13:53:15.000Z | #!/usr/bin/env python3
#
# Copyright 2017-2020 GridGain Systems.
#
# 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... | 30.253012 | 117 | 0.685384 |
d64587d60e9a4f706954810829075388a9ad602e | 7,453 | bzl | Python | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | package_managers/download_pkgs.bzl | mikekamornikov/base-images-docker | 10df42be69f0c4afc87f0df9a0b35fcfb43b5854 | [
"Apache-2.0"
] | null | null | null | #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 agree... | 36.179612 | 166 | 0.700255 |
d646dec8e4a9b46e4c87b603db2467ff487bbb88 | 765 | py | Python | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | 1 | 2019-11-14T06:12:43.000Z | 2019-11-14T06:12:43.000Z | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | null | null | null | src/app.py | Gscienty/openfaas_wechat | 9c959228e3a87d6857876ce1c0f33f527dd0f67e | [
"MIT"
] | null | null | null | from flask import Flask, request, abort, jsonify
import wechat_sec, http_util
import sys
import os
import logging
app = Flask(__name__)
app.logger.setLevel(logging.NOTSET)
| 28.333333 | 109 | 0.682353 |
d6483a58a24b696782a730062dce4d1c9a9cbd47 | 23,517 | py | Python | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | archivebot.py | Botomatik/JackBot | 58651d8b5a5bcead2a2eb79849019cb4f972b7cd | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
archivebot.py - discussion page archiving bot.
usage:
python archivebot.py [OPTIONS] TEMPLATE_PAGE
Bot examines backlinks (Special:Whatlinkshere) to TEMPLATE_PAGE.
Then goes through all pages (unless a specific page specified using options)
and archives old discu... | 38.115073 | 111 | 0.551346 |
d649dcfccb6ac131b6a60ee86fa69ca48bf06995 | 1,911 | py | Python | tests/commands/test_render_workflow_graph.py | SebastianKapunkt/joeflow | fbec6685d9d5fb2a4e3db92a9ca6e58cf5a4bce8 | [
"BSD-3-Clause"
] | 46 | 2019-01-29T18:23:38.000Z | 2022-02-03T12:47:16.000Z | tests/commands/test_render_workflow_graph.py | codingjoe/galahad | ee52b81a8df868e5ab050345550596dbdcd23d5f | [
"BSD-3-Clause"
] | 34 | 2019-10-11T03:42:56.000Z | 2022-03-11T15:51:28.000Z | tests/commands/test_render_workflow_graph.py | codingjoe/galahad | ee52b81a8df868e5ab050345550596dbdcd23d5f | [
"BSD-3-Clause"
] | 11 | 2020-04-22T07:17:16.000Z | 2022-02-15T08:44:47.000Z | import os
import tempfile
from pathlib import Path
from django.core.management import call_command
| 34.125 | 88 | 0.710623 |
d64a3ccc83969aa669a9917a8a8c8e9feb5b0a3c | 276 | py | Python | apps/core/migrations/0003_delete_stat.py | vanyakosmos/memes-reposter | 7bcd1117a81777f0662bcca38690de0c0404dbfa | [
"MIT"
] | 26 | 2019-01-19T21:07:57.000Z | 2022-03-07T16:07:52.000Z | apps/core/migrations/0003_delete_stat.py | BinaryWorld0101201/memes-reposter | de2be9a07d1197100dc9204fdcc78767fe4f4b71 | [
"MIT"
] | 7 | 2020-02-11T22:59:44.000Z | 2021-06-21T07:44:56.000Z | apps/core/migrations/0003_delete_stat.py | BinaryWorld0101201/memes-reposter | de2be9a07d1197100dc9204fdcc78767fe4f4b71 | [
"MIT"
] | 9 | 2018-09-21T06:38:08.000Z | 2022-01-26T11:57:28.000Z | # Generated by Django 2.0.3 on 2018-07-15 11:32
from django.db import migrations
| 16.235294 | 47 | 0.576087 |
d64b6639d9b15bb12a5418375591fa34cf7ab5c4 | 1,416 | py | Python | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0039_auto_20200722_1610.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-07-22 16:10
from django.db import migrations, models
import django.db.models.deletion
| 30.782609 | 213 | 0.58404 |
d64d34e571746e4e8b7826386ea1af2de18078b2 | 9,914 | py | Python | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | scripts/cbparse.py | maspadaru/starbench | 7230ddcaa5e202f63978d96baa71c31e111ba4f8 | [
"Apache-2.0"
] | null | null | null | import string
import sys
import os
OPERATOR_BOX = "B"
OPERATOR_DIAMOND = "D"
def validate_percentages(percent_box, percent_diamond, percent_event):
if percent_box > 100 or percent_diamond > 100 or percent_event > 100:
print("Percentages should not be larger than 100")
return False
if ... | 33.268456 | 95 | 0.587452 |
d64dbb66dc28a89025281d71ffc0283bc9c1aa67 | 1,279 | py | Python | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | 21.py | oliver-johnston/advent-of-code-2019 | c8774ac98fa0ea861887c35fcae1da3d0435dda4 | [
"MIT"
] | null | null | null | import intcode
Springdroid(["OR A J", # J = land at A
"AND C J", # J = land at A and C
"NOT J J", # J = hole at A or C
"AND D J", # J = (hole at A or C) and land at D
"WALK"]).run()
Springdroid(["OR A J", # J = land at A
"AND B J", # J = land at A a... | 29.744186 | 86 | 0.487099 |
d64e30f234f26d2076908cbc1a63b9953e0bde12 | 694 | py | Python | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | 4 | 2019-05-23T19:55:09.000Z | 2019-06-12T19:24:12.000Z | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | 1 | 2019-09-04T13:41:08.000Z | 2019-09-23T16:29:31.000Z | thread_support.py | loretoparisi/python-threading | f06f809fd830e3e930bbc748df6f6217e03ad6c2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019 loretoparisi@gmail.com
#
from functools import wraps
from .bounded_pool_executor import BoundedThreadPoolExecutor
from .bounded_pool_executor import BoundedProcessPoolExecutor
_DEFAULT_POOL = BoundedThreadPoolExecutor(max_workers=5)
_PROCESS_POOL = Bou... | 25.703704 | 69 | 0.729107 |
d64f415897e749c6aa56a242b90bd89c895e2511 | 87 | py | Python | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | protocolws/__init__.py | panmpan17/ProtocolWebsocket | 05893ab47883fec4356f2f617213093eb7d9b4df | [
"MIT"
] | null | null | null | from .server import WebsocketServer, ErrMsg
name = "protocolws"
__version__ = "0.2.1"
| 17.4 | 43 | 0.747126 |
d64f495619cee232c074671c5f339c49c18f602c | 1,290 | py | Python | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | download_images.py | lastcoolnameleft/whisky-training | 1a8eb24942f65ab3055357bfbfca9eca6d2a93be | [
"MIT"
] | null | null | null | import requests
import pprint
import os
import csv
import sys
import urllib.request
scotch_csv = sys.argv[1]
subscription_key = sys.argv[2]
search_url = "https://api.cognitive.microsoft.com/bing/v7.0/images/search"
scotch_list = []
with open(scotch_csv, newline='') as csvfile:
reader = csv.reader(csvfile, delimit... | 30 | 74 | 0.651163 |
d6507e0f90b1d3d5abb107c0a6671d5183fb8865 | 38 | py | Python | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | null | null | null | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 2 | 2020-08-23T17:23:28.000Z | 2021-04-01T18:32:11.000Z | srcfmailmanwrapper/__init__.py | danielchriscarter/srcf-python | a7143afd5340338094131a51f560efcd874457d2 | [
"MIT"
] | 3 | 2021-01-12T00:06:39.000Z | 2021-09-26T23:31:15.000Z | from . import util
__all__ = ["util"]
| 12.666667 | 18 | 0.657895 |
d65139b8e3aa8a1bba1c0eb4a22dccde013dd9a9 | 2,007 | py | Python | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | src/vuabl/parsing/data_from_other_asset.py | CncealDVRflectN/vuabl | 1c1f3270d4ad4b730ec9558b65b2f6ea84a5bd50 | [
"MIT"
] | null | null | null | from vuabl.data.data_from_other_asset import DataFromOtherAsset
from vuabl.utils.layout_reader import LayoutReader
import vuabl.parsing.parameters as pparamrs
import vuabl.parsing.asset_type as pasttp
import re
| 30.876923 | 99 | 0.673144 |
d655a42e44e0f08cda3777efc3dd6716b3147a5f | 7,132 | py | Python | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | 1 | 2020-10-26T11:53:57.000Z | 2020-10-26T11:53:57.000Z | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | null | null | null | server/main.py | leemengtaiwan/exbert | 63f1d4503f491c87392626e4c0f1f91cae698228 | [
"Apache-2.0"
] | 1 | 2020-05-10T15:07:27.000Z | 2020-05-10T15:07:27.000Z | import argparse
from attention_details import (
AttentionDetailsData,
get_token_info,
add_token_info,
)
from pytorch_pretrained_bert import BertModel, BertTokenizer
from flask import render_template, redirect, send_from_directory
from flask_cors import CORS
from utils.mask_att import strip_attention
impo... | 31.839286 | 153 | 0.654655 |
d655e83658bafc1ab331f6546dc484f06d66abeb | 17,119 | py | Python | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 622 | 2015-01-15T19:46:06.000Z | 2022-03-22T13:40:22.000Z | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 118 | 2015-01-04T06:38:23.000Z | 2021-11-05T17:28:02.000Z | bayespy/utils/tests/test_misc.py | dungvtdev/upsbayescpm | f6ee877c689046d3c57a2ac06742cfe4a0b6550e | [
"MIT"
] | 160 | 2015-02-16T15:30:43.000Z | 2022-03-14T00:52:36.000Z | ################################################################################
# Copyright (C) 2013 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Unit tests for bayespy.utils.misc module.
"""
import unittest
im... | 32.545627 | 80 | 0.356388 |
d657cea0bec4ccf577d4498c272dbcb1c60618ac | 1,948 | py | Python | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | 1 | 2021-03-19T03:29:06.000Z | 2021-03-19T03:29:06.000Z | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | 3 | 2020-10-21T13:54:32.000Z | 2020-10-26T19:05:41.000Z | tronos/manual-tracker.py | danilexn/tronos | 64852cc41fba51271470f0c424c60c7587ff9f0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# This is a VERY simple and naive manual tracker.
# If you need something more powerful, Fiji is
# absolutely recommended.
# Generic
import argparse
import csv
import numpy as np
import sys
import os
# Imaging and visualization
from PIL import Image
import matplotlib.pyplot as plt
# Functions... | 22.136364 | 101 | 0.602669 |
d6584c6c8dc3a1da47bd7f7cc1f456060ecc5d05 | 234 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 117 | 2019-09-01T11:59:19.000Z | 2020-07-14T11:10:08.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/telegram_bot/TelegramBotFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2020-04-06T15:21:23.000Z | 2020-05-07T04:29:53.000Z | from Jumpscale import j
from .TelegramBotClient import TelegramBot
JSConfigs = j.baseclasses.object_config_collection
| 23.4 | 50 | 0.816239 |
d6587d85df1f828c5ddbfdc7e6f01ce7674777d7 | 10,750 | py | Python | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | tests/test_transfer.py | ivomastre/python-swift-cloud-tools | 1edf440d1bf96c423b0a349bc8a0215897427fa5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Grupo Globo
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 32.379518 | 257 | 0.619628 |
d658c086729548623c04cfdeea90310116c48dcd | 5,568 | py | Python | data_preparation/align_caricature_data.py | wendychen0521/DualStyleGAN | d04c665d800a0fae933c234ad9da17a96cb57c07 | [
"MIT"
] | 488 | 2022-03-20T08:36:40.000Z | 2022-03-31T22:58:54.000Z | data_preparation/align_caricature_data.py | Guttappa1238/DualStyleGAN | 67751d90d1a23358f6cbe5d23e3475cbe2cebff2 | [
"MIT"
] | 10 | 2022-03-20T13:04:10.000Z | 2022-03-31T14:39:47.000Z | data_preparation/align_caricature_data.py | Guttappa1238/DualStyleGAN | 67751d90d1a23358f6cbe5d23e3475cbe2cebff2 | [
"MIT"
] | 70 | 2022-03-20T08:53:27.000Z | 2022-03-31T05:15:58.000Z | import numpy as np
import scipy.ndimage
import os
import PIL.Image
txtpath = './caricature.txt'
lmpath = './WebCaricature/FacialPoints/'
impath = './WebCaricature/OriginalImages/'
outpath = './Caricature/'
if __name__ == "__main__":
if not os.path.exists(outpath):
os.makedirs(outpath)
f = open(txtpath,'r')
... | 44.544 | 169 | 0.547055 |
d65a40564489076d2504ca869d13f4f429ac3159 | 5,153 | py | Python | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | src/rcpicar/util/argument.py | franzmandl/rcpicar | f847f918862edd3ad1ca9b00b845e61b52500ca7 | [
"MIT"
] | null | null | null | from __future__ import annotations
from abc import ABC, abstractmethod
from argparse import ArgumentParser, MetavarTypeHelpFormatter
from sys import version_info
from typing import Any, Callable, Dict, Generic, Iterable, Mapping, Optional, Sequence, Tuple, Type, TypeVar
if version_info >= (3, 8):
from typing import... | 32.821656 | 117 | 0.653406 |
d65b3ae9db9f669f24fe5f8904d09f18ade80dc9 | 693 | py | Python | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | lib/utils/folderdeleter.py | RDCEP/hybrid-dile-server | c998432756ecf3a75c6339aa25d1c4a9866aa1e7 | [
"Apache-2.0"
] | null | null | null | import boto
import boto.s3
from misc import printProgress, pathLeaf
idkeypath = '/home/ubuntu/.s3/AWS_ACCESS_KEY_ID'
secretkeypath = '/home/ubuntu/.s3/AWS_SECRET_ACCESS_KEY'
bucketname = 'edu-uchicago-rdcep-diles'
folder = ''
with open(idkeypath) as myfile:
id_access_key = myfile.read().replace('\n',... | 21.65625 | 57 | 0.727273 |
c38706caa52372bd80ca5ff9d1179f9716376ef6 | 4,170 | py | Python | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 52 | 2020-02-06T06:18:52.000Z | 2022-02-23T07:21:46.000Z | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 5 | 2020-11-20T11:26:23.000Z | 2021-12-01T14:22:44.000Z | Classifier/data/process_data.py | vigilancetrent/chatbot-advanced | 2e0c72c4df2e1434da995b7105f8f0414aba6248 | [
"Apache-2.0"
] | 20 | 2020-01-14T05:01:39.000Z | 2021-12-02T23:28:02.000Z | import pickle
import sys
sys.path.append("../../") # nopep8
from Sentence_Encoder.meta_query_encoder import encode
import tensorflow.compat.v1 as tf
import tensorflow_text
import tensorflow_hub as hub
import numpy as np
tf.disable_eager_execution()
sess = tf.InteractiveSession(graph=tf.Graph())
ConvRT_model = hub.Mo... | 28.175676 | 121 | 0.631415 |
c3892365eea6eb09110211a34cc5ac5c7a48f371 | 2,616 | py | Python | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | 1 | 2020-08-04T04:36:05.000Z | 2020-08-04T04:36:05.000Z | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | null | null | null | topojoin/cli.py | SimmonsRitchie/topojoin | 5c5848ae05a249c38babdc449dbd89df1b644b61 | [
"MIT"
] | null | null | null | """Console script for topojoin."""
import os
import sys
from pathlib import Path
import click
from topojoin.topojoin import TopoJoin
from typing import Union, Dict, Any
if __name__ == "__main__":
sys.exit(main()) # pragma: no cover
| 27.536842 | 104 | 0.635321 |
c389e2c1ae91273e918a68d04e0d2427360ed8c8 | 16,112 | py | Python | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | empowermentexploration/models/visualization.py | franziskabraendle/alchemy_empowerment | 83655daff99ea5dbada196fdf7ae21781cbb241e | [
"MIT"
] | null | null | null | import empowermentexploration.utils.data_handle as data_handle
import empowermentexploration.utils.helpers as helpers
import matplotlib as mpl
import matplotlib.colors as c
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
from scipy.stats import sem
mpl.use('Agg')
| 51.312102 | 231 | 0.602781 |
c38a83e6b2c88a03120a4896e9b8292e72824900 | 1,186 | py | Python | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | src/pybind.py | disenone/pybind | e63a849066596e25f489bac06a77ccc7ad41827f | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*
import os
import sys
import util
| 28.238095 | 100 | 0.584317 |
c38ac124aa00145b8a036028e35c373f39315aa7 | 5,917 | py | Python | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | 1 | 2021-06-16T11:42:32.000Z | 2021-06-16T11:42:32.000Z | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | null | null | null | pyzoo/zoo/chronos/autots/model/auto_prophet.py | cabuliwallah/analytics-zoo | 5e662bd01c5fc7eed412973119594cf2ecea8b11 | [
"Apache-2.0"
] | null | null | null | # +
#
# Copyright 2018 Analytics Zoo 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 or agree... | 44.825758 | 99 | 0.616022 |
c38ac90ca808d2dd0ca78ec136aaa0e419c7ab9a | 88 | py | Python | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | CodeUP/Python basic 100/6081.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | n = int(input(),16)
for i in range(1,16):
print("%X"%n,"*%X"%i,"=%X"%(n*i),sep="")
| 17.6 | 44 | 0.454545 |
c38bc899014dd58543369ec2535371a13a21d780 | 129 | py | Python | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | null | null | null | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | 7 | 2020-06-06T01:14:59.000Z | 2022-02-10T09:21:28.000Z | sapi_app/admin.py | calixo888/sapi | a2ff327795a7ea088cb158f7738af9121e465a08 | [
"MIT"
] | null | null | null | from django.contrib import admin
from . import models
admin.site.register(models.APIKey)
admin.site.register(models.JSONRecord)
| 21.5 | 38 | 0.821705 |
c38be7eb99340230dc41782be5bfea2761dd7514 | 4,882 | py | Python | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | 1 | 2021-07-15T12:06:03.000Z | 2021-07-15T12:06:03.000Z | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | null | null | null | process-data.py | RE-Lab-Projects/TRY_DE_2015_2045 | 419c665fd0f693accd5fc72ab352f0b53b1d1008 | [
"MIT"
] | null | null | null | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
import pandas as pd
import glob
import os
# %%
# Read and format raw data and save to csv
# Pattern for the dataset names: TRY_[1-15]_[a,w,s]_[2015,2045] with
# 1-15 -> test reference region number
# a,w,s -> average, extreme w... | 55.477273 | 152 | 0.447358 |
c38cd67552cc0c16f9183da6e9feae5e2b7e61f8 | 1,100 | py | Python | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | twelve-days/twelve_days.py | Isaac-Tolu/exercism-python | 17c26b446e1f79a24daf6736dcf9982c16d06c50 | [
"MIT"
] | null | null | null | structure = [
('first', 'a Partridge in a Pear Tree.'),
('second', 'two Turtle Doves, '),
('third', 'three French Hens, '),
('fourth', 'four Calling Birds, '),
('fifth', 'five Gold Rings, '),
('sixth', 'six Geese-a-Laying, '),
('seventh', 'seven Swans-a-Swimming, '),
('eighth', 'eight Ma... | 28.205128 | 73 | 0.597273 |
c38ce11c9e42c5f4b8653751b56d5c8f4e4e9b17 | 6,695 | py | Python | pluralforms.py | might-and-magic/mm678_i18n | ddc37c743ac37169908641dcd5328a7ccae5138f | [
"MIT"
] | 17 | 2020-02-25T14:37:23.000Z | 2022-02-21T15:33:09.000Z | pluralforms.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 1 | 2022-01-09T02:14:56.000Z | 2022-02-13T10:08:11.000Z | pluralforms.py | tomchen/csv2po | 75e53fbc5c473b16e8dac153ee99793fad0cd5d0 | [
"MIT"
] | 3 | 2020-10-06T20:38:13.000Z | 2021-02-17T02:11:17.000Z | # The list is from http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
pluralforms = {
'ay': 'nplurals=1; plural=0;',
'bo': 'nplurals=1; plural=0;',
'cgg': 'nplurals=1; plural=0;',
'dz': 'nplurals=1; plural=0;',
'id': 'nplurals=1; plural=0;',
'ja': 'nplurals=1; plural=0;',
'jbo':... | 45.544218 | 111 | 0.494548 |
c38d8ac60747c245aab0ce791acabf2f1970e557 | 2,649 | py | Python | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | vspace_utils/views.py | visualspace/django-vspace-utils | 9bf86354f8dbcf8ee8c308345836f824e2cd7a63 | [
"BSD-3-Clause"
] | null | null | null | import logging
logger = logging.getLogger(__name__)
from django.views.generic import TemplateView
from django.utils.decorators import method_decorator
from django.contrib.auth.decorators import login_required
from django.template import RequestContext, Context, loader
from django.http import HttpResponseServerError
... | 31.164706 | 82 | 0.651944 |
c38df6c81925bf5c22b6fcfcfc835d261c43fac7 | 896 | py | Python | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | 1 | 2021-02-10T12:48:58.000Z | 2021-02-10T12:48:58.000Z | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | null | null | null | Tests/test_validation_all_contacts_info.py | nprockaya/python_training | fe7643f59cc899ebd806d8b1747df0775e9fcf24 | [
"Apache-2.0"
] | null | null | null | from Utils.string_utils import clear_spaces as clear
| 56 | 117 | 0.767857 |
c38e421262f215fdac54068119047281c12a3966 | 1,423 | py | Python | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | get_max_audio.py | ykvch/QABox | 41e00a9d75963773b52b002e41c8a4d77497fdbd | [
"BSD-2-Clause"
] | null | null | null | """
Test obtaining peak audio values with PyAV:
time python pyav_audio_vol.py ~/Videos/sample.mp4
Reference:
https://ffmpeg.org/doxygen/trunk/group__lavu__sampfmts.html
"""
import sys
import av
from numpy import abs, sqrt, vdot, fromiter, float64, uint8, average, frombuffer, mean
import matplotlib.pyplot as plt
vid... | 30.276596 | 107 | 0.718904 |
c38e887d0a177dd20b88ba2a70783be48abc646b | 937 | py | Python | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | python_sandbox/python_sandbox/effective_python/item25.py | jduan/cosmos | c4bdc5b800c9b51084daf874769ac73e1c4b7dd5 | [
"MIT"
] | null | null | null | # Things to Remember
#
# Pythons standard method resolution order (MRO) solves the problems of superclass
# initialization order and diamond inheritance.
#
# Always use the "super" built-in function to initialize parent classes.
| 27.558824 | 90 | 0.681964 |
c390d3f41e8a75d80d2f51aece360b98c9e31e37 | 1,164 | py | Python | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | ml_app/src/api/serve.py | marcostx/mlops-playground | 7c170e7a94a5a27f67884f63574ce79efd9ffdd6 | [
"MIT"
] | null | null | null | from flask import Blueprint, request, jsonify
from flasgger import Swagger, LazyJSONEncoder
from flasgger.utils import swag_from
from src.model.test import make_prediction
from src.api.config import get_logger
_logger = get_logger(logger_name=__name__)
prediction_app = Blueprint('prediction_app', __name__)
| 28.390244 | 62 | 0.665808 |
c390e18727737c534ccf5f5efd296570308b2ff9 | 921 | py | Python | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | visualization/colorbar.py | CAMI-DKFZ/simpa_paper_experiments | f5a37d57692b29b78b85d60a38e4dc0aaa5aadfc | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Computer Assisted Medical Interventions Group, DKFZ
# SPDX-FileCopyrightText: 2021 Janek Groehl
# SPDX-License-Identifier: MIT
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
| 35.423077 | 82 | 0.703583 |
c39142fb863e925990bc60f0387ec99b2c445a57 | 2,365 | py | Python | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | 2 | 2018-11-22T10:32:16.000Z | 2019-02-06T14:26:38.000Z | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | null | null | null | PEARSON_CORRELATION/global.py | madgik/mip-algorithms | 58d931adccaba510432568a0cf8fa30a8f5443a0 | [
"MIT"
] | 4 | 2016-02-17T07:37:55.000Z | 2019-02-07T14:03:51.000Z | import sys
import math
import json
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))) + '/utils/')
import numpy as np
import scipy.special as special
from algorithm_utils import get_parameters, set_algorithms_output_data
from pearsonc_lib import PearsonCorrelationLocalD... | 34.779412 | 104 | 0.550951 |
c3921dc91324fc061413450e3a3c0772670a6ac6 | 5,245 | py | Python | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | varats-core/varats/table/tables.py | J03D03/VaRA-Tool-Suite | f11a8b1b66e2adf37f591bb058073753e614e5ad | [
"BSD-2-Clause"
] | null | null | null | """General tables module."""
import logging
import re
import typing as tp
from pathlib import Path
from varats.mapping.commit_map import create_lazy_commit_map_loader
from varats.plot.plot_utils import check_required_args
from varats.utils.settings import vara_cfg
if tp.TYPE_CHECKING:
import varats.table.table as... | 30.317919 | 79 | 0.635844 |
c392765fa8ab915930e11ed27d0e54982c3f4a1f | 16,436 | py | Python | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | 1 | 2022-03-08T06:34:34.000Z | 2022-03-08T06:34:34.000Z | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | sogs/model/user.py | Bilb/session-pysogs | eb6f13e26d16f0119e87b41ffb86813c3c177ab9 | [
"MIT"
] | null | null | null | from __future__ import annotations
from .. import crypto, db, config
from ..db import query
from ..web import app
from .exc import NoSuchUser, BadPermission
from typing import Optional
import time
def get_all_global_moderators():
"""
Returns all global moderators; for internal user only as this doesn't fi... | 36.123077 | 100 | 0.563945 |
c392ee111fc105d1add3bfe72b6ea6451c22de9b | 71 | py | Python | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | 2 | 2020-08-26T01:54:19.000Z | 2021-07-23T14:06:34.000Z | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | scanapi/__init__.py | marcuxyz/scanapi | e42bcde18d4219fc603b0b9ee8f0b67d4085ec63 | [
"MIT"
] | null | null | null | name = "scanapi"
from scanapi.__main__ import main
__all__ = ["main"]
| 14.2 | 33 | 0.71831 |
c3968e4ef9d804ef0d6ab726de35f89bf44cf576 | 917 | py | Python | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | 1 | 2016-07-14T06:16:58.000Z | 2016-07-14T06:16:58.000Z | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | null | null | null | abstract/test1.py | Vayne-Lover/Python | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | [
"Apache-2.0"
] | null | null | null | #!/usr/local/bin/python
#fib=[0,1]
#for i in range(0,8):
# fib.append(fib[-2]+fib[-1])
#print fib
#def fibs(n):
# fib=[0,1]
# for i in range(n-2):
# fib.append(fib[-2]+fib[-1])
# return fib
#print fibs(5)
#def square(x):
# 'Calculate x*x.'
# return x*x
##print square._doc_
#help(square)
#def inc(x):
# x[0]=x[... | 14.555556 | 34 | 0.561614 |
c399a1a6b7150f1ef7e588609accefc8ef3b5c69 | 2,197 | py | Python | Tuples.py | luiz-fischer/python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | 1 | 2021-07-20T19:01:17.000Z | 2021-07-20T19:01:17.000Z | Tuples.py | luiz-fischer/Python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | null | null | null | Tuples.py | luiz-fischer/Python | 03e85c3456bdee675a246a9d78dde17e351ce2f4 | [
"MIT"
] | null | null | null | #A tuple is a collection which is ordered and unchangeable. In Python tuples are written with #round brackets.
#tuple
thistuple = ["apple", "banana", "cherry"]
print(thistuple)
#Access Items
thistuple = ["apple", "banana", "cherry"]
print(thistuple[1])
#Negative Indexing
thistuple = ["apple", "banana", "cherry"]
pri... | 21.539216 | 110 | 0.665908 |
c39b867276d04175f6c88ecc9593614affbf2fda | 12,208 | py | Python | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | null | null | null | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | 4 | 2020-06-13T09:17:15.000Z | 2020-06-17T16:26:03.000Z | legacy/modUtils.py | andreagalle/pigcasso | e9b60fb595ba6bd2c402a5b4b16665d4d41fa748 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: a.grebert
"""
import draft as fct
import numpy as np
import string
import time
import os, sys, shutil
import matplotlib.pyplot as plt
from xml.dom.minidom import parse
import xml.dom.minidom
def getVarDataBetweenPosition(data_outVTK, wall_outVTK, cord_choice, x_p0, x_p1, Npts, var... | 30.984772 | 114 | 0.593627 |
c39c355b6d0a784ab7ced2706035abd7d88c4b92 | 871 | py | Python | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | avconv/avconv_stdout.py | suchkultur/sidomotest | 5fa813aeb77b856c90b96fbfe0b9a7eff669f304 | [
"MIT"
] | null | null | null | """A python FFMPEG module built from sdpm."""
from __future__ import unicode_literals
from sidomo import Container
if __name__ == '__main__':
print("I'm gonna transcode an audio file and print the result to stdout.")
url = 'http://www2.warwick.ac.uk/fac/soc/sociology/staff/sfuller/media/audio/9_minutes_on_ep... | 30.034483 | 111 | 0.590126 |
c39ee19e15e090d8880bdf7df0d8e984b7c43a6a | 3,401 | py | Python | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | 15 | 2019-09-06T15:49:12.000Z | 2021-12-15T08:10:25.000Z | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | null | null | null | optimizers/reg_params.py | Coricos/Challenger | b5f8ec49f72836779943109efa8eb88695bfd7d1 | [
"Apache-2.0"
] | 2 | 2020-01-05T03:40:09.000Z | 2021-12-15T08:10:29.000Z | # Author: DINDIN Meryll
# Date: 02/03/2019
# Project: optimizers
SPACE = dict()
SPACE['SGD'] = {
'loss': ('choice', ['squared_loss', 'huber', 'epsilon_insensitive', 'squared_epsilon_insensitive']),
'penalty': ('choice', ['none', 'l1', 'l2', 'elasticnet']),
'alpha': ('uniform_log', (1e-10, 1.0))... | 21.801282 | 104 | 0.541017 |
c39f5915d95ec3b9e582fafe6c4ebb268f5f0a43 | 132 | py | Python | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 24 | 2021-12-02T01:00:54.000Z | 2022-03-27T00:50:28.000Z | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | null | null | null | test/workflow_manager/test.py | lzjzx1122/FaaSFlow | c4a32a04797770c21fe6a0dcacd85ac27a3d29ec | [
"Apache-2.0"
] | 3 | 2021-12-02T01:00:47.000Z | 2022-03-04T07:33:09.000Z | import requests
url = 'http://localhost:7000/run'
data = {'workflow': 'wordcount', 'request_id': '1'}
requests.post(url, json=data) | 26.4 | 51 | 0.69697 |
c39f85552fb76ed1c43748aba7b313d0e063acf8 | 243 | py | Python | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | BasicCache/BasicCacheModule.py | prodProject/WorkkerAndConsumerServer | 95496f026109279c9891e08af46040c7b9487c81 | [
"MIT"
] | null | null | null | from werkzeug.contrib.cache import SimpleCache
| 20.25 | 53 | 0.658436 |
c39f85de6a95367753b881619c3146bcc06df83c | 95 | py | Python | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | 10 | 2019-03-12T12:44:11.000Z | 2021-11-10T14:28:00.000Z | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | null | null | null | cheapiesgr/apps.py | papachristoumarios/ntua-softeng | 678b878eea144176eb8623ce52efd1b0bdfa1e5a | [
"MIT"
] | 5 | 2019-05-24T08:37:11.000Z | 2021-03-14T14:58:36.000Z | from django.apps import AppConfig
| 15.833333 | 34 | 0.768421 |