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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3a5e848fef8a886c8da89c6bdd2489931204aef | 446 | py | Python | rubicon_ml/viz/__init__.py | fdosani/rubicon-ml | b6dbd3ea44afb297a224baec387712fdf65b5b4f | [
"Apache-2.0"
] | null | null | null | rubicon_ml/viz/__init__.py | fdosani/rubicon-ml | b6dbd3ea44afb297a224baec387712fdf65b5b4f | [
"Apache-2.0"
] | null | null | null | rubicon_ml/viz/__init__.py | fdosani/rubicon-ml | b6dbd3ea44afb297a224baec387712fdf65b5b4f | [
"Apache-2.0"
] | null | null | null | from rubicon_ml.viz.dashboard import Dashboard
from rubicon_ml.viz.dataframe_plot import DataframePlot
from rubicon_ml.viz.experiments_table import ExperimentsTable
from rubicon_ml.viz.metric_correlation_plot import MetricCorrelationPlot
from rubicon_ml.viz.metric_lists_comparison import MetricListsComparison
__all__ ... | 31.857143 | 72 | 0.825112 |
b3a7d113a7a33eaf4860294977fa40757e49a7a5 | 1,609 | py | Python | run.py | CjwRiver/apiAutoTest | 35f1c2475e76dd34089e2cee33b351a1ca97c168 | [
"MIT"
] | null | null | null | run.py | CjwRiver/apiAutoTest | 35f1c2475e76dd34089e2cee33b351a1ca97c168 | [
"MIT"
] | null | null | null | run.py | CjwRiver/apiAutoTest | 35f1c2475e76dd34089e2cee33b351a1ca97c168 | [
"MIT"
] | null | null | null | from test.conftest import pytest
from tools import logger
from tools.read_file import ReadFile
from tools.send_email import EmailServe
import os
import shutil
report = ReadFile.read_config('$.file_path.report')
logfile = ReadFile.read_config('$.file_path.log')
file_path = ReadFile.read_config('$.file_path')
email = Re... | 32.836735 | 98 | 0.551274 |
b3a818e615b2f988b30047093f25d5ce862b5e70 | 7,658 | py | Python | database/models/util.py | henryzzz093/data_pipeline2 | 5ac5ea2d48f495e0346d8e5198f44baf31af7d9a | [
"MIT"
] | null | null | null | database/models/util.py | henryzzz093/data_pipeline2 | 5ac5ea2d48f495e0346d8e5198f44baf31af7d9a | [
"MIT"
] | null | null | null | database/models/util.py | henryzzz093/data_pipeline2 | 5ac5ea2d48f495e0346d8e5198f44baf31af7d9a | [
"MIT"
] | 1 | 2021-08-16T00:40:01.000Z | 2021-08-16T00:40:01.000Z | import sqlalchemy as sa
import numpy as np
import datetime as dt
from faker import Faker
from jinja2 import Environment, PackageLoader
from database.models.core import (
Base,
Products,
Customers,
TransactionDetails,
Transactions,
)
import logging
logging.basicConfig()
logger = logging.getLogger(... | 29.117871 | 92 | 0.560068 |
b3ab6c36b1a0d4d101bc155cc11546266d771646 | 623 | py | Python | test_platform/api_app/user_view.py | juxiaona/test_dev05 | 7a47ff51cc4afd33353323ebe10469a1a3e40e4a | [
"Apache-2.0"
] | 1 | 2021-07-11T09:16:24.000Z | 2021-07-11T09:16:24.000Z | test_platform/api_app/user_view.py | juxiaona/test_dev05 | 7a47ff51cc4afd33353323ebe10469a1a3e40e4a | [
"Apache-2.0"
] | 1 | 2021-07-11T09:16:52.000Z | 2021-07-11T09:16:52.000Z | test_platform/api_app/user_view.py | juxiaona/test_dev05 | 7a47ff51cc4afd33353323ebe10469a1a3e40e4a | [
"Apache-2.0"
] | 3 | 2021-10-17T12:23:01.000Z | 2022-02-03T02:29:05.000Z | from rest_framework import routers, serializers, viewsets
from django.contrib.auth.models import User
from api_app.serializer import UserSerializer
#
| 27.086957 | 62 | 0.626003 |
b3adfd72fc9055ebcd5449010c4b1ce43ee3fc03 | 3,325 | py | Python | river/metrics/cluster/ssb.py | WLDCH/river | 8ab3431dc3e08c81d03f1220a523ee70c4facd8e | [
"BSD-3-Clause"
] | 1 | 2020-11-07T23:01:16.000Z | 2020-11-07T23:01:16.000Z | river/metrics/cluster/ssb.py | WLDCH/river | 8ab3431dc3e08c81d03f1220a523ee70c4facd8e | [
"BSD-3-Clause"
] | null | null | null | river/metrics/cluster/ssb.py | WLDCH/river | 8ab3431dc3e08c81d03f1220a523ee70c4facd8e | [
"BSD-3-Clause"
] | null | null | null | from river import stats, utils
from . import base
| 27.254098 | 88 | 0.550376 |
b3ae79059719c022e0deda9fca2855194972e39f | 70,728 | py | Python | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | 1 | 2021-01-26T11:59:59.000Z | 2021-01-26T11:59:59.000Z | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | null | null | null | DatabaseStocks.py | VaseSimion/Finance | 63d04a3bb03177e0f959c0c79fa922aecb50ae11 | [
"MIT"
] | 1 | 2021-01-26T15:53:58.000Z | 2021-01-26T15:53:58.000Z | import random
list_of_technology = ["AAPL", "ACIW", "ACN", "ADBE", "ADI", "ADP", "ADSK", "AKAM", "AMD", "AMAT",
"ANET", "ANSS", "ARW", "ATVI", "AVGO", "AVT", "AZPN", "BA", "BB", "BLL",
"BLKB", "BR", "CDK", "CDNS", "CERN", "CHKP", "CIEN", "COMM", "COUP",
... | 104.472674 | 120 | 0.364226 |
b3af58f083b1707dd8c5557c8ab04196db2c3a61 | 3,150 | py | Python | elliot/utils/read.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 175 | 2021-03-04T15:46:25.000Z | 2022-03-31T05:56:58.000Z | elliot/utils/read.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 15 | 2021-03-06T17:53:56.000Z | 2022-03-24T17:02:07.000Z | elliot/utils/read.py | gategill/elliot | 113763ba6d595976e14ead2e3d460d9705cd882e | [
"Apache-2.0"
] | 39 | 2021-03-04T15:46:26.000Z | 2022-03-09T15:37:12.000Z | """
Module description:
"""
__version__ = '0.3.1'
__author__ = 'Vito Walter Anelli, Claudio Pomo'
__email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it'
import pandas as pd
import configparser
import pickle
import numpy as np
import os
from types import SimpleNamespace
def read_csv(filename):
"""
... | 25.2 | 101 | 0.613968 |
b3afb558d9c9edc836599e07c90b89b367f0d512 | 5,792 | py | Python | examples/Mujoco/path_and_orientation_planner_bell_shaped.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | 1 | 2021-07-07T13:26:38.000Z | 2021-07-07T13:26:38.000Z | examples/Mujoco/path_and_orientation_planner_bell_shaped.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | null | null | null | examples/Mujoco/path_and_orientation_planner_bell_shaped.py | elsuizo/abr_control | d7d47a1c152dfcb8d1a3093083d53f19cc4922d6 | [
"BSD-3-Clause"
] | null | null | null | """
Running operational space control using Mujoco. The controller will
move the end-effector to the target object's position and orientation.
This example controls all 6 degrees of freedom (position and orientation),
and applies a second order path planner to both position and orientation targets
After termination t... | 35.10303 | 109 | 0.653488 |
b3b082ac1a55a800ca823b94a1ccae634841d953 | 7,770 | py | Python | birg_chemometrics_tools/peak_finding/cwt.py | BiRG/chemometrics_tools | f96aa5fc2478ce454f110f4940ff29632c2e0324 | [
"MIT"
] | null | null | null | birg_chemometrics_tools/peak_finding/cwt.py | BiRG/chemometrics_tools | f96aa5fc2478ce454f110f4940ff29632c2e0324 | [
"MIT"
] | null | null | null | birg_chemometrics_tools/peak_finding/cwt.py | BiRG/chemometrics_tools | f96aa5fc2478ce454f110f4940ff29632c2e0324 | [
"MIT"
] | null | null | null | import numpy as np
from collections import deque
from scipy.signal import cwt, ricker
from scipy.stats import mode, scoreatpercentile
| 39.045226 | 107 | 0.569884 |
b3b308144a89e4fa0b94da6be42bebb4778d0030 | 88 | py | Python | autorop/call/__init__.py | mariuszskon/autorop | 5735073008f722fab00f3866ef4a05f04620593b | [
"MIT"
] | 15 | 2020-10-03T05:20:31.000Z | 2022-03-20T06:19:29.000Z | autorop/call/__init__.py | mariuszskon/autorop | 5735073008f722fab00f3866ef4a05f04620593b | [
"MIT"
] | 8 | 2020-10-02T09:51:39.000Z | 2021-04-24T03:14:18.000Z | autorop/call/__init__.py | mariuszskon/autorop | 5735073008f722fab00f3866ef4a05f04620593b | [
"MIT"
] | 2 | 2021-04-16T06:33:49.000Z | 2021-09-03T09:21:10.000Z | from autorop.call.Custom import Custom
from autorop.call.SystemBinSh import SystemBinSh
| 29.333333 | 48 | 0.863636 |
b3b4137e15129c499432a055f79b2a1c626e8623 | 14,662 | py | Python | exams/models.py | akmohtashami/mcexam | 27ba5e11bafcf247e46132c09d4901e84a35ddf7 | [
"MIT"
] | null | null | null | exams/models.py | akmohtashami/mcexam | 27ba5e11bafcf247e46132c09d4901e84a35ddf7 | [
"MIT"
] | null | null | null | exams/models.py | akmohtashami/mcexam | 27ba5e11bafcf247e46132c09d4901e84a35ddf7 | [
"MIT"
] | 1 | 2019-06-23T17:44:22.000Z | 2019-06-23T17:44:22.000Z | # -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext as _
from users.models import Member
from adminsortable.models import Sortable
from adminsortable.fields import SortableForeignKey
from django.template import Template, Context
from djang... | 40.614958 | 135 | 0.632792 |
b3b6541b01dfd184dca64906972592b52fde11f6 | 2,371 | py | Python | happy/HappyLinkList.py | yunhanw-google/happy | d482f1eeb188a03e3bcd1aefe54424fb2589c9e9 | [
"Apache-2.0"
] | 42 | 2017-09-20T07:09:59.000Z | 2021-11-08T12:08:30.000Z | happy/HappyLinkList.py | yunhanw-google/happy | d482f1eeb188a03e3bcd1aefe54424fb2589c9e9 | [
"Apache-2.0"
] | 30 | 2018-06-16T14:48:14.000Z | 2020-10-13T04:02:35.000Z | happy/HappyLinkList.py | yunhanw-google/happy | d482f1eeb188a03e3bcd1aefe54424fb2589c9e9 | [
"Apache-2.0"
] | 17 | 2017-09-20T10:37:56.000Z | 2021-02-09T06:27:44.000Z | #!/usr/bin/env python3
#
# Copyright (c) 2015-2017 Nest Labs, 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/lice... | 23.245098 | 77 | 0.616196 |
b3b6a876ddc74d9307c59885076ee5699c71e501 | 3,209 | py | Python | monteCarlo_investopedia.py | sztang/py_practice | fa4aa87fed53abb8b8cc4b85e95fc967f8f1d2ae | [
"MIT"
] | null | null | null | monteCarlo_investopedia.py | sztang/py_practice | fa4aa87fed53abb8b8cc4b85e95fc967f8f1d2ae | [
"MIT"
] | null | null | null | monteCarlo_investopedia.py | sztang/py_practice | fa4aa87fed53abb8b8cc4b85e95fc967f8f1d2ae | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Monte Carlo Simulation: Dice Game
# Based on Investopedia: Creating a Monte Carlo Simulation
# investopedia.com/articles/investing/093015/create-monte-carlo-simulation-using-excel.asp\
# Here's how the dice game rolls:
# The player throws three dice that have 6 sides 3 times.
# If the tota... | 34.138298 | 94 | 0.62761 |
b3b73b58e26317b8a2fdb64a3c8c5b80e517412a | 7,341 | py | Python | examples/run_parametric_elliptic_optimal_control_alpha.py | s274001/PINA | beb33f0da20581338c46f0c525775904b35a1130 | [
"MIT"
] | 4 | 2022-02-16T14:52:55.000Z | 2022-03-17T13:31:42.000Z | examples/run_parametric_elliptic_optimal_control_alpha.py | s274001/PINA | beb33f0da20581338c46f0c525775904b35a1130 | [
"MIT"
] | 3 | 2022-02-17T08:57:42.000Z | 2022-03-28T08:41:53.000Z | examples/run_parametric_elliptic_optimal_control_alpha.py | s274001/PINA | beb33f0da20581338c46f0c525775904b35a1130 | [
"MIT"
] | 7 | 2022-02-13T14:35:00.000Z | 2022-03-28T08:51:11.000Z | import numpy as np
import torch
import argparse
from pina.pinn import PINN
from pina.ppinn import ParametricPINN as pPINN
from pina.label_tensor import LabelTensor
from torch.nn import ReLU, Tanh, Softplus
from pina.adaptive_functions.adaptive_softplus import AdaptiveSoftplus
from problems.parametric_elliptic_optimal_c... | 35.293269 | 122 | 0.503201 |
b3b7971054166b3e113cd28da11c99033b9339be | 248 | py | Python | todolist/api/urls.py | yusukhobok/TodoAPI | 9f9d93b54cfe3c841dbe2de91798c5e6a28c7edf | [
"MIT"
] | null | null | null | todolist/api/urls.py | yusukhobok/TodoAPI | 9f9d93b54cfe3c841dbe2de91798c5e6a28c7edf | [
"MIT"
] | 6 | 2020-06-05T20:06:44.000Z | 2021-09-22T18:08:06.000Z | todolist/api/urls.py | Yus27/TodoAPI | 1308aeac356b2168cec02045aa6774b16443d17b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import TodoViewSet
from rest_framework_bulk.routes import BulkRouter
from rest_framework import routers
router = BulkRouter()
router.register(r'', TodoViewSet, basename='todos')
urlpatterns = router.urls | 22.545455 | 51 | 0.814516 |
b3b8c9350fdcc10478be9ff8a551df1606e7ecf2 | 880 | py | Python | controllers/portal.py | R-E-A-L-iT/odoo-proportals-module | f4f500632c7e15eb7b1e47f3c915a36a78d7e3da | [
"MIT"
] | null | null | null | controllers/portal.py | R-E-A-L-iT/odoo-proportals-module | f4f500632c7e15eb7b1e47f3c915a36a78d7e3da | [
"MIT"
] | null | null | null | controllers/portal.py | R-E-A-L-iT/odoo-proportals-module | f4f500632c7e15eb7b1e47f3c915a36a78d7e3da | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import binascii
from odoo import fields, http, _
from odoo.exceptions import AccessError, MissingError, UserError
from odoo.http import request
from odoo.addons.payment.controllers.portal import PaymentProcessing
from o... | 36.666667 | 106 | 0.744318 |
b3b8fdb7ee87591bb03fea19135fb3fea98d20aa | 6,222 | py | Python | google/cloud/videointelligence/v1/videointelligence-v1-py/google/cloud/videointelligence/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/cloud/videointelligence/v1/videointelligence-v1-py/google/cloud/videointelligence/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/cloud/videointelligence/v1/videointelligence-v1-py/google/cloud/videointelligence/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 53.637931 | 130 | 0.851013 |
b3ba429b584473910459cd9abd6680855878d8b8 | 406 | py | Python | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | whileIF.py | JulianConneely/Python-Problem-Sets | 315a43b00c98bff0a9889c730ae13ca963d5fa6c | [
"Apache-2.0"
] | null | null | null | #Julian Conneely, 21/03/18
#WhileIF loop with increment
#first 5 is printed
#then it is decreased to 4
#as it is not satisfying i<=2
#it moves on
#then 4 is printed
#then it is decreased to 3
#as it is not satisfying i<=2,it moves on
#then 3 is printed
#then it is decreased to 2
#as now i<=2 has completely satisfied, ... | 19.333333 | 55 | 0.684729 |
b3bc40604998529df6bc48de77ceab6a0500f44e | 1,166 | py | Python | board/boardmanager.py | nh-99/COS125-OhMyCheckers | 8e8af36532547e30162a9f4c4d3f204b56b42a6c | [
"MIT"
] | null | null | null | board/boardmanager.py | nh-99/COS125-OhMyCheckers | 8e8af36532547e30162a9f4c4d3f204b56b42a6c | [
"MIT"
] | 3 | 2016-10-23T08:25:19.000Z | 2016-10-24T02:15:41.000Z | board/boardmanager.py | nh-99/COS125-OhMyCheckers | 8e8af36532547e30162a9f4c4d3f204b56b42a6c | [
"MIT"
] | null | null | null | from colorama import Style, Fore
import gamepiece
header = ' 0 1 2 3 4 5 6 7'
footer = ' +---+---+---+---+---+---+---+---+'
| 29.15 | 84 | 0.43482 |
b3bc9203c8074991c7351558c34b1c4b3515287e | 133 | py | Python | config.py | dufftt/social_distance_detector | b5726b544ba34051f0c9acbcba78fc6a87c93397 | [
"MIT"
] | null | null | null | config.py | dufftt/social_distance_detector | b5726b544ba34051f0c9acbcba78fc6a87c93397 | [
"MIT"
] | null | null | null | config.py | dufftt/social_distance_detector | b5726b544ba34051f0c9acbcba78fc6a87c93397 | [
"MIT"
] | 2 | 2020-12-04T04:47:26.000Z | 2021-01-25T10:11:53.000Z | MIN_CONF = 0.3
NMS_THRESH = 0.3
USE_GPU = False
MIN_DISTANCE = 50
WEIGHT_PATH = "yolov3-tiny.weights"
CONFIG_PATH = "yolov3-tiny.cfg" | 22.166667 | 35 | 0.75188 |
b3bc9655cec3454fb8290cc9ec39072f8654231f | 82 | py | Python | python/testData/docstrings/googleNoClosingParenthesisAfterParamType.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/docstrings/googleNoClosingParenthesisAfterParamType.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/docstrings/googleNoClosingParenthesisAfterParamType.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def f(x, y):
"""
Args:
x (Foo
y (Bar : description
""" | 13.666667 | 28 | 0.353659 |
b3bcab9f6387335ff3ee3f73f9b2f6baf6b2f599 | 8,266 | py | Python | analysisAPI/utilities.py | steuwe/coco-analyze | c1e6aa9e64522940342f5487b9160e1ee0dd274f | [
"MIT"
] | null | null | null | analysisAPI/utilities.py | steuwe/coco-analyze | c1e6aa9e64522940342f5487b9160e1ee0dd274f | [
"MIT"
] | null | null | null | analysisAPI/utilities.py | steuwe/coco-analyze | c1e6aa9e64522940342f5487b9160e1ee0dd274f | [
"MIT"
] | null | null | null | ## imports
import os, sys, time, json
import numpy as np
from colour import Color
import matplotlib.pyplot as plt
import matplotlib.path as mplPath
from matplotlib.collections import PatchCollection
from matplotlib.patches import Polygon
from skimage.transform import resize as imresize
import skimage.io as io
"""
Util... | 40.519608 | 171 | 0.510162 |
b3c169da3d4b81dde59b6bb476806e478d3ea83d | 3,493 | py | Python | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1,178 | 2020-09-10T17:15:42.000Z | 2022-03-31T14:59:35.000Z | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 1 | 2020-05-22T05:22:35.000Z | 2020-05-22T05:22:35.000Z | lib/python/batch_sim/gcloud_fakes.py | leozz37/makani | c94d5c2b600b98002f932e80a313a06b9285cc1b | [
"Apache-2.0"
] | 107 | 2020-09-10T17:29:30.000Z | 2022-03-18T09:00:14.000Z | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 34.93 | 78 | 0.744918 |
b3c521b47e06a118b0cd9b713ebd107b3f031206 | 13,030 | py | Python | sequential_inference/envs/robosuite_envs/wipe/wipe_located.py | cvoelcker/sequential_inference | acdc23aa8fdbfc76ded771e82a4abcdd081a3280 | [
"MIT"
] | null | null | null | sequential_inference/envs/robosuite_envs/wipe/wipe_located.py | cvoelcker/sequential_inference | acdc23aa8fdbfc76ded771e82a4abcdd081a3280 | [
"MIT"
] | null | null | null | sequential_inference/envs/robosuite_envs/wipe/wipe_located.py | cvoelcker/sequential_inference | acdc23aa8fdbfc76ded771e82a4abcdd081a3280 | [
"MIT"
] | null | null | null | import numpy as np
import multiprocessing
from robosuite.environments.manipulation.wipe import Wipe, DEFAULT_WIPE_CONFIG
from robosuite.models.tasks import ManipulationTask
from .wipe_located_arena import WipeLocatedArena
| 41.496815 | 117 | 0.582655 |
b3c523babfa6c91c516925e84f0584c0ee39d7fd | 1,574 | py | Python | tpp_tensorflow/models/dense.py | gfrogat/tpp_tensorflow | 711dd8cc0a8155ce6b6e5663afb2331b55748d30 | [
"MIT"
] | null | null | null | tpp_tensorflow/models/dense.py | gfrogat/tpp_tensorflow | 711dd8cc0a8155ce6b6e5663afb2331b55748d30 | [
"MIT"
] | null | null | null | tpp_tensorflow/models/dense.py | gfrogat/tpp_tensorflow | 711dd8cc0a8155ce6b6e5663afb2331b55748d30 | [
"MIT"
] | null | null | null |
from tensorflow.keras import layers, Model, regularizers
| 30.862745 | 88 | 0.541296 |
b3ccac0791a7fa5430a1fcfe5c670dbca799bbe5 | 167 | py | Python | boundlexx/celery/management/commands/purge_in_progress.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | 1 | 2021-04-23T11:49:50.000Z | 2021-04-23T11:49:50.000Z | boundlexx/celery/management/commands/purge_in_progress.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | 1 | 2021-04-17T18:17:12.000Z | 2021-04-17T18:17:12.000Z | boundlexx/celery/management/commands/purge_in_progress.py | AngellusMortis/boundlexx | 407f5e38e8e0f067cbcb358787fc9af6a9be9b2a | [
"MIT"
] | null | null | null | import djclick as click
from django_celery_results.models import TaskResult
| 20.875 | 56 | 0.784431 |
b3cce8916fc9bfd0ead2ad75214492f8a80b5d93 | 20,516 | py | Python | Example Device - Thermostat.indigoPlugin/Contents/Server Plugin/plugin.py | IndigoDomotics/IndigoSDK | fbbca6fdbaa0c23e6faa848523e5fa121f3100b4 | [
"MIT"
] | null | null | null | Example Device - Thermostat.indigoPlugin/Contents/Server Plugin/plugin.py | IndigoDomotics/IndigoSDK | fbbca6fdbaa0c23e6faa848523e5fa121f3100b4 | [
"MIT"
] | 1 | 2022-02-11T21:03:44.000Z | 2022-02-11T21:06:16.000Z | Example Device - Thermostat.indigoPlugin/Contents/Server Plugin/plugin.py | IndigoDomotics/IndigoSDK | fbbca6fdbaa0c23e6faa848523e5fa121f3100b4 | [
"MIT"
] | 2 | 2022-02-10T23:53:03.000Z | 2022-03-05T17:18:43.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
####################
# Copyright (c) 2022, Perceptive Automation, LLC. All rights reserved.
# https://www.indigodomo.com
import indigo
import os
import sys
import random
# Note the "indigo" module is automatically imported and made available inside
# our global name spa... | 52.071066 | 182 | 0.634285 |
b3ceb7bacaabc9d374ce9e5489d90bcedfbf69ad | 159 | py | Python | dp_tornado/helper/security/web/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 18 | 2015-04-07T14:28:39.000Z | 2020-02-08T14:03:38.000Z | dp_tornado/helper/security/web/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 7 | 2016-10-05T05:14:06.000Z | 2021-05-20T02:07:22.000Z | dp_tornado/helper/security/web/__init__.py | donghak-shin/dp-tornado | 095bb293661af35cce5f917d8a2228d273489496 | [
"MIT"
] | 11 | 2015-12-15T09:49:39.000Z | 2021-09-06T18:38:21.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from dp_tornado.engine.helper import Helper as dpHelper
| 15.9 | 55 | 0.748428 |
b3d2818801e85a29eccfd608b62683f33282a6d9 | 2,071 | py | Python | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/iosxr/tests/ShowVrrpSummary/cli/equal/golden_output_1_expected.py | nielsvanhooy/genieparser | 9a1955749697a6777ca614f0af4d5f3a2c254ccd | [
"Apache-2.0"
] | null | null | null | expected_output = {
"address_family":{
"ipv4":{
"bfd_sessions_down":0,
"bfd_sessions_inactive":1,
"bfd_sessions_up":0,
"intf_down":1,
"intf_up":1,
"num_bfd_sessions":1,
"num_intf":2,
"state":{
"all":{
"sessions":2,... | 24.081395 | 40 | 0.356832 |
b3d5ab9d0c7d20b407fce0bfd20bb2118f0eb307 | 2,159 | py | Python | characterCrowd.py | campbellwmorgan/charactercrowd | 968f53ea23c347d57e7e45d46206ab4dc8fb39ca | [
"Apache-2.0"
] | 1 | 2016-08-04T11:49:12.000Z | 2016-08-04T11:49:12.000Z | characterCrowd.py | campbellwmorgan/charactercrowd | 968f53ea23c347d57e7e45d46206ab4dc8fb39ca | [
"Apache-2.0"
] | null | null | null | characterCrowd.py | campbellwmorgan/charactercrowd | 968f53ea23c347d57e7e45d46206ab4dc8fb39ca | [
"Apache-2.0"
] | null | null | null | """
Plugin for manually animating
large numbers of rigs given a small number of source rigs
See README for installation instructions and usage
"""
from pymel.api.plugins import Command
import maya.OpenMayaMPx as OpenMayaMPx
from characterCrowdSrc.characterCrowd import *
## initialize the script plug-in
def initiali... | 24.816092 | 72 | 0.678555 |
b3d5be07df5ced34dc59e990bef205aa91454a35 | 36 | py | Python | python/cendalytics/core/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/cendalytics/core/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | python/cendalytics/core/__init__.py | jiportilla/ontology | 8a66bb7f76f805c64fc76cfc40ab7dfbc1146f40 | [
"MIT"
] | null | null | null | from .cendant_api import CendantAPI
| 18 | 35 | 0.861111 |
b3daaedddba54c9f389ca1ec586ac8d5df49336a | 1,381 | py | Python | python/test/test_spreadsheet_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | python/test/test_spreadsheet_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | 1 | 2020-08-20T17:31:43.000Z | 2020-08-20T17:31:43.000Z | python/test/test_spreadsheet_api.py | dlens/dlxapi | 189a6519240ce625d7a9cdb89e305a335d2aa045 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
Decision Lens API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impor... | 20.924242 | 119 | 0.666908 |
b3dab3fac30d61cfc2247c371cd1c7ec086bd037 | 8,485 | py | Python | demo/demo_window.py | aakhundov/tf-attend-infer-repeat | 77d4ac8773b389022a2c7fc650e7a22b998ba14d | [
"MIT"
] | 57 | 2017-07-27T14:52:30.000Z | 2021-06-04T04:58:16.000Z | demo/demo_window.py | aakhundov/tf-attend-infer-repeat | 77d4ac8773b389022a2c7fc650e7a22b998ba14d | [
"MIT"
] | 7 | 2017-07-27T14:53:38.000Z | 2019-12-26T15:20:16.000Z | demo/demo_window.py | aakhundov/tf-attend-infer-repeat | 77d4ac8773b389022a2c7fc650e7a22b998ba14d | [
"MIT"
] | 8 | 2017-11-09T03:13:50.000Z | 2019-12-13T23:24:41.000Z | import tkinter as tk
import tkinter.ttk as ttk
from .pixel_canvas import PixelCanvas
| 45.61828 | 111 | 0.621921 |
b3db0f61a48ed17e172300c3cb8606a8b731cdc4 | 7,477 | py | Python | app/views.py | soje402/imageboard | 45db024dae3fc9b2ae3e4531a4c1b59a36629692 | [
"MIT"
] | null | null | null | app/views.py | soje402/imageboard | 45db024dae3fc9b2ae3e4531a4c1b59a36629692 | [
"MIT"
] | null | null | null | app/views.py | soje402/imageboard | 45db024dae3fc9b2ae3e4531a4c1b59a36629692 | [
"MIT"
] | null | null | null | # coding=utf-8
from flask import Flask, url_for, render_template, request, redirect, jsonify, session, send_file
import models
import json
import datetime
import time
import md5
from werkzeug import secure_filename
app = Flask(__name__)
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
ALLOWED_EXTENSIONS = ['png', 'j... | 35.103286 | 128 | 0.570817 |
b3ddd4bffc1ad8ddae78a2e0c9a8923f4b526a4b | 3,696 | py | Python | lib/Site.py | EthanZeigler/pastebin_scraper | 0c0ca01a6f37fc9f153327a236de74215dee584c | [
"MIT"
] | null | null | null | lib/Site.py | EthanZeigler/pastebin_scraper | 0c0ca01a6f37fc9f153327a236de74215dee584c | [
"MIT"
] | null | null | null | lib/Site.py | EthanZeigler/pastebin_scraper | 0c0ca01a6f37fc9f153327a236de74215dee584c | [
"MIT"
] | null | null | null | from queue import Queue
import time
from settings import USE_DB, DB_DB, DB_DUMP_TABLE, DB_ACCT_TABLE, REQUEST_SPACING
import logging
from . import helper
import sqlite3
import threading
| 35.883495 | 230 | 0.477273 |
b3de01a8894dc74cb15d7daba9f4b92d20584506 | 1,090 | py | Python | Convolution Neural Network/main.py | dhavalsharma97/ExpressionIdentifier | b69060cb115d99266a4d6b663d269771cbe1a0b0 | [
"MIT"
] | null | null | null | Convolution Neural Network/main.py | dhavalsharma97/ExpressionIdentifier | b69060cb115d99266a4d6b663d269771cbe1a0b0 | [
"MIT"
] | null | null | null | Convolution Neural Network/main.py | dhavalsharma97/ExpressionIdentifier | b69060cb115d99266a4d6b663d269771cbe1a0b0 | [
"MIT"
] | null | null | null | # Convolution Neural Networks
# importing the required libraries
from demo import demo
from model import train_model, valid_model
import tensorflow as tf
flags = tf.compat.v1.flags
flags.DEFINE_string('MODE', 'demo',
'Set program to run in different modes, including train, valid and demo.')
fla... | 31.142857 | 94 | 0.658716 |
b3df745ca42527733326bd472f3dcaf4891e8d24 | 2,789 | py | Python | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | ETLPipeline (1).py | mudigosa/Disaster-Pipeline | 3a4a8cb78202def522f131d15e5f3938c15f1be5 | [
"CC-BY-4.0"
] | null | null | null | import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
'''
input:
messages_filepath: The path of messages dataset.
categories_filepath: The path of categories dataset.
output:
df: The merged dataset
'''
disa... | 35.303797 | 102 | 0.674435 |
b3e2ec988106df0c07fe3fcce90989007d7b9618 | 365 | py | Python | backend/presentation/admin.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | null | null | null | backend/presentation/admin.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 75 | 2021-01-13T23:48:48.000Z | 2021-04-16T19:39:38.000Z | backend/presentation/admin.py | Weida-W/CMPUT404-project-socialdistribution | 41d8a7f7f013723d2a3878156953fbc11c2e6156 | [
"W3C-20150513"
] | 12 | 2021-01-13T23:22:35.000Z | 2021-04-28T08:13:38.000Z | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Author)
admin.site.register(Follower)
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Request)
admin.site.register(Inbox)
admin.site.register(Likes)
admin.site.register(Liked)
admin.site.... | 24.333333 | 32 | 0.810959 |
b3e3074f419ca7d66a4319f36dc79a3e5933c6a7 | 3,891 | py | Python | guessenv/__main__.py | EasyPost/guessenv | a5b65faa3b0776c764d21b1a10b891dbdd0c6fdf | [
"0BSD"
] | 3 | 2019-02-09T04:02:35.000Z | 2021-12-08T18:28:08.000Z | guessenv/__main__.py | EasyPost/guessenv | a5b65faa3b0776c764d21b1a10b891dbdd0c6fdf | [
"0BSD"
] | null | null | null | guessenv/__main__.py | EasyPost/guessenv | a5b65faa3b0776c764d21b1a10b891dbdd0c6fdf | [
"0BSD"
] | null | null | null | import argparse
import sys
import io
import os
import os.path
import re
from itertools import repeat
from . import guesser
if sys.version_info < (3, 0):
open_function = io.open
else:
open_function = open
if __name__ == '__main__':
sys.exit(main())
| 34.741071 | 120 | 0.570547 |
b3e388297ce0c73ba9eddb04d2d2199bfb28b6a2 | 11,450 | py | Python | main_test.py | OniriCorpe/Motion | ee617b0f183c177e63b52fb91f52ede6eb1b1f83 | [
"WTFPL"
] | null | null | null | main_test.py | OniriCorpe/Motion | ee617b0f183c177e63b52fb91f52ede6eb1b1f83 | [
"WTFPL"
] | null | null | null | main_test.py | OniriCorpe/Motion | ee617b0f183c177e63b52fb91f52ede6eb1b1f83 | [
"WTFPL"
] | null | null | null | #!/usr/bin/env python
"""
The test file to use with pytest.
'(motion-venv) $ python -m pytest main_test.py'
"""
import main
def test_calculate_date_delta():
"""
Tests that the function calculate_date_delta(date_start, date_now)
calculates correctly the number of days between two dates.
"""
asse... | 29.060914 | 88 | 0.291179 |
b3e6496b03fe0d2f66798fb80e121601679ea548 | 5,200 | py | Python | deps/libffi/generate-osx-source-and-headers.py | liuqsqq/node-ffi | 169773db0d56c4c99225b307b3dc86a46f3af34d | [
"MIT"
] | 3,373 | 2015-01-03T21:04:40.000Z | 2022-03-30T21:11:38.000Z | deps/libffi/generate-osx-source-and-headers.py | liuqsqq/node-ffi | 169773db0d56c4c99225b307b3dc86a46f3af34d | [
"MIT"
] | 457 | 2015-01-02T10:20:25.000Z | 2022-03-09T10:39:50.000Z | deps/libffi/generate-osx-source-and-headers.py | liuqsqq/node-ffi | 169773db0d56c4c99225b307b3dc86a46f3af34d | [
"MIT"
] | 418 | 2015-01-21T12:05:23.000Z | 2022-03-23T13:44:12.000Z | #!/usr/bin/env python
import subprocess
import re
import os
import errno
import collections
import sys
sdk_re = re.compile(r'.*-sdk ([a-zA-Z0-9.]*)')
desktop_sdk_info = sdkinfo('macosx')
desktop_sdk = latest_sdks()
def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''):
if not os.path... | 33.766234 | 112 | 0.564808 |
b3e734c6ffea6e6eebb61e519518c93ae03d2616 | 1,504 | py | Python | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 5 | 2019-07-17T16:28:52.000Z | 2020-03-31T08:36:26.000Z | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 15 | 2019-01-31T18:31:35.000Z | 2021-03-01T16:24:20.000Z | fst_lookup/fallback_data.py | eddieantonio/fst-lookup | 383173e906c25070fb71044318a6fe9e62ca9c13 | [
"MIT"
] | 2 | 2019-07-15T20:10:55.000Z | 2019-08-17T18:02:08.000Z | """
Fallback data types, implemented in Python, for platforms that cannot build
the C extension.
"""
from .symbol import Symbol
from .typedefs import StateID
| 24.655738 | 80 | 0.583112 |
b3e76140bb5e62c77d460ef2b3e264eca9adea9a | 8,612 | py | Python | dashflaskapp/flaskapp/transactions_plotly/dashboard.py | NicholasGoh/real_estate_app | 01fd83ebe7dffbd42fb3cc8ce1e8c9c0d6285ac0 | [
"MIT"
] | null | null | null | dashflaskapp/flaskapp/transactions_plotly/dashboard.py | NicholasGoh/real_estate_app | 01fd83ebe7dffbd42fb3cc8ce1e8c9c0d6285ac0 | [
"MIT"
] | null | null | null | dashflaskapp/flaskapp/transactions_plotly/dashboard.py | NicholasGoh/real_estate_app | 01fd83ebe7dffbd42fb3cc8ce1e8c9c0d6285ac0 | [
"MIT"
] | null | null | null | import pandas as pd
import dash
from dash.dependencies import Input, Output, State
import plotly.express as px
import dash_html_components as html
import dash_core_components as dcc
import dash_bootstrap_components as dbc
# self packages
from .data_generator import load_transactions, comparisons_df
from .nav_bar impor... | 37.606987 | 145 | 0.573038 |
b3e7a2421199d040d4bc5d2f823332a7d4215881 | 676 | py | Python | scripts/vis_mask.py | ZHUXUHAN/my_segmentation | 8e2847278e2cfe7a5b91afdb68ec68dce1a8437c | [
"MIT"
] | null | null | null | scripts/vis_mask.py | ZHUXUHAN/my_segmentation | 8e2847278e2cfe7a5b91afdb68ec68dce1a8437c | [
"MIT"
] | null | null | null | scripts/vis_mask.py | ZHUXUHAN/my_segmentation | 8e2847278e2cfe7a5b91afdb68ec68dce1a8437c | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from matplotlib import pyplot as plt
plt.switch_backend('agg')
imgfile = '/home/awesome-semantic-segmentation-pytorch/0023c3c5-c0fd-4ab2-85e0-dd00fa2b5f84_1581153710699_align_0.jpg'
pngfile = '/home/awesome-semantic-segmentation-pytorch/scripts/eval/0023c3c5-c0fd-4ab2-85e0-dd00fa2b5f84_15... | 33.8 | 131 | 0.744083 |
b3e9b7dd43a10c9e4f845198db3a37db8afb2e06 | 2,203 | py | Python | src/pretix/base/templatetags/cache_large.py | Janfred/pretix | bdd9751f0e5c440d1c8b56c933db2288e4014f4c | [
"Apache-2.0"
] | 1,248 | 2015-04-24T13:32:06.000Z | 2022-03-29T07:01:36.000Z | src/pretix/base/templatetags/cache_large.py | Janfred/pretix | bdd9751f0e5c440d1c8b56c933db2288e4014f4c | [
"Apache-2.0"
] | 2,113 | 2015-02-18T18:58:16.000Z | 2022-03-31T11:12:32.000Z | src/pretix/base/templatetags/cache_large.py | thegcat/pretix | 451d3fce0575d85a0ea93fd64aa0631feaced967 | [
"Apache-2.0"
] | 453 | 2015-05-13T09:29:06.000Z | 2022-03-24T13:39:16.000Z | #
# This file is part of pretix (Community Edition).
#
# Copyright (C) 2014-2020 Raphael Michel and contributors
# Copyright (C) 2020-2021 rami.io GmbH and contributors
#
# This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General
# Public License as published by ... | 38.649123 | 118 | 0.732183 |
b3e9db7824ba204f9d1c238cbfe4d49fb645b682 | 3,609 | py | Python | utils/pascal_voc.py | hktxt/fasterrcnn | c7de01afd78bd99737c80035843cd6e7e483b911 | [
"MIT"
] | null | null | null | utils/pascal_voc.py | hktxt/fasterrcnn | c7de01afd78bd99737c80035843cd6e7e483b911 | [
"MIT"
] | null | null | null | utils/pascal_voc.py | hktxt/fasterrcnn | c7de01afd78bd99737c80035843cd6e7e483b911 | [
"MIT"
] | null | null | null | import os
import uuid
import numpy as np
from tqdm import tqdm
import pickle
from utils.config import opt
from .voc_eval import voc_eval
devkit_path = opt.voc_data_dir[:-8]
year = opt.year
| 36.454545 | 80 | 0.569133 |
b3e9fef97a59ba6d9d87e871a5f6cd1c0bbe6864 | 2,111 | py | Python | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | 2 | 2018-04-16T23:44:56.000Z | 2019-02-28T16:43:57.000Z | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | null | null | null | indicators.py | abulte/python-influxdb-alerts | 5955b99551094d24197705ec5d97373b64b338a1 | [
"MIT"
] | 1 | 2021-05-04T16:06:15.000Z | 2021-05-04T16:06:15.000Z | """Indicators to monitor"""
import click
from configparser import NoOptionError
from query import Query
from config import CONFIG
| 24.546512 | 94 | 0.606348 |
b3eabfc5d1919b5ecce2863be161ba0e44633f43 | 5,955 | py | Python | Project-4/python_template/mogEM.py | ybhan/Machine-Learning-Projects | 80301a774247bb6ad11cccaeef54e9ec588a61b0 | [
"MIT"
] | null | null | null | Project-4/python_template/mogEM.py | ybhan/Machine-Learning-Projects | 80301a774247bb6ad11cccaeef54e9ec588a61b0 | [
"MIT"
] | null | null | null | Project-4/python_template/mogEM.py | ybhan/Machine-Learning-Projects | 80301a774247bb6ad11cccaeef54e9ec588a61b0 | [
"MIT"
] | null | null | null | from kmeans import *
import sys
import matplotlib.pyplot as plt
plt.ion()
def mogEM(x, K, iters, minVary=0):
"""
Fits a Mixture of K Gaussians on x.
Inputs:
x: data with one data vector in each column.
K: Number of Gaussians.
iters: Number of EM iterations.
minVary: minimum varianc... | 33.083333 | 79 | 0.538539 |
b3ed72fa8fd255bd3466367b59b2f940a3c9c4e8 | 600 | py | Python | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 164 | 2019-07-29T17:59:06.000Z | 2022-03-19T21:36:01.000Z | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 188 | 2019-03-16T09:53:25.000Z | 2019-07-25T14:57:24.000Z | openbook_posts/migrations/0022_auto_20190311_1432.py | TamaraAbells/okuna-api | f87d8e80d2f182c01dbce68155ded0078ee707e4 | [
"MIT"
] | 80 | 2019-08-03T17:49:08.000Z | 2022-02-28T16:56:33.000Z | # Generated by Django 2.2b1 on 2019-03-11 13:32
from django.db import migrations
import imagekit.models.fields
import openbook_posts.helpers
| 28.571429 | 203 | 0.698333 |
b3eeb3b273ced737afa9c583f2c895e42540c161 | 617 | py | Python | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 7 | 2015-04-29T22:53:46.000Z | 2022-03-11T02:24:32.000Z | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 2 | 2015-05-04T23:40:00.000Z | 2015-12-01T21:17:56.000Z | setup.py | AndersenLab/liftover-utils | 17041d8b84ba79e9b3105267040bec4ade437a5c | [
"MIT"
] | 1 | 2017-07-07T05:19:12.000Z | 2017-07-07T05:19:12.000Z | from setuptools import setup
import glob
setup(name='liftover.py',
version='0.1',
packages=['liftover'],
description='C. elegans liftover utility',
url='https://github.com/AndersenLab/liftover-utils',
author='Daniel Cook',
author_email='danielecook@gmail.com',
license='MIT',
... | 32.473684 | 97 | 0.65316 |
b3ef0f6b300b19a75f79345e97a807ae11d3fb46 | 3,182 | py | Python | functions/include/serializer.py | xyclin/fluent | f1dcede5d4b7d6eab722180129dbb5aff4241621 | [
"Apache-2.0"
] | 1,164 | 2018-07-25T23:17:07.000Z | 2019-07-11T20:33:52.000Z | functions/include/serializer.py | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 126 | 2018-07-25T22:41:53.000Z | 2019-07-10T21:49:19.000Z | functions/include/serializer.py | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 178 | 2018-07-25T23:17:11.000Z | 2019-07-10T02:45:27.000Z | # Copyright 2018 U.C. Berkeley RISE Lab
#
# 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... | 22.892086 | 75 | 0.660905 |
b3ef8ee3fd80d4e7439e46e105cfd252de319dd7 | 2,610 | py | Python | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | null | null | null | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | 1 | 2021-11-11T18:45:10.000Z | 2021-11-11T18:45:10.000Z | tests/test_atom.py | mkowiel/restraintlib | 32de01d67ae290a45f3199e90c729acc258a6249 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import math
from unittest import TestCase
from restraintlib.atom import Atom
| 34.8 | 90 | 0.544444 |
b3efed275b239800b25c7e1dd58abe57758234de | 1,757 | py | Python | QRARRAY.py | k205045/GreenTransAGV | 4ad8634578e59be7d4568822adf69e061a1403af | [
"MIT"
] | null | null | null | QRARRAY.py | k205045/GreenTransAGV | 4ad8634578e59be7d4568822adf69e061a1403af | [
"MIT"
] | null | null | null | QRARRAY.py | k205045/GreenTransAGV | 4ad8634578e59be7d4568822adf69e061a1403af | [
"MIT"
] | null | null | null | from PIL import Image, ImageDraw, ImageFilter
from PIL import ImageFont
from os import listdir
from os.path import isfile, join
#QRcode
mypath = "QRcodefloder"
# im = Image.open("advanceduse.png")
list = []
onlyfiles = [ f for f in listdir(mypath) if isfile(join(mypath,f)) ]
print(onlyfiles)
for onlyfile in onlyfiles:
... | 29.283333 | 119 | 0.56346 |
b3f06db8d0fc5811f66b9bac54d4e0a653b8b217 | 2,703 | py | Python | vaksina/person.py | Guiorgy/vaksina | 917de581a8fe1b77fa69484d1a88cbf2724c0610 | [
"MIT"
] | 39 | 2022-01-01T19:01:52.000Z | 2022-01-25T03:05:19.000Z | vaksina/person.py | Guiorgy/vaksina | 917de581a8fe1b77fa69484d1a88cbf2724c0610 | [
"MIT"
] | 10 | 2022-01-01T19:17:34.000Z | 2022-01-21T16:35:31.000Z | vaksina/person.py | Guiorgy/vaksina | 917de581a8fe1b77fa69484d1a88cbf2724c0610 | [
"MIT"
] | 14 | 2022-01-02T11:43:02.000Z | 2022-01-17T20:17:03.000Z | # Copyright (c) 2022 Michael Casadevall
#
# 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, ... | 41.584615 | 84 | 0.697003 |
b3f16b9175ddbc53aed5519784666123e0d55491 | 6,964 | py | Python | tests/integration/test_breakpoint_step.py | benjamintemitope/SublimeTextXdebug | 7b62975aed85f4bc839d908d7a696d1ca2b794d9 | [
"MIT"
] | 344 | 2015-01-03T01:55:52.000Z | 2022-01-11T08:52:55.000Z | tests/integration/test_breakpoint_step.py | benjamintemitope/SublimeTextXdebug | 7b62975aed85f4bc839d908d7a696d1ca2b794d9 | [
"MIT"
] | 107 | 2015-01-05T12:46:39.000Z | 2021-03-25T04:56:16.000Z | tests/integration/test_breakpoint_step.py | benjamintemitope/SublimeTextXdebug | 7b62975aed85f4bc839d908d7a696d1ca2b794d9 | [
"MIT"
] | 82 | 2015-01-10T16:02:50.000Z | 2022-01-18T19:25:58.000Z | import os
try:
from xdebug.unittesting import XdebugDeferrableTestCase
except:
from SublimeTextXdebug.xdebug.unittesting import XdebugDeferrableTestCase
| 51.585185 | 162 | 0.747702 |
b3f2836bffc8bb0fbc4cbeb37e50f7145fc48bd5 | 1,099 | py | Python | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | tests/test_settings.py | wegostudio/wegq | 391cdf7e6a345079c20d9c517bff89cd440dd35c | [
"Apache-2.0"
] | null | null | null | import unittest
from wework import settings, wechat
| 29.702703 | 60 | 0.520473 |
b3f2957d39e42867207d8d036622748d178e9739 | 1,608 | py | Python | icevision/models/ultralytics/yolov5/fastai/learner.py | ai-fast-track/mantisshrimp | cc6d6a4a048f6ddda2782b6593dcd6b083a673e4 | [
"Apache-2.0"
] | 580 | 2020-09-10T06:29:57.000Z | 2022-03-29T19:34:54.000Z | icevision/models/ultralytics/yolov5/fastai/learner.py | ai-fast-track/mantisshrimp | cc6d6a4a048f6ddda2782b6593dcd6b083a673e4 | [
"Apache-2.0"
] | 691 | 2020-09-05T03:08:34.000Z | 2022-03-31T23:47:06.000Z | icevision/models/ultralytics/yolov5/fastai/learner.py | lgvaz/mantisshrimp2 | 743cb7df0dae7eb1331fc2bb66fc9ca09db496cd | [
"Apache-2.0"
] | 105 | 2020-09-09T10:41:35.000Z | 2022-03-25T17:16:49.000Z | __all__ = ["learner"]
from icevision.imports import *
from icevision.engines.fastai import *
from icevision.models.ultralytics.yolov5.fastai.callbacks import Yolov5Callback
from yolov5.utils.loss import ComputeLoss
def learner(
dls: List[Union[DataLoader, fastai.DataLoader]],
model: nn.Module,
cbs=None,
... | 30.339623 | 174 | 0.65796 |
b3f30dc9a0925d6b62e87bf5f2f77956c0674d4f | 6,191 | py | Python | v0.5/training/image_classification/train.py | PhilippvK/tiny | 0b04bcd402ee28f84e79fa86d8bb8e731d9497b8 | [
"Apache-2.0"
] | 148 | 2020-11-30T19:27:25.000Z | 2022-03-31T18:12:35.000Z | v0.5/training/image_classification/train.py | PhilippvK/tiny | 0b04bcd402ee28f84e79fa86d8bb8e731d9497b8 | [
"Apache-2.0"
] | 113 | 2021-01-08T16:59:04.000Z | 2022-03-12T01:04:51.000Z | v0.5/training/image_classification/train.py | PhilippvK/tiny | 0b04bcd402ee28f84e79fa86d8bb8e731d9497b8 | [
"Apache-2.0"
] | 41 | 2020-11-25T01:32:43.000Z | 2022-03-28T18:10:22.000Z | '''
MLCommons
group: TinyMLPerf (https://github.com/mlcommons/tiny)
image classification on cifar10
train.py desc: loads data, trains and saves model, plots training metrics
'''
import numpy as np
import matplotlib.pyplot as plt
import pickle
import tensorflow as tf
from keras.callbacks import LearningRateScheduler
... | 35.176136 | 118 | 0.719108 |
b3f538d52ae1e6ef588876efeb6394fbd75aad99 | 435 | py | Python | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | setup.py | mchalek/timetools | 347d71c5b1b61b2e7f51b55b78717d046df0eac9 | [
"MIT"
] | null | null | null | from distutils.core import setup
setup(
name = 'timetools',
version = '1.0.0',
description = 'CL tools for timestamps',
author = 'Kevin McHale',
author_email = 'mchalek@gmail.com',
url = 'https://github.com/mchalek/timetools',
scripts = [
'bin/now',
... | 25.588235 | 53 | 0.482759 |
b3f6ce75fce86c23d25fbd7afbc4444019de0a95 | 2,601 | py | Python | src/tests/web/web_auth_utils_test.py | tomgilbertson/script-server-v1 | bbdf289d3d993a0c81f20c36bce5f3eb064b0261 | [
"Apache-2.0",
"CC0-1.0"
] | 833 | 2016-09-08T13:27:36.000Z | 2022-03-27T07:10:48.000Z | src/tests/web/web_auth_utils_test.py | tomgilbertson/script-server-v1 | bbdf289d3d993a0c81f20c36bce5f3eb064b0261 | [
"Apache-2.0",
"CC0-1.0"
] | 528 | 2016-05-23T09:17:04.000Z | 2022-03-30T12:45:50.000Z | src/tests/web/web_auth_utils_test.py | tomgilbertson/script-server-v1 | bbdf289d3d993a0c81f20c36bce5f3eb064b0261 | [
"Apache-2.0",
"CC0-1.0"
] | 214 | 2016-09-08T14:46:41.000Z | 2022-03-25T01:04:14.000Z | from unittest import TestCase
from parameterized import parameterized
from tests.test_utils import mock_request_handler
from web.web_auth_utils import remove_webpack_suffixes, is_allowed_during_login
| 41.951613 | 93 | 0.715494 |
b3f7e6c22b6c9794a41aee33552f02308c3e5c81 | 334 | py | Python | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | null | null | null | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | 1 | 2020-07-12T11:36:06.000Z | 2020-07-16T22:58:18.000Z | home/migrations/0020_remove_comment_content_type.py | yys534640040/blog | 5489506593a4c496856cb197c6eeee0b9d0c7422 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-07-03 20:33
from django.db import migrations
| 18.555556 | 47 | 0.598802 |
b3f8cd4ae912dbdd73c9929061b57c0026f34e20 | 394 | py | Python | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 1 | 2021-09-17T18:04:33.000Z | 2021-09-17T18:04:33.000Z | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | null | null | null | maldives/bot/models/price.py | filipecn/maldives | f20f17d817fc3dcad7f9674753744716d1d4c821 | [
"MIT"
] | 3 | 2021-09-17T18:04:43.000Z | 2022-03-18T20:04:07.000Z | from datetime import datetime
| 20.736842 | 41 | 0.563452 |
b3f9ba735a60d3a089be5c0016638eb41035164c | 1,700 | py | Python | components/collector/src/source_collectors/trello/base.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 33 | 2016-01-20T07:35:48.000Z | 2022-03-14T09:20:51.000Z | components/collector/src/source_collectors/trello/base.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 2,410 | 2016-01-22T18:13:01.000Z | 2022-03-31T16:57:34.000Z | components/collector/src/source_collectors/trello/base.py | kargaranamir/quality-time | 1c427c61bee9d31c3526f0a01be2218a7e167c23 | [
"Apache-2.0"
] | 21 | 2016-01-16T11:49:23.000Z | 2022-01-14T21:53:22.000Z | """Trello metric collector base classes."""
from abc import ABC
from base_collectors import SourceCollector
from collector_utilities.type import URL
from model import SourceResponses
| 45.945946 | 102 | 0.677647 |
b3f9bcec38c9a72781e8e70499e37a556328642c | 3,248 | py | Python | keylib/private_key.py | Wealize/keylib-py | c7021771449b8f983d6731e8bbf23ca657ba0ff8 | [
"MIT"
] | 10 | 2016-03-20T10:41:27.000Z | 2020-11-12T11:10:15.000Z | keylib/private_key.py | Wealize/keylib-py | c7021771449b8f983d6731e8bbf23ca657ba0ff8 | [
"MIT"
] | 4 | 2016-12-21T00:53:22.000Z | 2020-03-08T06:22:24.000Z | keylib/private_key.py | Wealize/keylib-py | c7021771449b8f983d6731e8bbf23ca657ba0ff8 | [
"MIT"
] | 16 | 2016-06-01T19:42:35.000Z | 2021-11-24T07:35:25.000Z | # -*- coding: utf-8 -*-
"""
pybitcoin
~~~~~
:copyright: (c) 2014 by Halfmoon Labs
:license: MIT, see LICENSE for more details.
"""
import os
import json
import hashlib
import ecdsa
from binascii import hexlify, unhexlify
from ecdsa.keys import SigningKey
from .key_formatting import compress, encode_p... | 32.158416 | 107 | 0.652401 |
b3fa02a8b8024f77ab62c64666d2d920b50e4c95 | 2,087 | py | Python | testcase/T_requests.py | jacktan1016/InnerAutoTest_W | d8b6304223c71d23cf093cba28060b4a2a838e2b | [
"MIT"
] | null | null | null | testcase/T_requests.py | jacktan1016/InnerAutoTest_W | d8b6304223c71d23cf093cba28060b4a2a838e2b | [
"MIT"
] | null | null | null | testcase/T_requests.py | jacktan1016/InnerAutoTest_W | d8b6304223c71d23cf093cba28060b4a2a838e2b | [
"MIT"
] | null | null | null | import json
import requests
from utils.RequestsUtil import RequestsUtil
from config.Conf import ConfYaml
import os
request_util = RequestsUtil()
conf = ConfYaml()
if __name__=="__main__":
# token
r = login()
print(r)
# # token
str_token = r['body']['token']
info_data = info(str_token)
pr... | 29.394366 | 81 | 0.631049 |
b3fab383b142152824ae9a6267327c0e43da466f | 1,340 | py | Python | pluto_navigation/scripts/wait_for_goal.py | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | pluto_navigation/scripts/wait_for_goal.py | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | pluto_navigation/scripts/wait_for_goal.py | SabrinaFrohn/mesh_navigation | 6949a62e4656f99f5d0dcda7419e269dbbe9058e | [
"BSD-3-Clause"
] | null | null | null | import rospy
import smach
import threading
from geometry_msgs.msg import PoseStamped
| 32.682927 | 119 | 0.645522 |
b3fbdad4ed64cfcecd3fb0cb6ae4bd8c65572b8e | 348 | py | Python | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 2 | 2017-04-17T18:30:15.000Z | 2018-05-05T23:11:06.000Z | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 46 | 2016-09-11T19:40:49.000Z | 2020-02-05T01:49:34.000Z | filesystems/click.py | Julian/Filesystems | 8c758c8dbbe1263b2ad574ccb8e2c81c865c0a61 | [
"MIT"
] | 4 | 2017-01-13T14:47:00.000Z | 2020-01-17T00:45:49.000Z | """
Click support for `filesystems.Path`.
"""
from __future__ import absolute_import
import click
import filesystems
PATH = Path()
| 15.130435 | 50 | 0.672414 |
b6029e5c3de03586995e695f33d08198c6b3bcec | 4,639 | py | Python | equilibrium-propagation/numpy_one_layer.py | jiangdaniel/dl-papers | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | 1 | 2019-03-26T12:19:59.000Z | 2019-03-26T12:19:59.000Z | equilibrium-propagation/numpy_one_layer.py | jiangdaniel/ml-implementations | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | 5 | 2018-11-26T05:48:52.000Z | 2018-11-26T05:50:45.000Z | equilibrium-propagation/numpy_one_layer.py | jiangdaniel/ml-implementations | ca85708b5629dc1ba22ec1dfc023d3a6267b0d34 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import numpy as np
import torch as th
import torchvision
from tqdm import tqdm
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argume... | 36.527559 | 117 | 0.538047 |
b602a5e9115de37b8d2d657582d79704b2d23cd3 | 605 | py | Python | atc53/rule/weighted.py | cloudtools/atc53 | 1c7b9a0f52a18adab3cc32deff42b4b4ec6276fd | [
"BSD-2-Clause"
] | 3 | 2018-11-13T21:54:57.000Z | 2019-04-16T08:04:58.000Z | atc53/rule/weighted.py | cloudtools/atc53 | 1c7b9a0f52a18adab3cc32deff42b4b4ec6276fd | [
"BSD-2-Clause"
] | 1 | 2018-07-17T13:56:40.000Z | 2018-07-17T15:14:29.000Z | atc53/rule/weighted.py | cloudtools/atc53 | 1c7b9a0f52a18adab3cc32deff42b4b4ec6276fd | [
"BSD-2-Clause"
] | 2 | 2020-11-21T19:02:22.000Z | 2021-02-11T11:33:43.000Z | from atc53 import BaseAWSObject, AWSProperty
| 26.304348 | 68 | 0.624793 |
b60351063710a533911517acf4f3365c7b83f4ec | 4,621 | py | Python | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2018-07-08T08:32:49.000Z | 2022-03-13T10:17:09.000Z | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 5 | 2016-11-30T02:52:58.000Z | 2018-05-24T04:46:49.000Z | radiation/python/scripts/record_random_walk.py | dfridovi/exploration | 5e66115178988bd264a920041dfeab6d3539caec | [
"BSD-3-Clause"
] | 2 | 2016-12-01T04:06:40.000Z | 2019-06-19T16:32:28.000Z | """
Copyright (c) 2015, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright
... | 39.161017 | 85 | 0.662194 |
b60438c61cd249fe3929938054963bdf3af1ba35 | 2,149 | py | Python | setup.py | nokx5/speedo | 23d42bd6148eef845d7f11c992b17ae1bc2fbd6d | [
"MIT"
] | null | null | null | setup.py | nokx5/speedo | 23d42bd6148eef845d7f11c992b17ae1bc2fbd6d | [
"MIT"
] | null | null | null | setup.py | nokx5/speedo | 23d42bd6148eef845d7f11c992b17ae1bc2fbd6d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# mypy: ignore-errors
#
#
# Speedo
#
#
import os
from setuptools import setup, find_namespace_packages
from speedo_common.version import speedo_version as __version__
def get_requirements(filename: str):
"""Build the requirements list from the filename"""
requirements_list = []
wit... | 30.267606 | 69 | 0.614705 |
b604cff0636c7f5ed2000c437822c2e55deb7a04 | 5,307 | py | Python | model.py | NerdToMars/Fringe-pattern-denoising-based-on-deep-learning | 23dea6bcd4d43568d458cb3ac748dbd5cd7d0cf2 | [
"BSD-2-Clause"
] | 5 | 2019-03-01T07:42:29.000Z | 2021-04-18T16:47:06.000Z | model.py | NerdToMars/Fringe-pattern-denoising-based-on-deep-learning | 23dea6bcd4d43568d458cb3ac748dbd5cd7d0cf2 | [
"BSD-2-Clause"
] | null | null | null | model.py | NerdToMars/Fringe-pattern-denoising-based-on-deep-learning | 23dea6bcd4d43568d458cb3ac748dbd5cd7d0cf2 | [
"BSD-2-Clause"
] | 5 | 2019-01-10T20:59:14.000Z | 2020-09-15T01:33:19.000Z | """ This script demonstrates the use of a convolutional LSTM network.
This network is used to predict the next frame of an artificially
generated movie which contains moving squares.
"""
from keras.models import Sequential
from keras.layers.convolutional import Conv3D
from keras.layers.convolutional_recurrent import Co... | 50.066038 | 152 | 0.679292 |
b60524371592fc13a90a092bd41622fae9b2911d | 5,795 | py | Python | Advent2019/14.py | SSteve/AdventOfCode | aed16209381ccd292fc02008f1f2da5d16ff1a05 | [
"MIT"
] | null | null | null | Advent2019/14.py | SSteve/AdventOfCode | aed16209381ccd292fc02008f1f2da5d16ff1a05 | [
"MIT"
] | null | null | null | Advent2019/14.py | SSteve/AdventOfCode | aed16209381ccd292fc02008f1f2da5d16ff1a05 | [
"MIT"
] | null | null | null | #I couldn't figure this one out so I copied the solution from https://github.com/joelgrus/advent2019/blob/master/day14/day14.py
from __future__ import annotations
import math
import re
from collections import defaultdict
from typing import Iterable, List, NamedTuple, Dict
REACTIONS1 = """10 ORE => 10 A
1 ORE => 1 B
... | 34.700599 | 130 | 0.645384 |
b6052eab54e50a74d3981082007e9fd6ed2ddca3 | 4,790 | py | Python | crawler/views.py | kuna/twfavcrawler | 8173fbedfbf23e291fea18c40aaa29c0db3cbe28 | [
"MIT"
] | null | null | null | crawler/views.py | kuna/twfavcrawler | 8173fbedfbf23e291fea18c40aaa29c0db3cbe28 | [
"MIT"
] | null | null | null | crawler/views.py | kuna/twfavcrawler | 8173fbedfbf23e291fea18c40aaa29c0db3cbe28 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from models import *
import twitter
# -------------------------------
# if not logined, then go to auth page first
# return HttpResponse('user cannot found', status=500)
# -----------------... | 33.263889 | 72 | 0.589979 |
b605e2b8a8084f71c91e33d2351a943a53e715a5 | 1,447 | py | Python | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | Test/test.py | ed-chin-git/Utils_edchin | 44a6cd8ff9a3c3ffd9976eae53f3b3edd2cca18e | [
"MIT"
] | null | null | null | # ======================================================
# Packaging Python Projects Tutorial : https://packaging.python.org/tutorials/packaging-projects/
#
# Installation : # pip install -i https://test.pypi.org/simple/ utils-edchin
#
#
# ===================================================================
# Imp... | 38.078947 | 115 | 0.572218 |
b60662b19a9b9704df07da76b3e45c7b1d60fff5 | 6,913 | py | Python | app/api/api_test.py | optimuspaul/sensei | 4d7a89194fc4014fb5b0de6ffc3a099f083c64d7 | [
"MIT"
] | null | null | null | app/api/api_test.py | optimuspaul/sensei | 4d7a89194fc4014fb5b0de6ffc3a099f083c64d7 | [
"MIT"
] | null | null | null | app/api/api_test.py | optimuspaul/sensei | 4d7a89194fc4014fb5b0de6ffc3a099f083c64d7 | [
"MIT"
] | null | null | null | import unittest
from datetime import datetime, timedelta
import json
from ..main import create_app
from base64 import b64encode
from ..models import *
if __name__ == '__main__':
unittest.main()
| 33.721951 | 104 | 0.596123 |
b606c6f7d46c35659ab485c2ddd396a75dda115b | 831 | py | Python | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | reqlog/__main__.py | JFF-Bohdan/reqlog | a7ba7b6e12609d736b3cd8cd8bc2913d511848ee | [
"MIT"
] | null | null | null | import os
import sys
import bottle
base_module_dir = os.path.dirname(sys.modules[__name__].__file__)
try:
import reqlog # noqa: F401 # need to check import possibility
except ImportError:
path = base_module_dir
path = os.path.join(path, "..")
sys.path.insert(0, path)
import reqlog... | 25.96875 | 67 | 0.690734 |
b606c803ecdab8796c233d6f0b74f5656877113c | 23,410 | py | Python | insertData.py | lunious/scggzy | 250094212a650db583ad38cec9644fdd449afdab | [
"Apache-2.0"
] | null | null | null | insertData.py | lunious/scggzy | 250094212a650db583ad38cec9644fdd449afdab | [
"Apache-2.0"
] | null | null | null | insertData.py | lunious/scggzy | 250094212a650db583ad38cec9644fdd449afdab | [
"Apache-2.0"
] | null | null | null | import time
from qgggzy import settings
import pymysql
import logging
connect = pymysql.connect(
host=settings.MYSQL_HOST,
db=settings.MYSQL_DBNAME,
user=settings.MYSQL_USER,
passwd=settings.MYSQL_PASSWD,
port=settings.MYSQL_PORT,
charset='utf8',
use_unicode=False
)
cursor = connect.cursor... | 111.47619 | 386 | 0.714994 |
b608402c0e8072771b347f2c3ecc7549b510eb7d | 327 | py | Python | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 7 | 2018-05-31T18:21:37.000Z | 2020-07-13T05:20:05.000Z | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 1 | 2018-06-19T18:14:48.000Z | 2018-06-19T18:14:48.000Z | bchscript/__init__.py | gandrewstone/bchscript | c73a69f259b4cfb71546903c736e4a94fd0680d7 | [
"MIT"
] | 4 | 2018-06-01T00:29:32.000Z | 2020-07-13T05:19:30.000Z | from bchscript.bchutil import BCH_TESTNET, BCH_MAINNET, BCH_REGTEST, bitcoinAddress2bin
from bchscript.bchscript import compile, script2hex, script2bin, prettyPrint
__all__ = ["bchscript"]
| 27.25 | 87 | 0.7737 |
b6086a825ed85a12a4788f76ef961e39f102218a | 43,116 | py | Python | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | djangobbs/uploads/exif.py | JuanbingTeam/djangobbs | 2d52d83b80758e153b0604e71fb0cef4e6528275 | [
"Apache-2.0"
] | null | null | null | # Library to extract EXIF information in digital camera image files
#
# To use this library call with:
# f=open(path_name, 'rb')
# tags=EXIF.process_file(f)
# tags will now be a dictionary mapping names of EXIF tags to their
# values in the file named by path_name. You can process the tags
# as you wish. ... | 36.080335 | 86 | 0.505682 |
b609f4b1ffa24614e7665b9913e37d343760b745 | 341 | py | Python | Introducao python/exercicios/ex009.py | Luis12368/python | 23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7 | [
"MIT"
] | null | null | null | Introducao python/exercicios/ex009.py | Luis12368/python | 23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7 | [
"MIT"
] | null | null | null | Introducao python/exercicios/ex009.py | Luis12368/python | 23352d75ad13bcfd09ea85ab422fdc6ae1fcc5e7 | [
"MIT"
] | null | null | null | n = int(input('Insira um nmero: '))
print('_' * 12)
print(f'{n} X 1 = {n*1}')
print(f'{n} X 2 = {n*2}')
print(f'{n} X 3 = {n*3}')
print(f'{n} X 4 = {n*4}')
print(f'{n} X 5 = {n*5}')
print(f'{n} x 6 = {n*6}')
print(f'{n} X 7 = {n*7}')
print(f'{n} X 8 = {n*8}')
print(f'{n} X 9 = {n*9}')
print(f'{n} X 10 = {n*10}... | 22.733333 | 36 | 0.442815 |
b60aa69f26d91dc79de24bac34658713f8d14b86 | 1,013 | py | Python | setup.py | GSri30/Disbot | 844c18470728402ddd95b956b03da3ab310fd933 | [
"MIT"
] | null | null | null | setup.py | GSri30/Disbot | 844c18470728402ddd95b956b03da3ab310fd933 | [
"MIT"
] | 2 | 2021-03-12T09:01:46.000Z | 2021-03-12T09:07:30.000Z | setup.py | GSri30/Disbot | 844c18470728402ddd95b956b03da3ab310fd933 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open('README.md') as readme_file:
README=readme_file.read()
with open('HISTORY.md') as history_file:
HISTORY=history_file.read()
setup_args=dict(
name='DisBot',
version='1.0',
description='Tool to create a quick new discord.py bot',
long_descri... | 27.378378 | 82 | 0.663376 |
b60bb95066becb48c6ff8cba134f776c7538e9c1 | 204 | py | Python | simple_help/__init__.py | DCOD-OpenSource/django-simple-help | 779ccd900adee0d0eb656dd8e676019127e5f6e2 | [
"MIT"
] | 3 | 2016-11-29T14:24:59.000Z | 2017-05-25T11:25:55.000Z | simple_help/__init__.py | DCOD-OpenSource/django-simple-help | 779ccd900adee0d0eb656dd8e676019127e5f6e2 | [
"MIT"
] | null | null | null | simple_help/__init__.py | DCOD-OpenSource/django-simple-help | 779ccd900adee0d0eb656dd8e676019127e5f6e2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# django-simple-help
# simple_help/__init__.py
from __future__ import unicode_literals
__all__ = [
"default_app_config",
]
default_app_config = "simple_help.apps.Config"
| 13.6 | 46 | 0.720588 |
b60c3bce7835af6a87ec56f47bab71db90bed1c7 | 7,517 | py | Python | avanza/avanza_socket.py | jonasoreland/avanza | e09fde24070485ddbdde7b114f366e0714f8b25a | [
"MIT"
] | null | null | null | avanza/avanza_socket.py | jonasoreland/avanza | e09fde24070485ddbdde7b114f366e0714f8b25a | [
"MIT"
] | null | null | null | avanza/avanza_socket.py | jonasoreland/avanza | e09fde24070485ddbdde7b114f366e0714f8b25a | [
"MIT"
] | null | null | null | import asyncio
import logging
import json
import websockets
from typing import Any, Callable, Sequence
from .constants import (
ChannelType
)
WEBSOCKET_URL = 'wss://www.avanza.se/_push/cometd'
logger = logging.getLogger("avanza_socket")
| 32.261803 | 120 | 0.588533 |
b60ca16fa837b453b4af03e4bf6713bd39b4eeda | 1,610 | py | Python | app/auth/routes.py | oldcryptogeek/coinjerk-btcp | 76d16b6c890bf1caa155ff07bca162526db08fc7 | [
"MIT"
] | 8 | 2020-09-22T03:40:31.000Z | 2021-04-17T15:17:03.000Z | app/auth/routes.py | Zaxounette/coinjerk-btcp | 76d16b6c890bf1caa155ff07bca162526db08fc7 | [
"MIT"
] | 5 | 2021-01-10T23:36:12.000Z | 2022-02-19T06:46:18.000Z | app/auth/routes.py | Zaxounette/coinjerk-btcp | 76d16b6c890bf1caa155ff07bca162526db08fc7 | [
"MIT"
] | 2 | 2021-01-03T23:36:39.000Z | 2021-02-13T15:45:09.000Z | from flask import jsonify, request, current_app
from app import db
from app.auth import auth
from app.models import User
from datetime import datetime, timedelta
import jwt
| 24.393939 | 66 | 0.585093 |
b60cc6954437b801363a2acdd55d0ccb2d6e3209 | 6,313 | py | Python | event/io/dataset/richere.py | edvisees/DDSemantics | 9044e4afa6f9d6d7504de028633295f30679278d | [
"Apache-2.0"
] | null | null | null | event/io/dataset/richere.py | edvisees/DDSemantics | 9044e4afa6f9d6d7504de028633295f30679278d | [
"Apache-2.0"
] | null | null | null | event/io/dataset/richere.py | edvisees/DDSemantics | 9044e4afa6f9d6d7504de028633295f30679278d | [
"Apache-2.0"
] | null | null | null | import logging
import os
import xml.etree.ElementTree as ET
from collections import defaultdict
from event.io.dataset.base import (
Span,
DataLoader,
DEDocument,
RelationMention,
)
| 36.281609 | 78 | 0.534453 |
b6105ca720ff08f32883b070b3b6eb3a689c0317 | 1,149 | py | Python | cfc-parser.py | FIFCOM/codeforces-contests-parser | 8a1bf7f4d4802be073e1f4cba8cc2962409473c5 | [
"MIT"
] | null | null | null | cfc-parser.py | FIFCOM/codeforces-contests-parser | 8a1bf7f4d4802be073e1f4cba8cc2962409473c5 | [
"MIT"
] | null | null | null | cfc-parser.py | FIFCOM/codeforces-contests-parser | 8a1bf7f4d4802be073e1f4cba8cc2962409473c5 | [
"MIT"
] | null | null | null | import os
import urllib.request
import json
import datetime
from prettytable import PrettyTable
contest_url = "https://codeforces.com/api/contest.list"
cur_timestamp = int(datetime.datetime.now().timestamp())
print("Please wait...")
li = get_contest_list()
# clear terminal
os.system("cls")
print(list_to_table(li))
co... | 29.461538 | 75 | 0.645779 |
b610963ee1293b1c7ee709e8e8b2e82ded874788 | 3,406 | py | Python | src/main/python/util/java_runner.py | gsj601/ggp-hardware | ec9f293c43f9202f480c5f5cf81cee708694425c | [
"BSD-3-Clause"
] | null | null | null | src/main/python/util/java_runner.py | gsj601/ggp-hardware | ec9f293c43f9202f480c5f5cf81cee708694425c | [
"BSD-3-Clause"
] | null | null | null | src/main/python/util/java_runner.py | gsj601/ggp-hardware | ec9f293c43f9202f480c5f5cf81cee708694425c | [
"BSD-3-Clause"
] | null | null | null | """java_runner
A module for helping you run java as an external process.
"""
# Local libraries
import config_help
# Standard Imports
import subprocess
# Setting up logging:
# https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library
import logging
LOG = logging.getLogger(__name__)
LOG.addHandler... | 30.141593 | 80 | 0.590429 |
b611137ed77fff3f1dc6cb533c989b3abe68b3ac | 99 | py | Python | tests/test_fill.py | NioGreek/Clashgap | 8e066de522b139fbb30f742eea64a549c57d9b00 | [
"MIT"
] | 2 | 2021-07-20T17:09:06.000Z | 2021-07-22T03:05:24.000Z | tests/test_fill.py | NioGreek/Clashgap | 8e066de522b139fbb30f742eea64a549c57d9b00 | [
"MIT"
] | 2 | 2021-07-22T12:57:33.000Z | 2021-07-24T08:28:56.000Z | tests/test_fill.py | NioGreek/Clashgap | 8e066de522b139fbb30f742eea64a549c57d9b00 | [
"MIT"
] | 1 | 2021-07-21T07:03:19.000Z | 2021-07-21T07:03:19.000Z | import clashgap as cg
| 19.8 | 58 | 0.545455 |
b6124c267a7355fff279f80fee851b3b716a05f0 | 458 | py | Python | Python/stack.py | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null | Python/stack.py | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null | Python/stack.py | uday256071/DataStructures-and-Algorithms | d5740a27a8e4141616307ec3771bc7ad95ff9f72 | [
"MIT"
] | null | null | null |
s=Stack()
s.isEmpty()
s.push(5)
s.push(56)
s.push('sdfg')
s.push(9)
print(s.peek())
print(s.pop())
print(s.peek())
print(s.size())
| 16.357143 | 31 | 0.572052 |
b612ccf587f22da1d2c787ccc0805bc747eb9271 | 1,278 | py | Python | examples/util/rectangular_binner.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | examples/util/rectangular_binner.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | examples/util/rectangular_binner.py | CU-NESS/pylinex | b6f342595b6a154e129eb303782e5268088f34d5 | [
"Apache-2.0"
] | null | null | null | """
File: examples/util/rectangular_binner.py
Author: Keith Tauscher
Date: 22 Sep 2018
Description: Example script showing the use of the RectangularBinner class.
"""
from __future__ import division
import numpy as np
import matplotlib.pyplot as pl
from pylinex import RectangularBinner
fontsize = 24
num_old_x_values... | 29.72093 | 78 | 0.777778 |
b6132900005efba6ceb5ca456cea3f1dc6d5ba6f | 1,115 | py | Python | setup.py | gardsted/bulmate | 1a858f29a8f89bc3eaf40c94e8716f324c4f893c | [
"MIT"
] | null | null | null | setup.py | gardsted/bulmate | 1a858f29a8f89bc3eaf40c94e8716f324c4f893c | [
"MIT"
] | null | null | null | setup.py | gardsted/bulmate | 1a858f29a8f89bc3eaf40c94e8716f324c4f893c | [
"MIT"
] | null | null | null | __license__ = open('LICENSE').read()
version = open('VERSION').read()
from setuptools import setup
long_description = open('README.md').read()
setup(
name = 'bulmate',
version = version,
author = 'gardsted',
author_email = 'gardsted@gmail.com',
license = 'MIT',
url = 'https://github.com/gardsted/... | 31.857143 | 87 | 0.671749 |
b613718c7e2d35ae6a1c1ae7f73a8f4eabb66ad5 | 4,153 | py | Python | mindhome_alpha/erpnext/selling/page/sales_funnel/sales_funnel.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | mindhome_alpha/erpnext/selling/page/sales_funnel/sales_funnel.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | null | null | null | mindhome_alpha/erpnext/selling/page/sales_funnel/sales_funnel.py | Mindhome/field_service | 3aea428815147903eb9af1d0c1b4b9fc7faed057 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from erpnext.accounts.report.utils import convert
import pandas as pd | 41.53 | 273 | 0.696846 |
b61396aef7f1b8aef702d703e3287512dc0d3e4d | 4,535 | py | Python | ns/nxml.py | kentnf/noschema | f6506d7a5fb5c4bd86cb64daa72602dc9af4a69c | [
"MIT"
] | null | null | null | ns/nxml.py | kentnf/noschema | f6506d7a5fb5c4bd86cb64daa72602dc9af4a69c | [
"MIT"
] | null | null | null | ns/nxml.py | kentnf/noschema | f6506d7a5fb5c4bd86cb64daa72602dc9af4a69c | [
"MIT"
] | null | null | null | #!/usr/bin/python3
'''
parse large XML files which stores funtional annotations of features
infact, we do not need xml module such as SAX at here
'''
import sys
# import datetime
'''
re_match_tag -- using regexp to match tag of xml
string: line of xml file
tag: <tag> or </tag>
status: 0 or 1, 0 match start, 1 ... | 24.646739 | 103 | 0.644983 |
b6143b3550f49956ddea8c4bfd01709e885c15e6 | 703 | py | Python | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/Alura/DesignPatterns/calculador_de_impostos.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | 1 | 2020-03-03T22:34:13.000Z | 2020-03-03T22:34:13.000Z |
if __name__ == '__main__':
from orcamento import Orcamento, Item
from impostos import ISS, ICMS, ICPP, IKCV
orcamento = Orcamento()
orcamento.adiciona_item(Item('ITEM 1', 50))
orcamento.adiciona_item(Item('ITEM 2', 200))
orcamento.adiciona_item(Item('ITEM 3', 250))
calculador_de_imposto... | 30.565217 | 67 | 0.721195 |
37337c62dbb2bddf2dd085e45f52e14215a16cb3 | 866 | py | Python | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/SignalMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/SignalMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | pyy1/.pycharm_helpers/python_stubs/-1550516950/_dbus_bindings/SignalMessage.py | pyy1988/pyy_test1 | 6bea878409e658aa87441384419be51aaab061e7 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# module _dbus_bindings
# from /usr/lib/python3/dist-packages/_dbus_bindings.cpython-35m-x86_64-linux-gnu.so
# by generator 1.145
"""
Low-level Python bindings for libdbus. Don't use this module directly -
the public API is provided by the `dbus`, `dbus.service`, `dbus.mainloop`
and `dbus.mainloop.gli... | 27.0625 | 96 | 0.69515 |
3733d3e30660680d9a0362cfceee9dfad9c58b74 | 2,871 | py | Python | examples3/sac/visualize_deepmind.py | lgvaz/torchrl | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 5 | 2018-06-21T14:33:40.000Z | 2018-08-18T02:26:03.000Z | examples3/sac/visualize_deepmind.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | null | null | null | examples3/sac/visualize_deepmind.py | lgvaz/reward | cfff8acaf70d1fec72169162b95ab5ad3547d17a | [
"MIT"
] | 2 | 2018-05-08T03:34:49.000Z | 2018-06-22T15:04:17.000Z | import torch, torch.nn as nn, numpy as np
import reward as rw, reward.utils as U
from dm_control import suite, viewer
DEVICE = U.device.get()
def concat_state_shape(s_spec): return (int(np.sum([np.prod(o.shape) for o in s_spec.values()])), )
# env = suite.load(domain_name="cartpole", task_name="three_poles")
env = ... | 38.797297 | 117 | 0.66388 |
37359cb8f0f551b30886095bb2ffa0068e416f4d | 3,599 | py | Python | evaluator/evaluate_model.py | k-chuang/code-generation-from-images | 903a9a88262b57307836b0253ef6afcfd010dc06 | [
"MIT"
] | 5 | 2018-10-17T02:48:49.000Z | 2021-12-12T14:51:09.000Z | evaluator/evaluate_model.py | k-chuang/code-generation-from-images | 903a9a88262b57307836b0253ef6afcfd010dc06 | [
"MIT"
] | null | null | null | evaluator/evaluate_model.py | k-chuang/code-generation-from-images | 903a9a88262b57307836b0253ef6afcfd010dc06 | [
"MIT"
] | 2 | 2019-03-31T23:35:11.000Z | 2021-11-29T07:56:23.000Z | import sys
sys.path.extend(['..'])
import tensorflow as tf
config = tf.ConfigProto(log_device_placement=False)
config.gpu_options.allow_growth = True
sess = tf.Session(config=config)
from generator.generate_code import *
from nltk.translate.bleu_score import corpus_bleu
from config.config import *
from base.BaseModel... | 46.74026 | 126 | 0.684912 |
373624a9b643c4143bff91e625ea72076589eebb | 3,580 | py | Python | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | null | null | null | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | null | null | null | populate/populate.py | vascoalramos/roomie | 031aef815af910b259da0fef7cca5bec02459006 | [
"MIT"
] | 2 | 2021-06-16T07:12:35.000Z | 2021-06-16T22:47:46.000Z | from faker import Faker
import os, random, requests, json
fake = Faker()
BASE_URL = "http://localhost:8083/api"
cities = [
"Braga",
"Viseu",
"Porto",
"Lisboa",
"Guimares",
"Leiria",
"Coimbra",
"Santarm",
"Guarda",
"Aveiro",
"Faro",
"Portimo",
"Beja",
"vora",
]... | 25.755396 | 86 | 0.548603 |
3736aa39ffdd286fb231d2f6df918307638bcf17 | 1,797 | py | Python | python/deploy-cpu-alarms.py | earthlab/aws-ops | e4310c994a93511783a947eebdf13a52c7760edb | [
"BSD-2-Clause"
] | 1 | 2019-03-22T15:16:50.000Z | 2019-03-22T15:16:50.000Z | python/deploy-cpu-alarms.py | earthlab/aws-ops | e4310c994a93511783a947eebdf13a52c7760edb | [
"BSD-2-Clause"
] | 3 | 2018-12-04T00:59:57.000Z | 2021-02-15T19:47:38.000Z | python/deploy-cpu-alarms.py | earthlab/aws-ops | e4310c994a93511783a947eebdf13a52c7760edb | [
"BSD-2-Clause"
] | 1 | 2019-11-14T13:49:41.000Z | 2019-11-14T13:49:41.000Z | # Deploy idle CPU alarms to stop EC2 instances
import boto3
account_id = boto3.client("sts").get_caller_identity().get("Account")
region = boto3.session.Session().region_name
client = boto3.client("cloudwatch")
ec = boto3.client("ec2")
reservations = ec.describe_instances()
exceptions = ["prf-"]
for r in reservation... | 39.065217 | 82 | 0.42571 |