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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d8319e6bc7fa01aaa7362ab0f4c1bc854e4660fc | 1,366 | py | Python | gumtree_spider.py | JemLukeBingham/used_car_scraper | 6c1502ee0639d769de98a6dee6f455149c26bd6a | [
"MIT"
] | 1 | 2021-05-11T14:23:21.000Z | 2021-05-11T14:23:21.000Z | gumtree_spider.py | JemLukeBingham/used_car_scraper | 6c1502ee0639d769de98a6dee6f455149c26bd6a | [
"MIT"
] | 7 | 2020-01-24T08:32:00.000Z | 2020-02-17T12:57:08.000Z | gumtree_spider.py | JemLukeBingham/used_car_scraper | 6c1502ee0639d769de98a6dee6f455149c26bd6a | [
"MIT"
] | null | null | null | import scrapy
from urllib.parse import urljoin
from text_formatting import format_mileage, format_year, format_price
| 50.592593 | 125 | 0.522694 |
d831ab35f04940ce86d10f3b0746a51ead7fcdfc | 1,600 | py | Python | ehr_ml/extract.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 4 | 2021-03-12T21:41:37.000Z | 2021-06-25T16:49:52.000Z | ehr_ml/extract.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 22 | 2020-11-19T00:04:27.000Z | 2022-03-02T18:16:08.000Z | ehr_ml/extract.py | som-shahlab/ehr_ml | 4f83ac5b882916a175f0d242b38d914d00bf8a7c | [
"MIT"
] | 2 | 2021-05-12T13:11:46.000Z | 2021-10-15T18:30:14.000Z | from __future__ import annotations
import argparse
import bisect
import os
from .extension.extract import extract_omop
| 22.535211 | 78 | 0.620625 |
d8334d756e7256b282d32ab1967e513fc5ca0140 | 390 | py | Python | src/chains/migrations/0027_chain_description.py | tharsis/safe-config-service | 5335fd006d05fba5b13b477daca9f6ef6d64b818 | [
"MIT"
] | 8 | 2021-07-27T13:21:27.000Z | 2022-02-12T22:46:26.000Z | src/chains/migrations/0027_chain_description.py | protofire/safe-config-service | 6a9a48f5e33950cd5f4f7a66c5e36f4d3b0f2bfa | [
"MIT"
] | 203 | 2021-04-28T08:23:29.000Z | 2022-03-29T15:50:27.000Z | src/chains/migrations/0027_chain_description.py | protofire/safe-config-service | 6a9a48f5e33950cd5f4f7a66c5e36f4d3b0f2bfa | [
"MIT"
] | 23 | 2021-06-25T07:22:31.000Z | 2022-03-29T02:24:46.000Z | # Generated by Django 3.2.7 on 2021-09-16 12:38
from django.db import migrations, models
| 20.526316 | 63 | 0.594872 |
d8346003220ff71079a13d30e7158a1ac6606e62 | 1,288 | py | Python | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 3 | 2020-10-13T07:58:48.000Z | 2020-12-22T09:41:50.000Z | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 422 | 2018-10-25T10:57:05.000Z | 2022-03-30T05:47:14.000Z | leases/services/invoice/berth.py | City-of-Helsinki/berth-reservations | a3b1a8c2176f132505527acdf6da3a62199401db | [
"MIT"
] | 1 | 2020-04-03T07:38:03.000Z | 2020-04-03T07:38:03.000Z | from datetime import date
from django.db.models import QuerySet
from payments.enums import OrderStatus
from payments.models import BerthProduct, Order
from ...models import BerthLease
from ...utils import calculate_season_end_date, calculate_season_start_date
from .base import BaseInvoicingService
| 34.810811 | 84 | 0.743789 |
d835dbb8e8cead5aede4c3f6961c1867eb695b3c | 2,561 | py | Python | scripts/addons/animation_nodes/nodes/boolean/compare.py | Tilapiatsu/blender-custom_conf | 05592fedf74e4b7075a6228b8448a5cda10f7753 | [
"MIT"
] | 2 | 2020-04-16T22:12:40.000Z | 2022-01-22T17:18:45.000Z | scripts/addons/animation_nodes/nodes/boolean/compare.py | Tilapiatsu/blender-custom_conf | 05592fedf74e4b7075a6228b8448a5cda10f7753 | [
"MIT"
] | null | null | null | scripts/addons/animation_nodes/nodes/boolean/compare.py | Tilapiatsu/blender-custom_conf | 05592fedf74e4b7075a6228b8448a5cda10f7753 | [
"MIT"
] | 2 | 2019-05-16T04:01:09.000Z | 2020-08-25T11:42:26.000Z | import bpy
from bpy.props import *
from ... base_types import AnimationNode, DataTypeSelectorSocket
compare_types = ["A = B", "A != B", "A < B", "A <= B", "A > B", "A >= B", "A is B","A is None"]
compare_types_items = [(t, t, "") for t in compare_types]
numericLabelTypes = ["Integer", "Float"]
| 38.223881 | 95 | 0.593128 |
d835ed38f90e0e8ac78ae36e960a76975c5bb157 | 460 | py | Python | main.py | bqia0/CycleGAN | 8be914de7f75de91d2c43c4745e4292d138ff591 | [
"MIT"
] | null | null | null | main.py | bqia0/CycleGAN | 8be914de7f75de91d2c43c4745e4292d138ff591 | [
"MIT"
] | null | null | null | main.py | bqia0/CycleGAN | 8be914de7f75de91d2c43c4745e4292d138ff591 | [
"MIT"
] | null | null | null | import os
import options
import networks
import utils
from argparse import ArgumentParser
if __name__ == "__main__":
main() | 19.166667 | 45 | 0.634783 |
d836f930db46a6c36122556877e26353c466c74c | 1,457 | py | Python | memecrypt/utilities.py | Sh3llcod3/memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | 1 | 2019-06-22T10:15:11.000Z | 2019-06-22T10:15:11.000Z | memecrypt/utilities.py | Sh3llcod3/memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | 2 | 2020-06-08T17:44:56.000Z | 2020-10-04T00:12:30.000Z | memecrypt/utilities.py | Sh3llcod3/Memecrypt | d1a7a0e8ebf8ca9c4a055587f7287a9b05aaf9d0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
try:
import base64
import binascii
import codecs
import random
except ImportError as import_fail:
print(f"Import error: {import_fail}")
print("Please install this module.")
raise SystemExit(1)
| 22.075758 | 51 | 0.569664 |
d8391e7552c953147563413d12fda2c7673ac749 | 8,908 | py | Python | challenges/CNMP/poller/for-testing/machine.py | pingjuiliao/cb-multios | 64ededd0b87030eda7c40c4388a4ad8283712d8e | [
"MIT"
] | 473 | 2016-08-01T12:48:16.000Z | 2022-03-09T18:13:14.000Z | challenges/CNMP/poller/for-testing/machine.py | pingjuiliao/cb-multios | 64ededd0b87030eda7c40c4388a4ad8283712d8e | [
"MIT"
] | 71 | 2016-08-01T03:33:44.000Z | 2022-03-09T18:37:04.000Z | challenges/CNMP/poller/for-testing/machine.py | pingjuiliao/cb-multios | 64ededd0b87030eda7c40c4388a4ad8283712d8e | [
"MIT"
] | 121 | 2016-08-01T04:07:53.000Z | 2022-03-07T11:08:09.000Z | #!/usr/bin/env python
#
# Copyright (C) 2014 Narf Industries <info@narfindustries.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# th... | 35.349206 | 92 | 0.683767 |
d8393bc95348a0c0e174efe5e2ff9ad2700f4359 | 480 | py | Python | S1/TP4/ex2.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/TP4/ex2.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | S1/TP4/ex2.py | HerbeMalveillante/ecole | bebbc73cd678c58c9cd40389ea1cf229a0200308 | [
"MIT"
] | null | null | null | import random
jouer()
| 17.142857 | 71 | 0.59375 |
d83a25d19aad9bcd24d479a3205739bae3d518dc | 1,228 | py | Python | Day4/rock.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day4/rock.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | Day4/rock.py | viditvarshney/100DaysOfCode | eec82c98087093f1aec1cb21acab82368ae785a3 | [
"MIT"
] | null | null | null | import random
import time
print("\n\nWelcome..\n")
time.sleep(2)
print('''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
''')
print('''
_______
---' ____)____
______)
_______)
_______)
---.__________)
''')
print('''
_______
---' ____)____
... | 18.892308 | 72 | 0.509772 |
d83b93f39c486d9317c825bf51df461bf2aebcdf | 440 | py | Python | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | 13 | 2018-11-01T08:10:54.000Z | 2021-07-09T07:42:18.000Z | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | 1 | 2019-07-28T16:49:05.000Z | 2021-10-02T04:37:20.000Z | django_request_context/middleware.py | schecterdamien/django-request-context | db1100b611012835fd8528c2ba4848ed87e10f80 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .globals import request_context
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError: # Django < 1.10
MiddlewareMixin = object
| 23.157895 | 56 | 0.729545 |
d83cb6ca0077fd801c02a5b6138c1e95f1102fa5 | 1,724 | py | Python | venv/Lib/site-packages/zmq/tests/test_win32_shim.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 603 | 2020-12-23T13:49:32.000Z | 2022-03-31T23:38:03.000Z | venv/Lib/site-packages/zmq/tests/test_win32_shim.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 387 | 2020-12-15T14:54:04.000Z | 2022-03-31T07:00:21.000Z | venv/Lib/site-packages/zmq/tests/test_win32_shim.py | ajayiagbebaku/NFL-Model | afcc67a85ca7138c58c3334d45988ada2da158ed | [
"MIT"
] | 35 | 2021-03-26T03:12:04.000Z | 2022-03-23T10:15:10.000Z | from __future__ import print_function
import os
import time
import sys
from functools import wraps
from pytest import mark
from zmq.tests import BaseZMQTestCase
from zmq.utils.win32 import allow_interrupt
| 27.806452 | 80 | 0.632251 |
dc1a0d7e80f8d8d5c7583da835fc29466459e738 | 1,150 | py | Python | examples/docs_snippets/docs_snippets_tests/concepts_tests/partitions_schedules_sensors_tests/test_schedules.py | Andrew-Crosby/dagster | e646625a687dc656bdd855d88b868de957b37b62 | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets_tests/concepts_tests/partitions_schedules_sensors_tests/test_schedules.py | Andrew-Crosby/dagster | e646625a687dc656bdd855d88b868de957b37b62 | [
"Apache-2.0"
] | null | null | null | examples/docs_snippets/docs_snippets_tests/concepts_tests/partitions_schedules_sensors_tests/test_schedules.py | Andrew-Crosby/dagster | e646625a687dc656bdd855d88b868de957b37b62 | [
"Apache-2.0"
] | null | null | null | import pytest
from dagster import ModeDefinition, build_schedule_context, pipeline, solid, validate_run_config
from docs_snippets.concepts.partitions_schedules_sensors.schedules.schedule_examples import (
my_daily_schedule,
my_hourly_schedule,
my_modified_preset_schedule,
my_monthly_schedule,
my_pre... | 27.380952 | 96 | 0.752174 |
dc1b62f0b9101903170d1d98ac96b6de03cffe34 | 17,803 | py | Python | apps/documents/api/v1/views.py | LopsanAMO/Despacho | 0c6be0289caa9eab851fd5fa9077a82c81ddbd95 | [
"MIT"
] | null | null | null | apps/documents/api/v1/views.py | LopsanAMO/Despacho | 0c6be0289caa9eab851fd5fa9077a82c81ddbd95 | [
"MIT"
] | 4 | 2020-06-05T17:33:16.000Z | 2021-06-01T21:56:31.000Z | apps/documents/api/v1/views.py | LopsanAMO/Despacho | 0c6be0289caa9eab851fd5fa9077a82c81ddbd95 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import json
from rest_framework import generics
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.parsers import MultiPartParser, FormParser
from rest_framework_jwt.authentication import JSONWebTokenAuthentication
from rest_framework.decora... | 34.501938 | 79 | 0.548672 |
dc1c868b655eedce37f969499e3f8d088756e9cb | 297 | py | Python | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | 1 | 2020-04-07T09:48:15.000Z | 2020-04-07T09:48:15.000Z | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | null | null | null | aulas/sqldb.py | thiagonantunes/Estudos | 4f3238cf036cf8ae5dc4dbdb106a2a85ed134f55 | [
"MIT"
] | null | null | null | import mysql.connector
mydb = mysql.connector.connect(
host ='127.0.0.1',
port = 3306,
user ='root',
password = '',
database="cadastro"
)
cursor = mydb.cursor()
cursor.execute("SELECT * FROM gafanhotos LIMIT 3")
resultado = cursor.fetchall()
for x in resultado:
print(x) | 18.5625 | 50 | 0.653199 |
dc1d61af75ba3b0bf8f5b6092c2e0716f461d910 | 105 | py | Python | main.py | YunPC/branch-practice | c8977397c9e548b20d05d6edd8c20c3905a89f7c | [
"MIT"
] | null | null | null | main.py | YunPC/branch-practice | c8977397c9e548b20d05d6edd8c20c3905a89f7c | [
"MIT"
] | 1 | 2021-04-01T06:22:09.000Z | 2021-04-01T06:24:37.000Z | main.py | YunPC/branch-practice | c8977397c9e548b20d05d6edd8c20c3905a89f7c | [
"MIT"
] | null | null | null | # print function on main branch
result = ['main' if i%5==0 else i for i in range(1, 10+1)]
print(result)
| 26.25 | 58 | 0.67619 |
dc1e4af97e1b6d9c66d2fb3cd58e20455d4fb72d | 648 | py | Python | billing/views.py | SiddhantNaik17/TheBashTeam_website | a4c3e023599fa9f1b0afa6485346b5b7b883e7f5 | [
"MIT"
] | null | null | null | billing/views.py | SiddhantNaik17/TheBashTeam_website | a4c3e023599fa9f1b0afa6485346b5b7b883e7f5 | [
"MIT"
] | null | null | null | billing/views.py | SiddhantNaik17/TheBashTeam_website | a4c3e023599fa9f1b0afa6485346b5b7b883e7f5 | [
"MIT"
] | 1 | 2020-11-21T16:03:30.000Z | 2020-11-21T16:03:30.000Z | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from billing.utils import initiate_transaction
PAYTM_MERCHANT_ID = 'SNeEfa79194346659805'
PAYTM_MERCHANT_KEY = 'T7V3cbVmVIN1#YK7'
| 27 | 65 | 0.739198 |
dc1ed9368be673800a00c49ccac8a2d18c339a55 | 622 | py | Python | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | requests__examples/yahoo_api__rate_currency.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# TODO: http://www.cbr.ru/scripts/Root.asp?PrtId=SXML query.yahooapis.com
#
# TODO:
# TODO:
# TODO:
import requests
rs = requests.get('https://query.yahooapis.com/v1/public/yql?q=select+*+from+yahoo.finance.xchange+where+pair+=+%2... | 32.736842 | 208 | 0.729904 |
dc22ebe19876ff70a14de4bf47ac789c3b50cffb | 2,329 | py | Python | pexecute/runner_wrapper.py | mikevromen/parallel-execute | e5009011a51eb62a2a14839e2a0e3b899fb9be43 | [
"MIT"
] | 66 | 2019-05-30T08:45:17.000Z | 2022-03-13T12:25:35.000Z | pexecute/runner_wrapper.py | mikevromen/parallel-execute | e5009011a51eb62a2a14839e2a0e3b899fb9be43 | [
"MIT"
] | 2 | 2019-10-24T10:24:00.000Z | 2019-11-18T00:21:04.000Z | pexecute/runner_wrapper.py | mikevromen/parallel-execute | e5009011a51eb62a2a14839e2a0e3b899fb9be43 | [
"MIT"
] | 6 | 2020-11-26T20:07:45.000Z | 2021-07-11T09:54:30.000Z | import abc
import logging
from datetime import datetime
from .log_adapter import adapt_log
LOGGER = logging.getLogger(__name__)
| 26.770115 | 87 | 0.592958 |
dc2545649072034e58b37faa1c657f442101a9f5 | 46 | py | Python | pythonExercicios/desafio027.py | GuilhermeKAC/cursoemvideo-python | 7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e | [
"MIT"
] | 1 | 2021-07-18T17:53:32.000Z | 2021-07-18T17:53:32.000Z | pythonExercicios/desafio027.py | GuilhermeKAC/cursoemvideo-python | 7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e | [
"MIT"
] | null | null | null | pythonExercicios/desafio027.py | GuilhermeKAC/cursoemvideo-python | 7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e | [
"MIT"
] | null | null | null | nome = input('Dgigite seu nome completo: ')
| 11.5 | 43 | 0.673913 |
dc2700f6e1bcfefcc738d3035b2d0f9af75c4bbe | 8,478 | py | Python | src/lib/data_collect/mushroomObserver/api/taxon.py | DCEN-tech/Mushroom_Py-cture_Recognition | 33a85ee401e0d812f53cab620c16466f2134a441 | [
"MIT"
] | null | null | null | src/lib/data_collect/mushroomObserver/api/taxon.py | DCEN-tech/Mushroom_Py-cture_Recognition | 33a85ee401e0d812f53cab620c16466f2134a441 | [
"MIT"
] | null | null | null | src/lib/data_collect/mushroomObserver/api/taxon.py | DCEN-tech/Mushroom_Py-cture_Recognition | 33a85ee401e0d812f53cab620c16466f2134a441 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Import Librairies
#
# Python
import requests
#
# User
from data_collect.mushroomObserver.api import api
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Constants
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TAXON_TABLE_NAME = 'names'
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 33.377953 | 117 | 0.558033 |
dc27033e5b3226d69a85824ce542c315fefd87b4 | 2,636 | py | Python | hidrocomp/graphics/genpareto.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | 4 | 2020-05-14T20:03:49.000Z | 2020-05-22T19:56:43.000Z | hidrocomp/graphics/genpareto.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | 19 | 2019-06-27T18:12:27.000Z | 2020-04-28T13:28:03.000Z | hidrocomp/graphics/genpareto.py | clebsonpy/HydroComp | 9d17fa533e8a15c760030df5246ff531ddb4cb22 | [
"MIT"
] | null | null | null | import scipy.stats as stat
import pandas as pd
import plotly.graph_objs as go
from hidrocomp.graphics.distribution_build import DistributionBuild
| 34.233766 | 85 | 0.518968 |
dc274952ffbbbc7758469183c1112ecd840c0d35 | 18,853 | py | Python | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null | plugins/misc.py | gorpo/manicomio_bot_heroku | aa8dc217468d076f26604a209b5798642217c789 | [
"MIT"
] | null | null | null |
import html
import re
import random
import amanobot
import aiohttp
from amanobot.exception import TelegramError
import time
from config import bot, sudoers, logs, bot_username
from utils import send_to_dogbin, send_to_hastebin
| 57.831288 | 302 | 0.481038 |
dc27e9112b2e7f6835e04b3442e472d51ccba89e | 685 | py | Python | Sprint1Lecture/Module2/demo1_retrievesElement.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | Sprint1Lecture/Module2/demo1_retrievesElement.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | Sprint1Lecture/Module2/demo1_retrievesElement.py | marianvinas/CS_Notes | b43010dda5617336d7295d08f66fa24dbf786144 | [
"MIT"
] | null | null | null | """
Challenge #1:
Write a function that retrieves the last n elements from a list.
Examples:
- last([1, 2, 3, 4, 5], 1) [5]
- last([4, 3, 9, 9, 7, 6], 3) [9, 7, 6]
- last([1, 2, 3, 4, 5], 7) "invalid"
- last([1, 2, 3, 4, 5], 0) []
Notes:
- Return "invalid" if n exceeds the length of the list.
- Return an empty l... | 22.833333 | 64 | 0.512409 |
dc28a79d86f42844bf4b707c20265a7e843acfab | 25,407 | py | Python | PyEngine3D/OpenGLContext/Texture.py | ubuntunux/PyEngine3D | e5542b5b185e8b9b56fc4669a6f22eb06c386c4f | [
"BSD-2-Clause"
] | 121 | 2017-06-07T19:42:30.000Z | 2022-03-31T04:42:29.000Z | PyEngine3D/OpenGLContext/Texture.py | MatthewPChapdelaine/PyEngine3D | e5542b5b185e8b9b56fc4669a6f22eb06c386c4f | [
"BSD-2-Clause"
] | 16 | 2015-12-21T16:57:55.000Z | 2017-03-06T15:22:37.000Z | PyEngine3D/OpenGLContext/Texture.py | ubuntunux/GuineaPig | f32852ecbfa3ebdbba00afc466719fc78e37361c | [
"BSD-2-Clause"
] | 16 | 2018-01-15T03:12:13.000Z | 2022-03-31T04:42:41.000Z | import traceback
import copy
import gc
from ctypes import c_void_p
import itertools
import array
import math
import numpy as np
from OpenGL.GL import *
from PyEngine3D.Common import logger
from PyEngine3D.Utilities import Singleton, GetClassName, Attributes, Profiler
from PyEngine3D.OpenGLContext import OpenGLContex... | 40.328571 | 137 | 0.628016 |
dc28ce1acae4aa8251138dbfcf61874cd8adf79c | 2,480 | py | Python | flask_app/server.py | lychengr3x/twitter-sentiment-service | a3bfb76d3882c34c6b64ee52bf15051085b04548 | [
"MIT"
] | null | null | null | flask_app/server.py | lychengr3x/twitter-sentiment-service | a3bfb76d3882c34c6b64ee52bf15051085b04548 | [
"MIT"
] | null | null | null | flask_app/server.py | lychengr3x/twitter-sentiment-service | a3bfb76d3882c34c6b64ee52bf15051085b04548 | [
"MIT"
] | 1 | 2021-08-08T23:06:08.000Z | 2021-08-08T23:06:08.000Z | """
A server that responds with two pages, one showing the most recent
100 tweets for given user and the other showing the people that follow
that given user (sorted by the number of followers those users have).
For authentication purposes, the server takes a commandline argument
that indicates the file containing Twit... | 34.929577 | 82 | 0.711694 |
dc29012448d242df445844af191ebc8db01de799 | 4,625 | py | Python | samples/entity_management.py | czahedi/dialogflow-python-client-v2 | d9150d1def0a7262dc496b2f1313e02e7ae1a0b6 | [
"Apache-2.0"
] | 3 | 2020-07-09T18:52:40.000Z | 2020-07-13T08:46:44.000Z | samples/entity_management.py | czahedi/dialogflow-python-client-v2 | d9150d1def0a7262dc496b2f1313e02e7ae1a0b6 | [
"Apache-2.0"
] | 4 | 2021-03-11T01:15:14.000Z | 2022-02-27T08:02:18.000Z | python-micro-service-master/.venv/lib/site-packages/samples/entity_management.py | hiepvo01/AnimeRecommendationSystem | 662531fc72134caedcd8e1dee7fefd3bdb0017a2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Copyright 2017 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 33.273381 | 74 | 0.711568 |
dc291fddc0cc25877fc33ea2cf2e1c41cfdab71b | 2,578 | py | Python | tests/model/library/api/test_casestep_resource.py | Mozilla-GitHub-Standards/2a028a7541b867ed4d376d6d9a172a6885fe44030078c12a2b9428efabf22ab7 | 63b1c5eacfe35d5b80cc3b07e7c67145531ba343 | [
"BSD-2-Clause"
] | null | null | null | tests/model/library/api/test_casestep_resource.py | Mozilla-GitHub-Standards/2a028a7541b867ed4d376d6d9a172a6885fe44030078c12a2b9428efabf22ab7 | 63b1c5eacfe35d5b80cc3b07e7c67145531ba343 | [
"BSD-2-Clause"
] | null | null | null | tests/model/library/api/test_casestep_resource.py | Mozilla-GitHub-Standards/2a028a7541b867ed4d376d6d9a172a6885fe44030078c12a2b9428efabf22ab7 | 63b1c5eacfe35d5b80cc3b07e7c67145531ba343 | [
"BSD-2-Clause"
] | null | null | null | """
Tests for CaseStepResource api.
"""
from tests.case.api.crud import ApiCrudCases
import logging
mozlogger = logging.getLogger('moztrap.test')
def backend_data(self, backend_obj):
"""Query's the database for the object's current values. Output is a
dictionary that should match the result of... | 27.72043 | 86 | 0.617533 |
dc2a2a350d569d14803aa0f7b78638b2a20f6c96 | 817 | py | Python | match_shull21.py | drvdputt/dust_fuse_h2 | 3bff87d1cb475abd20f4426e18412379aa3ca991 | [
"BSD-3-Clause"
] | null | null | null | match_shull21.py | drvdputt/dust_fuse_h2 | 3bff87d1cb475abd20f4426e18412379aa3ca991 | [
"BSD-3-Clause"
] | null | null | null | match_shull21.py | drvdputt/dust_fuse_h2 | 3bff87d1cb475abd20f4426e18412379aa3ca991 | [
"BSD-3-Clause"
] | null | null | null | """Find stars that are both in our sample and in Shull+21"""
import numpy as np
import get_data
from matplotlib import pyplot as plt
data = get_data.get_merged_table()
shull = get_data.get_shull2021()
matches = [name for name in data["Name"] if name in shull["Name"]]
print(len(matches), " matches found")
print(matche... | 22.081081 | 66 | 0.689106 |
dc2ab9c6adb9ff531bcc2889483477c21aa458cb | 7,941 | py | Python | plot/include/states_lib.py | ABRG-Models/Wilson2018EvoGene | cf198f162621e09f44cb96ee991ffe50cf9d96bc | [
"CC-BY-4.0"
] | 1 | 2020-04-19T16:57:02.000Z | 2020-04-19T16:57:02.000Z | plot/include/states_lib.py | ABRG-Models/AttractorScaffolding | cf198f162621e09f44cb96ee991ffe50cf9d96bc | [
"CC-BY-4.0"
] | null | null | null | plot/include/states_lib.py | ABRG-Models/AttractorScaffolding | cf198f162621e09f44cb96ee991ffe50cf9d96bc | [
"CC-BY-4.0"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from collections import Iterable
mrkr1 = 12
mrkr1_inner = 8
fs = 18
# FUNCTION TO TURN NESTED LIST INTO 1D LIST
# FUNCTION TO DRAW TREES
def tree (base, graph, cycle, bias, visits, print_states_hex, docolour):
# find parents
parents = graph[base][0]
for ... | 34.081545 | 195 | 0.513411 |
dc2c4dce1a1e4e38ae1c081fcc1c569c6a7af185 | 687 | py | Python | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 3 | 2015-07-24T21:23:36.000Z | 2020-11-28T03:42:16.000Z | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 350 | 2015-05-05T09:24:39.000Z | 2021-07-27T15:02:35.000Z | tests/forms/test_dm_boolean_field.py | ramya-chan/digitalmarketplace-utils | 63bcdda22d89c19dcdda3844db34a0dbd9a7cb40 | [
"MIT"
] | 16 | 2015-06-13T15:37:13.000Z | 2021-04-10T18:03:18.000Z | import pytest
import wtforms
from dmutils.forms.fields import DMBooleanField
from dmutils.forms.widgets import DMSelectionButtonBase
def test_value_is_a_list(form):
assert isinstance(form.field.value, list)
def test_value_is_empty_list_if_there_is_no_selection(form):
assert form.field.value == []
def ... | 20.818182 | 76 | 0.770015 |
dc2c4fc807cf79ade7c992fbbf09a7b0b6750697 | 89 | py | Python | Slide21/calculadora_python.py | yuutognr/MiniCursoPython2020 | fcb94de63dfd954377377187ac283e7275655f45 | [
"Apache-2.0"
] | 2 | 2021-07-16T20:12:53.000Z | 2021-09-29T00:08:09.000Z | Slide21/calculadora_python.py | yuutognr/MiniCursoPython2020 | fcb94de63dfd954377377187ac283e7275655f45 | [
"Apache-2.0"
] | null | null | null | Slide21/calculadora_python.py | yuutognr/MiniCursoPython2020 | fcb94de63dfd954377377187ac283e7275655f45 | [
"Apache-2.0"
] | null | null | null | a = 2 ** 50
b = 2 ** 50 * 3
c = 2 ** 50 * 3 - 1000
d = 400 / 2 ** 50 + 50
print(a,b,c,d) | 14.833333 | 22 | 0.404494 |
dc2cc9df06b6a9b5960974cd590cc42590a881e2 | 302 | py | Python | onadata/libs/models/base_model.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 38 | 2017-02-28T05:39:40.000Z | 2019-01-16T04:39:04.000Z | onadata/libs/models/base_model.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 48 | 2019-03-18T09:26:31.000Z | 2019-05-27T08:12:03.000Z | onadata/libs/models/base_model.py | gushil/kobocat | 5ce27ed5fbf969b2ce68e8a59dd97ced74686711 | [
"BSD-2-Clause"
] | 5 | 2017-02-22T12:25:19.000Z | 2019-01-15T11:16:40.000Z | from django.db import models
| 23.230769 | 57 | 0.652318 |
dc2e9fb0590446355b2dfc864c3c9f80ebe3266f | 7,025 | py | Python | vikitext/get_text.py | CristinaGHolgado/vikitext | f280153a6c6d94163635e6679ba2073c0a1e2500 | [
"MIT"
] | null | null | null | vikitext/get_text.py | CristinaGHolgado/vikitext | f280153a6c6d94163635e6679ba2073c0a1e2500 | [
"MIT"
] | null | null | null | vikitext/get_text.py | CristinaGHolgado/vikitext | f280153a6c6d94163635e6679ba2073c0a1e2500 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from bs4 import BeautifulSoup, SoupStrainer
import bs4
import requests
import csv
import pandas as pd
import os
import re
"""
Module 3 : retrieve text from each article & basic preprocess
"""
ignore_sents = ['Les associations Vikidia', 'Rpondre au sondage', 'Aller :',
'Rcupre de https', '... | 56.653226 | 214 | 0.692954 |
dc2fabb65e5e786f3ca6a824b28bbd0720153d1b | 4,411 | py | Python | graph_dataset.py | lvrcek/assembly_graph_utils | 00d1f502ec5742071e00121a2f0895709829d3c2 | [
"MIT"
] | null | null | null | graph_dataset.py | lvrcek/assembly_graph_utils | 00d1f502ec5742071e00121a2f0895709829d3c2 | [
"MIT"
] | null | null | null | graph_dataset.py | lvrcek/assembly_graph_utils | 00d1f502ec5742071e00121a2f0895709829d3c2 | [
"MIT"
] | null | null | null | import os
import pickle
import subprocess
import dgl
from dgl.data import DGLDataset
import graph_parser
| 40.842593 | 146 | 0.59533 |
dc3087b1cd6e043ab247cf9a5e6b80511711cc17 | 1,297 | py | Python | cwa_qr/poster.py | MaZderMind/cwa-qr | 60799315f1508483025e1e57000a5116dea78449 | [
"MIT"
] | 16 | 2021-04-22T07:12:18.000Z | 2022-02-07T04:54:54.000Z | cwa_qr/poster.py | MaZderMind/cwa-qr | 60799315f1508483025e1e57000a5116dea78449 | [
"MIT"
] | 10 | 2021-04-22T15:33:23.000Z | 2022-03-06T10:54:07.000Z | cwa_qr/poster.py | MaZderMind/cwa-qr | 60799315f1508483025e1e57000a5116dea78449 | [
"MIT"
] | 7 | 2021-04-22T12:37:20.000Z | 2021-08-09T05:47:54.000Z | import io
import os
from svgutils import transform as svg_utils
import qrcode.image.svg
from cwa_qr import generate_qr_code, CwaEventDescription
| 27.020833 | 104 | 0.625289 |
dc31324d3932732b9cf6cec61f3b7fc77261b755 | 335 | py | Python | nvchecker/api.py | ypsilik/nvchecker | 9d2d47ed15929c0698f4c9d34fa018d52413d3b3 | [
"MIT"
] | null | null | null | nvchecker/api.py | ypsilik/nvchecker | 9d2d47ed15929c0698f4c9d34fa018d52413d3b3 | [
"MIT"
] | null | null | null | nvchecker/api.py | ypsilik/nvchecker | 9d2d47ed15929c0698f4c9d34fa018d52413d3b3 | [
"MIT"
] | null | null | null | # MIT licensed
# Copyright (c) 2020 lilydjwg <lilydjwg@gmail.com>, et al.
from .httpclient import session, TemporaryError, HTTPError
from .util import (
Entry, BaseWorker, RawResult, VersionResult,
AsyncCache, KeyManager, GetVersionError,
)
from .sortversion import sort_version_keys
from .ctxvars import tries, pro... | 30.454545 | 58 | 0.78806 |
dc32be1783d77b9191091cbcb6f95353fc69befc | 15,298 | py | Python | examples/psi4_interface/ccsd.py | maxscheurer/pdaggerq | e9fef3466e0d0170afc3094ab79e603200e78dfb | [
"Apache-2.0"
] | 37 | 2020-09-17T19:29:18.000Z | 2022-03-03T16:29:16.000Z | examples/psi4_interface/ccsd.py | maxscheurer/pdaggerq | e9fef3466e0d0170afc3094ab79e603200e78dfb | [
"Apache-2.0"
] | 7 | 2021-02-28T19:22:12.000Z | 2022-02-22T15:17:47.000Z | examples/psi4_interface/ccsd.py | maxscheurer/pdaggerq | e9fef3466e0d0170afc3094ab79e603200e78dfb | [
"Apache-2.0"
] | 6 | 2021-02-16T22:34:29.000Z | 2021-12-04T19:37:23.000Z | # pdaggerq - A code for bringing strings of creation / annihilation operators to normal order.
# Copyright (C) 2020 A. Eugene DePrince III
#
# This file is part of the pdaggerq package.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Lice... | 54.441281 | 233 | 0.59413 |
dc353a0a9a2f3afa4d5df4e0a5dd29cb203037fa | 803 | py | Python | pageviews.py | priyankamandikal/arowf | 0b0226da6c1f0d06360c9243334977f885b70a4c | [
"Apache-2.0"
] | 7 | 2017-10-09T05:39:14.000Z | 2019-06-26T18:26:40.000Z | pageviews.py | priyankamandikal/minireview | 0b0226da6c1f0d06360c9243334977f885b70a4c | [
"Apache-2.0"
] | null | null | null | pageviews.py | priyankamandikal/minireview | 0b0226da6c1f0d06360c9243334977f885b70a4c | [
"Apache-2.0"
] | 3 | 2017-03-20T05:56:05.000Z | 2018-12-19T03:07:09.000Z | from datetime import date, datetime, timedelta
from traceback import format_exc
from requests import get
pageviews_url = 'https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article'
| 34.913043 | 135 | 0.737235 |
dc362bba46a8f158a18291beafd2550a99917d83 | 1,848 | py | Python | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | 1 | 2021-01-03T01:54:37.000Z | 2021-01-03T01:54:37.000Z | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | 13 | 2021-01-21T04:54:51.000Z | 2022-03-21T04:15:56.000Z | nikola/data/themes/base/messages/messages_eo.py | vault-the/nikola | c7a556b587004df442fdc9127c07997715556265 | [
"MIT"
] | null | null | null | # -*- encoding:utf-8 -*-
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
"%d min remaining to read": "%d minutoj por legi",
"(active)": "(aktiva)",
"Also available in:": "Anka disponebla en:",
"Archive": "Arkivo",
"Atom feed": "",
"Authors": "Atoroj",
"... | 36.235294 | 82 | 0.588203 |
dc36cb825ced38ddcdae874b1bd16a286fef0bf8 | 6,880 | py | Python | certbot_dns_desec/dns_desec.py | desec-io/certbot-dns-desec | 23f657223ee4a29d6b0d2c1dfaa8a54f3696028a | [
"Apache-2.0"
] | 4 | 2021-05-13T13:27:55.000Z | 2022-03-21T07:43:33.000Z | certbot_dns_desec/dns_desec.py | desec-io/certbot-dns-desec | 23f657223ee4a29d6b0d2c1dfaa8a54f3696028a | [
"Apache-2.0"
] | 14 | 2021-06-14T11:27:18.000Z | 2022-02-12T16:00:06.000Z | certbot_dns_desec/dns_desec.py | desec-io/certbot-dns-desec | 23f657223ee4a29d6b0d2c1dfaa8a54f3696028a | [
"Apache-2.0"
] | 1 | 2022-02-23T17:58:08.000Z | 2022-02-23T17:58:08.000Z | """DNS Authenticator for deSEC."""
import json
import logging
import time
import requests
import zope.interface
from certbot import errors
from certbot import interfaces
from certbot.plugins import dns_common
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
| 41.445783 | 118 | 0.641279 |
dc36d68e65eb23babc3b82c602c74e2f8d0d78f4 | 21,474 | py | Python | eeg_project/plot_data.py | nickrose/eeg_ML | 275e198bf04c5738af86095b6db2da9c2427dd0e | [
"MIT"
] | null | null | null | eeg_project/plot_data.py | nickrose/eeg_ML | 275e198bf04c5738af86095b6db2da9c2427dd0e | [
"MIT"
] | null | null | null | eeg_project/plot_data.py | nickrose/eeg_ML | 275e198bf04c5738af86095b6db2da9c2427dd0e | [
"MIT"
] | null | null | null | """ some tools for plotting EEG data and doing visual comparison """
from eeg_project.read_data import (my_read_eeg_generic, SAMP_FREQ,
pass_through, accumulate_subject_file_list, files_skip_processing,
sample_file_list, match_types)
import numpy as np
import pandas as pd
import torch
from collections import de... | 38.831826 | 86 | 0.557698 |
dc36fd31dfeeb75d7050190c4caf81b68761883e | 8,634 | py | Python | megumin/modulos/admin/mute.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | 2 | 2022-02-01T17:55:44.000Z | 2022-03-27T17:21:55.000Z | megumin/modulos/admin/mute.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | null | null | null | megumin/modulos/admin/mute.py | davitudoplugins1234/WhiterKang | f4779d2c440849fa97e7014cd856f885b0abbc87 | [
"MIT"
] | null | null | null | import asyncio
from pyrogram import filters
from pyrogram.errors import PeerIdInvalid, UserIdInvalid, UsernameInvalid
from pyrogram.types import ChatPermissions, Message
from megumin import megux
from megumin.utils import (
check_bot_rights,
check_rights,
extract_time,
is_admin,
is_dev,
is_sel... | 39.245455 | 163 | 0.643734 |
dc37303245aa0b25a23b011f2a90851c1f3dd75f | 2,619 | py | Python | conftest.py | juju-solutions/kubeflow | b23fe95b8d239fd979f47784b51a8cb9284ccea4 | [
"Apache-2.0"
] | null | null | null | conftest.py | juju-solutions/kubeflow | b23fe95b8d239fd979f47784b51a8cb9284ccea4 | [
"Apache-2.0"
] | null | null | null | conftest.py | juju-solutions/kubeflow | b23fe95b8d239fd979f47784b51a8cb9284ccea4 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
# Use a custom parser that lets us require a variable from one of CLI or environment variable,
# this way we can pass creds through CLI for local testing but via environment variables in CI
| 40.921875 | 108 | 0.670867 |
dc3872f0ebff03ef64b3d36e139b9d9d4c69ef39 | 5,526 | py | Python | fumi/deployer.py | rmed/fumi | f327ea0814d98790dfd021d23d609531a23d03d0 | [
"MIT"
] | 4 | 2015-03-29T16:32:30.000Z | 2021-06-17T22:40:56.000Z | fumi/deployer.py | rmed/fumi | f327ea0814d98790dfd021d23d609531a23d03d0 | [
"MIT"
] | 2 | 2021-03-25T21:27:57.000Z | 2022-03-29T21:53:35.000Z | fumi/deployer.py | rmed/fumi | f327ea0814d98790dfd021d23d609531a23d03d0 | [
"MIT"
] | 1 | 2020-02-09T17:35:14.000Z | 2020-02-09T17:35:14.000Z | # -*- coding: utf-8 -*-
#
# fumi deployment tool
# https://github.com/rmed/fumi
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Rafael Medina Garca <rafamedgar@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Softwar... | 38.915493 | 80 | 0.661238 |
dc38feeb235182bd05de845499f4c3e44aa113e6 | 15,396 | py | Python | artap/tests/_test_scikit.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 5 | 2021-06-13T17:04:37.000Z | 2022-03-04T17:16:06.000Z | artap/tests/_test_scikit.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | null | null | null | artap/tests/_test_scikit.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 8 | 2021-03-11T18:23:47.000Z | 2022-02-22T11:13:23.000Z | import math
import unittest
from scipy import integrate
from ..problem import Problem
from ..algorithm_genetic import NSGAII
from ..algorithm_sweep import SweepAlgorithm
from ..benchmark_functions import Booth
from ..results import Results
from ..operators import LHSGenerator
from ..surrogate_scikit import SurrogateM... | 34.520179 | 129 | 0.566706 |
dc3a778a081bc0e908fbf22ada6b3c5f69d5f4aa | 16,560 | py | Python | sdk/python/pulumi_kong/_inputs.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2020-02-23T10:05:20.000Z | 2020-05-15T14:22:10.000Z | sdk/python/pulumi_kong/_inputs.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2020-04-21T22:04:23.000Z | 2022-03-31T15:29:53.000Z | sdk/python/pulumi_kong/_inputs.py | pulumi/pulumi-kong | 775c17e4eac38934252410ed3dcdc6fc3bd40c5c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import ... | 34.936709 | 103 | 0.650906 |
dc3da5a24d4fd4a5555347785b65914a5905c48f | 728 | py | Python | common/__init__.py | timmartin19/pycon-ripozo-tutorial | d6f68d0b7c8c8aacb090014c5ff1f34b21ded017 | [
"MIT"
] | null | null | null | common/__init__.py | timmartin19/pycon-ripozo-tutorial | d6f68d0b7c8c8aacb090014c5ff1f34b21ded017 | [
"MIT"
] | null | null | null | common/__init__.py | timmartin19/pycon-ripozo-tutorial | d6f68d0b7c8c8aacb090014c5ff1f34b21ded017 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from logging import config
config.dictConfig({
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'standard': {
'format': '%... | 22.75 | 111 | 0.541209 |
dc3dd9ba91b522b9cfe61eccaaba1f3a5d171d62 | 612 | py | Python | 2019_618_PickMaomao/2019_618_PickMaomao.py | yanaizhen/PythonApps | 21c554980df00795e1af6a8a17224358222d28e5 | [
"MIT"
] | 1 | 2021-07-06T11:12:54.000Z | 2021-07-06T11:12:54.000Z | 2019_618_PickMaomao/2019_618_PickMaomao.py | yanaizhen/PythonApps | 21c554980df00795e1af6a8a17224358222d28e5 | [
"MIT"
] | null | null | null | 2019_618_PickMaomao/2019_618_PickMaomao.py | yanaizhen/PythonApps | 21c554980df00795e1af6a8a17224358222d28e5 | [
"MIT"
] | 2 | 2019-12-09T16:31:26.000Z | 2021-08-15T08:09:37.000Z | # @Time : 2019/06/14 7:55AM
# @Author : HGzhao
# @File : 2019_618_PickMaomao.py
import os,time
for i in range(40):
pick_maomao() | 23.538462 | 54 | 0.630719 |
dc3e7021531cfd65338ffc0247d5d19af8ab45a7 | 676 | py | Python | examples/helix-example/helix_example/components/python.py | HELIX-Datasets/helix | 7b89b4139e580518b58e109a96ef70f2a71bb780 | [
"MIT"
] | 7 | 2021-12-15T03:22:29.000Z | 2022-03-09T16:11:08.000Z | examples/helix-example/helix_example/components/python.py | HELIX-Datasets/helix | 7b89b4139e580518b58e109a96ef70f2a71bb780 | [
"MIT"
] | 10 | 2021-09-14T16:39:31.000Z | 2021-09-14T21:41:49.000Z | examples/helix-example/helix_example/components/python.py | HELIX-Datasets/helix | 7b89b4139e580518b58e109a96ef70f2a71bb780 | [
"MIT"
] | 1 | 2022-01-31T00:01:58.000Z | 2022-01-31T00:01:58.000Z | from helix import component
| 23.310345 | 63 | 0.587278 |
dc3f216b9c59801796c698b0559906cae4053734 | 2,239 | py | Python | cdap-stream-clients/python/cdap_stream_client/streamwriter.py | caskdata/cdap-ingest | 17ce95a9c38fec4db36f4f42f93b4ef19397bf7f | [
"Apache-2.0"
] | 5 | 2015-03-11T21:16:33.000Z | 2018-01-28T14:00:50.000Z | cdap-stream-clients/python/cdap_stream_client/streamwriter.py | cdapio/cdap-ingest | 17ce95a9c38fec4db36f4f42f93b4ef19397bf7f | [
"Apache-2.0"
] | 12 | 2015-01-10T02:54:13.000Z | 2017-03-22T22:31:48.000Z | cdap-stream-clients/python/cdap_stream_client/streamwriter.py | caskdata/cdap-ingest | 17ce95a9c38fec4db36f4f42f93b4ef19397bf7f | [
"Apache-2.0"
] | 8 | 2015-05-13T15:07:40.000Z | 2018-10-24T10:51:27.000Z | # -*- coding: utf-8 -*-
# Copyright 2014 Cask Data, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 34.446154 | 80 | 0.648057 |
dc3f2daf823ff18bc22ad5400ef8f405209e75b1 | 53,877 | py | Python | ACDCDataManipulator.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | ACDCDataManipulator.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | ACDCDataManipulator.py | ACDC-paper-double-review/ACDC | bf44a691d3860eb35731c0ce41f606188f233b1a | [
"MIT"
] | null | null | null | import numpy as np
import pandas
import pandas as pd
import torch
import torchvision
import ssl
import gzip
import json
from tqdm import tqdm
from torchvision.datasets.utils import download_url
from MySingletons import MyWord2Vec
from nltk.tokenize import TweetTokenizer
import os
import tarfile
from lxml ... | 44.822795 | 120 | 0.596488 |
dc40fe59f59a392bcc67c51aae722672e0bfc90e | 8,263 | py | Python | functions/email_habit_survey.py | jamesshapiro/aws-habit-tracker | bbae9866dc4ce744832e42d02a997fc9bebda517 | [
"MIT"
] | null | null | null | functions/email_habit_survey.py | jamesshapiro/aws-habit-tracker | bbae9866dc4ce744832e42d02a997fc9bebda517 | [
"MIT"
] | null | null | null | functions/email_habit_survey.py | jamesshapiro/aws-habit-tracker | bbae9866dc4ce744832e42d02a997fc9bebda517 | [
"MIT"
] | null | null | null | import os
import json
import boto3
import datetime
import hashlib
import secrets
import time
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
table_name = os.environ['DDB_TABLE']
ses_client = boto3.client('ses')
ddb_client = boto3.client('dynamodb')
unsubscribe_url = os.environ['UNS... | 40.11165 | 265 | 0.572673 |
dc410688a5a351759d55b32e0056ca7bc9e0f5bc | 2,120 | py | Python | doc/generate_examples_rst.py | stj/asynctest | 4b1284d6bab1ae90a6e8d88b882413ebbb7e5dce | [
"Apache-2.0"
] | null | null | null | doc/generate_examples_rst.py | stj/asynctest | 4b1284d6bab1ae90a6e8d88b882413ebbb7e5dce | [
"Apache-2.0"
] | null | null | null | doc/generate_examples_rst.py | stj/asynctest | 4b1284d6bab1ae90a6e8d88b882413ebbb7e5dce | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import fnmatch
import pathlib
import os.path
import re
import logging
logging.basicConfig(level=logging.INFO)
INCLUDED_SOURCES = ("*.py", )
EXCLUDED_SOURCES = ("__*__.py", )
INCLUDED_SOURCES_REGEX = tuple(re.compile(fnmatch.translate(pattern))
for pattern in INCLUDED_SO... | 29.859155 | 79 | 0.601415 |
dc4169e69d3e627ccb8330a57d4c07a8100f55e9 | 1,609 | py | Python | ml-conversational-analytic-tool/runDataExtraction.py | difince/ml-conversational-analytic-tool | 69d04d4d49ec352ab8111d5ecade8b6703bea182 | [
"Apache-2.0"
] | 1 | 2022-01-18T19:55:17.000Z | 2022-01-18T19:55:17.000Z | ml-conversational-analytic-tool/runDataExtraction.py | mkbhanda/ml-conversational-analytic-tool | f8c1c46f1bfa24de7212ecfe2c811109ad338a00 | [
"Apache-2.0"
] | 1 | 2022-01-31T05:22:58.000Z | 2022-01-31T18:39:46.000Z | ml-conversational-analytic-tool/runDataExtraction.py | mkbhanda/ml-conversational-analytic-tool | f8c1c46f1bfa24de7212ecfe2c811109ad338a00 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 VMware, Inc.
# SPDX-License-Identifier: Apache-2.0
import argparse
import os
from githubDataExtraction import GithubDataExtractor
def getRepos(access_token, organization, reaction):
"""
Method to extract data for all repositories in organization
"""
extractor = GithubDataExtractor(a... | 37.418605 | 109 | 0.729646 |
dc417f56585a0b2838aab9795d09b29f9bf14f6a | 2,867 | py | Python | src/features/text/build_text_features.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | src/features/text/build_text_features.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | src/features/text/build_text_features.py | ClaasM/VideoArticleRetrieval | 1948887d34b53bdb7a2ec473b31401b395c54e63 | [
"MIT"
] | null | null | null | """
Reads (article_id, [tokens]) from tokens.pickle and writes:
(article_id, w2v)
(article_id, bow)
"""
import json
import sys
import os
import pickle
import psycopg2
from multiprocessing.pool import Pool
import numpy as np
import zlib
# from gensim.models import Word2Vec
from gensim.models import Word2Vec, KeyedVect... | 31.163043 | 120 | 0.690617 |
dc420f3bc704858dc4746abe2044b41c94d6e866 | 212 | py | Python | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | 1 | 2021-08-19T19:40:14.000Z | 2021-08-19T19:40:14.000Z | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | null | null | null | 2. funcoes/angulo_de_regracao.py | andrebrito16/python-academy | 544516048c0a2f8cea42ef0f252b9c40e8f5b141 | [
"MIT"
] | null | null | null | from math import sin, radians, asin, degrees
| 23.555556 | 44 | 0.636792 |
dc426cc10b9151c44106da452cb4ef6089152e5e | 3,972 | py | Python | project/GUI/SlaveGUI/PresentationLayout.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 2 | 2017-09-18T11:04:38.000Z | 2017-09-25T17:23:21.000Z | project/GUI/SlaveGUI/PresentationLayout.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 26 | 2017-09-20T09:11:10.000Z | 2017-12-11T12:21:56.000Z | project/GUI/SlaveGUI/PresentationLayout.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.properties import StringProperty
from kivy.uix.screenmanager import Screen
from Constants.ContentType import ContentType
from Domain.PresentationElement import PresentationElement
| 33.661017 | 119 | 0.641994 |
dc445375bb74810932aacb859d24dca941cfcf06 | 1,451 | py | Python | src/api/serializers.py | mp5maker/djangoninja | ba87bbf0b62a6842087e6cc4de087456bde3a06b | [
"MIT"
] | null | null | null | src/api/serializers.py | mp5maker/djangoninja | ba87bbf0b62a6842087e6cc4de087456bde3a06b | [
"MIT"
] | 5 | 2020-06-05T19:24:11.000Z | 2022-03-11T23:33:29.000Z | src/api/serializers.py | mp5maker/djangoninja | ba87bbf0b62a6842087e6cc4de087456bde3a06b | [
"MIT"
] | null | null | null | from rest_framework.serializers import (
ModelSerializer,
HyperlinkedIdentityField,
SerializerMethodField,
ValidationError,
)
from django_elasticsearch_dsl_drf.serializers import DocumentSerializer
from .documents import (
ArticleDocument
)
from django.contrib.auth.models import User
from article... | 21.338235 | 71 | 0.53756 |
dc4480755cafccdab8d724bc7a489422401e8ed4 | 2,054 | py | Python | apps/core/services/variables.py | Praetorian-Defence/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | 2 | 2020-06-29T15:12:04.000Z | 2020-10-13T14:18:21.000Z | apps/core/services/variables.py | Praetorian-Defence/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | 10 | 2021-01-04T11:33:38.000Z | 2021-05-07T10:23:48.000Z | apps/core/services/variables.py | zurek11/praetorian-api | 181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4 | [
"MIT"
] | null | null | null | from http import HTTPStatus
from django.http import HttpRequest
from django.utils.translation import gettext_lazy as _
from apps.api.errors import ApiException
from apps.core.models import ApiKey
| 28.929577 | 104 | 0.581305 |
dc451d66d8b76f9552de78d6f8265ea16b66e274 | 3,007 | py | Python | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | pm4pygpu/format.py | mnghiap/pm4pygpu | 3cd0dbcbf01377c3a9af5f748ef993c095de6b41 | [
"Apache-2.0"
] | null | null | null | from pm4pygpu.constants import Constants
from numba import cuda
import numpy as np
| 61.367347 | 360 | 0.790156 |
dc45afb348eda7c0c6cebd9eec9eaba64ea60075 | 268 | py | Python | userserver/userserver_app/main_app/urls.py | tuvrai/votechain | 413d8892d7ede1e195a026978173675031d0f924 | [
"MIT"
] | null | null | null | userserver/userserver_app/main_app/urls.py | tuvrai/votechain | 413d8892d7ede1e195a026978173675031d0f924 | [
"MIT"
] | null | null | null | userserver/userserver_app/main_app/urls.py | tuvrai/votechain | 413d8892d7ede1e195a026978173675031d0f924 | [
"MIT"
] | null | null | null | from django.urls import path, register_converter
from . import views
from django.shortcuts import redirect
app_name = 'main_app'
urlpatterns = [
path('', lambda request: redirect('voting/')),
path('voting/',
views.voting,
name='voting'),
]
| 20.615385 | 50 | 0.66791 |
dc4929512e3496ffaec651ee8fa942aa3edc37ed | 3,402 | py | Python | database.py | DevEliran/PokeAPI | 0e1b983d8db256c8a34449b49f1a7ec28cb12208 | [
"MIT"
] | null | null | null | database.py | DevEliran/PokeAPI | 0e1b983d8db256c8a34449b49f1a7ec28cb12208 | [
"MIT"
] | null | null | null | database.py | DevEliran/PokeAPI | 0e1b983d8db256c8a34449b49f1a7ec28cb12208 | [
"MIT"
] | null | null | null | from database_utils import PokeDatabase, DB_FILENAME
| 39.55814 | 83 | 0.569371 |
dc49d0efef00a025032ec403a6bd5a00b82ee89b | 140 | py | Python | python/module/calc/example.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | python/module/calc/example.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | python/module/calc/example.py | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #!/usr/bin/python35
import calc
from calc import mult
print(calc.add(1, 2))
print(calc.dec(2, 3))
print(calc.div(1, 2))
print(mult(2, 3))
| 14 | 21 | 0.678571 |
dc4bf0a06281c947e4e62456a19c478fe9e93906 | 223 | py | Python | asva/restoring_force/Elastic.py | adc21/asva | b94db4aa41ee10ef1991ed4f042c91d9e310a1e1 | [
"MIT"
] | 4 | 2020-10-07T10:47:07.000Z | 2020-12-23T10:07:12.000Z | asva/restoring_force/Elastic.py | adc21/asva | b94db4aa41ee10ef1991ed4f042c91d9e310a1e1 | [
"MIT"
] | 2 | 2021-06-11T12:41:23.000Z | 2021-08-04T03:05:31.000Z | asva/restoring_force/Elastic.py | adc21/asva | b94db4aa41ee10ef1991ed4f042c91d9e310a1e1 | [
"MIT"
] | null | null | null | from asva.restoring_force.RestoringForce import RestoringForce
| 24.777778 | 62 | 0.659193 |
dc4c5dd9ba707c06e5166654025500e610de5ec9 | 1,169 | py | Python | ann_three_body/physics/constants.py | mruijzendaal/python_ann_three_body | 9380b0f7e4eaf7f481d8cdf34250e8475fe32a24 | [
"MIT"
] | null | null | null | ann_three_body/physics/constants.py | mruijzendaal/python_ann_three_body | 9380b0f7e4eaf7f481d8cdf34250e8475fe32a24 | [
"MIT"
] | 4 | 2020-11-13T18:44:52.000Z | 2022-02-10T01:35:23.000Z | ann_three_body/physics/constants.py | mruijzendaal/python_ann_three_body | 9380b0f7e4eaf7f481d8cdf34250e8475fe32a24 | [
"MIT"
] | null | null | null | G = 6.67408e-11 # N-m2/kg2
#
# Normalize the constants such that m, r, t and v are of the order 10^1.
#
m_nd, r_nd, v_nd, t_nd = get_normalization_constants_alphacentauri()
| 25.413043 | 87 | 0.674936 |
dc4ccdcff5f2446b05828e69bf993a6f11ed8830 | 1,118 | py | Python | assigner/roster_util.py | joshessman/assigner | 1654298d200707475fc8b34813e6b5dde9a930f6 | [
"MIT"
] | 24 | 2016-07-28T23:08:20.000Z | 2021-09-03T04:07:23.000Z | assigner/roster_util.py | joshessman/assigner | 1654298d200707475fc8b34813e6b5dde9a930f6 | [
"MIT"
] | 111 | 2016-03-02T05:21:19.000Z | 2022-03-14T03:28:04.000Z | assigner/roster_util.py | joshessman/assigner | 1654298d200707475fc8b34813e6b5dde9a930f6 | [
"MIT"
] | 7 | 2016-09-03T08:41:38.000Z | 2021-10-06T03:08:48.000Z | from assigner.backends.base import RepoError
from assigner.config import DuplicateUserError
import logging
logger = logging.getLogger(__name__)
| 26.619048 | 79 | 0.660107 |
dc4d10789c6e7024e9885910b0c59a9ecdf28e4d | 5,721 | py | Python | examples/knapsack01.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | 42 | 2016-06-29T21:13:02.000Z | 2022-01-23T03:23:59.000Z | examples/knapsack01.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | null | null | null | examples/knapsack01.py | rawg/levis | 33cd6c915f51134f79f3586dc0e4a6072247b568 | [
"MIT"
] | 12 | 2016-07-18T20:46:55.000Z | 2021-06-13T16:08:37.000Z | """
Genetic solution to the 0/1 Knapsack Problem.
usage: knapsack01.py [-h] [--data-file DATA_FILE]
[--population-size POPULATION_SIZE]
[--iterations MAX_ITERATIONS] [--mutation MUTATION_PROB]
[--crossover CROSSOVER_PROB] [--seed SEED]
... | 30.110526 | 81 | 0.59133 |
dc4f4a63f74db3ef68e4b3d83bc56a1482fafa87 | 2,456 | py | Python | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Tests/Plot/LamWind/test_Slot_60_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@date Created on Tue Jan 12 13:54:56 2016
@copyright (C) 2015-2016 EOMYS ENGINEERING.
@author pierre_b
"""
from os.path import join
from unittest import TestCase
import matplotlib.pyplot as plt
from numpy import array, pi, zeros
from pyleecan.Classes.Frame import Frame
from pyleecan.Class... | 32.746667 | 74 | 0.690147 |
dc4f5a6347fb5f09a9911bb06688dfc87583ba36 | 23,082 | py | Python | search/views.py | ashwin31/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2021-09-27T05:01:39.000Z | 2021-09-27T05:01:39.000Z | search/views.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | null | null | null | search/views.py | kiran1415/opensource-job-portal | 2885ea52f8660e893fe0531c986e3bee33d986a2 | [
"MIT"
] | 1 | 2022-01-05T09:02:32.000Z | 2022-01-05T09:02:32.000Z | import json
import math
import re
from django.urls import reverse
from django.http.response import HttpResponse, HttpResponseRedirect
from django.shortcuts import redirect, render
from django.template.defaultfilters import slugify
from django.db.models import Q, F
from haystack.query import SQ, SearchQuerySet
from dja... | 50.39738 | 157 | 0.598605 |
dc4fefe1808974939cccf075125250d15a87b8f6 | 871 | py | Python | IslandGIS/feedback/forms.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | IslandGIS/feedback/forms.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | IslandGIS/feedback/forms.py | eRestin/MezzGIS | 984341fa5361433cf9b6f30b113358c19d3cd05c | [
"BSD-2-Clause"
] | null | null | null | from flexipage.forms import FlexiModelForm
from mezzanine.core.forms import Html5Mixin
from django import forms
from models import Feedback | 62.214286 | 147 | 0.708381 |
dc50566acf856455bdeee2766f9b15e1576f4438 | 2,953 | py | Python | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | research_site/blog/models.py | MatthewTe/research_site | cec4b09823488effdc4b249716b52530484a49c8 | [
"MIT"
] | null | null | null | # Importing default django packages:
from django.db import models
from django.template.defaultfilters import slugify
# Importing models from the research core:
from research_core.models import Topic
# Importing 3rd party packages:
from tinymce import models as tinymce_models | 43.426471 | 122 | 0.69658 |
dc507a2b9a315438fd19294af7cfbee848a645ea | 1,082 | py | Python | pythonlearn/input.py | kuljotbiring/Python | 743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad | [
"MIT"
] | null | null | null | pythonlearn/input.py | kuljotbiring/Python | 743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad | [
"MIT"
] | null | null | null | pythonlearn/input.py | kuljotbiring/Python | 743c93b91c5e4a4bf5066cf50e72e5a51d98d1ad | [
"MIT"
] | null | null | null | # Write a program that asks the user what kind of rental car they
# would like. Print a message about that car, such as Let me see if I can find you
# a Subaru.
car = input("What type of rental rental car would you like? ")
print(f"Checking database to find a {car}")
# Write a program that asks the user how many peop... | 33.8125 | 85 | 0.712569 |
dc5081a7fb1b8aa3ced2ff534ca18e003c6bcf33 | 11,421 | py | Python | compression/nn.py | andiac/localbitsback | 1e5eaf49246a50c1b15a7cb724ea91560388f0ee | [
"MIT"
] | 28 | 2019-11-02T00:27:03.000Z | 2021-12-12T00:48:56.000Z | compression/nn.py | andiac/localbitsback | 1e5eaf49246a50c1b15a7cb724ea91560388f0ee | [
"MIT"
] | 2 | 2019-11-21T09:14:41.000Z | 2021-06-03T17:45:10.000Z | compression/nn.py | andiac/localbitsback | 1e5eaf49246a50c1b15a7cb724ea91560388f0ee | [
"MIT"
] | 3 | 2019-11-04T13:29:05.000Z | 2021-05-24T03:06:12.000Z | from contextlib import contextmanager
import torch
import torch.nn.functional as F
from torch.nn import Module, Parameter
from torch.nn import init
_WN_INIT_STDV = 0.05
_SMALL = 1e-10
_INIT_ENABLED = False
def test_dense():
bs = 128
in_features = 20
out_features = 29
init_scale = 3.1415... | 36.488818 | 163 | 0.631906 |
dc50edea6ac2695524daf7ee1c39c40e72cdd3da | 47,881 | py | Python | dreamerv2/common/nets.py | footoredo/dreamerv2 | 493e1c0b92cf667a4b4fdcaf8f805273beeb165f | [
"MIT"
] | null | null | null | dreamerv2/common/nets.py | footoredo/dreamerv2 | 493e1c0b92cf667a4b4fdcaf8f805273beeb165f | [
"MIT"
] | null | null | null | dreamerv2/common/nets.py | footoredo/dreamerv2 | 493e1c0b92cf667a4b4fdcaf8f805273beeb165f | [
"MIT"
] | null | null | null | import re
import numpy as np
import tensorflow as tf
from tensorflow.keras import layers as tfkl
from tensorflow_probability import distributions as tfd
from tensorflow.keras.mixed_precision import experimental as prec
import common
def _suff_stats_ensemble(self, inp):
bs = list(inp.shape[:-1])
... | 48.21853 | 183 | 0.590861 |
dc52b025b8a7aecbe2b78cacb4452f154781595d | 88 | py | Python | catkin_ws/src/00-infrastructure/easy_logs/include/easy_logs/cli/__init__.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-06-25T02:51:25.000Z | 2018-06-25T02:51:27.000Z | catkin_ws/src/00-infrastructure/easy_logs/include/easy_logs/cli/__init__.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | null | null | null | catkin_ws/src/00-infrastructure/easy_logs/include/easy_logs/cli/__init__.py | yxiao1996/dev | e2181233aaa3d16c472b792b58fc4863983825bd | [
"CC-BY-2.0"
] | 2 | 2018-09-04T06:44:21.000Z | 2018-10-15T02:30:50.000Z | from .easy_logs_summary_imp import *
from .dropbox_links import *
from .require import * | 29.333333 | 36 | 0.806818 |
dc533054ebdcef1d26d54fd0b72f7f97c4c5fec1 | 966 | py | Python | client/verta/tests/test_versioning/test_code.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | null | null | null | client/verta/tests/test_versioning/test_code.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 3 | 2021-05-11T23:56:43.000Z | 2022-02-27T11:16:47.000Z | client/verta/tests/test_versioning/test_code.py | CaptEmulation/modeldb | 78b10aca553e386554f9740db63466b1cf013a1a | [
"Apache-2.0"
] | 3 | 2020-11-18T19:36:47.000Z | 2021-01-19T19:48:54.000Z | import pytest
from google.protobuf import json_format
import verta.code
from verta._internal_utils import _git_utils
| 24.15 | 58 | 0.652174 |
dc549680150086d507b8471b28cb4344cf23da7f | 1,617 | py | Python | 2020/python/day3.py | majormunky/advent_of_code | 4cccd7f3879e28e465bbc39176659bdd52bd70d6 | [
"MIT"
] | null | null | null | 2020/python/day3.py | majormunky/advent_of_code | 4cccd7f3879e28e465bbc39176659bdd52bd70d6 | [
"MIT"
] | null | null | null | 2020/python/day3.py | majormunky/advent_of_code | 4cccd7f3879e28e465bbc39176659bdd52bd70d6 | [
"MIT"
] | 1 | 2020-12-04T06:12:01.000Z | 2020-12-04T06:12:01.000Z | import sys
import common
import math
data = common.get_file_contents("data/{}_input.txt".format(get_filename()))
if __name__ == '__main__':
main()
| 19.962963 | 75 | 0.560297 |
dc58494bc47cffa782c19449890df1e125bbd5c6 | 174 | py | Python | app/forms.py | makkenno/django_blog | 787854ad1bb3b68b885c02b85b38ef4369e89e22 | [
"MIT"
] | null | null | null | app/forms.py | makkenno/django_blog | 787854ad1bb3b68b885c02b85b38ef4369e89e22 | [
"MIT"
] | null | null | null | app/forms.py | makkenno/django_blog | 787854ad1bb3b68b885c02b85b38ef4369e89e22 | [
"MIT"
] | null | null | null | from django import forms
| 29 | 64 | 0.747126 |
dc58c056699f0b7d9f257b7b486ea3049baf4bec | 1,395 | py | Python | grievance/urls.py | AdarshNandanwar/CMS | 755b5e9244807f30a0bfb4b88d6528fc49bdd070 | [
"MIT"
] | null | null | null | grievance/urls.py | AdarshNandanwar/CMS | 755b5e9244807f30a0bfb4b88d6528fc49bdd070 | [
"MIT"
] | 9 | 2020-05-10T22:04:50.000Z | 2022-02-10T10:29:14.000Z | grievance/urls.py | AdarshNandanwar/CMS | 755b5e9244807f30a0bfb4b88d6528fc49bdd070 | [
"MIT"
] | 5 | 2020-07-11T08:03:07.000Z | 2021-01-19T16:40:19.000Z | from django.urls import path
from django.conf.urls import url
from django.urls import path,include
import grievance.views as VIEWS
from django.conf.urls.static import static
from django.conf import settings
app_name = 'grievance'
urlpatterns =[
# path('', VIEWS.HomeView.as_view())
path('level1/', VIEWS.level1HomeVi... | 42.272727 | 99 | 0.763441 |
dc58f7ceafa68cff55b75729d501728753773e9c | 2,545 | py | Python | fgsd_keras_sparse_implementation.py | ethaharikanaidu/FGSD | e283e6a805bc469c82e9d1dc63a1b07374701362 | [
"MIT"
] | null | null | null | fgsd_keras_sparse_implementation.py | ethaharikanaidu/FGSD | e283e6a805bc469c82e9d1dc63a1b07374701362 | [
"MIT"
] | null | null | null | fgsd_keras_sparse_implementation.py | ethaharikanaidu/FGSD | e283e6a805bc469c82e9d1dc63a1b07374701362 | [
"MIT"
] | null | null | null | '''This is the deep learning implementation in Keras for graph classification based on FGSD graph features.'''
import numpy as np
import scipy.io
import networkx as nx
from grakel import datasets
from scipy import sparse
from sklearn.utils import shuffle
from scipy import linalg
import time
import csv
from ... | 32.628205 | 124 | 0.64558 |
dc59dc5b71bc2df003fb4821b909fc61b42c94fa | 244 | py | Python | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | exercicios/exercicio046.py | TayAntony/python | c79d62a12f48965ed374e4c037287a162a368a40 | [
"MIT"
] | null | null | null | from time import sleep
from cores import *
print(f'{cores["azul"]}Em breve a queima de fogos ir comear...{limpar}')
for c in range(10, -1, -1):
print(c)
sleep(1)
print(f'{cores["vermelho"]}{fx["negrito"]}Feliz ano novo!{limpar} ')
| 30.5 | 74 | 0.651639 |
dc5aee0f9d7c54a22dcf5b4f46ece3b3c8bd5031 | 3,206 | py | Python | database_files/management/commands/database_files_cleanup.py | Edge-On-Demand/django-database-files-3000 | fb2f9f83c658dd2443c7bb5c3b1fad348a9a4b92 | [
"BSD-3-Clause"
] | null | null | null | database_files/management/commands/database_files_cleanup.py | Edge-On-Demand/django-database-files-3000 | fb2f9f83c658dd2443c7bb5c3b1fad348a9a4b92 | [
"BSD-3-Clause"
] | null | null | null | database_files/management/commands/database_files_cleanup.py | Edge-On-Demand/django-database-files-3000 | fb2f9f83c658dd2443c7bb5c3b1fad348a9a4b92 | [
"BSD-3-Clause"
] | null | null | null | from optparse import make_option
from django.apps import apps
from django.conf import settings
from django.core.files.storage import default_storage
from django.core.management.base import BaseCommand
from django.db.models import FileField, ImageField
from database_files.models import File
| 42.184211 | 100 | 0.523082 |
dc5b8bfcbc60defc15eb187ab1112d80fd84dce2 | 3,814 | py | Python | tests/test_utils.py | rahultesla/spectacles | dae1e938805fcdae7dea422801916322c0da5608 | [
"MIT"
] | 1 | 2019-05-08T14:31:24.000Z | 2019-05-08T14:31:24.000Z | tests/test_utils.py | rahultesla/spectacles | dae1e938805fcdae7dea422801916322c0da5608 | [
"MIT"
] | 60 | 2019-05-12T09:37:53.000Z | 2019-09-24T21:06:14.000Z | tests/test_utils.py | dbanalyticsco/spectacles | 93dea44f14d38b8441f21264b968a4f7845cb690 | [
"MIT"
] | 1 | 2019-07-16T16:53:10.000Z | 2019-07-16T16:53:10.000Z | from spectacles import utils
from spectacles.logger import GLOBAL_LOGGER as logger
from unittest.mock import MagicMock
import pytest
import unittest
TEST_BASE_URL = "https://test.looker.com"
human_readable_testcases = [
(0.000002345, "0 seconds"),
(0.02, "0 seconds"),
(60, "1 minute"),
(61.002, ... | 33.752212 | 88 | 0.657577 |
dc5b9dc07c1239f392e41d7198be67b491f60afc | 210 | py | Python | Language_Proficiency/Python/06_Itertools/04_itertools-combinations-with-replacement-English.py | canbecerik/HackerRank_solutions | 7f90a145fed29103401be94adc069a2731926d26 | [
"MIT"
] | 1 | 2020-04-20T10:27:37.000Z | 2020-04-20T10:27:37.000Z | Language_Proficiency/Python/06_Itertools/04_itertools-combinations-with-replacement-English.py | canbecerik/HackerRank_solutions | 7f90a145fed29103401be94adc069a2731926d26 | [
"MIT"
] | null | null | null | Language_Proficiency/Python/06_Itertools/04_itertools-combinations-with-replacement-English.py | canbecerik/HackerRank_solutions | 7f90a145fed29103401be94adc069a2731926d26 | [
"MIT"
] | null | null | null | from itertools import combinations_with_replacement
S, k = [i for i in input().split(" ")]
k = int(k)
combs = list(combinations_with_replacement(sorted(S), k))
combs.sort()
[print("".join(i)) for i in combs] | 23.333333 | 57 | 0.704762 |
dc5b9fd61dbefb1b306952f9b1298519ae01f873 | 1,839 | py | Python | Python files/Utilities.py | Dawlau/adugo | 6f20731990c0f7774313d3aa63b783cb5b202c5f | [
"MIT"
] | null | null | null | Python files/Utilities.py | Dawlau/adugo | 6f20731990c0f7774313d3aa63b783cb5b202c5f | [
"MIT"
] | null | null | null | Python files/Utilities.py | Dawlau/adugo | 6f20731990c0f7774313d3aa63b783cb5b202c5f | [
"MIT"
] | null | null | null | '''
Service class for utility functions that I need throught the app
'''
| 20.897727 | 86 | 0.641109 |
dc5c1d3d73bfddff57ac6572f11808dd361bd889 | 512 | py | Python | tests/unit_tests/conftest.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 9 | 2021-01-07T17:56:11.000Z | 2022-02-05T01:42:42.000Z | tests/unit_tests/conftest.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 3 | 2021-05-26T16:17:33.000Z | 2021-12-17T09:25:06.000Z | tests/unit_tests/conftest.py | kurumuz/datacrunch-python | 94b02c68da48b1017c0c837b3b37a97b4b2543a5 | [
"MIT"
] | 3 | 2021-05-16T00:47:40.000Z | 2021-12-17T08:59:16.000Z | import pytest
from unittest.mock import Mock
from datacrunch.http_client.http_client import HTTPClient
BASE_URL = "https://api-testing.datacrunch.io/v1"
ACCESS_TOKEN = "test-token"
CLIENT_ID = "0123456789xyz"
| 25.6 | 57 | 0.777344 |
dc600239b48d84e8a3c314d3367ea64d86c3cba7 | 414 | py | Python | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | null | null | null | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | 11 | 2019-11-06T09:24:51.000Z | 2021-03-24T19:18:12.000Z | apps/cadastro/models/__init__.py | AlcindoSchleder/ERPi-City | 63f8871cbe0be372dae81e2e363e6733d5d34210 | [
"MIT"
] | 1 | 2020-06-27T02:29:19.000Z | 2020-06-27T02:29:19.000Z | # -*- coding: utf-8 -*-
from .base import (
Pessoa,
PessoaFisica,
PessoaJuridica,
Endereco,
Telefone,
Email,
Site,
Banco,
Documento,
COD_UF,
UF_SIGLA,
)
from .empresa import Empresa, MinhaEmpresa
from .cliente import Cliente
from .fornecedor import Fornecedor
from .transport... | 18.818182 | 55 | 0.698068 |
dc618ebead1a642930e82af83102e0b4aac293a7 | 69 | py | Python | dnfal/persons/__init__.py | altest-com/dnfal | d1fb15508c5583aeaa0957fcc3e37634d36bf237 | [
"MIT"
] | null | null | null | dnfal/persons/__init__.py | altest-com/dnfal | d1fb15508c5583aeaa0957fcc3e37634d36bf237 | [
"MIT"
] | 1 | 2020-03-31T17:04:09.000Z | 2020-03-31T17:04:09.000Z | dnfal/persons/__init__.py | altest-com/dnfal | d1fb15508c5583aeaa0957fcc3e37634d36bf237 | [
"MIT"
] | null | null | null | from .detection import BodyDetector
from .encoding import BodyEncoder | 34.5 | 35 | 0.869565 |
dc61901098ab9709f063a98f0cc73f20f6a51887 | 3,113 | py | Python | irc.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | irc.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | irc.py | entuland/fogibot | e3afe14d53fe9d47178161d9311301c47c960507 | [
"MIT"
] | null | null | null | import asyncio
import re
from base64 import b64encode
# pattern taken from:
# https://mybuddymichael.com/writings/a-regular-expression-for-irc-messages.html
IRC_MSG_PATTERN = "^(?:[:](\S+) )?(\S+)(?: (?!:)(.+?))?(?: [:](.+))?$"
# class adapted from a sample kindly provided by https://github.com/emersonveenstra
| 36.623529 | 83 | 0.512046 |
dc61c240ace363029e65db44548f6e19544dc644 | 5,077 | py | Python | NaiveNeurals/MLP/activation_functions.py | stovorov/NaiveNeurals | 88d91f3d4d39859eef372285f093643a447571a4 | [
"MIT"
] | 1 | 2019-01-16T13:45:47.000Z | 2019-01-16T13:45:47.000Z | NaiveNeurals/MLP/activation_functions.py | stovorov/NaiveNeurals | 88d91f3d4d39859eef372285f093643a447571a4 | [
"MIT"
] | 2 | 2020-03-24T16:17:06.000Z | 2020-03-30T23:53:16.000Z | NaiveNeurals/MLP/activation_functions.py | stovorov/NaiveNeurals | 88d91f3d4d39859eef372285f093643a447571a4 | [
"MIT"
] | null | null | null | """Module containing definitions of arithmetic functions used by perceptrons"""
from abc import ABC, abstractmethod
import numpy as np
from NaiveNeurals.utils import ErrorAlgorithm
def get_activation_function(label: str) -> ActivationFunction:
"""Get activation function by label
:param label: string... | 26.035897 | 102 | 0.614142 |
dc622f16d8375f421bc347edace50d1e05565b4c | 3,221 | py | Python | alevel.py | youxinweizhi/micropython-nano-gui | 630810de0dbc77e0416f1746240da1efaf68078b | [
"MIT"
] | null | null | null | alevel.py | youxinweizhi/micropython-nano-gui | 630810de0dbc77e0416f1746240da1efaf68078b | [
"MIT"
] | null | null | null | alevel.py | youxinweizhi/micropython-nano-gui | 630810de0dbc77e0416f1746240da1efaf68078b | [
"MIT"
] | 1 | 2021-07-17T09:57:08.000Z | 2021-07-17T09:57:08.000Z | # alevel.py Test/demo program for Adafruit ssd1351-based OLED displays
# Adafruit 1.5" 128*128 OLED display: https://www.adafruit.com/product/1431
# Adafruit 1.27" 128*96 display https://www.adafruit.com/product/1673
# The MIT License (MIT)
# Copyright (c) 2018 Peter Hinch
# Permission is hereby granted, free of cha... | 35.01087 | 93 | 0.714064 |
dc65314f9ccc4d000bf72b8fe66d6e754777b9ee | 502 | py | Python | postmark_incoming/models.py | hkhanna/django-postmark-incoming | aa49b08ae27abf25bd164ac145de20e28b978725 | [
"MIT"
] | null | null | null | postmark_incoming/models.py | hkhanna/django-postmark-incoming | aa49b08ae27abf25bd164ac145de20e28b978725 | [
"MIT"
] | null | null | null | postmark_incoming/models.py | hkhanna/django-postmark-incoming | aa49b08ae27abf25bd164ac145de20e28b978725 | [
"MIT"
] | null | null | null | import logging
from django.db import models
logger = logging.getLogger(__name__)
| 23.904762 | 66 | 0.687251 |
dc6661641c3f324b5d546ee624c7243aacfaf151 | 1,372 | py | Python | models/ClassicNetwork/blocks/resnext_block.py | Dou-Yu-xuan/deep-learning-visal | 82978f454c7f2662d0eb972b5a4a1e5d5961b232 | [
"Apache-2.0"
] | 150 | 2021-12-10T01:21:06.000Z | 2022-03-30T08:13:42.000Z | models/ClassicNetwork/blocks/resnext_block.py | Curdboycc/torch-template-for-deep-learning | da1ebc527d44c8c5a524e757a1d784ba37ec2d5c | [
"Apache-2.0"
] | 2 | 2021-12-23T04:59:54.000Z | 2021-12-23T06:23:24.000Z | models/ClassicNetwork/blocks/resnext_block.py | Curdboycc/torch-template-for-deep-learning | da1ebc527d44c8c5a524e757a1d784ba37ec2d5c | [
"Apache-2.0"
] | 54 | 2021-12-10T03:36:27.000Z | 2022-03-22T11:57:12.000Z | # -*- coding: UTF-8 -*-
"""
@Cai Yichao 2020_09_08
"""
import torch.nn as nn
import torch.nn.functional as F
from models.blocks.SE_block import SE
from models.blocks.conv_bn import BN_Conv2d
| 33.463415 | 115 | 0.630466 |
dc66e87ae5e869bb818c926e0d037764b9733b9b | 2,948 | py | Python | email_api/api/migrations/0001_initial.py | PawlikMateusz/DjangoEmailRestApi | 1701033de109432a36252ce88389111c65e77249 | [
"MIT"
] | null | null | null | email_api/api/migrations/0001_initial.py | PawlikMateusz/DjangoEmailRestApi | 1701033de109432a36252ce88389111c65e77249 | [
"MIT"
] | null | null | null | email_api/api/migrations/0001_initial.py | PawlikMateusz/DjangoEmailRestApi | 1701033de109432a36252ce88389111c65e77249 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-02-28 19:18
import django.contrib.postgres.fields
from django.db import migrations, models
import django.db.models.deletion
import uuid
| 44.666667 | 147 | 0.592605 |
dc68739da52483fd2292c811c9370f529610773a | 1,985 | py | Python | snekcord/objects/base.py | asleep-cult/snekcord | 04302b0c65bad01c00fb047df3040d3234773689 | [
"MIT"
] | 9 | 2021-07-26T00:25:51.000Z | 2022-02-23T16:00:10.000Z | snekcord/objects/base.py | asleep-cult/snekcord | 04302b0c65bad01c00fb047df3040d3234773689 | [
"MIT"
] | 37 | 2021-05-29T16:16:22.000Z | 2022-02-13T13:57:25.000Z | snekcord/objects/base.py | asleep-cult/snekcord | 04302b0c65bad01c00fb047df3040d3234773689 | [
"MIT"
] | 4 | 2021-06-02T16:45:41.000Z | 2022-02-10T14:57:16.000Z | from .. import json
from ..exceptions import UnknownObjectError
from ..snowflake import Snowflake
__all__ = ('BaseObject', 'ObjectWrapper')
| 22.303371 | 56 | 0.605038 |
dc6a50ddafe2adca5937a2495c5ef8b71db9e620 | 4,098 | py | Python | pyseus/ui/sidebar.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | 2 | 2020-02-17T09:20:50.000Z | 2022-03-22T13:05:22.000Z | pyseus/ui/sidebar.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | null | null | null | pyseus/ui/sidebar.py | impergator493/PySeus | faa7e5741acea9c3b8e0acad066905fa3b1c301b | [
"X11"
] | 1 | 2021-05-26T08:14:58.000Z | 2021-05-26T08:14:58.000Z | """GUI elements for use in the sidebar of the main window.
Classes
-------
**InfoWidget** - Sidebar widget for basic file information.
**MetaWidget** - Sidebar widget for basic metadata.
**ConsoleWidget** - Sidebar widget for basic text output.
"""
from PySide2.QtCore import QSize
from PySide2.QtWidgets import QForm... | 31.282443 | 77 | 0.623963 |
dc6a5a8186b1238e84ceb0aa65bbef6db414344e | 59 | py | Python | problems/bfs/Solution909.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution909.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | problems/bfs/Solution909.py | akalu/cs-problems-python | 9b1bd8e3932be62135a38a77f955ded9a766b654 | [
"MIT"
] | null | null | null | """
BFS
"""
| 5.9 | 18 | 0.389831 |
dc6b05ea547d23e6274f4183f97bd2f598c016e9 | 713 | py | Python | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | class4/exercise7.py | linkdebian/pynet_course | e0de498078ab914b3535fa2ea5c2e71d6e3799fb | [
"Apache-2.0"
] | null | null | null | # Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
from getpass import getpass
from netmiko import ConnectHandler
if __name__ == "__main__":
main()
| 24.586207 | 125 | 0.701262 |
dc6d51bc529682aa9cdad4fdc52398d8540304e3 | 2,106 | py | Python | textX-LS/core/setup.py | ipa-mdl/textX-LS | 26f6dac5794cbb142d40c26b074883237d6ff42f | [
"MIT"
] | 30 | 2019-03-04T14:59:34.000Z | 2022-03-12T11:10:06.000Z | textX-LS/core/setup.py | ipa-mdl/textX-LS | 26f6dac5794cbb142d40c26b074883237d6ff42f | [
"MIT"
] | 26 | 2018-12-31T00:31:57.000Z | 2022-02-26T09:04:44.000Z | textX-LS/core/setup.py | ipa-mdl/textX-LS | 26f6dac5794cbb142d40c26b074883237d6ff42f | [
"MIT"
] | 8 | 2019-01-10T19:36:23.000Z | 2021-12-12T07:59:47.000Z | # flake8: noqa
import codecs
import os
from platform import python_version
from setuptools import find_packages, setup
PACKAGE_NAME = "textx-ls-core"
VERSION = "0.2.0"
AUTHOR = "Daniel Elero"
AUTHOR_EMAIL = "danixeee@gmail.com"
DESCRIPTION = (
"a core language server logic for domain specific languages based on t... | 28.459459 | 79 | 0.65812 |