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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f64ce20d2bc7463fbe8a47e2e961d23f53650a4 | 14,042 | py | Python | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StimulationScreen.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | 2 | 2022-03-17T23:17:56.000Z | 2022-03-23T01:08:58.000Z | """
Created on Wed March 30 11::00 2022
@author: Frdrique Leclerc
"""
from tracemalloc import start
from numpy import number
from Screen import Screen as Screen
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QFont, QPixmap
from PIL import Image
#from Ergocycle.source.StartWindow imp... | 65.924883 | 230 | 0.703319 |
7f6557fd2c7f3025f39724cdaeb984fe7369be4f | 1,412 | py | Python | src/createVocabulary.py | aws-samples/aim317-uncover-insights-customer-conversations | 663ba08fe9ad1cf1e520e77a88dc6a96b611619b | [
"MIT-0"
] | null | null | null | src/createVocabulary.py | aws-samples/aim317-uncover-insights-customer-conversations | 663ba08fe9ad1cf1e520e77a88dc6a96b611619b | [
"MIT-0"
] | null | null | null | src/createVocabulary.py | aws-samples/aim317-uncover-insights-customer-conversations | 663ba08fe9ad1cf1e520e77a88dc6a96b611619b | [
"MIT-0"
] | 1 | 2021-12-20T16:40:55.000Z | 2021-12-20T16:40:55.000Z | import boto3
import uuid
import json
import os | 25.214286 | 73 | 0.526912 |
7f661e451d1b0a515002a9da6f0b3193c7f5f896 | 773 | py | Python | app/api/model/blacklist.py | ChegeBryan/politico | 746ef4c76931928ef145593092c8b391421a50fd | [
"MIT"
] | 1 | 2021-09-08T13:17:03.000Z | 2021-09-08T13:17:03.000Z | app/api/model/blacklist.py | ChegeBryan/politico | 746ef4c76931928ef145593092c8b391421a50fd | [
"MIT"
] | 62 | 2019-02-04T07:08:32.000Z | 2021-05-06T19:49:03.000Z | app/api/model/blacklist.py | ChegeBryan/politico | 746ef4c76931928ef145593092c8b391421a50fd | [
"MIT"
] | 5 | 2019-02-11T18:21:14.000Z | 2022-02-25T07:41:07.000Z | """ Blacklist_token class method and model """
import datetime
| 26.655172 | 71 | 0.626132 |
7f667e0c792310a6ca90389cd7acf95cb20a0aed | 3,631 | py | Python | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | matrix_procedures/load_dataset_class.py | jamiecook/AequilibraE | b1013d59cbeaf6fc4e1a944cf31f20460a2a4156 | [
"MIT"
] | null | null | null | """
-----------------------------------------------------------------------------------------------------------
Package: AequilibraE
Name: Loads datasets into AequilibraE binary files
Purpose: Implements dataset creation
Original Author: Pedro Camargo (c@margo.co)
Contributors:
Last edited by: Ped... | 39.043011 | 108 | 0.56238 |
7f6761d3d7ac11e1232a9005ec969e6f67128b3e | 781 | py | Python | FastCAE_Linux/output/examples/example3/view.py | alleindrach/calculix-desktop | 2cb2c434b536eb668ff88bdf82538d22f4f0f711 | [
"MIT"
] | 23 | 2020-03-16T03:01:43.000Z | 2022-03-21T16:36:22.000Z | FastCAE_Linux/output/examples/example3/view.py | alleindrach/calculix-desktop | 2cb2c434b536eb668ff88bdf82538d22f4f0f711 | [
"MIT"
] | 1 | 2020-03-17T05:50:07.000Z | 2020-03-17T05:50:07.000Z | FastCAE_Linux/output/examples/example3/view.py | alleindrach/calculix-desktop | 2cb2c434b536eb668ff88bdf82538d22f4f0f711 | [
"MIT"
] | 17 | 2020-03-16T01:46:36.000Z | 2022-03-21T16:36:37.000Z | MainWindow.clearData()
MainWindow.openPreWindow()
box = CAD.Box()
box.setName('Box_1')
box.setLocation(0,0,0)
box.setPara(10,10,10)
box.create()
cylinder = CAD.Cylinder()
cylinder.setName('Cylinder_2')
cylinder.setLocation(0,0,0)
cylinder.setRadius(5)
cylinder.setLength(10)
cylinder.setAxis(0,0,1)
cylinder... | 25.193548 | 41 | 0.766965 |
7f696039cf0e21135e93815d60394b72a34a443f | 1,040 | py | Python | app/api/routes/server/plot_queue.py | cPoolChia/ChiaAutoplotter-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | 7 | 2021-06-01T09:20:34.000Z | 2021-10-12T07:24:04.000Z | app/api/routes/server/plot_queue.py | cPoolChia/ChiaFarmerManager-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | null | null | null | app/api/routes/server/plot_queue.py | cPoolChia/ChiaFarmerManager-Backend | 8d875c1f846df395ddc76e3d84b36da45ad4d557 | [
"MIT"
] | 1 | 2021-05-31T13:08:14.000Z | 2021-05-31T13:08:14.000Z | from typing import Any
from uuid import UUID, uuid4
import celery
from app import crud, models, schemas
from app.api import deps
from app.core.config import settings
from app.utils import auth
from app.core import tasks
from fastapi import APIRouter, Depends, HTTPException, Body, Query
from sqlalchemy.orm import Sessi... | 32.5 | 81 | 0.740385 |
7f6a2ed067f756a98844a26933435661e374cbc1 | 991 | py | Python | mushroom_rl/utils/eligibility_trace.py | PuzeLiu/mushroom-rl | 99942b425e66b4ddcc26009d7105dde23841e95d | [
"MIT"
] | 344 | 2020-01-10T09:45:02.000Z | 2022-03-30T09:48:28.000Z | mushroom_rl/utils/eligibility_trace.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 44 | 2020-01-23T03:00:56.000Z | 2022-03-25T17:14:22.000Z | mushroom_rl/utils/eligibility_trace.py | AmmarFahmy/mushroom-rl | 2625ee7f64d5613b3b9fba00f0b7a39fece88ca5 | [
"MIT"
] | 93 | 2020-01-10T21:17:58.000Z | 2022-03-31T17:58:52.000Z | from mushroom_rl.utils.table import Table
def EligibilityTrace(shape, name='replacing'):
"""
Factory method to create an eligibility trace of the provided type.
Args:
shape (list): shape of the eligibility trace table;
name (str, 'replacing'): type of the eligibility trace.
Returns:
... | 21.543478 | 71 | 0.616549 |
7f6d004764ff3c98efc96ebb1cf1f394bc32a7c1 | 440 | py | Python | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null | example_pkg/Parrots.py | TillWeinhold/EQUSWORKSHOPTill | 95099cc8d8ebc93b53db6d9e9b4c67051fcb7763 | [
"MIT"
] | null | null | null |
african_grey = Parrot('Polly want a Cracker?')
norwegian_blue = Parrot('', is_alive=False)
african_grey.squawk()
norwegian_blue.squawk() | 22 | 46 | 0.652273 |
7f6f7feeb11eb05bb310cec5c813b37346f053c2 | 226 | py | Python | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null | Codility/python/problem2.py | rayguang/ratesbuddy | ec97f85201812967bb3380bba6de41bdb223eab6 | [
"MIT"
] | null | null | null |
S='Wed'
K=2
print(solution(S,K))
| 22.6 | 78 | 0.584071 |
7f7137d3c4d91bf9456a8fd7ac1c27ab02193797 | 162 | py | Python | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | ex030.py | MarcelleFranca/exercicios-python | e65c1d1f2d92db0e8f5035dea8062a53defa899f | [
"MIT"
] | null | null | null | n = int(input('Me diga um nmero qualquer: '))
re = n % 2
if re == 0:
print('O nmero {} PAR!'.format(n))
else:
print('O nmero {} MPAR!'.format(n))
| 23.142857 | 46 | 0.567901 |
7f71ee99f2565a596f85f7576a116d55d2f91fcd | 6,927 | py | Python | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | 1 | 2019-01-26T17:19:47.000Z | 2019-01-26T17:19:47.000Z | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | null | null | null | pyoperant/reinf.py | arouse01/pyoperant | e61de84862096720cca7dbecf517ee11c5d504d4 | [
"BSD-3-Clause"
] | null | null | null | from numpy import random
| 31.06278 | 91 | 0.664501 |
7f7253b551b2ff6d740c1f9d0a5085a8b1f18654 | 7,766 | py | Python | Conditional/TextGAIL/model.py | mrazizi/TextGAIL | 9b6e0e62669e0bd4fbb1a8b64098c8432b0d725d | [
"MIT"
] | 19 | 2020-05-16T23:13:43.000Z | 2022-03-08T15:01:48.000Z | Conditional/TextGAIL/model.py | MarkusSagen/TextGAIL | 18ba72c6d63c3c3db1f195d118267c6e8243b4ff | [
"MIT"
] | 2 | 2020-07-24T09:09:34.000Z | 2022-02-22T11:56:31.000Z | Conditional/TextGAIL/model.py | MarkusSagen/TextGAIL | 18ba72c6d63c3c3db1f195d118267c6e8243b4ff | [
"MIT"
] | 10 | 2020-06-09T09:15:14.000Z | 2022-03-20T09:36:30.000Z | from typing import Any, List, Dict, Iterator, Callable
import torch
import torch.nn as nn
import torch.nn.functional as F
from transformers import AutoTokenizer, RobertaForMultipleChoice
import torchfly
from torchfly.nn.transformers import GPT2LMHeadModel
from torchfly.training import FlyModel
from torchfly.nn.losses ... | 40.873684 | 119 | 0.635076 |
7f7257441c10fd88f6708caf8a3bdeae39120b6f | 5,622 | py | Python | yolo_v1_inference.py | jerichosu/YOLO_V1_Pytorch | 2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a | [
"MIT"
] | null | null | null | yolo_v1_inference.py | jerichosu/YOLO_V1_Pytorch | 2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a | [
"MIT"
] | null | null | null | yolo_v1_inference.py | jerichosu/YOLO_V1_Pytorch | 2f665f6b6b00d8cf9782bff43c5aede5aa5c3a4a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 10 14:12:28 2022
@author: 1517suj
"""
from model import Yolov1
import torch
import torch.optim as optim
import torchvision.transforms as T
import cv2
from utils import (
non_max_suppression,
mean_average_precision,
intersection_over_unio... | 26.771429 | 124 | 0.590359 |
7f7260f159737945fe7bc1ae8aea08979812d974 | 1,812 | py | Python | setup.py | sedatDemiriz/satisfy-calc | 6b89226a87958dd89ed6327d9bf10bd5e9927a7b | [
"MIT"
] | null | null | null | setup.py | sedatDemiriz/satisfy-calc | 6b89226a87958dd89ed6327d9bf10bd5e9927a7b | [
"MIT"
] | null | null | null | setup.py | sedatDemiriz/satisfy-calc | 6b89226a87958dd89ed6327d9bf10bd5e9927a7b | [
"MIT"
] | null | null | null | import pathlib
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
setup(
name="satisfy-calc",
version="1.1.3",
description="Command line crafting tree visualizer for Sat... | 30.711864 | 105 | 0.598786 |
7f74399a50cac0ddf062397297d09c884bd0d887 | 74 | py | Python | projects/InstantTeaching/models/__init__.py | txdet/Instant-Teaching | d07910c4c811d875b03200ffb1822c32556ccf9a | [
"Apache-2.0"
] | 18 | 2021-12-14T08:37:34.000Z | 2022-03-25T18:53:21.000Z | projects/InstantTeaching/models/__init__.py | txdet/Instant-Teaching | d07910c4c811d875b03200ffb1822c32556ccf9a | [
"Apache-2.0"
] | 1 | 2022-02-16T08:06:30.000Z | 2022-02-16T08:06:30.000Z | projects/InstantTeaching/models/__init__.py | txdet/Instant-Teaching | d07910c4c811d875b03200ffb1822c32556ccf9a | [
"Apache-2.0"
] | 1 | 2022-02-08T08:30:07.000Z | 2022-02-08T08:30:07.000Z | from .detectors import *
from .max_iou_assigner_v2 import MaxIoUAssignerV2 | 37 | 49 | 0.864865 |
7f74c0fc275d974a627baa79ccbe3262645f2513 | 2,195 | py | Python | components/studio/projects/migrations/0015_auto_20210301_1015.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 25 | 2020-05-08T22:24:54.000Z | 2022-03-11T18:16:58.000Z | components/studio/projects/migrations/0015_auto_20210301_1015.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 75 | 2020-05-08T22:15:59.000Z | 2021-11-22T10:00:04.000Z | components/studio/projects/migrations/0015_auto_20210301_1015.py | aitmlouk/stackn | c8029394a15b03796a4864938f9db251b65c7354 | [
"Apache-2.0"
] | 12 | 2020-11-04T13:09:46.000Z | 2022-03-14T16:22:40.000Z | # Generated by Django 3.1.6 on 2021-03-01 10:15
from django.db import migrations, models
import django.db.models.deletion
| 30.486111 | 115 | 0.541686 |
7f7574b64532b1f7794103ece680d1785b89f64b | 210 | py | Python | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | 1 | 2021-02-23T12:54:05.000Z | 2021-02-23T12:54:05.000Z | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | null | null | null | tests/Auth_Test.py | PyDO-Team/PyDO-Old | a89d9d30aee72a42ce3afdd90b5b297e7b908d73 | [
"BSD-3-Clause"
] | 1 | 2021-02-23T12:54:07.000Z | 2021-02-23T12:54:07.000Z | from TestOutput import LogManager
if __name__ == "__main__":
Auth_Test() | 21 | 56 | 0.747619 |
7f76ceea26c08de27da1840f0d593d7e2ff3c37f | 298 | py | Python | app/models/db.py | cdlaimin/fastapi | 4acf1a1da4a1eedd81a3bdf6256661c2464928b9 | [
"BSD-3-Clause"
] | null | null | null | app/models/db.py | cdlaimin/fastapi | 4acf1a1da4a1eedd81a3bdf6256661c2464928b9 | [
"BSD-3-Clause"
] | null | null | null | app/models/db.py | cdlaimin/fastapi | 4acf1a1da4a1eedd81a3bdf6256661c2464928b9 | [
"BSD-3-Clause"
] | null | null | null | from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession
from sqlalchemy.orm import sessionmaker
from app.core.config import settings
engine = create_async_engine(settings.ASYNC_SQLALCHEMY_DATABASE_URI)
SessionLocal = sessionmaker(engine, class_=AsyncSession, expire_on_commit=False)
| 37.25 | 80 | 0.865772 |
7f774ce1cb63f287b074535083076da2eb2886d4 | 37 | py | Python | src/globals.py | 22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions | 3b554ab337765f8c02126c585dd025d71c539f73 | [
"MIT"
] | null | null | null | src/globals.py | 22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions | 3b554ab337765f8c02126c585dd025d71c539f73 | [
"MIT"
] | 6 | 2020-10-03T19:47:08.000Z | 2021-04-23T10:55:19.000Z | src/globals.py | 22PoojaGaur/COMINE-Plusplus-Algorithm-for-Finding-Correlated-Patterns-from-Transactions | 3b554ab337765f8c02126c585dd025d71c539f73 | [
"MIT"
] | null | null | null | MIN_SUPPORT = 2
MIN_ALL_CONF = 0.05
| 9.25 | 19 | 0.72973 |
7f794d62fc3c675ead0a023096a5c67f9a7ede0f | 195 | py | Python | 1-iniciante/1038.py | marcobarone-dev/uri | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | 1 | 2018-07-04T02:42:29.000Z | 2018-07-04T02:42:29.000Z | 1-iniciante/1038.py | marcobarone-dev/uri-python | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | null | null | null | 1-iniciante/1038.py | marcobarone-dev/uri-python | 82bf0b244d3966673b10a42948dcdeabcde07e76 | [
"MIT"
] | null | null | null | produtos = {1: 4.0, 2: 4.5, 3: 5.0, 4: 2.0, 5: 1.5}
produto, quantidade = [int(num) for num in input().split()]
total = produtos[produto] * quantidade
print('Total: R$ {:.2f}'.format(total))
| 39 | 60 | 0.605128 |
7f7b9c9bf2b4a1aef51cf2613f660d03ff4d092d | 1,168 | py | Python | books/software-architecture-with-python/Ch04-performance-data-structures/primes.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | 1 | 2021-04-21T09:38:38.000Z | 2021-04-21T09:38:38.000Z | books/software-architecture-with-python/Ch04-performance-data-structures/primes.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | 34 | 2019-12-16T16:53:24.000Z | 2022-01-13T02:29:30.000Z | books/software-architecture-with-python/Ch04-performance-data-structures/primes.py | phiratio/lpthw | a32240d4355fb331805d515f96e1d009914e5c47 | [
"MIT"
] | null | null | null | # Code Listing #3
"""
Prime number iterator class
"""
if __name__ == "__main__":
l = list(Prime(1000))
| 20.137931 | 58 | 0.518836 |
7f7cecbd7d8387712e80404ab9516b060333f0e5 | 444 | py | Python | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | timeblock/stopwatch.py | daustin391/timeblock | 1895f95205100f2f191feccbb1bcb90672aae043 | [
"MIT"
] | null | null | null | """ Stopwatch
A simple stopwatch for measuring time
"""
from datetime import datetime
| 22.2 | 55 | 0.635135 |
7f7d50f6a8fff49e5e4da85906cece438d04d0c3 | 623 | py | Python | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | src/data/mnist_converter.py | laurabondeholst/Mapping_high_dimensional_data | 208c1024d3984cf60fc2f54b7bfdffaa83c60157 | [
"MIT"
] | null | null | null | """
Takes the MNIST dataset as input (images and labels separated)
and creates a new dataset only with 0's and 1's
"""
import numpy as np
DATA_PATH = "data/raw/"
OUTPUT_PATH = "data/processed/mnist/"
X = np.loadtxt(DATA_PATH + "mnist2500_X.txt")
labels = np.loadtxt(DATA_PATH + "mnist2500_labels.txt")
X_new = []
labe... | 25.958333 | 64 | 0.693419 |
7f7df73d539af4f42bcbde355e7bdef39b43dc8a | 7,364 | py | Python | models/pytorch_gcn.py | SamGalanakis/FlowCompare | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | 5 | 2021-05-22T23:14:19.000Z | 2022-02-19T14:11:27.000Z | models/pytorch_gcn.py | SamGalanakis/PointFlowChange | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | 1 | 2021-06-05T11:20:53.000Z | 2021-06-05T12:30:44.000Z | models/pytorch_gcn.py | SamGalanakis/PointFlowChange | ed26e48298fe42cf9ddcc252c19b502b4a71d54e | [
"MIT"
] | null | null | null | import os
import sys
import copy
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from models.nets import MLP
# Original code from : https://github.com/WangYueFt/dgcnn/blob/master/pytorch/model.py
| 38.354167 | 144 | 0.562873 |
7f8193e422f05e255a9a742b6b7c71cffa4e2519 | 2,794 | py | Python | src/weaver/models/custom/wrn28.py | Holim0711/holim-lightning | 690972c8faa587e7042bc15d4980c363163083e4 | [
"MIT"
] | 1 | 2021-03-03T08:53:49.000Z | 2021-03-03T08:53:49.000Z | src/weaver/models/custom/wrn28.py | Holim0711/holim-lightning | 690972c8faa587e7042bc15d4980c363163083e4 | [
"MIT"
] | 1 | 2021-03-19T09:16:05.000Z | 2021-03-19T09:35:18.000Z | src/weaver/models/custom/wrn28.py | Holim0711/holim-lightning | 690972c8faa587e7042bc15d4980c363163083e4 | [
"MIT"
] | null | null | null | import torch.nn as nn
| 35.367089 | 119 | 0.57194 |
7f8384a311353de10a642c69e9df0c76f447b11c | 1,565 | py | Python | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | 2 | 2021-07-02T13:53:15.000Z | 2021-11-16T03:14:36.000Z | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | 58 | 2021-06-14T17:14:39.000Z | 2022-03-11T19:32:54.000Z | trisicell/ul/__init__.py | faridrashidi/trisicell | 4db89edd44c03ccb6c7d3477beff0079c3ff8035 | [
"BSD-3-Clause"
] | null | null | null | """Utils Module."""
from trisicell.ul._hclustering import (
dist_cosine_ignore_na,
dist_dendro,
dist_l1_ignore_na,
hclustering,
)
from trisicell.ul._packages import (
import_graph_tool,
import_graphviz,
import_gurobi,
import_mpi4py,
import_rpy2,
)
from trisicell.ul._trees import (
... | 16.302083 | 39 | 0.651118 |
7f83ab03f9f78c70886157722d2f935b1bea1759 | 2,137 | py | Python | utils/pktgen/sender.py | lilyhuegerich/No-hop | 2e82af6c8036312c35b3f2338c776863416ea043 | [
"MIT"
] | null | null | null | utils/pktgen/sender.py | lilyhuegerich/No-hop | 2e82af6c8036312c35b3f2338c776863416ea043 | [
"MIT"
] | 1 | 2021-02-15T17:29:03.000Z | 2021-02-15T17:29:03.000Z | utils/utils-backup/pktgen/sender.py | guiladkatz/NetAction | 436c5ac9dcf0e2064bcc9a2facca556828de6703 | [
"Apache-2.0"
] | 1 | 2021-04-18T18:24:59.000Z | 2021-04-18T18:24:59.000Z | #!/usr/bin/env python
import argparse, sys, socket, random, struct, time
from scapy.all import sendp, send, get_if_list, get_if_list, get_if_hwaddr, hexdump
from scapy.all import Packet
from scapy.all import Ether, IP, IPv6, UDP, TCP
sip_port=5060
if __name__ == '__main__':
main()
| 35.032787 | 115 | 0.602714 |
7f83ea7d1cc3220adf9ebca24b106652d1d5a82a | 2,898 | py | Python | lib/coloraide/spaces/hsl/__init__.py | EatBreatheCode/sublime_color_helper | 701d05807e51ce49088b1f0a8f55c4bf3845fa91 | [
"MIT"
] | null | null | null | lib/coloraide/spaces/hsl/__init__.py | EatBreatheCode/sublime_color_helper | 701d05807e51ce49088b1f0a8f55c4bf3845fa91 | [
"MIT"
] | null | null | null | lib/coloraide/spaces/hsl/__init__.py | EatBreatheCode/sublime_color_helper | 701d05807e51ce49088b1f0a8f55c4bf3845fa91 | [
"MIT"
] | null | null | null | """HSL class."""
from ...spaces import Space, Cylindrical
from ...cat import WHITES
from ...gamut.bounds import GamutBound, FLG_ANGLE, FLG_PERCENT
from ... import util
from ... import algebra as alg
from ...types import Vector
from typing import Tuple
def srgb_to_hsl(rgb: Vector) -> Vector:
"""SRGB to HSL."""
... | 21.626866 | 79 | 0.509317 |
7f83fb54d3d89551adb5762f761b61b33bff3c08 | 950 | py | Python | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | 1 | 2020-12-14T04:01:08.000Z | 2020-12-14T04:01:08.000Z | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | null | null | null | maze/models.py | TerryHowe/pymaze | 139f15fb8e932c1cf1e63f5c5aee7895691e993f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
| 25.675676 | 138 | 0.676842 |
7f85d28e2b17919468a9ea177eccdd701d33e549 | 3,181 | py | Python | tests/varints_test.py | dargueta/binobj | 00d91856678d7ecf17647a9b5cbff1810a39f275 | [
"BSD-3-Clause"
] | 2 | 2018-08-05T13:57:43.000Z | 2021-06-25T15:20:16.000Z | tests/varints_test.py | dargueta/binobj | 00d91856678d7ecf17647a9b5cbff1810a39f275 | [
"BSD-3-Clause"
] | 2 | 2020-10-26T11:11:17.000Z | 2021-02-24T20:08:10.000Z | tests/varints_test.py | dargueta/binobj | 00d91856678d7ecf17647a9b5cbff1810a39f275 | [
"BSD-3-Clause"
] | 1 | 2021-02-27T17:29:22.000Z | 2021-02-27T17:29:22.000Z | """Tests for the variable-length integers."""
import io
import pytest
from binobj import varints
def test_encode_vlq_negative_crashes():
"""Passing a negative value to the VLQ encoder must always fail."""
with pytest.raises(ValueError):
varints.encode_integer_vlq(-1)
def test_encode_uleb128_... | 27.188034 | 85 | 0.636278 |
7f861eb33a0b220e3a89491dc68d3e6bfdddea0a | 725 | py | Python | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | 7 | 2020-10-09T09:24:28.000Z | 2022-03-12T00:14:07.000Z | src/settings/models.py | TolgaKara/prodai | a858d39226a072a2a52513d942dd046bb3787da8 | [
"Apache-2.0"
] | null | null | null | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
| 31.521739 | 63 | 0.768276 |
7f873662ce9f9eb5dfd23f13cad81a3fb8b855d3 | 2,646 | py | Python | python/place_molex_conn.py | willdickson/roman_led_frame | 4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36 | [
"CC-BY-4.0"
] | null | null | null | python/place_molex_conn.py | willdickson/roman_led_frame | 4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36 | [
"CC-BY-4.0"
] | null | null | null | python/place_molex_conn.py | willdickson/roman_led_frame | 4cf54aa5ea15d9fa39ddaa1a27a83425fc449f36 | [
"CC-BY-4.0"
] | null | null | null | from __future__ import print_function
import os
import sys
import pcbnew
import numpy as np
import pprint
# ---------------------------------------------------------------------------------------
if __name__ == '__main__':
param = {
'ref_list': ['J{}'.format(i) for i in range(1,19)],
... | 24.275229 | 89 | 0.560469 |
7f879d970a7233907064466650bfa626b47f7750 | 2,199 | py | Python | RaspberryPi/appMasterKey.py | colindembovsky/iot-central-firmware | 29493b18b2d37090c5a071669370d4a907eb3f51 | [
"MIT"
] | 136 | 2018-05-08T08:54:22.000Z | 2022-02-17T21:39:41.000Z | RaspberryPi/appMasterKey.py | colindembovsky/iot-central-firmware | 29493b18b2d37090c5a071669370d4a907eb3f51 | [
"MIT"
] | 90 | 2018-05-08T22:50:26.000Z | 2020-11-04T16:11:44.000Z | RaspberryPi/appMasterKey.py | colindembovsky/iot-central-firmware | 29493b18b2d37090c5a071669370d4a907eb3f51 | [
"MIT"
] | 97 | 2018-05-07T20:55:28.000Z | 2022-02-17T21:39:43.000Z | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license.
import sys
import iotc
from iotc import IOTConnectType, IOTLogLevel
from random import randint
import base64
import hmac
import hashlib
gIsMicroPython = ('implementation' in dir(sys)) and ('name' in dir(sys.implementation)) and (sys.imp... | 29.32 | 134 | 0.688495 |
7f882238f2ac3dcd924d47d279ab3daa62b6851d | 5,842 | py | Python | genmod/annotate_models/variant_annotator.py | Varstation/genmod | 991a0fca36936b5dde49a95e8ea1d4336288c7c0 | [
"MIT"
] | null | null | null | genmod/annotate_models/variant_annotator.py | Varstation/genmod | 991a0fca36936b5dde49a95e8ea1d4336288c7c0 | [
"MIT"
] | null | null | null | genmod/annotate_models/variant_annotator.py | Varstation/genmod | 991a0fca36936b5dde49a95e8ea1d4336288c7c0 | [
"MIT"
] | 1 | 2020-07-05T19:06:32.000Z | 2020-07-05T19:06:32.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
variant_consumer.py
Consumes batches of variants and annotates them. Each batch is a dictionary
with variant_id:s as keys and dictionaries with variant information.
The variants will get different annotations depending on input
Created by Mns Magnusson on 2013-03-01.
Copy... | 38.183007 | 90 | 0.574974 |
7f883457983496df8e066229a171bec7587a4bd5 | 343 | py | Python | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | tests/context.py | SchluppiBobbz/DartsApp | 3538b90db30b4c59a03d49867df58b62d2e0a84a | [
"MIT"
] | null | null | null | import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from dartsapp import game, player, darts_helper
from dartsapp.exceptions import BullseyeHasNoTriple, FieldDoesNotExist,\
NoPlayerRegistered, OptionsNotSet,\
... | 42.875 | 82 | 0.661808 |
7f886aba201c2234da3db891c1dca0d083b400bb | 80,150 | py | Python | WebApps/OrgChartPortal/tests.py | yizongk/DOTAnalysis_Django | 688b59e668c6390b902d61a4aef546bd869d55ad | [
"Apache-2.0"
] | null | null | null | WebApps/OrgChartPortal/tests.py | yizongk/DOTAnalysis_Django | 688b59e668c6390b902d61a4aef546bd869d55ad | [
"Apache-2.0"
] | 1 | 2022-03-04T20:37:32.000Z | 2022-03-04T20:37:32.000Z | WebApps/OrgChartPortal/tests.py | yizongk/DOTAnalysis_Django | 688b59e668c6390b902d61a4aef546bd869d55ad | [
"Apache-2.0"
] | 1 | 2022-01-06T18:20:40.000Z | 2022-01-06T18:20:40.000Z | from .models import *
from datetime import datetime
from django.core.exceptions import ObjectDoesNotExist
import json
from WebAppsMain.settings import TEST_WINDOWS_USERNAME, TEST_PMS, TEST_SUPERVISOR_PMS, TEST_COMMISSIONER_PMS
from WebAppsMain.testing_utils import HttpPostTestCase, HttpGetTestCase
from django.db.models... | 50.856599 | 255 | 0.62665 |
7f89f00e8b87657252a144b19c11f0b25e549b6d | 3,794 | py | Python | test_net.py | reasonsolo/mtcnn_caffe | ec646c8e27af900da1380d5968970705f9e8f582 | [
"MIT"
] | null | null | null | test_net.py | reasonsolo/mtcnn_caffe | ec646c8e27af900da1380d5968970705f9e8f582 | [
"MIT"
] | null | null | null | test_net.py | reasonsolo/mtcnn_caffe | ec646c8e27af900da1380d5968970705f9e8f582 | [
"MIT"
] | 1 | 2019-01-15T05:56:06.000Z | 2019-01-15T05:56:06.000Z | import cv2
import caffe
import tools
import sys
import os
import numpy as np
from functools import partial
import config
if __name__ == '__main__':
net = sys.argv[1]
iter_num = int(sys.argv[2])
img_path = sys.argv[3]
test_func = test_net(net, config.MODEL_DIR, iter_num)
img = cv2.imread(img_path... | 33.875 | 90 | 0.610174 |
7f8cfe7c21edb98148f06559139a4693716409cf | 515 | py | Python | SharedData/list_all_files.py | kylemcdonald/SoundParts | 964de07f28ac181be2b9e8050b9e5a7e9b10a93d | [
"MIT"
] | 22 | 2017-05-02T07:55:25.000Z | 2020-12-18T00:48:03.000Z | SharedData/list_all_files.py | kylemcdonald/SoundParts | 964de07f28ac181be2b9e8050b9e5a7e9b10a93d | [
"MIT"
] | null | null | null | SharedData/list_all_files.py | kylemcdonald/SoundParts | 964de07f28ac181be2b9e8050b9e5a7e9b10a93d | [
"MIT"
] | 2 | 2019-08-29T06:46:02.000Z | 2020-08-31T12:56:59.000Z | import os
import fnmatch
# extensions can be a single tring like '.png' or '.jpg'
# or a list of extensions. they should all be lowercase
# but the . is important. | 39.615385 | 80 | 0.660194 |
7f8dc67d585101b5b8e1bb738d00fbeb7fa08007 | 452 | py | Python | Capitulo_02/exercise2_6.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | Capitulo_02/exercise2_6.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | Capitulo_02/exercise2_6.py | thiagosouzalink/my_codes-exercices-book-curso_intensivo_de_python | 841aa855a7450ad3d0ba65393ba0b6debcd6a770 | [
"MIT"
] | null | null | null | """
2.6 Citao famosa 2: Repita o Exerccio 2.5, porm, desta vez, armazene o nome da pessoa famosa em uma varivel chamada famous_person. Em seguida, componha sua mensagem e armazene-a em uma nova varivel chamada message. Exiba sua mensagem.
"""
famous_person = "Ren Descartes"
message = "As paixes so todas boas por natu... | 56.5 | 242 | 0.761062 |
7f8ded4f80685086d5ad90cfec886cbe3a773f21 | 662 | py | Python | algorithm/lin_search.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | algorithm/lin_search.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | algorithm/lin_search.py | terasakisatoshi/pythonCodes | baee095ecee96f6b5ec6431267cdc6c40512a542 | [
"MIT"
] | null | null | null | import random
import copy
import time
from numba import jit
from array_creator import create_test_set
from measure import get_elapsed_data
def main():
size = 100000
trial = 1
test_set = create_test_set(size, trial)
original = list(range(size))
print(scratch_lin_search(test_set))
print(std_se... | 18.914286 | 43 | 0.663142 |
7f90b833e66c95aaa6e86ee20476290414956557 | 3,997 | py | Python | setup.py | cdeil/astroquery | 1bbb9f8ea0347abb1081dba52a66772a03408f11 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cdeil/astroquery | 1bbb9f8ea0347abb1081dba52a66772a03408f11 | [
"BSD-3-Clause"
] | null | null | null | setup.py | cdeil/astroquery | 1bbb9f8ea0347abb1081dba52a66772a03408f11 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# Use "distribute" - the setuptools fork that supports python 3.
from distribute_setup import use_setuptools
use_setuptools()
from distutils.command import sdist
import glob
import os
import sys
from setuptools import setup, find_p... | 33.033058 | 96 | 0.739304 |
7f910ebedcd5c2b2f971ebd3398b107397e47933 | 606 | py | Python | dapr/serializers/base.py | mukundansundararajan/python-sdk | 2ee94e31292a650135b97bc3c70e3eca885c9b47 | [
"MIT"
] | null | null | null | dapr/serializers/base.py | mukundansundararajan/python-sdk | 2ee94e31292a650135b97bc3c70e3eca885c9b47 | [
"MIT"
] | null | null | null | dapr/serializers/base.py | mukundansundararajan/python-sdk | 2ee94e31292a650135b97bc3c70e3eca885c9b47 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Copyright (c) Microsoft Corporation.
Licensed under the MIT License.
"""
from abc import ABC, abstractmethod
from typing import Any, Callable, Optional, Type
| 23.307692 | 78 | 0.612211 |
7f91f89b2955e012b51865efdeed3fe5d4ed3284 | 84 | py | Python | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | null | null | null | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | null | null | null | htdocs/MPM - Copy/MM/apps.py | anji-a/Apache | d08893821cb0251b8f99197a7b6893c95db4eb6e | [
"Apache-2.0"
] | 2 | 2020-11-04T06:30:46.000Z | 2020-11-06T11:00:53.000Z | from django.apps import AppConfig
| 14 | 34 | 0.678571 |
7f9293a745961e293df2ce58166bf397c0164a1c | 258 | py | Python | reto-05/eleloi/main.py | jlnc/reto-python | 7611b5ae231812b3bde1893a303af1c22765f859 | [
"MIT"
] | 18 | 2022-02-14T19:15:21.000Z | 2022-03-29T12:56:18.000Z | reto-05/eleloi/main.py | jlnc/reto-python | 7611b5ae231812b3bde1893a303af1c22765f859 | [
"MIT"
] | 22 | 2022-03-05T23:48:04.000Z | 2022-03-31T04:33:58.000Z | reto-05/eleloi/main.py | jlnc/reto-python | 7611b5ae231812b3bde1893a303af1c22765f859 | [
"MIT"
] | 21 | 2022-02-16T17:52:05.000Z | 2022-03-28T20:13:46.000Z | import _config
import _utils
CONFIG_PATH = "config.toml"
if __name__ == "__main__":
main()
| 16.125 | 57 | 0.697674 |
7f92bdbd76e88952ccd41f7b4bb7059cb29661bf | 360 | py | Python | ravel/utils/data.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | 1 | 2020-05-16T12:27:44.000Z | 2020-05-16T12:27:44.000Z | ravel/utils/data.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | null | null | null | ravel/utils/data.py | eykd/ravel | bcd4a748c74acd39f09f4eab6a8cb65660e857b5 | [
"MIT"
] | null | null | null |
def merge_dicts(*dicts):
"""
Given any number of dicts, shallow copy and merge into a new dict,
precedence goes to key value pairs in latter dicts.
"""
result = {}
for d in dicts:
result.update(d)
return result
| 22.5 | 73 | 0.65 |
7f92e83ec063df76628d1922d90de32e41d7fd7e | 11,067 | py | Python | skyline.py | MyrrhDev/skyline-telegramBot | 55b0d597b0710f2ae1314e3359b08c02276f094a | [
"MIT"
] | null | null | null | skyline.py | MyrrhDev/skyline-telegramBot | 55b0d597b0710f2ae1314e3359b08c02276f094a | [
"MIT"
] | null | null | null | skyline.py | MyrrhDev/skyline-telegramBot | 55b0d597b0710f2ae1314e3359b08c02276f094a | [
"MIT"
] | null | null | null | import random
| 36.524752 | 106 | 0.562393 |
7f94715fd95a0d6e266114d4c58a4a00c641770c | 1,699 | py | Python | code/default/smart_router/local/socket_wrap.py | wuyongwen/XX-Net | 313aefd862b8f230f7c61dc29db1b2b93a17e6ab | [
"BSD-2-Clause"
] | null | null | null | code/default/smart_router/local/socket_wrap.py | wuyongwen/XX-Net | 313aefd862b8f230f7c61dc29db1b2b93a17e6ab | [
"BSD-2-Clause"
] | null | null | null | code/default/smart_router/local/socket_wrap.py | wuyongwen/XX-Net | 313aefd862b8f230f7c61dc29db1b2b93a17e6ab | [
"BSD-2-Clause"
] | null | null | null | import time
| 25.742424 | 83 | 0.535021 |
7f94ad38bbb98e281664244307b46754d21960c0 | 2,859 | py | Python | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | 4 | 2020-08-24T13:31:46.000Z | 2022-01-25T08:03:19.000Z | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | tests/unit/test_handler_marker.py | Rogdham/bigxml | ab983f50c49bf861c3b61e3e636db90f9ff19ed1 | [
"MIT"
] | null | null | null | import pytest
from bigxml.handler_marker import _ATTR_MARKER, xml_handle_element, xml_handle_text
from bigxml.nodes import XMLText
| 23.628099 | 83 | 0.593214 |
7f94c10f45c727e1a813931dfa3f4ee01c73a848 | 8,073 | py | Python | gamestonk_terminal/due_diligence/stockgrid_dd_view.py | brocki/GamestonkTerminal | d1505359e595a50bf22c2c5601f261686117310f | [
"MIT"
] | 1 | 2021-06-21T23:31:20.000Z | 2021-06-21T23:31:20.000Z | gamestonk_terminal/due_diligence/stockgrid_dd_view.py | brocki/GamestonkTerminal | d1505359e595a50bf22c2c5601f261686117310f | [
"MIT"
] | 1 | 2021-04-20T00:26:20.000Z | 2021-04-20T00:26:20.000Z | gamestonk_terminal/due_diligence/stockgrid_dd_view.py | alokan/GamestonkTerminal | d7bb5a9456250114da83172e5d49beb242df5eed | [
"MIT"
] | null | null | null | """Stockgrid DD View"""
__docformat__ = "numpy"
import argparse
from typing import List
from datetime import timedelta
import requests
import pandas as pd
import matplotlib.pyplot as plt
from tabulate import tabulate
from gamestonk_terminal.config_plot import PLOT_DPI
from gamestonk_terminal.feature_flags import USE_I... | 28.935484 | 98 | 0.484454 |
7f9565f8eece01aa89f290f3687bbf816b1d2520 | 2,428 | py | Python | tests/schema/models_no_auto_create_m2m.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 33 | 2018-04-07T09:50:22.000Z | 2018-08-24T10:25:29.000Z | tests/schema/models_no_auto_create_m2m.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 41 | 2018-03-29T17:09:18.000Z | 2018-08-24T16:37:38.000Z | tests/schema/models_no_auto_create_m2m.py | Alirezaja1384/tortoise-orm | e7ecbc81d43860a3b0b6d5d9da27497ed6234049 | [
"Apache-2.0"
] | 4 | 2018-06-27T08:45:11.000Z | 2018-07-30T18:16:55.000Z | """
This example demonstrates SQL Schema generation for each DB type supported.
"""
from tortoise import fields
from tortoise.fields import SET_NULL
from tortoise.models import Model
| 34.685714 | 92 | 0.68575 |
7f957a19c84f447fc2196f4923469f1f2c048f4b | 9,025 | py | Python | tests/functional/wsgi/v1_1/test_claims.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | 1 | 2015-03-22T18:41:13.000Z | 2015-03-22T18:41:13.000Z | tests/functional/wsgi/v1_1/test_claims.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | tests/functional/wsgi/v1_1/test_claims.py | vkmc/zaqar-websocket | a93c460a28e541b5cc8b425d5fb4d69e78ab9f4b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Rackspace, 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 applicable law or agreed to in wr... | 32.581227 | 78 | 0.632244 |
7f95f3f0fe5de4ccd5c5283999bb3a40f5d50004 | 1,889 | py | Python | src/glyphs/utils/StringUtils.py | slorg1/glyphs | db498156897a1406545f041382913e2af69edc12 | [
"MIT"
] | 1 | 2019-05-09T14:35:31.000Z | 2019-05-09T14:35:31.000Z | src/glyphs/utils/StringUtils.py | slorg1/glyphs | db498156897a1406545f041382913e2af69edc12 | [
"MIT"
] | null | null | null | src/glyphs/utils/StringUtils.py | slorg1/glyphs | db498156897a1406545f041382913e2af69edc12 | [
"MIT"
] | 1 | 2019-05-10T16:06:30.000Z | 2019-05-10T16:06:30.000Z | from __future__ import unicode_literals
import six
| 26.236111 | 114 | 0.611435 |
7f971a249f5ab865830322c937e8dd39d7142ad5 | 149 | py | Python | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | 1 | 2020-10-13T20:57:34.000Z | 2020-10-13T20:57:34.000Z | Codeforces Problems/Soldier and bananas/Soldier and Bananas.py | Social-CodePlat/Comptt-Coding-Solutions | 240732e6c1a69e1124064bff4a27a5785a14b021 | [
"MIT"
] | null | null | null | arr=[int(x) for x in input().split()]
sum=0
for i in range(1,(arr[2]+1)):
sum+=arr[0]*i
if sum<=arr[1]:
print(0)
else:
print(sum-arr[1])
| 16.555556 | 37 | 0.557047 |
7f9732b0483bd520dbc21d4a193f8cf3d1d42f99 | 2,578 | py | Python | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | 2 | 2021-11-24T09:33:41.000Z | 2021-12-03T09:08:29.000Z | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | null | null | null | ansible/terminal_plugins/aos.py | xwjiang2021/sonic-mgmt | 82c446b9fb016eb070af765aa9d9999e55b27342 | [
"Apache-2.0"
] | null | null | null | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import json
from ansible.plugins.terminal import TerminalBase
from ansible.errors import AnsibleConnectionFailure
from ansible.module_utils._text import to_bytes, to_text
| 37.362319 | 141 | 0.595035 |
7f9760f0a2fcfb023a35bdea0182735335363c6f | 1,690 | py | Python | day_15-chiton/part_2.py | lucacerone/advent-of-code-2021 | 56c985ec5bbf1b83e74451d795331f4a05d651a3 | [
"MIT"
] | null | null | null | day_15-chiton/part_2.py | lucacerone/advent-of-code-2021 | 56c985ec5bbf1b83e74451d795331f4a05d651a3 | [
"MIT"
] | null | null | null | day_15-chiton/part_2.py | lucacerone/advent-of-code-2021 | 56c985ec5bbf1b83e74451d795331f4a05d651a3 | [
"MIT"
] | null | null | null | from numpy.core.fromnumeric import size
import utils as u
import numpy as np
import heapq as hq
s = """\
1163751742
1381373672
2136511328
3694931569
7463417111
1319128137
1359912421
3125421639
1293138521
2311944581
"""
#cave = np.array([[int(x) for x in l] for l in s.splitlines()])
cave = u.import_data("./data/inpu... | 21.948052 | 117 | 0.661538 |
7f977804ee14ad26b5e5c54480ba5ea17221d8c5 | 1,861 | py | Python | aws-pentesting-with-python/kms/correct/updating_existing_kms.py | qodirovshohijahon/python-scripting | 08f8492e137df37e7f9b41e9ee546f5783501c1a | [
"CNRI-Python"
] | null | null | null | aws-pentesting-with-python/kms/correct/updating_existing_kms.py | qodirovshohijahon/python-scripting | 08f8492e137df37e7f9b41e9ee546f5783501c1a | [
"CNRI-Python"
] | null | null | null | aws-pentesting-with-python/kms/correct/updating_existing_kms.py | qodirovshohijahon/python-scripting | 08f8492e137df37e7f9b41e9ee546f5783501c1a | [
"CNRI-Python"
] | null | null | null | from xmlrpc.client import Boolean
import boto3
import logging
from datetime import date, datetime
from botocore.exceptions import ClientError
import json
from json_datetime_serializer import json_datetime_serializer
from kms_client import kmsClient
from search_kms_using_account_id import search_kms_using_account_id
fro... | 33.836364 | 85 | 0.667383 |
7f982e2d7b9d04a27d39368ea1137d719db208d1 | 2,030 | py | Python | pulsar/async/consts.py | goodboy/pulsar | e4b42d94b7e262a165782747d65f8b39fb8d3ba9 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T07:36:57.000Z | 2020-11-30T07:36:57.000Z | pulsar/async/consts.py | goodboy/pulsar | e4b42d94b7e262a165782747d65f8b39fb8d3ba9 | [
"BSD-3-Clause"
] | null | null | null | pulsar/async/consts.py | goodboy/pulsar | e4b42d94b7e262a165782747d65f8b39fb8d3ba9 | [
"BSD-3-Clause"
] | null | null | null | '''
Constants used throughout pulsar.
'''
from pulsar.utils.structures import AttributeDictionary
# LOW LEVEL CONSTANTS - NO NEED TO CHANGE THOSE ###########################
ACTOR_STATES = AttributeDictionary(INITIAL=0X0,
INACTIVE=0X1,
STARTING=0x2,... | 39.038462 | 75 | 0.600493 |
7f983a73e7043a31b4df3adf2be126e5bcbbdc71 | 1,732 | py | Python | tornado/test/twisted_test.py | dave-shawley/tornado | 00c9e0ae31a5a0d12e09109fb77ffe391bfe1131 | [
"Apache-2.0"
] | 1 | 2022-03-24T00:58:47.000Z | 2022-03-24T00:58:47.000Z | tornado/test/twisted_test.py | dave-shawley/tornado | 00c9e0ae31a5a0d12e09109fb77ffe391bfe1131 | [
"Apache-2.0"
] | null | null | null | tornado/test/twisted_test.py | dave-shawley/tornado | 00c9e0ae31a5a0d12e09109fb77ffe391bfe1131 | [
"Apache-2.0"
] | null | null | null | # Author: Ovidiu Predescu
# Date: July 2011
#
# 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 ... | 26.646154 | 81 | 0.662818 |
7f99395d006207eb956af04a6f570e6ac0ee2c30 | 5,590 | py | Python | related_name/migrations/0001_initial.py | thinkAmi-sandbox/django_30-sample | 5ce2408a27100b0975f92c0f99a15671ad0c2465 | [
"Unlicense"
] | null | null | null | related_name/migrations/0001_initial.py | thinkAmi-sandbox/django_30-sample | 5ce2408a27100b0975f92c0f99a15671ad0c2465 | [
"Unlicense"
] | null | null | null | related_name/migrations/0001_initial.py | thinkAmi-sandbox/django_30-sample | 5ce2408a27100b0975f92c0f99a15671ad0c2465 | [
"Unlicense"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-14 05:26
from django.db import migrations, models
import django.db.models.deletion
| 50.818182 | 188 | 0.597138 |
7f9b2596a347b694b0723898dcd1d3a1c8ef87bd | 380 | py | Python | architectures/utils.py | eddardd/torchDA | f53e3a8d5add454a7a2601fb4642da5c89608018 | [
"MIT"
] | null | null | null | architectures/utils.py | eddardd/torchDA | f53e3a8d5add454a7a2601fb4642da5c89608018 | [
"MIT"
] | null | null | null | architectures/utils.py | eddardd/torchDA | f53e3a8d5add454a7a2601fb4642da5c89608018 | [
"MIT"
] | null | null | null | import torch
| 19 | 43 | 0.626316 |
7f9be0ddb5a30a9415b074670d8819f33e76a562 | 550 | py | Python | tests/binary_search.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | 7 | 2018-12-18T20:32:04.000Z | 2021-05-30T04:20:22.000Z | tests/binary_search.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | null | null | null | tests/binary_search.py | jpages/twopy | d0ae42b02ee60cf432e716884f43ec6670bcae2b | [
"BSD-3-Clause"
] | 1 | 2021-11-14T17:47:11.000Z | 2021-11-14T17:47:11.000Z | # Binary search of an item in a (sorted) list
alist = [1, 4, 6, 7, 9, 15, 33, 45, 68, 90]
print(binary_search(alist, 68))
| 22 | 45 | 0.503636 |
7f9ccadbcf78416f1bb7daee7a2f287bb5176549 | 5,052 | py | Python | controller/modules/Logger.py | saumitraaditya/xmppSignal | 5f74153f19e1d1700fc4af954400bfd8fd440dfb | [
"MIT"
] | null | null | null | controller/modules/Logger.py | saumitraaditya/xmppSignal | 5f74153f19e1d1700fc4af954400bfd8fd440dfb | [
"MIT"
] | null | null | null | controller/modules/Logger.py | saumitraaditya/xmppSignal | 5f74153f19e1d1700fc4af954400bfd8fd440dfb | [
"MIT"
] | null | null | null | # ipop-project
# Copyright 2016, University of Florida
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, m... | 43.930435 | 117 | 0.600752 |
7f9d05c84680fa636b07deb1bc4b9da548452f7b | 3,879 | py | Python | setup.py | annieapp/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 4 | 2019-06-17T15:44:54.000Z | 2022-03-25T15:40:04.000Z | setup.py | annieapp/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 5 | 2019-06-12T15:25:51.000Z | 2019-07-04T23:33:06.000Z | setup.py | RDIL/annie | 82e0e858d835fcafa70629377a58102699bb8bb2 | [
"MIT"
] | 1 | 2019-06-18T00:04:41.000Z | 2019-06-18T00:04:41.000Z | """
Annie Modified MIT License
Copyright (c) 2019-present year Reece Dunham and the Annie Team
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... | 39.181818 | 78 | 0.685228 |
7f9deee06e30542f48efc2735e6a677bc1ee2c2d | 427 | py | Python | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 1 | 2020-12-27T09:36:28.000Z | 2020-12-27T09:36:28.000Z | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 7 | 2021-06-05T00:01:05.000Z | 2022-03-12T00:52:05.000Z | store/migrations/0011_watch_slug.py | StilyanMinchev/OnlineStore | 9f4c5a4d13150d753a0a85908c0cd56246106fb8 | [
"MIT"
] | 1 | 2020-12-27T09:36:31.000Z | 2020-12-27T09:36:31.000Z | # Generated by Django 3.1.3 on 2020-12-13 08:36
from django.db import migrations, models
| 21.35 | 62 | 0.594848 |
7f9f23fa80527780dae80cad8f55b90a2cf98725 | 11,329 | py | Python | main.py | SantiagoBeltranO/teenscooktoo | 8a73981c67ca80eb774cecc7d34e7b0e547c5da9 | [
"MIT"
] | null | null | null | main.py | SantiagoBeltranO/teenscooktoo | 8a73981c67ca80eb774cecc7d34e7b0e547c5da9 | [
"MIT"
] | null | null | null | main.py | SantiagoBeltranO/teenscooktoo | 8a73981c67ca80eb774cecc7d34e7b0e547c5da9 | [
"MIT"
] | null | null | null | # -*- encoding: utf-8 -*-
import os
import jinja2
import webapp2
from models.models import *
from google.appengine.ext import blobstore
from google.appengine.ext.webapp import blobstore_handlers
from libs import mylib
template_dir = os.path.join(os.path.dirname(__file__), 'views')
jinja_env = jinja2.Environment (loade... | 35.514107 | 116 | 0.57728 |
7fa0b2e0b6ffafed2c4103aacf903f5f57d207fd | 108 | py | Python | core/urls.py | pouya007RN/Voice-Changer | 829e5a9ed6332b692d3f9f73b36c2d773f44182b | [
"MIT"
] | null | null | null | core/urls.py | pouya007RN/Voice-Changer | 829e5a9ed6332b692d3f9f73b36c2d773f44182b | [
"MIT"
] | null | null | null | core/urls.py | pouya007RN/Voice-Changer | 829e5a9ed6332b692d3f9f73b36c2d773f44182b | [
"MIT"
] | null | null | null | from .views import index
from django.urls import path
urlpatterns = [
path('', index, name='index'),
] | 15.428571 | 34 | 0.675926 |
7fa185743757eeee2b89a1731ab4ef8f9039d128 | 154 | py | Python | shared/__init__.py | seenu-andi-rajendran/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-01-18T06:20:27.000Z | 2021-03-19T21:19:16.000Z | shared/__init__.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | null | null | null | shared/__init__.py | NoahCarnahan/plagcomps | 98e82cfb871f73bbd8f4ab1452c2b27a95beee83 | [
"MIT"
] | 2 | 2015-11-19T12:52:14.000Z | 2016-11-11T17:00:50.000Z | # Required to use access this directory as a "package." Could add more to this file later!
# See http://docs.python.org/2/tutorial/modules.html#packages
| 51.333333 | 91 | 0.75974 |
7fa2a0f0ee0be54fb76852220d29ddc43297d130 | 937 | py | Python | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | mytravelblog/accounts/tests/forms/tests_EditPasswordForm.py | yetoshimo/my-travel-blog | de67dd135e66f2dda121850d54fd56fd644b9bff | [
"MIT"
] | null | null | null | from django import test as django_tests
from django.contrib.auth import get_user_model
from mytravelblog.accounts.forms import UserLoginForm, EditPasswordForm
UserModel = get_user_model()
| 33.464286 | 107 | 0.693703 |
7fa380f39d2046691cd5b2cd72080ca55bc6fd09 | 295 | py | Python | attic/operator/dispatch.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 5,651 | 2015-01-06T21:58:46.000Z | 2022-03-31T13:39:07.000Z | attic/operator/dispatch.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 42 | 2016-12-11T19:17:11.000Z | 2021-11-23T19:41:16.000Z | attic/operator/dispatch.py | matteoshen/example-code | b54c22a1b8cee3fc53d1473cb38ca46eb179b4c3 | [
"MIT"
] | 2,394 | 2015-01-18T10:57:38.000Z | 2022-03-31T11:41:12.000Z | """
Experiments with infix operator dispatch
>>> kadd = KnowsAdd()
>>> kadd + 1
(<KnowsAdd object>, 1)
>>> kadd * 1
"""
| 16.388889 | 56 | 0.572881 |
7fa45f3fdd3c79db48d1ae0e9746ea8d56e463f4 | 125 | py | Python | diary/admin.py | yokoc1322/day_has_a_name | 6d4bb47d07e3cade2c89995f3a744244ce95158f | [
"MIT"
] | null | null | null | diary/admin.py | yokoc1322/day_has_a_name | 6d4bb47d07e3cade2c89995f3a744244ce95158f | [
"MIT"
] | 4 | 2021-03-19T01:28:08.000Z | 2021-06-04T22:52:46.000Z | diary/admin.py | yokoc1322/day_has_a_name | 6d4bb47d07e3cade2c89995f3a744244ce95158f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Writer, Record
admin.site.register(Writer)
admin.site.register(Record)
| 20.833333 | 34 | 0.816 |
7fa5e85b7397fa24db26c6520e306df8fed85fb5 | 1,279 | py | Python | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | 1 | 2020-12-07T16:15:12.000Z | 2020-12-07T16:15:12.000Z | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | null | null | null | cs498_positioning/kalman.py | liuzikai/UWB_Master | 7ee360e15388912e26d2e624e8b8a288e7999963 | [
"Apache-2.0"
] | 1 | 2020-01-08T10:08:00.000Z | 2020-01-08T10:08:00.000Z | from pykalman import KalmanFilter
import numpy as np
kf = KalmanFilter(transition_matrices=np.array([[1.0, 0.0, 0.0, 1.0, 0.0, 0.0],
[0.0, 1.0, 0.0, 0.0, 1.0, 0.0],
[0.0, 0.0, 1.0, 0.0, 0.0, 1.0],
... | 44.103448 | 102 | 0.433933 |
7fa63fc07d4fb1ef716494e877960f58b0ca18d6 | 1,935 | py | Python | year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | 21 | 2020-03-24T16:26:04.000Z | 2022-02-18T15:56:16.000Z | year_3/databases_sem1/lab2/rdmslab2/api/dbmodels/payrolls.py | honchardev/KPI | f8425681857c02a67127ffb05c0af0563a8473e1 | [
"MIT"
] | null | null | null | from api.models import Payroll
| 23.888889 | 61 | 0.477519 |
7fa65605f373bb773e7700052c14cdd58e55214a | 929 | py | Python | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | 1 | 2019-12-20T04:09:56.000Z | 2019-12-20T04:09:56.000Z | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | Python/eight_kyu/abbrev_name.py | Brokenshire/codewars-projects | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | [
"Apache-2.0"
] | null | null | null | # Python solution for 'Abbreviate a Two Word Name' codewars question.
# Level: 8 kyu
# Tags: FUNDAMENTALS, STRINGS, and ARRAYS.
# Author: Jack Brokenshire
# Date: 16/05/2020
import unittest
def abbrev_name(name):
"""
Converts name of two words into initials.
:param name: a string.
:return: two capita... | 28.151515 | 69 | 0.658773 |
7fa7c7a849af2d16d11ffa6cce19f13ddd50d411 | 1,876 | py | Python | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | 3 | 2018-09-15T05:47:35.000Z | 2019-04-08T07:00:02.000Z | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | null | null | null | assets/python_scripts/cvScale.py | weiSupreme/weiSupreme.github.io | 59d419f2d8207c7da0a427330b21546f4f0d85d0 | [
"CC-BY-4.0"
] | null | null | null | import os
import cv2
import random
src_dir = "select2000/"
name_idx = 6000
dest_img_dir = "scale/image/"
dest_txt_dir = "scale/txt/"
img_list = os.listdir(src_dir)
for img_name in img_list:
if '.txt' in img_name:
continue
print img_name
txt_name = img_name.rstrip('jpg') + 'txt'
new_t... | 30.258065 | 244 | 0.591151 |
7fa9c8f061e4bf8efdf7486f8dd64dceb09e0005 | 2,912 | py | Python | segway_ros/src/segway/segway_system_wd.py | shengchen-liu/segway_v3 | 6469b92f66e6e05aeff26cb525520948119aacac | [
"BSD-3-Clause"
] | null | null | null | segway_ros/src/segway/segway_system_wd.py | shengchen-liu/segway_v3 | 6469b92f66e6e05aeff26cb525520948119aacac | [
"BSD-3-Clause"
] | null | null | null | segway_ros/src/segway/segway_system_wd.py | shengchen-liu/segway_v3 | 6469b92f66e6e05aeff26cb525520948119aacac | [
"BSD-3-Clause"
] | null | null | null | """--------------------------------------------------------------------
COPYRIGHT 2014 Stanley Innovation Inc.
Software License Agreement:
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 m... | 35.084337 | 91 | 0.65831 |
7faa1f86c7a3da87c151ad577e7101f3270f7242 | 340 | py | Python | src/boot.py | macbury/pussificator | 1a8a3e0d029ec6f22161dfc41349f82b5df55a9f | [
"MIT"
] | 3 | 2019-01-09T09:54:25.000Z | 2019-06-30T07:10:01.000Z | src/boot.py | macbury/pussificator | 1a8a3e0d029ec6f22161dfc41349f82b5df55a9f | [
"MIT"
] | null | null | null | src/boot.py | macbury/pussificator | 1a8a3e0d029ec6f22161dfc41349f82b5df55a9f | [
"MIT"
] | null | null | null | import logging
import os
from ruamel.yaml import YAML
LOGGER = logging.getLogger('pussy')
logging.basicConfig(
level=logging.INFO,
format="[%(asctime)s] %(levelname)s:%(name)s:%(message)s"
)
CONFIG_PATH = os.path.join('./', 'config.yaml')
LOGGER.info("Loading config: " + CONFIG_PATH)
CONFIG = YAML(typ='safe').loa... | 26.153846 | 59 | 0.717647 |
7fad1ad0db50dcc08b312498186ef8fc1fe2906e | 501 | py | Python | app/helpers/response.py | trongdth/python-flask | a9db95a93d828e984399dc40735fe9db9aea974c | [
"MIT"
] | 2 | 2020-06-30T18:03:12.000Z | 2021-09-02T11:31:59.000Z | restapi/app/helpers/response.py | ninjadotorg/KPI | 430617a1e85304a254cc7364d524d721b8d45b11 | [
"MIT"
] | 10 | 2020-09-05T23:29:52.000Z | 2022-03-11T23:36:59.000Z | restapi/app/helpers/response.py | ninjadotorg/KPI | 430617a1e85304a254cc7364d524d721b8d45b11 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
from flask import jsonify
| 16.16129 | 50 | 0.636727 |
7fae23033f24a25e823cfa616f0af4eaa950d635 | 3,344 | py | Python | utest/resources/robotdata/datagenerator.py | guojiajiaok/RIDE | d797155ed931fe865e62fad20ffb4c60d9934e81 | [
"ECL-2.0",
"Apache-2.0"
] | 775 | 2015-01-12T06:54:09.000Z | 2022-03-25T05:18:05.000Z | utest/resources/robotdata/datagenerator.py | guojiajiaok/RIDE | d797155ed931fe865e62fad20ffb4c60d9934e81 | [
"ECL-2.0",
"Apache-2.0"
] | 2,191 | 2015-05-19T16:49:09.000Z | 2022-03-28T21:38:34.000Z | utest/resources/robotdata/datagenerator.py | guojiajiaok/RIDE | d797155ed931fe865e62fad20ffb4c60d9934e81 | [
"ECL-2.0",
"Apache-2.0"
] | 382 | 2015-01-24T08:41:44.000Z | 2022-03-13T10:14:20.000Z | #!/usr/bin/env python
# Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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... | 25.333333 | 120 | 0.639653 |
7fae83cec822c86f4d08919e0c38bf973182583d | 3,074 | py | Python | pyrobolearn/policies/linear.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 2 | 2021-01-21T21:08:30.000Z | 2022-03-29T16:45:49.000Z | pyrobolearn/policies/linear.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | null | null | null | pyrobolearn/policies/linear.py | Pandinosaurus/pyrobolearn | 9cd7c060723fda7d2779fa255ac998c2c82b8436 | [
"Apache-2.0"
] | 1 | 2020-09-29T21:25:39.000Z | 2020-09-29T21:25:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Provide the linear policy.
The linear policy uses a linear parametric approximator to predict the action vector based on the state vector.
"""
from pyrobolearn.policies.policy import Policy
from pyrobolearn.approximators import LinearApproximator
__author__ = "Brian ... | 45.880597 | 117 | 0.686727 |
7fb00f904badbb5beb0199c4114151cfe440b175 | 875 | py | Python | C/resolve.py | staguchi0703/Nomura2020 | 9931419d9c1f6827a7fa1d417c568bf9954581d3 | [
"MIT"
] | null | null | null | C/resolve.py | staguchi0703/Nomura2020 | 9931419d9c1f6827a7fa1d417c568bf9954581d3 | [
"MIT"
] | null | null | null | C/resolve.py | staguchi0703/Nomura2020 | 9931419d9c1f6827a7fa1d417c568bf9954581d3 | [
"MIT"
] | null | null | null | def resolve():
'''
code here
'''
N = int(input())
A_list = [int(item) for item in input().split()]
hp = sum(A_list) #leaf
is_slove = True
res = 1 # root
prev = 1
prev_add_num = 0
delete_cnt = 0
if hp > 2**N:
is_slove = False
elif A_list[0] == 1:
i... | 23.026316 | 58 | 0.442286 |
7fb037fc5e93403c24d4069718d9478ba79f717e | 13,941 | py | Python | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | mod_spotted_extended_light/mod_spotted_extended_light308.py | chipsi007/spoter-mods | 0b8745cf06c651d84e356d16ce9d49f574dac81e | [
"WTFPL"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import json
import codecs
import datetime
import threading
import urllib
import urllib2
import string
import random
import BigWorld
from constants import AUTH_REALM
from gui.Scaleform.daapi.view.lobby.hangar.Hangar import Hangar
from gui.battle_control import g_sessionProvid... | 46.781879 | 197 | 0.582742 |
7fb04acdd54e9cb4cbbbf41f4ccf06ce95b2ef6e | 19,118 | py | Python | sahara/service/edp/oozie/engine.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | 161 | 2015-01-05T11:46:42.000Z | 2022-01-05T07:41:39.000Z | sahara/service/edp/oozie/engine.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | sahara/service/edp/oozie/engine.py | ksshanam/sahara | 0d259f7a71447cd0cefe4f11184cc2ee335f4e33 | [
"Apache-2.0"
] | 118 | 2015-01-29T06:34:35.000Z | 2021-12-06T07:30:09.000Z | # Copyright (c) 2014 OpenStack Foundation
#
# 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 ... | 40.850427 | 79 | 0.616016 |
7fb04d7e5c955b6114c4a179c5490fcab0e0ff9c | 3,497 | py | Python | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | 6 | 2017-10-31T13:27:59.000Z | 2019-01-28T22:09:25.000Z | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | null | null | null | adjutantclient/osc/v1/tokens.py | openstack/python-adjutantclient | 20d234bc370056184a0885e6e6f735db056668a2 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2016 Catalyst IT Ltd.
#
# 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 ... | 32.682243 | 78 | 0.654847 |
7fb19ef2495c344620752f4d76a363c1d3413606 | 3,126 | py | Python | Chapter05/Low_Quality.py | PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition | 94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e | [
"MIT"
] | 9 | 2021-10-01T23:00:46.000Z | 2022-03-11T02:35:24.000Z | Chapter05/Low_Quality.py | PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition | 94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e | [
"MIT"
] | null | null | null | Chapter05/Low_Quality.py | PacktPublishing/Bioinformatics-with-Python-Cookbook-third-edition | 94fc361fdadc15ec0d8b0cd101bfc3717a0ab50e | [
"MIT"
] | 6 | 2021-11-17T15:46:48.000Z | 2022-02-25T13:53:35.000Z | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.13.4
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
# name: python3
# ---
# +
import gzip
import numpy as np
import... | 29.771429 | 150 | 0.627639 |
7fb391590f55d21149c4442ca20b07a2041ace3f | 6,835 | py | Python | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | 1 | 2021-03-30T03:12:05.000Z | 2021-03-30T03:12:05.000Z | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | null | null | null | experiments/2_Maze_Neutrality/experiment/stimuli_creation/stim_csv_iterator.py | BranPap/gender_ideology | 2b2b87e13cb7a8abd0403828fbc235768a774aaa | [
"MIT"
] | 1 | 2021-03-30T03:41:32.000Z | 2021-03-30T03:41:32.000Z | import json
import pandas as pd
import random
df = pd.read_csv("experiment\stimuli_creation\maze_lexemes.csv")
states = ["California","Alabama","Alaska","Arizona","Arkansas","Connecticut","Colorado","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Ma... | 42.71875 | 582 | 0.574689 |
7fb495b0933b679faafdbcf8c0bfaeffd39c71bb | 737 | py | Python | Choruslib/chorusio.py | kramundson/Chorus2 | 43be15e082f346dc45b94a7fadb141b3a6f8c37c | [
"MIT"
] | 11 | 2019-05-23T13:28:39.000Z | 2022-02-10T00:24:54.000Z | Choruslib/chorusio.py | kramundson/Chorus2 | 43be15e082f346dc45b94a7fadb141b3a6f8c37c | [
"MIT"
] | 3 | 2019-03-15T01:47:53.000Z | 2021-12-16T07:41:08.000Z | Choruslib/chorusio.py | kramundson/Chorus2 | 43be15e082f346dc45b94a7fadb141b3a6f8c37c | [
"MIT"
] | 11 | 2019-02-28T08:17:02.000Z | 2021-12-13T11:44:02.000Z | from pyfasta import Fasta
def writebed(probelist, outbedfile):
'''probe list format:
chr\tstart\tend
'''
outio = open(outbedfile, 'w')
for pbnow in probelist:
print(pbnow, file=outio)
outio.close()
| 14.74 | 55 | 0.569878 |
7fb5da94eb1a0567d0a8b0b1f7117ea8c8244199 | 77 | py | Python | p001.py | scottwillmoore/project-euler | e8b24a72d88fc30e8ab701e2f56622c363600ea4 | [
"MIT"
] | 1 | 2018-07-09T09:19:58.000Z | 2018-07-09T09:19:58.000Z | p001.py | scottwillmoore/project-euler | e8b24a72d88fc30e8ab701e2f56622c363600ea4 | [
"MIT"
] | null | null | null | p001.py | scottwillmoore/project-euler | e8b24a72d88fc30e8ab701e2f56622c363600ea4 | [
"MIT"
] | null | null | null | c = lambda n: n % 3 == 0 or n % 5 == 0
print(sum(filter(c, range(0, 1000))))
| 25.666667 | 38 | 0.532468 |
7fb602d2e2a1eb7cec67da9528c261af68059799 | 770 | py | Python | source/Tutorials/Actions/client_0.py | dsauval/ros2_documentation | 19627272befdd4affa3bdb5b99bedb28c9975584 | [
"CC-BY-4.0"
] | 291 | 2018-10-05T17:35:45.000Z | 2022-03-29T02:46:57.000Z | source/Tutorials/Actions/client_0.py | dsauval/ros2_documentation | 19627272befdd4affa3bdb5b99bedb28c9975584 | [
"CC-BY-4.0"
] | 978 | 2018-10-18T17:00:46.000Z | 2022-03-29T12:25:21.000Z | source/Tutorials/Actions/client_0.py | dsauval/ros2_documentation | 19627272befdd4affa3bdb5b99bedb28c9975584 | [
"CC-BY-4.0"
] | 883 | 2018-10-01T19:18:13.000Z | 2022-03-28T03:03:09.000Z | import rclpy
from rclpy.action import ActionClient
from rclpy.node import Node
from action_tutorials_interfaces.action import Fibonacci
if __name__ == '__main__':
main()
| 22 | 72 | 0.727273 |
7fb60d8a8b3c137ea51b2200982c164df6a11a71 | 655 | py | Python | label_demo.py | encela95dus/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 36 | 2019-01-12T04:17:49.000Z | 2022-03-31T05:33:29.000Z | label_demo.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | null | null | null | label_demo.py | Backup-eric645/ios_pythonista_examples | e136cdcb05126f0f9b9f6fb6365870876b419619 | [
"MIT"
] | 15 | 2018-12-30T21:18:05.000Z | 2022-01-30T13:17:07.000Z | import ui
v = ui.load_view()
v.add_subview(make_label(
#'AajJpPyY iIlL', ('Helvetica', 80), ui.ALIGN_LEFT,
#'AajJpPyY iIlL', ('TimesNewRomanPSMT', 80), ui.ALIGN_LEFT,
'AajJpPyY iIlL', ('Avenir-Roman', 80), ui.ALIGN_LEFT,
'lightgray', 30,350))
v.present('sheet')
| 31.190476 | 83 | 0.622901 |
7fb6655e444707235655b6b04ce814593df93517 | 153 | py | Python | dev.py | wabscale/flasq | ea5cba81c3259441f64e96a7c63d2234728100a3 | [
"MIT"
] | 1 | 2022-02-25T02:12:10.000Z | 2022-02-25T02:12:10.000Z | dev.py | wabscale/flasq | ea5cba81c3259441f64e96a7c63d2234728100a3 | [
"MIT"
] | null | null | null | dev.py | wabscale/flasq | ea5cba81c3259441f64e96a7c63d2234728100a3 | [
"MIT"
] | null | null | null | from web import app
from glob import glob
app.run(
debug=True,
host='0.0.0.0',
port=5000,
extra_files=glob('./web/templates/**.html')
)
| 15.3 | 47 | 0.627451 |
7fb71d82abd96a4b2037456c5481862b49d126e5 | 6,010 | py | Python | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | src/django/addr/addr/settings.py | deshk04/addressparser | 03c33859bb585a6cf767e0f4d3dfd23cabd2d78b | [
"MIT"
] | null | null | null | """
Django settings for addr project.
Generated by 'django-admin startproject' using Django 1.11.29.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
f... | 29.033816 | 99 | 0.67604 |
7fb79206ce5753b6ec8f399db4b0f99941b1fce3 | 1,243 | py | Python | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | Hash PWs for Cisco/setupPW.py | NetworkNick-US/PythonScripts | b8441e4d433be59f4b3c4bd5c61543b2ef66ae4b | [
"MIT"
] | null | null | null | import getpass
import os
import platform
import subprocess
if __name__ == '__main__':
main()
| 29.595238 | 120 | 0.65889 |
7fb8126383e7f0de2870b766de35128210bc222a | 2,197 | py | Python | web-scraping-challenge/scrape_mars.py | Felicia620/web-scraping-challenge | 6ad1087c940ad5b54ca5fcc889ee4a864b4ccead | [
"ADSL"
] | null | null | null | web-scraping-challenge/scrape_mars.py | Felicia620/web-scraping-challenge | 6ad1087c940ad5b54ca5fcc889ee4a864b4ccead | [
"ADSL"
] | null | null | null | web-scraping-challenge/scrape_mars.py | Felicia620/web-scraping-challenge | 6ad1087c940ad5b54ca5fcc889ee4a864b4ccead | [
"ADSL"
] | null | null | null | from bs4 import BeautifulSoup
import requests
import pymongo
from splinter import Browser
from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import pandas as pd
| 27.810127 | 82 | 0.648612 |
7fb8c4bd3537291e9cb99243f7a04c75639a3244 | 332 | py | Python | proyo/templates/create/python/{{package_name}}/__main__.py | MatthewScholefield/proyo | ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b | [
"MIT"
] | null | null | null | proyo/templates/create/python/{{package_name}}/__main__.py | MatthewScholefield/proyo | ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b | [
"MIT"
] | 3 | 2019-08-07T04:26:45.000Z | 2019-08-07T05:21:17.000Z | proyo/templates/create/python/{{package_name}}/__main__.py | MatthewScholefield/proyo | ca5e0c55b7f8c2ea33dd4eea7525d36af48ea58b | [
"MIT"
] | null | null | null | # ~ if project_type == 'script':
# ~ with proyo.config_as(var_regex=r'# ---(.*?)--- #'):
# ---gen_license_header('#')--- #
# ~ #
from argparse import ArgumentParser
if __name__ == '__main__':
main()
# ~ #
| 20.75 | 75 | 0.60241 |
7fb9490ea330e6c5777107c4f40c564b13d5c3b1 | 5,435 | py | Python | get_sd_ou/databaseUtil.py | ErfanPY/siencedirect-authors-data | 5ea248954efbdb4f84820870ed3e55a930c42732 | [
"MIT"
] | null | null | null | get_sd_ou/databaseUtil.py | ErfanPY/siencedirect-authors-data | 5ea248954efbdb4f84820870ed3e55a930c42732 | [
"MIT"
] | null | null | null | get_sd_ou/databaseUtil.py | ErfanPY/siencedirect-authors-data | 5ea248954efbdb4f84820870ed3e55a930c42732 | [
"MIT"
] | null | null | null | import logging
import mysql.connector
from get_sd_ou.config import Config
logger = logging.getLogger('mainLogger')
# INSERT
# SELECT
| 35.522876 | 117 | 0.673965 |
7fba6b53744ed7ffa8875853e834cde754de773e | 5,106 | py | Python | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | 2 | 2015-12-17T17:25:44.000Z | 2019-01-24T16:46:55.000Z | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | xxhh/rank.py | jannson/Similar | 975527fae5fe63ab63913fa1f24619d616331687 | [
"MIT"
] | null | null | null | import sys, os, os.path, re
import codecs
import numpy as np
from scipy.sparse import *
from scipy import *
from sklearn.externals import joblib
import networkx as nx
django_path = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(13, django_path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'xxhh.settings'
from d... | 33.372549 | 138 | 0.53584 |
7fba717dbec6526dc8e6412f2a8a1599a712edeb | 6,248 | py | Python | qcfractal/tests/test_server.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | 113 | 2018-08-04T20:33:41.000Z | 2022-02-08T21:17:52.000Z | qcfractal/tests/test_server.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | 665 | 2018-08-04T14:16:53.000Z | 2022-03-25T15:37:41.000Z | qcfractal/tests/test_server.py | MolSSI/dqm_server | ceff64fe032590095e0f865bc1d0c2da4684404e | [
"BSD-3-Clause"
] | 40 | 2018-08-16T21:41:02.000Z | 2022-01-26T15:07:06.000Z | """
Tests the DQM Server class
"""
import json
import os
import threading
import pytest
import requests
import qcfractal.interface as ptl
from qcfractal import FractalServer, FractalSnowflake, FractalSnowflakeHandler
from qcfractal.testing import (
await_true,
find_open_port,
pristine_loop,
test_serv... | 32.884211 | 116 | 0.645327 |
7fbaf525baf4d7f1485c7c18c534796d329fc79c | 2,278 | py | Python | WLED_WiFi/WLED_WiFi.py | nirkons/Prismatik-WLED-WiFi | 7716d3c8e045c968a5c614b7847b51f0387ec548 | [
"MIT"
] | null | null | null | WLED_WiFi/WLED_WiFi.py | nirkons/Prismatik-WLED-WiFi | 7716d3c8e045c968a5c614b7847b51f0387ec548 | [
"MIT"
] | null | null | null | WLED_WiFi/WLED_WiFi.py | nirkons/Prismatik-WLED-WiFi | 7716d3c8e045c968a5c614b7847b51f0387ec548 | [
"MIT"
] | null | null | null | import lightpack, socket, configparser, os
from time import sleep
import sys
warls = WLED_WiFi()
warls.run()
| 35.59375 | 76 | 0.47849 |
7fbb3e0a262f49733f933fde19767b6609edf780 | 16,513 | py | Python | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | learning_experiments/src3/eval_trained_model.py | TommasoBendinelli/spatial_relations_experiments | cd165437835a37c947ccf13a77531a5a42d4c925 | [
"MIT"
] | null | null | null | import argparse
import os
import os.path as osp
import cv2
import numpy as np
from scipy.stats import multivariate_normal
from scipy.stats import norm
import matplotlib
# matplotlib.use('agg')
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
import subprocess
import shutil
import chainer
from ch... | 36.452539 | 146 | 0.664507 |
7fbb8f0f4fee8e352ae2772b0862fa10d84c521b | 1,290 | py | Python | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | 1 | 2022-03-11T14:03:37.000Z | 2022-03-11T14:03:37.000Z | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | null | null | null | temp/pattern.py | BlueBeret/ComputerGraphics-Assignment | 5df905adfe8bcc958493337a80bd6eb75806bf6b | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
canvas = Canvas(root,
width=1000,
height=1000,
background="#FFFFFF")
canvas.pack(expand=YES, fill=BOTH)
BERZIER_COORD = []
canvas.bind("<Button-1>", onClick)
root.mainloop() | 29.318182 | 100 | 0.591473 |