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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
da0300886933dfe76dadbea34ca3db3b9a2e627c | 355 | py | Python | src/sima/simo/linearization.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/linearization.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/simo/linearization.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | # Generated with Linearization
#
from enum import Enum
from enum import auto | 23.666667 | 49 | 0.64507 |
da03370dc8f2f31bcdc7fd9d8a5697527015558e | 2,881 | py | Python | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 32 | 2020-01-05T13:37:16.000Z | 2022-03-26T07:27:09.000Z | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | null | null | null | 2020_August_Leetcode_30_days_challenge/Week_3_Non-overlapping Intervals/by_sorting.py | coderMaruf/leetcode-1 | 20ffe26e43999e44c8acf9800acb371a49bb5853 | [
"MIT"
] | 8 | 2020-06-18T16:17:27.000Z | 2022-03-15T23:58:18.000Z | '''
Description:
Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.
Example 1:
Input: [[1,2],[2,3],[3,4],[1,3]]
Output: 1
Explanation: [1,3] can be removed and the rest of intervals are non-overlapping.
Example 2:
Input: [... | 25.052174 | 139 | 0.588684 |
da0469fe0ec53d36c9f4e75701bb9541ada5eeed | 1,220 | py | Python | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 3 | 2021-05-11T07:12:05.000Z | 2021-10-04T04:01:38.000Z | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 9 | 2021-06-02T03:43:01.000Z | 2021-07-23T14:52:03.000Z | hive_plug_play/engine/processor.py | seakintruth/hive-plug-play | 032caed7a0690a58410b3d4e93a1fdecf2009d58 | [
"MIT"
] | 1 | 2021-05-24T15:57:20.000Z | 2021-05-24T15:57:20.000Z | from os import truncate
from hive_plug_play.database.handlers import PlugPlayDb | 32.105263 | 90 | 0.584426 |
da04bc9087b18cc1593f2b126074d0370e63d6a0 | 1,040 | py | Python | tests/integration/conftest.py | gcallaghan/openapi-spec-validator | 3ab3411936faaee91246627f957ba6108cd47d44 | [
"Apache-2.0"
] | null | null | null | tests/integration/conftest.py | gcallaghan/openapi-spec-validator | 3ab3411936faaee91246627f957ba6108cd47d44 | [
"Apache-2.0"
] | null | null | null | tests/integration/conftest.py | gcallaghan/openapi-spec-validator | 3ab3411936faaee91246627f957ba6108cd47d44 | [
"Apache-2.0"
] | null | null | null | from os import path
import pytest
from six.moves.urllib import request
from six.moves.urllib.parse import urlunparse
from yaml import safe_load
from openapi_spec_validator import openapi_v3_spec_validator
| 22.608696 | 66 | 0.742308 |
da058a79bcff3d1633c9de586676094982ec1208 | 24,030 | py | Python | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | 13 | 2020-03-24T15:29:41.000Z | 2022-03-11T23:15:28.000Z | scripts/populate_conferences.py | sf2ne/Playground | 95b2d222d7ac43baca0249acbfc34e043d6a95b3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
import os
from modularodm import Q
from modularodm.exceptions import ModularOdmException
from framework.auth.core import User
from website import settings
from website.app import init_app
from website.conferences.model import Conference
MEETING_DATA = {
'spsp2014': {
... | 32.693878 | 156 | 0.544112 |
da0602f1e855ed3a2c59e5d54ad317e3bc77bd87 | 3,563 | py | Python | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | 1 | 2020-11-30T01:39:12.000Z | 2020-11-30T01:39:12.000Z | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | null | null | null | clinicadl/clinicadl/subject_level/train_autoencoder.py | 921974496/AD-DL | 9a0303579a665800633024bdab1ac44f794a0c38 | [
"MIT"
] | null | null | null | from __future__ import print_function
import argparse
from os import path
from time import time
import sys
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from .utils import ae_finetuning
from ..tools.deep_learning.iotools import Parameters
from ..tools.deep_learning.data import MinMaxNormal... | 39.153846 | 168 | 0.63991 |
da08fa8384c712fcc3ccc0c8023334a1b12a22c0 | 375 | py | Python | globals/mime.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 97 | 2016-09-16T08:44:04.000Z | 2022-01-29T22:30:18.000Z | globals/mime.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 34 | 2016-09-20T00:42:45.000Z | 2021-04-16T07:21:44.000Z | globals/mime.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 24 | 2016-09-16T08:44:56.000Z | 2021-07-29T11:32:47.000Z | # -*- coding: utf-8 -*-
## \package globals.mime
# MIT licensing
# See: docs/LICENSE.txt
from globals.execute import GetCommandOutput
from globals.execute import GetExecutable
## TODO: Doxygen
| 17.857143 | 75 | 0.728 |
da09c6430f4f0663e4ddd43367f12c8087614e78 | 1,761 | py | Python | src/deployer/result.py | jbenden/deployer | b036fa3030f99ed0730bb3770cf7e01c58c257f1 | [
"Apache-2.0"
] | 2 | 2018-08-30T14:14:13.000Z | 2022-03-24T15:19:29.000Z | src/deployer/result.py | jbenden/deployer | b036fa3030f99ed0730bb3770cf7e01c58c257f1 | [
"Apache-2.0"
] | null | null | null | src/deployer/result.py | jbenden/deployer | b036fa3030f99ed0730bb3770cf7e01c58c257f1 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2018 Joseph Benden <joe@benden.us>
#
# 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 b... | 33.865385 | 83 | 0.662124 |
da0cc012c8071ddd102f587a464226bdf7578158 | 1,381 | py | Python | app.py | dhairyaostwal/bankingo | cc148940a9d4ae60d80acdc2e3c90a01a8a99c46 | [
"MIT"
] | 2 | 2021-12-11T02:32:35.000Z | 2021-12-12T08:42:41.000Z | app.py | dhairyaostwal/bankingo | cc148940a9d4ae60d80acdc2e3c90a01a8a99c46 | [
"MIT"
] | null | null | null | app.py | dhairyaostwal/bankingo | cc148940a9d4ae60d80acdc2e3c90a01a8a99c46 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
import pickle
app = Flask(__name__)
userInput = []
if __name__ == '__main__':
app.debug = True
app.run() | 26.557692 | 54 | 0.620565 |
da0d025051a5ed1885fbb8e49bb40af12912744c | 3,210 | py | Python | AlarmTimer.py | amjith/PyAlarmTimer | f664daa42d9ec70fc7ac512ce71868c703e8a011 | [
"MIT"
] | 2 | 2015-01-13T00:36:29.000Z | 2015-04-12T19:17:32.000Z | AlarmTimer.py | amjith/PyAlarmTimer | f664daa42d9ec70fc7ac512ce71868c703e8a011 | [
"MIT"
] | 1 | 2015-01-12T23:02:28.000Z | 2015-01-13T00:36:26.000Z | AlarmTimer.py | amjith/PyAlarmTimer | f664daa42d9ec70fc7ac512ce71868c703e8a011 | [
"MIT"
] | null | null | null | import sys
from PyQt4 import QtCore, QtGui
from itertools import cycle
from Resources.LcdNumber_ui import Ui_Form
if __name__ == "__main__":
app = QtGui.QApplication(sys.argv)
timerList = Str2Num(sys.argv[1:])
myapp = AlarmTimer(timerList)
myapp.show()
sys.exit(app.exec_())
| 33.092784 | 121 | 0.610592 |
da0dfc1a5ddc1f3fd9cff38b3e12d87c2cfff865 | 3,200 | py | Python | backend/handlers/graphql/resolvers/quota.py | al-indigo/vmemperor | 80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1 | [
"Apache-2.0"
] | null | null | null | backend/handlers/graphql/resolvers/quota.py | al-indigo/vmemperor | 80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1 | [
"Apache-2.0"
] | 8 | 2017-10-11T13:26:10.000Z | 2021-12-13T20:27:52.000Z | backend/handlers/graphql/resolvers/quota.py | ispras/vmemperor | 80eb6d47d839a4736eb6f9d2fcfad35f0a7b3bb1 | [
"Apache-2.0"
] | 4 | 2017-07-27T12:25:42.000Z | 2018-01-28T02:06:26.000Z | from graphql import ResolveInfo
from rethinkdb.errors import ReqlNonExistenceError
from handlers.graphql.graphql_handler import ContextProtocol
from handlers.graphql.types.pool import Quota
from handlers.graphql.utils.query import resolve_from_root
import constants.re as re
from utils.quota import check_vdi_size, chec... | 32 | 123 | 0.690938 |
da0e334dd350b538cbe6369f8de20266f08cd7ab | 23,670 | py | Python | webapp/creators/parse_eml.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | webapp/creators/parse_eml.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | webapp/creators/parse_eml.py | PASTAplus/umbra | 25f179801ab86d6506759b19849de1f7a8bf9e8d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
:Mod: propagate_names
:Synopsis: Parse EML files to collect information on the responsible parties, creating RESPONSIBLE_PARTIES_TEXT_FILE.
:Author:
ide
:Created:
6/1/21
"""
from enum import Enum, auto
import glob
import os
import pickle
import daiquiri
fr... | 35.170877 | 159 | 0.673722 |
da0ee8203f152fc62fcdc9038c65fc7421a7da86 | 2,399 | py | Python | pywrap.py | rosejn/pywrap | 21076e66e3ae99013524e4f391a5928193072fd6 | [
"MIT"
] | null | null | null | pywrap.py | rosejn/pywrap | 21076e66e3ae99013524e4f391a5928193072fd6 | [
"MIT"
] | null | null | null | pywrap.py | rosejn/pywrap | 21076e66e3ae99013524e4f391a5928193072fd6 | [
"MIT"
] | null | null | null | import ctypes
| 24.731959 | 87 | 0.615673 |
da0fb1e76df7bb263d04fdeb069e451fb04e547a | 2,756 | py | Python | pp/components/ring_single.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | 8 | 2020-08-25T11:25:18.000Z | 2022-03-27T11:32:11.000Z | pp/components/ring_single.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | null | null | null | pp/components/ring_single.py | flaport/gdsfactory | 1f2e844c1fe27b9c6340e2d51500fd3358fa16e5 | [
"MIT"
] | 1 | 2022-03-04T07:03:29.000Z | 2022-03-04T07:03:29.000Z | from typing import Callable
from pp.cell import cell
from pp.component import Component
from pp.components.bend_circular import bend_circular
from pp.components.coupler_ring import coupler_ring
from pp.components.waveguide import waveguide as waveguide_function
from pp.config import call_if_func
from pp.drc import ass... | 27.56 | 90 | 0.645501 |
da1134de439d802fe50733f5cc4818017bddfa77 | 1,469 | py | Python | uninstall.py | Manisso/LFSET | df5f104687daf66ef4a0cb9808a0ce377415e2dc | [
"MIT"
] | 8 | 2019-05-29T22:49:04.000Z | 2021-02-28T21:05:28.000Z | uninstall.py | Manisso/LFSET | df5f104687daf66ef4a0cb9808a0ce377415e2dc | [
"MIT"
] | null | null | null | uninstall.py | Manisso/LFSET | df5f104687daf66ef4a0cb9808a0ce377415e2dc | [
"MIT"
] | 2 | 2019-06-09T17:52:31.000Z | 2019-09-09T17:14:46.000Z | #!/usr/bin/env python
# -*- codeing: UTF-8 -*-
import time
import sys
import os
print('''
____ ___ .__ __ .__ .__ .____ __________________________________________
| | \____ |__| ____ _______/ |______ | | | | ______ ___.__. | ... | 43.205882 | 136 | 0.429544 |
da1152e98be68574744964ed8c665a43ee954229 | 13,297 | py | Python | src/services/db/oracle.py | daesnorey/PPRJ | f826eb194f895d13522f61a51a5100a5cdbead99 | [
"Apache-2.0"
] | null | null | null | src/services/db/oracle.py | daesnorey/PPRJ | f826eb194f895d13522f61a51a5100a5cdbead99 | [
"Apache-2.0"
] | null | null | null | src/services/db/oracle.py | daesnorey/PPRJ | f826eb194f895d13522f61a51a5100a5cdbead99 | [
"Apache-2.0"
] | null | null | null | """oracle.py.
db_connection.py file will contain the connection behaviour
to the database
"""
import traceback
import random
import copy
import cx_Oracle
import json
from src.objects.third import Third
from src.services.db.db_types import DbTypes
| 31.88729 | 137 | 0.518087 |
da11aa1d5d2c57b57bf78f6eb3a605f93202667a | 2,211 | py | Python | utils/utils_math.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | 5 | 2018-06-12T08:17:13.000Z | 2022-02-25T20:07:00.000Z | utils/utils_math.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | null | null | null | utils/utils_math.py | spisakt/PUMI | bea29696aa90e5581f08919e1a2cd9f569284984 | [
"BSD-3-Clause"
] | 2 | 2020-10-19T15:27:28.000Z | 2021-06-04T17:02:27.000Z | from nipype.interfaces.utility import Function
# calculates colmeans, rowmenas or global mean, depenxding on the 'axis' parameter
# and saves it to another txt
###############################################
AddTwo = Function(input_names=['a', 'b'],
output_names=['sum'],
... | 27.6375 | 82 | 0.557214 |
da11fc5980e78cefaeb92357886c125f256182a0 | 439 | py | Python | exercicio_py/ex0007_progressao_aritmetica/main_v1.py | danielle8farias/Exercicios-Python-3 | f2fe9b6ca63536df1d83fd10162cfc04de36b830 | [
"MIT"
] | null | null | null | exercicio_py/ex0007_progressao_aritmetica/main_v1.py | danielle8farias/Exercicios-Python-3 | f2fe9b6ca63536df1d83fd10162cfc04de36b830 | [
"MIT"
] | null | null | null | exercicio_py/ex0007_progressao_aritmetica/main_v1.py | danielle8farias/Exercicios-Python-3 | f2fe9b6ca63536df1d83fd10162cfc04de36b830 | [
"MIT"
] | null | null | null | ########
# autora: danielle8farias@gmail.com
# repositrio: https://github.com/danielle8farias
# Descrio: Usurio informa o 1 termo de uma PA e sua razo. O programa retorna os 10 primeiros termos dessa PA.
########
A1 = int(input('Primeiro termo: '))
r = int(input('Razo: '))
i = 1
An = A1
while i < 11:
print(f'{A... | 23.105263 | 114 | 0.610478 |
da12532f996b1734f9456dcccabecc881b1e321b | 2,165 | py | Python | rns/viz.py | matwilso/relation-networks | 66c67b342a90ae3699e576dcec883c329905b2e0 | [
"MIT"
] | null | null | null | rns/viz.py | matwilso/relation-networks | 66c67b342a90ae3699e576dcec883c329905b2e0 | [
"MIT"
] | null | null | null | rns/viz.py | matwilso/relation-networks | 66c67b342a90ae3699e576dcec883c329905b2e0 | [
"MIT"
] | null | null | null | import io
import os
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import seaborn as sns
from rns.constant import W, H
# Plotter functions
PLOT_FUNCS = {}
| 27.0625 | 112 | 0.639261 |
da1332cc41c82ca79874cad9790e459f7a50414e | 591 | py | Python | payments/tests.py | asm3ft/cs3240-quickthooters | 53000deca2d4a4ff4244cde76f36e7adcfb52784 | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | payments/tests.py | asm3ft/cs3240-quickthooters | 53000deca2d4a4ff4244cde76f36e7adcfb52784 | [
"MIT",
"PostgreSQL",
"Unlicense"
] | 9 | 2021-04-08T21:41:10.000Z | 2022-03-12T00:26:00.000Z | payments/tests.py | asm3ft/cs3240-quickthooters | 53000deca2d4a4ff4244cde76f36e7adcfb52784 | [
"MIT",
"PostgreSQL",
"Unlicense"
] | null | null | null | from django.test import TestCase
from django.test import RequestFactory, TestCase
from .views import charge, HomePageView
from login.models import Profile
from django.contrib.auth.models import User
# class PaymentViewsTestCase(TestCase):
# def setUp(self):
# # Every test needs access to the request facto... | 26.863636 | 71 | 0.663283 |
da1588b9217dc470ed263275774b3681de6ca380 | 642 | py | Python | MTRF/r3l/r3l/robot/robot.py | facebookresearch/MTRF | 2fee8f3f1c2150fcecc2db2fa9e122a664a72d72 | [
"Apache-2.0"
] | 2 | 2021-11-29T10:09:56.000Z | 2022-02-01T05:48:32.000Z | MTRF/r3l/r3l/robot/robot.py | facebookresearch/MTRF | 2fee8f3f1c2150fcecc2db2fa9e122a664a72d72 | [
"Apache-2.0"
] | null | null | null | MTRF/r3l/r3l/robot/robot.py | facebookresearch/MTRF | 2fee8f3f1c2150fcecc2db2fa9e122a664a72d72 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates
# Copyright (c) MTRF authors
import abc
| 21.4 | 49 | 0.640187 |
da160107a31d4d4dd133e4fba3b2b4c6286bd983 | 2,955 | py | Python | pycurb/time_rule.py | azavea/PyCurb | 9492ca40b0639680b73aa7bdfcf9f744f9e75727 | [
"Apache-2.0"
] | null | null | null | pycurb/time_rule.py | azavea/PyCurb | 9492ca40b0639680b73aa7bdfcf9f744f9e75727 | [
"Apache-2.0"
] | 8 | 2020-09-30T17:15:50.000Z | 2020-10-23T21:00:53.000Z | pycurb/time_rule.py | azavea/PyCurb | 9492ca40b0639680b73aa7bdfcf9f744f9e75727 | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from pycurb.utils import (parse_date, parse_day_of_month, parse_day_of_week,
parse_occurrence, parse_time)
| 26.863636 | 77 | 0.575973 |
da170ec47cebeb13d6c068d32835dcf9ac0425e1 | 2,653 | py | Python | amrlib/models/parse_gsii/vocabs.py | plandes/amrlib | c31f92f05a265362367eea85f512e54030860147 | [
"MIT"
] | 103 | 2020-09-04T07:21:09.000Z | 2022-03-31T23:06:41.000Z | amrlib/models/parse_gsii/vocabs.py | plandes/amrlib | c31f92f05a265362367eea85f512e54030860147 | [
"MIT"
] | 39 | 2020-09-03T14:26:22.000Z | 2022-03-08T20:18:59.000Z | amrlib/models/parse_gsii/vocabs.py | plandes/amrlib | c31f92f05a265362367eea85f512e54030860147 | [
"MIT"
] | 19 | 2020-09-30T12:15:08.000Z | 2022-02-18T18:15:31.000Z | import os
PAD, UNK, DUM, NIL, END, CLS = '<PAD>', '<UNK>', '<DUMMY>', '<NULL>', '<END>', '<CLS>'
# Note: for the function that saves the vocabs, see create_vocabs.py
| 37.366197 | 110 | 0.574821 |
da1752aa56e3a9f32b692a7cdcc8c12c9105eaac | 1,139 | py | Python | MAR2020/MakingChange.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null | MAR2020/MakingChange.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null | MAR2020/MakingChange.py | dexterchan/DailyChallenge | 1f38dc3b22983835836a84d6281777d8e20fce7a | [
"Apache-2.0"
] | null | null | null | #Given a list of possible coins in cents, and an amount (in cents) n,
# return the minimum number of coins needed to create the amount n.
# If it is not possible to create the amount using the given coin denomination, return None.
#Here's an example and some starter code:
#ANalysis, sort the list of possible coins O(n... | 28.475 | 92 | 0.603161 |
da17721d993049cf0bec2f0d42ed1fdb58798fac | 951 | py | Python | lightcycle-frontend/tournament/admin.py | Onapsis/pytron | 2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58 | [
"MIT"
] | 1 | 2015-11-04T12:04:42.000Z | 2015-11-04T12:04:42.000Z | lightcycle-frontend/tournament/admin.py | Onapsis/pytron | 2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58 | [
"MIT"
] | null | null | null | lightcycle-frontend/tournament/admin.py | Onapsis/pytron | 2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from tournament.models import Bot, Challenge, UserProfile
admin.site.register(Bot, BotAdmin)
admin.site.register(Challenge, ChallengeAdmin)
admin.site.unregister(User)
admin.site.register(User, ... | 32.793103 | 84 | 0.773922 |
da18045dfd912105fc7a816ba7142c291b5641e5 | 358 | py | Python | scripts/plotting/utils.py | ltiao/pynance | 1f170f9d32262eacf566a8d7647be04715c47dc1 | [
"MIT"
] | 1 | 2021-04-24T09:23:35.000Z | 2021-04-24T09:23:35.000Z | scripts/plotting/utils.py | ltiao/pynance | 1f170f9d32262eacf566a8d7647be04715c47dc1 | [
"MIT"
] | null | null | null | scripts/plotting/utils.py | ltiao/pynance | 1f170f9d32262eacf566a8d7647be04715c47dc1 | [
"MIT"
] | 1 | 2021-07-14T08:55:39.000Z | 2021-07-14T08:55:39.000Z | import numpy as np
import pandas as pd
import yaml
from pynance.benchmarks import make_benchmark
from pathlib import Path
GOLDEN_RATIO = 0.5 * (1 + np.sqrt(5))
WIDTH = 397.48499
| 17.9 | 45 | 0.72067 |
da1abe2987395fdd9c8ec09105630f0f84d026d1 | 3,637 | py | Python | tests/test_per_sample_wrapper.py | NiWaRe/deepee | 98b5cd09f356f4a597fe204799a524c4d444dd2d | [
"Apache-2.0"
] | 16 | 2021-03-24T09:50:32.000Z | 2022-03-10T12:03:37.000Z | tests/test_per_sample_wrapper.py | NiWaRe/deepee | 98b5cd09f356f4a597fe204799a524c4d444dd2d | [
"Apache-2.0"
] | 4 | 2021-03-27T09:36:20.000Z | 2021-10-18T09:30:47.000Z | tests/test_per_sample_wrapper.py | NiWaRe/deepee | 98b5cd09f356f4a597fe204799a524c4d444dd2d | [
"Apache-2.0"
] | 4 | 2021-06-24T08:30:47.000Z | 2021-11-09T08:33:57.000Z | from deepee import PerSampleGradientWrapper
import torch
import pytest
| 29.096 | 88 | 0.636239 |
da1ae3572abdad23c9e302bb355fe093cb9ac8e8 | 1,981 | py | Python | graphid/util/util_grabdata.py | Erotemic/graphid | 5d04c2eec609f135464a921ba03d9578fa6e22fd | [
"Apache-2.0"
] | 4 | 2019-03-04T02:49:26.000Z | 2021-10-06T00:51:13.000Z | graphid/util/util_grabdata.py | Erotemic/graphid | 5d04c2eec609f135464a921ba03d9578fa6e22fd | [
"Apache-2.0"
] | 1 | 2019-02-15T23:42:26.000Z | 2019-02-15T23:42:26.000Z | graphid/util/util_grabdata.py | Erotemic/graphid | 5d04c2eec609f135464a921ba03d9578fa6e22fd | [
"Apache-2.0"
] | null | null | null | import ubelt as ub
from os.path import exists # NOQA
TESTIMG_URL_DICT = {
'astro.png' : 'https://i.imgur.com/KXhKM72.png', # Use instead of
'carl.jpg' : 'http://i.imgur.com/flTHWFD.jpg',
'grace.jpg' : 'http://i.imgur.com/rgQyu7r.jpg',
'jeff.png' : 'http://i.imgur.com/l00rECD.png',
'ada2.jpg' :... | 34.754386 | 86 | 0.627461 |
da1b4387561fab9dc87a8b4f0a9f01c7e63f73be | 308 | py | Python | pyschieber/deck.py | Murthy10/pyschieber | f9db28c9553b8f321f6ed71cff04eff7879af5f6 | [
"MIT"
] | 5 | 2018-01-17T08:11:14.000Z | 2018-11-27T11:37:15.000Z | pyschieber/deck.py | Murthy10/pyschieber | f9db28c9553b8f321f6ed71cff04eff7879af5f6 | [
"MIT"
] | 4 | 2018-05-09T08:41:05.000Z | 2018-11-16T08:07:39.000Z | pyschieber/deck.py | Murthy10/pyschieber | f9db28c9553b8f321f6ed71cff04eff7879af5f6 | [
"MIT"
] | 3 | 2018-04-20T07:39:30.000Z | 2018-11-10T12:44:08.000Z | from pyschieber.suit import Suit
from pyschieber.card import Card
| 23.692308 | 74 | 0.62013 |
da1cd997565c598625d3fbc3be2100124fc27c2c | 21,915 | py | Python | multipy/flux.py | kamilazdybal/multipy | ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9 | [
"MIT"
] | null | null | null | multipy/flux.py | kamilazdybal/multipy | ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9 | [
"MIT"
] | null | null | null | multipy/flux.py | kamilazdybal/multipy | ebdcddb63bfb1cd647ca99bbf9002b04a9b50ed9 | [
"MIT"
] | null | null | null | """multipy: Python library for multicomponent mass transfer"""
__author__ = "James C. Sutherland, Kamila Zdybal"
__copyright__ = "Copyright (c) 2022, James C. Sutherland, Kamila Zdybal"
__license__ = "MIT"
__version__ = "1.0.0"
__maintainer__ = ["Kamila Zdybal"]
__email__ = ["kamilazdybal@gmail.com"]
__status__ = "Pro... | 47.745098 | 244 | 0.657906 |
da1d6a02eeb844897d0b4f2d15640a391973f96d | 1,971 | py | Python | ENotePadAlgorithm/strEncrypt/Morse.py | xioacd99/EnhancedNotePad | b95da1c4d957061ad60015f3b9ab5c445b5a1bc4 | [
"MIT"
] | null | null | null | ENotePadAlgorithm/strEncrypt/Morse.py | xioacd99/EnhancedNotePad | b95da1c4d957061ad60015f3b9ab5c445b5a1bc4 | [
"MIT"
] | null | null | null | ENotePadAlgorithm/strEncrypt/Morse.py | xioacd99/EnhancedNotePad | b95da1c4d957061ad60015f3b9ab5c445b5a1bc4 | [
"MIT"
] | null | null | null | # encodeANSII
# decodeANSII
#
if __name__ == '__main__':
test = MorseCoder()
result = test.strEncrypt('ABCD12345678')
print(result)
| 41.0625 | 115 | 0.367326 |
da1fedbc0ae28396d7b17794e490d8e258826958 | 4,800 | py | Python | Yolov3_deepsort/Badminton_Service/player.py | Haosam/BadmintonAI | 4a1e837109cd279fb7480b90b31003c259e063cf | [
"Apache-2.0"
] | null | null | null | Yolov3_deepsort/Badminton_Service/player.py | Haosam/BadmintonAI | 4a1e837109cd279fb7480b90b31003c259e063cf | [
"Apache-2.0"
] | null | null | null | Yolov3_deepsort/Badminton_Service/player.py | Haosam/BadmintonAI | 4a1e837109cd279fb7480b90b31003c259e063cf | [
"Apache-2.0"
] | null | null | null | from tkinter import *
import cv2
# Global Variables, can be translated to database if it becomes production
lcw = "Lee Chong Wei"
swh = "Son Wan Ho"
lyd = "Lee Yong Dae"
kgj = "Kim Gi Jung"
ksh = "Ko Sung Hyun"
yys = "Yo Yeon Seong"
csg = "Choi Sol Gyu"
wcl = "Wang Chi-Lin"
chl = "Chen Hung-Lin"
lcw_hei... | 33.103448 | 96 | 0.660417 |
da2374aced1b72eebcc58d79ed22779475feb324 | 4,749 | py | Python | scripts/install.py | discord-package-bot/discord-package-bot | 109603c57a668d75f6939e3c97aae72f2691640e | [
"MIT"
] | 1 | 2021-07-12T05:56:00.000Z | 2021-07-12T05:56:00.000Z | scripts/install.py | discord-package-bot/discord-package-bot | 109603c57a668d75f6939e3c97aae72f2691640e | [
"MIT"
] | null | null | null | scripts/install.py | discord-package-bot/discord-package-bot | 109603c57a668d75f6939e3c97aae72f2691640e | [
"MIT"
] | null | null | null | """
syntax: |
install <>
install update:<>
install file:<>
syntax_description: |
: update:
:
---
"""
import os
import re
import requests
import shlex
import shutil
import subprocess
import sys
import yaml
import zipfile
from colorama import Fore, Style # , Back
from .utils import command, token
| 34.664234 | 116 | 0.579912 |
da23f0ddb62bb0c0988bd093b73535c31a660639 | 72 | py | Python | plugin/src/test/resources/refactoring/extractmethod/Comment.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null | plugin/src/test/resources/refactoring/extractmethod/Comment.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | 11 | 2017-02-27T22:35:32.000Z | 2021-12-24T08:07:40.000Z | plugin/src/test/resources/refactoring/extractmethod/Comment.after.py | consulo/consulo-python | 586c3eaee3f9c2cc87fb088dc81fb12ffa4b3a9d | [
"Apache-2.0"
] | null | null | null |
#Comment to method
| 9 | 18 | 0.555556 |
da24c7b3d7ea12e45a63e2df57343289b27d952a | 1,565 | py | Python | rlkeras/utils/memory.py | will-hcau/rlkeras | 9cc36b238dae794197fcb8689a5a1ffa1c0a42c0 | [
"MIT"
] | null | null | null | rlkeras/utils/memory.py | will-hcau/rlkeras | 9cc36b238dae794197fcb8689a5a1ffa1c0a42c0 | [
"MIT"
] | null | null | null | rlkeras/utils/memory.py | will-hcau/rlkeras | 9cc36b238dae794197fcb8689a5a1ffa1c0a42c0 | [
"MIT"
] | null | null | null | from collections import deque
import numpy as np
import random
| 28.454545 | 102 | 0.600639 |
da24d2c86b3410255d8a070349c1d9c6e890f449 | 6,335 | py | Python | PathPlanning/RRTStar/rrt_star.py | cmuehlbacher/PythonRobotics | c66fccc71c681387ff61b59554694b25399ca790 | [
"MIT"
] | 38 | 2019-12-08T12:26:04.000Z | 2022-03-06T11:29:08.000Z | PathPlanning/RRTStar/rrt_star.py | YoungGer/PythonRobotics | 9b8f2bd88a3d516d8deb473693661c1aea59fe68 | [
"MIT"
] | null | null | null | PathPlanning/RRTStar/rrt_star.py | YoungGer/PythonRobotics | 9b8f2bd88a3d516d8deb473693661c1aea59fe68 | [
"MIT"
] | 15 | 2020-02-12T15:57:28.000Z | 2021-08-28T07:39:18.000Z | """
Path planning Sample Code with RRT*
author: Atsushi Sakai(@Atsushi_twi)
"""
import copy
import math
import os
import sys
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../RRT/")
try:
from rrt import RRT
except ImportError:
raise
show_an... | 30.311005 | 99 | 0.572691 |
da2640c8cad77dff99c17a878df82c7bc7beb176 | 786 | py | Python | accountlist.py | beitnes/accountlist | 5bca4960405a23b20bce0d9928536ed6db8c39d0 | [
"Apache-2.0"
] | null | null | null | accountlist.py | beitnes/accountlist | 5bca4960405a23b20bce0d9928536ed6db8c39d0 | [
"Apache-2.0"
] | null | null | null | accountlist.py | beitnes/accountlist | 5bca4960405a23b20bce0d9928536ed6db8c39d0 | [
"Apache-2.0"
] | null | null | null | import boto3
import pprint
if __name__ == "__main__":
main()
| 18.714286 | 65 | 0.625954 |
da2652bdef2ea0254c65e10f3f8343f49c9b32ff | 745 | py | Python | test/commentProcessor_test.py | ponder-lab/GitHub-Issue-Mining | 5cff97bd2322894338c71f5ba7bd743e2e204a72 | [
"MIT"
] | 3 | 2021-04-18T04:07:35.000Z | 2021-12-25T06:35:32.000Z | test/commentProcessor_test.py | ponder-lab/GitHub-Issue-Classifier | 5cff97bd2322894338c71f5ba7bd743e2e204a72 | [
"MIT"
] | 4 | 2021-04-06T01:06:36.000Z | 2021-08-06T00:34:53.000Z | test/commentProcessor_test.py | ponder-lab/GitHub-Issue-Mining | 5cff97bd2322894338c71f5ba7bd743e2e204a72 | [
"MIT"
] | null | null | null | from utils.commentProcessor import processComment
TEST_CASES = [
{
"test": "Hello this is a pre processed string",
"expected_result": "hello pre processed string"
},
{
"test": "This string contains a screen name @y3pio tag",
"expected_result": "this string contains screen na... | 31.041667 | 77 | 0.628188 |
da26ac275ef766fda1ea905a5a0277b1855e977b | 7,275 | py | Python | plus_reader/plus_highlighting.py | ShashkovS/plus_reader | e53a7af01ae480f7a63e33d01a0a99ea681e7fee | [
"MIT"
] | 3 | 2017-11-27T10:01:42.000Z | 2018-05-07T09:37:24.000Z | plus_reader/plus_highlighting.py | ShashkovS/plus_reader | e53a7af01ae480f7a63e33d01a0a99ea681e7fee | [
"MIT"
] | 5 | 2017-09-28T09:53:13.000Z | 2017-11-25T20:10:00.000Z | plus_reader/plus_highlighting.py | ShashkovS/plus_reader | e53a7af01ae480f7a63e33d01a0a99ea681e7fee | [
"MIT"
] | 2 | 2017-09-14T11:56:07.000Z | 2017-09-14T12:49:46.000Z | import logging
import sys
import traceback
import numpy as np
from PyQt5.QtGui import QPixmap, QPainter, QMouseEvent
from PyQt5.QtWidgets import QApplication, QWidget, QGridLayout, QMenu, QSlider, QLabel
from PyQt5.QtCore import Qt
sys._excepthook = sys.excepthook
sys.excepthook = excepthook
VIRTUAL_BORDER_WIDTH =... | 36.742424 | 134 | 0.650034 |
da27bfe1b6414a6b5de205fb3cd12650ba9370f4 | 22,206 | py | Python | dlrnapi_client/shell.py | softwarefactory-project/dlrnapi_client | ad21fe759597968c0f691b37dc681232dcd8f2aa | [
"Apache-2.0"
] | 1 | 2017-10-02T19:36:52.000Z | 2017-10-02T19:36:52.000Z | dlrnapi_client/shell.py | softwarefactory-project/dlrnapi_client | ad21fe759597968c0f691b37dc681232dcd8f2aa | [
"Apache-2.0"
] | 4 | 2018-07-16T20:14:58.000Z | 2022-02-04T07:03:03.000Z | dlrnapi_client/shell.py | softwarefactory-project/dlrnapi_client | ad21fe759597968c0f691b37dc681232dcd8f2aa | [
"Apache-2.0"
] | 1 | 2019-12-09T14:40:47.000Z | 2019-12-09T14:40:47.000Z | # 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, software
# distributed under t... | 45.880165 | 79 | 0.577141 |
da27fd506b778e15d02b14a496203d5d175a39c3 | 1,051 | py | Python | python-mundo3/ex094.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | 1 | 2021-08-15T18:18:43.000Z | 2021-08-15T18:18:43.000Z | python-mundo3/ex094.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | python-mundo3/ex094.py | abm-astro/estudos-python | c0dcd71489e528d445efa25d4986bf2fd08f8fe6 | [
"MIT"
] | null | null | null | cadastro = dict()
pessoas = list()
soma = 0
while True:
cadastro.clear()
cadastro['nome'] = str(input('Nome: ')).capitalize()
while True:
cadastro['sexo'] = str(input('Sexo [M/F]: ')).upper()
if cadastro['sexo'] in 'MF':
break
print('ERRO! Digite apenas M ou F!')
cadastro['idade'] = int(input(... | 27.657895 | 61 | 0.586108 |
da284cabcfa7c599a3b1aad0183ba6d119a7c17a | 23,536 | py | Python | vendor/packages/translate-toolkit/translate/storage/base.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | 2 | 2019-08-19T17:08:47.000Z | 2019-10-05T11:37:02.000Z | vendor/packages/translate-toolkit/translate/storage/base.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | vendor/packages/translate-toolkit/translate/storage/base.py | jgmize/kitsune | 8f23727a9c7fcdd05afc86886f0134fb08d9a2f0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2009 Zuza Software Foundation
#
# This file is part of the Translate Toolkit.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; e... | 34.209302 | 97 | 0.613443 |
da296592fb077c1bc7a27382f8604a31a8ab30e3 | 520 | py | Python | task2C.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | null | null | null | task2C.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | null | null | null | task2C.py | jfs60/Group-147-PartIA-Flood-Warning-System | 3fb52e3e028ec8e0b70ccb1cfc61bcf76b42f2c1 | [
"MIT"
] | 1 | 2022-02-06T06:45:15.000Z | 2022-02-06T06:45:15.000Z | from floodsystem.station import MonitoringStation
from floodsystem.stationdata import build_station_list, update_water_levels
from floodsystem.flood import stations_highest_rel_level, stations_level_over_threshold
stations_Task_2C = run()
print (stations_Task_2C)
if __name__ == "__main__":
print("*** Task 2C: CUE... | 30.588235 | 87 | 0.775 |
da2e43a4657d302992b18fd2e6651b3dd93dac4f | 6,112 | py | Python | docs/examples/viz_emwave_animation.py | iamansoni/fury | 2e7971a176c2540e10a9a6da861097583d08cb4a | [
"BSD-3-Clause"
] | 149 | 2018-09-20T18:36:16.000Z | 2022-03-29T05:16:25.000Z | docs/examples/viz_emwave_animation.py | iamansoni/fury | 2e7971a176c2540e10a9a6da861097583d08cb4a | [
"BSD-3-Clause"
] | 523 | 2018-09-20T16:57:16.000Z | 2022-03-31T18:52:41.000Z | docs/examples/viz_emwave_animation.py | iamansoni/fury | 2e7971a176c2540e10a9a6da861097583d08cb4a | [
"BSD-3-Clause"
] | 150 | 2018-10-10T07:21:27.000Z | 2022-03-29T08:33:17.000Z | """
===============================================
Electromagnetic Wave Propagation Animation
===============================================
A linearly polarized sinusoidal electromagnetic wave, propagating in the
direction +x through a homogeneous, isotropic, dissipationless medium,
such as vacuum. The electric fie... | 34.925714 | 79 | 0.59375 |
da2f601feb319bbef64c8038bd332c6cea544cb4 | 3,243 | py | Python | report_templates.py | averlarque/l1-zabbix-reporter | 5d8ea4d432b7b518f954d806a86fe5bcafca3f9d | [
"MIT"
] | 1 | 2017-03-27T02:59:09.000Z | 2017-03-27T02:59:09.000Z | report_templates.py | averlarque/l1-zabbix-reporter | 5d8ea4d432b7b518f954d806a86fe5bcafca3f9d | [
"MIT"
] | 1 | 2018-01-16T04:56:16.000Z | 2018-01-16T04:56:16.000Z | report_templates.py | averlarque/l1-zabbix-reporter | 5d8ea4d432b7b518f954d806a86fe5bcafca3f9d | [
"MIT"
] | 2 | 2016-11-24T07:06:51.000Z | 2019-11-16T15:12:54.000Z | from report_generator import *
| 38.152941 | 102 | 0.755782 |
da32e41f6a6f935279a78a5bb3c83c1544bb8fec | 494 | py | Python | CodeWars/Python/EvenTimesLast.py | BobbyRobillard/CodingChallenges | 71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0 | [
"MIT"
] | null | null | null | CodeWars/Python/EvenTimesLast.py | BobbyRobillard/CodingChallenges | 71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0 | [
"MIT"
] | null | null | null | CodeWars/Python/EvenTimesLast.py | BobbyRobillard/CodingChallenges | 71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0 | [
"MIT"
] | null | null | null | # First Correct Solution #
# REFACTORED Solution #
# EXAMPLE AND TESTING #
print("\nInput: {0}\nEven Times Last: {1}".format("[2,3,4,5]", even_last([2, 3, 4, 5])))
assert even_last([2, 3, 4, 5]) == 30 # Simple Unit Tests
| 24.7 | 88 | 0.595142 |
da35f10f0968905caacfa6b0d419287aa50e3f84 | 603 | py | Python | scatter.py | Deego88/pands-project | 89f0baad690b0772502d5d336c9fd56ad5470cdc | [
"MIT"
] | null | null | null | scatter.py | Deego88/pands-project | 89f0baad690b0772502d5d336c9fd56ad5470cdc | [
"MIT"
] | null | null | null | scatter.py | Deego88/pands-project | 89f0baad690b0772502d5d336c9fd56ad5470cdc | [
"MIT"
] | null | null | null | # Third output required for project- A scatter plot of the output of the variables
import seaborn as sns
import pandas as pd
import matplotlib.pyplot as plt
# First output required for project- Read iris CSV file to into DataFrame
iris = pd.read_csv("iris.csv")
sns.set_style("darkgrid")
sns.pairplot(iris, h... | 35.470588 | 99 | 0.739635 |
da36cd3ef7bb152a5c978fa2a7968dad8b22592a | 28 | py | Python | image_predictor/__init__.py | shakedlokits/pyArt | ffac65e91b7f97f0fa95f4ee7bfffcff4f6249aa | [
"Unlicense"
] | 3 | 2017-03-26T16:42:18.000Z | 2021-12-30T06:28:34.000Z | image_predictor/__init__.py | shakedlokits/pyArt | ffac65e91b7f97f0fa95f4ee7bfffcff4f6249aa | [
"Unlicense"
] | null | null | null | image_predictor/__init__.py | shakedlokits/pyArt | ffac65e91b7f97f0fa95f4ee7bfffcff4f6249aa | [
"Unlicense"
] | null | null | null | __author__ = 'shakedlokits'
| 14 | 27 | 0.785714 |
da378e0eafeab07a79465181d9fc51e82389ac0a | 6,674 | py | Python | officevideo/officevideo.py | introp-software/xblock-officevideo | 6e475df782a4b0a2d2d9f7e2e5b9bae441b56024 | [
"MIT"
] | 4 | 2020-02-09T09:39:06.000Z | 2021-12-30T09:50:57.000Z | officevideo/officevideo.py | acidburn0zzz/xblock-officevideo | 6e475df782a4b0a2d2d9f7e2e5b9bae441b56024 | [
"MIT"
] | null | null | null | officevideo/officevideo.py | acidburn0zzz/xblock-officevideo | 6e475df782a4b0a2d2d9f7e2e5b9bae441b56024 | [
"MIT"
] | 8 | 2019-11-02T21:34:20.000Z | 2021-12-30T09:50:59.000Z | """ Copyright (c) Microsoft Corporation. All Rights Reserved. """
""" Licensed under the MIT license. See LICENSE file on the project webpage for details. """
import textwrap
import pkg_resources
import urllib2
import mimetypes
import urlparse, requests, json
import xml.etree.ElementTree as ET
from xblock.core import... | 38.578035 | 284 | 0.657177 |
da37fa1cf8aa9ced7ef291cee98575d2cbc3ace4 | 4,594 | py | Python | stn/task.py | anenriquez/STNU | a02a13730cc0f31521e01e186c158533479090f5 | [
"Unlicense"
] | null | null | null | stn/task.py | anenriquez/STNU | a02a13730cc0f31521e01e186c158533479090f5 | [
"Unlicense"
] | null | null | null | stn/task.py | anenriquez/STNU | a02a13730cc0f31521e01e186c158533479090f5 | [
"Unlicense"
] | null | null | null | from stn.utils.as_dict import AsDictMixin
| 34.80303 | 94 | 0.60579 |
da382dde5d81096600a758eea608666b31d3c7b7 | 2,959 | py | Python | src/bxgateway/messages/btc/data_btc_message.py | blockchain-development-resources/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-11-26T07:49:24.000Z | 2021-11-26T07:49:24.000Z | src/bxgateway/messages/btc/data_btc_message.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | null | null | null | src/bxgateway/messages/btc/data_btc_message.py | beepool/bxgateway | 761b5085f9c7c6527f0b9aaae06d2f70f3786db2 | [
"MIT"
] | 1 | 2021-09-06T02:10:08.000Z | 2021-09-06T02:10:08.000Z | import struct
from bxgateway.btc_constants import BTC_HDR_COMMON_OFF, BTC_SHA_HASH_LEN
from bxgateway.messages.btc.btc_message import BtcMessage
from bxgateway.messages.btc.btc_message_type import BtcMessageType
from bxgateway.messages.btc.btc_messages_util import btc_varint_to_int, pack_int_to_btc_varint
from bxgatew... | 36.9875 | 120 | 0.657993 |
da39df4b22e6c016cc25f0ba477072a025a6794f | 8,188 | py | Python | alexber/utils/_ymlparsers_extra.py | AndreyRub/AlexBerUtils | b2d79c98c083533534470b62632a36dfd730be48 | [
"BSD-2-Clause"
] | null | null | null | alexber/utils/_ymlparsers_extra.py | AndreyRub/AlexBerUtils | b2d79c98c083533534470b62632a36dfd730be48 | [
"BSD-2-Clause"
] | 8 | 2019-12-15T05:13:27.000Z | 2021-02-16T20:03:40.000Z | alexber/utils/_ymlparsers_extra.py | AndreyRub/AlexBerUtils | b2d79c98c083533534470b62632a36dfd730be48 | [
"BSD-2-Clause"
] | 2 | 2019-12-12T03:52:37.000Z | 2021-05-21T21:14:34.000Z | """
This module adopts its behavior dependent on availability of Python packages.
This module optionally depends on ymlparseser module.
Method format_template() is used in emails module.
Note: This module will work if you have only standard Python package. You just can't change delimiters values.
Note: API and implem... | 38.261682 | 120 | 0.69553 |
da3bd0652c70b407476c6f160e8a128d0c51ee92 | 32 | py | Python | pyglview/__init__.py | weltonrodrigo/python_glview | 6680601aea5ae67ca8c5ccbf03847e6abc6f270c | [
"MIT"
] | 6 | 2019-04-29T05:44:51.000Z | 2022-01-28T15:31:57.000Z | pyglview/__init__.py | weltonrodrigo/python_glview | 6680601aea5ae67ca8c5ccbf03847e6abc6f270c | [
"MIT"
] | 1 | 2021-06-12T01:49:10.000Z | 2021-06-12T01:49:10.000Z | pyglview/__init__.py | weltonrodrigo/python_glview | 6680601aea5ae67ca8c5ccbf03847e6abc6f270c | [
"MIT"
] | 2 | 2019-12-16T20:34:59.000Z | 2020-08-24T14:57:50.000Z | from pyglview.pyglview import *
| 16 | 31 | 0.8125 |
da3cdf32ec5c491bbbd379b8659c9adccf3080ca | 2,653 | py | Python | models/house_water_drain.py | susundberg/python-freecad-3dparts | 248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498 | [
"MIT"
] | null | null | null | models/house_water_drain.py | susundberg/python-freecad-3dparts | 248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498 | [
"MIT"
] | null | null | null | models/house_water_drain.py | susundberg/python-freecad-3dparts | 248e6f5eb4ce3d1921b3d4875e9c1d112f7b7498 | [
"MIT"
] | null | null | null | import supalib
TOLE=0.2
OUTSIZE=60.0
SIZE_CONST=25.0
SIZE_DROP=20.0
ANGLE_DROP=45.0
BASE_THICK=5.0
BASE_WIDE=20.0
PIPE_RAD=OUTSIZE/2.0 + TOLE
hole = supalib.create_cyl( radius=PIPE_RAD , size_z = OUTSIZE, place=(0, PIPE_RAD + 1.0, -OUTSIZE/2.0) )
outer_hole = supalib.create_cyl( radius=PIPE_RAD + 5.0 , size_z = OUT... | 35.851351 | 119 | 0.710516 |
da3d14bdecf4a0d019902eff7b7a5c16a38e1ceb | 2,434 | py | Python | privatebin.py | iomintz/python-snippets | 982861c173bf4bcd5d908514a9e8b1914a580a5d | [
"CC0-1.0"
] | 2 | 2020-04-10T07:29:56.000Z | 2020-05-27T03:45:21.000Z | privatebin.py | LyricLy/python-snippets | 9d868b7bbccd793ea1dc513f51290963584a1dee | [
"CC0-1.0"
] | null | null | null | privatebin.py | LyricLy/python-snippets | 9d868b7bbccd793ea1dc513f51290963584a1dee | [
"CC0-1.0"
] | 2 | 2018-11-24T08:16:59.000Z | 2019-02-24T04:41:30.000Z | #!/usr/bin/env python3
# encoding: utf-8
"""
privatebin.py: uploads text to privatebin
using code from <https://github.com/r4sas/PBinCLI/blob/master/pbincli/actions.py>,
20172018 R4SAS <r4sas@i2pmail.org>
using code from <https://github.com/khazhyk/dango.py/blob/master/dango/zerobin.py>,
2017 khazhyk
"""
import asy... | 26.747253 | 107 | 0.711586 |
da3d5161d87de56a9bc36edca5bba5b60b08bd39 | 6,556 | py | Python | dace/libraries/standard/nodes/gearbox.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | dace/libraries/standard/nodes/gearbox.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | dace/libraries/standard/nodes/gearbox.py | thobauma/dace | 668e4c49e476437e1ea3b272e9dbefca2b92d2e7 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.
import collections
import copy
import dace
| 39.257485 | 80 | 0.558115 |
da3fd113ae5463775113a2aa795b9fc22645ae0c | 5,662 | py | Python | reprlearn/data/samplers/kshot_sampler.py | cocoaaa/ReprLearn | 58dc682aa62dbd59201ccc55b9b26480ff3d6773 | [
"MIT"
] | null | null | null | reprlearn/data/samplers/kshot_sampler.py | cocoaaa/ReprLearn | 58dc682aa62dbd59201ccc55b9b26480ff3d6773 | [
"MIT"
] | null | null | null | reprlearn/data/samplers/kshot_sampler.py | cocoaaa/ReprLearn | 58dc682aa62dbd59201ccc55b9b26480ff3d6773 | [
"MIT"
] | null | null | null | from reprlearn.data.datasets.base import ImageDataset
from collections import defaultdict
from typing import Iterable, Optional, Callable, List, Dict, Tuple
import numpy as np
# ===============
# Returns a list of datapoints from the dataset so that
# the list contains the same number of datapoints per class (if possi... | 39.048276 | 112 | 0.598905 |
da40b32e1d6bf126d545d746d9c0416f4eb38e0a | 7,117 | py | Python | phaseprep/workflows/preprocess_phase_wf.py | ostanley/phaseprep | 6e721ea43755f10eb8569b1f4d4461efa3d85a1a | [
"Apache-2.0"
] | 1 | 2019-10-11T17:04:25.000Z | 2019-10-11T17:04:25.000Z | phaseprep/workflows/preprocess_phase_wf.py | ostanley/phaseprep | 6e721ea43755f10eb8569b1f4d4461efa3d85a1a | [
"Apache-2.0"
] | 2 | 2019-10-16T13:13:52.000Z | 2019-12-10T19:38:39.000Z | phaseprep/workflows/preprocess_phase_wf.py | ostanley/phaseprep | 6e721ea43755f10eb8569b1f4d4461efa3d85a1a | [
"Apache-2.0"
] | 2 | 2019-11-18T19:21:44.000Z | 2021-10-19T18:01:03.000Z | import nipype.pipeline.engine as pe
import nipype.interfaces.fsl as fsl
import nipype.interfaces.afni as afni
import phaseprep.interfaces as pp
import nipype.interfaces.utility as ul
def create_preprocess_phase_wf():
"""Create's phase preprocessing workflow with the following steps:
1) Convert data to float... | 53.511278 | 153 | 0.559646 |
da426e6fadffb074142a9d08e0b642ab357e46fc | 2,514 | py | Python | zorg/buildbot/builders/AnnotatedBuilder.py | DalavanCloud/zorg | d55f03740e589d504dbfe2d5dc9fbc5d551f31fb | [
"Apache-2.0"
] | 1 | 2019-02-10T03:05:05.000Z | 2019-02-10T03:05:05.000Z | zorg/buildbot/builders/AnnotatedBuilder.py | DalavanCloud/llvm-zorg | 14d347a312d5a19bec421f553a3c1cbe1735b273 | [
"Apache-2.0"
] | null | null | null | zorg/buildbot/builders/AnnotatedBuilder.py | DalavanCloud/llvm-zorg | 14d347a312d5a19bec421f553a3c1cbe1735b273 | [
"Apache-2.0"
] | null | null | null | import os
import buildbot
from buildbot.process.properties import WithProperties
from buildbot.steps.shell import SetProperty, ShellCommand
from buildbot.steps.source import SVN
from zorg.buildbot.commands.AnnotatedCommand import AnnotatedCommand
from zorg.buildbot.process.factory import LLVMBuildFactory
def getAnno... | 36.970588 | 78 | 0.622514 |
da43c8aa3780e6b294ec06869cbcdecb77cd3961 | 196 | py | Python | ex001 a ex114/ex008.py | kesia-barros/exercicios-python | 12a019e61c4b29fa29803f394b15d0af304c2ff0 | [
"MIT"
] | null | null | null | ex001 a ex114/ex008.py | kesia-barros/exercicios-python | 12a019e61c4b29fa29803f394b15d0af304c2ff0 | [
"MIT"
] | null | null | null | ex001 a ex114/ex008.py | kesia-barros/exercicios-python | 12a019e61c4b29fa29803f394b15d0af304c2ff0 | [
"MIT"
] | null | null | null | m = float(input("Digite os metros a serem convertidos: "))
c = 100 * m
mm = 1000 * m
print("{} metros tem {:.0f} centimetros!".format(m, c))
print("{} metros tem {:.0f} milimetros!".format(m, mm)) | 39.2 | 58 | 0.632653 |
da45407cbca582a2a771bd09b1b4379b9b0b026a | 10,818 | py | Python | tcga_encoder/analyses/old/survival_from_z_space3.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | 2 | 2017-12-19T15:32:46.000Z | 2018-01-12T11:24:24.000Z | tcga_encoder/analyses/old/survival_from_z_space3.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null | tcga_encoder/analyses/old/survival_from_z_space3.py | tedmeeds/tcga_encoder | 805f9a5bcc422a43faea45baa0996c88d346e3b4 | [
"MIT"
] | null | null | null | from tcga_encoder.utils.helpers import *
from tcga_encoder.data.data import *
from tcga_encoder.definitions.tcga import *
#from tcga_encoder.definitions.nn import *
from tcga_encoder.definitions.locations import *
#from tcga_encoder.algorithms import *
import seaborn as sns
from sklearn.manifold import TSNE, locally_li... | 41.930233 | 376 | 0.68839 |
da46e9da88a69412b02b4465644d5259231c811b | 274 | py | Python | genaperiodic.py | gmayankcse15/Poller-and-Deferrable-Server | 9c4c5cae670c6e97959570592135b5c22bdfa4f7 | [
"MIT"
] | null | null | null | genaperiodic.py | gmayankcse15/Poller-and-Deferrable-Server | 9c4c5cae670c6e97959570592135b5c22bdfa4f7 | [
"MIT"
] | null | null | null | genaperiodic.py | gmayankcse15/Poller-and-Deferrable-Server | 9c4c5cae670c6e97959570592135b5c22bdfa4f7 | [
"MIT"
] | null | null | null | import numpy as np
arr_time = np.random.exponential(3, 3)
print(arr_time)
Exec_Time = np.random.exponential(1, 3)
print(Exec_Time)
for i in range(0,3):
print "A(",round(arr_time[i],1),",",round(Exec_Time[i],1),")"
'''
Output
A(0.3, 1.1)
A(2.5, 2.0)
A(0.0, 4.7)
''' | 13.7 | 63 | 0.627737 |
da4804a69488cffc401e2be47069232bee7d172a | 4,828 | py | Python | train.py | yazar1993/TextBoxes-mxnet | 89fbf4151473ab4575a032871683e76978deec0a | [
"MIT"
] | 1 | 2019-02-04T19:03:27.000Z | 2019-02-04T19:03:27.000Z | train.py | yazar1993/TextBoxes-mxnet | 89fbf4151473ab4575a032871683e76978deec0a | [
"MIT"
] | null | null | null | train.py | yazar1993/TextBoxes-mxnet | 89fbf4151473ab4575a032871683e76978deec0a | [
"MIT"
] | null | null | null | import time
from matplotlib import pyplot as plt
import numpy as np
import mxnet as mx
from mxnet import autograd, gluon
import gluoncv as gcv
from gluoncv.utils import download, viz
from model import model_zoo
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--images_root',type=str,help='root ... | 37.426357 | 101 | 0.665493 |
da48925dd8d85e25b1591c7ad7324c1b91372e21 | 484 | py | Python | aws/build_saint_features.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | aws/build_saint_features.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | aws/build_saint_features.py | fabien-vavrand/kaggle-riiid | 3302955980e0d4bb2dbc72bcd369000b0724f1e7 | [
"MIT"
] | null | null | null | from doppel import DoppelProject
from riiid.utils import configure_console_logging
from riiid.config import SRC_PATH
from riiid.aws.config import CONTEXT, PACKAGES
configure_console_logging()
project = DoppelProject(
name='riiid-saint-features',
path=SRC_PATH,
entry_point='-m riiid.aws.build_saint_featur... | 22 | 52 | 0.743802 |
da48982c5d0c6163ec2e9654c124d812f977e516 | 14,174 | py | Python | effects/card_draw.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | effects/card_draw.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | effects/card_draw.py | MrCoft/EngiMod | 65c90bd9231ac388d8af7849a1835914f1eefc78 | [
"MIT"
] | null | null | null | from engi_mod import *
Java(
path = "fruitymod.actions.ChooseCardActionBase",
base = "AbstractGameAction",
code = """
protected AbstractPlayer p;
private String text;
private boolean isDraw = false; // NOTE: to trigger events and disable on "No Draw"
private boolean putsInto... | 38.832877 | 182 | 0.506632 |
da49b2e919a71a34082302973c4047cd68a8918b | 2,205 | py | Python | data_structures.py | davecom/MazeSolvingGUI | 291e0dfb146d7743ecb108413f5e7422e0719019 | [
"Apache-2.0"
] | 6 | 2020-06-26T00:45:35.000Z | 2022-01-15T19:37:36.000Z | data_structures.py | davecom/MazeSolvingGUI | 291e0dfb146d7743ecb108413f5e7422e0719019 | [
"Apache-2.0"
] | null | null | null | data_structures.py | davecom/MazeSolvingGUI | 291e0dfb146d7743ecb108413f5e7422e0719019 | [
"Apache-2.0"
] | 3 | 2021-05-03T16:48:29.000Z | 2021-11-19T20:21:29.000Z | # data_structures.py
# Copyright 2020 David Kopec
#
# 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... | 29.4 | 108 | 0.65805 |
da4a7e68c0832aca421b9ec0a6a9d00a1f584040 | 1,933 | py | Python | src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T17:46:16.000Z | 2019-10-17T17:46:16.000Z | src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/incidents/endpoints/organization_alert_rule_trigger_details.py | kinghuang/sentry | 5c22673994a62f54a782d1c595852986ccc51ae9 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from rest_framework import status
from rest_framework.response import Response
from sentry.api.serializers import serialize
from sentry.api.serializers.models.alert_rule_trigger import DetailedAlertRuleTriggerSerializer
from sentry.incidents.endpoints.bases import OrganizationAl... | 39.44898 | 96 | 0.702535 |
da4b5460725c138c9033a42b82f19db166cfb84d | 1,935 | py | Python | tests/test_one_of_schema.py | bwind/sticky-marshmallow | e3e7c215fe9b221164c17121197ffca1b396e81a | [
"MIT"
] | 2 | 2019-11-28T11:25:47.000Z | 2019-12-05T09:53:31.000Z | tests/test_one_of_schema.py | bwind/sticky-marshmallow | e3e7c215fe9b221164c17121197ffca1b396e81a | [
"MIT"
] | null | null | null | tests/test_one_of_schema.py | bwind/sticky-marshmallow | e3e7c215fe9b221164c17121197ffca1b396e81a | [
"MIT"
] | 1 | 2019-11-29T15:32:14.000Z | 2019-11-29T15:32:14.000Z | from dataclasses import dataclass
from typing import List
import bson
from sticky_marshmallow import Repository
from marshmallow_oneofschema import OneOfSchema
from marshmallow import fields, post_load, Schema
from tests.db import connect
class BaseSchema(Schema):
id = fields.Str(allow_none=True)
foo = f... | 19.744898 | 78 | 0.657364 |
da4c1af35b78bb185c69f2e2ce2c1d8ceee1a22d | 667 | py | Python | chapter03/knock25.py | m-star18/NLP100 | e199814f81943f7fb693fd5fe87d6df21da07f5b | [
"MIT"
] | 1 | 2020-07-15T17:21:13.000Z | 2020-07-15T17:21:13.000Z | chapter03/knock25.py | m-star18/NLP100 | e199814f81943f7fb693fd5fe87d6df21da07f5b | [
"MIT"
] | 1 | 2021-05-04T01:04:57.000Z | 2021-05-04T01:05:32.000Z | chapter03/knock25.py | m-star18/NLP100 | e199814f81943f7fb693fd5fe87d6df21da07f5b | [
"MIT"
] | null | null | null | import re
import pandas as pd
df = pd.read_json('jawiki-country.json', lines=True)
text = df.query('title==""')['text'].values[0].split('\n')
memo, flag = [], False
template = ''
check = re.compile('\|(.+?)\s=\s(.+)')
check1 = re.compile('\{\{' + template)
check2 = re.compile('\}\}')
check3 = re.compile('\|')
check4 ... | 23.821429 | 62 | 0.55922 |
da4c202f2a4d50150a0f027ce75d19d6e0f3d28d | 316 | py | Python | constants.py | jaingaurav3/ML_sample | 4e53de198f7965fa96f0db44717df27032df4b48 | [
"MIT"
] | 19 | 2018-06-08T05:33:47.000Z | 2021-04-26T16:19:32.000Z | constants.py | jaingaurav3/ML_sample | 4e53de198f7965fa96f0db44717df27032df4b48 | [
"MIT"
] | null | null | null | constants.py | jaingaurav3/ML_sample | 4e53de198f7965fa96f0db44717df27032df4b48 | [
"MIT"
] | 13 | 2018-09-24T21:52:06.000Z | 2021-02-26T10:40:25.000Z | # Datasets
TRAIN = 'trn'
VAL = 'val'
TEST = 'tst'
FULL = 'full'
# File extensions
JPG = '.jpg'
TIF = '.tif'
PNG = '.png'
GIF = '.gif'
BCOLZ = '.bc'
CSV = '.csv'
# PyTorch
MODEL_EXT = '.mdl'
WEIGHTS_EXT = '.th'
OPTIM_EXT = '.th'
# Data Aug
IMAGENET_MEAN = [0.485, 0.456, 0.406]
IMAGENET_STD = [0.229, 0.224, 0.225] | 14.363636 | 37 | 0.591772 |
da4ce36d9c8b0451cd19a4276193992895c3a0ed | 23,304 | py | Python | create_dataset.py | akudan/nephi | 83d3ccee0b83b3ca2349e92c454ed178afd1d1fb | [
"MIT"
] | 50 | 2018-04-22T23:12:18.000Z | 2022-02-14T15:10:24.000Z | create_dataset.py | akudan/nephi | 83d3ccee0b83b3ca2349e92c454ed178afd1d1fb | [
"MIT"
] | 1 | 2019-03-01T02:54:19.000Z | 2019-03-01T15:30:12.000Z | create_dataset.py | akudan/nephi | 83d3ccee0b83b3ca2349e92c454ed178afd1d1fb | [
"MIT"
] | 19 | 2018-02-07T21:17:13.000Z | 2022-02-14T15:11:46.000Z | import os
import lmdb # install lmdb by "pip install lmdb"
import cv2
import numpy as np
from tool.xml_parser import page_images
from glob import glob
import re
import sys
import io
import argparse
from scipy.spatial import distance
encoding = 'utf-8'
stdout = sys.stdout
reload(sys)
sys.setdefaultencoding('utf-8')
s... | 40.458333 | 277 | 0.573249 |
da4d25bd823544d3dde8ed32e826fbbb55bcbd80 | 1,226 | py | Python | a10sdk/core/maximum/maximum_paths.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 16 | 2015-05-20T07:26:30.000Z | 2021-01-23T11:56:57.000Z | a10sdk/core/maximum/maximum_paths.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 6 | 2015-03-24T22:07:11.000Z | 2017-03-28T21:31:18.000Z | a10sdk/core/maximum/maximum_paths.py | deepfield/a10sdk-python | bfaa58099f51f085d5e91652d1d1a3fd5c529d5d | [
"Apache-2.0"
] | 23 | 2015-03-29T15:43:01.000Z | 2021-06-02T17:12:01.000Z | from a10sdk.common.A10BaseClass import A10BaseClass
| 32.263158 | 168 | 0.638662 |
da4d50c0cd6f0dd5e191b086879be35c23707ff8 | 331 | py | Python | ocun.py | jpcyrino/chunker_dm | 1afde2400b81d0fbc351dcb4658546ef018d2640 | [
"MIT"
] | 1 | 2022-02-23T12:33:01.000Z | 2022-02-23T12:33:01.000Z | ocun.py | jpcyrino/chunker_dm | 1afde2400b81d0fbc351dcb4658546ef018d2640 | [
"MIT"
] | null | null | null | ocun.py | jpcyrino/chunker_dm | 1afde2400b81d0fbc351dcb4658546ef018d2640 | [
"MIT"
] | null | null | null | import sys
filename = sys.argv[1]
fileout = sys.argv[2]
with open(filename, encoding="utf-8", mode="r") as file:
lines = file.read().split("\n")
data_lines = [lines[i] for i in range(0,len(lines),3)]
print(data_lines)
with open(fileout, encoding="utf-8", mode="w") as file:
for line in data_lines:
file.write(lin... | 20.6875 | 56 | 0.667674 |
da4f18d031bec1129d069479e75d9c035f860d1d | 2,412 | py | Python | galaxy/main/urls.py | changelox/galaxy | fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc | [
"Apache-2.0"
] | null | null | null | galaxy/main/urls.py | changelox/galaxy | fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc | [
"Apache-2.0"
] | null | null | null | galaxy/main/urls.py | changelox/galaxy | fc8e11b36de0b78e55c13c05ffc3a3fcaf8b39dc | [
"Apache-2.0"
] | null | null | null | # (c) 2012-2018, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | 37.107692 | 76 | 0.681177 |
da52f7ade412e44099bbd5c88acd3fc976745c19 | 1,002 | py | Python | PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | null | null | null | PROJ/LEVY/RN_CHF/cf_RN_KoBoL.py | mattslezak-shell/PROJ_Option_Pricing_Matlab | 6105bd00ba3471802180c122fdf81e90833a91c4 | [
"MIT"
] | 1 | 2022-01-07T15:31:45.000Z | 2022-01-07T15:31:45.000Z | # Generated with SMOP 0.41-beta
try:
from smop.libsmop import *
except ImportError:
raise ImportError('File compiled with `smop3`, please install `smop3` to run it.') from None
# cf_RN_KoBoL.m
if __name__ == '__main__':
pass
| 27.833333 | 100 | 0.58483 |
da5590e5f9e56a1abcc8575518a715e6c27967cd | 161 | py | Python | hello-world.py | rmoralesdelgado/example-repo | a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b | [
"MIT"
] | null | null | null | hello-world.py | rmoralesdelgado/example-repo | a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b | [
"MIT"
] | null | null | null | hello-world.py | rmoralesdelgado/example-repo | a0d6f935264ec60a0278ea9fc5b8a694b5e33f0b | [
"MIT"
] | null | null | null | # This is a modified line
if __name__ == "__main__":
print("Hello World")
print("I am a new line")
print(hi)
# blah blha
| 10.733333 | 28 | 0.608696 |
da55b03a123eb70e524ac2c9ba783fe7003f5224 | 250 | py | Python | mundo 1/ex020.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 1/ex020.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 1/ex020.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | import random
n1 = str(input('Primeiro Aluno'))
n2 = str(input('Segundo Aluno'))
n3 = str(input('Terceiro Aluno'))
n4 = str(input('Quarto Aluno'))
lista = [n1,n2,n3,n4]
Ordem = random.sample(lista,k=4)
print(f'A ordem de apresentao ser: {Ordem}') | 27.777778 | 47 | 0.692 |
da58277b5c2af60a518ecbd9a3ef1bdee746623d | 1,306 | py | Python | python3/ais_sdk/utils.py | MeekoI/ais-sdk | 76240abc49795e914988f3cafb6d08f60dbdcb4c | [
"Apache-2.0"
] | null | null | null | python3/ais_sdk/utils.py | MeekoI/ais-sdk | 76240abc49795e914988f3cafb6d08f60dbdcb4c | [
"Apache-2.0"
] | null | null | null | python3/ais_sdk/utils.py | MeekoI/ais-sdk | 76240abc49795e914988f3cafb6d08f60dbdcb4c | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
import os
import base64
import urllib.request
import ais_sdk.ais as ais
_ENDPOINT = {
'image': {
'cn-north-1':'image.cn-north-1.myhuaweicloud.com',
'ap-southeast-1':'image.ap-southeast-1.myhuaweicloud.com'
},
'moderation': {
'cn-north-1':'moderation.... | 24.641509 | 70 | 0.666156 |
da5863a5ec445793ea40d771aa319962f8ec9010 | 609 | py | Python | GUI/dialogs/propulsion_dialogs/propulsion_dialog.py | StepLogic/Parametric-Drone-Design-Software | be9c537427f85b08c071c2666712fd32643cd439 | [
"Unlicense"
] | 7 | 2021-03-17T01:23:28.000Z | 2021-05-06T20:41:21.000Z | GUI/dialogs/propulsion_dialogs/propulsion_dialog.py | StepLogic/Parametric-Drone-Design-Software | be9c537427f85b08c071c2666712fd32643cd439 | [
"Unlicense"
] | null | null | null | GUI/dialogs/propulsion_dialogs/propulsion_dialog.py | StepLogic/Parametric-Drone-Design-Software | be9c537427f85b08c071c2666712fd32643cd439 | [
"Unlicense"
] | null | null | null | from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from GUI.tabs.propulsion_tab.propulsion_tab import propulsion_tab
| 30.45 | 65 | 0.689655 |
da58d75367a4513d4ada4db3e0cf52dc127dc010 | 726 | py | Python | blind_75/06_removeNthFromEnd.py | NursultanBeken/leetcode_practice | 8aa8a033f95110aafa6acd9ebf842d716fd7552b | [
"MIT"
] | 1 | 2020-09-20T03:55:00.000Z | 2020-09-20T03:55:00.000Z | blind_75/06_removeNthFromEnd.py | NursultanBeken/leetcode_practice | 8aa8a033f95110aafa6acd9ebf842d716fd7552b | [
"MIT"
] | null | null | null | blind_75/06_removeNthFromEnd.py | NursultanBeken/leetcode_practice | 8aa8a033f95110aafa6acd9ebf842d716fd7552b | [
"MIT"
] | null | null | null | """
Dummy node, two pointers, swap nodes
"""
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next | 22 | 43 | 0.479339 |
da58d89c89872e8d53a290617cb5b532f0d040f3 | 1,157 | py | Python | hard-gists/1023456/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 21 | 2019-07-08T08:26:45.000Z | 2022-01-24T23:53:25.000Z | hard-gists/1023456/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 5 | 2019-06-15T14:47:47.000Z | 2022-02-26T05:02:56.000Z | hard-gists/1023456/snippet.py | jjhenkel/dockerizeme | eaa4fe5366f6b9adf74399eab01c712cacaeb279 | [
"Apache-2.0"
] | 17 | 2019-05-16T03:50:34.000Z | 2021-01-14T14:35:12.000Z | import scriptcontext
import time
import System
import Rhino
rc, view = Rhino.Input.RhinoGet.GetView("select view")
print "position mouse where you want"
for i in [5,4,3,2,1]:
time.sleep(0.5)
print i
screen_point = System.Windows.Forms.Cursor.Position
print "screen_point =", screen_point
# convert screen coo... | 33.057143 | 84 | 0.78911 |
da590cce76c1f0b75eaa800793b065c606ed64fc | 62 | py | Python | core/models/abstract/__init__.py | jcquinlan/colophon | 96f3eec0a524cb1fe3d655f3cc850b125f4aaff4 | [
"MIT"
] | null | null | null | core/models/abstract/__init__.py | jcquinlan/colophon | 96f3eec0a524cb1fe3d655f3cc850b125f4aaff4 | [
"MIT"
] | null | null | null | core/models/abstract/__init__.py | jcquinlan/colophon | 96f3eec0a524cb1fe3d655f3cc850b125f4aaff4 | [
"MIT"
] | null | null | null | from .user_document_interaction import UserDocumentInteraction | 62 | 62 | 0.935484 |
da5ad4fa6a5854b1d737a7b9cbf69ded01ce0a95 | 769 | py | Python | EasyNN/optimizer/nesterov.py | danielwilczak101/EasyNN | 89319e974c324dda228c6ecff7c39d723eda3ca2 | [
"MIT"
] | 5 | 2021-01-28T21:19:02.000Z | 2022-02-03T05:47:47.000Z | EasyNN/optimizer/nesterov.py | danielwilczak101/EasyNN | 89319e974c324dda228c6ecff7c39d723eda3ca2 | [
"MIT"
] | 1 | 2021-02-04T20:57:45.000Z | 2021-03-03T14:49:44.000Z | EasyNN/optimizer/nesterov.py | danielwilczak101/EasyNN | 89319e974c324dda228c6ecff7c39d723eda3ca2 | [
"MIT"
] | 2 | 2021-02-12T04:27:40.000Z | 2021-12-19T20:11:20.000Z | """
TODO: Not complete.
"""
from __future__ import annotations
from EasyNN.optimizer.momentum_descent import MomentumDescent
import EasyNN.model.abc
| 36.619048 | 101 | 0.717815 |
da5c80138d99d10b2de1007d8d74ecb978a6b876 | 3,483 | py | Python | dl/cifar_python_data_layer.py | zsffq999/DISH | 2285747d9a410363ce09778aed5314a2e1b1aed9 | [
"MIT"
] | 3 | 2018-09-22T13:13:46.000Z | 2020-05-09T07:24:44.000Z | dl/cifar_python_data_layer.py | zsffq999/DISH | 2285747d9a410363ce09778aed5314a2e1b1aed9 | [
"MIT"
] | null | null | null | dl/cifar_python_data_layer.py | zsffq999/DISH | 2285747d9a410363ce09778aed5314a2e1b1aed9 | [
"MIT"
] | null | null | null | # imports
import caffe
import numpy as np
from random import shuffle
import cPickle as cp
import scipy.io as sio
| 29.025 | 125 | 0.669825 |
da5d5dda91394d5fcd0bc5d32616b3e16dc5d436 | 875 | py | Python | ethsential/__main__.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | 7 | 2021-10-11T12:07:08.000Z | 2022-01-10T01:19:36.000Z | ethsential/__main__.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | null | null | null | ethsential/__main__.py | 1140251/Ethsential | 1de423358f5a0ba8b84d80fa63bce09552bca9fd | [
"Apache-2.0"
] | null | null | null | import sys
from .src.applications.server import ETHSENTIAL
from .src.applications.cli import CLI
from .src.parser import create_parser
if __name__ == '__main__':
main()
| 24.305556 | 53 | 0.537143 |
da5ea178b4528bc2e8ee17e0a8132d23a6388e83 | 2,322 | py | Python | scripts/msig_prods_update_tag.py | xenbo/eosforce | f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f | [
"MIT"
] | 117 | 2018-06-22T08:49:36.000Z | 2022-01-30T17:08:29.000Z | scripts/msig_prods_update_tag.py | xenbo/eosforce | f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f | [
"MIT"
] | 17 | 2018-07-05T04:06:47.000Z | 2020-09-07T06:19:25.000Z | scripts/msig_prods_update_tag.py | xenbo/eosforce | f77a73c2b49f40f8af5c11a13b0a7eb069e02b5f | [
"MIT"
] | 42 | 2018-06-22T08:57:42.000Z | 2022-03-28T13:08:02.000Z | #!/usr/bin/env python3
import argparse
import json
import os
import re
import subprocess
import sys
import time
enable_push = True # True to push on chain
cleos = '../build/programs/cleos/cleos --wallet-url http://127.0.0.1:6666 --url http://127.0.0.1:8001 '
wallet_password = ''
wallet_name = 'testc'
active_account =... | 26.089888 | 103 | 0.615418 |
da5fc436cce22928bf1e7b8ba50df3169ca33055 | 7,027 | py | Python | maskrcnn/preprocess/download_googlestaticmap.py | JBoshoff/Replicate-night-light | 5bdfbb99fe38f98f61f733f4e847be2bb6f559ef | [
"MIT"
] | 8 | 2020-08-26T21:05:32.000Z | 2021-08-18T06:55:24.000Z | maskrcnn/preprocess/download_googlestaticmap.py | JBoshoff/Replicate-night-light | 5bdfbb99fe38f98f61f733f4e847be2bb6f559ef | [
"MIT"
] | null | null | null | maskrcnn/preprocess/download_googlestaticmap.py | JBoshoff/Replicate-night-light | 5bdfbb99fe38f98f61f733f4e847be2bb6f559ef | [
"MIT"
] | 2 | 2021-10-20T12:43:00.000Z | 2022-01-04T19:40:16.000Z | """This downloader downloads satellite images from the Google Static Maps API.
Usage:
$ python download_googlestaticmap.py \
> --log LOG_FILE.csv \
> --initialize INIT_FILE.csv
$ nohup python download_googlestaticmap.py \
> --log LOG_FILE.csv \
> --num 3 \
> --download-dir DIR \
... | 36.035897 | 84 | 0.565675 |
da5fcd544f0ebf019068c4964041f2d02daca8dc | 2,606 | py | Python | pyrh/endpoints.py | JamMarHer/pyrh | b5501482974d9a7ba9f34745642d0a2e585154f2 | [
"MIT"
] | null | null | null | pyrh/endpoints.py | JamMarHer/pyrh | b5501482974d9a7ba9f34745642d0a2e585154f2 | [
"MIT"
] | null | null | null | pyrh/endpoints.py | JamMarHer/pyrh | b5501482974d9a7ba9f34745642d0a2e585154f2 | [
"MIT"
] | null | null | null | BASE_API = "https://api.robinhood.com"
def ach(option):
"""
Combination of 3 ACH endpoints. Options include:
* iav
* relationships
* transfers
"""
return (
BASE_API + "/ach/iav/auth/" if option == "iav" else BASE_API + f"/ach/{option}/"
)
def instruments(in... | 18.748201 | 88 | 0.653492 |
da5fdaa047dc2cba3b58d7d4eab745c4fc398500 | 9,138 | py | Python | task.py | zhester/aptask | 4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e | [
"BSD-2-Clause"
] | null | null | null | task.py | zhester/aptask | 4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e | [
"BSD-2-Clause"
] | null | null | null | task.py | zhester/aptask | 4fc5c2bfe8dbe373e2ddc5bc15562885bb20b28e | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
"""
User Task Interface
This module should be used to implement new task execution drivers.
Semantically, a task is the object a worker creates and manipulates to execute
long-running code or programs.
"""
import inspect
import data
#=========================================================... | 31.402062 | 78 | 0.478989 |
da60447f22ba4eba74abcb47b3cadec2e06136d2 | 9,826 | py | Python | NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py | NeLy-EPFL/NeuroMechFly | 69f9e2d86caac561a50e3e060d007dd50a20d481 | [
"Apache-2.0"
] | 12 | 2021-05-07T15:27:11.000Z | 2022-01-29T04:26:36.000Z | NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py | NeLy-EPFL/NeuroMechFly | 69f9e2d86caac561a50e3e060d007dd50a20d481 | [
"Apache-2.0"
] | 15 | 2021-05-07T14:58:04.000Z | 2021-11-10T21:30:58.000Z | NeuroMechFly/experiments/kinematic_replay/kinematic_replay_no_support.py | NeLy-EPFL/NeuroMechFly | 69f9e2d86caac561a50e3e060d007dd50a20d481 | [
"Apache-2.0"
] | 1 | 2022-01-13T16:08:49.000Z | 2022-01-13T16:08:49.000Z | """ Drosophila simulation class for kinematic replay without body support. """
import numpy as np
import pandas as pd
import pybullet as p
from NeuroMechFly.sdf.units import SimulationUnitScaling
from NeuroMechFly.simulation.bullet_simulation import BulletSimulation
# Random number seed
np.random.seed(seed=321)
de... | 36.258303 | 91 | 0.569408 |
da6071c120cc4c6108f42d5833b8ae67a673f55d | 3,845 | py | Python | hw/ip/otbn/dv/otbnsim/sim/isa.py | wxjstz/opentitan | 6ff4397bac9c07373d735bd859c7ef8de39c2af8 | [
"Apache-2.0"
] | null | null | null | hw/ip/otbn/dv/otbnsim/sim/isa.py | wxjstz/opentitan | 6ff4397bac9c07373d735bd859c7ef8de39c2af8 | [
"Apache-2.0"
] | null | null | null | hw/ip/otbn/dv/otbnsim/sim/isa.py | wxjstz/opentitan | 6ff4397bac9c07373d735bd859c7ef8de39c2af8 | [
"Apache-2.0"
] | null | null | null | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
from enum import IntEnum
import sys
from typing import Dict
from riscvmodel.types import Immediate # type: ignore
from shared.insn_yaml import Insn, load_insns_yaml
fro... | 31.008065 | 78 | 0.649935 |
da624c2d151313fbe9db0021e53684c69e6d4b5f | 247 | py | Python | config.py | TaskeHAMANO/sample_application | 628699c62197dd5079e0b600f431c791ac3a301a | [
"BSD-3-Clause"
] | null | null | null | config.py | TaskeHAMANO/sample_application | 628699c62197dd5079e0b600f431c791ac3a301a | [
"BSD-3-Clause"
] | null | null | null | config.py | TaskeHAMANO/sample_application | 628699c62197dd5079e0b600f431c791ac3a301a | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# vim:fileencoding=utf-8
# Author: Shinya Suzuki
# Created: 2017-11-16
database_path = "/techathon.db"
SQLALCHEMY_DATABASE_URI = "sqlite://{0}".format(database_path)
SECRET_KEY = 'test'
SQLALCHEMY_TRACK_MODIFICATIONS = True
| 24.7 | 62 | 0.761134 |
da63d798dfe9c2ea59c6459800d52786ae4db56c | 2,668 | py | Python | tests/features/steps/environment_steps.py | candango/pyclicksign | d709122867cfa5c6fce4322b55a033bc82126e1c | [
"Apache-2.0"
] | null | null | null | tests/features/steps/environment_steps.py | candango/pyclicksign | d709122867cfa5c6fce4322b55a033bc82126e1c | [
"Apache-2.0"
] | 9 | 2022-01-15T19:43:46.000Z | 2022-03-24T06:04:25.000Z | tests/features/steps/environment_steps.py | candango/pyclicksign | d709122867cfa5c6fce4322b55a033bc82126e1c | [
"Apache-2.0"
] | null | null | null | # Copyright 2021-2022 Flvio Gonalves Garcia
#
# 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 t... | 33.35 | 74 | 0.737631 |
da648cdce4097a5f15c459cc9d3dc08716cd7f4a | 2,967 | py | Python | photo_album_src/models_bk.py | chrisjen83/k3s-labs | b283c2500b272be0de1025ef541a46d7c4591cc1 | [
"MIT"
] | 1 | 2020-04-01T22:05:28.000Z | 2020-04-01T22:05:28.000Z | photo_album_src/models_bk.py | chrisjen83/k3s-labs | b283c2500b272be0de1025ef541a46d7c4591cc1 | [
"MIT"
] | null | null | null | photo_album_src/models_bk.py | chrisjen83/k3s-labs | b283c2500b272be0de1025ef541a46d7c4591cc1 | [
"MIT"
] | 5 | 2020-02-21T22:47:35.000Z | 2022-02-03T15:21:39.000Z | #!/usr/bin/env python3
# Import modules required for app
import os
import boto3
import json
from pymongo import MongoClient
from werkzeug import secure_filename
from PIL import Image
from config import ecs_test_drive
#Get from K8s ConfigMap values for MongoDB Database
MONGO_SERVER = os.environ.get( "MONGO_SERVER", Non... | 34.905882 | 115 | 0.691271 |
da67084ae53c45931e9876b1394dc1aa92e625de | 12,051 | py | Python | pymothoa/llvm_backend/backend.py | sklam/pymothoa | 330bd70666ccf761f39c75f3acb70aa7e0a92ac6 | [
"BSD-2-Clause"
] | 2 | 2017-03-23T19:44:03.000Z | 2020-11-28T17:01:49.000Z | pymothoa/llvm_backend/backend.py | sklam/pymothoa | 330bd70666ccf761f39c75f3acb70aa7e0a92ac6 | [
"BSD-2-Clause"
] | null | null | null | pymothoa/llvm_backend/backend.py | sklam/pymothoa | 330bd70666ccf761f39c75f3acb70aa7e0a92ac6 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2012, Siu Kwan Lam
# All rights reserved.
import logging
import ast
from contextlib import contextmanager
from pymothoa.util.descriptor import Descriptor, instanceof
from pymothoa import dialect
from pymothoa.compiler_errors import *
from pymothoa.backend import CodeGenerationBase
from types import *... | 35.759644 | 110 | 0.617127 |
da68786bead17edb9e00b001f796346815fc35ed | 2,412 | py | Python | digsby/src/jabber/objects/gmail/mail_thread_info.py | ifwe/digsby | f5fe00244744aa131e07f09348d10563f3d8fa99 | [
"Python-2.0"
] | 35 | 2015-08-15T14:32:38.000Z | 2021-12-09T16:21:26.000Z | digsby/src/jabber/objects/gmail/mail_thread_info.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 4 | 2015-09-12T10:42:57.000Z | 2017-02-27T04:05:51.000Z | digsby/src/jabber/objects/gmail/mail_thread_info.py | niterain/digsby | 16a62c7df1018a49eaa8151c0f8b881c7e252949 | [
"Python-2.0"
] | 15 | 2015-07-10T23:58:07.000Z | 2022-01-23T22:16:33.000Z | #tid The thread id of this thread.
#participation A number indicating the user's participation level in this thread: 0 indicates that the user has not participated; 1 indicates that the user is one of many recipients listed in the thread; 2 indicates that the user is the sole recipient for messages in this thr... | 47.294118 | 285 | 0.69942 |
da687c22550da7202f3e33817124a03999dca63a | 542 | py | Python | cloud/single_stage_detector/pytorch/onnx_demo.py | mgoin/inference | ede5477a2aee72ceb435e9ecd599ffa052417c2a | [
"Apache-2.0"
] | 4 | 2019-07-26T03:00:39.000Z | 2021-01-29T16:12:21.000Z | cloud/single_stage_detector/pytorch/onnx_demo.py | mgoin/inference | ede5477a2aee72ceb435e9ecd599ffa052417c2a | [
"Apache-2.0"
] | null | null | null | cloud/single_stage_detector/pytorch/onnx_demo.py | mgoin/inference | ede5477a2aee72ceb435e9ecd599ffa052417c2a | [
"Apache-2.0"
] | 2 | 2019-11-12T15:57:29.000Z | 2022-03-02T21:26:58.000Z | import onnxruntime
import onnx
import os
from onnx import numpy_helper
onnx_model_dir = 'test_ssd_model'
onnx_data_dir = 'test_data_set_0'
sess = onnxruntime.InferenceSession(os.path.join(onnx_model_dir, 'model.onnx'))
img_tensor = onnx.TensorProto()
with open(os.path.join(onnx_model_dir, onnx_data_dir, 'input_0.pb')... | 30.111111 | 80 | 0.778598 |
da69d942b34c7cb188f48d8f571305a3929e1a1b | 95 | py | Python | abfahrt/unittest/__init__.py | Team-Zugig-zum-Erfolg/InformatiCup | 788076ac38bf6d8f462465b7fb96db14d13bed30 | [
"MIT"
] | 1 | 2022-01-30T14:30:02.000Z | 2022-01-30T14:30:02.000Z | abfahrt/unittest/__init__.py | Team-Zugig-zum-Erfolg/InformatiCup | 788076ac38bf6d8f462465b7fb96db14d13bed30 | [
"MIT"
] | null | null | null | abfahrt/unittest/__init__.py | Team-Zugig-zum-Erfolg/InformatiCup | 788076ac38bf6d8f462465b7fb96db14d13bed30 | [
"MIT"
] | null | null | null | """
Unittest-Package for testing the most important classes/modules of the abfahrt-Package
"""
| 23.75 | 86 | 0.778947 |
da6a8272e09ed6bcdd72fe1fe0ed6ca276090222 | 3,519 | py | Python | uat/test_uat_CLIParser.py | sorint-lab-us/aws-greengrass-gdk-cli | 7508c7f62dcee1638cfc895ea38f3842e0072f0e | [
"Apache-2.0"
] | null | null | null | uat/test_uat_CLIParser.py | sorint-lab-us/aws-greengrass-gdk-cli | 7508c7f62dcee1638cfc895ea38f3842e0072f0e | [
"Apache-2.0"
] | null | null | null | uat/test_uat_CLIParser.py | sorint-lab-us/aws-greengrass-gdk-cli | 7508c7f62dcee1638cfc895ea38f3842e0072f0e | [
"Apache-2.0"
] | null | null | null | import json
import os
import subprocess as sp
import tempfile
from pathlib import Path
import gdk.common.exceptions.error_messages as error_messages
| 40.918605 | 126 | 0.700199 |
da6b4c0eec1b1ed14670ffd508f05ac5d26c2b77 | 1,326 | py | Python | mysite/image/forms.py | HelloTecXin/ZXBlog | 60d1f95f541138aa56acbaf4dcfbfe208491d65b | [
"MIT"
] | 1 | 2020-03-17T08:28:48.000Z | 2020-03-17T08:28:48.000Z | mysite/image/forms.py | HelloTecXin/ZXBlog | 60d1f95f541138aa56acbaf4dcfbfe208491d65b | [
"MIT"
] | null | null | null | mysite/image/forms.py | HelloTecXin/ZXBlog | 60d1f95f541138aa56acbaf4dcfbfe208491d65b | [
"MIT"
] | null | null | null | from django import forms
from django.core.files.base import ContentFile
from slugify import slugify
from urllib import request
from .models import Image
| 41.4375 | 113 | 0.667421 |