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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9ac52698f272a1fffb97a09b396da05176ca785 | 1,310 | py | Python | ML/website-scraping-w-python-master/Chapter 3/downloader.py | praveenpmin/Python | 513fcde7430b03a187e2c7e58302b88645388eed | [
"MIT"
] | null | null | null | ML/website-scraping-w-python-master/Chapter 3/downloader.py | praveenpmin/Python | 513fcde7430b03a187e2c7e58302b88645388eed | [
"MIT"
] | null | null | null | ML/website-scraping-w-python-master/Chapter 3/downloader.py | praveenpmin/Python | 513fcde7430b03a187e2c7e58302b88645388eed | [
"MIT"
] | null | null | null | import requests
from bs4 import BeautifulSoup, SoupStrainer
from chapter_3.file_cache import FileCache
| 29.111111 | 77 | 0.623664 |
a9ac8a5aea66d0d5de0c1f7ac431c353950e1879 | 2,748 | py | Python | graph_display.py | viewfindercode/movie-revenue-graph | 11eab9b54d9a2c7cffb8b3305f687337874041e3 | [
"MIT"
] | null | null | null | graph_display.py | viewfindercode/movie-revenue-graph | 11eab9b54d9a2c7cffb8b3305f687337874041e3 | [
"MIT"
] | null | null | null | graph_display.py | viewfindercode/movie-revenue-graph | 11eab9b54d9a2c7cffb8b3305f687337874041e3 | [
"MIT"
] | null | null | null | import pandas as pd
from bokeh.io import show, curdoc
from bokeh.models import ColumnDataSource, HoverTool, Select, Axis, CustomJS
from bokeh.plotting import figure, output_file
from bokeh.layouts import column
df = pd.read_csv('path file to...HighestGrossingFilms.csv')
name = df.loc[:, 'Name']
year = df.loc[:, 'Yea... | 38.704225 | 88 | 0.60917 |
a9ad087156ac3a105145a098808b5c0d80354b64 | 1,014 | py | Python | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | 2 | 2020-12-10T03:10:52.000Z | 2020-12-27T06:17:01.000Z | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | 8 | 2020-12-10T06:38:10.000Z | 2021-05-01T22:27:37.000Z | backend/improvements/mine.py | aecobb53/civ_vi_city_planner | bac9517507f0f50a172fe821a8c08d7945fdf74f | [
"MIT"
] | null | null | null | from backend.common_tile import CommonTile
| 26 | 83 | 0.498028 |
a9ad98281d176ac6f1c7411f445592622fc63f72 | 408 | py | Python | my_robot_control/scripts/system/control_robot.py | Siffran/DAT295-KW2 | 51c27278623ef660e43fb43cd86a3a81d17a288e | [
"MIT"
] | null | null | null | my_robot_control/scripts/system/control_robot.py | Siffran/DAT295-KW2 | 51c27278623ef660e43fb43cd86a3a81d17a288e | [
"MIT"
] | null | null | null | my_robot_control/scripts/system/control_robot.py | Siffran/DAT295-KW2 | 51c27278623ef660e43fb43cd86a3a81d17a288e | [
"MIT"
] | null | null | null | import rospy
from std_msgs.msg import Float64
| 29.142857 | 96 | 0.745098 |
a9ae07b702ca400980c0c7887914c67d1f04fa3b | 700 | py | Python | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | null | null | null | interceptor/migrations/0006_auto_20200514_0637.py | minrock/thaad | dfc9dce0b66111e92154b71a3c8249b3695cd9ed | [
"MIT"
] | 1 | 2020-08-21T01:35:09.000Z | 2020-08-21T01:35:09.000Z | # Generated by Django 3.0.5 on 2020-05-14 06:37
from django.db import migrations, models
import django.db.models.deletion
| 28 | 141 | 0.632857 |
a9af76d2907f1842ce017c5b2767d34090fd37f8 | 471 | py | Python | scripts/sample_data/discourse_1369.py | gmatteo/awesome-panel | 7eb6965f4b3a7eca08c07561e631e5beb189ffd3 | [
"Apache-2.0"
] | 179 | 2019-12-04T14:54:53.000Z | 2022-03-30T09:08:38.000Z | scripts/sample_data/discourse_1369.py | hbueno/awesome-panel | fb27bcaf265cef1278cfa0c78799fbbf6c9a6834 | [
"Apache-2.0"
] | 62 | 2019-12-14T16:51:28.000Z | 2022-03-19T18:47:12.000Z | scripts/sample_data/discourse_1369.py | hbueno/awesome-panel | fb27bcaf265cef1278cfa0c78799fbbf6c9a6834 | [
"Apache-2.0"
] | 35 | 2019-12-08T13:19:53.000Z | 2022-03-25T10:33:02.000Z | import panel as pn
test_alert()
| 22.428571 | 58 | 0.609342 |
a9b090a0a84578ff521f792d0b965683a5e42686 | 2,655 | py | Python | pose/custom/gesture_model.py | Event0511/curling-reid | 1494d0faeed951e495573c694362f001df5bf6fd | [
"Apache-2.0"
] | 3 | 2020-06-05T12:07:15.000Z | 2021-05-22T01:43:21.000Z | pose/custom/gesture_model.py | Event0511/curling-reid | 1494d0faeed951e495573c694362f001df5bf6fd | [
"Apache-2.0"
] | null | null | null | pose/custom/gesture_model.py | Event0511/curling-reid | 1494d0faeed951e495573c694362f001df5bf6fd | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision.transforms import ToTensor
def gesture_recognition(self):
return decorator
| 31.607143 | 138 | 0.566855 |
a9b11162cd72c12652133c331fbd63b96c823f0f | 4,056 | py | Python | python/tests/test_integration_domains.py | cmaurini/dolfinx_mpc | f7dba13c4d2d5231d13050af7a64206fafd0e2f4 | [
"MIT"
] | null | null | null | python/tests/test_integration_domains.py | cmaurini/dolfinx_mpc | f7dba13c4d2d5231d13050af7a64206fafd0e2f4 | [
"MIT"
] | null | null | null | python/tests/test_integration_domains.py | cmaurini/dolfinx_mpc | f7dba13c4d2d5231d13050af7a64206fafd0e2f4 | [
"MIT"
] | null | null | null | # Copyright (C) 2020 Jrgen S. Dokken
#
# This file is part of DOLFINX_MPC
#
# SPDX-License-Identifier: MIT
import dolfinx.fem as fem
import dolfinx_mpc
import numpy as np
import pytest
import scipy.sparse.linalg
import ufl
from dolfinx.common import Timer, TimingType, list_timings
from dolfinx.mesh import MeshTags... | 34.666667 | 88 | 0.672584 |
a9b193c08d4e2b54525ea95fb1e1ee7312be2f54 | 372 | py | Python | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | technical_test/order_status/migrations/0004_alter_orderstatus_options.py | R3dward/technical_test_django_n_mysql | d1fe54b3ab73e1269c5e91c62e113c790d4ba892 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-10 23:08
from django.db import migrations
| 20.666667 | 61 | 0.61828 |
a9b1e5f530f1eb2e2c4155ee70c812905ec0376e | 212 | py | Python | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.01-Complicated-Logic.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.01-Complicated-Logic.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Courses/Python-Tutorials.Zulkarnine-Mahmud/00.Fundamentals/02.01-Complicated-Logic.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null |
number1 = 10
number2 = 3
result = complicated_logic(number1, number2)
print(result)
| 17.666667 | 44 | 0.679245 |
a9b208fc8ef5bf90a9d2a6941fa2a45a0eec5410 | 8,536 | py | Python | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | 4 | 2020-08-06T11:07:20.000Z | 2020-11-20T15:45:13.000Z | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | null | null | null | src/migrations/versions/0930fdefb325_initial_migration.py | vishaltanwar96/Py-iTrack | 53fbd73829320337f204f3d03ec667ffa3477592 | [
"MIT"
] | null | null | null | """initial migration
Revision ID: 0930fdefb325
Revises:
Create Date: 2020-09-27 21:13:23.088570
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '0930fdefb325'
down_revision = None
branch_labels = None
depends_on = None
| 55.428571 | 118 | 0.534911 |
a9b485b811b7ea730f833299f86e192dd1517845 | 1,426 | py | Python | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | null | null | null | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | null | null | null | feincms/management/commands/rebuild_mptt.py | duointeractive/feincms | 29b6bc197e854ec69bfb9a4923f029803c8d8f50 | [
"BSD-3-Clause"
] | 1 | 2020-06-27T11:12:21.000Z | 2020-06-27T11:12:21.000Z | # ------------------------------------------------------------------------
# coding=utf-8
# $Id$
# ------------------------------------------------------------------------
from django.core.management.base import NoArgsCommand
from django.db import transaction
from feincms.module.page.models import Page | 31.688889 | 86 | 0.557504 |
a9b4cdd09df73b0ba7ba04ea4f89270700943068 | 2,713 | py | Python | tests/unit/zen_service/test_zen_service.py | xhan97/zenml | 8d87d76c6a4cca8862af3183975c8f292dafa49d | [
"Apache-2.0"
] | null | null | null | tests/unit/zen_service/test_zen_service.py | xhan97/zenml | 8d87d76c6a4cca8862af3183975c8f292dafa49d | [
"Apache-2.0"
] | null | null | null | tests/unit/zen_service/test_zen_service.py | xhan97/zenml | 8d87d76c6a4cca8862af3183975c8f292dafa49d | [
"Apache-2.0"
] | null | null | null | # Copyright (c) ZenML GmbH 2022. 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:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 34.341772 | 70 | 0.71397 |
a9b4d86041eed870edb12f00cf0408b19c04986b | 7,514 | py | Python | tests/test_q.py | gityoav/pyg-mongo | f414b8923562e273f95c51e4cfb47e2c27cd3948 | [
"MIT"
] | null | null | null | tests/test_q.py | gityoav/pyg-mongo | f414b8923562e273f95c51e4cfb47e2c27cd3948 | [
"MIT"
] | null | null | null | tests/test_q.py | gityoav/pyg-mongo | f414b8923562e273f95c51e4cfb47e2c27cd3948 | [
"MIT"
] | null | null | null | from pyg_mongo import Q, q, mongo_table
import re
import pytest
regex = re.compile
| 49.761589 | 139 | 0.360527 |
a9b610cfe89de1a6797cf3ac5c95728d7d857573 | 7,561 | py | Python | beer/cli/subcommands/shmm/mksphoneloop.py | bolajiy/beer | 6fe968c7ca4864437890aa6bd705755c2580696e | [
"MIT"
] | 46 | 2018-02-27T18:15:08.000Z | 2022-02-16T22:10:55.000Z | beer/cli/subcommands/shmm/mksphoneloop.py | bolajiy/beer | 6fe968c7ca4864437890aa6bd705755c2580696e | [
"MIT"
] | 16 | 2018-01-26T14:18:51.000Z | 2021-02-05T09:34:00.000Z | beer/cli/subcommands/shmm/mksphoneloop.py | bolajiy/beer | 6fe968c7ca4864437890aa6bd705755c2580696e | [
"MIT"
] | 26 | 2018-03-12T14:03:26.000Z | 2021-05-24T21:15:01.000Z |
'create a subspace phone-loop model'
import argparse
import copy
import pickle
import sys
import torch
import yaml
import beer
# Create a view of the emissions (aka modelset) for each units.
# Compute the sufficient statistics from the natural parameters.
def param_stats(param):
post, prior = param.posterio... | 37.805 | 86 | 0.62915 |
a9b6db163750aa6c9ea17a1a22dadd683009c897 | 187 | py | Python | RECIPE-GENERATOR/markov_nagerecht.py | maxwaelbers/CookingWithMarkov.py | 905a6c17008ff6b1e3c1487e9469e01395b1c7ec | [
"MIT"
] | 1 | 2022-03-23T22:08:14.000Z | 2022-03-23T22:08:14.000Z | RECIPE-GENERATOR/markov_nagerecht.py | maxwaelbers/CookingWithMarkov.py | 905a6c17008ff6b1e3c1487e9469e01395b1c7ec | [
"MIT"
] | null | null | null | RECIPE-GENERATOR/markov_nagerecht.py | maxwaelbers/CookingWithMarkov.py | 905a6c17008ff6b1e3c1487e9469e01395b1c7ec | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import markovify
with open("NAGERECHT.txt") as f:
text = f.read()
text_model = markovify.Text(text)
for i in range(8):
print(text_model.make_sentence())
| 15.583333 | 37 | 0.68984 |
a9b7c4bf78cb7ec197a87d72aa13dcdcb906e45e | 1,509 | py | Python | helper/parse.py | avgupta456/HackMIT-2019 | 05ba30e49aebbe2afafff5404ff2cfdb3eea7d9a | [
"MIT"
] | 3 | 2019-09-23T21:26:30.000Z | 2020-11-06T08:26:40.000Z | helper/parse.py | aditgupta1/HackMIT-2019 | 446eca4382c0bb7916304a1e35c5ab36a393354e | [
"MIT"
] | 6 | 2019-09-23T21:08:23.000Z | 2019-09-23T21:21:16.000Z | helper/parse.py | aditgupta1/HackMIT-2019 | 446eca4382c0bb7916304a1e35c5ab36a393354e | [
"MIT"
] | 3 | 2019-11-21T23:59:15.000Z | 2021-09-09T19:14:29.000Z | import os
import sys
import numpy as np
from helper import abbrev
| 26.017241 | 79 | 0.530152 |
a9b8110c9d878a82a80122939bfbcc0f297b7ddf | 1,192 | py | Python | ims_soft/stock/utils.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | ims_soft/stock/utils.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | ims_soft/stock/utils.py | fouadsan/ims-soft | 872f9fedd7d848cf9b2a16d53bcf1925fe042721 | [
"MIT"
] | null | null | null | from django.http import HttpResponse
from django.template.loader import get_template
from io import BytesIO
from xhtml2pdf import pisa
from tablib import Dataset
from .models import Barcode
| 25.913043 | 105 | 0.639262 |
a9b8dcffe0bf3a7f1f0315dd52f8c586577a6eeb | 3,503 | py | Python | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 5 | 2017-08-19T23:38:14.000Z | 2021-02-08T23:23:57.000Z | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 2 | 2015-10-31T19:54:37.000Z | 2018-06-05T21:47:12.000Z | scripts/train_all.py | davek44/Glimmer-MG | ced287371a118ff403e0a5c09735c154cffa34ec | [
"Artistic-1.0"
] | 5 | 2020-02-11T14:55:43.000Z | 2021-10-08T13:41:25.000Z | #!/usr/bin/env python
from optparse import OptionParser, SUPPRESS_HELP
import glob, os, time, subprocess, sys
################################################################################
# train_all.py
#
# Run train_gbk in parallel on the gbk files defined by the glob
##############################################... | 36.113402 | 161 | 0.489009 |
a9b9a871d28a4764dfb7693ea647326d7012450b | 277 | py | Python | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 6 | 2015-04-16T23:18:22.000Z | 2020-08-25T22:50:13.000Z | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 267 | 2015-01-01T00:18:57.000Z | 2015-10-14T00:01:13.000Z | cyder/cydhcp/workgroup/forms.py | drkitty/cyder | 1babc443cc03aa51fa3c1015bcd22f0ea2e5f0f8 | [
"BSD-3-Clause"
] | 5 | 2015-03-23T00:57:09.000Z | 2019-09-09T22:42:37.000Z | from django import forms
from cyder.base.eav.forms import get_eav_form
from cyder.cydhcp.workgroup.models import Workgroup, WorkgroupAV
WorkgroupAVForm = get_eav_form(WorkgroupAV, Workgroup)
| 19.785714 | 64 | 0.787004 |
a9ba579835c1afe9d5d13cdd3cf78a5b2c2856d9 | 742 | py | Python | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce- | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | 3 | 2020-08-11T06:20:56.000Z | 2020-10-24T14:25:57.000Z | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | null | null | null | Main/migrations/0005_auto_20200809_0710.py | anshumanprajapatiap/django-ecommerce | 49e7c08fc2ddef969986985e1922184950a5ceff | [
"MIT"
] | null | null | null | # Generated by Django 3.1 on 2020-08-09 01:40
from django.db import migrations, models
| 25.586207 | 62 | 0.578167 |
a9ba9c693dcb21c84b2a14b3f673f6d40fc4cac5 | 6,305 | py | Python | xrspatial/gpu_rtx/hillshade.py | DahnJ/xarray-spatial | e4cc6affeb3239b339a0a188dbc81cf05a91c739 | [
"MIT"
] | 1 | 2022-02-22T21:51:12.000Z | 2022-02-22T21:51:12.000Z | xrspatial/gpu_rtx/hillshade.py | DahnJ/xarray-spatial | e4cc6affeb3239b339a0a188dbc81cf05a91c739 | [
"MIT"
] | null | null | null | xrspatial/gpu_rtx/hillshade.py | DahnJ/xarray-spatial | e4cc6affeb3239b339a0a188dbc81cf05a91c739 | [
"MIT"
] | null | null | null | # Only call functions in this file if has_rtx() returns True as this checks
# that the required dependent libraries are installed.
import cupy
import numba as nb
import numpy as np
from rtxpy import RTX
from scipy.spatial.transform import Rotation as R
import xarray as xr
from .cuda_utils import add, dot, invert, mak... | 31.843434 | 78 | 0.614116 |
a9baa6b125f1192e69479923a83bf4b1cc8e1432 | 2,874 | py | Python | Data Structures/Binary Search Tree/binary_search_tree.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | Data Structures/Binary Search Tree/binary_search_tree.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | Data Structures/Binary Search Tree/binary_search_tree.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z |
root = None
for t in range(int(input().split())):
n = int(input())
for i in range(n):
root.insert(root, int(input()))
inorder(root)
print("\n")
root = delete(root, 12)
inorder(root)
print("\n")
| 20.097902 | 63 | 0.556367 |
a9baeece1ff7b0efd040bc3d5f266b8de85277ad | 711 | py | Python | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 1 | 2021-01-11T06:30:44.000Z | 2021-01-11T06:30:44.000Z | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 23 | 2020-02-12T02:35:49.000Z | 2022-02-11T03:45:40.000Z | pyoop/3/2.py | yc19890920/Learn | 3990e75b469225ba7b430539ef9a16abe89eb863 | [
"Apache-2.0"
] | 2 | 2020-04-08T15:39:46.000Z | 2020-10-10T10:13:09.000Z |
fjs = Fjs("fjs")
print(fjs.name )
print('-------------1-------')
fjs.hello()
print('--------------2------')
fjs.bb
"""
name
fjs
---------------2-----
hello
name
said by : fjs
""" | 20.314286 | 51 | 0.516174 |
a9baf5b8fb6aa410e1d594792ef195718d84e1d0 | 3,679 | py | Python | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | 2 | 2019-12-04T05:36:40.000Z | 2020-01-20T06:52:20.000Z | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | 9 | 2021-04-08T21:59:16.000Z | 2022-03-12T00:48:24.000Z | king_blog/settings.py | pythonyhd/django_blog | 285800df723ede53bc8b827bd9d3c6ee11bba07a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, os.path.join(BASE_DIR, 'apps'))
sys.path.insert(0, os.path.join(BASE_DIR, 'extra_apps'))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'l==+c9e&r^#@%... | 23.735484 | 91 | 0.642838 |
a9bb0ce38a5e1cd7f5653a82cd103752babbcf87 | 1,686 | py | Python | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | nfsops/configurations/restore.py | nfsops/nfsops | d7b6fc12c5a1845f468e2737fad7031fd37bd3f2 | [
"BSD-3-Clause"
] | null | null | null | '''
Restore configuration model.
'''
from typing import Any, Dict, Literal, Optional, Union
from pydantic import NonNegativeInt, validator
from .configuration import Configuration
__all__ = [
'RestoreConfiguration'
]
| 27.639344 | 98 | 0.627521 |
a9bbca416a68244927102be6b31619ee00d79683 | 1,156 | py | Python | DiceGame/PigGameCMD.py | rodri45l/examination2 | 8d50f1fe193af14b82334f17df655a66117e90d8 | [
"MIT"
] | null | null | null | DiceGame/PigGameCMD.py | rodri45l/examination2 | 8d50f1fe193af14b82334f17df655a66117e90d8 | [
"MIT"
] | null | null | null | DiceGame/PigGameCMD.py | rodri45l/examination2 | 8d50f1fe193af14b82334f17df655a66117e90d8 | [
"MIT"
] | null | null | null | import cmd
from PIGClasses import Player as p
from PIGClasses import Dice as d
from PIGClasses import bcolors as LetCol
import shouldRoll as prob
import OopPigGame as game
GOAL = 100
DIVIDER = "===================================================================\
======================================="
if __name__ ==... | 34 | 79 | 0.608997 |
a9bbe238eec765d6219021e3850498a946086afe | 290 | py | Python | tests/conftest.py | chadwhitacre/confidant | dd788147b355f760767cf3b9487671c67948ade3 | [
"Apache-2.0"
] | 1,820 | 2015-11-04T17:57:16.000Z | 2022-03-31T16:47:24.000Z | tests/conftest.py | chadwhitacre/confidant | dd788147b355f760767cf3b9487671c67948ade3 | [
"Apache-2.0"
] | 186 | 2015-11-04T18:21:52.000Z | 2022-01-14T20:31:31.000Z | tests/conftest.py | isabella232/confidant | 3dac318c3e1f29bae5771084ad29a4bc121f1771 | [
"Apache-2.0"
] | 136 | 2015-11-04T19:23:14.000Z | 2022-02-25T01:51:29.000Z | import pytest
| 26.363636 | 75 | 0.731034 |
a9bc2fb8cc5a87cb535142d90ecf6c0ccf9b146f | 1,342 | py | Python | vega/algorithms/nas/modnas/optim/model_optim/base.py | This-50m/vega | 43602d062331336d854d908ac3066f42b2ea3a92 | [
"MIT"
] | 724 | 2020-06-22T12:05:30.000Z | 2022-03-31T07:10:54.000Z | vega/algorithms/nas/modnas/optim/model_optim/base.py | NiuRc/vega | 52b53582fe7df95d7aacc8425013fd18645d079f | [
"MIT"
] | 147 | 2020-06-30T13:34:46.000Z | 2022-03-29T11:30:17.000Z | vega/algorithms/nas/modnas/optim/model_optim/base.py | NiuRc/vega | 52b53582fe7df95d7aacc8425013fd18645d079f | [
"MIT"
] | 160 | 2020-06-29T18:27:58.000Z | 2022-03-23T08:42:21.000Z | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | 36.27027 | 81 | 0.702683 |
a9bdf41f3f159889165ac748c2d56b8054ced7df | 14,226 | py | Python | app/dtclasses.py | blurmcclure18/ExpenseTracker | b4c65095298fbb551fc3fc7ecffd5d5029401e87 | [
"MIT"
] | 16 | 2019-10-19T11:34:35.000Z | 2021-12-16T07:10:25.000Z | app/dtclasses.py | blurmcclure18/ExpenseTracker | b4c65095298fbb551fc3fc7ecffd5d5029401e87 | [
"MIT"
] | 1 | 2021-09-27T04:37:28.000Z | 2021-09-27T04:37:28.000Z | app/dtclasses.py | blurmcclure18/ExpenseTracker | b4c65095298fbb551fc3fc7ecffd5d5029401e87 | [
"MIT"
] | 11 | 2019-10-21T00:01:55.000Z | 2022-01-17T06:02:23.000Z | from sqlalchemy import create_engine
from sqlalchemy import Column, String, Integer, func, Boolean, Float, desc, text
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from contextlib import contextmanager
from datetime import datetime
from kivy.properties import ObjectProp... | 42.339286 | 119 | 0.540067 |
a9bf299c10437b03d6ec078e6deaee3d66a12eec | 5,078 | py | Python | model/main.py | sylvarant/learn-to-hash | 1acd92935fe4f1c508d35c9822d591a1a25ab749 | [
"MIT"
] | 58 | 2019-10-30T05:25:46.000Z | 2022-03-01T05:07:23.000Z | model/main.py | sylvarant/learn-to-hash | 1acd92935fe4f1c508d35c9822d591a1a25ab749 | [
"MIT"
] | 7 | 2019-12-23T13:51:48.000Z | 2021-01-20T05:26:32.000Z | model/main.py | sylvarant/learn-to-hash | 1acd92935fe4f1c508d35c9822d591a1a25ab749 | [
"MIT"
] | 10 | 2019-11-02T07:24:39.000Z | 2021-08-06T14:08:46.000Z | import torch
import torch.nn as nn
import argparse
from torch.utils.data import Dataset
import sys
'''
Block of net
'''
if __name__ == "__main__":
run(int(sys.argv[1]), float(sys.argv[2]), int(sys.argv[3]))
| 33.853333 | 112 | 0.584876 |
a9bfb46007f2c7a7b605b92de35a99c3a1fced0d | 1,306 | py | Python | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | 9 | 2021-09-01T05:54:01.000Z | 2021-11-03T08:32:21.000Z | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | null | null | null | tests/test_metrics.py | vzhong/wrangl | 8cc6cbda83908375649ecff8f3f81eab9a636636 | [
"Apache-2.0"
] | null | null | null | import unittest
from wrangl import metrics as M
| 40.8125 | 113 | 0.542879 |
a9c055f99626b71603630508510f8062c59d2735 | 4,227 | py | Python | adjutant_moc/tests/functional/base.py | CCI-MOC/adjutant-moc | 015de325dced135f56867c2ca8e07814cc950e36 | [
"Apache-2.0"
] | 1 | 2021-01-22T18:21:42.000Z | 2021-01-22T18:21:42.000Z | adjutant_moc/tests/functional/base.py | CCI-MOC/adjutant-moc | 015de325dced135f56867c2ca8e07814cc950e36 | [
"Apache-2.0"
] | 14 | 2020-05-06T13:39:21.000Z | 2022-02-22T16:27:01.000Z | adjutant_moc/tests/functional/base.py | CCI-MOC/adjutant-moc | 015de325dced135f56867c2ca8e07814cc950e36 | [
"Apache-2.0"
] | 3 | 2019-01-26T20:10:10.000Z | 2019-11-04T16:39:46.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 the... | 39.504673 | 78 | 0.58008 |
a9c0bdf2d2cf4830232e3965c827f5feaf5a433e | 2,895 | py | Python | projeto/create_model.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | null | null | null | projeto/create_model.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | null | null | null | projeto/create_model.py | lucasmmassa/VisaoComputacional_PLE | 1a09e40e22f8ba6f6c39f2b513b9d36d62db6979 | [
"MIT"
] | 1 | 2020-11-11T00:09:51.000Z | 2020-11-11T00:09:51.000Z | import numpy as np
import cv2
import glob
import PIL.ExifTags
import PIL.Image
from tqdm import tqdm
import os
import matplotlib.pyplot as plt
from pyntcloud import PyntCloud
import open3d as o3d | 33.662791 | 117 | 0.6981 |
a9c152aab2b42dd5d2a6e8fbcc44f78b50162ef3 | 7,388 | py | Python | ginga/misc/plugins/ZoomBase.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | 1 | 2016-03-21T15:56:15.000Z | 2016-03-21T15:56:15.000Z | ginga/misc/plugins/ZoomBase.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | null | null | null | ginga/misc/plugins/ZoomBase.py | Rbeaty88/ginga | 08451a81288b8defc54aa9f9e2af23a9ba32e985 | [
"BSD-3-Clause"
] | null | null | null | #
# ZoomBase.py -- Zoom plugin base class for Ginga fits viewer
#
# Eric Jeschke (eric@naoj.org)
#
# Copyright (c) Eric R. Jeschke. All rights reserved.
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import time
from ginga.misc import Bunch
from ginga im... | 36.039024 | 89 | 0.595019 |
a9c1e19e3991b37d6f5960dcb7426b8017c473fa | 1,672 | py | Python | Aserver/app.py | GnuVill-HUFS/2018-Academic-Seminar | 82a62713fbee3fd9e4a676f8add7a610e3617c1a | [
"MIT"
] | null | null | null | Aserver/app.py | GnuVill-HUFS/2018-Academic-Seminar | 82a62713fbee3fd9e4a676f8add7a610e3617c1a | [
"MIT"
] | 18 | 2018-11-05T08:20:40.000Z | 2018-11-18T19:56:29.000Z | Aserver/app.py | GnuVill-HUFS/2018-Academic-Seminar | 82a62713fbee3fd9e4a676f8add7a610e3617c1a | [
"MIT"
] | 1 | 2018-11-08T03:40:35.000Z | 2018-11-08T03:40:35.000Z | from flask import Flask,render_template, redirect, url_for
import requests, json, webbrowser
from flask import request
import os
from urllib.parse import urljoin
A_SERVER = 'http://192.168.1.4:3333'
B_SERVER = 'http://192.168.1.5:4444'
app = Flask(__name__, static_url_path='/static')
if __name__ == '__... | 33.44 | 76 | 0.595096 |
a9c3b1db81d97722f7bbb72c86f1ccd8ea8ca87d | 566 | py | Python | Week3/exercise_4.py | jcelani82/PyClass_202101 | 7ab96846f526e32021a9d0b6afb3aa8e9a7e7853 | [
"Apache-2.0"
] | null | null | null | Week3/exercise_4.py | jcelani82/PyClass_202101 | 7ab96846f526e32021a9d0b6afb3aa8e9a7e7853 | [
"Apache-2.0"
] | null | null | null | Week3/exercise_4.py | jcelani82/PyClass_202101 | 7ab96846f526e32021a9d0b6afb3aa8e9a7e7853 | [
"Apache-2.0"
] | null | null | null | import json
from pprint import pprint
filename = "readfile_4.json"
with open(filename) as f:
readdata = json.load(f)
new_dict = {}
for a_keys, a_values in readdata.items():
if a_keys == "ipV4Neighbors":
for nei_list in a_values:
for nei_keys, nei_values in nei_list.items():
... | 25.727273 | 57 | 0.595406 |
a9c423e910240c1e06afc7dc09dd3dffc57a5323 | 1,693 | py | Python | zazi/apps/loan/events.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | null | null | null | zazi/apps/loan/events.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | 1 | 2021-08-20T06:41:57.000Z | 2021-08-20T06:41:57.000Z | zazi/apps/loan/events.py | felixcheruiyot/zazi-core-banking | 0a2dac42235adcac3cf8c114961e407f54844223 | [
"Apache-2.0"
] | null | null | null | import logging
from decimal import Decimal as D
from django.utils import timezone
from zazi.core import json
from .enums import LoanTransactionType
from . import utils as api
#--------------
logger = logging.getLogger(__name__)
#--------------
| 27.306452 | 85 | 0.645009 |
a9c54ec758039b31ef7e9d1b505a7deab5022928 | 328 | py | Python | vbb_backend/session/apps.py | jcelynott/backend-vbb-portal | 4d5c4faab52e0e73112fb4bfd5b98ac5c5c7f795 | [
"MIT"
] | 3 | 2021-04-14T02:59:09.000Z | 2021-06-08T00:17:27.000Z | vbb_backend/session/apps.py | jcelynott/backend-vbb-portal | 4d5c4faab52e0e73112fb4bfd5b98ac5c5c7f795 | [
"MIT"
] | 81 | 2020-12-08T00:11:52.000Z | 2021-08-09T18:13:32.000Z | vbb_backend/session/apps.py | jcelynott/backend-vbb-portal | 4d5c4faab52e0e73112fb4bfd5b98ac5c5c7f795 | [
"MIT"
] | 5 | 2021-01-12T04:50:26.000Z | 2021-06-04T02:00:03.000Z | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
| 23.428571 | 59 | 0.670732 |
a9c61be2035b4927ebed8f0ce6053f1053a8e921 | 111 | py | Python | ef/config/components/fields/field.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/fields/field.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | ef/config/components/fields/field.py | JacobMSD/ef_python | 13d785c10dd293c60ab90065c518e5afb14e5a02 | [
"MIT"
] | null | null | null | __all__ = ["Field"]
from ef.config.component import ConfigComponent
| 12.333333 | 47 | 0.747748 |
a9c71e07e1d3a707a93e095f068f9489c92a8fe2 | 9,188 | py | Python | reportist/reportist.py | thozza/reportist | e4b699c306bb7487029490ee0a1d040bdccbdd61 | [
"MIT"
] | null | null | null | reportist/reportist.py | thozza/reportist | e4b699c306bb7487029490ee0a1d040bdccbdd61 | [
"MIT"
] | 1 | 2020-04-02T10:35:44.000Z | 2020-04-02T10:35:44.000Z | reportist/reportist.py | thozza/reportist | e4b699c306bb7487029490ee0a1d040bdccbdd61 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020 Tomas Hozza
#
# 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, modif... | 33.410909 | 118 | 0.62636 |
a9c994abd4d5787cc770b409bf0ea0c4399fdfc2 | 8,783 | py | Python | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 3 | 2021-03-29T13:28:31.000Z | 2021-10-12T09:33:14.000Z | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | null | null | null | lib/web.py | magnusstubman/mal00 | e99cad410657bf0452cae02d81d89c211732a789 | [
"MIT"
] | 1 | 2021-04-05T10:19:34.000Z | 2021-04-05T10:19:34.000Z | import os
import ssl
import ipaddress
import hashlib
from ipaddress import *
import asyncio
import pyminizip
import base64
import datetime
from time import gmtime, strftime
from aiohttp import web
import urllib.parse
from shutil import copyfile
import sys
import pycdlib
from io import BytesIO
stage0UrlPrefix = '/doc... | 30.496528 | 151 | 0.648981 |
a9cb1634008d2be2a33a54a90485ca07b6b43f9d | 292 | py | Python | Software_Engineering/ObjectOrientedProgramming/IdeFiles/5_exercise_upload_to_pypi/setup.py | surily/Udacity-Data-Science | 6682b16f3a6159d20f03a6c872b1435b049077ec | [
"CNRI-Python"
] | null | null | null | Software_Engineering/ObjectOrientedProgramming/IdeFiles/5_exercise_upload_to_pypi/setup.py | surily/Udacity-Data-Science | 6682b16f3a6159d20f03a6c872b1435b049077ec | [
"CNRI-Python"
] | null | null | null | Software_Engineering/ObjectOrientedProgramming/IdeFiles/5_exercise_upload_to_pypi/setup.py | surily/Udacity-Data-Science | 6682b16f3a6159d20f03a6c872b1435b049077ec | [
"CNRI-Python"
] | null | null | null | from setuptools import setup
setup(name='gaussian_bionary_dist_prob',
version='0.1',
description='Gaussian and Binomial distributions',
packages=['gaussian_bionary_dist_prob'],
author = 'Stefanie Si',
author_email = 'surily823@gmail.com',
zip_safe=False)
| 29.2 | 56 | 0.69863 |
a9ccc3061512ee99506d26b2441286b37c593a72 | 1,453 | py | Python | 010-binarysearch.py | dasalgadoc/PythonNotes | 154e9c87b26cf4dea85178c15a177127f24d44cd | [
"Apache-2.0"
] | null | null | null | 010-binarysearch.py | dasalgadoc/PythonNotes | 154e9c87b26cf4dea85178c15a177127f24d44cd | [
"Apache-2.0"
] | null | null | null | 010-binarysearch.py | dasalgadoc/PythonNotes | 154e9c87b26cf4dea85178c15a177127f24d44cd | [
"Apache-2.0"
] | null | null | null | import random
def binary_search(data, target, low_index, high_index):
""" Binary Search recursiva """
if (low_index > high_index):
return False
mid_index = (low_index + high_index) // 2
if target == data[mid_index]:
return True
elif target < data[mid_index]:
return binary_... | 27.415094 | 88 | 0.640743 |
a9ce1133b80bbc82f1f5ea1c92769ca0654da912 | 4,578 | py | Python | hpotter/src/udp_thread.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-08-15T09:24:20.000Z | 2021-08-15T09:24:20.000Z | hpotter/src/udp_thread.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 18 | 2021-02-01T21:58:20.000Z | 2021-05-24T17:10:25.000Z | hpotter/src/udp_thread.py | LarsenClose/dr.hpotter | ef6199ab563a92f3e4916277dbde9217126f36a9 | [
"MIT"
] | 1 | 2021-06-19T12:49:54.000Z | 2021-06-19T12:49:54.000Z | ''' Starts a BIND9 bindd and handles UDP traffic on port 53 '''
import socket
import threading
import time
import docker
from geolite2 import geolite2
from dns import query
from src.logger import logger
from src.listen_thread import ListenThread
from src import tables
from src import chain
from src.lazy_init import ... | 37.834711 | 120 | 0.631498 |
a9cf142141a21df7f8feeb139e7e28af3d391803 | 4,241 | py | Python | shared/stow_user/mpv/.config/mpv/scripts/cutitout_shared/cutitout.py | 0xConnorRhodes/dotfiles | 98fb922a3459b763dc9a72b7498e90896fd49244 | [
"Unlicense"
] | 1 | 2021-02-18T03:20:34.000Z | 2021-02-18T03:20:34.000Z | shared/stow_user/mpv/.config/mpv/scripts/cutitout_shared/cutitout.py | connorhodes/dotfiles | 98fb922a3459b763dc9a72b7498e90896fd49244 | [
"Unlicense"
] | null | null | null | shared/stow_user/mpv/.config/mpv/scripts/cutitout_shared/cutitout.py | connorhodes/dotfiles | 98fb922a3459b763dc9a72b7498e90896fd49244 | [
"Unlicense"
] | null | null | null | """
cutitout: automatically cut silence from videos
Copyright (C) 2020 Wolf Clement
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 the Free Software Foundation, either version 3 of the License, or
... | 30.510791 | 81 | 0.60316 |
a9cf1e197f5167ca09dd0382b7fdf65bcb35e231 | 3,292 | py | Python | spectrocrunch/utils/classfactory.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | 3 | 2018-04-16T15:51:36.000Z | 2019-12-16T11:21:05.000Z | spectrocrunch/utils/classfactory.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | spectrocrunch/utils/classfactory.py | woutdenolf/spectrocrunch | fde4b6e0f462f464ce7af6a942b355d3d8f39f77 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from collections import OrderedDict
from . import instance
import future.utils
# https://blog.ionelmc.ro/2015/02/09/understanding-python-metaclasses/
#
# Instance creation:
# metaclass.__call__()
# instance = class.__new__(self,)
# class.__init__(instance,...)
# return in... | 25.51938 | 83 | 0.612394 |
a9d2058c63ec24440058ec6de2088713f377ae69 | 806 | py | Python | tests/OLD/mathops/test_concat.py | KonduitAI/ImportTests | 1b05adac04d1b04fe4492d3fd35f3c4573774ceb | [
"Apache-2.0"
] | 6 | 2019-11-24T01:48:22.000Z | 2021-09-26T12:49:00.000Z | tests/OLD/mathops/test_concat.py | KonduitAI/ImportTests | 1b05adac04d1b04fe4492d3fd35f3c4573774ceb | [
"Apache-2.0"
] | 19 | 2019-11-19T23:12:53.000Z | 2022-02-10T00:27:44.000Z | tests/OLD/mathops/test_concat.py | KonduitAI/ImportTests | 1b05adac04d1b04fe4492d3fd35f3c4573774ceb | [
"Apache-2.0"
] | 1 | 2019-11-19T08:27:51.000Z | 2019-11-19T08:27:51.000Z | import tensorflow as tf
from tfoptests.persistor import TensorFlowPersistor
from tfoptests.test_graph import TestGraph
if __name__ == '__main__':
test_concat_one()
| 26 | 107 | 0.67866 |
a9d4c26f72b51c322efc6c3dd05acfdcd8a0f691 | 3,212 | py | Python | data/process_data.py | Leadlegend/Commonsense-based-Question-Generation | 867adcd7dc37d181baf30bd6007189f02cfc39cb | [
"MIT"
] | null | null | null | data/process_data.py | Leadlegend/Commonsense-based-Question-Generation | 867adcd7dc37d181baf30bd6007189f02cfc39cb | [
"MIT"
] | 1 | 2021-12-09T13:54:59.000Z | 2021-12-09T13:54:59.000Z | data/process_data.py | Leadlegend/Commonsense-based-Question-Generation | 867adcd7dc37d181baf30bd6007189f02cfc39cb | [
"MIT"
] | null | null | null | import sys
import json
sys.path.insert(0, '../')
import config
from data_utils import (make_conll_format, make_embedding, make_vocab,
make_vocab_from_squad, process_file, make_graph_vector)
if __name__ == "__main__":
# make_sent_dataset()
make_para_dataset()
| 37.348837 | 91 | 0.61924 |
a9d92d5216675e852de8fa522ac3edb1b109cbcb | 5,290 | py | Python | meerschaum/Pipe/_data.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 32 | 2020-09-14T16:29:19.000Z | 2022-03-08T00:51:28.000Z | meerschaum/Pipe/_data.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 3 | 2020-10-04T20:03:30.000Z | 2022-02-02T21:04:46.000Z | meerschaum/Pipe/_data.py | bmeares/Meerschaum | 37bd7a9923efce53e91c6a1d9c31f9533b9b4463 | [
"Apache-2.0"
] | 5 | 2021-04-22T23:49:21.000Z | 2022-02-02T12:59:08.000Z | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
"""
Functions for getting Pipe data
"""
from __future__ import annotations
from meerschaum.utils.typing import Optional, Dict, Any
def get_data(
self,
begin : Optional[datetime.datetime] = None,
end : Optional[datetime.datetime] ... | 30.755814 | 92 | 0.583365 |
a9db0e78485113b361e8acdaa0a3bbfc62793c0c | 6,832 | py | Python | IoT_master/tools/person_detect.py | Janek3d/teleserver | cf6027cd88bca39d2d208df956983d834ebf35a9 | [
"MIT"
] | null | null | null | IoT_master/tools/person_detect.py | Janek3d/teleserver | cf6027cd88bca39d2d208df956983d834ebf35a9 | [
"MIT"
] | 1 | 2020-01-12T19:06:07.000Z | 2020-01-12T19:06:07.000Z | IoT_master/tools/person_detect.py | Janek3d/teleserver | cf6027cd88bca39d2d208df956983d834ebf35a9 | [
"MIT"
] | null | null | null | import argparse
from sys import platform
from tools.yolov3.models import * # set ONNX_EXPORT in models.py
from tools.yolov3.utils.datasets import *
from tools.yolov3.utils.utils import *
if __name__ == '__main__':
det = detection()
with torch.no_grad():
det.detect()
| 40.426036 | 120 | 0.47058 |
a9dc3563ddac75de349c4809af9b6d68dd5964ad | 106 | py | Python | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | excript/lista3/q5.py | victorers1/anotacoes_curso_python | c4ef56bcfc7e3baa3944fc2962e8217c6d720b0e | [
"MIT"
] | null | null | null | soma = 0
for i in range(0,101):
if(i%2==0):
soma+=i
print("A soma de todos os pares :", soma) | 21.2 | 42 | 0.556604 |
a9dc376c58c6fa2a985b880d389cbf07e28f5676 | 1,227 | py | Python | plugins/myplugin/plugins/rtseconddemo.py | rjdp/Easynginedemoplugin | 9b9e5caa29630fae3679fb86018cdaa477f1e8c9 | [
"MIT"
] | 1 | 2016-08-01T18:52:02.000Z | 2016-08-01T18:52:02.000Z | plugins/myplugin/plugins/rtseconddemo.py | rjdp/Easynginedemoplugin | 9b9e5caa29630fae3679fb86018cdaa477f1e8c9 | [
"MIT"
] | null | null | null | plugins/myplugin/plugins/rtseconddemo.py | rjdp/Easynginedemoplugin | 9b9e5caa29630fae3679fb86018cdaa477f1e8c9 | [
"MIT"
] | null | null | null | """
Rtseconddemo plugin for Easyengine.
Created by: rajdeep <rajdeep.sharma@rtcamp.com>
License: MIT
URL: rtcamp.com
"""
from cement.core import handler
from cement.core.controller import CementBaseController, expose
| 31.461538 | 84 | 0.713936 |
a9dcd8679d39e12f2b77d47620e5520ef5ed586c | 1,994 | py | Python | src/cells.py | lodo1995/LiMNet | ec8b829f6acadd20d6d7bc811c416e1be7d7ff53 | [
"Apache-2.0"
] | 3 | 2021-05-17T13:35:16.000Z | 2022-02-14T14:07:07.000Z | src/cells.py | lodo1995/LiMNet | ec8b829f6acadd20d6d7bc811c416e1be7d7ff53 | [
"Apache-2.0"
] | null | null | null | src/cells.py | lodo1995/LiMNet | ec8b829f6acadd20d6d7bc811c416e1be7d7ff53 | [
"Apache-2.0"
] | null | null | null | import torch
from typing import Tuple | 33.79661 | 87 | 0.584754 |
a9dce0104cd926776d548e577e16cfc6e367cbc7 | 21,901 | py | Python | core/views.py | uktrade/exceptional-review-procedure | 7143cb4a6e37de8980699ddab09540efc6666904 | [
"MIT"
] | 1 | 2019-10-11T12:40:27.000Z | 2019-10-11T12:40:27.000Z | core/views.py | uktrade/exceptional-review-procedure | 7143cb4a6e37de8980699ddab09540efc6666904 | [
"MIT"
] | 28 | 2019-09-25T16:42:53.000Z | 2019-11-19T21:16:42.000Z | core/views.py | uktrade/exceptional-review-procedure | 7143cb4a6e37de8980699ddab09540efc6666904 | [
"MIT"
] | 1 | 2019-10-10T13:43:42.000Z | 2019-10-10T13:43:42.000Z | import datetime
from urllib.parse import quote, unquote
from directory_ch_client.client import ch_search_api_client
from directory_forms_api_client import actions
from directory_forms_api_client.helpers import FormSessionMixin, Sender
from formtools.wizard.views import NamedUrlSessionWizardView
from formtools.wizard.f... | 48.777283 | 112 | 0.704899 |
a9de23120b1f70e9fb79e0ee6eae47eca55547c5 | 2,054 | py | Python | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 2 | 2020-04-30T08:17:45.000Z | 2020-05-23T08:46:54.000Z | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | src/RIOT/tests/od/tests/02-run.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 1 | 2020-02-21T09:21:45.000Z | 2020-02-21T09:21:45.000Z | #!/usr/bin/env python3
# Copyright (C) 2017 Hamburg University of Applied Sciences
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
import sys
from testrunner import run
if __name__ == "__main__... | 46.681818 | 116 | 0.638267 |
a9df5214be84ff611b6cdee71586384f662371b6 | 379 | py | Python | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | pytoggl/api/projects_api.py | cloew/pytoggl | ec559e532559bfeaeb0de7f18831d30ed84f5ff1 | [
"MIT"
] | null | null | null | from .actions import AllFromWorkspaces, Get, WithName
from .api_for import api_for
from .model_api import ModelApi
from ..requests import RequestApis
from ..model import Project
| 31.583333 | 54 | 0.733509 |
a9df59d69716831dbb693685dc96352534e43e1d | 5,958 | py | Python | app/routers/book_transaction.py | KamalDGRT/libms | 61dae1913c409aff35c295c65d8fc7667ff05bb9 | [
"MIT"
] | 1 | 2022-02-26T04:20:07.000Z | 2022-02-26T04:20:07.000Z | app/routers/book_transaction.py | KamalDGRT/libms | 61dae1913c409aff35c295c65d8fc7667ff05bb9 | [
"MIT"
] | null | null | null | app/routers/book_transaction.py | KamalDGRT/libms | 61dae1913c409aff35c295c65d8fc7667ff05bb9 | [
"MIT"
] | null | null | null | from datetime import datetime
from fastapi import status, HTTPException, Response, Depends, APIRouter
from typing import List
from sqlalchemy.orm import Session
from ..database import get_db
from .. import models, schemas, oauth2
# Using hyphen by following this answer
# https://stackoverflow.com/a/18449772
router = ... | 27.841121 | 106 | 0.678416 |
a9e1cd974191f082d23c243943f48186cd1b8939 | 526 | py | Python | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | paddle/za/test/test2.py | hth945/pytest | 83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc | [
"Apache-2.0"
] | null | null | null | #
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import cv2
import numpy as np
from PIL import Image
import paddle
import paddle.fluid as fluid
from paddle.fluid.dygraph.nn import Linear
#
img1 = cv2.imread('./work/example_0.png')
example = mpimg.imread('./work/example_0.png')
#
plt.imshow(example... | 21.04 | 52 | 0.745247 |
a9e29337adc9d3ccffaa9a42248f46b7b76d1765 | 480 | py | Python | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | 4 | 2016-03-21T12:20:52.000Z | 2017-02-02T09:08:19.000Z | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | null | null | null | codev/core/log.py | baseclue/codev | 7965ffc036ea217e05ca1f566e7b1917c0a67887 | [
"Apache-2.0"
] | null | null | null | import logging
LOGLEVELS = {
'info': logging.INFO,
'debug': logging.DEBUG,
}
actual_loglevel = 'info'
error_filter = LoglevelFilter(logging.ERROR)
info_filter = LoglevelFilter(logging.INFO)
debug_filter = LoglevelFilter(logging.DEBUG)
| 20 | 44 | 0.685417 |
a9e2d4d4133cf7c6e57e29e82707a4430f60649a | 253 | py | Python | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | solution/1978(소수 찾기).py | OMEGA-Y/Baekjoon-sol | 9eaa441e482a0967fb60a9ea1d1373be00272c34 | [
"Apache-2.0"
] | null | null | null | input()
num = set(map(int,input().split()))
prime = set([i for i in range(3,max(num)+1,2)])
for i in range(3,max(num)+1,2):
if i in prime:
prime -= set([i for i in range(i*2,max(num)+1,i)])
prime.add(2)
print(len(num.intersection(prime))) | 23 | 58 | 0.604743 |
a9e477700904469ded2e0e1ba301246e1d5c635e | 14,623 | py | Python | src/modules/thesne.py | HanKruiger/tsnetwork | 181f83df05035b41663d57a47746266b510e228c | [
"MIT"
] | 11 | 2016-11-02T11:30:52.000Z | 2020-07-10T04:28:08.000Z | src/modules/thesne.py | HanKruiger/tsnetwork | 181f83df05035b41663d57a47746266b510e228c | [
"MIT"
] | 1 | 2019-03-08T13:30:21.000Z | 2019-03-10T16:10:36.000Z | src/modules/thesne.py | HanKruiger/tsnetwork | 181f83df05035b41663d57a47746266b510e228c | [
"MIT"
] | 2 | 2018-01-18T10:47:58.000Z | 2018-03-22T16:57:48.000Z | # Copyright (c) 2016 Paulo Eduardo Rauber
# 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,... | 34.165888 | 187 | 0.637831 |
a9e4df63c79ca1a0dbf70816e0ee8ff99771a552 | 3,119 | py | Python | overlays/semantic_segmentation_overlay.py | mitmul/tfrecord-viewer | ef56a01a2a374c3fa5a3c8ed5c3f1b23663d2509 | [
"MIT"
] | null | null | null | overlays/semantic_segmentation_overlay.py | mitmul/tfrecord-viewer | ef56a01a2a374c3fa5a3c8ed5c3f1b23663d2509 | [
"MIT"
] | null | null | null | overlays/semantic_segmentation_overlay.py | mitmul/tfrecord-viewer | ef56a01a2a374c3fa5a3c8ed5c3f1b23663d2509 | [
"MIT"
] | null | null | null | import io
from PIL import Image, ImageDraw, ImageFont
import tensorflow as tf
import numpy as np
from matplotlib import cm
from matplotlib.colors import ListedColormap
import pdb
default_color = 'blue'
highlight_color = 'red'
| 30.281553 | 104 | 0.696056 |
a9e6ea68f39798cd9ba7fb6862e812607da19124 | 2,464 | py | Python | pandas/io/tests/sas/test_sas7bdat.py | mcwitt/pandas | f6d0d0829b0668a6b8c526daa388a7ccf8835d04 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | pandas/io/tests/sas/test_sas7bdat.py | mcwitt/pandas | f6d0d0829b0668a6b8c526daa388a7ccf8835d04 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | pandas/io/tests/sas/test_sas7bdat.py | mcwitt/pandas | f6d0d0829b0668a6b8c526daa388a7ccf8835d04 | [
"PSF-2.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause"
] | null | null | null | import pandas as pd
from pandas.compat import PY2
import pandas.util.testing as tm
import os
import io
import numpy as np
| 37.907692 | 74 | 0.481737 |
a9e71322dbc1ba39d0e17df5e0011ad4c8893392 | 3,884 | py | Python | PONG_GAME.py | espr3so/Python | 20d80a982aa8134345c850ba609f19407508d59a | [
"MIT"
] | null | null | null | PONG_GAME.py | espr3so/Python | 20d80a982aa8134345c850ba609f19407508d59a | [
"MIT"
] | null | null | null | PONG_GAME.py | espr3so/Python | 20d80a982aa8134345c850ba609f19407508d59a | [
"MIT"
] | null | null | null | # Pong Game in Codeskulptor
import simpleguitk as simplegui
import random
WIDTH = 600
HEIGHT = 400
BALL_RADIUS = 20
PAD_WIDTH = 8
PAD_HEIGHT = 80
HALF_PAD_WIDTH = PAD_WIDTH / 2
HALF_PAD_HEIGHT = PAD_HEIGHT / 2
LEFT = False
RIGHT = True
score1 = 0
score2 = 0
paddle1_pos = 0
paddle2_pos = 0
paddle1_vel = 0
paddl... | 32.915254 | 175 | 0.641864 |
a9e74ec5e69f1031fb887dc5bb8b268491f4ea99 | 6,672 | py | Python | vmagent/learners/sac_learner.py | Nicola115/VMAgent | 99522aa67537e4db4a97169de4cc53a5b639839e | [
"MIT"
] | 47 | 2021-12-11T13:49:42.000Z | 2022-03-29T02:15:23.000Z | vmagent/learners/sac_learner.py | Nicola115/VMAgent | 99522aa67537e4db4a97169de4cc53a5b639839e | [
"MIT"
] | 1 | 2021-12-17T08:32:56.000Z | 2021-12-17T08:32:56.000Z | vmagent/learners/sac_learner.py | Nicola115/VMAgent | 99522aa67537e4db4a97169de4cc53a5b639839e | [
"MIT"
] | 4 | 2021-12-21T07:57:54.000Z | 2022-01-20T03:23:17.000Z | import copy
import torch as th
from torch.optim import Adam
import torch.nn.functional as F
from torch.nn.utils import clip_grad_norm_
| 40.436364 | 127 | 0.605066 |
a9e7d6b8fb1d3d9ae302ab954c75c562a02205df | 1,703 | py | Python | scrape.py | riceissa/public-welfare-foundation | 0a0610993552690a76090f96a33e95fb6c0dd8a8 | [
"CC0-1.0"
] | null | null | null | scrape.py | riceissa/public-welfare-foundation | 0a0610993552690a76090f96a33e95fb6c0dd8a8 | [
"CC0-1.0"
] | null | null | null | scrape.py | riceissa/public-welfare-foundation | 0a0610993552690a76090f96a33e95fb6c0dd8a8 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
import requests
import sys
import csv
from bs4 import BeautifulSoup
if __name__ == "__main__":
main()
| 39.604651 | 92 | 0.524369 |
a9e7e1d03fc8718646c94f457dcbce08356fc254 | 1,725 | py | Python | executor/database/token_manage.py | Ganyuhao/executor | 8f47e0bdccfe476373487e00be2b6e95885045d9 | [
"MIT"
] | null | null | null | executor/database/token_manage.py | Ganyuhao/executor | 8f47e0bdccfe476373487e00be2b6e95885045d9 | [
"MIT"
] | null | null | null | executor/database/token_manage.py | Ganyuhao/executor | 8f47e0bdccfe476373487e00be2b6e95885045d9 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
# coding: utf-8
"""token"""
import hashlib
import os
import time
import base64
| 28.75 | 69 | 0.576232 |
a9ebdaac7c9edcbc0581cbaab45f4e0459e8dc59 | 2,237 | py | Python | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | sandbox/system_id.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | """
Demo of system identification on an inverted pendulum, using one step dynamics.
@author: David Fridovich-Keil
@email: dfk@eecs.berkeley.edu
"""
import gym
import tensorflow as tf
from mbrl.dynamics.dynamics import Dynamics
import numpy as np
import pickle
# Make a gym environment.
env = gym.make("Pendulum-v0")
ST... | 32.897059 | 89 | 0.614215 |
a9ebdc47f3729c0ae494fa100bb47d849868c024 | 71 | py | Python | test/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | test/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | test/__init__.py | pieter-hendriks/STL-monitoring | 114b73b1f4b0687b11b8842b3c4a1c8af7b0d9df | [
"MIT"
] | null | null | null | """ STL Tool tests module """
from . import fullSystemTests, unitTests
| 23.666667 | 40 | 0.732394 |
a9ec7ea8bce83b784c3223f6f101cfba49ce2a4d | 6,452 | py | Python | pre_cnmfe.py | lyprince/chendoscope-minipipe | 382a78865b85885c3657b88f27c340db1b59ebcc | [
"MIT"
] | null | null | null | pre_cnmfe.py | lyprince/chendoscope-minipipe | 382a78865b85885c3657b88f27c340db1b59ebcc | [
"MIT"
] | 2 | 2018-01-25T18:47:06.000Z | 2018-07-27T20:59:17.000Z | pre_cnmfe.py | lyprince/chendoscope-minipipe | 382a78865b85885c3657b88f27c340db1b59ebcc | [
"MIT"
] | 1 | 2018-06-08T14:32:30.000Z | 2018-06-08T14:32:30.000Z | '''
Authors: Andrew Mocle and Lina Tran
Date: July 10, 2017
Pre-cnmf-e processing of videos in chunks:
- Downsampling
- Motion Correction
'''
from os import path, system
import pims
import av
import numpy as np
import math
from tqdm import tqdm
from skimage import img_as_uint
from motion import align_video
import ski... | 29.461187 | 212 | 0.620583 |
a9ef792277870cfcaf48a94f7940475b75c67fba | 2,572 | py | Python | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | UpdatedImageProcessing/UpdatedImageProcessing/integrated_image_processing.py | liyu711/SUAS | 2f6592fc2ab316475eeabe2f4828e5ba5c1a4b0b | [
"MIT"
] | null | null | null | import os
import time
import json
from PIL import Image
from .TargetDetection import *
from .ShapeDetection import *
from .Classifiers import *
| 46.763636 | 153 | 0.681182 |
a9efe50ebc395c79d136c9ed223bd0fa73445f27 | 189 | py | Python | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/poll/apps.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | """
App configs for poll app
"""
from django.apps import AppConfig
| 17.181818 | 33 | 0.687831 |
a9f04252a302db8ac6cb5f5e61ef42ac88be493e | 645 | py | Python | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 26 | 2018-12-03T23:02:56.000Z | 2020-08-07T06:33:21.000Z | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | null | null | null | pytoolkit/datasets/voc_test.py | ak110/pytoolk | 8eef7e0add7bbc0ced1f1f1d82ed245388cc6684 | [
"MIT"
] | 5 | 2019-08-10T11:10:59.000Z | 2020-11-18T02:39:37.000Z | import numpy as np
import pytest
import pytoolkit as tk
| 29.318182 | 77 | 0.609302 |
a9f2e8016b9effe0c407a16fb1cbbb2e18a3fdc5 | 1,180 | py | Python | src/replay_buffer.py | LolloneS/DDPG-PyTorch | d6bd0ecbdf1f0be88481aad7246a1940c9f67086 | [
"MIT"
] | 2 | 2020-02-29T10:05:51.000Z | 2021-03-18T11:12:41.000Z | src/replay_buffer.py | LolloneS/DDPG-PyTorch | d6bd0ecbdf1f0be88481aad7246a1940c9f67086 | [
"MIT"
] | 4 | 2020-03-03T19:04:11.000Z | 2022-03-12T00:17:38.000Z | src/replay_buffer.py | LolloneS/DDPG-PyTorch | d6bd0ecbdf1f0be88481aad7246a1940c9f67086 | [
"MIT"
] | null | null | null | import random
from typing import List
from src.transition import Transition
random.seed(42)
| 29.5 | 69 | 0.581356 |
a9f32d609420c97334d1b3d44e58b5f875aaeafb | 68 | py | Python | gunicorn.conf.py | nadjascha/FemaleAIAppInnovationEcosystem | d4c02efc2c4679d1978f2f8b6f6bdfd4ff406db3 | [
"CC-BY-4.0"
] | 13 | 2022-02-04T11:42:20.000Z | 2022-03-25T08:24:43.000Z | gunicorn.conf.py | nadjascha/FemaleAIAppInnovationEcosystem | d4c02efc2c4679d1978f2f8b6f6bdfd4ff406db3 | [
"CC-BY-4.0"
] | 33 | 2021-12-28T14:11:35.000Z | 2022-03-25T10:22:07.000Z | gunicorn.conf.py | nadjascha/FemaleAIAppInnovationEcosystem | d4c02efc2c4679d1978f2f8b6f6bdfd4ff406db3 | [
"CC-BY-4.0"
] | 140 | 2021-09-02T12:39:04.000Z | 2022-03-27T18:21:31.000Z | wsgi_app = "app:app"
worker_class = "uvicorn.workers.UvicornWorker"
| 22.666667 | 46 | 0.779412 |
a9f370ab6754532668be152e0a456bc5340b4208 | 824 | py | Python | tests/test_adjacency.py | jpmaterial/trimesh | 4f493ff0a96a14e62eb7c748964fd8f4e44064c5 | [
"MIT"
] | 1,882 | 2015-04-21T06:51:06.000Z | 2022-03-31T03:16:12.000Z | tests/test_adjacency.py | jpmaterial/trimesh | 4f493ff0a96a14e62eb7c748964fd8f4e44064c5 | [
"MIT"
] | 1,400 | 2016-01-22T14:05:04.000Z | 2022-03-31T19:13:55.000Z | tests/test_adjacency.py | jpmaterial/trimesh | 4f493ff0a96a14e62eb7c748964fd8f4e44064c5 | [
"MIT"
] | 465 | 2015-05-29T21:27:38.000Z | 2022-03-31T17:45:46.000Z | try:
from . import generic as g
except BaseException:
import generic as g
if __name__ == '__main__':
g.trimesh.util.attach_to_log()
g.unittest.main()
| 26.580645 | 66 | 0.578883 |
a9f3f4d963793624fa37eb908b72250431fcb5b9 | 542 | py | Python | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | app/models/registration.py | bmstu-iu8-g1-2019-project/lingvo-subtitles | 23376822725cf5c076783fa03c4d31ae1de14687 | [
"MIT"
] | null | null | null | from collections import Counter
from werkzeug.security import generate_password_hash
from app import db
| 25.809524 | 60 | 0.664207 |
a9f3fe1ac8f57111cdd1a6ce63bbc0a7df1de422 | 520 | py | Python | cgi/io/logger.py | wedddy0707/categorial_grammar_induction_of_emergent_language | a84a5a7d5e69af0ad2d90fa238a531880f10f0d1 | [
"MIT"
] | null | null | null | cgi/io/logger.py | wedddy0707/categorial_grammar_induction_of_emergent_language | a84a5a7d5e69af0ad2d90fa238a531880f10f0d1 | [
"MIT"
] | null | null | null | cgi/io/logger.py | wedddy0707/categorial_grammar_induction_of_emergent_language | a84a5a7d5e69af0ad2d90fa238a531880f10f0d1 | [
"MIT"
] | null | null | null | from logging import Logger, getLogger, StreamHandler, Formatter, DEBUG
logger_count = -1
| 21.666667 | 70 | 0.680769 |
a9f4371844bee29fce2a65e6f8cb1b5c0de26664 | 5,203 | py | Python | main.py | twfce/hetzner-dns-ip-updater | f2e269427b55d87f59d0c57b581c0540e6c9942a | [
"MIT"
] | null | null | null | main.py | twfce/hetzner-dns-ip-updater | f2e269427b55d87f59d0c57b581c0540e6c9942a | [
"MIT"
] | null | null | null | main.py | twfce/hetzner-dns-ip-updater | f2e269427b55d87f59d0c57b581c0540e6c9942a | [
"MIT"
] | null | null | null | #! /usr/bin/python3
import os
import json
from datetime import datetime
from colored import fg, attr
import paho.mqtt.client as mqtt
from hdns import hdns
if __name__ == "__main__":
try:
hdnsToken = os.environ["HDNS_TOKEN"]
except KeyError:
print ("{color}{timestamp} | [X] You need to specify... | 53.639175 | 209 | 0.644436 |
a9f7221a8338ae3699c109556a764cf8ba3f2b47 | 2,743 | py | Python | mmdet/datasets/coco_caption.py | wusize/mmdetection | c167fb1af78d910d9a8304ad2a2e6ddd32c70281 | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/coco_caption.py | wusize/mmdetection | c167fb1af78d910d9a8304ad2a2e6ddd32c70281 | [
"Apache-2.0"
] | null | null | null | mmdet/datasets/coco_caption.py | wusize/mmdetection | c167fb1af78d910d9a8304ad2a2e6ddd32c70281 | [
"Apache-2.0"
] | null | null | null | from .api_wrappers import COCO
from .builder import DATASETS
from .custom import CustomDataset
| 32.270588 | 79 | 0.584397 |
a9f7513ec36c12ae28095a7beeb36466fa675c92 | 2,896 | py | Python | flow/flows/abstract_flow_on_demand.py | tomoya-sforzando/etude-Prefect | 8f54e78a53051bc7dd176f87dd00bc04d97a9c08 | [
"MIT"
] | null | null | null | flow/flows/abstract_flow_on_demand.py | tomoya-sforzando/etude-Prefect | 8f54e78a53051bc7dd176f87dd00bc04d97a9c08 | [
"MIT"
] | null | null | null | flow/flows/abstract_flow_on_demand.py | tomoya-sforzando/etude-Prefect | 8f54e78a53051bc7dd176f87dd00bc04d97a9c08 | [
"MIT"
] | null | null | null | import os
from abc import ABC, abstractmethod
from typing import List
from prefect import Client, Flow, Task
from prefect.executors import LocalDaskExecutor
from prefect.run_configs import UniversalRun
from prefect.storage import Local
from flows.abstract_settings import AbstractDemands, AbstractTasks
PROJECT_NAME =... | 37.128205 | 90 | 0.655041 |
a9f79a8550cbe2ffbf9de0e46704c3f19c02a79f | 373 | py | Python | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | 2 | 2015-09-17T01:27:02.000Z | 2020-11-26T12:07:13.000Z | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | examples/courseware/shapes.py | LettError/drawbot | dce9af449d429af3f10827654d8b9d3bb8bb8efe | [
"BSD-2-Clause"
] | null | null | null | # draw a rectangle
# rect(x, y, width, height)
rect(20, 50, 100, 200)
rect(130, 50, 100, 200)
oval(240, 50, 100, 200)
oval(20, 250, 100, 100)
oval(130, 250, 100, 100)
rect(240, 250, 100, 100)
for x in range(20, 300, 50):
rect(x, 370, 40, 40)
for x in range(20, 300, 50):
if random() > 0.5:
rect(x,... | 16.217391 | 28 | 0.557641 |
a9f8ead52dc49edc8a79a15134f2fd43537202c9 | 4,443 | py | Python | PyObjCTest/test_nsdecimalnumber.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsdecimalnumber.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsdecimalnumber.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import Foundation
from PyObjCTools.TestSupport import TestCase
import objc
| 39.669643 | 174 | 0.712357 |
a9fa3f43d808fe020974e0740abe57bd486d00a4 | 588 | py | Python | clastic/tests/test_obj_browser.py | mahmoud/clastic | 4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7 | [
"BSD-3-Clause"
] | 140 | 2015-02-11T19:03:30.000Z | 2022-03-12T23:30:46.000Z | clastic/tests/test_obj_browser.py | mahmoud/clastic | 4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7 | [
"BSD-3-Clause"
] | 21 | 2015-09-16T04:33:09.000Z | 2021-11-08T04:46:32.000Z | clastic/tests/test_obj_browser.py | mahmoud/clastic | 4dd03cc25247dcedbb3e0cd1089bef8eefd32bf7 | [
"BSD-3-Clause"
] | 22 | 2015-09-15T19:30:06.000Z | 2021-11-05T17:22:20.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
import pytest
from clastic.contrib.obj_browser import create_app
_IS_PYPY = '__pypy__' in sys.builtin_module_names
| 22.615385 | 75 | 0.710884 |
a9fcedbd80c04f61f7c1d1175fcaadb22c7725cb | 2,837 | py | Python | bam_readlength_profile_by_bed.py | The-Mosher-Lab/grover_sirens_paper | 196b2d5cd97fa44602a205e1842e2479d2877c92 | [
"MIT"
] | 2 | 2020-09-07T00:53:42.000Z | 2021-05-07T05:00:20.000Z | bam_readlength_profile_by_bed.py | The-Mosher-Lab/grover_et_al_sirens_2020 | 196b2d5cd97fa44602a205e1842e2479d2877c92 | [
"MIT"
] | null | null | null | bam_readlength_profile_by_bed.py | The-Mosher-Lab/grover_et_al_sirens_2020 | 196b2d5cd97fa44602a205e1842e2479d2877c92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Author: Jeffrey Grover
# Purpose: Profile the read lengths which map to regions in a bed file
# Created: 2019-08-14
# Depends: pysam, samtools, python >= 3.6
import pysam
import gzip
from os.path import exists
from argparse import ArgumentParser
from sys import exit
# Command line parser... | 32.238636 | 88 | 0.582658 |
a9fd689fd52ac24e48f9ab6388998555055c5585 | 370 | py | Python | exercicios2/ex050.py | LuanGermano/Mundo-2-Curso-em-Video-Python | 8e860beb1d3b31f1c5ac369767d32b353935b8b0 | [
"MIT"
] | null | null | null | exercicios2/ex050.py | LuanGermano/Mundo-2-Curso-em-Video-Python | 8e860beb1d3b31f1c5ac369767d32b353935b8b0 | [
"MIT"
] | null | null | null | exercicios2/ex050.py | LuanGermano/Mundo-2-Curso-em-Video-Python | 8e860beb1d3b31f1c5ac369767d32b353935b8b0 | [
"MIT"
] | null | null | null | # Desenvolva um programa que leia seis numeros inteiros e mostre a soma apenas daqueles que forem PARES.
# Se o valor digitado for IMPAR, desconsidere-o
soma = 0
cont = 0
for n in range(1, 7):
n = int(input('Digite um Valor inteiro: '))
if n % 2 == 0:
soma = soma + n
cont = cont + 1
print(f'A so... | 33.636364 | 104 | 0.651351 |
a9fe93c4ebede7deed3f5ff9d5cc3d2748aa7ffe | 23,839 | py | Python | tests/rororo/test_openapi.py | fajfer/rororo | f90b451bdf117c4e0c1147fe49e85fa2b9af87ff | [
"BSD-3-Clause"
] | 105 | 2015-05-12T09:23:15.000Z | 2022-03-24T10:55:47.000Z | tests/rororo/test_openapi.py | fajfer/rororo | f90b451bdf117c4e0c1147fe49e85fa2b9af87ff | [
"BSD-3-Clause"
] | 209 | 2015-05-11T08:25:13.000Z | 2022-03-01T05:07:33.000Z | tests/rororo/test_openapi.py | fajfer/rororo | f90b451bdf117c4e0c1147fe49e85fa2b9af87ff | [
"BSD-3-Clause"
] | 13 | 2016-02-27T21:11:39.000Z | 2022-01-19T14:31:22.000Z | import datetime
import io
import json
import zipfile
from pathlib import Path
import pyrsistent
import pytest
import yaml
from aiohttp import web
from openapi_core.shortcuts import create_spec
from yarl import URL
from rororo import (
BaseSettings,
get_openapi_context,
get_openapi_schema,
get_openapi_... | 30.1378 | 79 | 0.634926 |
e702da51c55eafae57b2b359c2184ae1c870e5ff | 68 | py | Python | python/sandbox/__init__.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | 6 | 2020-04-19T11:26:18.000Z | 2021-06-21T18:42:51.000Z | python/sandbox/__init__.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | 31 | 2020-04-21T17:24:39.000Z | 2020-08-27T15:59:12.000Z | python/sandbox/__init__.py | geometer/sandbox | 373ec96e69df76744a19b51f7caa865cbc6b58cd | [
"Apache-2.0"
] | null | null | null | from .scene import Scene
from .placement import iterative_placement
| 22.666667 | 42 | 0.852941 |
e703985d6b1aaf246800ca164295308f4ea4f080 | 8,821 | py | Python | mcsim/monte_carlo.py | msse-2020-bootcamp/team1-project | f7b83c067734e03e80b8a1feec18679fdac8b857 | [
"BSD-3-Clause"
] | null | null | null | mcsim/monte_carlo.py | msse-2020-bootcamp/team1-project | f7b83c067734e03e80b8a1feec18679fdac8b857 | [
"BSD-3-Clause"
] | 14 | 2020-08-11T20:47:51.000Z | 2020-08-19T20:59:14.000Z | mcsim/monte_carlo.py | msse-2020-bootcamp/team1-project | f7b83c067734e03e80b8a1feec18679fdac8b857 | [
"BSD-3-Clause"
] | null | null | null | """
Functions for running Monte Carlo Simulation
"""
import math
import os
import random
import matplotlib.pyplot as plt
def calculate_LJ(r_ij):
"""
The LJ interaction energy between two particles.
Computes the pairwise Lennard jones interaction energy based on the separation distance in reduced un... | 29.403333 | 117 | 0.620451 |
e7049881e61b190ec535a5a8eb9c0a17246cf92b | 976 | py | Python | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 17 | 2015-10-14T09:44:38.000Z | 2021-02-19T16:45:32.000Z | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | null | null | null | training/train_word2vec.py | jodaiber/semantic_compound_splitting | 6b6b8aea9c320ef3b26dca4d8345fb9a08950a42 | [
"Apache-2.0"
] | 8 | 2015-09-07T16:29:37.000Z | 2020-08-08T05:43:12.000Z | import gensim
import sys
import glob
import codecs
from nltk.tokenize import RegexpTokenizer
import glob
import sys
print "Starting W2V training..."
files = glob.glob(sys.argv[1])
outfile_name = sys.argv[2]
dataset = CorpusReader(files)
model = gensim.models.Word2Vec(dataset, size=500, window=5, min_count=3, negat... | 21.217391 | 96 | 0.619877 |
e7061d8b63919b39dccb98d1bd784faf7195d2c9 | 3,797 | py | Python | gchaos/gae/datastore/latency.py | RealKinetic/echoes | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | null | null | null | gchaos/gae/datastore/latency.py | RealKinetic/echoes | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | 1 | 2017-01-16T01:15:37.000Z | 2017-01-16T01:15:37.000Z | gchaos/gae/datastore/latency.py | RealKinetic/gchaos | e0f77ae003d3982d84c2953efeb3486ba9ab6e6d | [
"MIT"
] | null | null | null | # MIT License
# Copyright (c) 2017 Real Kinetic
# 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, p... | 28.984733 | 80 | 0.703713 |
e70704acbe364688aa6ccbbc53d152a20aab474a | 1,794 | py | Python | test/unit/mongo_class/server_disconnect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_class/server_disconnect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | test/unit/mongo_class/server_disconnect.py | deepcoder42/mongo-lib | fa2b65587ab88ee90c9d85f12dd642c6295e0d94 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: server_disconnect.py
Description: Unit testing of Server.disconnect in mongo_class.py.
Usage:
test/unit/mongo_class/server_disconnect.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.version_info < ... | 19.290323 | 74 | 0.615942 |
e70a05c0d2d574b75d4d1e02c12423cafe0f94e7 | 6,706 | py | Python | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 3 | 2021-07-15T22:58:00.000Z | 2022-02-18T17:42:00.000Z | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | 1 | 2021-10-01T17:52:49.000Z | 2021-10-01T17:52:49.000Z | projeto_contratacoes/ferramentas/validaDado.py | JhonatasMenezes/Projetos_Python | f1989a8cb1c428fdae98da770f8db149b8b8587d | [
"MIT"
] | null | null | null | # Importando uma funo que muda cor de textos no terminal, criada em outro arquivo
from ferramentas.create_db import Vagas
from .utilidades import textoCor
"""
Mdulo de funes para validao de alguns dados como Nomes, CPFs e Datas de nascimento.
NOTA: Todas as funes so parecidas e utilizam o mesmo princpio.
Irei coment... | 37.049724 | 117 | 0.547122 |
e70bd9ff19d7c1e7715ff79da9a08db0f6d91132 | 1,931 | py | Python | possible-new-sites/web.py | purrcat259/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | 1 | 2019-10-17T08:26:19.000Z | 2019-10-17T08:26:19.000Z | possible-new-sites/web.py | simonamdev/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | null | null | null | possible-new-sites/web.py | simonamdev/thargoid-search-tools | 2520d295116874db9ea5c47233136b4c296d1bee | [
"MIT"
] | null | null | null | import argparse
from flask import Flask, render_template, redirect, jsonify
from data import DataRetriever
from flask import request
from gevent.pywsgi import WSGIServer
app = Flask(__name__)
data_retriever = DataRetriever()
#
# @app.route('/api/search', methods=['POST'])
# def search_api():
# if '' in reque... | 31.145161 | 125 | 0.655101 |
e70cb8d5f07a65dd29cb11814472b7f5f34cf181 | 413 | py | Python | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | 2 | 2019-01-14T17:20:06.000Z | 2019-05-06T03:26:23.000Z | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | 4 | 2018-12-25T15:06:35.000Z | 2019-01-05T08:02:36.000Z | apps/auth/forms.py | capy-pl/nccu-grade-system | db7107d56e45d535eed92b47c06e0d5c06f983a2 | [
"Apache-2.0"
] | null | null | null | from django import forms
from django.contrib.auth.password_validation import CommonPasswordValidator
| 34.416667 | 85 | 0.753027 |
e70d9cb956575cc03be78ef9fdb1512ed4a84cf9 | 7,017 | py | Python | main.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | main.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | main.py | aub-cp-training/Discord-Bot | 07d8a3c98fe9999131526624cad2f4598f60ddab | [
"MIT"
] | null | null | null | # ------------------ [ Authors: ] ------------------ #
# Ahmad Zaaroura
# Khaled Chehabeddine
# Miguel Merheb
import os, json, inspect, discord, asyncio, importlib, sys, keep_alive
from helper.cLog import elog
from helper.cEmbed import denied_msg, greeting_msg
from helper.User import User
from helper.Algor... | 39.201117 | 169 | 0.64073 |
e70dc53c0fc04601967be632a3cdf0e6f2cd8448 | 936 | py | Python | HW1/main.py | mapa17/LearningFromData | e15986ee1d24b74d9158a14a33330e64f642a89b | [
"MIT"
] | null | null | null | HW1/main.py | mapa17/LearningFromData | e15986ee1d24b74d9158a14a33330e64f642a89b | [
"MIT"
] | null | null | null | HW1/main.py | mapa17/LearningFromData | e15986ee1d24b74d9158a14a33330e64f642a89b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 20 18:28:50 2015
@author: Manuel Pasieka , manuel.pasieka@csf.ac.at
Homework Assignment from https://work.caltech.edu/telecourse.html
Simple Perceptron Learning Model Algorithm
"""
import sys
import errno
import random
if __name__ == '__main__':
main(sys.... | 28.363636 | 94 | 0.638889 |
e7101a3393fb1a65a444e9c370f127ccf4bbb2a5 | 2,608 | py | Python | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | multichaindb/backend/localarangodb/schema.py | mamaeo/multichaindb | 7791f5fc935be40482f101b6cba3000d065ee136 | [
"CC-BY-3.0",
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null |
import logging
from arango.exceptions import (
CollectionCreateError
)
from multichaindb import backend
from multichaindb.backend.localarangodb.connection import LocalArangoDBConnection
from multichaindb.backend.utils import module_dispatch_registrar
logger = logging.getLogger(__name__)
register_schema = module... | 32.6 | 81 | 0.654525 |
e710746b0b5484fbcdc7779829a360a59c0eaba8 | 1,066 | py | Python | home/admin.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | home/admin.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | home/admin.py | StoneMasons4106/clay-cabinet | 6defd2fcf55d5589777d2e92154668344e923b52 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import HomePagePicture, Testimonial, Content
admin.site.register(HomePagePicture, HomePagePictureAdmin)
admin.site.register(Testimonial, TestimonialAdmin)
admin.site.register(Content, ContentAdmin)
| 17.766667 | 58 | 0.558161 |