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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a29f26fbea0a3dc55f5442506c8f8e9d6c38803 | 1,053 | py | Python | api/model.py | thomashusken/img-class | 0ceead70f4e30face409069fb49d02fb927abc03 | [
"MIT"
] | null | null | null | api/model.py | thomashusken/img-class | 0ceead70f4e30face409069fb49d02fb927abc03 | [
"MIT"
] | 2 | 2022-01-13T01:20:18.000Z | 2022-03-11T23:50:06.000Z | api/model.py | thomashusken/img-class | 0ceead70f4e30face409069fb49d02fb927abc03 | [
"MIT"
] | null | null | null | from torchvision import models
import json
import numpy as np
import torch
from collections import OrderedDict
from operator import itemgetter
import os | 31.909091 | 84 | 0.698955 |
2a2a7803fb377912b3cfe716d9faf1491cd16671 | 816 | py | Python | 2015/day-09/day9.py | smolsbs/aoc | 558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a | [
"Unlicense"
] | 1 | 2019-12-02T20:20:41.000Z | 2019-12-02T20:20:41.000Z | 2015/day-09/day9.py | smolsbs/aoc | 558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a | [
"Unlicense"
] | null | null | null | 2015/day-09/day9.py | smolsbs/aoc | 558cc68b94ead332190e14ad7a9ecd6ca5c4aa5a | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from collections import defaultdict
from itertools import permutations
if __name__ == '__main__':
main() | 27.2 | 66 | 0.541667 |
2a2b13313d1d275974a44eab41c48c672b2ad06a | 504 | py | Python | tests/test_generator.py | reesmanp/typedpy | eca9e002b6c9edae19f803cef55447926f502309 | [
"MIT"
] | null | null | null | tests/test_generator.py | reesmanp/typedpy | eca9e002b6c9edae19f803cef55447926f502309 | [
"MIT"
] | null | null | null | tests/test_generator.py | reesmanp/typedpy | eca9e002b6c9edae19f803cef55447926f502309 | [
"MIT"
] | null | null | null | import pickle
from pytest import raises
from typedpy import Structure, serialize
from typedpy.fields import Generator
| 18 | 40 | 0.666667 |
2a2c9906dc961361309d725a8c8106f33e523ad9 | 5,624 | py | Python | stateflow/stateclass.py | frolenkov-nikita/django-stateflow | 0a5d75e42606b662c7d510b5d5ef7cb996cf185b | [
"BSD-3-Clause"
] | null | null | null | stateflow/stateclass.py | frolenkov-nikita/django-stateflow | 0a5d75e42606b662c7d510b5d5ef7cb996cf185b | [
"BSD-3-Clause"
] | null | null | null | stateflow/stateclass.py | frolenkov-nikita/django-stateflow | 0a5d75e42606b662c7d510b5d5ef7cb996cf185b | [
"BSD-3-Clause"
] | null | null | null | """
Workflow based on Python classes
"""
| 27.038462 | 77 | 0.634068 |
2a2d6edb0fce651f5c81ecdcc1654544c63224b4 | 254 | py | Python | src/app/admin/__init__.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | null | null | null | src/app/admin/__init__.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | 1 | 2018-12-07T22:15:28.000Z | 2018-12-07T22:15:28.000Z | src/app/admin/__init__.py | schwetzen/liblr | 408235a4f539a05f54f0376dbf9dbcd83957db03 | [
"Apache-2.0"
] | 2 | 2018-12-07T20:59:53.000Z | 2018-12-17T21:02:21.000Z | from django.contrib import admin
from app.models import *
from app.admin.tip import ReadingTipAdmin
from app.admin.user import UserAdmin
# Register your models here.
admin.site.register(User, UserAdmin)
admin.site.register(ReadingTip, ReadingTipAdmin)
| 25.4 | 48 | 0.818898 |
2a2ef0f35e15ed911d8da568d2fb240bfd2a6fd8 | 5,551 | py | Python | ppobyter/marketplace/abilities.py | graatje/highscoresbot | 26207b8191ed6c9a3d7ecd49fea482e6d3603c36 | [
"MIT"
] | null | null | null | ppobyter/marketplace/abilities.py | graatje/highscoresbot | 26207b8191ed6c9a3d7ecd49fea482e6d3603c36 | [
"MIT"
] | null | null | null | ppobyter/marketplace/abilities.py | graatje/highscoresbot | 26207b8191ed6c9a3d7ecd49fea482e6d3603c36 | [
"MIT"
] | null | null | null | abilities = {1: 'Stench', 2: 'Drizzle', 3: 'Speed Boost', 4: 'Battle Armor', 5: 'Sturdy', 6: 'Damp', 7: 'Limber',
8: 'Sand Veil', 9: 'Static', 10: 'Volt Absorb', 11: 'Water Absorb', 12: 'Oblivious', 13: 'Cloud Nine',
14: 'Compound Eyes', 15: 'Insomnia', 16: 'Color Change', 17: 'Immunity', 18: ... | 108.843137 | 120 | 0.566384 |
2a2fc5a472dc2313204790421e750c0201901553 | 1,371 | py | Python | handler.py | jocafneto/Insurance-All-Cross-Sell | ab67200854a70d39c85459fab9b441fbfc31c7e4 | [
"MIT"
] | null | null | null | handler.py | jocafneto/Insurance-All-Cross-Sell | ab67200854a70d39c85459fab9b441fbfc31c7e4 | [
"MIT"
] | null | null | null | handler.py | jocafneto/Insurance-All-Cross-Sell | ab67200854a70d39c85459fab9b441fbfc31c7e4 | [
"MIT"
] | null | null | null | from crypt import methods
import os
import pickle
import pandas as pd
import lightgbm
from flask import Flask, request, Response
from healthinsurance.HealthInsurance import HealthInsurance
# loading model
model = pickle.load( open( 'model/LGBM_Model.pkl', 'rb' ) )
# initialize API
app = Flask( __name__ )
if __na... | 28.5625 | 77 | 0.623632 |
2a3122b28ce578dad33591fd4205e3edee9aea4c | 2,490 | py | Python | python_scripts/video_pipeline.py | MichlF/scikit-learn-mooc | 31fd171c9e3f75bd19f3709e1f5345a75a7d22ab | [
"CC-BY-4.0"
] | 1 | 2022-01-25T19:20:21.000Z | 2022-01-25T19:20:21.000Z | python_scripts/video_pipeline.py | gmash24/scikit-learn-mooc | b58f051efb591a38859a4242369c9494ccac6a17 | [
"CC-BY-4.0"
] | null | null | null | python_scripts/video_pipeline.py | gmash24/scikit-learn-mooc | b58f051efb591a38859a4242369c9494ccac6a17 | [
"CC-BY-4.0"
] | null | null | null | # %% [markdown]
# # How to define a scikit-learn pipeline and visualize it
# %% [markdown]
# The goal of keeping this notebook is to:
# - make it available for users that want to reproduce it locally
# - archive the script in the event we want to rerecord this video with an
# update in the UI of scikit-learn in a f... | 25.151515 | 90 | 0.725703 |
2a32589106ff6dd9c86ebca030f230c0c1716f14 | 23,423 | py | Python | generator_configuration.py | mariaangelapellegrino/virtual_assistant_generator | b8b31c38797ded888f201c30b38771e861747eff | [
"MIT"
] | 2 | 2020-08-10T23:05:20.000Z | 2021-06-09T05:46:08.000Z | generator_configuration.py | lewismc/virtual_assistant_generator | b8b31c38797ded888f201c30b38771e861747eff | [
"MIT"
] | 5 | 2020-08-10T23:05:16.000Z | 2021-08-31T21:35:59.000Z | generator_configuration.py | lewismc/virtual_assistant_generator | b8b31c38797ded888f201c30b38771e861747eff | [
"MIT"
] | 3 | 2020-08-10T23:05:25.000Z | 2021-05-19T17:14:13.000Z | from nltk.corpus import wordnet as wn
import json
from pyinflect import getAllInflections, getInflection
import re
import inflect
import urllib.parse
from SPARQLWrapper import SPARQLWrapper, JSON
from urllib.parse import quote
from py_thesaurus import Thesaurus
import sys, getopt
WN_NOUN = 'n'
WN_VERB = 'v'
WN_ADJECTI... | 31.652703 | 187 | 0.597191 |
2a326bdb7af710f5433ff63b32a58d49b24260c8 | 3,951 | py | Python | strictdoc/backend/sdoc/grammar/grammar.py | BenGardiner/strictdoc | c927872a8f080ca1f86cdb7e99767fb25398dbd5 | [
"Apache-2.0"
] | null | null | null | strictdoc/backend/sdoc/grammar/grammar.py | BenGardiner/strictdoc | c927872a8f080ca1f86cdb7e99767fb25398dbd5 | [
"Apache-2.0"
] | 3 | 2022-02-21T10:57:01.000Z | 2022-02-21T13:22:23.000Z | strictdoc/backend/sdoc/grammar/grammar.py | BenGardiner/strictdoc | c927872a8f080ca1f86cdb7e99767fb25398dbd5 | [
"Apache-2.0"
] | null | null | null | STRICTDOC_GRAMMAR = r"""
Document[noskipws]:
'[DOCUMENT]' '\n'
// NAME: is deprecated. Both documents and sections now have TITLE:.
(('NAME: ' name = /.*$/ '\n') | ('TITLE: ' title = /.*$/ '\n')?)
(config = DocumentConfig)?
('\n' grammar = DocumentGrammar)?
free_texts *= SpaceThenFreeText
section_contents... | 20.365979 | 78 | 0.638826 |
2a33d0eec1f385f2483bfafb27af77afb0c18924 | 1,683 | py | Python | app/extensions/api/__init__.py | ssfdust/full-stack-flask-smorest | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | 33 | 2019-09-25T02:19:43.000Z | 2022-03-25T01:58:19.000Z | app/extensions/api/__init__.py | ssfdust/full-stack-flask-rest-api | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | null | null | null | app/extensions/api/__init__.py | ssfdust/full-stack-flask-rest-api | a0bdbd3a7d314b82bb43b265578aba7bbd175e51 | [
"Apache-2.0"
] | 6 | 2020-01-12T15:18:07.000Z | 2021-06-01T16:30:26.000Z | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | 30.6 | 87 | 0.674985 |
2a3542de3a20f0796eef0e90a172db6862e950d4 | 1,236 | py | Python | bot.py | donmbelembe/dino-auto-play | bfcdb31696b7a2bfa25fd43377732967062fa07c | [
"MIT"
] | null | null | null | bot.py | donmbelembe/dino-auto-play | bfcdb31696b7a2bfa25fd43377732967062fa07c | [
"MIT"
] | 4 | 2021-03-19T01:40:43.000Z | 2022-03-11T23:50:45.000Z | bot.py | donmbelembe/dino-auto-play | bfcdb31696b7a2bfa25fd43377732967062fa07c | [
"MIT"
] | null | null | null | # https://www.youtube.com/watch?v=bf_UOFFaHiY
# http://www.trex-game.skipser.com/
from PIL import ImageGrab, ImageOps
import pyautogui
import time
from numpy import *
main() | 24.72 | 57 | 0.617314 |
2a37076e9a1081b1644f5c10b693cd623705219d | 735 | py | Python | cybox/objects/win_event_object.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 40 | 2015-03-05T18:22:51.000Z | 2022-03-06T07:29:25.000Z | cybox/objects/win_event_object.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 106 | 2015-01-12T18:52:20.000Z | 2021-04-25T22:57:52.000Z | cybox/objects/win_event_object.py | Mattlk13/python-cybox | ee82c7da40ca4638e3ca8d70766150c0dace1b55 | [
"BSD-3-Clause"
] | 30 | 2015-03-25T07:24:40.000Z | 2021-07-23T17:10:11.000Z | # Copyright (c) 2017, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
from mixbox import entities
from mixbox import fields
import cybox.bindings.win_event_object as win_event_binding
from cybox.objects.win_handle_object import WinHandle
from cybox.common import ObjectProperties, Str... | 33.409091 | 66 | 0.779592 |
2a3762ff9f2942b988ba9f4529ccc38f94cea111 | 1,883 | py | Python | cfgov/cfgov/settings/production.py | cyVR/aur | 269dad2e659f7366e6eea037110d38ab41e3ad53 | [
"CC0-1.0"
] | null | null | null | cfgov/cfgov/settings/production.py | cyVR/aur | 269dad2e659f7366e6eea037110d38ab41e3ad53 | [
"CC0-1.0"
] | null | null | null | cfgov/cfgov/settings/production.py | cyVR/aur | 269dad2e659f7366e6eea037110d38ab41e3ad53 | [
"CC0-1.0"
] | null | null | null | from .base import *
# Sends an email to developers in the ADMIN_EMAILS list if Debug=False for errors
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': [],
'class': 'django.utils.log.AdminEma... | 31.915254 | 85 | 0.51248 |
2a377186c5cffd5cbf92c4375d940a280d7978d4 | 163 | py | Python | Lab5/try.py | HelloYeew/helloyeew-lab-computer-programming- | 92f643deadcec39ffdf2af2cba43626d40f925cd | [
"MIT"
] | 1 | 2022-01-02T00:47:28.000Z | 2022-01-02T00:47:28.000Z | Lab5/try.py | HelloYeew/helloyeew-lab-computer-programming-ii | 92f643deadcec39ffdf2af2cba43626d40f925cd | [
"MIT"
] | null | null | null | Lab5/try.py | HelloYeew/helloyeew-lab-computer-programming-ii | 92f643deadcec39ffdf2af2cba43626d40f925cd | [
"MIT"
] | null | null | null | import tkinter as tk
root = tk.Tk()
root.bind('<Motion>', motion)
root.mainloop() | 18.111111 | 32 | 0.601227 |
2a37a23903a55c44659c456a27c899c5c9c44baa | 3,552 | py | Python | deprecated/nexus_server/nexus_db.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 7 | 2017-07-11T04:40:49.000Z | 2020-10-22T04:43:08.000Z | deprecated/nexus_server/nexus_db.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 2 | 2020-07-07T19:52:42.000Z | 2021-03-09T03:26:35.000Z | deprecated/nexus_server/nexus_db.py | utarsuno/quasar_source | 634fcd71ad78cd99cca4f1852693a02acae3107d | [
"MIT"
] | 1 | 2018-11-14T06:08:50.000Z | 2018-11-14T06:08:50.000Z | # coding=utf-8
"""This module, nexus_db.py, defines a basic started database for the Nexus Server."""
import pika
import json
import time
from scripts.docker.wait_for_rabbit_host import WaitForRabbitMQHost
from libraries.database_abstraction.sql.sqlite import sqlite_db
from libraries.database_abstraction.sql.sqlite i... | 47.36 | 90 | 0.728604 |
2a37bb94944073ebefda7ff352df1e712e016066 | 7,429 | py | Python | tdcsm/cli.py | tdcoa/usage | 408091f77360fe29e14186b60746fd7d60713e42 | [
"MIT"
] | null | null | null | tdcsm/cli.py | tdcoa/usage | 408091f77360fe29e14186b60746fd7d60713e42 | [
"MIT"
] | 4 | 2020-07-21T18:42:22.000Z | 2020-10-14T00:50:45.000Z | tdcsm/cli.py | tdcoa/usage | 408091f77360fe29e14186b60746fd7d60713e42 | [
"MIT"
] | 1 | 2020-08-05T20:09:41.000Z | 2020-08-05T20:09:41.000Z | #! /usr/bin/env python
"tdcsm command-line interface"
import argparse
from pathlib import Path
from typing import Any, Sequence, Callable, List, Optional
from logging import getLogger
from .tdgui import coa as tdgui
from .tdcoa import tdcoa
from .model import load_filesets, load_srcsys, dump_srcsys, SrcSys, FileSet, ... | 34.235023 | 146 | 0.70171 |
2a38d7dfa0cafc127e2193d495cf4f0ef572b6e1 | 12,247 | py | Python | cogs/Musica.py | Borgotto/discord_bot | dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2 | [
"MIT"
] | null | null | null | cogs/Musica.py | Borgotto/discord_bot | dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2 | [
"MIT"
] | null | null | null | cogs/Musica.py | Borgotto/discord_bot | dd86d5a321e1aa9bf0bfc84a70f2174c35fcfdd2 | [
"MIT"
] | 1 | 2021-11-09T11:52:17.000Z | 2021-11-09T11:52:17.000Z | import itertools
import asyncio
from async_timeout import timeout
from functools import partial
from youtube_dl import YoutubeDL
from discord.ext import commands
from discord import Embed, FFmpegPCMAudio, HTTPException, PCMVolumeTransformer, Color
ytdlopts = {
'format': 'bestaudio/best',
'extractaudio': True,
... | 35.809942 | 157 | 0.617539 |
2a394b04ac8e33befbcd55f3ea716e30d44e735b | 2,584 | py | Python | kipy/fileobjs/sch/sheet.py | Arie001/klonor-kicad | c916ae4cdac5072803e12f530ef32230732b30d7 | [
"MIT"
] | 2 | 2016-05-17T13:10:52.000Z | 2018-09-03T15:18:30.000Z | kipy/fileobjs/sch/sheet.py | Arie001/klonor-kicad | c916ae4cdac5072803e12f530ef32230732b30d7 | [
"MIT"
] | 1 | 2016-08-03T09:31:39.000Z | 2016-08-03T11:19:19.000Z | kipy/fileobjs/sch/sheet.py | Arie001/klonor-kicad | c916ae4cdac5072803e12f530ef32230732b30d7 | [
"MIT"
] | 1 | 2018-09-04T16:32:13.000Z | 2018-09-04T16:32:13.000Z | '''
Classes based on SchItem for parsing and rendering $Sheet sub-sheets
inside a .sch file.
'''
from .schitem import SchItem
| 31.13253 | 90 | 0.592879 |
2a3aa00e1e605b1a991cede3b58b1dc8bfec0c42 | 1,988 | py | Python | PyBullet_experiments/experiments/plot_return.py | AnonymousLaBER/LaBER | af9da8ffda0654e2021de20cb162ef71dc9b9d6c | [
"MIT"
] | 3 | 2021-10-11T22:25:02.000Z | 2022-03-04T20:00:56.000Z | PyBullet_experiments/experiments/plot_return.py | AnonymousLaBER/LaBER | af9da8ffda0654e2021de20cb162ef71dc9b9d6c | [
"MIT"
] | null | null | null | PyBullet_experiments/experiments/plot_return.py | AnonymousLaBER/LaBER | af9da8ffda0654e2021de20cb162ef71dc9b9d6c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import pickle
import json
import argparse
from collections import defaultdict
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
parser = argparse.ArgumentParser()
parser.add_argument('path', help="Tf path to event files from which to extract variables")
parse... | 26.157895 | 90 | 0.654427 |
2a3b07acb290992d78e2cb48fb5c7452dc6ca1c9 | 551 | py | Python | helper/policy.py | icesiv/webstaurantstore | 79b5f32625a6be38e42d525c74537d01fde82e26 | [
"MIT"
] | null | null | null | helper/policy.py | icesiv/webstaurantstore | 79b5f32625a6be38e42d525c74537d01fde82e26 | [
"MIT"
] | null | null | null | helper/policy.py | icesiv/webstaurantstore | 79b5f32625a6be38e42d525c74537d01fde82e26 | [
"MIT"
] | null | null | null | from rotating_proxies.policy import BanDetectionPolicy | 42.384615 | 70 | 0.709619 |
2a3cf567574bc6e1ccbbf93b58791ade2b96a58a | 8,162 | py | Python | training/scripts/trainer/src/convert/convert.py | TommyTeaVee/training | ecbd86d5137d5b639d79824661c58792d4ce177c | [
"MIT"
] | 2,442 | 2019-02-10T03:37:16.000Z | 2021-05-23T05:33:10.000Z | training/scripts/trainer/src/convert/convert.py | TommyTeaVee/training | ecbd86d5137d5b639d79824661c58792d4ce177c | [
"MIT"
] | 189 | 2019-02-11T11:34:27.000Z | 2021-04-23T19:05:49.000Z | training/scripts/trainer/src/convert/convert.py | TommyTeaVee/training | ecbd86d5137d5b639d79824661c58792d4ce177c | [
"MIT"
] | 459 | 2019-02-10T09:34:55.000Z | 2021-05-25T14:20:12.000Z | import os
import argparse
import numpy as np
import tensorflow as tf
from tensorflow.python.platform import gfile
from tensorflow.python.framework import dtypes
from tensorflow.python.tools import strip_unused_lib
tf.enable_eager_execution()
parser = argparse.ArgumentParser()
# export types
parser.add_argument("-... | 32.779116 | 88 | 0.604019 |
2a3d04876b6b65c8918ff882255667977b529bb1 | 3,594 | py | Python | packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py | enterstudio/swift-lldb | af85d636d230da2460f91938b1ff734b0fb64b42 | [
"Apache-2.0"
] | 2 | 2019-05-24T14:10:24.000Z | 2019-05-24T14:27:38.000Z | packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py | enterstudio/swift-lldb | af85d636d230da2460f91938b1ff734b0fb64b42 | [
"Apache-2.0"
] | null | null | null | packages/Python/lldbsuite/test/lang/swift/private_decl_name/TestSwiftPrivateDeclName.py | enterstudio/swift-lldb | af85d636d230da2460f91938b1ff734b0fb64b42 | [
"Apache-2.0"
] | null | null | null | # TestSwiftPrivateDeclName.py
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org... | 36.673469 | 80 | 0.665832 |
2a3de723ee6980cbdbd514d26ca2d35bda76c165 | 195 | py | Python | tests/test_input_laplace_time_ebcs.py | Gkdnz/SfePy | a3a39d4e087705e9e0e8884cbf63513a2ded2108 | [
"BSD-3-Clause"
] | null | null | null | tests/test_input_laplace_time_ebcs.py | Gkdnz/SfePy | a3a39d4e087705e9e0e8884cbf63513a2ded2108 | [
"BSD-3-Clause"
] | null | null | null | tests/test_input_laplace_time_ebcs.py | Gkdnz/SfePy | a3a39d4e087705e9e0e8884cbf63513a2ded2108 | [
"BSD-3-Clause"
] | 2 | 2019-01-14T03:12:34.000Z | 2021-05-25T11:44:50.000Z | input_name = '../examples/diffusion/laplace_time_ebcs.py'
output_name_trunk = 'test_laplace_time_ebcs'
from tests_basic import TestInputEvolutionary
| 24.375 | 57 | 0.825641 |
2a3f420858525afd3b6e496ae0a3136e8d138627 | 518 | py | Python | boto3_exceptions/iot1click-devices.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/iot1click-devices.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/iot1click-devices.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('iot1click-devices').exceptions
ForbiddenException = exceptions.ForbiddenException
InternalFailureException = exceptions.InternalFailureException
InvalidRequestException = exceptions.InvalidRequestException
PreconditionFailedException = exceptions.PreconditionFailedException
Ran... | 43.166667 | 70 | 0.903475 |
2a4151beaa3590019a94a7fe55fcae4fc19b8066 | 1,826 | py | Python | IMfunctions.py | KartoffelCheetah/personal-website-001 | c0700687ef90cc9a8a26c13af158fc91ee30a647 | [
"MIT"
] | null | null | null | IMfunctions.py | KartoffelCheetah/personal-website-001 | c0700687ef90cc9a8a26c13af158fc91ee30a647 | [
"MIT"
] | 7 | 2017-10-04T15:22:23.000Z | 2018-02-08T18:31:21.000Z | IMfunctions.py | KartoffelCheetah/personal-website-001 | c0700687ef90cc9a8a26c13af158fc91ee30a647 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.5
#-*- coding:utf-8 -*-
"""Functions handling images."""
import subprocess
import os
# supported ImageMagic Formats?
def getDateTimeOriginal(filePath) :
"""If image has DateTimeOriginal then returns it as a string. If it's missing or there isn't EXIF at all then returns empty string."""
... | 58.903226 | 234 | 0.727273 |
2a4164567c21ed5336f207306a71b8f7e94eae41 | 18,415 | py | Python | plugins/modules/oci_resource_manager_template.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 108 | 2020-05-19T20:46:10.000Z | 2022-03-25T14:10:01.000Z | plugins/modules/oci_resource_manager_template.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 90 | 2020-06-14T22:07:11.000Z | 2022-03-07T05:40:29.000Z | plugins/modules/oci_resource_manager_template.py | slmjy/oci-ansible-collection | 349c91e2868bf4706a6e3d6fb3b47fc622bfe11b | [
"Apache-2.0"
] | 42 | 2020-08-30T23:09:12.000Z | 2022-03-25T16:58:01.000Z | #!/usr/bin/python
# Copyright (c) 2020, 2021 Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for d... | 38.686975 | 160 | 0.645072 |
2a419057ed32d0d72a2ab5830767804b84e6235c | 2,259 | py | Python | test.py | alexanderAustin/PythonGame | 9a3da340ffa426d3c6d59b5c2eb3f2a68792164f | [
"Apache-2.0"
] | null | null | null | test.py | alexanderAustin/PythonGame | 9a3da340ffa426d3c6d59b5c2eb3f2a68792164f | [
"Apache-2.0"
] | null | null | null | test.py | alexanderAustin/PythonGame | 9a3da340ffa426d3c6d59b5c2eb3f2a68792164f | [
"Apache-2.0"
] | null | null | null | # This was built from the tutorial https://www.raywenderlich.com/24252/beginning-game-programming-for-teens-with-python
import pygame, math, random
from pygame.locals import *
import pyganim
# 2 - Initialize the game
pygame.init()
width, height = 640, 480
screen=pygame.display.set_mode((width, height))
pygame.display... | 30.945205 | 119 | 0.683046 |
2a42be1c9cc44039b76455cddf90f7e4297f5a21 | 322 | py | Python | Python diye Programming sekha 1st/List to string.py | mitul3737/My-Python-Programming-journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | ca2c15c597a64e5a7689ba3a44ce36a1c0828194 | [
"MIT"
] | 1 | 2021-05-02T20:30:33.000Z | 2021-05-02T20:30:33.000Z | Python diye Programming sekha 1st/List to string.py | Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | c19d84dfe6dcf496ff4527724f92e228579b6456 | [
"MIT"
] | null | null | null | Python diye Programming sekha 1st/List to string.py | Mit382/My-Python-Programming-Journey-from-Beginning-to-Data-Sciene-Machine-Learning-AI-Deep-Learning | c19d84dfe6dcf496ff4527724f92e228579b6456 | [
"MIT"
] | 1 | 2021-05-02T20:30:29.000Z | 2021-05-02T20:30:29.000Z | li=["a","b","d"]
print(li)
str="".join(li)#adding the lists value together
print(str)
str=" ".join(li)#adding the lists value together along with a space
print(str)
str=",".join(li)#adding the lists value together along with a comma
print(str)
str="&".join(li)#adding the lists value together along with a &
print(st... | 23 | 67 | 0.708075 |
2a4394188059b503b596278b8e6a7e6db8a33d8a | 240 | py | Python | src/classes/demo.py | daninarvaezr/SeleniumInmofianza | 51d488043188b87199dbf28b9f7ef6d43f5163d9 | [
"MIT"
] | 1 | 2021-12-17T05:18:47.000Z | 2021-12-17T05:18:47.000Z | src/classes/demo.py | daninarvaezr/SeleniumInmofianza | 51d488043188b87199dbf28b9f7ef6d43f5163d9 | [
"MIT"
] | null | null | null | src/classes/demo.py | daninarvaezr/SeleniumInmofianza | 51d488043188b87199dbf28b9f7ef6d43f5163d9 | [
"MIT"
] | null | null | null | import os
file=open("C:/Users/michael.duran\OneDrive - Thomas Greg/Documents/Audisoft/Thomas/Inmofianza/TeamQA/SeleniumInmofianza/src/classes/datos.txt","w")
file.write("Primera lnea" + os.linesep)
file.write("Segunda lnea")
file.close() | 48 | 148 | 0.783333 |
2a43cb149706d93e473e58a6de1f4b209d11723a | 1,962 | py | Python | src/egyptian_data_generator/finance.py | mahmoudahmedd/Egyptian-Data-Generator | d7bea688a7c7f8604908f302917267d795aa40a2 | [
"MIT"
] | 9 | 2020-11-25T10:45:32.000Z | 2020-11-29T12:42:09.000Z | src/egyptian_data_generator/finance.py | mahmoudahmedd/Egyptian-Data-Generator | d7bea688a7c7f8604908f302917267d795aa40a2 | [
"MIT"
] | null | null | null | src/egyptian_data_generator/finance.py | mahmoudahmedd/Egyptian-Data-Generator | d7bea688a7c7f8604908f302917267d795aa40a2 | [
"MIT"
] | null | null | null | from egyptian_data_generator.helpers import Helpers
| 33.827586 | 87 | 0.514271 |
2a49bbb320a2f3a0c0ad1fe1ec309514aaf3de0f | 1,736 | py | Python | src/app.py | borjlp/the-real-devops-challenge | 6571c4ea2d08f421e92d319b08e7b15dcdb6393c | [
"Apache-2.0"
] | null | null | null | src/app.py | borjlp/the-real-devops-challenge | 6571c4ea2d08f421e92d319b08e7b15dcdb6393c | [
"Apache-2.0"
] | null | null | null | src/app.py | borjlp/the-real-devops-challenge | 6571c4ea2d08f421e92d319b08e7b15dcdb6393c | [
"Apache-2.0"
] | null | null | null | from os import environ
import logging
from bson.objectid import ObjectId
from bson.errors import InvalidId
from flask import Flask, jsonify, abort
from flask_pymongo import PyMongo
from typing import List, Dict
from pymongo import MongoClient, errors
from mongoflask import MongoJSONEncoder, find_restaurants
app = Fla... | 25.15942 | 67 | 0.68318 |
2a49c06bdd89022dc1ff091683808f803c67b7b5 | 434 | py | Python | .ycm_extra_conf.py | baileyforrest/calico | 68f859d244e1dc62b1b690349263cb51e1c19bce | [
"MIT"
] | null | null | null | .ycm_extra_conf.py | baileyforrest/calico | 68f859d244e1dc62b1b690349263cb51e1c19bce | [
"MIT"
] | null | null | null | .ycm_extra_conf.py | baileyforrest/calico | 68f859d244e1dc62b1b690349263cb51e1c19bce | [
"MIT"
] | null | null | null | import subprocess
| 17.36 | 80 | 0.529954 |
2a4a2838e188c76f4a2cd11bbdf6a1bfab7e4da2 | 101 | py | Python | python/lookout/__init__.py | meyskens/lookout-sdk | 805d0d61ca97120a257283780790ff2458a6ef29 | [
"Apache-2.0"
] | 5 | 2018-12-17T11:22:31.000Z | 2019-03-14T02:50:43.000Z | python/lookout/__init__.py | meyskens/lookout-sdk | 805d0d61ca97120a257283780790ff2458a6ef29 | [
"Apache-2.0"
] | 64 | 2018-08-31T10:41:36.000Z | 2019-12-14T15:01:13.000Z | python/lookout/__init__.py | meyskens/lookout-sdk | 805d0d61ca97120a257283780790ff2458a6ef29 | [
"Apache-2.0"
] | 16 | 2018-08-30T20:33:55.000Z | 2021-08-09T05:37:06.000Z | """Lookout - Assisted Code Review"""
import pkg_resources
pkg_resources.declare_namespace(__name__)
| 20.2 | 41 | 0.811881 |
2a4c66a611b82e5e3fffe75e8ee7a205db523d36 | 789 | py | Python | Examples/Example_2.py | jmwerner/iPython_Parser | 82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876 | [
"MIT"
] | 3 | 2015-01-29T04:20:43.000Z | 2015-02-08T05:02:02.000Z | Examples/Example_2.py | jmwerner/iPython_Parser | 82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876 | [
"MIT"
] | 4 | 2015-01-29T18:15:20.000Z | 2015-02-03T23:58:20.000Z | Examples/Example_2.py | jmwerner/txt2pynb | 82c2c14af7b312a7735c7ae6ae28d8a3f2c8b876 | [
"MIT"
] | null | null | null |
# can I have a comment here?
import re
a = 538734
print(re.search('a', "helalo") != None)
print(re.search('a', "hallo") != None)
a = 30 * 25
for i in range(0,5):
print(i)
'''
This is a sigma $\sigma$ symbol in markdown and a forall $\forall$ symbol too!
Here's some mathematics $ 1 + 2 - 3 * 5 / 15$ and "qu... | 12.725806 | 78 | 0.598226 |
2a4c8d2566e58f41d640706fecad5ae122f31804 | 2,061 | py | Python | test/test_phones.py | tnurtdinov-st/python_traning | a5204b073101a9c7870b3219ba7ceff321cf6b41 | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | tnurtdinov-st/python_traning | a5204b073101a9c7870b3219ba7ceff321cf6b41 | [
"Apache-2.0"
] | null | null | null | test/test_phones.py | tnurtdinov-st/python_traning | a5204b073101a9c7870b3219ba7ceff321cf6b41 | [
"Apache-2.0"
] | null | null | null | import re
from random import randrange
| 55.702703 | 181 | 0.802523 |
2a4ee98d7d60b26fe472280ddb00dfeca8c8d165 | 8,352 | py | Python | data_analysis/data_analysis.py | marcoscale98/emojinet | 07f3d87c2b6e1b8dfdcc225691f97cc839117611 | [
"Apache-2.0"
] | null | null | null | data_analysis/data_analysis.py | marcoscale98/emojinet | 07f3d87c2b6e1b8dfdcc225691f97cc839117611 | [
"Apache-2.0"
] | null | null | null | data_analysis/data_analysis.py | marcoscale98/emojinet | 07f3d87c2b6e1b8dfdcc225691f97cc839117611 | [
"Apache-2.0"
] | 1 | 2020-06-21T08:02:28.000Z | 2020-06-21T08:02:28.000Z | import argparse
import logging
import sys
import json
import plotly.offline
import plotly.graph_objs as go
sys.path.append(sys.path[0] + "/..")
from utils.fileprovider import FileProvider
from preprocessing.reader import EvalitaDatasetReader
from nltk.tokenize import TweetTokenizer
logging.getLogger().setLevel(loggi... | 54.588235 | 151 | 0.629909 |
2a4f5e8b3a87fc69bf24b06e6f4c3bf065e18088 | 6,596 | py | Python | examples/pytorch/rgcn/entity_classify.py | shengwenLeong/dgl | 40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7 | [
"Apache-2.0"
] | 2 | 2020-05-05T13:59:09.000Z | 2020-07-25T10:09:34.000Z | examples/pytorch/rgcn/entity_classify.py | shengwenLeong/dgl | 40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7 | [
"Apache-2.0"
] | null | null | null | examples/pytorch/rgcn/entity_classify.py | shengwenLeong/dgl | 40ffa29a1dcd1639b1c41fa3b43e7339c1c187e7 | [
"Apache-2.0"
] | null | null | null | """
Modeling Relational Data with Graph Convolutional Networks
Paper: https://arxiv.org/abs/1703.06103
Code: https://github.com/tkipf/relational-gcn
Difference compared to tkipf/relation-gcn
* l2norm applied to all weights
* remove nodes that won't be touched
"""
import argparse
import numpy as np
import time
import ... | 38.348837 | 117 | 0.640085 |
2a4f98ac2abb3fb715cc59e4d4ffee24c83452b6 | 2,992 | py | Python | setup.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | 10 | 2018-09-10T20:58:47.000Z | 2021-06-24T21:55:55.000Z | setup.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | null | null | null | setup.py | DanielIzquierdo/osisoftpy | c86fbf36a5a6dd7bcd51eebeaddd9eeec1a9b276 | [
"Apache-2.0"
] | 7 | 2018-07-01T00:31:58.000Z | 2021-03-10T05:05:40.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import re
from glob import glob
from io import open
from os.path import basename
from os.path import splitext
import setuptools
from os import path
# Single sourcing the version -
setuptoo... | 31.166667 | 74 | 0.606952 |
2a4fbd7855bed7d6e0f4a700d61e26a1d38e94eb | 11,080 | py | Python | tests/test.py | JostMigenda/hop-SNalert-app | 55c907bf07b1c8df2d5a9b3f7c648106b03406b9 | [
"BSD-3-Clause"
] | null | null | null | tests/test.py | JostMigenda/hop-SNalert-app | 55c907bf07b1c8df2d5a9b3f7c648106b03406b9 | [
"BSD-3-Clause"
] | null | null | null | tests/test.py | JostMigenda/hop-SNalert-app | 55c907bf07b1c8df2d5a9b3f7c648106b03406b9 | [
"BSD-3-Clause"
] | null | null | null | import subprocess
from hop import Stream
from hop.auth import Auth
from hop import auth
from hop.io import StartPosition
from hop.models import GCNCircular
import argparse
import random
import threading
import time
from functools import wraps
import datetime
import numpy
import uuid
from dotenv import load_dotenv
impor... | 32.97619 | 164 | 0.582852 |
2a5062017f7cc51174da9372c129642a7f1b6002 | 992 | py | Python | iotkit/led.py | dhrg/iot-edison | d1a4eed659891ecbebe45e4e2fcf55c7828d01e7 | [
"CC-BY-4.0"
] | null | null | null | iotkit/led.py | dhrg/iot-edison | d1a4eed659891ecbebe45e4e2fcf55c7828d01e7 | [
"CC-BY-4.0"
] | null | null | null | iotkit/led.py | dhrg/iot-edison | d1a4eed659891ecbebe45e4e2fcf55c7828d01e7 | [
"CC-BY-4.0"
] | null | null | null | import mraa # For accessing the GPIO
import time # For sleeping between blinks
global led
if __name__ == '__main__':
main()
del led | 24.8 | 61 | 0.556452 |
2a51385674b04ab4c7bc2dc4e750a01f918e381a | 1,511 | py | Python | Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | Assignments/Exam Preparation/Python Advanced Exam - 27 June 2020/03. List Manipulator.py | KaloyankerR/python-fundamentals-repository | b8e69523ea7e6aa352e8398f0202e283374a0f7c | [
"MIT"
] | null | null | null | from collections import deque
print(list_manipulator([1, 2, 3], "remove", "end"))
print(list_manipulator([1, 2, 3], "remove", "beginning"))
print(list_manipulator([1, 2, 3], "add", "beginning", 20))
print(list_manipulator([1, 2, 3], "add", "end", 30))
print(list_manipulator([1, 2, 3], "remove", "end", 2))
print(list... | 32.847826 | 66 | 0.544011 |
2a522cf24383152e1f43899c4fe827f5c6c726b0 | 6,738 | py | Python | mayan/apps/documents/tests/test_links.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 343 | 2015-01-05T14:19:35.000Z | 2018-12-10T19:07:48.000Z | mayan/apps/documents/tests/test_links.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 191 | 2015-01-03T00:48:19.000Z | 2018-11-30T09:10:25.000Z | mayan/apps/documents/tests/test_links.py | bonitobonita24/Mayan-EDMS | 7845fe0e1e83c81f5d227a16116397a3d3883b85 | [
"Apache-2.0"
] | 114 | 2015-01-08T20:21:05.000Z | 2018-12-10T19:07:53.000Z | from django.urls import reverse
from ..links.document_file_links import (
link_document_file_delete, link_document_file_download_quick
)
from ..links.favorite_links import (
link_document_favorites_add, link_document_favorites_remove
)
from ..links.trashed_document_links import link_document_restore
from ..mod... | 35.650794 | 82 | 0.723212 |
2a52a6d200cba48f11a709eb7672ab1b68768cc1 | 218 | py | Python | cogs/anime.py | TheLastNever/discord_bot | b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f | [
"MIT"
] | null | null | null | cogs/anime.py | TheLastNever/discord_bot | b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f | [
"MIT"
] | null | null | null | cogs/anime.py | TheLastNever/discord_bot | b4bb5513a70ebd0f6f794b035f498de3ae6f9a8f | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
| 14.533333 | 32 | 0.637615 |
2a5311bf4850a13f8b1d521e223d6d0f9a689146 | 1,770 | py | Python | tests/controller/templates_manager/local_temp/bridge.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2019-01-20T17:50:53.000Z | 2019-01-20T17:50:53.000Z | tests/controller/templates_manager/local_temp/bridge.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 192 | 2018-08-01T13:31:16.000Z | 2020-05-29T09:41:06.000Z | tests/controller/templates_manager/local_temp/bridge.py | threefoldtech/0-templates | 4106bb3d4d1de305557bf4748a7d77ffeb302abb | [
"Apache-2.0"
] | 1 | 2018-08-09T12:30:52.000Z | 2018-08-09T12:30:52.000Z | from jumpscale import j
from zerorobot.service_collection import ServiceNotFoundError
from testconfig import config
import random | 36.875 | 124 | 0.651977 |
2a54b836b10d0f5d5aa4979c845c18b9275fdecd | 3,287 | py | Python | insights/parsers/ceph_insights.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 121 | 2017-05-30T20:23:25.000Z | 2022-03-23T12:52:15.000Z | insights/parsers/ceph_insights.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 1,977 | 2017-05-26T14:36:03.000Z | 2022-03-31T10:38:53.000Z | insights/parsers/ceph_insights.py | lhuett/insights-core | 1c84eeffc037f85e2bbf60c9a302c83aa1a50cf8 | [
"Apache-2.0"
] | 244 | 2017-05-30T20:22:57.000Z | 2022-03-26T10:09:39.000Z | """
ceph_insights - command ``ceph insights``
=========================================
"""
import json
import re
from .. import CommandParser, parser
from insights.specs import Specs
| 33.540816 | 85 | 0.60146 |
2a54c4b02d79ac04b72ebbd0cef513843105c1f0 | 227 | py | Python | src/learners/__init__.py | OscarPedaVendere/sc2MultiAgentES | 54df34eb94f00294c2bcd1ac5a0c14386c0bbceb | [
"Apache-2.0"
] | null | null | null | src/learners/__init__.py | OscarPedaVendere/sc2MultiAgentES | 54df34eb94f00294c2bcd1ac5a0c14386c0bbceb | [
"Apache-2.0"
] | 4 | 2021-03-19T03:43:34.000Z | 2022-01-13T01:39:12.000Z | src/learners/__init__.py | OscarPedaVendere/sc2MultiAgentES | 54df34eb94f00294c2bcd1ac5a0c14386c0bbceb | [
"Apache-2.0"
] | null | null | null | from .q_learner import QLearner
from .coma_learner import COMALearner
from .es_learner import ESLearner
REGISTRY = {}
REGISTRY["q_learner"] = QLearner
REGISTRY["coma_learner"] = COMALearner
REGISTRY["es_learner"] = ESLearner
| 22.7 | 38 | 0.792952 |
2a56f5a13c5e84abb272e6b2ff55a131592699d7 | 3,582 | py | Python | ietf/utils/management/base.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 25 | 2022-03-05T08:26:52.000Z | 2022-03-30T15:45:42.000Z | ietf/utils/management/base.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 219 | 2022-03-04T17:29:12.000Z | 2022-03-31T21:16:14.000Z | ietf/utils/management/base.py | hassanakbar4/ietfdb | cabee059092ae776015410640226064331c293b7 | [
"BSD-3-Clause"
] | 22 | 2022-03-04T15:34:34.000Z | 2022-03-28T13:30:59.000Z | # Copyright The IETF Trust 2013-2020, All Rights Reserved
# -*- coding: utf-8 -*-
from email.message import EmailMessage
from textwrap import dedent
from traceback import format_exception, extract_tb
from django.conf import settings
from django.core.management.base import BaseCommand
from ietf.utils.mail import send... | 37.3125 | 96 | 0.672808 |
2a572edc22a1007d158ae57f509ba56d4cf54a6e | 603 | py | Python | lab01/calculadora/urls.py | josepilco7501/TECSUP-DAE-2021-2 | f6e433193edd2b9547a7385f0e03b0aacdb4dcd0 | [
"MIT"
] | null | null | null | lab01/calculadora/urls.py | josepilco7501/TECSUP-DAE-2021-2 | f6e433193edd2b9547a7385f0e03b0aacdb4dcd0 | [
"MIT"
] | null | null | null | lab01/calculadora/urls.py | josepilco7501/TECSUP-DAE-2021-2 | f6e433193edd2b9547a7385f0e03b0aacdb4dcd0 | [
"MIT"
] | null | null | null | from django.urls import path
from.import views
urlpatterns = [
#ex: localhost:8080/app/
path('', views.index, name='index'),
#ex: localhost:8080/app/sumar/n1+n2/
path('sumar/<int:n1>/<int:n2>', views.sumar, name='suma'),
#ex: localhost:8080/app/sumar/n1-n2/
path('restar/<int:n1>/<int:n2>', vie... | 33.5 | 84 | 0.650083 |
2a58d724de9a2eb16bfc33ebafdd4ad0b59e5837 | 688 | py | Python | kmeans_poc/data/generate_dataset.py | katyamust/with_git_actions | 73d9213be1a1bb626b0062afa165ea73d3283443 | [
"MIT"
] | null | null | null | kmeans_poc/data/generate_dataset.py | katyamust/with_git_actions | 73d9213be1a1bb626b0062afa165ea73d3283443 | [
"MIT"
] | null | null | null | kmeans_poc/data/generate_dataset.py | katyamust/with_git_actions | 73d9213be1a1bb626b0062afa165ea73d3283443 | [
"MIT"
] | 1 | 2020-07-03T02:08:43.000Z | 2020-07-03T02:08:43.000Z | # generate dataset : random data in a two-dimensional space
#https://towardsdatascience.com/understanding-k-means-clustering-in-machine-learning-6a6e67336aa1
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
#%matplotlib inline
if __name__ == '__main__':
... | 17.641026 | 97 | 0.632267 |
2a5b794eee3881243d82a5403699324690ff176a | 115 | py | Python | stere/__init__.py | thomasmost/stere | f10ae1a40269c1642b9da49df06936fafb9b4a5b | [
"MIT"
] | 17 | 2017-12-11T15:49:10.000Z | 2021-06-16T19:29:45.000Z | stere/__init__.py | thomasmost/stere | f10ae1a40269c1642b9da49df06936fafb9b4a5b | [
"MIT"
] | 328 | 2018-02-06T02:29:21.000Z | 2022-03-30T10:47:33.000Z | stere/__init__.py | thomasmost/stere | f10ae1a40269c1642b9da49df06936fafb9b4a5b | [
"MIT"
] | 3 | 2019-04-05T19:40:55.000Z | 2021-11-04T06:50:32.000Z | from .browserenabled import BrowserEnabled as Stere
from .page import Page
__all__ = [
"Stere",
"Page",
]
| 14.375 | 51 | 0.686957 |
2a5f82639377b0ea5dadf1fcd65d906ed85ab902 | 2,190 | py | Python | antlr/SevenBillionHumansParser.py | behrmann/7billionhumans | 36d53daf278ef4f3729bc5cba2f2398d5411bd6d | [
"MIT"
] | 45 | 2018-09-05T04:56:59.000Z | 2021-11-22T08:57:26.000Z | antlr/SevenBillionHumansParser.py | behrmann/7billionhumans | 36d53daf278ef4f3729bc5cba2f2398d5411bd6d | [
"MIT"
] | 36 | 2018-09-01T11:34:26.000Z | 2021-05-19T23:20:49.000Z | antlr/SevenBillionHumansParser.py | behrmann/7billionhumans | 36d53daf278ef4f3729bc5cba2f2398d5411bd6d | [
"MIT"
] | 36 | 2018-09-01T07:44:19.000Z | 2021-09-10T19:07:35.000Z | from antlr4 import *
from antlr4.error.ErrorListener import ErrorListener
from antlr.SBHasmLexer import SBHasmLexer
from antlr.SBHasmListener import SBHasmListener
from antlr.SBHasmParser import SBHasmParser
if __name__ == '__main__':
s = SevenBillionHumansParser("../solutions/55 - Data Flowers/size-10_spe... | 26.707317 | 108 | 0.682192 |
2a5ff21418d48ac09c9e93cc6ba5b5b67b0da4ce | 442 | py | Python | pig-latin/pig_latin.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | pig-latin/pig_latin.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | pig-latin/pig_latin.py | cmccandless/ExercismSolutions-python | d80bf441c842daa2eb446bdba9c03d3e8864ea58 | [
"MIT"
] | null | null | null | consonents = ['sch', 'squ', 'thr', 'qu', 'th', 'sc', 'sh', 'ch', 'st', 'rh']
consonents.extend('bcdfghjklmnpqrstvwxyz')
| 27.625 | 77 | 0.488688 |
2a6147abbf7955e413192c373cc1c16dc8668901 | 5,315 | py | Python | amalia/simulation/PoissonSimulation.py | Aganonce/AMALIA-lite | a9c854b45cc6486763349c262e44ee4d27d6bfac | [
"MIT"
] | null | null | null | amalia/simulation/PoissonSimulation.py | Aganonce/AMALIA-lite | a9c854b45cc6486763349c262e44ee4d27d6bfac | [
"MIT"
] | null | null | null | amalia/simulation/PoissonSimulation.py | Aganonce/AMALIA-lite | a9c854b45cc6486763349c262e44ee4d27d6bfac | [
"MIT"
] | 2 | 2021-05-21T07:55:54.000Z | 2021-09-23T12:58:50.000Z | import logging
from tools.EventGeneration import convert_date, generate_random_time, generate_random_node_id
logger = logging.getLogger(__name__.split('.')[-1])
from features.ResponseTypeFeature import ResponseTypeFeature
from features.ReplayTimeSeriesFeature import ReplayTimeSeriesFeature
import tools.Cache as Cach... | 40.572519 | 133 | 0.660207 |
2a6482a0a0ce793fafb8fa2a355bc1331003895e | 13,174 | py | Python | flee/pmicro_flee.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | null | null | null | flee/pmicro_flee.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | null | null | null | flee/pmicro_flee.py | jataware/flee | 67c00c4572e71dd2bbfb390d7d7ede13ffb9594e | [
"BSD-3-Clause"
] | null | null | null | import datetime
import math
import os
import sys
from functools import wraps
from typing import Optional, Tuple
from flee import pflee
from flee.SimulationSettings import SimulationSettings # noqa, pylint: disable=W0611
if os.getenv("FLEE_TYPE_CHECK") is not None and os.environ["FLEE_TYPE_CHECK"].lower() == "true":
... | 29.340757 | 99 | 0.546759 |
2a6744398cdf360569c0ec830105f233ecaacbeb | 2,211 | py | Python | src/my_pubsub.py | shirosweets/vosk-speech-to-text | 4667b107dd3ba174435e8deab1c122d83381e902 | [
"MIT"
] | 1 | 2021-04-16T01:49:39.000Z | 2021-04-16T01:49:39.000Z | src/my_pubsub.py | shirosweets/vosk-speech-to-text | 4667b107dd3ba174435e8deab1c122d83381e902 | [
"MIT"
] | null | null | null | src/my_pubsub.py | shirosweets/vosk-speech-to-text | 4667b107dd3ba174435e8deab1c122d83381e902 | [
"MIT"
] | null | null | null | import os
import datetime
from json import dumps
from google.cloud import pubsub_v1
from config_speech import config as conf
from google.api_core.exceptions import AlreadyExists
| 33 | 78 | 0.602895 |
2a67605a117277819275759c2973c2e8735861bc | 2,497 | py | Python | ui/_alert.py | isbm/pybug | 406e47d0b75961d8b8a984b02053a9182f96c56d | [
"MIT"
] | null | null | null | ui/_alert.py | isbm/pybug | 406e47d0b75961d8b8a984b02053a9182f96c56d | [
"MIT"
] | null | null | null | ui/_alert.py | isbm/pybug | 406e47d0b75961d8b8a984b02053a9182f96c56d | [
"MIT"
] | 1 | 2020-03-04T10:11:41.000Z | 2020-03-04T10:11:41.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'xml/alert.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
try:
_encoding =... | 40.934426 | 103 | 0.716059 |
2a68fb1e3fb5aa04aab2b0e5a4bef92bf6a0aa37 | 689 | py | Python | scripts/client_lidar.py | Paulllit/projet_proto_lidar | a84c80261c81ab08e365c575c416863c06355b71 | [
"BSD-2-Clause"
] | null | null | null | scripts/client_lidar.py | Paulllit/projet_proto_lidar | a84c80261c81ab08e365c575c416863c06355b71 | [
"BSD-2-Clause"
] | null | null | null | scripts/client_lidar.py | Paulllit/projet_proto_lidar | a84c80261c81ab08e365c575c416863c06355b71 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import rospy
import math
from sensor_msgs.msg import LaserScan #import des donnes laser du lidar
import time
from rplidar_ros.srv import *
########################################################## Main ######################################################
if __name__ == "__main__":
l=Clien... | 23.758621 | 118 | 0.56894 |
2a695f1df515fd4839a432790f5921c3bfa4f906 | 681 | py | Python | tests/util/config_mixin.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | tests/util/config_mixin.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | 2 | 2020-01-22T22:21:02.000Z | 2020-01-22T22:28:37.000Z | tests/util/config_mixin.py | pruh/backee | 3e88d799a50f75033ae15d6c16655da8ae791886 | [
"MIT"
] | null | null | null | import os
import logging
from unittest import mock
from backee.parser.config_parser import parse_config
| 29.608696 | 71 | 0.674009 |
2a6a3ba6e47587bb91c1059380ff1f854f20f597 | 2,022 | py | Python | utils/__init__.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | utils/__init__.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | utils/__init__.py | KpaBap/palbot | 38d2b7958e310f45a28cf1b3173967b92f819946 | [
"MIT"
] | null | null | null | #from utils import ordinal
import re
from urllib.parse import quote as uriquote
import asyncio
from bs4 import BeautifulSoup
import collections
from utils.context import MoreContext
from utils.context import Location
from utils.paginator import Paginator
from utils.units import units
ordinal = lambda n: "%d%s" % (n,"t... | 30.636364 | 87 | 0.607319 |
2a6ac7f9df2f1802e7060c999c2722525fb5cfb6 | 647 | py | Python | tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py | Crunch-io/crunch-cube | 80986d5b2106c774f05176fb6c6a5ea0d840f09d | [
"MIT"
] | 3 | 2021-01-22T20:42:31.000Z | 2021-06-02T17:53:19.000Z | tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py | Crunch-io/crunch-cube | 80986d5b2106c774f05176fb6c6a5ea0d840f09d | [
"MIT"
] | 331 | 2017-11-13T22:41:56.000Z | 2021-12-02T21:59:43.000Z | tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py | Crunch-io/crunch-cube | 80986d5b2106c774f05176fb6c6a5ea0d840f09d | [
"MIT"
] | 1 | 2021-02-19T02:49:00.000Z | 2021-02-19T02:49:00.000Z | [
[float("NaN"), float("NaN"), 73.55631426, 76.45173763],
[float("NaN"), float("NaN"), 71.11031587, 73.6557548],
[float("NaN"), float("NaN"), 11.32891221, 9.80444014],
[float("NaN"), float("NaN"), 10.27812002, 8.15602626],
[float("NaN"), float("NaN"), 21.60703222, 17.9604664],
[float("NaN"), flo... | 46.214286 | 59 | 0.585781 |
2a6c2e36e5eed7008fca91c8906b878bedc5fb28 | 242 | py | Python | 02-Tuples-and-sets/count_same_values.py | nmoskova/Python-advanced | 007f496e868aa151e39d79446b055e76ffb2db95 | [
"MIT"
] | null | null | null | 02-Tuples-and-sets/count_same_values.py | nmoskova/Python-advanced | 007f496e868aa151e39d79446b055e76ffb2db95 | [
"MIT"
] | null | null | null | 02-Tuples-and-sets/count_same_values.py | nmoskova/Python-advanced | 007f496e868aa151e39d79446b055e76ffb2db95 | [
"MIT"
] | null | null | null | numbers = [float(num) for num in input().split()]
nums_dict = {}
for el in numbers:
if el not in nums_dict:
nums_dict[el] = 0
nums_dict[el] += 1
[print(f"{el:.1f} - {occurence} times") for el, occurence in nums_dict.items()] | 26.888889 | 79 | 0.628099 |
2a6d411eb9f892a9e63182fd8d2cb98e424999b0 | 3,021 | py | Python | main.py | maxc0d3r/google-workspace-manager | d2a4e561ae8278455cd5b0c03283a413ebeaff54 | [
"MIT"
] | null | null | null | main.py | maxc0d3r/google-workspace-manager | d2a4e561ae8278455cd5b0c03283a413ebeaff54 | [
"MIT"
] | null | null | null | main.py | maxc0d3r/google-workspace-manager | d2a4e561ae8278455cd5b0c03283a413ebeaff54 | [
"MIT"
] | null | null | null | """
Usage:
main.py domains list
main.py domains add [--body=<request_body>] [--file=<input_file>]
main.py users list [--domain=<domain_name>]
main.py users get [--email=<email>]
main.py users add [--body=<request_body>] [--file=<input_file>]
main.py users update [--email=<email>] [--body=<reque... | 34.329545 | 90 | 0.568355 |
2a6e1a8bb73dc390e5d24fbf0db6bcb3ee7ba1cf | 266 | py | Python | run_tests.py | Knitschi/CPFBuildscripts | ee20e4b08b3e063535750d019c6e730e55426cce | [
"MIT"
] | 1 | 2018-02-12T14:30:39.000Z | 2018-02-12T14:30:39.000Z | run_tests.py | Knitschi/CPFBuildscripts | ee20e4b08b3e063535750d019c6e730e55426cce | [
"MIT"
] | 8 | 2018-04-18T12:40:13.000Z | 2019-05-19T17:00:56.000Z | run_tests.py | Knitschi/CPFBuildscripts | ee20e4b08b3e063535750d019c6e730e55426cce | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import unittest
import sys
import os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from python.buildautomat_unit_tests import *
from python.filesystemaccess_unit_tests import *
if __name__ == '__main__':
unittest.main()
| 19 | 60 | 0.766917 |
2a6ec9b3a897e3fc51ab524a28ca41d20795c9f3 | 1,790 | py | Python | django_formset_vuejs/forms.py | fatse/django-formsets-vuejs | c2d6e134e58c3905539eb7c5322aeeda1db7fad4 | [
"MIT"
] | 11 | 2020-10-24T04:00:01.000Z | 2022-03-07T01:14:28.000Z | django_formset_vuejs/forms.py | fatse/django-formsets-vuejs | c2d6e134e58c3905539eb7c5322aeeda1db7fad4 | [
"MIT"
] | 5 | 2021-03-19T08:08:16.000Z | 2021-06-21T01:26:25.000Z | django_formset_vuejs/forms.py | fatse/django-formsets-vuejs | c2d6e134e58c3905539eb7c5322aeeda1db7fad4 | [
"MIT"
] | 2 | 2021-05-02T18:43:32.000Z | 2022-03-10T08:23:16.000Z | from django.forms import ModelForm, inlineformset_factory, BaseInlineFormSet
from . import models
BookFormset = inlineformset_factory(models.Author, models.Book, form=BookForm, can_delete=True, extra=0)
AuthorsFormset = inlineformset_factory(models.AuthorContainer, models.Author, formset=BaseAuthorFormset,
... | 29.833333 | 104 | 0.62905 |
2a6ed08ae7b12c0e3073c649e6772dd81c550a9f | 74 | py | Python | test/__init__.py | shikajiro/picosdk-python-wrappers | c441870e1d39aa6a85b3cfd5acb1b3968669a7cf | [
"0BSD"
] | 114 | 2018-10-05T07:11:20.000Z | 2022-03-14T15:51:15.000Z | test/__init__.py | shikajiro/picosdk-python-wrappers | c441870e1d39aa6a85b3cfd5acb1b3968669a7cf | [
"0BSD"
] | 26 | 2018-09-24T13:43:55.000Z | 2021-05-03T21:18:02.000Z | test/__init__.py | shikajiro/picosdk-python-wrappers | c441870e1d39aa6a85b3cfd5acb1b3968669a7cf | [
"0BSD"
] | 84 | 2018-09-14T16:05:32.000Z | 2022-03-30T19:25:56.000Z | #
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
#
| 18.5 | 69 | 0.716216 |
2a6f14b3af74899266a2956f8a6a90c52813e8dd | 6,105 | py | Python | BMES_exps/BMES.py | volgachen/Chinese-Tokenization | 467e08da6fe271b6e33258d5aa6682c0405a3f32 | [
"Apache-2.0"
] | null | null | null | BMES_exps/BMES.py | volgachen/Chinese-Tokenization | 467e08da6fe271b6e33258d5aa6682c0405a3f32 | [
"Apache-2.0"
] | null | null | null | BMES_exps/BMES.py | volgachen/Chinese-Tokenization | 467e08da6fe271b6e33258d5aa6682c0405a3f32 | [
"Apache-2.0"
] | 1 | 2020-07-12T10:38:34.000Z | 2020-07-12T10:38:34.000Z | from collections import Counter
from math import log
from tqdm import tqdm
import re
from evaluation import evaluateSet
if __name__ == '__main__':
print("Train Set: PKU; Test Set: Weibo, w/o re-replacement")
hmm_model, trans, log_total = build_model("BMES_corpus/rmrb_BMES.txt")
# l... | 30.989848 | 95 | 0.53923 |
2a6f4b7eb3da6c0aa67838ecc1441c566fdf5e21 | 5,770 | py | Python | third_party/nucleus/io/bedgraph.py | llevar/deepvariant | aba55537eec832e6cea678349422124ef50680f4 | [
"BSD-3-Clause"
] | 1 | 2020-11-28T13:11:08.000Z | 2020-11-28T13:11:08.000Z | third_party/nucleus/io/bedgraph.py | hcxiong/deepvariant | aba55537eec832e6cea678349422124ef50680f4 | [
"BSD-3-Clause"
] | null | null | null | third_party/nucleus/io/bedgraph.py | hcxiong/deepvariant | aba55537eec832e6cea678349422124ef50680f4 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2018 Google Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
#... | 36.987179 | 80 | 0.775043 |
2a6f89f48cd8c7b16e844264141418335e7aca6a | 199 | py | Python | code/bqutils/auth.py | victoria-cds-sig/explore_mimiciv | 856705ab1af7ecbfe30d5e8054747b61de8af031 | [
"MIT"
] | 3 | 2020-11-23T04:29:16.000Z | 2021-05-29T06:22:00.000Z | code/bqutils/auth.py | victoria-cds-sig/explore_mimiciv | 856705ab1af7ecbfe30d5e8054747b61de8af031 | [
"MIT"
] | null | null | null | code/bqutils/auth.py | victoria-cds-sig/explore_mimiciv | 856705ab1af7ecbfe30d5e8054747b61de8af031 | [
"MIT"
] | 4 | 2020-11-23T05:18:54.000Z | 2021-05-29T06:23:12.000Z | import google.auth
| 18.090909 | 61 | 0.628141 |
2a6fdaada48dd95b31346bb6ce7bd0eeab1a0b16 | 12,312 | py | Python | solnml/components/evaluators/rgs_evaluator.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/evaluators/rgs_evaluator.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | solnml/components/evaluators/rgs_evaluator.py | zhengjian2322/soln-ml | ceff6c432921df9809f9552aaa1b0bd5a1b7e8d2 | [
"MIT"
] | null | null | null | from ConfigSpace import ConfigurationSpace, CategoricalHyperparameter
import time
import warnings
import os
import numpy as np
import pickle as pkl
from sklearn.metrics.scorer import balanced_accuracy_scorer
from solnml.utils.logging_utils import get_logger
from solnml.components.evaluators.base_evaluator import _Base... | 44.608696 | 118 | 0.619964 |
2a71ca14c7810cf8c3b652bf81d516b7e465ec6e | 5,830 | py | Python | testing/MLDB-1104-input-data-spec.py | kstepanmpmg/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | testing/MLDB-1104-input-data-spec.py | tomzhang/mldb | a09cf2d9ca454d1966b9e49ae69f2fe6bf571494 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | testing/MLDB-1104-input-data-spec.py | matebestek/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | #
# MLDB-1104-input-data-spec.py
# mldb.ai inc, 2015
# This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
#
import unittest
import datetime
import random
from mldb import mldb, ResponseException
if __name__ == '__main__':
mldb.run_tests()
| 35.766871 | 104 | 0.527444 |
2a73ad7dadbf46c49b812817e0143b14c755fc20 | 6,000 | py | Python | code/python/external/pi3d/shape/EnvironmentCube.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 30 | 2015-02-18T14:07:00.000Z | 2021-12-11T15:19:01.000Z | code/python/external/pi3d/shape/EnvironmentCube.py | silky/echomesh | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | [
"MIT"
] | 16 | 2015-01-01T23:17:24.000Z | 2015-04-18T23:49:27.000Z | code/python/external/pi3d/shape/EnvironmentCube.py | silky/echomesh | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | [
"MIT"
] | 31 | 2015-03-11T20:04:07.000Z | 2020-11-02T13:56:59.000Z | import os.path
from pi3d import *
from pi3d.Buffer import Buffer
from pi3d.Shape import Shape
from pi3d.Texture import Texture
CUBE_PARTS = ['front', 'right', 'top', 'bottom', 'left', 'back']
BOTTOM_INDEX = 3
def loadECfiles(path, fname, suffix='jpg', nobottom=False):
"""Helper for loading environment cube faces.
... | 45.801527 | 130 | 0.5405 |
2a74193bd4405cdd9a1190cbabe2ed90d97be2b2 | 5,678 | py | Python | views.py | margish100/Api-json | 82b0561f6335708702b997dc8dd1e62c7df5d03d | [
"MIT"
] | null | null | null | views.py | margish100/Api-json | 82b0561f6335708702b997dc8dd1e62c7df5d03d | [
"MIT"
] | null | null | null | views.py | margish100/Api-json | 82b0561f6335708702b997dc8dd1e62c7df5d03d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework.parsers import JSONParser
from .models import Article
from .serializers import ArticleSerializer
from django.views.decorators.csrf import csrf_exempt
from rest_framework.decorators import api_view
from rest... | 30.202128 | 105 | 0.66608 |
2a748e6927d352016f97afb5ed56a3003dfed71b | 4,101 | py | Python | Hangman.py | Draxsis/hangman-game | ca7cbb353d25b3d4def331d150e202e43940da97 | [
"MIT"
] | null | null | null | Hangman.py | Draxsis/hangman-game | ca7cbb353d25b3d4def331d150e202e43940da97 | [
"MIT"
] | null | null | null | Hangman.py | Draxsis/hangman-game | ca7cbb353d25b3d4def331d150e202e43940da97 | [
"MIT"
] | null | null | null | import random
import time
# Welcome and start
time.sleep(1)
player_name = input('Please enter your player name : ')
time.sleep(1)
print(f'Welcome to hangman game {player_name}')
# main function
# If the player wants to play again or not
# hangman game function
main()
hangman() | 31.546154 | 146 | 0.407462 |
2a75088725eb73c79e1b36480f5ee8a4db2071f4 | 7,601 | py | Python | vermin_rules_3.9.py | gousaiyang/python-change-parser | 94195e42d3e5106b69792e352d225b8b2b484fe1 | [
"MIT"
] | 3 | 2020-01-01T03:19:34.000Z | 2020-01-11T13:59:58.000Z | vermin_rules_3.9.py | gousaiyang/python-change-parser | 94195e42d3e5106b69792e352d225b8b2b484fe1 | [
"MIT"
] | null | null | null | vermin_rules_3.9.py | gousaiyang/python-change-parser | 94195e42d3e5106b69792e352d225b8b2b484fe1 | [
"MIT"
] | null | null | null | modules_rules = {
"graphlib": (None, (3, 9)),
"test.support.socket_helper": (None, (3, 9)),
"zoneinfo": (None, (3, 9)),
}
classes_rules = {
"asyncio.BufferedProtocol": (None, (3, 7)),
"asyncio.PidfdChildWatcher": (None, (3, 9)),
"importlib.abc.Traversable": (None, (3, 9)),
"importlib.abc.Tr... | 45.51497 | 79 | 0.572951 |
2a75f505d31db107fb926b596e2c6197ac0613a9 | 48,831 | py | Python | src/pynvraw/nvapi_api.py | JustAMan/pynvraw | 9a860c547256cfc6f527bf4be3aeeed27d95fd85 | [
"MIT"
] | 8 | 2021-07-29T22:35:31.000Z | 2022-01-27T06:41:36.000Z | src/pynvraw/nvapi_api.py | JustAMan/pynvraw | 9a860c547256cfc6f527bf4be3aeeed27d95fd85 | [
"MIT"
] | 1 | 2021-12-19T05:28:29.000Z | 2021-12-19T05:28:29.000Z | src/pynvraw/nvapi_api.py | JustAMan/pynvraw | 9a860c547256cfc6f527bf4be3aeeed27d95fd85 | [
"MIT"
] | 1 | 2021-10-05T09:24:54.000Z | 2021-10-05T09:24:54.000Z | '''Low-level API working through obscure nvapi.dll.'''
import ctypes
import typing
import sys
import collections
import enum
from .status import NvStatus, NvError, NVAPI_OK
nvapi = ctypes.CDLL('nvapi64.dll' if sys.maxsize > 2**32 else 'nvapi.dll')
_nvapi_QueryInterface = nvapi.nvapi_QueryInterface
_nvapi_QueryInter... | 41.347163 | 169 | 0.636379 |
2a7713ec88b506d2773b4218843ce5cb75b2a38f | 5,537 | py | Python | prototype/ukwa/lib/sip/ids.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 1 | 2021-05-18T21:47:29.000Z | 2021-05-18T21:47:29.000Z | prototype/ukwa/lib/sip/ids.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 67 | 2017-11-22T11:13:18.000Z | 2022-03-25T09:48:49.000Z | prototype/ukwa/lib/sip/ids.py | GilHoggarth/ukwa-manage | 5893e9ea16c02e76eb81b2ccf7e161eeb183db9a | [
"Apache-2.0"
] | 4 | 2020-01-17T17:23:54.000Z | 2021-04-11T09:46:09.000Z | #!/usr/bin/env python
"""
Generic methods used for verifying/indexing SIPs.
"""
from __future__ import absolute_import
import re
import logging
import tarfile
import hdfs
from lxml import etree
from StringIO import StringIO
# import the Celery app context
#from crawl.celery import app
#from crawl.celery import cfg
... | 42.267176 | 176 | 0.519234 |
2a7afbc42adc7196fbe7873b0d70fede0a2ca8a1 | 186 | py | Python | gentelella/registeration/forms.py | horoyoii/admin_dashboard_edgex | 9aea5e43eeb3da17d9e9c65c3ed0337fe7694cb8 | [
"MIT"
] | 2 | 2020-05-24T20:34:41.000Z | 2021-08-28T07:27:45.000Z | dashboard/registeration/forms.py | horoyoii/graduation_piece | 4f907a10636e3862d09e950c6eb5f12e95b1a8e5 | [
"MIT"
] | 5 | 2021-03-19T09:14:10.000Z | 2021-06-10T19:54:28.000Z | gentelella/registeration/forms.py | horoyoii/admin_dashboard_edgex | 9aea5e43eeb3da17d9e9c65c3ed0337fe7694cb8 | [
"MIT"
] | 1 | 2020-04-04T07:58:51.000Z | 2020-04-04T07:58:51.000Z | from django import forms
from .models import *
| 14.307692 | 40 | 0.672043 |
2a7c07919fb5a1ec10d504c1070cf336089772fc | 1,334 | py | Python | tests/tensors/similarity_functions/dot_product_test.py | richarajpal/deep_qa | d918335a1bed71b9cfccf1d5743321cee9c61952 | [
"Apache-2.0"
] | 459 | 2017-02-08T13:40:17.000Z | 2021-12-12T12:57:48.000Z | deep_qa-master/tests/tensors/similarity_functions/dot_product_test.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | 176 | 2017-01-26T01:19:41.000Z | 2018-04-22T19:16:01.000Z | deep_qa-master/tests/tensors/similarity_functions/dot_product_test.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | 154 | 2017-01-26T01:00:30.000Z | 2021-02-05T10:44:42.000Z | # pylint: disable=no-self-use,invalid-name
import numpy
from numpy.testing import assert_almost_equal
import keras.backend as K
from deep_qa.tensors.similarity_functions.dot_product import DotProduct
| 44.466667 | 106 | 0.664168 |
2a7c4f4b2ed2f4f224397934a4adf80a74d5d652 | 8,699 | py | Python | kiwi/cogs/Mod.py | Andres2055/Kiwi-bot | 1f76ad886972de89fe0e6e8b1078ff01cc76ae7d | [
"MIT"
] | 1 | 2021-03-30T05:15:36.000Z | 2021-03-30T05:15:36.000Z | kiwi/cogs/Mod.py | Andres2055/Kiwi-bot | 1f76ad886972de89fe0e6e8b1078ff01cc76ae7d | [
"MIT"
] | null | null | null | kiwi/cogs/Mod.py | Andres2055/Kiwi-bot | 1f76ad886972de89fe0e6e8b1078ff01cc76ae7d | [
"MIT"
] | 1 | 2018-09-23T07:04:23.000Z | 2018-09-23T07:04:23.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
He copiado y modificado software ajeno. Gran parte de este script es una
modificacin y/o mejora del original, por ello doy los debidos crditos al
autor del software original:
MIT License
Copyright (c) 2016 - 2017 Eduard Nikoleisen
Permission is hereby ... | 37.175214 | 102 | 0.676859 |
2a7c896a391a02f788ac4dbbb70ff15ab41ff427 | 8,566 | py | Python | scripts/genotype/GetReadDepthDiff.py | EichlerLab/smrtsv2 | b71db8b66a2b701835998982f4fa6ec84ed46504 | [
"MIT"
] | 45 | 2019-01-25T20:01:30.000Z | 2022-01-11T23:56:24.000Z | scripts/genotype/GetReadDepthDiff.py | EichlerLab/smrtsv2 | b71db8b66a2b701835998982f4fa6ec84ed46504 | [
"MIT"
] | 58 | 2018-11-21T00:07:44.000Z | 2022-01-18T13:45:03.000Z | scripts/genotype/GetReadDepthDiff.py | EichlerLab/smrtsv2 | b71db8b66a2b701835998982f4fa6ec84ed46504 | [
"MIT"
] | 8 | 2019-01-27T18:49:55.000Z | 2019-11-26T14:21:19.000Z | #!/usr/bin/env python3
import argparse
import gc
import numpy as np
import os
import pandas as pd
import pysam
# Number of SVs to process before resetting pysam (close and re-open file). Avoids a memory leak in pysam.
PYSAM_RESET_INTERVAL = 1000
def get_read_depth(df_subset, bam_file_name, mapq, ref_filename=None)... | 35.991597 | 133 | 0.661919 |
2a7e107792c23c49f4303524f074d2e06ddfaa6a | 16,017 | py | Python | examples/cpcdata.py | zhmcclient/python-zhmcclient | 7d200afb0343a02535c52dc8b6ba0d224010075c | [
"Apache-2.0"
] | 30 | 2016-08-24T10:02:19.000Z | 2021-11-25T10:44:26.000Z | examples/cpcdata.py | zhmcclient/python-zhmcclient | 7d200afb0343a02535c52dc8b6ba0d224010075c | [
"Apache-2.0"
] | 883 | 2016-08-23T12:32:12.000Z | 2022-03-28T13:18:24.000Z | examples/cpcdata.py | zhmcclient/python-zhmcclient | 7d200afb0343a02535c52dc8b6ba0d224010075c | [
"Apache-2.0"
] | 25 | 2017-06-23T18:10:51.000Z | 2022-03-28T02:53:29.000Z | #!/usr/bin/env python
# Copyright 2016-2021 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | 30.566794 | 79 | 0.617157 |
2a7eae6a3cfc5393e3f489827ec889c44c331afe | 5,991 | py | Python | model-training/mtl_processor.py | imdiptanu/MUDESv2 | 9cab6571a381e076c1174a600c5a27858ef78f53 | [
"Apache-2.0"
] | null | null | null | model-training/mtl_processor.py | imdiptanu/MUDESv2 | 9cab6571a381e076c1174a600c5a27858ef78f53 | [
"Apache-2.0"
] | null | null | null | model-training/mtl_processor.py | imdiptanu/MUDESv2 | 9cab6571a381e076c1174a600c5a27858ef78f53 | [
"Apache-2.0"
] | null | null | null | from farm.data_handler.processor import Processor
from tokenizers.pre_tokenizers import WhitespaceSplit
from farm.data_handler.samples import (
Sample,
SampleBasket,
)
from farm.data_handler.utils import expand_labels
import ast
import numpy as np
import pandas as pd
| 34.630058 | 94 | 0.55333 |
2a7ffe46901a396481978f7847250513748371b6 | 611 | py | Python | knightmovs_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | null | null | null | knightmovs_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | 2 | 2016-11-01T09:57:36.000Z | 2016-11-01T10:05:50.000Z | knightmovs_test.py | rcolomina/pythonchess | 1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from piece import Piece
from gameNode import GameNode
from knightmovs import *
from functions import *
listPiecesWhite=[]
listPiecesBlack=[]
w1=Piece('Q',[3,1])
w2=Piece('N',[3,2])
w3=Piece('N',[4,2])
w4=Piece('B',[2,3])
listPiecesWhite.append(w1)
listPiecesWhite.append(w2)
listPiecesWhite.append(w... | 21.821429 | 102 | 0.752864 |
2a828d4b761c0ddb67592e07965d549c25c16293 | 1,519 | py | Python | Rendering/Core/Testing/Python/ImageActor.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 3 | 2020-06-20T23:31:06.000Z | 2021-01-11T02:17:16.000Z | Rendering/Core/Testing/Python/ImageActor.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 1 | 2020-12-01T23:21:02.000Z | 2020-12-02T23:44:43.000Z | Rendering/Core/Testing/Python/ImageActor.py | jasper-yeh/VtkDotNet | 84b56f781cb511694e4380cebfb245bbefe2560b | [
"BSD-3-Clause"
] | 5 | 2015-10-09T04:12:29.000Z | 2021-12-15T16:57:11.000Z | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Create the RenderWindow, Renderer and both Actors
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRen... | 35.325581 | 70 | 0.780118 |
2a8363a38588e48c3e8be09e652671f8d40a05b1 | 152 | py | Python | bot/typings/common.py | Axelancerr/Life | 1e214af2a46439a756c442967be4bfa8b05fd99c | [
"MIT"
] | 27 | 2020-10-18T04:35:00.000Z | 2021-08-03T13:21:27.000Z | dashboard/typings/common.py | Axelancerr/Life-dashboard | ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2 | [
"MIT"
] | 19 | 2020-12-04T23:03:51.000Z | 2021-08-14T20:21:53.000Z | dashboard/typings/common.py | Axelancerr/Life-dashboard | ecde503c1a90fdedd680ae19d22b3f5c9da4c4c2 | [
"MIT"
] | 7 | 2020-10-26T18:51:17.000Z | 2021-07-07T05:39:01.000Z | # Future
from __future__ import annotations
# Standard Library
from typing import Literal
ImageFormat = Literal["webp", "jpeg", "jpg", "png", "gif"]
| 16.888889 | 58 | 0.723684 |
2a84c203c8e242c343a0a2986ab07c180e14f97b | 6,920 | py | Python | boggle.py | tron32213021/boggle-game | 3203e4bb51ab9ccee09cc292106e0385d1cfbb4c | [
"MIT"
] | null | null | null | boggle.py | tron32213021/boggle-game | 3203e4bb51ab9ccee09cc292106e0385d1cfbb4c | [
"MIT"
] | null | null | null | boggle.py | tron32213021/boggle-game | 3203e4bb51ab9ccee09cc292106e0385d1cfbb4c | [
"MIT"
] | null | null | null | #!/usr/local/anaconda/bin/python
#copyright: Zhenye Jiang, tronsupernova@outlook.com
from random import random
from tkinter import *
from copy import deepcopy
if __name__ == "__main__":
Boggle().playTK()
| 31.454545 | 137 | 0.506647 |
2a84cbc2017bac94e59b7e27f9e01644f4ef565c | 7,826 | py | Python | chart/message_passing_tree/message_passing_tree/decorators.py | JoeyBF/sseq | d553df5e2466aaad47f4a36bf5e051a3922b0dd0 | [
"Apache-2.0",
"MIT"
] | 7 | 2021-04-22T04:06:09.000Z | 2022-01-25T04:05:49.000Z | chart/message_passing_tree/message_passing_tree/decorators.py | JoeyBF/sseq | d553df5e2466aaad47f4a36bf5e051a3922b0dd0 | [
"Apache-2.0",
"MIT"
] | 68 | 2020-03-21T22:37:24.000Z | 2022-03-31T02:51:35.000Z | chart/message_passing_tree/message_passing_tree/decorators.py | JoeyBF/sseq | d553df5e2466aaad47f4a36bf5e051a3922b0dd0 | [
"Apache-2.0",
"MIT"
] | 5 | 2021-02-17T06:37:43.000Z | 2022-02-01T03:53:22.000Z | from copy import copy
import functools
import inspect
import sys
import traceback
from . import ansi
from .agent import Agent
reset_global_handlers()
handler_source_agent_argument_name = {"in" : "source_agent_path", "out" : "source_agent_id"}
# Given a function named "handle__cmd__sub_cmd__a" ret... | 36.915094 | 126 | 0.583312 |
2a8616811d43ccd05d2af0c119eb8d355bf9f7bd | 7,740 | py | Python | tests/lightning/utils/helpers.py | jexio/fulmo | daa4bd4f1cf3b8bd785a9024a413db9a0238f10c | [
"MIT"
] | null | null | null | tests/lightning/utils/helpers.py | jexio/fulmo | daa4bd4f1cf3b8bd785a9024a413db9a0238f10c | [
"MIT"
] | 80 | 2021-07-13T12:58:25.000Z | 2022-03-24T03:17:08.000Z | tests/lightning/utils/helpers.py | jexio/fulmo | daa4bd4f1cf3b8bd785a9024a413db9a0238f10c | [
"MIT"
] | null | null | null | # flake8: noqa
# Copyright The PyTorch Lightning team.
#
# 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... | 30 | 100 | 0.62584 |
2a863733ace28ef6349e137d5a4a527f5a173db6 | 423 | py | Python | bootstrapvz/providers/virtualbox/tasks/boot.py | qqshfox/bootstrap-vz | 38fc7c52407d015d3c75867bfea266d0aec6d7e2 | [
"Apache-2.0"
] | 1 | 2016-07-21T15:10:26.000Z | 2016-07-21T15:10:26.000Z | bootstrapvz/providers/virtualbox/tasks/boot.py | qqshfox/bootstrap-vz | 38fc7c52407d015d3c75867bfea266d0aec6d7e2 | [
"Apache-2.0"
] | 3 | 2017-05-10T15:04:10.000Z | 2017-06-02T18:14:50.000Z | bootstrapvz/providers/virtualbox/tasks/boot.py | qqshfox/bootstrap-vz | 38fc7c52407d015d3c75867bfea266d0aec6d7e2 | [
"Apache-2.0"
] | 14 | 2016-12-15T09:29:10.000Z | 2021-01-28T13:06:14.000Z | from bootstrapvz.base import Task
from bootstrapvz.common import phases
from bootstrapvz.common.tasks import grub
| 30.214286 | 77 | 0.763593 |
2a89f5934d16a217f8db591d993837148debfab4 | 12,444 | py | Python | tensorflow_similarity/distances.py | djm2131/similarity | 1431e39b77b17b72513d6ccb582f8af871ba76d0 | [
"Apache-2.0"
] | null | null | null | tensorflow_similarity/distances.py | djm2131/similarity | 1431e39b77b17b72513d6ccb582f8af871ba76d0 | [
"Apache-2.0"
] | null | null | null | tensorflow_similarity/distances.py | djm2131/similarity | 1431e39b77b17b72513d6ccb582f8af871ba76d0 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The TensorFlow Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 35.452991 | 116 | 0.676712 |
2a8a638716da9a921d2678fd212392c39c24f195 | 547 | py | Python | satang_pro_signer/signer.py | thebevrishot/satang-pro-signer | e0d6affdaf3b3bf5a670bda160f8a7d341b41707 | [
"MIT"
] | null | null | null | satang_pro_signer/signer.py | thebevrishot/satang-pro-signer | e0d6affdaf3b3bf5a670bda160f8a7d341b41707 | [
"MIT"
] | null | null | null | satang_pro_signer/signer.py | thebevrishot/satang-pro-signer | e0d6affdaf3b3bf5a670bda160f8a7d341b41707 | [
"MIT"
] | null | null | null | import hashlib
import hmac
from satang_pro_signer import preparer | 26.047619 | 58 | 0.605119 |
2a8b148c32e02ed52154cfd52c0605d99687fd17 | 76 | py | Python | atcoder/abc/a035.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/a035.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | atcoder/abc/a035.py | tomato-300yen/coding | db6f440a96d8c83f486005c650461a69f27e3926 | [
"MIT"
] | null | null | null | W, H = map(int, input().split())
print("4:3" if 4 * H == 3 * W else "16:9")
| 25.333333 | 42 | 0.5 |
2a8c3235521952c85b8f72cbb5f29d72cf790334 | 24,976 | py | Python | carbondesign/tests/test_multi_select_html.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/tests/test_multi_select_html.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | carbondesign/tests/test_multi_select_html.py | dozymoe/django-carbondesign | 34aed0cfdccfa90fcb5bf2bbd347229815f1417b | [
"MIT"
] | null | null | null | # pylint:disable=missing-module-docstring,missing-class-docstring,missing-function-docstring
from django import forms
#-
from .base import compare_template, SimpleTestCase
| 36.621701 | 140 | 0.61427 |
2a8e83999cf4e97fafb8dbeb31077fa54eca387c | 7,826 | py | Python | visualization/POF/utils/keypoint_conversion.py | alvaro-budria/body2hands | 0eba438b4343604548120bdb03c7e1cb2b08bcd6 | [
"BSD-3-Clause"
] | 63 | 2021-05-14T02:55:16.000Z | 2022-03-13T01:51:12.000Z | visualization/POF/utils/keypoint_conversion.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-06-24T09:59:41.000Z | 2021-12-31T08:15:20.000Z | visualization/POF/utils/keypoint_conversion.py | human2b/body2hands | 8ab4b206dc397c3b326f2b4ec9448c84ee8801fe | [
"BSD-3-Clause"
] | 9 | 2021-05-17T03:33:28.000Z | 2022-02-17T02:30:44.000Z | import numpy as np
import numpy.linalg as nl
from utils.general import connMat
a4_to_main = {
'body': np.array([1, 0, 9, 10, 11, 3, 4, 5, 12, 13, 14, 6, 7, 8, 17, 15, 18, 16, 19, 20], dtype=np.int64), # convert to order of openpose
'1_body': np.array([1, 0, 9, 10, 11, 3, 4, 5, 12, 13, 14, 6, 7, 8, 17, 15, 18,... | 43.966292 | 153 | 0.564528 |
2a8e849bd418c1e14d8f941c5af6a81e0f4c5254 | 15,584 | py | Python | rubika/__init__.py | sajjadsoleimani/rubika | 328e60b76dd04be695285b0735c36e151e65ef5d | [
"MIT"
] | 1 | 2022-01-22T10:29:12.000Z | 2022-01-22T10:29:12.000Z | rubika/__init__.py | Mahdiblackstar/rubika | 328e60b76dd04be695285b0735c36e151e65ef5d | [
"MIT"
] | null | null | null | rubika/__init__.py | Mahdiblackstar/rubika | 328e60b76dd04be695285b0735c36e151e65ef5d | [
"MIT"
] | 1 | 2022-03-21T07:44:49.000Z | 2022-03-21T07:44:49.000Z | from requests import post
from random import randint
from json import loads, dumps
import asyncio,base64,glob,json,math,urllib3,os,pathlib,random,sys,concurrent.futures,time
from tqdm import tqdm
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
urllib3.disable_warnings(urllib3.exceptions.Insecu... | 28.752768 | 121 | 0.57681 |
2a8ef90a770448ffb4442173cc6d0ca697f44aeb | 3,201 | py | Python | colab_zirc_dims/non_std_cfgs/non_std_cfgs.py | MCSitar/colab-zirc-dims | 1669bbac762e0ee117e27d189313547b8e9ca404 | [
"Apache-2.0"
] | 2 | 2021-11-04T01:15:21.000Z | 2021-11-07T02:27:35.000Z | colab_zirc_dims/non_std_cfgs/non_std_cfgs.py | MCSitar/colab-zirc-dims | 1669bbac762e0ee117e27d189313547b8e9ca404 | [
"Apache-2.0"
] | null | null | null | colab_zirc_dims/non_std_cfgs/non_std_cfgs.py | MCSitar/colab-zirc-dims | 1669bbac762e0ee117e27d189313547b8e9ca404 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Functions to install dependencies for non-standard models (e.g., Centermask2)
and get compatible Detectron2 configs for them.
"""
import sys
import subprocess
try:
from detectron2.config import get_cfg
except ModuleNotFoundError:
print('WARNING: Detectron2 not installed on (virtual?... | 35.566667 | 104 | 0.619494 |
2a8f1bffef647e648e98b668cdc27ae2039961fc | 1,870 | py | Python | main_train_brf.py | MahshidJabari/accident-prediction-montreal | f496269cbf6fada2bbff66325328f98d11a60c68 | [
"MIT"
] | 9 | 2019-10-26T20:42:34.000Z | 2021-10-04T14:33:24.000Z | main_train_brf.py | MahshidJabari/accident-prediction-montreal | f496269cbf6fada2bbff66325328f98d11a60c68 | [
"MIT"
] | 5 | 2019-05-16T20:01:39.000Z | 2021-12-13T20:01:57.000Z | main_train_brf.py | MahshidJabari/accident-prediction-montreal | f496269cbf6fada2bbff66325328f98d11a60c68 | [
"MIT"
] | 10 | 2019-04-26T21:26:12.000Z | 2021-06-18T14:27:28.000Z | #!/usr/bin/env python
from preprocess import get_negative_samples, get_positive_samples
from utils import init_spark
from preprocess import get_dataset_df
from pyspark.ml.classification import RandomForestClassifier
from pyspark.ml.tuning import ParamGridBuilder, TrainValidationSplit, \
Cr... | 40.652174 | 71 | 0.683422 |
2a904c8d13c0a4e09fe39c713c7e34d6fd595da9 | 1,302 | py | Python | operations/tests/rally/custom_runner/ocss_search_runner.py | irin4eto/open-commerce-search | 79b58b93c2c028ba5bade5ff9228cc63d6f3394b | [
"Apache-2.0"
] | 22 | 2020-04-24T19:13:29.000Z | 2022-02-15T13:09:37.000Z | operations/tests/rally/custom_runner/ocss_search_runner.py | irin4eto/open-commerce-search | 79b58b93c2c028ba5bade5ff9228cc63d6f3394b | [
"Apache-2.0"
] | 7 | 2019-12-06T15:08:16.000Z | 2022-03-31T09:13:52.000Z | operations/tests/rally/custom_runner/ocss_search_runner.py | irin4eto/open-commerce-search | 79b58b93c2c028ba5bade5ff9228cc63d6f3394b | [
"Apache-2.0"
] | 2 | 2021-08-05T13:30:42.000Z | 2022-01-24T22:53:13.000Z | # -*- coding: utf-8 -*-
import json
| 31 | 81 | 0.604455 |
2a91308d7165b5bb29f38552b30075037b3d559a | 8,574 | py | Python | Packages/LiveReload/server/PluginAPI.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 4 | 2018-06-08T23:18:47.000Z | 2020-02-24T06:14:06.000Z | Packages/LiveReload/server/PluginAPI.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 3 | 2021-05-10T18:59:14.000Z | 2021-09-02T01:50:15.000Z | Packages/LiveReload/server/PluginAPI.py | kangTaehee/st3 | 34aa17bcdac88b94cc38d37276fdc4983b27c76d | [
"Apache-2.0"
] | 2 | 2019-04-10T01:02:42.000Z | 2021-02-05T08:41:38.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import LiveReload
import json
import sublime
try:
from .Settings import Settings
except ValueError:
from Settings import Settings
def addResource(
self,
req_path,
blob,
content_type='text/plain',
):
"""
- ... | 30.29682 | 104 | 0.533357 |